Status: New
Owner: ----
Labels: Type-Enhancement Priority-Medium Solvers

New issue 3194 by [email protected]: Implement "show steps" for solvers
http://code.google.com/p/sympy/issues/detail?id=3194

Wolframalpha have a nice function

which can show the steps of solving equation:

    solve(x^2 + (-r - 1)*x + r, x)
    Result: x == 1 || x == r

Show steps.

    Possible intermediate steps:
    (-r-1) x+r+x^2 = 0

    Subtract r from both sides:
    (-r-1) x+x^2 = -r

    Add 1/4 (-r-1)^2 to both sides:
    (-r-1) x+1/4 (-r-1)^2+x^2 = 1/4 (-r-1)^2-r

    Factor the left hand side:
    (1/2 (-r-1)+x)^2 = 1/4 (r^2-2 r+1)

    Take the square root of both sides:
    abs(1/2 (-r-1)+x) = 1/2 sqrt(r^2-2 r+1)

    Eliminate the absolute value:
1/2 (-r-1)+x = -1/2 sqrt(r^2-2 r+1) or 1/2 (-r-1)+x = 1/2 sqrt(r^2-2 r+1)

    Subtract 1/2 (-r-1) from both sides:
    x = 1/2 (1-sqrt((-1+r)^2)+r) or 1/2 (-r-1)+x = 1/2 sqrt(r^2-2 r+1)

    Subtract 1/2 (-r-1) from both sides:
    x = 1/2 (1-sqrt((-1+r)^2)+r) or x = 1/2 (1+sqrt((-1+r)^2)+r)


Is it possible to have this function in sympy?

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to