[R] Gamma function
macrakis at alum.mit.edu
Sat May 16 22:30:55 CEST 2009
What exactly is the R code you wrote for your function f? Without
that, it will be hard to help you.
On Sat, May 16, 2009 at 2:48 AM, Kon Knafelman <konk2001 at hotmail.com> wrote:
> 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 anything meaningful, in fact, it comes up with a message saying something like "in gamma(n+1) ploted" or something along those lines.
> Can anyone please help?
> thanks you
> Looking to change your car this year? Find car news, reviews and more
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help