Question

Take-home test for Unit 7

Intro

-10

-5

60

40

-201

A cubic polynomial is a function of x of the form A x³ + Bx²+Cx+ D, where parameters A, B, C, and D are real

numbers. Consider three concrete examples:

P1(x)

201

P₂(x)=x²-x²+4x-30

P₂(x) = x³ + 0,5x²+x-6

P(x)=3x²³ +13.6x² +13.2 x + 37.8

A root of a cubic polynomial P(x) is a value r such that P(r) - 0.

For example, r-3 is a root of Pr:

0

100

P₁(3)-37-37+4-3-30-27-9+12-30-0

0

10

(3,0)

In Python, a polynomial can be implemented as a function. The three examples shown above can be written as:

Question image 1