Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am having a hard time creating this FUNCTION to be called later. Please help Consider the cubic equation: f(x) = Dx3 + Cx2 +
I am having a hard time creating this FUNCTION to be called later. Please help
Consider the cubic equation: f(x) = Dx3 + Cx2 + Bx + A. The turning points of the curve will occur where the derivative of f is zero. The locations of these zeros can be found by finding the roots (zeros) of the quadratic equation g(x) = 3Dx2 + 2Cx + B. Remember that the roots of a general quadratic equation Q(x) = ax2 + bx+c are: X = B+vb2-4ac 2a , X, = B-vb2-4ac 2a a. [6 points] Using the expressions above, write a MATLAB function that will take as input the coefficients A, B, C, and D, and provide as output the locations of the turning points of function f(x). Remember that there may be zero, one, or two turning points, so your function will need to work intelligently for each caseStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started