Programming Example

The following programming example, and all examples in this chapter, were written with Chain or Algebraic set as the operating mode. Since a program executes the keys exactly as if you were manually pressing them, the current operating mode affects how the program executes. If you normally operate in RPN, verify your operating mode is set to either Chain or Algebraic before proceeding so you can follow along with the examples below.

For more information about setting the operating mode, refer to the section titled, The Mode Menu: Setting Preferences in Chapter 1, Basic Features.

The volume of a sphere is represented by the equation, 4π 3 . We will create a program that -- r

3

can calculate the volume of a sphere without having to retype all the keys each time you wish to calculate the volume of a given sphere. Verify your FIX setting is set for three digits to the right of the decimal point. For more information on the FIX setting, refer to the section titled, The Mode Menu: Setting Preferences in Chapter 1, Basic Features.

Table 13-2

Keys

Display

Description

 

 

 

 

:E

 

 

Enters program mode. The first program is

 

 

selected.

 

 

 

 

 

 

 

 

I

Starts editing program 0. Note the counter shows your current position in the program.

:h3*

4/3*

:sI

I=

We have entered a program that takes the currently displayed number, raises it to the 3rd power, and multiplies it by 4/3 of PI.

:(HOLD)

The STOP instruction tells the calculator that the program is ending. Note that to enter that special instruction, you need to press and hold the shift key, then press the

Lkey (STOP) before releasing both keys.

Programming 77

Page 85
Image 85
HP 30b Professional, 20b Consultant Financial manual Programming Example, Hold

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.