[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: http://r.789695.n4.nabble.com/How-to-solve-this-compl

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 Sent

[R] Terminating a program using R

2015-02-10 Thread Ssuhanchen
Hi I would like to query that if it is possible for R to terminate a program such as notepad, word, etc.? If yes, what kind of function should I use? Thank you very much. -- View this message in context: http://r.789695.n4.nabble.com/Terminating-a-program-using-R-tp4703004.html Sent from th

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 Nabbl