Skip to content

assume doesn't interact well with solve #6515

@robertwb

Description

@robertwb

This has been brought up several times on the mailing lists. As a specific example

sage: assume(x>0)
sage: solve([x^2-1],x)
[x == -1, x == 1]

At the very least, we could probably filter out the "solutions" that violate the assumptions.

sage: [all(a.subs(s) for a in assumptions()) for s in solve(x^2-1==0, x)]
[False, True]

Component: calculus

Author: Robert Bradshaw

Reviewer: Burcin Erocal

Merged: sage-4.3.3.alpha0

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions