HMS in / out

  • Follow


I think its rather slow to use my 49g+ in my navigation class. We use 
HMS in formulas with sin, cos etc.

I cant get this grade/minute sign to work like i want. And i feel this 
deg->des des->deg rather slow compared to casio's souluting, and its 
easy to make mistakes (convert twice, wrong way etc)

Or am i missing somthing fundamental here?

Do you understand my problem?

Regards

Dagfinn Kristiansen
email still dont work
0
Reply Dagfinn 3/2/2007 7:04:54 PM

On Fri, 02 Mar 2007 13:04:54 -0600, Dagfinn Kristiansen wrote:

> I think its rather slow to use my 49g+ in my navigation class.
> We use HMS in formulas with sin, cos etc.
>
> I can't get this grade/minute sign to work like i want.
> And i feel this deg->des des->deg rather slow
> compared to casio's solution,
> and it's easy to make mistakes (convert twice, wrong way etc)

> Do you understand my problem?

I didn't know that Casio ever really "converted" except in
the display, but my experience with Casio is getting ancient.

Anyway, with my old Casio, you have to press the "DMS" key
up to three times per entry of dd,mm,ss -- as a delimiter
between dd and mm and ss, and then again after ss,
whereas on HP you press HMS\-> only once,
after having entered dd.mmss

To display a pure degrees value as hh,mm,ss on Casio,
you need to press shift then DMS, is that still the same?

But Casio then merely shows the result in the display,
without changing the actual stored value,
so you can never accidentally leave anything stored
internally as hh,mm,ss (whereas you can forget on HP).

This last fact about Casio is like where HP does not
"convert" vectors to polar coordinates internally,
but just shows polar coordinates on the display
in CYLIN mode -- since the internal object
is always stored as rectangular coordinates
no matter how displayed, you can't make any mistake
"converting" the coordinates twice, etc.

On the other hand, if you press DMS on Casio
accidentally, at the wrong time, or press it
the wrong number of times, then you can cause
internal conversion by mistake, is that not still the case?
(the only Casio in my drawer has a dead battery,
so thanks for reminding me to change it this year :)

And finally, HP shows no special symbols
between dd,mm,ss whereas Casio has obvious symbols,
which help to avoid confusion, and HP's HMS\-> vs \->HMS
also requires a momentary pause in thought,
to figure out which one to use, right?

Well, the calcs each have their own style;
each has an advantage here, a disadvantage there.

Maybe the thing to do is to arrange time-sharing --
spend the Summer with HP and the Winter with Casio :)

[r->] [OFF]
0
Reply John 3/3/2007 7:29:49 AM


On Sat, 03 Mar 2007 01:29:49 -0600:

[making HP calc act like Casio, for Dagfinn Kristiansen]

The following program (HP49G[+]/50G/48Gii only)
displays a real number on level 1 in dd,mm,ss format,
without changing its actual memory value at all (the
displayed string overlays level 1 on the screen only)

Example: -4.085 ==> -4�5'6."

This is more or less equivalent to Casio's
"display as dd,mm,ss" function:

\<< STD DUP \->HMS DUP IP R\->I 176 CHR + SWAP ABS FP
1E2 * DUP IP R\->I 39 CHR + SWAP FP 1E2 * 34 CHR + + +
#25FE5h SYSEVAL 2 FREEZE \>> 'dms' STO

Caution: Backup memory before using!

[r->] [OFF]
0
Reply John 3/3/2007 9:50:16 AM

Thank you
When i look at the solution i think its art. :-)

Is it possible to put it in hh.mm,dd , my nautical almanac use this 
format. Decimal insted of second.

I guess this work both ways.

Will try out this soon.

Regards
Dagfinn Kristiansen

John H Meyers wrote:
> On Sat, 03 Mar 2007 01:29:49 -0600:
> 
> [making HP calc act like Casio, for Dagfinn Kristiansen]
> 
> The following program (HP49G[+]/50G/48Gii only)
> displays a real number on level 1 in dd,mm,ss format,
> without changing its actual memory value at all (the
> displayed string overlays level 1 on the screen only)
> 
> Example: -4.085 ==> -4�5'6."
> 
> This is more or less equivalent to Casio's
> "display as dd,mm,ss" function:
> 
> \<< STD DUP \->HMS DUP IP R\->I 176 CHR + SWAP ABS FP
> 1E2 * DUP IP R\->I 39 CHR + SWAP FP 1E2 * 34 CHR + + +
> #25FE5h SYSEVAL 2 FREEZE \>> 'dms' STO
> 
> Caution: Backup memory before using!
> 
> [r->] [OFF]
0
Reply Dagfinn 3/4/2007 9:04:41 PM

> > Example: -4.085 =3D=3D> -4=BA5'6."
>
> > This is more or less equivalent to Casio's
> > "display as dd,mm,ss" function:
>
> > \<< STD DUP \->HMS DUP IP R\->I 176 CHR + SWAP ABS FP
> > 1E2 * DUP IP R\->I 39 CHR + SWAP FP 1E2 * 34 CHR + + +
> > #25FE5h SYSEVAL 2 FREEZE \>> 'dms' STO
>
> > Caution: Backup memory before using!
>
> > [r->] [OFF]

