2023-10-17 23:36:14 +08:00
|
|
|
[discrete]
|
2023-08-02 23:12:10 +08:00
|
|
|
[[esql-acos]]
|
|
|
|
=== `ACOS`
|
2023-10-17 23:36:14 +08:00
|
|
|
|
|
|
|
*Syntax*
|
|
|
|
|
2023-08-28 23:17:04 +08:00
|
|
|
[.text-center]
|
|
|
|
image::esql/functions/signature/acos.svg[Embedded,opts=inline]
|
|
|
|
|
2023-10-17 23:36:14 +08:00
|
|
|
*Parameters*
|
|
|
|
|
|
|
|
`n`::
|
|
|
|
Numeric expression. If `null`, the function returns `null`.
|
|
|
|
|
|
|
|
*Description*
|
|
|
|
|
|
|
|
Returns the {wikipedia}/Inverse_trigonometric_functions[arccosine] of `n` as an
|
|
|
|
angle, expressed in radians.
|
|
|
|
|
|
|
|
*Supported types*
|
|
|
|
|
|
|
|
include::types/acos.asciidoc[]
|
|
|
|
|
|
|
|
*Example*
|
2023-08-02 23:12:10 +08:00
|
|
|
|
|
|
|
[source.merge.styled,esql]
|
|
|
|
----
|
|
|
|
include::{esql-specs}/floats.csv-spec[tag=acos]
|
|
|
|
----
|
|
|
|
[%header.monospaced.styled,format=dsv,separator=|]
|
|
|
|
|===
|
|
|
|
include::{esql-specs}/floats.csv-spec[tag=acos-result]
|
|
|
|
|===
|