SciPy - Advanced Optimization
Identify the error in this SciPy code that tries to find the root of
f(x) = x^2 - 4:from scipy.optimize import root
def f(x):
return x**2 - 4
result = root(f, x0=0)
print(result.root)