good for you to be so helpful ![]()
so I ask more questions now:
- how to declare a symbolic complex number in the form of
x = a + jbandx = rcosθ + jrsinθ? that is,x,a,b,r,θare all symbols. - in the following, how do I arrange
pas a polynomial inL? - then, how to get the coefficients of the polynomials?
- in general, how do I manipulate a
SymbolicUtils.Termobject? should I transform it into a standardJuliaexpression (how?) and then transverse the expression tree?
julia> @syms L α₁ α₂
(L, α₁, α₂)
julia> p = (1 - L) * (1 - α₁ * L) * (1 - α₂ * L)
(1 + (-1 * L)) * (1 + (-1 * L * α₁)) * (1 + (-1 * L * α₂))
many thanks! ![]()