Skip to content

Commit a1165e6

Browse files
committed
Test
1 parent f2b164e commit a1165e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced/mathematical_optimization/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ Lets try to minimize the norm of the following vectorial function::
884884
>>> def f(x):
885885
... return np.arctan(x) - np.arctan(np.linspace(0, 1, len(x)))
886886

887-
>>> x0 = np.zeros(10)
887+
>>> x0 = np.zeros(10.)
888888
>>> sp.optimize.leastsq(f, x0, full_output=True)
889889
(array([0. , 0.11111111, 0.22222222, 0.33333333, 0.44444444,
890890
0.55555556, 0.66666667, 0.77777778, 0.88888889, 1. ]), 2)

0 commit comments

Comments
 (0)