Skip to content

solve does not obey assumptions for inequalities #25972

@kendonB

Description

@kendonB
mannequin

Currently, assumptions are not always taken into account by solve.

sage: assume(x > 0)

# incorrectly gives [x < -1]
sage: solve(x^2 > 1, x)
[[x < -1], [x > 1]]

# correctly restricts
sage: solve(x^2 == 1, x)
[x == 1]

CC: @rwst @slel

Component: algebra

Keywords: inequality, solve

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions