Hi Harold,

On Sun, Apr 25, 2010 at 3:52 AM, Harold E. <[email protected]> wrote:
> Hi,
>
> I saw that a new modules for physics began to be implemented, and the
> part which interested me was on the physical units: for a project I
> tried to write my own classes, inspired by those in ScientificPython,
> but evidently it was not compatible with sympy, and so I thought and
> tried to inspired from the classes in sympycore, without successes.
> But yet, with a better understanding of sympy, I read the recent
> implementation and had few questions and observations: the actual way
> is useful to make symbolic computations with units, but it is
> convenient when we want to work with units, e.g. to convert a quantity
> in one unit into another, or to take into account the dimension of
> units.
> So I was wondering me if it was not possible to merge actual and
> ScientificPython approaches. For my project I tried several ways, the
> latest was to create classes for the dimension (a tuple), the unit
> symbol (like actual unit) and for the unit; the latest having a
> symbol, a factor and a dimension — something like that (I still search
> the best way to arrange).

Is this how ScientificPython does it?

http://dirac.cnrs-orleans.fr/ScientificPython/ScientificPythonManual/Scientific.Physics.PhysicalQuantities-module.html

Our units are very simple, see sympy/physics/units.py, so anything
more advanced is welcomed. If you get something working, let us know
and we can review the code and merge it in, or help you improve it.

Ondrej

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
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/sympy?hl=en.

Reply via email to