cf.Data.arccosh¶
-
Data.
arccosh
(inplace=False)[source]¶ Take the inverse hyperbolic cosine of the data element-wise.
Units are ignored in the calculation. The result has units of radians.
New in version 3.2.0.
- Parameters
- Returns
Examples:
>>> print(d.array) [[0.5 0.7] [0.9 1.1]] >>> e = d.arccosh() >>> e.Units <Units: radians> >>> print(e.array) [[ nan nan] [ nan 0.44356825]]
>>> print(d.array) [1.2 1.0 0.8 0.6 --] >>> d.arccosh(inplace=True) >>> print(d.array) [0.6223625037147786 0.0 nan nan --] >>> d.mask_invalid(inplace=True) >>> print(d.array) [0.6223625037147786 0.0 -- -- --]