Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solving a single equation for multiple variables doesn't work with assumptions #27998

Open
rburing opened this issue Jun 16, 2019 · 4 comments
Open

Comments

@rburing
Copy link
Contributor

rburing commented Jun 16, 2019

As reported in Ask SageMath question #46915:

sage: x,y = var('x,y', domain=RR)
sage: solve(x == 0, x, y)

gives an error message (unlike variants without assumptions, solving for a single variable, or adding a dummy equation).

It can be traced as follows: in sage/symbolic/relation.py the function solve calls _solve_expression to handle the single expression case. This (by default) uses the Maxima interface to create an initial list of solutions X, which is then filtered according to assumptions(). This filtering assumes that each solution in X is a single equation (it calls .lhs() on elements of X), which is not true in the case of multiple variables.

Component: symbolics

Keywords: solve, assumptions, domain

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

@rburing rburing added this to the sage-8.8 milestone Jun 16, 2019
@embray
Copy link
Contributor

embray commented Jul 3, 2019

comment:1

Moving open critical and blocker issues to the next release milestone (optimistically).

@embray embray modified the milestones: sage-8.8, sage-8.9 Jul 3, 2019
@embray
Copy link
Contributor

embray commented Dec 30, 2019

comment:2

Ticket retargeted after milestone closed

@embray embray modified the milestones: sage-8.9, sage-9.1 Dec 30, 2019
@mkoeppe
Copy link
Member

mkoeppe commented May 1, 2020

comment:3

Moving tickets to milestone sage-9.2 based on a review of last modification date, branch status, and severity.

@mkoeppe mkoeppe modified the milestones: sage-9.1, sage-9.2 May 1, 2020
@mkoeppe mkoeppe modified the milestones: sage-9.2, sage-9.3 Oct 24, 2020
@mkoeppe
Copy link
Member

mkoeppe commented May 10, 2021

comment:5

Moving to 9.4, as 9.3 has been released.

@mkoeppe mkoeppe modified the milestones: sage-9.3, sage-9.4 May 10, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.4, sage-9.5 Aug 22, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.5, sage-9.6 Dec 18, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.6, sage-9.7 May 3, 2022
@mkoeppe mkoeppe modified the milestones: sage-9.7, sage-9.8 Sep 19, 2022
@mkoeppe mkoeppe removed this from the sage-9.8 milestone Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants