I am trying to use coeffs function in Julia 1.7.1 but getting the error below:
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.
![i get error while using [p0].coeffs().keys()](https://i.sstatic.net/2XB4x.png)
[p0].coeffs()? I think you just wantp0.coeffs().awhat isretc. It is quite hard to help with a piece of code cut out from the context.