[R] Trigamma function

Bill.Venables@cmis.csiro.au Bill.Venables at cmis.csiro.au
Thu Oct 17 05:26:21 CEST 2002


Feng Zhang asks:

>  -----Original Message-----
> From: 	Feng Zhang [mailto:f0z6305 at labs.tamu.edu] 
> Sent:	Thursday, October 17, 2002 11:28 AM
> To:	R-Help
> Subject:	[R] Trigamma function
> 
> Hey, all
> 
> Do you how to calculate the trigamma function, that is
> d**2(log(gamma(x))) / dx**2.
> The second-order derivative of log(Gamma(x))?
> 
> I cannot find it in the R package, and somebody knows who or where to get
> such one?
	[WNV]  Eh?  Try package:base.  Hard to avoid really.
	> find(trigamma)
	[1] "package:base"
	> trigamma(1:10)
	 [1] 1.6449341 0.6449341 0.3949341 0.2838230 0.2213230 0.1813230
0.1535452
	 [8] 0.1331370 0.1175120 0.1051663
	> 
	Easy peasy.

> Thanks.
> 
> Fred
> 
> 
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-
> r-help mailing list -- Read
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list