blosc2.arccosh#
- blosc2.arccosh(ndarr: NDArray | NDField | C2Array | LazyExpr, /) LazyExpr #
Compute the inverse hyperbolic cosine, element-wise.
- Parameters:
ndarr¶ (NDArray or NDField or C2Array or LazyExpr) – The input array.
- Returns:
out – A lazy expression representing the inverse hyperbolic cosine of the input array. The result can be evaluated.
- Return type:
References
Examples
>>> import numpy as np >>> import blosc2 >>> values = np.array([1, 2, 3, 4, 5]) >>> ndarray = blosc2.asarray(values) >>> result_lazy = blosc2.arccosh(ndarray) >>> result = result_lazy[:] >>> print("Original values:", values) Original values: [1 2 3 4 5] >>> print("Arccosh:", result) Arccosh: [0. 1.3169579 1.76274717 2.06343707 2.29243167]