math tan for math
Returns the tangent of the number.
Signature
> math tan {flags}
Flags
-
--degrees, -d: Use degrees instead of radians.
Input/output types:
| input | output |
|---|---|
| number | float |
| list<number> | list<float> |
Examples
Apply the tangent to π/4
> 3.141592 / 4 | math tan | math round --precision 4 1.0
Apply the tangent to a list of angles in degrees
> [-45 0 45] | math tan --degrees ╭───┬───────╮ │ 0 │ -1.00 │ │ 1 │ 0.00 │ │ 2 │ 1.00 │ ╰───┴───────╯
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/math_tan.html