Will not pull values from array
Jul 21, 2016
05:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 21, 2016
05:56 PM
Will not pull values from array
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
Labels:
- Labels:
-
Calculus_Derivatives
3 REPLIES 3
Jul 22, 2016
03:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 22, 2016
03:28 AM
You should post the worksheet, if possible.
Jul 22, 2016
09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 22, 2016
09:57 AM
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?
Jul 22, 2016
10:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 22, 2016
10:16 AM
What happens if the condition:
is not met?
If it is in any case from 0 to N-1 then the individual element will default to a 0 result:
If , however , it is the last element, then the array will be 1 entry short:
As the next calculation is looking for enx[N which does not exist, Mathcad reports an error.
Regards
Andy
