Compute the Second Derivative of the Logarithmic value of the gamma Function in R Programming - trigamma() Function Last Updated : 12 Jun, 2020 Comments Improve Suggest changes Like Article Like Report trigamma() function in R Language is used to calculate the second derivative of the natural logarithm of the gamma value calculated using the gamma function. trigamma Function is basically, trigamma(x) = d2(ln(factorial(n-1)))/dx2 Syntax: trigamma(x) Parameters: x: Numeric vector Example 1: Python3 1== # R program to find second derivative # of the lgamma value # Calling the trigamma() Function trigamma(2) trigamma(4) trigamma(5.2) Output: [1] 0.6449341 [1] 0.283823 [1] 0.2119756 Example 2: Python3 1== # R program to find second derivative # of the lgamma value # Creating a vector x <- c(2.3, 3, 1.2) # Calling the trigamma() Function trigamma(x) # Calling trigamma() function # on negative values trigamma(-2.3) trigamma(-2) Output: [1] 0.5425375 0.3949341 1.2673772 [1] 14.72591 [1] Inf Comment More infoAdvertise with us Next Article Compute the Second Derivative of the Logarithmic value of the gamma Function in R Programming - trigamma() Function N nidhi_biet Follow Improve Article Tags : R Language R Math-Function Similar Reads Compute the Logarithmic Derivative of the gamma Function in R Programming - digamma() Function digamma() function in R Language is used to calculate the logarithmic derivative of the gamma value calculated using the gamma function. digamma Function is basically, digamma(x) = d(ln(factorial(n-1)))/dx Syntax: digamma(x) Parameters: x: Numeric vector Example 1: Python3 1== # R program to find lo 1 min read Compute the Natural Logarithm of the Absolute Value of Gamma Function in R Programming - lgamma() Function lgamma() function in R Language is used to compute the natural logarithm of the absolute gamma value of a numeric vector computed using the gamma function. lgamma function is basically, lgamma(x) = ln(factorial(x - 1)) Syntax: lgamma(x) Parameters: x: Non-negative Numeric Vector Example 1: Python3 1 1 min read Compute value of Logistic Quantile Function in R Programming - qlogis() Function qlogis() function in R Language is used to compute the value of logistic quantile function. It also creates a plot of the quantile function of logistic density distribution. Syntax: qlogis(vec) Parameters: vec: x-values for normal density Example 1: Python3 1== # R program to compute value of # logi 1 min read Compute value of Log Normal Quantile Function in R Programming - qlnorm() Function qlnorm() function in R Language is used to compute the value of log normal quantile function. It also creates a plot of the quantile function of log normal distribution. Syntax: qlnorm(vec) Parameters: vec: x-values for normal density Example 1: Python3 1== # R program to compute value of # log norm 1 min read Compute the Natural Logarithm of Factorial in R Programming - lfactorial() Function lfactorial() function in R Language is used to compute the natural logarithm of factorial of x i.e, ln(x!). Syntax: lfactorial(x) Parameters: x: positive numeric value Example 1: Python3 # R program to illustrate # lfactorial function # Calling the lfactorial() function lfactorial(0) lfactorial(1) l 1 min read Like