The Museum of HP Calculators

HP Forum Archive 15

[ Return to Index | Top of Index ]

HP49G+
Message #1 Posted by Chris Dean on 10 Nov 2005, 4:30 a.m.

I noticed in the principal features on the HPCC site that the HP49G series calculators are programmable in HP Basic.

Quote:
RPL, HP Basic and Assembly language programming

Is this true?

      
Re: HP49G+
Message #2 Posted by Valentin Albillo on 10 Nov 2005, 5:46 a.m.,
in response to message #1 by Chris Dean

Hi, Chris:

Chris wrote:

"I noticed in the principal features on the HPCC site that the HP49G series calculators are programmable in HP Basic. [...] Is this true?

If you call code like this "HP BASIC":

      FOR(i,1,100) 
      DISP(i,1); 
      IF I+1-5==50 THEN DISP("Hello World",2) ELSE DISP("I'm off",2) END 
      STEP(1) 
then, yes. Else, no.

There are, however, very good emulators available for the 48/49 series that can provide the goods. For instance, HP-71X by Hrastprogrammer does perfectly emulate an HP-71B, and this allows you to program in HP-71B BASIC, which is an advanced version of the usual 'technical' BASIC dialect found in larger, vintage HP computers of old, such as the HP-85, HP-86/87, or HP-75, say. Using this emulator would allow you to write and run code like this:

10  DESTROY ALL @ OPTION BASE 1 @ INPUT "#Points, Degree=";N,D
20  DIM X(N),Y(N),A(D+1) @ MAT INPUT X,Y @ CALL LSP(X,Y,A) @ MAT DISP A @ END
30  SUB LSP(X(),Y(),A()) @ N=UBND(X,1) @ D=UBND(A,1) @ DIM U(N,D),V(D)
40  MAT U=CON @ FOR I=1 TO N @ FOR J=2 TO D @ U(I,J)=X(I)^(J-1) @ NEXT J
50  NEXT I @ MAT V=TRN(U)*Y @ MAT U=TRN(U)*U @ MAT A=SYS(U,V) @ END SUB
which, by the way, is a little program I wrote to compute the coefficients of the Nth-degree least squares polynomial regression to an arbitrary set of datapoints (X,Y).

Thus, by using HP-71X you can develop/run similar code in this powerful version of HP Technical BASIC on your 48/49.

Best regards from V.

Edited: 10 Nov 2005, 6:00 a.m.

      
Re: HP49G+
Message #3 Posted by Arnaud Amiel on 10 Nov 2005, 5:47 a.m.,
in response to message #1 by Chris Dean

Yes but it is a special "hp basic" for the 38, 39, 40 and 49 calculators. It only works in algebraic mode. I haven't figured it out completely (especially CASE) and it is MUCH slower than RPL.

Arnaud

      
Re: HP49G+
Message #4 Posted by James M. Prange (Michigan) on 10 Nov 2005, 6:04 a.m.,
in response to message #1 by Chris Dean

As for as I've been able to determine, "HP Basic" means using the 49 series in ALG mode, and if you want to do that, why buy a 49 series in the first place? I doubt that there's much resemblence to "BASIC", as in "Beginner's All-purpose Symbolic Instruction Code".

Regards,
James

      
Re: HP49G+:Stick With RPL Programs
Message #5 Posted by I, Claudius on 10 Nov 2005, 6:07 a.m.,
in response to message #1 by Chris Dean

Chris: if you want to program your 49+, I heartily recommend you program it in RPL style. And of you can use FOR...NEXT loops and such within an RPL program. There are several good tutorials on RPL programming available for free download from www.hpcalc.org - best of luck.

            
Re: HP49G+:Stick With RPL Programs
Message #6 Posted by Chris Dean on 10 Nov 2005, 6:48 a.m.,
in response to message #5 by I, Claudius

Thank you all very much for your interesting and informative responses. I think I will enter the world of RPL programming! I have tried it before but I did not get on with it. A good tutorial as suggested could provide the solution. I have downloaded 'Programming in User RPL' by Eduando M Kalinowski which seems to provide a tutorial plus exercises with answers.

                  
Re: HP49G+:Stick With RPL Programs
Message #7 Posted by I, Claudius on 11 Nov 2005, 8:13 a.m.,
in response to message #6 by Chris Dean

Years ago I started off with "An Easy Course In Using and Programming the HP48GX" by the Coffin brothers, who helped write the 48 manuals. It's still available at http://www.read-gpi.com/

                        
Re: HP49G+:Stick With RPL Programs
Message #8 Posted by Chris Dean on 11 Nov 2005, 11:20 a.m.,
in response to message #7 by I, Claudius

Thanks for the advice.

Regards

Chris

                              
Re: HP49G+:Stick With RPL Programs
Message #9 Posted by Chris Dean on 11 Nov 2005, 1:32 p.m.,
in response to message #8 by Chris Dean

I think I have just found what I have been looking for!

Quote:
Announcement: The HP49g+ / HP48gII Advanced Users Reference Manual now available!


[ Return to Index | Top of Index ]

Go back to the main exhibit hall