Compute inverse hyperbolic cosine
Description
Compute inverse hyperbolic cosine
Usage
<Expr>$arccosh()
Value
A polars expression
Examples
library("polars")
pl$DataFrame(a = c(-1, cosh(0.5), 0, 1, NA))$
with_columns(arccosh = pl$col("a")$arccosh())
#> shape: (5, 2)
#> ┌──────────┬─────────┐
#> │ a ┆ arccosh │
#> │ --- ┆ --- │
#> │ f64 ┆ f64 │
#> ╞══════════╪═════════╡
#> │ -1.0 ┆ NaN │
#> │ 1.127626 ┆ 0.5 │
#> │ 0.0 ┆ NaN │
#> │ 1.0 ┆ 0.0 │
#> │ null ┆ null │
#> └──────────┴─────────┘