You are on page 1of 1

Exerccio da Pgina 2 do Captulo 3: implementar no MATHCAD a interpolao da

funo:
senh( )
( )
senh( )
x
y f x
x

= =


TOL 10
9
:= 5 := c sinh ( ) := f x ( ) y

c
x 0 = if
y
sinh x ( )
xc
otherwise
y
:=
Coef x ( ) n
.8
x

x .1 i x +
pot 1
b
i
f x ( )
A
i j ,
pot
pot pot x
j 0 n .. for
i 0 n .. for
c lsolve A b , ( )
c
:=
p
int
x c , ( ) n last c ( )
y c
n

y y x c
i
+
i n 1 0 .. for
y
:=
x .04 := c Coef x ( ) := f
int
x ( ) p
int
x c , ( ) :=
k 0 100 .. := x
k
k
100
:=
0 0.2 0.4 0.6 0.8 1
0
0.2
0.4
0.6
0.8
f x
k
( )
f
int
x
k
( )
x
k
Comparao entre a funo e sua forma interpolada
x 0.04 =
0 0.2 0.4 0.6 0.8 1
0
2 10
11

4 10
11

6 10
11

8 10
11

f x
k
( ) f
int
x
k
( )
x
k
Erro da Interpolao Polinomial

You might also like