Prime 5 incorrect derivative
- December 3, 2018
- 2 replies
- 1843 views
If it isn't obvious from my subject, I'm using Prime 5. I've run into a few issues where a partial derivative will incorrectly evaluate both symbolically and numerically as 0. I've attached two files, both are pretty stripped down just to illustrate what I'm seeing.
The first, derivative_error.mcdx, illustrates the issue with a fairly simple example. You can see that the derivatives with respect to the first two variables are correct but the last three evaluate to 0.
In the second file, derivative_error2.mcdx, all I did was rename essentially everything and the issue magically disappeared. This has been my only method around this issue to-date. Move a piece of my work to a different file, play with variable names, eventually things start working. I've never been able to fix the issue in my original file though.
I've searched this forum quite a bit and haven't seen a similar issue. I'm either doing something really stupid or getting really unlucky.
Thoughts?
Thanks,
Jon

