Download Print this page

Sharp PC-1500 Applications Manual page 21

Hide thumbs Also See for PC-1500:

Advertisement

All
and more
about
Sharp
PC-1500
at http://www.PC-1500.info
SHARP
PROGRAM
TITLE
[Outline ]
LAGRANGE'S INTERPOLATION
PROGRAM NO.
P5-
A-4
CE-150 required
This
program
performs
interpolation by
using
Lagrange's
interpolation
polynomial to
calculate
the Yvalue for
the X
value to
be
interpolated.
[Operating Gu ide ]
Input
1.
Number
of
coordinates
(N) (N
<
61)
2.
Coordinates input
Key-in
coordinates X
(i)
and Y
(i). ( 1
.$.
i
~
N)
3.
After
"Z ="has been
displayed,
key-in
t
he
x-coordinte to
interpolate.
Output
4.
Interpolated
value
"
X=":
keyed-in x-coordinate to
interpolate
(=Z)
"P
=": Interpolated
value (y-axis)
The
above 3
and 4
can
be executed repeatedly.
[
Example
]
Number
of
coordinates:
4
Coordinates:
(5,3)
(8,9)
(I
2,4)
(6,1
)
Values
to
be
interpolated:
7
[
Contents]
(Formu
las)
I
To
m
ake
in terpolation,
using
Lagrange's
interpolation
polynomial,
determine
the
value
required for
interpolation.
Assuming the
number
of coordinates is n, determine a
polynomial
with
degree
n
-
I
P.
-
1
(x)
=
a.
-
1
x•
-
1
+
a.
,
x
-•+···+
a1x
1
+
a.
Since
P.
-
1 (
x)
=
1
/1
b,
(x)
+
y,b,
(X)
+···+
y. b.
(x)
For
k
=
l.2···
n,
=
II
(x
-
x;
)
(x;
-
x;)
This
yields
the
required
interpolation
value.
Do not sale this PDF!!!
-
15
-

Advertisement

loading