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

I keep getting the error: This array index is invalid for this array

ptc-5073439
1-Newbie

I keep getting the error: This array index is invalid for this array

I tried to write a program using the attached algorithm. However I keep getting "This array index is invalid for this array" error. It occurs in various places when I try to fix it.

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:ptc-5073439)

You have not assigned a value to z[n, only to z[n-1.

View solution in original post

2 REPLIES 2
RichardJ
19-Tanzanite
(To:ptc-5073439)

You have not assigned a value to z[n, only to z[n-1.

Yeah I just figured this out few minutes ago. And the 'N=1000' value was unreasonable as well.

Top Tags