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
╭───┬─────────╮
│ 0 │ 0.0000 │
│ 1 │ 1.0000 │
│ 2 │ 0.0000 │
│ 3 │ -1.0000 │
│ 4 │ 0.0000 │
╰───┴─────────╯