Thanks for any insights into this and whether there is a workaround.
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/2fb262a2-cabd-4cd7-b579-b205b721c8ec%40googlegroups.com.
On Wed, Jan 14, 2015 at 8:27 AM, Aaron Meurer <asme...@gmail.com> wrote:
> I don't think there are analytic solutions. The equation is equivalent to
> solving tan(x) = -x.
>
> Aaron Meurer
>
> On Tue, Jan 13, 2015 at 4:24 PM, Sergey Kirpichev <skirp...@gmail.com>
> wrote:
>>
>> On Wednesday, January 14, 2015 at 1:14:01 AM UTC+3, Amit Saha wrote:
>>>
>>> Thanks for any insights into this and whether there is a workaround.
>>
>>
>> What do you expect instead and why? Not all algebraic equations
>> have analytic solutions. Mathematica can't do this eq as well.
Thanks for the quick replies all. The Traceback made me wrongly
believe that perhaps sympy is doing something wrong. To be fair to
myself, I was also laid astray by:
http://www.wolframalpha.com/input/?i=solve%282*x*cos%282*x%29+%2B+sin%282*x%29%29
Which gave me an approximate solution - I should have checked myself.
Anyway, thanks all and sorry for the noise.
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CANODV3%3Dp%2BuOVb3apH2CFqDv4fg2V%3D1vfNUvr-dhia5WrcTZc5g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CANODV3kg1pJZHv%3DaGDnL9P1K06sS%2Bboi1NccM%3DkWmAA8VAfnOA%40mail.gmail.com.
On Wed, Jan 14, 2015 at 08:55:59AM +1000, Amit Saha wrote:
> +1 for returning an empty list object - it's IMO user-friendly
It's not friendly, it's broken. No way to distinguish between
"no solutions" and "I can't solve".
Exception - only way to workarround this, but in next solve
(see solveset.py) we should try unevaluated Solve object instead.
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/20150113230825.GA18048%40darkstar.order.hcn-strela.ru.
Am 13.01.2015 um 23:53 schrieb Aaron Meurer:
Returning [] instead of raising NotImplementedError would probably not be a
bad idea either
That would be confusable with a "we know that there is no solution" (1) result.
In this case, we have a "we do not know what solutions exit" (2) result, which should be represented in a clearly distinguishable fashion (both on the console output and to other code).
An exception should be a "the software has failed" result (3).
SymPy currently does not distinguish between (2) and (3) and reports everything as a failure.
One *could* usefully separate the two. That would require an explicit representation of "we do not know", which would have to generate useful output. Also, algorithms would need to recognize such ResultUnknown objects and either throw exceptions or do something more intelligent (such as trying another subalgorithm). It would require some extensive modifications to the code, so I don't see that happening quickly.
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/54B636CD.7070501%40durchholz.org.