Numerical Integration By Discrete Points - HP -11C Owner's Handbook Manual

Hide thumbs Also See for HP-11C:
Table of Contents

Advertisement

188
Section 10: Applications Programs
For new tolerances go to stap 8.
For a naw f(x) go to the end of the
program
Set program made and delete lines
068-42,21,13
back to (CBL)[C)
Go to step 4.
Example:
Find a root of
f(x) =x8~x-1=0
with xo =
Keystrokes
Display
GTO}(C]
9 |[P/R
068-42,21,13
5
05 (1
075-
30
g)[P/R
(N[FIx]9
Set User mode.
(4)
0.000000010
Default cand Ax.
2 (8)
1.134724138
x;
teal
-0.000000004 = f(x;)
i
Newt
Ne
ee
Section 10: Applications Programs
169
Numerical Integration by Discrete Points
This program will perform numerical integration when a function
is known at a finite number of equally spaced points (discrete case).
The integrals are approximated by either the trapezoidal rule or
Simpson's rule.
Equations:
Let x9, 21, ...,, ben + | equally spaced points (x;
= x9 +jh,j=0,1,
2, ..., n) at which corresponding values f(xp), f(x) ..., f(x,) of the
function f(x) are known.
nr
The integral: yp f(x)dx may be approximated using:
0
1.
The trapezoidal rule:
Xp
=
f fixyds~*
f(xo) +2
se f(x) } + f(x)
yl
2.
Simpson's rule:
tn
LP rays ~* tx) +44 a) + 2f la) + Alin)
+ 2f(Xp-2) + 4F(Xn-1) + f(%p))
In order to apply Simpson's rule, n must be even. If it is not, Error 0
will be displayed.
KEYSTROKES
[DISPLAY | _EVSTRONES
| SPLAT _|
$tojO
001-42,21,11 | [STO
004-42,21,12|(T(LBL)1
}009-42,21,

Advertisement

Table of Contents
loading

Table of Contents