The docu looks great, but I still like Robert Dodier's proposal of 
separating units from quantities, as done in ezunits. It is hard enough 
to remember all the internal functions and constants that should not be 
over-written by variable definitions (e.g. var('lambda')). If the unit 
abbreviations are separate, we would not need to be careful that we 
don't define a variable called 'amp' or 'mi' etc.
Also, I like William's suggestion to allow the user to define his own 
unit abbreviations (e.g. sage: N = units.newton). Could the user define 
his own system of units? E.g. 1 kdog = 1000 dog, dog*cat = petshop...

This might help those fond of miles, yards, stones, gallons or oranges 
and apples. :-)

Stan


M. Backens wrote:
> On Aug 12, 4:59 pm, Robert <m...@rschwarz.net> wrote:
>   
>> Maybe another feature would be to check if arithmetic of units is
>> compatible, so that you'd get an error when you try to add temperature
>> to length, for example. I got this idea from a tutorial of the c++
>> boost library 
>> athttp://www.boost.org/doc/libs/1_39_0/libs/mpl/doc/tutorial/dimensiona...
>>     
>
>
> DimPy already checks units during addition etc. (I'll add that to the
> tutorial, but for the time being you can see it in the documentation:
> http://www.inference.phy.cam.ac.uk/dimpy/sage/dimpy/quantity.html )
>
> ---
>
> Thinking about the symbolic methods again now, the problem I saw when
> I looked into that is that in a physical equation each variable has
> units and there needs to be a way of keeping the units associated with
> the variables even as we combine symbolic expressions.
> >
>   

-- 



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to