You are viewing documentation about an older version (1.13.0). View latest version

snowflake.snowpark.functions.tanh¶

snowflake.snowpark.functions.tanh(e: Union[Column, str]) → Column[source]¶

Computes the hyperbolic tangent of its argument.

Example::
>>> from snowflake.snowpark.types import DecimalType
>>> df = session.create_dataframe([0, 1], schema=["N"]).select(
...     tanh(col("N").cast(DecimalType(scale=4)))
... )
>>> df.collect()
[Row(TANH( CAST ("N" AS NUMBER(38, 4)))=0.0), Row(TANH( CAST ("N" AS NUMBER(38, 4)))=0.7615941559557649)]
Copy