Question: Write a user-defined function that calculates the maximum (or minimum) of a quadratic equation of the form: f(x) = ax2 + bx + c Name

Write a user-defined function that calculates the maximum (or minimum) of a quadratic equation of the form:
f(x) = ax2 + bx + c
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) f(x) = 3x2 – 7x + 14
(b) f(x) = - 5x2 -llx + 15

Step by Step Solution

3.31 Rating (166 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Userdefined function function x y W max... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

652-B-F-F-M (774).docx

120 KBs Word File

Students Have Also Explored These Related Finance Questions!