The dilog function is calling pari which does not seem to have this fault: ? \pb 600 realbitprecision = 600 significant bits (180 decimal digits displayed) ? z = (1+sqrt(-3))/2 %1 = 1/2 + 0.866025403784438646763723170752936183471402626905190314027903489725966508454400018540573093378624287837813070707703351514984972547499476239405827756047186824264046615951152791033987*I ? z^3 %2 = -1.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 + 0.E-192*I ? dilog(z) %3 = 0.274155677808037739412069194441004198203158316867799739622593038228334578400533478972271483436626450884000719827056198446604787447834167964655850491055144379471955551561293767515875 + 1.01494160640965362502120255427452028594168930753029979201748910677659747625824402213647035422825669494586182753135988762597536082305019306224680177158580364265199242954529354609802*I
and in fact the digits before the zeros are incorrect also. So perhaps the conversion from pari back to Sage is at fault. John On 12 February 2017 at 17:20, Matthias Goerner <enisc...@gmail.com> wrote: > When I am trying to compute complex dilog's to high precision, sage gives > the wrong by just filling up with zeros: > > ComplexField(600)(1/2+sqrt(-3)/2).dilog() > 0.274155677808037739629767534643711712760705268010497093200683593750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 > + > 1.01494160640965362502224633965050127985270614620051806369642217221943674062982124585777232717020979180233553051948547363281250000000000000000000000000000000000000000000000000000000*I > > -- > 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. -- 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.