math arccos for math

Returns the arccosine of the number.

Signature

> math arccos --degrees

Parameters

  • --degrees (-d): Return degrees instead of radians

Examples

Get the arccosine of 1

> 1 | math arccos
0

Get the arccosine of -1 in degrees

> -1 | math arccos -d
180