Spec-Zone.ru › Nushell

math sin for math

Returns the sine of the number.

Signature

> math sin {flags}

Flags

  • --degrees, -d: Use degrees instead of radians.

Input/output types:

input output
number float
list<number> list<float>

Examples

Apply the sine to π/2

> 3.141592 / 2 | math sin | math round --precision 4
1.0

Apply the sine to a list of angles in degrees

> [0 90 180 270 360] | math sin -d | math round --precision 4
╭───┬───────╮
│ 0 │  0.00 │
│ 1 │  1.00 │
│ 2 │  0.00 │
│ 3 │ -1.00 │
│ 4 │  0.00 │
╰───┴───────╯

Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/math_sin.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API