I\'m trying to solve an equation in python using SymPy. I have a generated equation (something like function = y(8.0-(y**3.0))
which I use with SymPy to create a ne
(I don't know why you mention scipy in your question when you use sympy in your code. I'll assume you are using sympy.)
Sympy can solve this equation if you specify an integer power for y
(ie y**3.0
changed to y**3
).
The following works for me using Sympy 0.6.7.
from sympy import Eq, Symbol, solve
y = Symbol('y')
eqn = Eq(y*(8.0 - y**3), 8.0)
print solve(eqn)