Discussion:
Degree Entry in Radians Mode
(too old to reply)
b***@hotmail.com
2006-09-26 05:03:34 UTC
Permalink
Getting pretty good at the 50g, but one thing puzzles me: how to
enter an angle in degrees while I'm in radians mode to have it
automatically convert. This is possible on the Voyage 200 by just
entering the "degree" symbol. When I try this in my 50g, it reports
"invalid Syntax" and highlights the degree symbol.

Mode: RPN

Example (in Radians mode):

Enter complex number 5 <angle>20 degrees
(5, < 20°)

"Invalid Syntax"

Of course, if I change to degrees mode and enter (5 < 20) it works
fine, but if I'm in Radians, can I enter an angle in degrees and have
it automatically convert to radians?

I read the manual for fun, but maybe in the 900 pages I missed it
somehow.

Thanks,

Scott
Veli-Pekka Nousiainen
2006-09-26 05:31:11 UTC
Permalink
Post by b***@hotmail.com
Getting pretty good at the 50g, but one thing puzzles me: how to
enter an angle in degrees while I'm in radians mode to have it
automatically convert. This is possible on the Voyage 200 by just
entering the "degree" symbol. When I try this in my 50g, it reports
"invalid Syntax" and highlights the degree symbol.
Mode: RPN
Enter complex number 5 <angle>20 degrees
(5, < 20°)
"Invalid Syntax"
Of course, if I change to degrees mode and enter (5 < 20) it works
fine, but if I'm in Radians, can I enter an angle in degrees and have
it automatically convert to radians?
I read the manual for fun, but maybe in the 900 pages I missed it
somehow.
Thanks,
Scott
Leave out the degrees units,
unfortunately no units are supportred in the Polar Mode

You may also optionally leave the comma out
Scott
2006-09-26 05:43:55 UTC
Permalink
Hi Scott,

Try this:

'p/180' '°' STO

Now any angle in degrees times the unit ° will convert automatically
to radians, and will evaluate properly in radian mode.

For example, enter 'sin(25·°)' in radian mode, and ->NUM to get a
value.

Best regards,

Scott Guth
Scott
2006-09-26 05:48:23 UTC
Permalink
In the message above the 'p/180' expression is 'pi/180' where pi is
replaced by the pi symbol on the HP50G.

Regards,
Scott
Post by Scott
Hi Scott,
'p/180' '°' STO
Now any angle in degrees times the unit ° will convert automatically
to radians, and will evaluate properly in radian mode.
For example, enter 'sin(25·°)' in radian mode, and ->NUM to get a
value.
Best regards,
Scott Guth
Scott
2006-09-26 05:56:36 UTC
Permalink
Hi Scott,

Try this:

Enter 'pi/180' '°' STO

where 'pi' should be replaced with the Greek letter pi on the HP50G.

Now enter any angle in degree mode times ° to convert to radians.

For example,

'sin(75·°)' ->NUM will give the correct answer in radian mode.

Have fun,

Scott Guth
Stefano Priore
2006-09-26 09:21:49 UTC
Permalink
Post by Scott
Hi Scott,
Enter 'pi/180' '°' STO
where 'pi' should be replaced with the Greek letter pi on the HP50G.
Now enter any angle in degree mode times ° to convert to radians.
For example,
'sin(75·°)' ->NUM will give the correct answer in radian mode.
There is no need reiventing the wheel, because this trick is already
built in the HP thanks to the units system - remove the '°' variable
if you have created it and try these:

45_°
30_arcmin
15_arcsec
+ + SIN

or

\pi 4 /
1_rad *
COS

and also

100_grad
TAN

