Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 case

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

T Sql Window Functions For Data Analysis And Beyond

Authors: Itzik Ben Gan

2nd Edition

0135861446, 978-0135861448

More Books

Students also viewed these Databases questions

Question

Is SHRD compatible with individual career aspirations

Answered: 1 week ago