[sympy] Re: solution to exp(x*(x-3))-2*(x-1)*(x-2)=0

2009-06-24 Thread smichr
On Jun 24, 9:20 pm, Alan Bromborsky wrote: > The equation reduces to exp(w) = 2*exp(2)*w where w = x*(x-3)+2. > Wouldn't the solution of w have to be numerical? > Is this what you are looking for? ...I think it's exp(w)=2*(w+2). And that's the key. When put in this form, the online Mathematica

[sympy] Re: solution to exp(x*(x-3))-2*(x-1)*(x-2)=0

2009-06-24 Thread smichr
On Jun 25, 12:16 am, Ondrej Certik wrote: > Well, it works for some equations already: > I am trying to get it to work for more cases using the general form that I noted above (a*f(x)+log(c*f(x)+d)=b with solution f(x)=LambertW (a*exp(b + a*d/c)/c)/a - d/c While working through the existing p

[sympy] Re: solution to exp(x*(x-3))-2*(x-1)*(x-2)=0

2009-06-24 Thread smichr
Thanks for that ref...I've got it bookmarked now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email t

[sympy] Re: solution to exp(x*(x-3))-2*(x-1)*(x-2)=0

2009-06-24 Thread Ondrej Certik
On Wed, Jun 24, 2009 at 1:09 PM, Aaron S. Meurer wrote: > > Oh.  I looked at the lowercase l's in dir(), so I didn't see it.  It > would be great if solve(x*exp(x)-y,x) returned LambertW(y) (now it > raises NotImplemented), and then we could expand it to solve the > equation below. Well, it works

[sympy] Re: solution to exp(x*(x-3))-2*(x-1)*(x-2)=0

2009-06-24 Thread Aaron S. Meurer
Oh. I looked at the lowercase l's in dir(), so I didn't see it. It would be great if solve(x*exp(x)-y,x) returned LambertW(y) (now it raises NotImplemented), and then we could expand it to solve the equation below. Aaron Meurer On Jun 24, 2009, at 12:54 PM, Ondrej Certik wrote: > > On We

[sympy] Re: solution to exp(x*(x-3))-2*(x-1)*(x-2)=0

2009-06-24 Thread Ondrej Certik
On Wed, Jun 24, 2009 at 12:51 PM, Aaron S. Meurer wrote: > > Or you could use the LambertW function.  Maple gives >  > solve(exp(x*(x-3))=2*(x-1)*(x-2),x); > 3/2+(1/2)*sqrt(1-4*LambertW(-(1/2)*exp(-2))), 3/2- > (1/2)*sqrt(1-4*LambertW(-(1/2)*exp(-2))), > 3/2+(1/2)*sqrt(1-4*LambertW(-1, -(1/2)*exp(

[sympy] Re: solution to exp(x*(x-3))-2*(x-1)*(x-2)=0

2009-06-24 Thread Aaron S. Meurer
Or you could use the LambertW function. Maple gives > solve(exp(x*(x-3))=2*(x-1)*(x-2),x); 3/2+(1/2)*sqrt(1-4*LambertW(-(1/2)*exp(-2))), 3/2- (1/2)*sqrt(1-4*LambertW(-(1/2)*exp(-2))), 3/2+(1/2)*sqrt(1-4*LambertW(-1, -(1/2)*exp(-2))), 3/2- (1/2)*sqrt(1-4*LambertW(-1, -(1/2)*exp(-2))) from ?L

[sympy] Re: solution to exp(x*(x-3))-2*(x-1)*(x-2)=0

2009-06-24 Thread Alan Bromborsky
Ondrej Certik wrote: > On Wed, Jun 24, 2009 at 6:18 AM, Sebastian Haase wrote: > >> On Wed, Jun 24, 2009 at 11:06 AM, smichr wrote: >> >>> If someone has access to Mathematica, could you see if it solves the >>> equation, >>> >>> exp(x*(x-3))=2*(x-1)*(x-2) >>> >>> The Web-mathematica does

[sympy] Re: solution to exp(x*(x-3))-2*(x-1)*(x-2)=0

2009-06-24 Thread Ondrej Certik
On Wed, Jun 24, 2009 at 6:18 AM, Sebastian Haase wrote: > > On Wed, Jun 24, 2009 at 11:06 AM, smichr wrote: >> >> If someone has access to Mathematica, could you see if it solves the >> equation, >> >> exp(x*(x-3))=2*(x-1)*(x-2) >> >> The Web-mathematica doesn't >> (at >> http://72.3.253.76/webM

[sympy] Re: solution to exp(x*(x-3))-2*(x-1)*(x-2)=0

2009-06-24 Thread Sebastian Haase
On Wed, Jun 24, 2009 at 11:06 AM, smichr wrote: > > If someone has access to Mathematica, could you see if it solves the > equation, > > exp(x*(x-3))=2*(x-1)*(x-2) > > The Web-mathematica doesn't > (at > http://72.3.253.76/webMathematica3/quickmath/page.jsp?s1=equations&s2=solve&s3=basic) > and