Python Forum
Calculate the Euler Number with more decimal places
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculate the Euler Number with more decimal places
#6
What linux distribution do you have ?
In Ubuntu I have a package python3-gmpy2, also if I only want the header gmp.h, I can install the package libgmp-dev. The Gnu Multiprecision Library can be installed on any Linux computer.

Also note that other libraries exist for multiprecision, such as mpmath, which is used by sympy and sage I think, and there is also bigfloat and clnum.
>>> from sympy import *
>>> x = symbols('x')
>>> exp(x).evalf(100, subs={x: Float('1.0')})
2.718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427
>>> 
Pedroski55 likes this post
Reply


Messages In This Thread
RE: Calculate the Euler Number with more decimal places - by Gribouillis - Oct-21-2021, 06:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Not rounding to desired decimal places? pprod 2 2,637 Mar-05-2021, 11:11 AM
Last Post: pprod
  Can I format decimal places by column with a dictionary? Mark17 2 2,644 Dec-28-2020, 10:13 PM
Last Post: Mark17
  Creating table in MySQL db with decimal number issue dangermaus33 7 5,108 Nov-20-2020, 10:40 PM
Last Post: dangermaus33
  IndexError in Project Euler attempt CRISPRmetoopls 3 2,389 Aug-10-2020, 10:00 AM
Last Post: perfringo
  Numpy savetxt, how save number with decimal separator SpongeB0B 1 3,300 May-10-2020, 01:05 PM
Last Post: ThomasL
  How show decimal only for none whole number ? SpongeB0B 6 2,731 Mar-27-2020, 09:15 AM
Last Post: DeaD_EyE
  3rd problem from project Euler Richard_SS 6 3,324 Jun-05-2019, 02:06 PM
Last Post: DeaD_EyE
  testing for Decimal w/o importing decimal every time Skaperen 7 4,605 May-06-2019, 10:23 PM
Last Post: Skaperen
  graphing euler method rondo 1 2,557 May-03-2019, 01:03 AM
Last Post: scidam
  Search "Places near by me" or "where am I" in google maps barry76 1 2,754 Feb-07-2019, 04:10 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020