HP49G+



#2

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?


#3

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.

#4

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

#5

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

#6

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.


#7

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.


#8

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/


#9

Thanks for the advice.

Regards

Chris


#10

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

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


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP49G+ and HP49G compatibility Les Wright 17 862 06-02-2006, 08:23 PM
Last Post: James M. Prange (Michigan)
  HP49G and HP49G+ emualtor Harry 4 325 12-05-2004, 09:11 PM
Last Post: Vieira, Luiz C. (Brazil)
  HP49G+ vs. HP49G, pausing F. Casanellas 6 394 09-20-2003, 11:35 PM
Last Post: Ed Look

Forum Jump: