What is happening? How do I get 4 out of this?
using Symbolics
@variables a b
julia> Symbolics.coeff(4a*b).dict
Dict{Any, Any} with 2 entries:
a => 1
b => 1
What is happening? How do I get 4 out of this?
using Symbolics
@variables a b
julia> Symbolics.coeff(4a*b).dict
Dict{Any, Any} with 2 entries:
a => 1
b => 1
How about
julia> polynomial_coeffs(4a*b, [a, b])
(Dict{Any, Any}(a*b => 4), 0)