×
×
Correct!
Insert the missing parts to print the square root of the equation:
from scipy.optimize import root
from math import cos
def eqn(x):
return x + cos(x)
myroot = @(4)(eqn, 0)
print(@(8))
from scipy.optimize import root
from math import cos
def eqn(x):
return x + cos(x)
myroot = root(eqn, 0)
print(myroot.x)
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 20 exercises.
Are you sure you want to continue?