Calculate tangent of a value in R Programming - tan() Function Last Updated : 01 Jun, 2020 Comments Improve Suggest changes Like Article Like Report tan() function in R Language is used to calculate the tangent of the numeric value passed to it as argument. Syntax: tan(x) Parameter: x: Numeric value Example 1: Python3 1== # R code to calculate tangent of a value # Assigning values to variables x1 <- -90 x2 <- -30 # Using tan() Function tan(x1) tan(x2) Output: [1] 1.9952 [1] 6.405331 Example 2: Python3 1== # R code to calculate tangent of a value # Assigning values to variables x1 <- pi x2 <- pi / 3 # Using tan() Function tan(x1) tan(x2) Output: [1] -1.224647e-16 [1] 1.732051 Comment More infoAdvertise with us Next Article Calculate tangent of a value in R Programming - tan() Function N nidhi_biet Follow Improve Article Tags : R Language R Math-Function Similar Reads Calculate sine of a value in R Programming - sin() Function sin() function in R Language is used to calculate the sine value of the numeric value passed to it as argument. Syntax: sin(x) Parameter: x: Numeric value Example 1: Python3 1== # R code to calculate sine of a value # Assigning values to variables x1 <- -90 x2 <- -30 # Using sin() Function sin 1 min read Calculate Inverse tangent of a value in R Programming - atan() Function atan() function in R Language is used to calculate the inverse tangent value of the numeric value passed to it as argument. Syntax: atan(x) Parameter: x: Numeric value Example 1: Python3 1== # R code to calculate inverse tangent of a value # Assigning values to variables x1 <- -1 x2 <- 0.5 # U 1 min read Calculate arc tangent of a value in R programming - atan2(y, x) function With the help of atan2(y, x) method, we can get the arc tangent between x axis and a vector from origin to (x, y) in R programming. Syntax: atan2(y, x) Return: Returns the arc tangent value. Example 1: Python3 x <- c(2, 3, 4) # Using atan2(y, x) method gfg <- atan2(1, x) print(gfg) Output: [1] 1 min read Calculate Hyperbolic tangent of a value in R Programming - tanh() Function tanh() function in R Language is used to calculate the hyperbolic tangent of the numeric value passed to it as argument. Syntax: tanh(x) Parameter: x: Numeric value Example 1: Python3 1== # R code to calculate hyperbolic tangent of a value # Assigning values to variables x1 <- -90 x2 <- -30 # 1 min read Calculate cosine of a value in R Programming - cos() Function cos() function in R Language is used to calculate the cosine value of the numeric value passed to it as argument. Syntax: cos(x) Parameter: x: Numeric value Example 1: Python3 1== # R code to calculate cosine of a value # Assigning values to variables x1 <- 90 x2 <- 30 # Using cos() Function c 1 min read Calculate Inverse sine of a value in R Programming - asin() Function asin() function in R Language is used to calculate the inverse sine value of the numeric value passed to it as argument. Syntax: asin(x) Parameter: x: Numeric value Example 1: Python3 1== # R code to calculate inverse sine of a value # Assigning values to variables x1 <- -1 x2 <- 0.5 # Using a 1 min read Calculate Hyperbolic sine of a value in R Programming - sinh() Function sinh() function in R Language is used to calculate the hyperbolic sine value of the numeric value passed to it as argument. Syntax: sinh(x) Parameter: x: Numeric value Example 1: Python3 1== # R code to calculate hyperbolic sine of a value # Assigning values to variables x1 <- -90 x2 <- -30 # 1 min read Calculate arc cosine of a value in R programming - acos() function The acos() is an inbuilt function in R Programming which is used to calculate arc cosine of the specified radian value and output is also in radians. Syntax: acos(radian) Return: Returns the arc cosine value of radian. Example 1: Python3 # Using acos() method gfg <- acos(pi/4) print(gfg) Output: 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 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