Hello, I don't know if the following issue is still known or not (so sorry if someone has already pointed it) : ========================= >>> x = sympy.Symbol('x') >>> f = '(x-1)*(x-2)-1' >>> sympy.solve(f, x) [3/2 - 5**(1/2)/2, 3/2 + 5**(1/2)/2] >>> f = 'log(x-1)+log(x-2)' Exception... ========================= You could use the following strategy :
1. Solve purely formally the equation, no matter the solutions are in the domain of definition of log(x-1)+log(x-2) or not. 2. Test all the solutions to see if there are valids solutions or not. 3. Send only the valid solutions. Best regards. Christophe. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---