Ticket #1569 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

[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: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
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

trac-1569.patch Download (1.8 KB) - added by was 5 years ago.

Change History

comment:1 Changed 5 years ago by was

  • Status changed from new to assigned

Changed 5 years ago by was

comment:2 Changed 5 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 5 years ago by rlm

  • Status changed from assigned to closed
  • Resolution set to fixed

merged in 2.9.1 alpha2

Note: See TracTickets for help on using tickets.