Question 310301: Find the cubic polynomial which takes the following values y(0) = 1, y(1) = 0, y(2) = 1 and y(3) = 10 . Hence obtain the value of y(0.5).
Answer by stanbon(75887) (Show Source):
You can put this solution on YOUR website! Find the cubic polynomial which takes the following values y(0) = 1, y(1) = 0, y(2) = 1 and y(3) = 10 . Hence obtain the value of y(0.5).
----------------------------
Procedure:
Cubic form: y = ax^3 + bx^2 + cx + d
---
You need to determine a, b, c, and d.
----
You are given 4 points and can generate 4 equations
such as:
y(3) = 10 gives you equation
10 = a(3)^3 + b(3)^2 + c(3) + d
---
y(2) = 1 gives you equation
1 = a(2)^3 + b(2)^2 + c(2) + d
...
etc.
====
So, having the 4 equations you can solve for
a, b, c, d
==============================
Cheers,
stan H.
==============================
|
|
|