Program- Write a program to find minimum and maximum values for third-degree polynomials of the form:
f(x) = C3 x3 + C2 x2 + C1 x + Co
Use a step size of 0.1 . The user should input the range of the independent variable x.
- You must fill an array with values for f(x), and then find the largest and smallest values in the array.
- Your output should include the largest and smallest values of f(x), along with the associated values of x.
Check your values by using the subsequent polynomial:
f(x) = 0.2 x3 -3 x2 + 4 x + 9 ; -2 < x < 2
How to find the minimum and maximum values for third-degree polynomials?