mathics / Mathics

This repository is for archival. Please see https://github.com/Mathics3/mathics-core
https://mathics.org
Other
2.07k stars 206 forks source link

Unit conversion #255

Open wolfv opened 9 years ago

wolfv commented 9 years ago

It would be cool to implement unit conversion with pint: http://pint.readthedocs.org/en/0.6/tutorial.html

It looks like a well-suited candidate.

sn6uv commented 9 years ago

This would definately be something worth adddng to Mathics.

I agree. It looks like a high quality library.

sn6uv commented 9 years ago

Also, pint's latex output could tie in nicely with what we have in Mathics already.

bnjones commented 9 years ago

pint looks like a useful library but it seems strange to pull in something which implements its own idea of unit powers and ratios, when we've already got a symbolic algebra engine. Would we be duplicating functionality we've already got?

sn6uv commented 9 years ago

@bnjones you raise a valid point. Perhaps we can just take the constants, i.e. https://github.com/hgrecco/pint/blob/master/pint/constants_en.txt and implement the functionality ourselves. Better still, just take them from the source.