Integrating a program – HP 35s Scientific Calculator User Manual

Page 241

Advertising
background image

Solving and Integrating Programs

15-7

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.)

Program Lines:

(In RPN mode)

Description:

  

Setup for X.

 

Index for X.

  

Branches to main routine.

Checksum and length: 62A0 11
  

Setup for Y.

 

Index for Y.

  

Branches to main routine.

Checksum and length: 221E 11
  

Main routine.

  

Stores index in I

  

Defines program to solve.

 

Solves for appropriate variable.

 

Displays solution.

 

Ends program.

Checksum and length: D45B 18
  


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

 

Advertising