Question: Create a Vector in ascending or descending order

Hi,

 

I am trying to create a vector like

Nr:=5:

p:=2*Vector[column]([$0..Nr])+ConstantVector[column](1,Nr+1);

this one works fine but when I want descending order, i.e,

p:=2*Vector[column]([$Nr..0])+ConstantVector[column](1,Nr+1);

it is not working. I would appreciate the suggestions.

 

 

 

Please Wait...