The function is evaluated by forward recurrence on n, starting with
values computed by the Cephes routines y0 and y1. If n=0 or 1,
the routine for y0 or y1 is called directly.
Array API Standard Support
yn has experimental support for Python Array API Standard compatible
backends in addition to NumPy. Please consider testing these features
by setting an environment variable SCIPY_ARRAY_API=1 and providing
CuPy, PyTorch, JAX, or Dask arrays as array arguments. The following
combinations of backend and device (or other capability) are supported.
If z is an array, the order parameter v must be broadcastable to
the correct shape if different orders shall be computed in one call.
To calculate the orders 0 and 1 for a 1D array: