math cos
for math> math cos {flags}
--degrees, -d
: Use degrees instead of radiansinput | output |
---|---|
list<number> | list<number> |
number | number |
Apply the cosine to π
>3.141592|math cos|math round--precision4
-1
Apply the cosine to a list of angles in degrees
> [090180270360] |math cos-d
╭───┬───────╮
│0│1.00│
│1│0.00│
│2│-1.00│
│3│0.00│
│4│1.00│
╰───┴───────╯
Tips: Command math cos
was not included in the official binaries by default, you have to build it with --features=extra
flag
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/math_cos.html