×
×
Correct!
Insert the missing parts to minimize the equation, by using the TNC method:
from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = @(8)(eqn, 0, @(12))
from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = minimize(eqn, 0, method='TNC')
from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = minimize(eqn, 0, method="TNC")
from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = minimize(eqn, 0, method = 'TNC')
from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = minimize(eqn, 0, method = "TNC")
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 20 exercises.
Are you sure you want to continue?