Answer the question
In order to leave comments, you need to log in
How to solve the cattle pen problem?
Task from the book Theoretical Minimum in Computer Science. Everything a programmer and developer needs By Vladston Ferreira Filo
https://books.google.ru/books?id=m6JSDwAAQBAJ&pg=P...
The conditions are clear:
A = w * l
100 = 2w + 3l
Формула дискриминанта Дискриминант D квадратного трёхчлена ax2 + bx + c равен b2 - 4ac.
Answer the question
In order to leave comments, you need to log in
Classically, problems
for extrema of functions are
solved
through
derivatives
: 50/3 = 16.(6)
A''(50/3) = -3 < 0 => maximum point
w = 25
But it is also possible through a quadratic equation:
A = 50l - (3/2)l 2 = 0
D = 50 2
l 1 = (-50 + sqrt(D)) / (2 * (-3/2)) = 0
l 2 = (-50 - sqrt(D)) / (2 * (-3/2) ) = 100/3
For a quadratic equation, the extremum point lies in the middle between the roots
l = (l 1 + l 2 ) / 2 = 50/3
w = 25
Algebra, 8-9-10 grades.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question