SymEngine.jl
SymEngine.jl copied to clipboard
implement power coefficients for a given var
Can you implement a function that will return a vector that contains all the power coefficients for a given variable, for example, would return
julia> power_coeff(t^(1//2)+t^3+t^2.4+x^3.1, t)
3-element Array{Basic,1}:
1/2
3
2.4
and would return
julia> power_coeff(t^(1//2)+t^3+t^2.4+x^3.1, t)
1-element Array{Basic,1}:
3.1
if there is an existing function in SymEngin that can be "ccall"ed what would it be?