On 5/22/07, William Stein <[EMAIL PROTECTED]> wrote:
> By the way, here is what Mathematica does:
>
> In[7]:= N[Sin[10 Degree]]
> Out[7]= 0.173648
>
> I am in favor of something more like that, though I *loathe* adding
> anything further to the preparser.  Maybe this is more pythonic:
>
>    sage: sin(10 * degrees)
>
> i.e., degrees would be a Python object that represent 1 degree.
> The resulting object 10 * degrees would be a number with units.
>
> I would be interested in a general units package.

The degree is just a dimensionless number (= pi/180); no units package
needed for this (though perhaps for other reasons). Simply define it
as an ordinary constant like pi.

Fredrik

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to