Skip to content

solve(x==x, x) returns [x == r1] #21946

@pelegm

Description

@pelegm

Not sure if it's a bug or a problem with the documentation, but without any assumptions on x, solve(x==x, x) returns [x == r1]. The documentation does not state what r1 is, but gives the following example:

   If there is a parameter in the answer, that will show up as a new
   variable.  In the following example, "r1" is a real free variable
   (because of the "r"):

      sage: solve([x+y == 3, 2*x+2*y == 6],x,y)
      [[x == -r1 + 3, y == r1]]

However, without assumptions on x, there's no reason to believe that x is real.

This ticket also fixes a grammar issue introduced in #21554 (see comments).

Depends on #21554

Component: symbolics

Keywords: solve, days79

Author: Ashutosh Ahelleya

Branch/Commit: 224e064

Reviewer: Bryan Gin-ge Chen

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions