On Jun 26, 12:06 pm, Christophe <[email protected]> wrote: > 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.
Please feel free to open an issue for this (make sure to include your proposed procedure to solve such equations). Vinzent --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
