Example:
Program Using Equation.
The sine integral function in the example in chapter 8 is
This function can be evaluated by integrating a program that defines the
integrand:
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:
(In RPN mode)
Ý
{ }
º s
S
Ï
0
2
º "
X
Ý
{ }
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
sin
t
∫
Si(t)
(
0
x
Defines the function.
The function as an expression. (Checksum and length:
0EE0 8).
Ends the subroutine
Display:
_
∫
Solving and Integrating Programs
x
)
dx
Description:
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.
14–9