Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Converting Radians into Degrees into Mathematica 6.01

1,393 views
Skip to first unread message

Lea Rebanks

unread,
Jan 25, 2008, 8:48:05 PM1/25/08
to
Dear All,

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...

Jaccard Florian

unread,
Jan 26, 2008, 12:16:48 AM1/26/08
to
I also noticed the difficulty to use Degrees with Mathematica.
In fact, 1 Degree is considered as Pi/180, so actually "Degrees" doesn't
really exist...

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

Bill Rowe

unread,
Jan 26, 2008, 12:27:57 AM1/26/08
to
On 1/24/08 at 4:50 AM, lreb...@netvigator.com (Lea Rebanks) wrote:

>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

Szabolcs Horvát

unread,
Jan 27, 2008, 5:45:07 AM1/27/08
to
Lea Rebanks wrote:
> Dear All,
>
> 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.

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

dh

unread,
Jan 30, 2008, 6:06:26 AM1/30/08
to

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

David Park

unread,
Jan 30, 2008, 6:14:31 AM1/30/08
to
<<Units`

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...

0 new messages