SymEngine.jl icon indicating copy to clipboard operation
SymEngine.jl copied to clipboard

implement power coefficients for a given var

Open amcostant opened this issue 6 years ago • 0 comments

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?

amcostant avatar Aug 05 '19 23:08 amcostant