math sin for math

Returns the sine of the number.

Signature

> math sin --degrees

Parameters

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

Examples

Apply the sine to π/2

> (math pi) / 2 | math sin
1

Apply the sine to a list of angles in degrees

> [0 90 180 270 360] | math sin -d | math round --precision 4
╭───┬─────────╮
│ 00.0000 │
│ 11.0000 │
│ 20.0000 │
│ 3-1.0000 │
│ 40.0000 │
╰───┴─────────╯