@@ -47,7 +47,7 @@ STATIC mp_float_t approx_python_call(const mp_obj_type_t *type, mp_obj_t fun, mp
4747//| (``a``..``b``) using the bisection method. The result is accurate to within
4848//| ``xtol`` unless more than ``maxiter`` steps are required."""
4949//| ...
50- //|
50+ //|
5151
5252STATIC mp_obj_t approx_bisect (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
5353 // Simple bisection routine
@@ -95,17 +95,17 @@ STATIC mp_obj_t approx_bisect(size_t n_args, const mp_obj_t *pos_args, mp_map_t
9595MP_DEFINE_CONST_FUN_OBJ_KW (approx_bisect_obj , 3 , approx_bisect );
9696
9797//| def fmin(fun, x0, *, xatol=2.4e-7, fatol=2.4e-7, maxiter=200) -> float:
98- //| """
99- //| :param callable f: The function to bisect
100- //| :param float x0: The initial x value
101- //| :param float xatol: The absolute tolerance value
102- //| :param float fatol: The relative tolerance value
98+ //| """
99+ //| :param callable f: The function to bisect
100+ //| :param float x0: The initial x value
101+ //| :param float xatol: The absolute tolerance value
102+ //| :param float fatol: The relative tolerance value
103103//|
104- //| Find a minimum of the function ``f(x)`` using the downhill simplex method.
105- //| The located ``x`` is within ``fxtol`` of the actual minimum, and ``f(x)``
106- //| is within ``fatol`` of the actual minimum unless more than ``maxiter``
107- //| steps are requried."""
108- //| ...
104+ //| Find a minimum of the function ``f(x)`` using the downhill simplex method.
105+ //| The located ``x`` is within ``fxtol`` of the actual minimum, and ``f(x)``
106+ //| is within ``fatol`` of the actual minimum unless more than ``maxiter``
107+ //| steps are requried."""
108+ //| ...
109109//|
110110
111111STATIC mp_obj_t approx_fmin (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
@@ -307,7 +307,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(approx_curve_fit_obj, 2, approx_curve_fit);
307307#endif
308308
309309//| def interp(x: ulab.array, xp:ulab.array, fp:ulab.array, *, left=None, right=None) -> ulab.array:
310- //| """
310+ //| """
311311//| :param ulab.array x: The x-coordinates at which to evaluate the interpolated values.
312312//| :param ulab.array xp: The x-coordinates of the data points, must be increasing
313313//| :param ulab.array fp: The y-coordinates of the data points, same length as xp
0 commit comments