Sympy: Solve only work after evalf()

Created on 31 Aug 2016  路  3Comments  路  Source: sympy/sympy

In some cases solve doesn't not solve the equation correctly, returning [].
If the same equation is evaluated (using evalf()), then solve gives the right solution.

An example of this issue is posted in https://gist.github.com/Huyston/4035351b8738464019895db23f0688ae

Most helpful comment

This is a quintic equation for which there is no algebraic solution with radicals. Only numeric solution with numeric coefficients is possible, in general.

All 3 comments

This is a quintic equation for which there is no algebraic solution with radicals. Only numeric solution with numeric coefficients is possible, in general.

I think sympy has solvers for quintic equations, provided these equations are solvable. Maybe applying something some criteria in solve could be helpful.

I see, you are right.
I was wondering if it should raise an error or something to inform the user about this. Maybe a "No algebraic solution error" try using .evalf().
I'll close it since it's not sympy's fault :)
Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nifengcn picture nifengcn  路  5Comments

nschloe picture nschloe  路  3Comments

JanVanDieBos picture JanVanDieBos  路  3Comments

kamimura picture kamimura  路  3Comments

rtrwalker picture rtrwalker  路  3Comments