Try the .simplify_radical() method.
~Brian
On 09/01/2014 08:31 PM, Hal Snyder wrote:
Is there a way to simplify sqrt(some_unit_of_measurement^2) without
knowing what's in the expression? Often a chain of computations will
lead to a result like the following:
7.5 * sqrt(units.length.meter^2)
I would sage to simplify the units and give me
7.50000000000000*meter
but haven't found symbolic expression ops to get past this output:
7.50000000000000*sqrt(meter^2)
--
You received this message because you are subscribed to the Google
Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"sage-support" 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-support.
For more options, visit https://groups.google.com/d/optout.