math tan for math

Returns the tangent of the number.

Signature

> math tan --degrees

Parameters

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

Examples

Apply the tangent to π/4

> (math pi) / 4 | math tan
1

Apply the tangent to a list of angles in degrees

> [-45 0 45] | math tan -d
╭───┬─────────╮
│ 0-1.0000 │
│ 10.0000 │
│ 21.0000 │
╰───┴─────────╯