Calculate exponential of a number in R Programming - exp() Function Last Updated : 01 Jun, 2020 Comments Improve Suggest changes Like Article Like Report exp() function in R Language is used to calculate the power of e i.e. e^y or we can say exponential of y. The value of e is approximately equal to 2.71828….. Syntax: exp(y) Parameters: y: It is any valid R number either positive or negative. Returns: Floating point number by calculating e^y. Example 1: Python3 # R program to calculate exp value # Using exp() method answer1 <- exp(4) answer2 <- exp(-3) answer3 <- exp(0.0) print(answer1) print(answer2) print(answer3) Output: 54.59815 0.04978707 1 Example 2: Python3 # R program to calculate exp value # Using exp() method answer1 <- exp(c(pi, exp(1))) print(answer1) Output: 23.14069 15.15426 Comment More infoAdvertise with us Next Article Calculate exponential of a number in R Programming - exp() Function S spp____ Follow Improve Article Tags : R Language R Math-Function Similar Reads Compute the Exponential minus 1 of a Number in R Programming - expm1() Function expm1() function in R Language is used to compute exponential minus 1 i.e, exp()-1. Syntax: expm1(x) Parameters: a, b: number or number vector Example 1: Python3 # R program to illustrate # expm1 function # Calling the expm1() function expm1(4) # e5 -1 expm1(10) expm1(15) Output: [1] 53.59815 [1] 22 1 min read Calculate Factorial of a value in R Programming - factorial() Function The factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. It is defined as: n! = n à (n - 1) à (n - 2) à ... à 2 à 1For example 5! = 5 à 4 à 3 à 2 à 1 = 1200! is defined to be 1.Factorials have important applications in mathematics, co 3 min read Calculate Cumulative Sum of a Numeric Object in R Programming - cumsum() Function The cumulative sum can be defined as the sum of a set of numbers as the sum value grows with the sequence of numbers. cumsum() function in R Language is used to calculate the cumulative sum of the vector passed as argument. Syntax: cumsum(x) Parameters: x: Numeric Object Example 1: Python3 # R pr 1 min read Calculate Cumulative Product of a Numeric Object in R Programming â cumprod() Function cumprod() function in R Language is used to calculate the cumulative product of the vector passed as argument. Syntax: cumprod(x) Parameters: x: Numeric Object Example 1: Python3 1== # R program to illustrate # the use of cumprod() Function # Calling cumprod() Function cumprod(1:4) cumprod(-1:-6) Ou 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 Like