# 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 15399 ●18 ●144 ●304 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 25328 ●29 ●180 ●472 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]]