EasyManua.ls Logo

HP HP-11C - Page 163

HP HP-11C
264 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Section
10:
Applications
Programs
161
STEP
INSTRUCTIONS
oaTa/unTs
KEYSTROKEs
[
OUTPUT
1
Key
in
the
program.
2
SetUser
mode.
3
Input
the
interval
between
x-values.
h h
4
Input
the
value
of
the
function
at x;
forj=0,1,
...,
n.
f(x;)
J
5
Calculate
the
integral
via
the
trapezoidal
rule.
Trap
|
OR,
by
Simpson'’s
rule
(7
must
have
been
even).
D)
Simp
[
6
For
new
case,
go
to
step
3.
Example:
Given
the
values
below
for
f(x)),j
=0,
1,
...,
8,
calculate
the
approximations
to
the
integral
2
_/(;
f(x)dx
by
using
the
trapezoidal
rule
and
by
using
Simpson’s
rule.
The
value
for
A
is
0.25.
J
1
2 3
4
5
6
7
8
X;
0.25|
0.5
0.75
1
1.25
1.5
1.75
2
f(x/)
2
2.8
38
52
7
9.2
12.1/15.6
20
Keystrokes
Display
[(Ex]2
Set
User
mode.
.25
0.25
2
0.00
2.8
1.00
3.8
2.00
5.2
8]
3.00

Table of Contents

Related product manuals