# Revision history [back]

### A bug with solve()?

I'm trying to solve a toy linear system. Why does the result depend on the order of variables and on the repetition of the equations?

sage: var("x,y")

(x, y)

sage: solve([y==0],x,y)

([], [])

sage: solve([y==0],y,x)

([y == 0], [1])

sage: solve([y==0,y==0],x,y)

[[x == r3, y == 0]]

 2 No.2 Revision slelievre 10403 ●9 ●108 ●210 http://carva.org/samue...

### A bug with solve()?

I'm trying to solve a toy linear system. Why does the result depend on the order of variables and on the repetition of the equations?

sage: var("x,y") var("x,y")
(x, y) y)
sage: solve([y==0],x,y) solve([y==0],x,y)
([], []) [])
sage: solve([y==0],y,x) solve([y==0],y,x)
([y == 0], [1]) [1])
sage: solve([y==0,y==0],x,y) solve([y==0,y==0],x,y)
[[x == r3, y == 0]]0]]

 3 retagged tmonteil 21058 ●25 ●151 ●389 http://wiki.sagemath.o...

### A bug with solve()?

I'm trying to solve a toy linear system. Why does the result depend on the order of variables and on the repetition of the equations?

sage: var("x,y")
(x, y)
sage: solve([y==0],x,y)
([], [])
sage: solve([y==0],y,x)
([y == 0], [1])
sage: solve([y==0,y==0],x,y)
[[x == r3, y == 0]]