-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Differentiating a function with a matrix parameter fails with ShapeError #24229
Comments
Please include code inline in github rather than attaching a screenshot. |
from sympy import symbols, Function, Derivative
from sympy.physics.vector import *
N = ReferenceFrame('N')
x0, x1, x2 = symbols("x:3")
X = x0*N.x + x1*N.y + x2*N.z
fx = Function("f")(X.to_matrix(N))
print f )
print( Derivative(fx, x0) )
print( Derivative(fx, x0).doit() )
Neat! However my use case is not elementwise application of a function, it is a multivariate function. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction:
Jupyterlab traceback:
`rich` traceback:
My current workaround is to use the first example and a lot of substitutions, but i'd rather be able to use the latter case.
The text was updated successfully, but these errors were encountered: