blosc2.arctan#

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

Trigonometric inverse tangent, element-wise.

Parameters:

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

Returns:

out – A lazy expression that can be evaluated.

Return type:

LazyExpr

References

np.arctan

Examples

>>> import numpy as np
>>> import blosc2
>>> numbers = np.array([-1, -0.5, 0, 0.5, 1])
>>> ndarray = blosc2.asarray(numbers)
>>> result_lazy = blosc2.arctan(ndarray)
>>> result = result_lazy[:]
>>> print("Original numbers:", numbers)
Original numbers: [-1.  -0.5  0.   0.5  1. ]
>>> print("Arctan:", result)
Arctan: [-0.78539816 -0.46364761  0.          0.46364761  0.78539816]