17. Write a user-defined function that calculates the maximum (or minimum) of a quadratic equation of the

Question:

17. Write a user-defined function that calculates the maximum (or minimum) of a quadratic equation of the form:

Name the function [x,y,w] = maxormin(a,b,c). The input arguments are the coefficients

a, b, and

c. The output arguments are x, the coordinate of the maximum (or minimum); y, the maximum (or minimum) value; and w, which is equal to 1 if y is a maximum and equal to 2 if y is a minimum.

Use the function to determine the maximum or minimum of the following functions:

(a) (b)

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

Step by Step Answer:

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