AI Assistant
Notifications
Clear all

HP48 and HMS Addition Formula

11 Posts
6 Users
0 Reactions
1,852 Views
ppm
 ppm
(@ppm)
Posts: 464
Free
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

I have a fixed value (0?ø28ƒ??37ƒ?) that I need to rotate a paper map by. I know my trusty HP48 has a way to program one of the soft keys to be a formula, taking the value in Row 1 and add that fixed value to it.

So I need to type in a value in HH.MMSS, convert it to decimal, subtract my fixed value, and then convert back to HH.MMSS.

I used to program this thing all the time (20 years ago) but cannot seem to get it to work. I know I can do this in excel, but it would be easier in the long run if I could do it with my HP also. Anybody have any assistanceƒ??


 
Posted : August 5, 2019 8:43 am
jaro
 jaro
(@jaro)
Posts: 1722
Free
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

The 41 has a function that does specifically that,?ÿ HMS-?ÿ?ÿ , no need to convert to decimal first.

I feel sure the 48 would have the same thing.

On the 41 I would enter (negative)?ÿ?ÿ -.2837?ÿ?ÿ hit enter several times to fill the stack

key in your angle and hit HMS+?ÿ?ÿ (you are adding a negative number)

Hit the register down button once (R and the arrow pointing down) to get the -.2837 back in the display and you are ready to enter the next one.

I assign the HMS- to the shift -?ÿ button and the HMS+ to the shift + button.


 
Posted : August 5, 2019 8:53 am
Randy Rain
(@randy-rain)
Posts: 462
Free
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Purple key 4 (TIME)

...NXT (key with letter L on it)

...Softkey at the top HMS+ or HMS-?ÿ ?ÿalso has ->HMS (convert decimal to DMS)?ÿ ?ÿand HMS-> (convert from DMS to decimal)


 
Posted : August 5, 2019 9:09 am
Randy Rain
(@randy-rain)
Posts: 462
Free
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@jaro

The stack in the 48 works a little differently from the 41, the 41 only has 4 registers (x,y,z,and t) so when you hit enter 4 times they are all filled with the same # then you do your calc and hit the R down key you effectively refilled all of the registers with that same value again so you could just repeat ad infinitum and always have the number that you needed at the ready. With the 48 it has some huge number of registers so you have to hit the enter key lots of times to "push" that value way back in the stack. Not a big difference but a little bit different feel...lol,


 
Posted : August 5, 2019 9:19 am
freefallin1309
(@freefallin1309)
Posts: 37
Free
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@randy-rain

Beat me to it. This is how I go about quick angular addition/subtraction as well. 


 
Posted : August 5, 2019 9:23 am

ppm
 ppm
(@ppm)
Posts: 464
Free
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

I am familiar with the method mentioned above....

What I am looking for is to program a softkey to take an input (and without hitting enter once) having it convert. As in typing the following where S=my softkey:

45.2635S

and that number being converted to decimal, rotated, and converted back to HMS. Using the constant above it would convert it to?ÿ

44.5758

?ÿ


 
Posted : August 5, 2019 10:12 am
tim-v-pls
(@tim-v-pls)
Posts: 404
Free
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

It's been a long time, but I used to have the HMS->, ->HMS, HMS+, HMS- functions stored in the CST button. Look up how to store them there and you'll have it handy.


 
Posted : August 5, 2019 10:29 am
field-dog
(@field-dog)
Posts: 1577
Member
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@ppm

/<<

HMSƒ?? SWAP HMSƒ?? - ƒ??HMS

>>/

'DMS' STO

The softkey labeled 'DMS' will be in the VAR menu.

If I understand you correctly, you will enter two values on the stack.


 
Posted : August 5, 2019 10:31 am
Randy Rain
(@randy-rain)
Posts: 462
Free
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@ppm

I see, I never got very good at programming the 48 (not like the 41 anyway) as I recall program code chunks are stored as "variables" that can be assigned to the top row of softkeys but that's about all I remember, the availability of inexpensive pre-programmed cards pretty much put an end to my calculator programming.


 
Posted : August 5, 2019 10:34 am
ppm
 ppm
(@ppm)
Posts: 464
Free
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Field Dog?ÿ ?ÿ

Thank you. That was enough to jog my memory.?ÿ

What I was looking for was a subtract contstant "SUBC":

/<<

HMSƒ?? 0.2837 HMSƒ?? - ƒ??HMS

>>/

'SUBC' STO

?ÿ

Then I can make another one for the "ADDC"?ÿ?ÿ

/<<

HMSƒ?? 0.2837 HMSƒ?? + ƒ??HMS

>>/

'ADDC' STO


 
Posted : August 5, 2019 4:25 pm

ppm
 ppm
(@ppm)
Posts: 464
Free
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

It is actually easier than that...

/<<

0.2837 HMS+

>>/

?ÿ

And my memory is coming back in viewing variables, and editing them. Oh my, watch out 1993, I am back!!!!!


 
Posted : August 5, 2019 6:31 pm