Mar-23-2019, 09:00 PM
The correct use of multiprecision is as follows;
mp.dps
, not math.mp.dps, Cheers>>> from mpmath import * >>> mp.dps = 2000 >>> print (pi) 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328 2306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648 2337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917 1536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237 9962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293 1767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922 7968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502 4459455346908302642522308253344685035261931188171010003137838752886587533208381420617177669147303598253490428755468 7311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632788659361533 8182796823030195203530185296899577362259941389124972177528347913151557485724245415069595082953311686172785588907509 8381754637464939319255060400927701671139009848824012858361603563707660104710181942955596198946767837449448255379774 7268471040475346462080466842590694912933136770289891521047521620569660240580381501935112533824300355876402474964732 6391419927260426992279678235478163600934172164121992458631503028618297455570674983850549458858692699569092721079750 9302955321165344987202755960236480665499119881834797753566369807426542527862551818417574672890977772793800081647060 0161452491921732172147723501414419735685481613611573525521334757418494684385233239073941433345477624168625189835694 8556209921922218427255025425688767179049460165346680498862723279178608578438382796797668145410095388378636095068006 4225125205117392984896084128488626945604241965285022210661186306744278622039194945047123713786960956364371917287467 7646575739624138908658326459958133904780275901 >>>