Vinzent Steinberg wrote:
> On May 6, 9:22 am, smichr <[email protected]> wrote:
>> I tried out solve with some of my favorite linearizable function and
>> found that some of these were not recognized as solvable. Also, some
>> are solvable in one form but not another. Here are examples of the 2nd
>> type:
>>
>> It solves10-3**x for x but not 3**x-10
>> It solves b*a**x-y for x but not a**x-y
>>
>> And here are some of the first type:
>>
>> solve doesn't solve
>>   y-a*x**b for x

my latest patch[1] should have solved this. Please update your copy and 
feel free to improve the algorithm.

[1] 
http://git.sympy.org/?p=sympy.git;a=commit;h=4bde1ffe2c7bbcf5a1a663dc0051864e329fbee4

>>
>> but tsolve can solve it...is solve() suppose to figure out that tsolve
>> can solve it or is that up to the user to choose the right solve
>> routine? The same applies to y-b/(1+a*x) which tsolve can solve but
>> solve can't.
>>
>> These two don't appear to be solvable by either solve or tsolve but
>> are straightforwardly linearized and solved:
>>     y=bx/(a+x)
>>     y=b*exp(a/x)
>>
>> /chris
> 
> Thank you for your feedback!
> 
> As of now, solve() can't solve many simple equations, see [1].
> 
> solve() should choose the right solve routine, currently it fails as
> you spotted. The responsible subroutine is guess_solve_strategy() in
> sympy/solvers/solvers.py, it needs to be improved to recognize all
> kinds of equations solvable by tsolve().
> 
> Could you please create an issue for this?
> 
> Vinzent
> 
> 
> [1] http://code.google.com/p/sympy/issues/list?q=label%3ASolvers
> 
> > 
> 


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