I try using SymPy in Julia 1.7.1 and get "coeffs not found" error

Viewed 80

I am trying to use coeffs function in Julia 1.7.1 but getting the error below:

i get error while using [p0].coeffs().keys()

the error occurs in the below code in the last line where i have S = [p0].coeffs().keys() see the code below:

p0 = sympify(dense_interpolation([a[1]] .+ r, [p0] .+ P).subs(Symbol('x'), x_var[1]))
print("[p0] = ")
println([p0])
print("p0 = ")
println(p0)
S = [p0].coeffs().keys()

the type of the p0 is Sym and the value inside it is 1 as you can see on the first picture. can anyone help me out on this.

1 Answers
Related