[R] How to solve this complex equation

Rolf Turner r.turner at auckland.ac.nz
Tue Feb 10 09:29:38 CET 2015


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 bit 
of work on learning how to use R --- which is presumably the point of 
the exercise.

cheers,

Rolf Turner

-- 
Rolf Turner
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
Home phone: +64-9-480-4619



More information about the R-help mailing list