Method: Polars::Expr#arccos

Defined in:
lib/polars/expr.rb

#arccosExpr

Compute the element-wise value for the inverse cosine.

Examples:

df = Polars::DataFrame.new({"a" => [0.0]})
df.select(Polars.col("a").arccos)
# =>
# shape: (1, 1)
# ┌──────────┐
# │ a        │
# │ ---      │
# │ f64      │
# ╞══════════╡
# │ 1.570796 │
# └──────────┘

Returns:

[View source]

6227
6228
6229
# File 'lib/polars/expr.rb', line 6227

def arccos
  _from_rbexpr(_rbexpr.arccos)
end