Skip to main content
1-Visitor
October 19, 2022
Solved

Error message: 'This array index is invalid for this array'

  • October 19, 2022
  • 1 reply
  • 1265 views

Hello,

I am reasonably new to using MathCad and I am experiencing an issue when trying to solve the programs on page 7, 8 and 9 of the attached work sheet. I am looking for outputs to the 'Column' 'Lp' and 'Lr' functions for a range of values, i. However, I am being met with the error message 'This array index is invalid for this array'.

Any advice is much appreciated as I am still learning the software.

Thanks in advance

Best answer by TR_10449171

Error simply means that you are trying to use an index for a vector that exceeds the maximum index you have defined. You have defined duree to run from 0 to 50. But in the box that is generating the error your index 2*s+1 can go up to 51 if s=25. 

1 reply

1-Visitor
October 19, 2022

Error simply means that you are trying to use an index for a vector that exceeds the maximum index you have defined. You have defined duree to run from 0 to 50. But in the box that is generating the error your index 2*s+1 can go up to 51 if s=25.