W
W
WorldEn2018-09-02 22:45:10
Mathematics
WorldEn, 2018-09-02 22:45:10

Error in the condition of the problem?

Problem Condition:
Implement the GetMinX method to find a number x such that the curve given by the equation
y(x) = ax^2 + bx + c
takes the minimum value.
The method must accept a non-negative coefficient a, as well as arbitrary coefficients b and c, and, if a solution exists, return the string representation of the desired xx, otherwise, the Impossible string.
Question
Most likely I'm wrong, but still. I decided that here it is necessary to solve a quadratic equation, I began to solve through the discriminant, but the system did not make such a decision. I had to use the hint and it turned out that x = -b / 2a is solved in one step .
Then why is it necessary in the task with ? To confuse what?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dollar, 2018-09-02
@WorldEn

c only affects the vertical positioning of the chart.
That is, we increase c , - and the graph rises. In this case, the coordinate of the minimum value (in x ) does not change.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question