math arctan for math

Returns the arctangent of the number.

WARNING

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

Signature

> math arctan {flags}

Flags

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

Input/output types:

inputoutput
list<number>list<float>
numberfloat

Examples

Get the arctangent of 1

> 1 | math arctan
0.7853981633974483

Get the arctangent of -1 in degrees

> -1 | math arctan --degrees
-45