Thanks for the confirmation, Maarten! Using my brain is not an option
as it has very limited capacities when it comes to units...
As you point out, addition or subtraction of different units should
raise an error. I forwarded this to sage-devel here:
http://groups.google.com/group/sage-devel/browse_thread/thread/81884a53ab28212.
Hope that someone knows an easy way how to fix it.

Cheers
Stan

On Aug 2, 11:41 am, Maarten Derickx <[email protected]>
wrote:
> According to the 
> documentationhttp://www.sagemath.org/doc/reference/sage/symbolic/units.htmlthe
>  unit
> behave like elements from the symbolic ring, in which x-x will be replaced
> by 0. I considder this a bug since clearly you can add two elements only if
> the have the same unit, and the result will again have the same unit.
> Currently within sage there is not a neat workaround, I guess you just need
> to use your brain as you did in your "This works" example.

-- 
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
URL: http://www.sagemath.org

Reply via email to