Expr.cosh
methodView source ↗
def cosh() -> TdExpr
Categories: numeric
Calculate the hyperbolic cosine of the element value.
Examples
>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").cosh().alias("cosh"))
>>>
┌──────┬────────────┐
│ val ┆ cosh │
│ --- ┆ --- │
│ f64 ┆ f64 │
╞══════╪════════════╡
│ 0.1 ┆ 1.005004 │
│ 1.5 ┆ 2.35241 │
│ 1.8 ┆ 3.107473 │
│ 6.0 ┆ 201.715636 │
│ 6.0 ┆ 201.715636 │
│ 7.5 ┆ 904.021484 │
│ null ┆ null │
└──────┴────────────┘