[R] Gamma function

Stavros Macrakis 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.

             -s

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
> http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> 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 mailing list