Concept explainers
Write a user-defined function that calculates the maximum (or minimum) of a
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
(a)
Want to see the full answer?
Check out a sample textbook solutionChapter 8 Solutions
MATLAB: An Introduction with Applications
- Find the maximum or minimum value of the quadratic function f(x)=x28x+12.arrow_forwardDetermine whether the following algebraic equationcan be written as a linear function. 2x+3y=7arrow_forwardDogs Human Age From the data printed in the following table from the Minneapolis Star Tribune on September 20, 1998, a dogs age when compared to a humans age can be modeled using either a linear formula or a quadratic formula as follows: y1=4.13x+14.63 y2=-0.033x2+4.647x+13.347, where y1 and y2 represent a dogs human age for each formula and x represents the dogs actual age. Source: Mathematics Teacher. Dog Age Human Age 1 16 2 24 3 28 5 36 7 44 9 52 11 60 13 68 15 76 a. Find y1 and y2 when x=5. b. Find dy1/dx and dy2/dx when x=5 and interpret your answers. c. If the first two points are eliminated from the table, find the equation of a line that perfectly fits the reduced set of data. Interpret your findings. d. Of the three formulas, which do you prefer?arrow_forward
- Write the standard form of the quadratic function whose graph is a parabola with vertex (4,11) and that passes through the point (6,15).arrow_forwardRewrite f(x)=4x28x+1 in the f(x)=a(xh)2+k form by completing the square.arrow_forwardAn outpatient operating room charges each patient a fixed amount per surgery plus an amount per minute for use. One patient was charged 250 for a 30-minute surgery and another patient was charged 450 for a 90-minute surgery. Determine the linear function that would be used to compute the charges. Use the function to determine the charge when a patient has a 45-minute surgery.arrow_forward
- Find the zeros of each polynomial function. a. f(x)=x3x22x b. f(x)=2x4+2x2arrow_forwardHeight of a basketball The path of a basketball thrown from the free throw line can be modeled by the quadratic function f(x)=0.06x2+1.5x+6, where x is the horizontal distance in feet from the free throw line and f(x) is the height in feet of the ball. Find the maximum height of the basketball.arrow_forward
- Intermediate AlgebraAlgebraISBN:9781285195728Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage LearningCalculus For The Life SciencesCalculusISBN:9780321964038Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.Publisher:Pearson Addison Wesley,Big Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin Harcourt
- College Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage LearningGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw Hill