hpon wrote:
> Hi,
> 
> How do I get a numerical value?
> 
> I have a multi-parameter function where all the parameters have been
> substituted by numerical values.  I want Sage to calculate the
> expression's numerical value.  At the moment Sage prints:
> 
> 1/sqrt((sqrt(3)/2 - 0.0173205080757)^2 - 0.0001) - "and so on"


Here are a few ways:

sage: a=1/sqrt((sqrt(3)/2 - 0.0173205080757)^2 - 0.0001)
sage: a
1/sqrt((sqrt(3)/2 - 0.0173205080757)^2 - 0.0001)
sage: numerical_approx(a)
1.17834765394487
sage: N(a)
1.17834765394487
sage: n(a)
1.17834765394487
sage: a.n()
1.17834765394487
sage: RR(a)
1.17834765394487


Thanks,

Jason


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to