The answer will always be correct, regardless the degree mode the calc
is in.
b***@hotmail.com
2006-09-26 17:13:15 UTC
Permalink
On 26 Sep 2006 02:21:49 -0700, "Stefano Priore"
Post by Stefano Priore
Post by Scott
Hi Scott,
Enter 'pi/180' '°' STO
where 'pi' should be replaced with the Greek letter pi on the HP50G.
Now enter any angle in degree mode times ° to convert to radians.
For example,
'sin(75·°)' ->NUM will give the correct answer in radian mode.
There is no need reiventing the wheel, because this trick is already
built in the HP thanks to the units system - remove the '°' variable
45_°
30_arcmin
15_arcsec
+ + SIN
or
\pi 4 /
1_rad *
COS
and also
100_grad
TAN
The answer will always be correct, regardless the degree mode the calc
is in.
Oh, I get it--it's a UNIT. Thanks so much,
Scott
b***@hotmail.com
2006-09-26 17:16:59 UTC
Permalink
Post by Stefano Priore
There is no need reiventing the wheel, because this trick is already
built in the HP thanks to the units system - remove the '°' variable
45_°
30_arcmin
15_arcsec
+ + SIN
or
\pi 4 /
1_rad *
COS
and also
100_grad
TAN
The answer will always be correct, regardless the degree mode the calc
is in.
Oh, sorry--that doesn't work. If I enter a complex number as (5 <
30_°) I get an error at the "angle" symbol. If I put 5 and 30_° on
the stack and execute R\->C, I get an error (which makes sense,
actually).

I'll try the "variable" approach and see if that gives me a meaningful
result.

--Scott
John H Meyers
2006-09-26 22:01:20 UTC
Permalink
If I enter a complex number as (5 \<) 30_°)
I get an error at the "angle" symbol.
Complex-number objects can have only real components (no units);
complex-valued algebraic *expressions* can contain units,
but angle units won't be recognized as such, because there is
no "polar syntax" format for *algebraic" complex-valued expressions.

'5.*EXP(i*30._\^o)' doesn't seem to get far, either
(but keep trying with CAS commands, e.g. SINCOS gets somewhere,
but \->NUM can't then handle the superfluous 'EXP(0_\^o)' factor).

Things which *do* work are:

(5. \<) 30.) where "30" is interpreted in current angle mode only.

30._\^o [with "degrees" symbol] followed by RAD SIN ==> 0.5

The following accepts *two* inputs in polar coordinates
and produces the correct complex number object,
assuming degrees for the angle, regardless of current modes:

\<< RCLF UNROT -19 SF CYLIN DEG \->V2 SWAP STOF \>>

[r->] [OFF]
b***@hotmail.com
2006-09-26 17:50:52 UTC
Permalink
I think I'll create a "TakeOver" program that toggles the mode between
DEG and RAD. Then, when I'm in the edit line, I can just hit a key
combo to change to DEG, enter my Polar Coordinate, and then change
back to RAD after I hit "Enter."

--Scott
Veli-Pekka Nousiainen
2006-09-29 05:55:06 UTC
Permalink
Post by b***@hotmail.com
I think I'll create a "TakeOver" program that toggles the mode between
DEG and RAD. Then, when I'm in the edit line, I can just hit a key
combo to change to DEG, enter my Polar Coordinate, and then change
back to RAD after I hit "Enter."
OR
You could have the flag/mode setting commands in
STARTED & EXITED
b***@hotmail.com
2006-09-29 06:32:26 UTC
Permalink
On Fri, 29 Sep 2006 08:55:06 +0300, "Veli-Pekka Nousiainen"
Post by Veli-Pekka Nousiainen
Post by b***@hotmail.com
I think I'll create a "TakeOver" program that toggles the mode between
DEG and RAD. Then, when I'm in the edit line, I can just hit a key
combo to change to DEG, enter my Polar Coordinate, and then change
back to RAD after I hit "Enter."
OR
You could have the flag/mode setting commands in
STARTED & EXITED
Oh, very good. I forgot about those. With a TakeOver (user key)
approach, though, I could dynamically change the mode while still in
the edit line, rather than only one value while the Started and Exited
programs ran.

Good reminder, thanks,
Scott
David Combs
2006-10-25 00:26:31 UTC
Permalink
Post by b***@hotmail.com
On Fri, 29 Sep 2006 08:55:06 +0300, "Veli-Pekka Nousiainen"
Post by Veli-Pekka Nousiainen
Post by b***@hotmail.com
I think I'll create a "TakeOver" program that toggles the mode between
DEG and RAD. Then, when I'm in the edit line, I can just hit a key
combo to change to DEG, enter my Polar Coordinate, and then change
back to RAD after I hit "Enter."
OR
You could have the flag/mode setting commands in
STARTED & EXITED
Oh, very good. I forgot about those. With a TakeOver (user key)
approach, though, I could dynamically change the mode while still in
the edit line, rather than only one value while the Started and Exited
programs ran.
Good reminder, thanks,
Scott
What's a "TakeOver" approach?

What's this STARTED & EXITED?

