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 Inumber2 ?= ) 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.

82 Programming

Page 90
Image 90
HP 20b Consultant Financial, 30b Professional manual Long Programs and Battery Life, Sub-Function Call

30b Professional, 20b Consultant Financial specifications

The HP 30b Professional calculator is a versatile tool designed specifically for business professionals, engineers, and educators. This reliable calculator merges advanced technologies with user-friendly features, enabling users to perform complex calculations with ease. The HP 30b is appreciated for its robust design and functionality, making it a top choice among those who require a dependable calculating device for various applications.

One of the standout features of the HP 30b is its capability to handle both RPN (Reverse Polish Notation) and algebraic entry modes. This flexibility allows users to choose the input method that best suits their preferences, enhancing productivity and minimizing calculation errors. The calculator also boasts a large, high-resolution display that ensures clarity when navigating through calculations and results.

The HP 30b comes equipped with essential business functions that include financial calculations, cash flow analysis, and statistical functions, all of which are invaluable in professional settings. Users can seamlessly compute interest rates, perform amortization schedules, and evaluate loan payments, making it an indispensable asset for finance-oriented individuals.

Another key characteristic is its programmable functionality. The HP 30b allows users to create custom programs tailored to specific tasks, which can save time and reduce manual entry errors. This programmable capability is especially beneficial for repetitive calculations, providing a significant efficiency boost in ambiguous or multi-step operations.

The durable construction of the HP 30b ensures longevity while the compact design makes it portable and convenient for on-the-go calculations. Additionally, the calculator features an energy-efficient design, which includes a long-lasting battery life, reducing the need for frequent replacements.

With a straightforward key layout and intuitive interface, the HP 30b is designed with user experience in mind. Whether in a classroom, office, or fieldwork scenario, users can easily navigate functions and access the features they need quickly. The HP 30b Professional calculator is truly an impressive blend of technology and practicality, making it an essential tool for anyone needing reliable performance in their daily calculations.