Opened 4 years ago

Closed 4 years ago

#22017 closed defect (invalid)

Unreadable real solution for a very simple equation

Reported by: pelegm Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: symbolics Keywords: solve
Cc: Merged in:
Authors: Reviewers: Frédéric Chapoton
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


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.

Change History (6)

comment:1 Changed 4 years ago by rws

Maybe related: #11941

comment:2 Changed 4 years ago by pelegm

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

comment:3 Changed 4 years ago by rws

  • Milestone changed from sage-7.5 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

Yes, you're right.

comment:4 Changed 4 years ago by pelegm

  • Priority changed from critical to major

comment:5 Changed 4 years ago by chapoton

  • Reviewers set to Frédéric Chapoton
  • Status changed from needs_review to positive_review

duplicate, for sure

comment:6 Changed 4 years ago by vbraun

  • Resolution set to invalid
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.