Example: Program Using Equation.

The sine integral function in the example in chapter 8 is

Si(t) =

t

(

sin x

)dx

0

 

 

 

x

 

 

 

This function can be evaluated by integrating a program that defines the integrand:

 

Defines the function.

 1%2ª%

The function as an expression. (Checksum and length:

 

0EE0 8).

 !

Ends the subroutine

Checksum and length of program: BDE3 17

Enter this program and integrate the sine integral function with respect to x from 0 to 2 (t = 2).

Keys:

Display:

Description:

(In RPN mode)

 

 

Ÿ{}



WS



0 ‘2

_

X

!!

 

/

 

) 

Ÿ{}

) 

Selects Radians mode.

Selects label S as the integrand. Enters lower and upper limits of integration.

Integrates function from 0 to 2; displays result.

Restores Degrees mode.

Using Integration in a Program

Integration can be executed from a program. Remember to include or prompt for the limits of integration before executing the integration, and remember that accuracy and execution time are controlled by the display format at the time the program runs. The two integration instructions appear in the program as:

/ label

Solving and Integrating Programs 14–9