On Sep 3, 2009, at 11:53 AM, chuck_starchaser wrote:
> > All I could find by searching for "numerical" was this: > http://www.sagemath.org/doc/tutorial/tour_algebra.html#solving-equations-numerically > which doesn't answer my question. > I have a function, > f(x)=6.283185307*(1.000000001-cos(0.008726646*x)) > f(48.0) > > Note that I used 6.28.... instead of "2*pi", and 1.000000001 should be > just 1.0; I was just trying to persuade Sage to give me just a number; > but NOTHING seems to work. When I hit Evaluate, it spits out, > > -6.28318530700000*cos(0.418879008000000) + 6.28318531328319 > > Now, I understand that some professors might want "exact" results; but > what could possibly be the use of getting an answer like this? Is > there some way to just get a simple, numerical answer? > TIA > (Sorry about my frustration showing) If expr is any constant symbolic expression you can use sage: N(expr) to get a numerical approximation to it, to 53 bits precision. Type N? for more help, including how to get higher precision out, etc. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
