cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Range variable to vector always starting at zero. please help.

JackMat89
3-Visitor

Range variable to vector always starting at zero. please help.

Hi I am very new to MathCad and have hit a brick wall with changing a range variable to a vector. I'm currently using Prime 6.0 in trial form.

 

my understanding is you define a range then define your vector based on that range e.g

N:20

i:1..N

a[i:i 

 

I start the range with 1 but I always get the 0 index appear in my vector. Am I doing something wrong here?

JackMat89_1-1588690207579.png

picture of my actual workings above (apologies my screen is obnoxiously wide)

 

It works OK if i input the vector myself

 

JackMat89_2-1588690600312.png

So I'm pretty sure its the range to vector technique I'm using causing me issues.Apologies if this is super easy I just cant see it right now.

 

Thanks for your help in advance.

 

Any help would be appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions

Mathcad assumes an origin of 0 by default.   At the top of your worksheet enter ORIGIN:=1 if you want the index to start at 1.  (Note use all upper case for the word ORIGIN).

 

Alan

View solution in original post

2 REPLIES 2

Mathcad assumes an origin of 0 by default.   At the top of your worksheet enter ORIGIN:=1 if you want the index to start at 1.  (Note use all upper case for the word ORIGIN).

 

Alan

thank you ever so much!

Top Tags