Updates:
        Status: Fixed

Comment #4 on issue 2092 by [email protected]: solve4linearsymbol should be hidden or fixed
http://code.google.com/p/sympy/issues/detail?id=2092

This function has been removed from order.py where it was not being used. The code that would have used it has also been removed as it was allowing order terms to have more than symbols as order variables. This "at other than 0" representation is not well supported yet in sympy.

The solve4linearsymbol has been rewritten with more solving options as solve_linear and is available in solvers.py.

    h[1] >>> solve_linear(x+a**2+b, exclude=[b])
    (x, -b - a**2)
    h[2] >>> solve_linear(x+a**2+b, x=[a,x])
    (x, -b - a**2)

    h[6] >>> solve_linear(x**2/(x+a*x), 1)
    (a, -(x - x**2)/x)

If it can't solve for a linear symbol, then the numerator and denominator of lhs - rhs is returned:

    h[7] >>> solve_linear(x**2/(x+a*x),1,x=[x])
    (-x - a*x + x**2, x + a*x)
    h[7] >>> (x**2/(x+a*x) - 1).as_numer_denom()
    (-x - a*x + x**2, x + a*x)


--
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