July 2020
Intermediate to advanced
474 pages
8h 51m
English
Let's solve the following quadratic equation:
Figure 1.29: Quadratic equation to be solved
We already know that the solution to this quadratic equation is x=5.
We can use an optimizer to solve this. For the optimizer, x is the variable and the cost function is the left-hand side expression, which is as follows:
Figure 1.30: Left-hand side expression
The optimizer will find the value of x for which the expression is the ...