242 Appendix E: A Detailed Look at f
Calculate the integral in the expression for J
4
(1),
0
cos (4θ − sin θ) dθ.
First, switch to Program mode and key in a subroutine that evaluates the
function f(θ) = cos (4θ − sin θ).
| ¥
000-
Program mode.
´ CLEAR M
000-
´ b 0
001-42,21, 0
4 002- 4
*
003- 20
®
004- 34
[
005- 23
-
006- 30
\
007- 24
|n
008- 43 32
Now, switch to Run mode and key the limits of integration into the X- and
Y-registers. Be sure the trigonometric mode is set to Radians, and set the
display format to i 2. Finally, press ´ f 0 to calculate the integral.
| ¥
Run mode.
0 v
0.0000
Keys lower limit into
Y-register.
| $
3.1416
Keys upper limit into
X-register.
| R
3.1416
Sets the trigonometric
mode to Radians.
´ i 2
3.14 00
Sets display format to
i 2.
´ f 0
7.79 -03
Integral approximated in
i 2.
®
1.45 -03
Uncertainty of i 2
approximation.