Thanks,

David
Veli-Pekka Nousiainen
2006-10-25 08:23:38 UTC
Permalink
Post by David Combs
Post by b***@hotmail.com
On Fri, 29 Sep 2006 08:55:06 +0300, "Veli-Pekka Nousiainen"
Post by Veli-Pekka Nousiainen
Post by b***@hotmail.com
I think I'll create a "TakeOver" program that toggles the mode between
DEG and RAD. Then, when I'm in the edit line, I can just hit a key
combo to change to DEG, enter my Polar Coordinate, and then change
back to RAD after I hit "Enter."
OR
You could have the flag/mode setting commands in
STARTED & EXITED
Oh, very good. I forgot about those. With a TakeOver (user key)
approach, though, I could dynamically change the mode while still in
the edit line, rather than only one value while the Started and Exited
programs ran.
Good reminder, thanks,
Scott
What's a "TakeOver" approach?
TakeOver means that a Userkey will execute even in command line
(eg. to change mode etc)
Post by David Combs
What's this STARTED & EXITED?
START_EDitor is executed when text editing start
You could change to full screen by
0 ->HEADER

EXIT_EDitor is executed when you exit the text (program) editor
I suggest
2 ->HEADER
Post by David Combs
Thanks,
You're welcoome
Post by David Combs
David
Brother-Peter
David Combs
2006-10-25 21:49:54 UTC
Permalink
Post by Veli-Pekka Nousiainen
Post by David Combs
What's a "TakeOver" approach?
TakeOver means that a Userkey will execute even in command line
(eg. to change mode etc)
Ah, like that key works in "immediate mode"?

(same thing?)
Post by Veli-Pekka Nousiainen
Post by David Combs
What's this STARTED & EXITED?
START_EDitor is executed when text editing start
You could change to full screen by
0 ->HEADER
EXIT_EDitor is executed when you exit the text (program) editor
I suggest
2 ->HEADER
Post by David Combs
Thanks,
You're welcoome
Post by David Combs
David
Brother-Peter
Veli-Pekka Nousiainen
2006-10-26 10:47:07 UTC
Permalink
Post by David Combs
Post by Veli-Pekka Nousiainen
Post by David Combs
What's a "TakeOver" approach?
TakeOver means that a Userkey will execute even in command line
(eg. to change mode etc)
Ah, like that key works in "immediate mode"?
Yes - you can think it as a temporary immediade mode key
Think it like pressing [NXT] during numeric command line input

b***@hotmail.com
2006-10-01 06:22:46 UTC
Permalink
Post by b***@hotmail.com
Getting pretty good at the 50g, but one thing puzzles me: how to
enter an angle in degrees while I'm in radians mode to have it
automatically convert. This is possible on the Voyage 200 by just
entering the "degree" symbol. When I try this in my 50g, it reports
"invalid Syntax" and highlights the degree symbol.
Mode: RPN
Enter complex number 5 <angle>20 degrees
(5, < 20°)
"Invalid Syntax"
Of course, if I change to degrees mode and enter (5 < 20) it works
fine, but if I'm in Radians, can I enter an angle in degrees and have
it automatically convert to radians?
I read the manual for fun, but maybe in the 900 pages I missed it
somehow.
Thanks,
Scott
Solution for me: Didn't have to write anything--just added ::
TakeOver x~ANG ; to a key assignment (from the OT49 library). Perfect.
I'm going to assign RECT/CYLIN/SPHERE now.

Thanks,
Scott
b***@hotmail.com
2006-10-01 06:24:03 UTC
Permalink
Post by b***@hotmail.com
Getting pretty good at the 50g, but one thing puzzles me: how to
enter an angle in degrees while I'm in radians mode to have it
automatically convert. This is possible on the Voyage 200 by just
entering the "degree" symbol. When I try this in my 50g, it reports
"invalid Syntax" and highlights the degree symbol.
Mode: RPN
Enter complex number 5 <angle>20 degrees
(5, < 20°)
"Invalid Syntax"
Of course, if I change to degrees mode and enter (5 < 20) it works
fine, but if I'm in Radians, can I enter an angle in degrees and have
it automatically convert to radians?
I read the manual for fun, but maybe in the 900 pages I missed it
somehow.
Thanks,
Scott
BTW, it turns out that one can change the modes WHILE being in the
edit line.
Loading...