We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
using SymPy @vars x1 x2 x = [1.0,0.0] s = [-1;-1] f = x1*x2 ∇f = diff(f, [x1, x2]) ∇fn = subs(∇f, (x1, 1), (x2, 0)) a = N(∇fn) typeof(a)
I got "SymMatrix" and should be a vector of Int64
The text was updated successfully, but these errors were encountered:
Yeah, this is unexpected, but perhaps unavoidable. It comes from applying diff without broadcasting:
diff
julia> ∇f = diff.(f, [x1, x2]) 2-element Array{Sym,1}: x₂ x₁ julia> ∇fn = subs.(∇f, x1=>1, x2=>0) 2-element Array{Sym,1}: 0 1 julia> N.(∇fn) 2-element Array{Int64,1}: 0 1
Sorry, something went wrong.
Thanks!
No branches or pull requests
I got "SymMatrix" and should be a vector of Int64
The text was updated successfully, but these errors were encountered: