varantir
varantir

Reputation: 6854

sympy units conversion

I have a little problem with units in sympy. If i do following expression:

import sympy.physics.units as u
print u.kg + u.kg

I get as result:

2*kg

which is not what I want, I would like to have only kg. Whats the problem?

//edit I saw that there are people working on this problem in https://github.com/sympy/sympy/pull/1389 does anyone know more about this?

Upvotes: 0

Views: 805

Answers (1)

asmeurer
asmeurer

Reputation: 91620

A kilogram plus a kilogram is two kilograms. I don't understand why you want just kg again.

Upvotes: 5

Related Questions