Reputation: 857
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.
Upvotes: 2
Views: 125
Reputation: 5700
There is an issue with the latest doc build, but search for coeffs here https://docs.juliahub.com/SymPy/KzewI/1.1.1/introduction/
One thing, [p].coeffs is very unlikely to work, as this doesn’t call the method of p, rather a container you created with [].
Upvotes: 1