Re: [R] Gamma function

2009-05-16 Thread Stavros Macrakis
What exactly is the R code you wrote for your function f? Without that, it will be hard to help you. -s On Sat, May 16, 2009 at 2:48 AM, Kon Knafelman wrote: > > Hi Guy, > > I am having trouble graphing the following function > > √2Γ(n/2)/[√n - 1Γ((n - 1)/2 for the values of n betw

[R] Gamma function

2009-05-16 Thread Kon Knafelman
Hi Guy, I am having trouble graphing the following function √2Γ(n/2)/[√n − 1Γ((n − 1)/2 for the values of n between 2 and 50. i know that Γ(n) = (n-1)!, which in R is factorial(n-1) When i type that into R, using y <- function(n). and then plot(y,2,50), it doesnt give me anythin