Question: Array indices must be positive integers or logical values. Error in mySecondDerivativeOrder4 (line 16) d2y(i) = (-10*y(i-5) + 61*y(i-4) - 156*y(i-3) + 214*y(i-2) - 154*y(i-1)

Array indices must be positive integers or logical values. Error in mySecondDerivativeOrder4 (line 16) d2y(i) = (-10*y(i-5) + 61*y(i-4) - 156*y(i-3) + 214*y(i-2) - 154*y(i-1) + 45*y(i)) / (12*h^2); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!