Skip to content

Unreadable real solution for a very simple equation #22017

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

Closed
pelegm opened this issue Dec 3, 2016 · 5 comments
Closed

Unreadable real solution for a very simple equation #22017

pelegm opened this issue Dec 3, 2016 · 5 comments

Comments

@pelegm
Copy link
Contributor

pelegm commented Dec 3, 2016

Try this (on 7.5.beta4):

sage: solve(x^3 == -8, x)
[x == I*sqrt(3)*(-1)^(1/3) - (-1)^(1/3), x == -I*sqrt(3)*(-1)^(1/3) - (-1)^(1/3), x == 2*(-1)^(1/3)]

The first solution is in fact -2. Looks horrible that way.

Sympy handles this well:

>>> solve(Eq(x**3, -8))
[-2, 1 - sqrt(3)*I, 1 + sqrt(3)*I]

Wolfram Alpha is also ok with this.

Component: symbolics

Keywords: solve

Reviewer: Frédéric Chapoton

Issue created by migration from https://trac.sagemath.org/ticket/22017

@pelegm pelegm added this to the sage-7.5 milestone Dec 3, 2016
@rwst
Copy link
Contributor

rwst commented Dec 4, 2016

comment:1

Maybe related: #11941

@pelegm
Copy link
Contributor Author

pelegm commented Dec 4, 2016

comment:2

Indeed, looks very much related. Should we flag this as a duplicate?

@rwst
Copy link
Contributor

rwst commented Dec 5, 2016

comment:3

Yes, you're right.

@rwst rwst removed this from the sage-7.5 milestone Dec 5, 2016
@fchapoton
Copy link
Contributor

comment:5

duplicate, for sure

@fchapoton
Copy link
Contributor

Reviewer: Frédéric Chapoton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants