Ask Your Question

Revision history [back]

Why, in any equation, are repeated solutions given by Sage only once?

In the example

var('f, q, r, h, i, g, x, y, z') eq1 = x^5 - x^4 - 2x^3 + 2x^2 + x - 1 solve(eq1==0,x)

Where, this equation is also equal to (x-1)^3*(x+1)^2, but I obtain the following solution:[x == -1, x == 1]

Let's say that, in any equation, repeated solutions are given by Sage only once.

Then, how can I, in our example, obtain the following complete solution: [x == -1, x == -1, x == 1, x == 1, x == 1] ??

Why, in any equation, are repeated solutions given by Sage only once?

In the example

var('f, q, r, h, i, g, x, y, z')
eq1 = x^5 - x^4 - 2x^3 2*x^3 + 2x^2 2*x^2 + x - 1
solve(eq1==0,x)

solve(eq1==0,x)

Where, this equation is also equal to (x-1)^3*(x+1)^2, (x-1)^3*(x+1)^2, but I obtain the following solution:[x solution:

[x == -1, x == 1]

1]

Let's say that, in any equation, repeated solutions are given by Sage only once.

Then, how can I, in our example, obtain the following complete solution: solution?

[x == -1, x == -1, x == 1, x == 1, x == 1] ??

1]