Opened 2 years ago
Closed 2 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: |
Description
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 2 years ago by
comment:2 Changed 2 years ago by
Indeed, looks very much related. Should we flag this as a duplicate?
comment:3 Changed 2 years ago by
- 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 2 years ago by
- Priority changed from critical to major
comment:5 Changed 2 years ago by
- Reviewers set to Frédéric Chapoton
- Status changed from needs_review to positive_review
duplicate, for sure
comment:6 Changed 2 years ago by
- Resolution set to invalid
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
Maybe related: #11941