You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems like a combination of user and internal error. Hopefully the internal error is solved in #84.
To get the desired behavior (which I'm assuming is differentiating f(x,y,z) with respect to x?), you should be able to use the following:
@Deriv D'~x
expand_derivatives(D(f(x,y,z)))
Derivative doesn't taken into account the chain rule. (In fact, it acts more as a database of partial derivative rules.) Thus, we instead construct a Differential object with respect to x using @Deriv D'~x, apply it to the desired expression, and (symbolically) expand the derivatives.
Yes, the Differential should be used, and Derivative is a behind the scenes way that it's actually implemented in the IR. We need to better separate the internals vs externals of the documentation here.
jpfairbanks
added a commit
to jpfairbanks/ModelingToolkit.jl
that referenced
this issue
Jan 15, 2019
This package looks so cool. I was trying to use it based on the readme and came across this error.
It is probably user error, but why does this segfault?
The text was updated successfully, but these errors were encountered: