scipy.special.mathieu_modcem2#

scipy.special.mathieu_modcem2(m, q, x, out=None) = <wrapped_ufunc 'mathieu_modcem2'>#

Even modified Mathieu function of the second kind and its derivative.

Evaluates the even modified Mathieu function of the second kind, Mc2m(x, q), and its derivative at x (given in degrees) for order m and parameter q.

Parameters:
marray_like

Order of the function

qarray_like

Parameter of the function

xarray_like

Argument of the function, given in degrees, not radians

outtuple of ndarray, optional

Optional output arrays for the function results

Returns:
yscalar or ndarray

Value of the function

ypscalar or ndarray

Value of the derivative vs x

See also

mathieu_modsem2

Notes

Array API Standard Support

mathieu_modcem2 has support for Python Array API Standard compatible backends in addition to NumPy. The following combinations of backend and device (or other capability) are supported.

Library

CPU

GPU

NumPy

✅

n/a

CuPy

n/a

⛔

PyTorch

✅

⛔

JAX

✅

⛔

Dask

⛔

n/a

For the NumPy backend, this function supports all NumPy ufunc keyword arguments. Other backends may support out, but typically none of the other ufunc kwargs. out is typically supported for CuPy and PyTorch, but not currently in cases where SciPy relies on a generic Array API implementation or, for PyTorch on CPU, falls back to the NumPy backend. out is never supported for JAX because JAX arrays are immutable. mathieu_modcem2 does not currently support out for the PyTorch backend.

See Support for the array API standard for more information.