blosc2.arctan#
- blosc2.arctan(ndarr: NDArray | NDField | C2Array | LazyExpr, /) LazyExpr #
Compute the inverse tangent, element-wise.
- Parameters:
ndarr¶ (NDArray or NDField or C2Array or LazyExpr) – The input array.
- Returns:
out – A lazy expression representing the inverse tangent of the input array. The result can be evaluated.
- Return type:
References
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]