Digits and giacpy
Publié : mer. juin 06, 2018 9:01 pm
Hi,
It seems that giacpy only gives me python float precision when solving numerical values (eg. with proot and froot). Consider the following code
The output in pari has ca. 12 digit precision. How do I get the 38 digit precision?
Jose
It seems that giacpy only gives me python float precision when solving numerical values (eg. with proot and froot). Consider the following code
Code : Tout sélectionner
from giacpy import giac, proot
giac("printpow(1)")
giac("Digits := 38")
giac("Digits") #tells me if giac indeed set the precision to 38 digits
#outputs 38
proot("x^4+x+1")
#outputs [-0.7271360844912-0.43001428832972*i,-0.7271360844912+0.43001428832972*i,0.7271360844912-0.93409928946053*i,0.7271360844912+0.93409928946053*i]
Jose