You can get approximate solutions using nsolve, e.g.

>>> nsolve(2*x*cos(2*x) + sin(2*x),1)
mpf('1.0143789190552171')

On Tuesday, January 13, 2015 at 4:42:24 PM UTC-6, Amit Saha wrote:
>
> On Wed, Jan 14, 2015 at 8:27 AM, Aaron Meurer <[email protected] 
> <javascript:>> 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] 
> <javascript:>> 
> > 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 [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/04b11554-2878-48e4-b5cf-4a7745ca771f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to