I trying to Convert Radians into Degrees .
I really want the output value in unit degrees for further calculations.
I have tried this with no luck
Convert[0.36*Radian, Degree]
UnitsWrapper[20.626480624709636*Degree]
I looked on the Math Group Archive & came across various Units Package, but
still can not get it to work.
Any help or advice gratefully received.
Best Regards - Lea Rebanks...
If I want to display the angle in Degrees, I usually write:
0.36/Degree
Or, if you want to see the unit symbol :
(0.36/Degree)*"=B0"
But I'm afraid "Convert" can convert from Degree to Radian, but not from
Radian to Degree...
Regards
F.Jaccard
-----Message d'origine-----
De=A0: Lea Rebanks [mailto:lreb...@netvigator.com]
Envoy=E9=A0: jeudi, 24. janvier 2008 10:50
=C0=A0: math...@smc.vnet.net
Objet=A0: Converting Radians into Degrees into Mathematica
6.01
>I trying to Convert Radians into Degrees . I really want the output
>value in unit degrees for further calculations.
>I have tried this with no luck
>Convert[0.36*Radian, Degree]
>UnitsWrapper[20.626480624709636*Degree]
>I looked on the Math Group Archive & came across various Units
>Package, but still can not get it to work.
For me the simplest approach is to use the built in symbol Degree.
Typing any numeric value followed by Degree will return radians, i.e.,
180 Degree//N
returns the same thing as Pi//N
and 1/Degree//N returns 57.2958 the number of degrees in one radian.
--
To reply via email subtract one hundred and four
This is because Degree is a built-in constant (a number, just like Pi
and E) in Mathematica.
In spite of this, they have included Degree in the Units package, which
IMO wasn't a very wise decision ...
This is the unfortunate consequence:
In[1]:= << Units`
In[2]:= 12.0 Degree (* Degree is a number like Pi *)
Out[2]= 0.20944
In[3]:= Convert[0.36 Radian, Degree]
Out[3]= 0.36
In[4]:= Convert[36/100 Radian, Degree]
Out[4]= (324 Degree)/(5 Pi)
Szabolcs
Hi Lea,
it looks like there is a bug in Convert.
However, there is an easy way out. Degree is defined to be the number of
radians in one degree. Therefore, to change from 0.3 Radians to Degree
you would say: 0.3 / Degree
hope this helps, Daniel
If you convert an exact Radian number to Degree it works.
Convert[\[Pi]/2 Radian, Degree]
90 =B0
But if you use an approximate number it immediately multiplies Degree in and
gives back the original radian value.
The ExtendUnits6 package at my web site handles the problem by wrapping the
Degree symbol in a HoldForm.
Needs["Units6`ExtendUnits6`"]
0.36 Radian // ToUnit[Degree]
% // ReleaseHold
20.6265 =B0
0.36
The package has many other convenient features. For example you can define
your own units, or synonyms for units, GeV say for Giga ElectronVolt, or
mph for Mile/Hour. You can introduce reduced unit systems where certain
physical constants are set equal to one. Examples are geometric units in
general relativity and atomic units in quantum physics. Then you can enter
data in any compatible unit and convert to any compatible unit. You can
parse compatible units such as converting to {Hour, Minute, Second}. You can
do decibel conversions. And it is generally more convenient to use.
--
David Park
djm...@comcast.net
http://home.comcast.net/~djmpark/
"Lea Rebanks" <lreb...@netvigator.com> wrote in message
news:fne3gl$65c$1...@smc.vnet.net...