Skip to main content
1-Visitor
Solved

this array index is invalid for this array please help me

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

19-Tanzanite

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

 

Alan

14 replies

19-Tanzanite

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

 

Alan

Translate
marubeni1-VisitorAuthor
1-Visitor

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

Translate
19-Tanzanite

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

 

Alan

Translate
terryhendicott
21-Topaz II

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

Translate
24-Ruby IV

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

This Index wrong!

TraceError.png

Translate