Opened 7 years ago
Closed 7 years ago
#1569 closed defect (fixed)
[with patch] solve() fails if one list element is True
Reported by: | cwitty | Owned by: | was |
---|---|---|---|
Priority: | major | Milestone: | sage-2.9.1 |
Component: | algebraic geometry | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
As reported by Brandon Barker at http://groups.google.com/group/sage-devel/browse_thread/thread/52683f508ccefb39#:
sage: solve([3==3, 1.00000000000000*x^3 == 0], x) [] sage: solve([1.00000000000000*x^3 == 0], x) [x == 0] sage: solve([1==3, 1.00000000000000*x^3 == 0], x) []
The first result is wrong; it should be the same as the second.
Note that "3==3" will immediately evaluate to a Python boolean True; probably solve() should just strip list elements that are True.
Attachments (1)
Change History (4)
comment:1 Changed 7 years ago by was
- Status changed from new to assigned
Changed 7 years ago by was
comment:2 Changed 7 years ago by was
- Summary changed from solve() fails if one list element is True to [with patch] solve() fails if one list element is True
comment:3 Changed 7 years ago by rlm
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
merged in 2.9.1 alpha2