New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solutions of cubic equation #21263
Comments
Are the roots actually different or are they different but equivalent expressions? |
Looks like Wolfram Alpha uses a "complete the cube" formula i.e.:
The result from SymPy comes from the general cubic formula which often gives complicated representations. |
I guess that the strategy for identifying this would be to take the coefficient say
Then you can substitute
That gives the depressed cubic which may or may not have a linear term. In your example:
|
@oscarbenjamin , I don't think that the roots are equaivalent. |
The solutions, when susbtituted into the orginal equation, all simplify to |
roots(x**3+3*x**2+3*x+y*z*t+1,x)
gives the roots involving absolute values.Wolframalpha gives other roots: https://www.wolframalpha.com/input/?i=x%5E3%2B3x%5E2%2B3x%2Babc%2B1%3D0%2C+solve+for+x
The text was updated successfully, but these errors were encountered: