Você está na página 1de 2

Ajuste polinomial de curvas

2
Determar el polinomio P(X)=a0 Ca1x Ca2x Cuya grafica pasa por lon puntos 1, 4 , 2, 0 y 3, 12
P(1)=a0 Ca1 Ca2 = 4
P(2)=a0 C2a1 C4a2 = 0
P(3)=a0 C3a1 C9a2 = 12
> restart;
> with plots ;
animate, animate3d, animatecurve, arrow, changecoords, complexplot, complexplot3d,
conformal, conformal3d, contourplot, contourplot3d, coordplot, coordplot3d, densityplot,
display, dualaxisplot, fieldplot, fieldplot3d, gradplot, gradplot3d, implicitplot,
implicitplot3d, inequal, interactive, interactiveparams, intersectplot, listcontplot,
listcontplot3d, listdensityplot, listplot, listplot3d, loglogplot, logplot, matrixplot, multiple,
odeplot, pareto, plotcompare, pointplot, pointplot3d, polarplot, polygonplot, polygonplot3d,
polyhedra_supported, polyhedraplot, rootlocus, semilogplot, setcolors, setoptions,
setoptions3d, spacecurve, sparsematrixplot, surfdata, textplot, textplot3d, tubeplot

(1)

> with LinearAlgebra ;


> A d Matrix

1, 1, 1, 4, , 1, 2, 4, 0 , 1, 3, 9, 12
A :=

> LinearSolve A ;

1 1 1
1 2 4

1 3 9 12
24

K28
2

> P X = 24 K28 x C8 x
2

> plot 24 K28$x C8$x , x = 1 ..5

P X = 8 x K28 x C24

(2)

(3)

(4)

80
70
60
50
40
30
20
10
0

>

3
x

Você também pode gostar