You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have done a basic search through the issue tracker to find similar or related issues.
I have made myself familiar with the available features of Nushell for the particular area this enhancement request touches.
Related problem
Let's say I want this:
0..0.1..1|math sin
However,
Error:nu::parser::input_type_mismatch×Commanddoesnotsupportrangeinput.╭─[repl_entry#14:1:13]1│0..0.1..1 | mathsin·────┬───·╰──commanddoesn't support range input ╰────
And this applies to some other math commands:
It's at least:
all trig functions (sin, arctan etc.), including hyperbolic (cosh etc.)
lnand log
exp
Describe the solution you'd like
Make ranges implicitly convert to a list if a function takes a list of numbers but not a range directly.
Just implementing range inputs for the commands listed above also kinda works but that's treating a symptom instead of the disease
Describe alternatives you've considered
You can explicitly convert range to a list with... each {}:
On 0.117 math sin, math cos, math arctan, math cosh, math ln and math exp reject a range, but math log takes one: 1..3 | math log 10 works, as do 1..3 | math sqrt and 1..3 | math abs.
Activity
kronberger-droid commentedon Nov 17, 2026
On 0.117
math sin,math cos,math arctan,math cosh,math lnandmath expreject a range, butmath logtakes one:1..3 | math log 10works, as do1..3 | math sqrtand1..3 | math abs.pheenty commentedon Nov 17, 2026
Ok true, log works
I checked that ln doesn't and assumed log doesn't too, but that's even more inconsistent this way then
feat: accept ranges in math trig and log commands (nushell#19604)