Last active
September 19, 2025 09:07
-
-
Save gvitalie/d21369f1aefc9b8d04ca9aadbd64ec14 to your computer and use it in GitHub Desktop.
Euler and Newton relations make a tandem π² to calculate Ο value, using successive exponential tangent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| me@amadeus:~$ python3 -q | |
| >>> | |
| >>> import cmath | |
| >>> | |
| >>> a = 3 | |
| >>> for i in range(3): | |
| ... a -= cmath.exp(a * 1j).imag/cmath.exp(a * 1j).real | |
| ... | |
| >>> | |
| >>> print(a) | |
| 3.141592653589793 | |
| >>> | |
| >>> # &β’ | |
| >>> | |
| me@amadeus:~$ |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aa