<s>[INST] from scipy import optimize
import numpy as np

def f(x):
    return x**2 + 10*np.sin(x)

def f_prime(x):
    return 2*x + 10*np.cos(x)

res = optimize.newton(f_prime, 1.9)

print(res)

Doesn't seem to work

I want my function f(x) = x^2 + 10*sin(x) to be minimized using a gradient-based method (Newton's Method), but the code above doesn't seem to work.

Here's an error I got:

```
TypeError: newton() missing 1 required positional argument: 'fprime'
```

Is there something wrong with the way I'm using `optimize.newton()`?[/INST]