or you can try my version (hp49g+/50g):

\<< DUP \->HMS 4. RND 0. HMS+ 4. FIX 34. CHR + "." "\^o" SREPL DROP
SREV DUP 1. 3. SUB "'" + SWAP 4. 9. SUB + SREV STD 9. DISP 2. FREEZE
\>>

cheers,
reth


0
Reply reth 3/5/2007 12:20:17 PM

On Sun, 04 Mar 2007 15:04:41 -0600, Dagfinn Kristiansen wrote:

> Is it possible to put it in hh.mm,dd
> my nautical almanac use this format. Decimal instead of second.

Do you mean to forget about "seconds" and stop at "minutes" of arc?

What I posted is identical to what Casio does (as requested?),
and delivers integer degrees, integer minutes, and decimal seconds
(to the maximum number of places available in the original result).

I also do not presume the setting of "fraction mark" (flag -51),
as "reth" does, so just fix up whatever he's doing :)

Here are basic converters for degrees and minutes only (no seconds):

@ dd.dddddddddd -> dd.mmmmmmmmmm
\<< DUP FP .4 * - \>>

@ dd.mmmmmmmmmm -> dd.dddddddddd
\<< DUP FP 1.5 / + \>>

These are of course just simpler versions of:
"Hours (Degrees), Minutes, Seconds" [2000/06/28]
http://groups.google.com/group/comp.sys.hp48/msg/e51ab09539f0ea7c

Thus to convert pure degrees into degrees,minutes
and to display that only on the screen:

@ HP49G[+]/50G/48Gii *only*
\<< DUPDUP FP .4 * - \->STR #25FE5h SYSEVAL 2 FREEZE \>>

I was too lazy to "prettify" this with special symbols,
but the fact that the display shifts to the left side
(and that the stack level number disappears)
may be sufficient to indicate that something has happened :)

[r->] [OFF]
0
Reply John 3/6/2007 12:32:26 AM

> I was too lazy to "prettify" this with special symbols,
> but the fact that the display shifts to the left side
> (and that the stack level number disappears)
> may be sufficient to indicate that something has happened :)
>
> [r->] [OFF]

Hi John, I only slightly modified one of my routines and left the
"leading spaces" part off.
BTW your suggestion gives wrong answer for angles smaller than 1
degree for obvious reasons :)
cheers,
reth

0
Reply reth 3/6/2007 1:09:31 AM

> BTW your suggestion gives wrong answer for angles smaller than 1
> degree for obvious reasons :)
> cheers,
> reth

make that negative angles < 1deg

0
Reply reth 3/6/2007 1:11:39 AM

On Mon, 05 Mar 2007 06:20:17 -0600:

> 9. DISP

Doesn't work so well on my 49G (or 48Gii),
except perhaps with font size 6?

Nothing requires us to consider all models,
all modes (fraction mark?), and all font heights,
but it's nice if we can.

Internal function DISPLASTROW needs a string arg,
displays on the last stack area line
for all newer models, with all screen sizes and all fonts
(not quite perfectly for size 6, but neither does DISP);
this function didn't exist in 48[S/G][X/+] series,
but 7 DISP was universally correct for that series.

[r->] [OFF]
0
Reply John 3/6/2007 1:14:07 AM

On Mar 6, 12:14 pm, "John H Meyers" <jhmey...@nomail.invalid> wrote:
> On Mon, 05 Mar 2007 06:20:17 -0600:
>
> > 9. DISP
>
> Doesn't work so well on my 49G (or 48Gii),
> except perhaps with font size 6?
>
> Nothing requires us to consider all models,
> all modes (fraction mark?), and all font heights,
> but it's nice if we can.
>
> Internal function DISPLASTROW needs a string arg,
> displays on the last stack area line
> for all newer models, with all screen sizes and all fonts
> (not quite perfectly for size 6, but neither does DISP);
> this function didn't exist in 48[S/G][X/+] series,
> but 7 DISP was universally correct for that series.
>
> [r->] [OFF]

I never had a 49g :) that's why I specified otherwise, also sort of
dislike SYSEVALs.
I know about internal DISP routines and found handy having NDISP
around all the time
cheers,
reth

0
Reply reth 3/6/2007 1:37:16 AM

On Mon, 05 Mar 2007 19:09:31 -0600, reth <reth@abv.bg> wrote:

> your suggestion gives wrong answer
> for angles smaller than 1 degree for obvious reasons :)

The original complete "Casio" version doesn't display sign of zero
(could be adjusted); the simpler "minutes only" version
isn't affected ("keep it simple" is thus a good policy :)

[r->] [OFF]
0
Reply John 3/6/2007 1:51:18 AM

10 Replies
277 Views

(page loaded in 0.071 seconds)

Similiar Articles:













7/24/2012 12:59:41 AM


Reply: