[Edu-sig] Re: (financial calculation) - using units
Laura Creighton
lac at strakt.com
Fri Feb 18 17:12:23 CET 2005
I think what you want is the traits package from SciPy (from Enthought).
Paper here:
http://python.fyxm.net/pycon/papers/traits.html
Unfortunately, the code has moved, and I don't know where it has gone.
Laura
In a message of Tue, 15 Feb 2005 21:51:34 +0100, Christian Mascher writes:
<snip>
>I think as a physicist, don't know how they do it in finances.
>
>BTW, how does one express units of measure in Python/programming?
>Calculations in applications aren't just about numbers. For instance,
>how could one express equations like
> 10000 cm^2 == 1 m^2
> 1000 g == 0.001 t
>in a programming language? Another point would be the inclusion of a
>measure of accuracy:
>For a physicist or engineer
> 1 cm != 1.00 cm
>because the first could be 0.9 cm, the second couldn't, beeing more
>accurate.
>
>Greetings,
>
>Christian
More information about the Edu-sig
mailing list