blosc2.arcsin#

blosc2.arcsin(ndarr: NDArray | NDField | C2Array | LazyExpr, /) LazyExpr#

Compute the inverse sine, element-wise.

Parameters:

ndarr (NDArray or NDField or C2Array or LazyExpr) – The input array.

Returns:

out – A lazy expression representing the inverse sine of the input array. The result can be evaluated.

Return type:

LazyExpr

References

np.arcsin

Examples

>>> import numpy as np
>>> import blosc2
>>> numbers = np.array([-1, -0.5, 0, 0.5, 1])
>>> ndarray = blosc2.asarray(numbers)
>>> result_lazy = blosc2.arcsin(ndarray)
>>> result = result_lazy[:]
>>> print("Original numbers:", numbers)
Original numbers: [-1.  -0.5  0.   0.5  1. ]
>>> print("Arcsin:", result)
Arcsin: [-1.57079633 -0.52359878  0.          0.52359878  1.57079633]