Skip to main content
1-Visitor
October 3, 2017
Solved

this array index is invalid for this array please help me

  • October 3, 2017
  • 3 replies
  • 7065 views

Hi everyone, i have a problem when write a program about aeroelasticity

 

When i type "subscript letter" by press "." , Mathcad said the letter "A1, A2, A3, E1, E2, E3 "  : "this variable is undefined"

But when i type it by "[", Mathcad said with "g(k)" : this array index is invalid for this array

 

Please tell me how can I fix the problem? Thanks all !

1.PNG2.PNG

Best answer by AlanStevens

Please post the worksheet.  You might need to zip it first.

 

Alan

3 replies

19-Tanzanite
October 3, 2017

Please post the worksheet.  You might need to zip it first.

 

Alan

marubeni1-VisitorAuthor
1-Visitor
October 3, 2017

This my Mathcad file, i hope you can fix it. Thank you very much !

19-Tanzanite
October 3, 2017

terryhendicott identified the problem correctly.  Simply put ORIGIN:=1 at the beginning of the file.

 

Alan

21-Topaz II
October 3, 2017

Hi,

The default is zero based arrays unless you set origin to 1.

You have set E as a three element vector and refered to it as E[1, E[2, and E[3 but by default it is E[0,E[1,E[2.

Two solutions, change the code or set ORIGIN:=1 at top of the sheet.

 

Cheers

24-Ruby IV
October 3, 2017

Click please on the red operatot the right botton of mouse and do Trace Error!

This Index wrong!

TraceError.png