cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Will not pull values from array

gparaiso
1-Visitor

Will not pull values from array

Capture.PNG

Hi, for some odd reason Mathcad 15 is not pulling from the "enx array" despite that array having values in these indicies.  Is it because the derivative? Anyway I can fix this?

Thanks

3 REPLIES 3
Werner_E
25-Diamond I
(To:gparaiso)

You should post the worksheet, if possible.

RichardJ
19-Tanzanite
(To:gparaiso)

It has nothing to do with the derivative.

It's hard to debug a picture, so please post a worksheet. Making a wild guess, what is the value of N, and how many rows does enx have?

What happens if the condition:

Capture.PNG

is not met?

If it is in any case from 0 to N-1 then the individual element will default to a 0 result:

Capture.PNG

If , however , it is the last element, then the array will be 1 entry short:

Capture.PNG

As the next calculation is looking for enx[N which does not exist, Mathcad reports an error.

Regards

Andy

Announcements

Top Tags