Calculating Natural Logarithm of calculated nCr value in R Programming - lchoose() Function Last Updated : 08 Jun, 2020 Comments Improve Suggest changes Like Article Like Report lchoose() function in R Language is used to return the natural logarithm of nCr value. This function is equal to log(choose(x)). Syntax: lchoose(n, r) Parameters: n: Number of elements r: Number of combinations Example 1: Python3 # R program to illustrate # lchoose function # Calling lchoose() function answer1 <- lchoose(3, 2) answer2 <- lchoose(2, 2) answer3 <- lchoose(7, 3) print(answer1) print(answer2) print(answer3) Output: [1] 1.098612 [1] 0 [1] 3.555348 Example 2: Python3 # R program to illustrate # lchoose function # Calling lchoose() function which # is equivalent to log(choose(x)) answer1 <- log(choose(5, 1)) answer1_2 <- lchoose(5, 1) answer2 <- log(choose(4, 2)) answer2_2 <- lchoose(4, 2) # Printing values print(answer1) print(answer1_2) print(answer2) print(answer2_2) Output: [1] 1.609438 [1] 1.609438 [1] 1.791759 [1] 1.791759 Here, in the above code, the output of log(choose()) and lchoose() are equal which shows that both functions are equivalent. Comment More infoAdvertise with us Next Article Calculating Natural Logarithm of calculated nCr value in R Programming - lchoose() Function K Kanchan_Ray Follow Improve Article Tags : R Language R Math-Function Similar Reads 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 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 Calculate nCr value in R Programming - choose() Function R Language offers a direct function that can compute the nCr value without writing the whole code for computing nCr value. Syntax: choose(n, r) Parameters: n: Number of elements r: Number of combinations Returns: The number of r combinations from a total of n elements, i.e, nCr value. Example 1: Pyt 1 min read Calculate Hyperbolic cosine of a value in R Programming - cosh() Function cosh() function in R Language is used to calculate the hyperbolic cosine value of the numeric value passed to it as the argument. Syntax: cosh(x)Parameter: x: Numeric value Example 1:  Python3 # R code to calculate cosine of a value # Assigning values to variables x1 <- 90 x2 <- 30 # Using c 1 min read Calculate Inverse cosine of a value in R Programming - acos() Function acos() function in R Language is used to calculate the inverse cosine value of the numeric value passed to it as argument. Syntax: acos(x) Parameter: x: Numeric value Example 1: Python3 1== # R code to calculate inverse cosine of a value # Assigning values to variables x1 <- -1 x2 <- 0.5 # Usi 1 min read Like