Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1275 by ffxvzero: tsolve errors on exponentials
http://code.google.com/p/sympy/issues/detail?id=1275

sympy fails to solve this equation:

x = sympy.Symbol('x')
tsolve(1.0 + 2.0*x + 3.0*sqrt(1-x**2),cj3)

(solve errors saying that it is not a valid polynomial, hence I'm using  
tsolve)

i'm attaching a patch to solvers.py (against sympy 01/25/09) that makes it
possible to solve this. This includes two changes:

- handling the case when lhs.is_Pow is True
- modifying the is_Add statement to treat terms with powers in them as
functions. If a function is with a power, it will call tsolve once more
rather than solve. This is probably a hack, but it works for my purposes


Attachments:
        solver_changes.diff  1.6 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

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