Re: [R] How to solve this complex equation

2015-02-11 Thread Chel Hee Lee
A~ha~!! Thank you, Prof. Peter Dalgaard, so much for your wonderful lesson!!! Learning new things everyday from this R-help mailing list! Chel Hee Lee On 2/11/2015 10:37 AM, peter dalgaard wrote: On 11 Feb 2015, at 17:11 , Chel Hee Lee chl...@mail.usask.ca wrote: The functional form

Re: [R] How to solve this complex equation

2015-02-11 Thread peter dalgaard
On 11 Feb 2015, at 17:11 , Chel Hee Lee chl...@mail.usask.ca wrote: The functional form given in the post written by Ssuhanchen captures my eyes. It is the cumulative distribution function of Poisson when the number of counts is less than or equal to 2 with unknown parameter mu=x/2.

Re: [R] How to solve this complex equation

2015-02-11 Thread Chel Hee Lee
The functional form given in the post written by Ssuhanchen captures my eyes. It is the cumulative distribution function of Poisson when the number of counts is less than or equal to 2 with unknown parameter mu=x/2. Since it is a nonlinear function, there may be multiple solutions but the

Re: [R] How to solve this complex equation

2015-02-10 Thread Ssuhanchen
Got it! Thanks! I find a useful function, uniroot.all, in package rootSolve. I hope it will also be helpful to everybody. -- View this message in context: http://r.789695.n4.nabble.com/How-to-solve-this-complex-equation-tp4702997p4703015.html Sent from the R help mailing list archive at

Re: [R] How to solve this complex equation

2015-02-10 Thread Ssuhanchen
no, it is not my homework. I would like to know if there is relevant function to solve this equation in R? Could you please give me a hint or suggestion please. Thanks! -- View this message in context: http://r.789695.n4.nabble.com/How-to-solve-this-complex-equation-tp4702997p4703006.html

Re: [R] How to solve this complex equation

2015-02-10 Thread Doran, Harold
?uniroot -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ssuhanchen Sent: Tuesday, February 10, 2015 3:32 AM To: r-help@r-project.org Subject: Re: [R] How to solve this complex equation no, it is not my homework. I would like to know

Re: [R] How to solve this complex equation

2015-02-10 Thread Rolf Turner
On 10/02/15 14:04, Ssuhanchen wrote: Hi! I want to use R to calculate the variable x which is in a complex equation in below: 2 Σ[exp(-x/2)*(x^k)/(2^k*k!)]=0.05 k=0 how to solve this equation to get the exact x in R? Is this homework? Sure looks like it. Talk to your prof. Or do a

Re: [R] How to solve this complex equation

2015-02-10 Thread S Ellison
-Original Message- I want to use R to calculate the variable x which is in a complex equation in below: 2 Σ[exp(-x/2)*(x^k)/(2^k*k!)]=0.05 k=0 how to solve this equation to get the exact x in R? For a _numerical_ solution, if f(x) is your function, use uniroot to find a

Re: [R] How to solve this complex equation

2015-02-10 Thread JS Huang
Hi, The solution x to the equation is the parmater lambda = x/2 of a Poisson distribution with probability of 0.05 for the number of occurrence 2 or fewer. -- View this message in context: http://r.789695.n4.nabble.com/How-to-solve-this-complex-equation-tp4702997p4703070.html Sent from the

[R] How to solve this complex equation

2015-02-09 Thread Ssuhanchen
Hi! I want to use R to calculate the variable x which is in a complex equation in below: 2 Σ[exp(-x/2)*(x^k)/(2^k*k!)]=0.05 k=0 how to solve this equation to get the exact x in R? Thank you very much. -- View this message in context: