#19093: bug in units conversion
-------------------------+----------------------------
Reporter: schymans | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.9
Component: symbolics | Keywords: units
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-------------------------+----------------------------
The .convert() function converts units to their base units, e.g.
{{{
sage: (units.energy.joule).convert()
}}}
{{{
kilogram*meter^2/second^2
}}}
The units of heat capacity are joule/kelvin/kilogram and since joule is
not a base unit, it should be possible to convert them to base units.
However, this throws an error:
{{{
sage:
(units.energy.joule/units.temperature.kelvin/units.mass.kilogram).convert()
}}}
{{{
Traceback (click to the left of this block for traceback)
...
ValueError: Cannot convert
}}}
This seems to be the case whenever something is divided by temperature.
--
Ticket URL: <http://trac.sagemath.org/ticket/19093>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.