HP 39gii Tutorials Parts 1 and 2 up



#2

Part 1: PRINT, INPUT, string


Part 2: IF/THEN/ELSE/END, MSGBOX, CHOOSE


#3

Well done !

About PRINT command, as far I know it is not explain in the user guide, but you can use PRINT without any parameter to clear the screen. There is no CLS or CLEAR command, PRINT do the job

Another trick not explain is that you can easily create new global variables with just the syntax (in a program):

EXPORT NewGlobal ;

For example

EXPORT L10:={};

create a new global list in addition of the existing L0..L9

There is no need of 'string' command in such things as :

EXPORT AREA1()
BEGIN
INPUT(R, "Radius");
PRINT("THE AREA IS " + string(Pi*R²) + ".");
END;

PRINT("THE AREA IS " + Pi*R² + ".");
is OK

To evaluate in expresion in a string, the command is expr
expr("2+3") returns 5. If the variable X has the value 90, then expr("X+10") returns 100.

I also notice that the 39GII knows some physics contants (Math - PHYS ) but I don't know if wecan use them in program. It would simplify your program KEPLER (with a powerfull unit management in addition)


Edited: 10 Mar 2013, 5:19 a.m.


#4

Quote:
Well done !

About PRINT command, as far I know it is not explain in the user guide, but you can use PRINT without any parameter to clear the screen. There is no CLS or CLEAR command, PRINT do the job

Another trick not explain is that you can easily create new global variables with just the syntax (in a program):

EXPORT NewGlobal ;

For example

EXPORT L10:={};

create a new global list in addition of the existing L0..L9

There is no need of 'string' command in such things as :

EXPORT AREA1()
BEGIN
INPUT(R, "Radius");
PRINT("THE AREA IS " + string(Pi*R²) + ".");
END;

PRINT("THE AREA IS " + Pi*R² + ".");
is OK

To evaluate in expresion in a string, the command is expr
expr("2+3") returns 5. If the variable X has the value 90, then expr("X+10") returns 100.

I also notice that the 39GII knows some physics contants (Math - PHYS ) but I don't know if wecan use them in program. It would simplify your program KEPLER (with a powerfull unit management in addition)



Thanks!

I note that string is not necessary. However, what if the expression has addition in it (a+b for example)? Staying on the safe side - I think.

Units in programs would help - not sure if I can use them. I was not able to use units in the Solver app.

#5

Nice, thank you.
Herman


Possibly Related Threads...
Thread Author Replies Views Last Post
  Gathering USB dumps for Connectivity Kit <-> 39gII communication... debrouxl 2 249 12-01-2013, 12:59 PM
Last Post: Marcus von Cube, Germany
  New firmware for HP 39gII Mic 6 377 11-26-2013, 06:23 PM
Last Post: DeboT
  Tutorials #5 (STARTAPP, RGB) and #6 (Subroutines) Are Up Eddie W. Shore 0 115 11-17-2013, 04:23 PM
Last Post: Eddie W. Shore
  HP Prime vs. 39gII Connectivity Kit Marcus von Cube, Germany 3 282 10-09-2013, 05:44 PM
Last Post: Marcus von Cube, Germany
  HP Prime Tutorials Paul D. Fox 6 350 10-06-2013, 02:17 PM
Last Post: Tim Wessman
  HP-97 Printer parts davorin 5 315 08-29-2013, 02:10 AM
Last Post: Benoit Maag
  [HP 39Gii] - Bug report Jean-Michel 1 194 08-28-2013, 10:53 AM
Last Post: Tim Wessman
  hp 39gii lcd clear question giancarlo 7 401 08-18-2013, 07:30 AM
Last Post: Mic
  Identify HP-01 Prototype parts aj04062 3 242 06-11-2013, 09:49 PM
Last Post: aj04062
  integration on 39gII emulator Wes Loewer 29 1,017 06-07-2013, 05:58 PM
Last Post: Chris Smith

Forum Jump: