math arccos for math

Returns the arccosine of the number.

WARNING

Command math arccos was not included in the official binaries by default, you have to build it with --features=extra flag

Signature

> math arccos {flags}

Flags

  • --degrees, -d: Return degrees instead of radians

Input/output types:

inputoutput
list<number>list<float>
numberfloat

Examples

Get the arccosine of 1

> 1 | math arccos
0

Get the arccosine of -1 in degrees

> -1 | math arccos --degrees
180