> > > Dear William, > > With "ln(CC(-5).n(prec=100))" I'm not taking the log of a number with > > 53-bit precision hoping that it magically turns into a 100-bit > > precision number, what you mean would be "ln(CC(-5)).n(prec=100)", > > I'm taking the log of CC(-5).n(prec=100) which obviously should be a > > 100-bit precision number, > > Look at "CC?" - the CC field is 53 bits of precision. If you want more > looks at ComplexField? > > At the risk of belabouring the point that William and Michael have already made: you start with -5 which is an exact number, but as soon as you do CC(-5) you get a complex number with 53 bits of precision and no memory of where it's coming from. So doing CC(-5).n(prec=100) will just fill the missing 47 bits with randomness, just as if you had done CC(-12.98601).n(prec=100).
Best, Alex -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia -- http://www.ms.unimelb.edu.au/~aghitza/ --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---