Using integration in a program – HP 33s User Manual

Page 219

Advertising
background image

Solving and Integrating Programs

14–9

Example:

Program Using Equation.

The sine integral function in the example in chapter 8 is

³

=

t

0

dx

(

Si(t)

)

x

x

sin

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:

(In RPN mode)

Display:

Description:

Ÿ

{}



Selects Radians mode.

| W

S



Selects label S as the integrand.

0

‘

2

_

Enters lower and upper limits of
integration.

| 

X

!!

³

/

) 

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

Advertising