Suppose it is known that the graph of the function y = ax 3 + bx 2

Question:

Suppose it is known that the graph of the function y = ax3 + bx2 + cx + d passes through four given points (xi, yi ), i = 1, 2, 3, 4. Write a userdefined function that accepts these four points as input and computes the coefficients a, b, c, and d. The function should solve four linear equations in terms of the four unknowns a, b, c, and d. Test your function for the case where (xi , yi) = (-2, -20), (0, 4), (2, 68), and (4, 508), whose answer is a = 7, b = 5, c = -6, and d = 4.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: