On Sunday, February 12, 2017 at 10:59:06 AM UTC-8, Matthias Goerner wrote:
>
> Careful: you are changing the default precision before calling dilog. That 
> might mask the problem with pari's dilog.


Indeed, the dilog is just implemented as  
self._parent(self._pari_().dilog())

and:

sage: U=ComplexField(300)(1/2+sqrt(-3)/2)
sage: U._pari_()
0.500000000000000 + 0.866025403784439*I

so the thing the dilog is taken of doesn't even have the right precision

Also, the number of digits computed by dilog is dependent on the default 
precision. It looks like all the uses of pari to compute numerical results 
should take care to manipulate the default precision properly (as is 
necessary and done for mpmath use)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to