I get the same thing as you interactively but my tests pass. Since
both solutions are equivalent, just turn this (back?) into a test of
solve(...) in [ans1, ans2].

    >>> eq = ((2**exp(y**2/x) + 2)/(x**2 + 15))
    >>> ans1= solve(eq, y)
    >>> [eq.subs(y,a).subs(x,.1).n(2) for a in ans1]
    [.0e-112 + 2.5e-117*I, .0e-112 + 2.5e-117*I]
    >>> ans2 = [-sqrt(x)*sqrt(log((log(2) + I*pi)/log(2))), sqrt(x)*sqrt(log
    ((log(2) + I*pi)/log(2)))]
    >>> [eq.subs(y,a).subs(x,.1).n(2) for a in ans2]
    [.0e-112 + 2.5e-117*I, .0e-112 + 2.5e-117*I]
    >>> ans1[0].subs(x,.1).n(2)
    -0.42 - 0.16*I
    >>> ans2[0].subs(x,.1).n(2)
    -0.42 - 0.16*I
    >>> ans1[1].subs(x,.1).n(2)
    0.42 + 0.16*I
    >>> ans2[1].subs(x,.1).n(2)
    0.42 + 0.16*I
    >>> ans1 == ans2
    False

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en.

Reply via email to