Symbolics.jl icon indicating copy to clipboard operation
Symbolics.jl copied to clipboard

wrong Jacobian

Open yuxi-liu-wired opened this issue 3 years ago • 2 comments

using Symbolics
@variables x y
z = x+y
Symbolics.jacobian([x*z],[x, z])

Expected [x+y x] Got [y + 2x x]

yuxi-liu-wired avatar May 25 '22 17:05 yuxi-liu-wired

Differentiating wrt x + y is not supported.

YingboMa avatar May 25 '22 17:05 YingboMa

Can we throw an error if an expression is passed?

ChrisRackauckas avatar May 25 '22 19:05 ChrisRackauckas