Skip to content

Compute hyperbolic sine

Source code

Description

Compute hyperbolic sine

Usage

<Expr>$sinh()

Value

Expr

Examples

library(polars)

pl$DataFrame(a = c(-1, asinh(0.5), 0, 1, NA_real_))$
  with_columns(sinh = pl$col("a")$sinh())
#> shape: (5, 2)
#> ┌──────────┬───────────┐
#> │ a        ┆ sinh      │
#> │ ---      ┆ ---       │
#> │ f64      ┆ f64       │
#> ╞══════════╪═══════════╡
#> │ -1.0     ┆ -1.175201 │
#> │ 0.481212 ┆ 0.5       │
#> │ 0.0      ┆ 0.0       │
#> │ 1.0      ┆ 1.175201  │
#> │ null     ┆ null      │
#> └──────────┴───────────┘