Simple programming – HP 32SII User Manual

Page 163

Advertising
background image

Simple

Programming

12–1

File name 32sii-Manual-E-0424
Printed Date : 2003/4/24 Size : 17.7 x 25.2 cm

12

Simple Programming

Part 1 of this manual introduced you to functions and operations that you can
use manually, that is, by pressing a key for each individual operation. And
you saw how you can use equations to repeat calculations without doing all
of the keystrokes each time.

In part 2, you'll learn how you can use programs for repetitive
calculations —–calculations that may involve more input or output control or
more intricate logic. A program lets you repeat operations and calculations in
the precise manner you want.

In this chapter you will learn how to program a series of operations. In the
next chapter, "Programming Techniques," you will learn about subroutines
and conditional instructions.

Example:

A Simple Program.

To find the area of a circle with a radius of 5, you would use the

formula A =

π r

2

and press

5

z

:

{

M

y

to get the result for this circle, 78.5398.

But what if you wanted to find the area of many different circles

?

Rather than repeat the given keystrokes each time (varying only the "5" for
the different radii), you can put the repeatable keystrokes into a program:



º







π



º

Advertising