Question: Why does the command plot(i,i=1..5) work but not plot(l[i],i=1..5) where l is the list l=[1,2,3,4,5]?

Why does the command plot(i,i=1..5) work but not plot(l[i],i=1..5) where l is the list l=[1,2,3,4,5]?

l := [1, 2, 3, 4, 5]

[1, 2, 3, 4, 5]

(1)

plot(i, i = 1 .. 5)

 

plot(l[i], i = 1 .. 5)

 

NULL

Download plot-list.mw

Please Wait...