The Museum of HP Calculators

HP Forum Archive 17

[ Return to Index | Top of Index ]

Equation suffix
Message #1 Posted by Vincze on 16 Aug 2007, 1:24 p.m.

I'm not sure what this is called, so I apologize if title confusing. Is there a way on HP35s to show the result of a program with a suffix indicating the units it is being displayed in? Meaning, if program return 1000 and this represents km, can I display 1000 km somehow?

I see in manual that you can display text by using the EQN and the flag settings, but I am not sure if you can concatenate a variable result and text. If anyone knows how, please let me know as I am trying to write some programs for aeronautical calculations that I plan to share, but I would like to include this with the program.

      
Re: Equation suffix
Message #2 Posted by Gene Wright on 16 Aug 2007, 1:33 p.m.,
in response to message #1 by Vincze

No, you can't concatenate them.

Sorry!

            
Re: Equation suffix
Message #3 Posted by Vincze on 16 Aug 2007, 1:43 p.m.,
in response to message #2 by Gene Wright

átok ez! I say in Hungarian as it not nice. It okay Gene, not your fault calculator can't do what I want it to.

      
Re: Equation suffix
Message #4 Posted by bill platt on 16 Aug 2007, 2:01 p.m.,
in response to message #1 by Vincze

However, if you are really clever with flag 10 and the PSE and/or STOP commands, you might be able to have a message stored as an equation in the program and that message would say "km" or something, and so the answer come up, and then you press r/s and the units (the message stored as equation) come up afterwards.

Just a thought.

BTW Gene and or somebody else started a thread which showed how many different small letters could be generated on the 35S--you may manage to parse them into an equation-as-message!

            
Re: Equation suffix
Message #5 Posted by Vincze on 16 Aug 2007, 2:12 p.m.,
in response to message #4 by bill platt

Actually, I am doing that with the inputs so people don't have to memorize what silly variable letters mean, and then PSE and then INPUT. With answer though, I would rather it be all on one line, that way, I can display two lines of information with Y and X reg.

      
Re: HP-35s Equation suffix
Message #6 Posted by Karl Schneider on 16 Aug 2007, 2:12 p.m.,
in response to message #1 by Vincze

Quote:
Is there a way on HP35s to show the result of a program with a suffix indicating the units it is being displayed in? Meaning, if program return 1000 and this represents km, can I display 1000 km somehow?

That's a reasonable thing to want, and I've wondered about it.

Concatentation of strings and conversion of numbers to strings are not possible on the HP-35s. You can display a text message such as "AIRSPEED (KT)" followed by the value, using the Equation functionality and appropriate flags.

The long-discontinued RPN HP-42S and HP-41 (with X-functions?) could do those things, and the RPL HP-48/49/50 series actually allow units to be appended to value for use in calculations and display.

-- KS

Edited: 16 Aug 2007, 2:14 p.m.

            
Re: HP-35s Equation suffix
Message #7 Posted by Vincze on 16 Aug 2007, 2:32 p.m.,
in response to message #6 by Karl Schneider

Quote:

...and the RPL HP-48/49/50 series actually allow units to be appended to value for use in calculations and display.


I have 48GX, and it take insane person to understand how to program that. I go insane first with 35s, then I will try and fall over that one.
                  
Re: HP-35s Equation suffix
Message #8 Posted by Ed Look on 16 Aug 2007, 2:43 p.m.,
in response to message #7 by Vincze

It took me many, many weeks, maybe several months, a few days a week, a hour or two a day to finally get a program to actually successfully run on the 48G and 48G+. And, I could NOT have done it without the 48G Series Advanced Users' Reference guidebook. The DEBUG function on the 48G series machines helped greatly, too, of course.

The 35s was/is easy (easier?) for me only because as a college boy, I used a 34C, and in those days, I was more able to read and understand things better... and the abject need of programming longish physical chemistry calculations so that I could get at least three to five hours of sleep at night! So, perhaps a little urgency might help you too, whatever it may be! :D

                        
Re: HP-35s Equation suffix
Message #9 Posted by bill platt on 16 Aug 2007, 2:53 p.m.,
in response to message #8 by Ed Look

I found it very easy to write easy programs on the 48--as long as they were strictly or nearly strictly keystroke-saver type programs (no looping or conditionals)--it really isn't any different from RPN keystroke except that you save it to a variable with a name, and you have to decide whether to have internal or external variables.

Once you decide to have any sort of sophistication or I/O, then you have to learn the structured paradigm or RPL rather than merely using its keystroke analog.

You also have the ability to program entirely with algebraic objects rather than RPN equation representation--the algebraics are easier to read and debug and this is a great advantage of both the 48 (RPL) series as well as the 35s.

That being said, I use the RPN machines for Ad-Hoc as well as standard programs quite a lot.

I also have Hrastprogrammer's 41C emulator on the 48.

                              
Re: HP-35s Equation suffix
Message #10 Posted by Vincze on 16 Aug 2007, 3:25 p.m.,
in response to message #9 by bill platt

I try someday. It would be interesting to see a smiple 35s program converted to 48gx for simple keystroke saving. I do have advanced user manual and regular manual (I find online). Maybe there is easy example in one of those two books that I can follow.

Then again, learning to program 35s like getting earache in my eye, so I can only imagine what learning 48gx is like. ;)

            
Re: HP-35s Equation suffix
Message #11 Posted by Raymond Del Tondo on 16 Aug 2007, 2:56 p.m.,
in response to message #6 by Karl Schneider

Hello,

the HP-41 could display ALPHA messages without the X-Functions module, of course.
The X-F added some more functions for manipulating ALPHA.

Slightly OT: There was an HP-41 module which featured unit-management,
I think (but I'm not sure here) it was the Petroleum Fluids Pac.
Another module, the AECROM, added kinda 'expression evaluation' to the HP-41!

Raymond

                  
Re: HP-35s Equation suffix
Message #12 Posted by bill platt on 16 Aug 2007, 3:05 p.m.,
in response to message #11 by Raymond Del Tondo

Quote:
Another module, the AECROM, added kinda 'expression evaluation' to the HP-41!

A FOCAL langauage parser--taking alphanumeric input and parsing to an ad-hoc RPN program?

                  
Re: HP-35s Equation suffix
Message #13 Posted by Jim Creybohm on 17 Aug 2007, 11:32 p.m.,
in response to message #11 by Raymond Del Tondo

You are correct Raymond. The Petroleum Fluids pac does have unit management.

For example, you could convert from lbf/in3-Pa/m3 and XEQ CON. interestingly, if you wanted to convert the inverse, you would XEQ INCON. (or acre*ft-m2*cm)

What a powerful tool for the budding engineer! It was miles ahead of the competition (TI, Casio, Sharp etc had nothing even close), and I am certain was the primary reason I made it through petroleum thermodynamics.

And I continue to use it today. The PC just seems so clunky.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall