On Wed, Jan 14, 2015 at 8:53 AM, Aaron Meurer <[email protected]> wrote:
>
>
> On Tue, Jan 13, 2015 at 4:41 PM, Amit Saha <[email protected]> wrote:
>>
>> On Wed, Jan 14, 2015 at 8:27 AM, Aaron Meurer <[email protected]> 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 <[email protected]>
>> > 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
>
>
> You should always check when you get a traceback what the error type is. If
> it's NotImplementedError, then it just means it isn't implemented. Any other
> error is likely a bug (or it means you have bad input).
>
> I agree that tracebacks can be confusing. I think ideally solve would return
> an unevaluated Solve object when it can't find any solutions. Returning []
> instead of raising NotImplementedError would probably not be a bad idea
> either (I seem to remember already doing something like this, but I may be
> thinking of something else).

+1 for returning an empty list object - it's IMO user-friendly - way
friendlier than a Traceback.



>
> Aaron Meurer
>
>>
>>
>>
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> 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.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/CAKgW%3D6JVO1UsCMGcNUB4w%3DPc1tu-k8jaMu86SegGd5OU_FfGCw%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
http://echorand.me

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CANODV3kg1pJZHv%3DaGDnL9P1K06sS%2Bboi1NccM%3DkWmAA8VAfnOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to