Newton minimization of rosenbrock function: start : [ 2.0 2.0 ] root : [ 1.0000531223836122 1.0001057065447765 ] rosen(root) : 2.851260548759174e-09 |gradient(root)|: 0.00035078174962838366 tolerance : 0.001 test passed ncalls: 206 SciPy minimization of rosenbrock function: start : [2, 2] root : [0.99999565 0.99999129] rosen(root) : 1.893268070030524e-11 gradient(root) : [ 5.27464167e-06 -2.50614485e-06] ncalls: 106