Sorry, I didn't know about that. I searched through Google but I got
nothing...

Thank you.

On Dec 7, 5:35 pm, Jason Grout <jason-s...@creativetrax.com> wrote:
> On 12/7/10 6:58 PM, Eviatar wrote:
>
> > Hello,
>
> > It seems Degree-Radian conversion doesn't exist in Sage. Of course, it
> > can easily be performed by multiplying by pi/180 (or its reciprocal),
> > but a function is more convenient. The Python has it in the math
> > module, but it will not work with symbolics. Mathematica has the
> > Degree constant, (http://reference.wolfram.com/mathematica/ref/
> > Degree.html), but I think degrees() and radians() functions would be
> > better.
>
> > Thoughts?
>
> Like this?
>
> sage: a=4*units.angles.degree
> sage: a.convert(units.angles.radian)
> 1/45*pi*radian
> sage: deg=units.angles.degree
> sage: rad=units.angles.radian
> sage: b=4*deg
> sage: b.convert(rad)
> 1/45*pi*radian
>
> Here is rudimentary docs for the unit 
> package:http://www.sagemath.org/doc/reference/sage/symbolic/units.html
>
> Thanks,
>
> Jason

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to