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

snowflake.snowpark.functions.acos¶

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

Computes the inverse cosine (arc cosine) of its input; the result is a number in the interval [-pi, pi].

Example::
>>> from snowflake.snowpark.types import DecimalType
>>> df = session.create_dataframe([[0.5]], schema=["deg"])
>>> df.select(acos(col("deg")).cast(DecimalType(scale=3)).alias("result")).show()
------------
|"RESULT"  |
------------
|1.047     |
------------
Copy