How to get Euler–Mascheroni's constant in R? -
is euler–mascheroni's constant $\gamma \approx 0.577$ available in r, $\pi$ pi
or $e$ exp(1)
?
mathmatically can write constant of interest negative of derivative of gamma function evaluated @ 1. r has derivative of gamma function digamma
it's matter of plugging in.
-digamma(1) #[1] 0.5772157
Comments
Post a Comment