Skip to main content
Version: 0.9.3

Expr.tanh

def tanh() -> Expr

Categories: numeric

Calculate the hyperbolic tangent of the element value.

Examples

>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf.select(td.col("val"), td.col("val").tanh().alias("tanh"))
>>>
┌─────┬──────────┐
│ val ┆ tanh │
------
│ f64 ┆ f64 │
╞═════╪══════════╡
0.00.0
3.00.995055
6.00.999988
9.01.0
└─────┴──────────┘