On 2017-02-12 21:14, Nils Bruin wrote:
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
Actually, it does have the right precision, it's just that PARI only
prints a few digits:
sage: U = ComplexField(300)(1/2+sqrt(-3)/2)
sage: U._pari_()
0.500000000000000 + 0.866025403784439*I
sage: U._pari_().bitprecision()
320
sage: U._pari_().sage()
0.500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+
0.866025403784438646763723170752936183471402626905190314027903489725966508454400018540573093112211*I
After calling dilog(), the precision is 128 bits regardless of starting
precision:
sage: U = ComplexField(10000)(1/2+sqrt(-3)/2)
sage: U._pari_().dilog().bitprecision()
128
So it's a bug in PARI/GP, not in Sage.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.