#11592: Improvements to units convert function
---------------------------+------------------------------------------------
Reporter: eviatarbach | Owner: burcin
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.7.1
Component: symbolics | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
---------------------------+------------------------------------------------
Previously, there were some problems with the unit convert function,
namely that variables were not allowed. The following now works:
sage: sage.symbolic.units.convert(50 * x *
units.area.square_meter, units.area.acre)
(1953125/158080329*x)*acre
As well, previously units were sometimes "mixed" with the returned
symbolic (see http://ask.sagemath.org/question/641/radian-degree-
conversion). Now, the following works:
sage: sage.symbolic.units.convert(cos(50) * units.angles.radian,
units.angles.degree)
(180*cos(50)/pi)*degree
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11592>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.