Let’s say, I use Symbolics.jl to define a polynomial in λ
with symbolic coefficients.
using Symbolics
@variables λ p q
f = λ^3 + p*λ + q
How do I get the free term of the polynomial with respect to λ
?
I can use Symbolics.coeff(f, λ^3)
and Symbolics.coeff(f, λ)
to extract the coefficients of the first two terms, but Symbolics.coeff(f, λ^0)
just returns 0
, although I want to get q
.