On Apr 29, 1:18 pm, John H Palmieri <jhpalmier...@gmail.com> wrote: > One interesting thing from this page, though: > > In[7]:= N[Sin[10^50], 20] > Out[7]= -0.78967... (I can't copy and paste from that page, but this > is how the number starts) > In[8] := Sin[10.^50] > Out[8] := 0.669369 > > Sage doesn't get the right answer here (assuming that -0.78967... is > the right answer):
Yeah, trig functions evaluated at large arguments can be tricky. You need to make sure that you're using enough precision to figure out where 10^50 mod 2*pi lies in the interval [0,2*pi]. Remember also that n (10) specifies 10 bits of precision or about 3 digits. The following works: sage: sin(10^50).n(200) -78967249342931008271028953991740775396008340462140271914578 Mark --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---