Oct-30-2021, 07:16 AM
(This post was last modified: Oct-30-2021, 07:16 AM by Andrew_Reid.
Edit Reason: Decided to subscribe to emails
)
(Oct-18-2021, 11:09 PM)Pedroski55 Wrote: I was reading about the Euler Number, e.
I read it has been calculated to a trillion decimal places.
I would be happy with 100 decimal places.
I have 15 decimal places.
How could I get more decimal places?
def euler(n): print('Potential is:', n) inner = 1 + 1/n print('inner value is:', inner) e = inner**n print('e = ', e)
Hello, I just started learning Python because I thought that it had libraries which would let me do calculations with lots of decimal places.
If you go to this URL, it starts with a simple program in Java.
Then in the second half it shows how I used mpmath in Python to calculate the square root of two to one million decimal places:
https://andrews-programming-examples.blo...ulate.html