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

2.Select the program that defines the function to integrate: press {V label. (You can skip this step if you're reintegrating the same program.)

3.Enter the limits of integration: key in the lower limit and press šthen key in the upper limit.

4.Select the variable of integration and start the calculation: press { œvariable.

Notice that FN= is required if you're integrating a programmed function, but riot if you're integrating an equation from the equation list.

You can halt a running integration calculation by pressing †or f.

However, no information about the integration is available until the calculation finishes normally. To resume the calculation, press fagain. Pressing Wwhile an integration calculation is running cancels the FN operation. In this case, you should start FN again from the beginning.

To write a program for FN;

The program can use equations and RPN operations — in whatever combination is most convenient.

1.Begin the program with a label. This label identifies the function that you want to integrate (/label).

2.Include an INPUT instruction for each variable, including the variable of integration. INPUT instructions enable you to integrate with respect to any variable in a multi–variable function. INPUT for the variable of integration

Solving and Integrating Programs 14–7

File name 32sii-Manual-E-0424

 

Printed Date : 2003/4/24

Size : 17.7 x 25.2 cm