Integrating a program – HP 33s User Manual

Page 217

Advertising
background image

Solving and Integrating Programs

14–7

Program Lines:

(In RPN mode)

Description:

%   % Setup

for

X

.

%   Index

for

X

.

%  ! 

Branches to main routine.

Checksum and length: 4800 21

&   & Setup

for

Y

.

&   Index

for

Y

.

&  ! 

Branches to main routine.

Checksum and length: C5E1 21

    Main

routine.

  ! L

Stores index in i.

  / 

Defines program to solve.

  #1

1L2

2

Solves for appropriate variable.

  #$1

1L2

2 Displays

solution.

 ! Ends

program.

Checksum and length: D82E 18

   
)

)

)

Calculates f (x,y). Include INPUT or equation
prompting as required.

  !

Integrating a Program

In chapter 8 you saw how you can enter an equation (or expression) — it's added
to the list of equations — and then integrate it with respect to any variable. You
can also enter a program that calculates a function, and then integrate it with
respect to any variable. This is especially useful if the function you're integrating
changes for certain conditions or if it requires repeated calculations.

To integrate a programmed function:

1.

Enter a program that defines the integrand's function. (See "To write a

program for

³

FN" below.)

Advertising