510746
90
Zoom out
Zoom in
Previous page
1/114
Next page
Programming82
Note:
Label numbers must be unique. Only one label with a given number can exist in the
calculator.
You can jump from one program to another if you know that there is a specific label
number in another program.
Use the tests ? , ? , ? , ? , ? and ? (the top row of keys) to verify
if two numbers are equal, different, and strictly, or not strictly, greater or smaller.
These are dual operator-operands and are used in the same way as addition or
multiplication ( in Algebraic and Chain modes, number1 ?= number2 =, and in
RPN mode, number1 I number2 ?= ) are used, in that they return 0 if false,
and 1 if true. Note that in RPN mode, the tests do not remove the arguments from
the stack, but do push a 0 or 1.
Long Programs and Battery Life
Although it is possible to create programs on the HP 30b that can run for a long period of
time (calculating PI to 700 decimal places, for example) this is not something that we advise,
as it will drain the batteries in less than a day.
Programming on the HP 30b was designed to create small programs to perform a function
not present in the calculator, or to automate a task requiring many keystrokes and then run
relatively quickly. If a program takes more than one second to run, the CPU speed will be
reduced in order to preserve battery life.
Sub-Function Call
It is often useful in a program to have the option to reuse a sub-program from various locations.
To avoid having to retype these sub-programs each time they are necessary, you can use the
(HOLD)
and (HOLD) functions.
CALL, followed by a label number, will jump to the specified label, in the same way a GOTO
instruction does, but, when the RETURN instruction is encountered, the program will continue
execution just after the CALL function. This is equivalent to you temporarily pausing in an
activity to answer a phone call, and then returning to your prior activity after the call. Up to
four calls can be nested at the same time. Another way to picture this might be going to turn
off your stove, while you are answering the doorbell that rang while you were answering your
phone, while you were writing an email… it's hard for us, but computers are good at stacking
tasks in this way.
Enter a call function the same way you enter a GOTO function.
90


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for HP 30b at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of HP 30b in the language / languages: English as an attachment in your email.

The manual is 2,43 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info