Calculate arc tangent of a value in R programming - atan2(y, x) function Last Updated : 10 May, 2020 Comments Improve Suggest changes Like Article Like Report 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] 0.4636476 0.3217506 0.2449787 Example 2: Python3 x <- c(2, 3, 1) # Using atan2(y, x) method gfg <- atan2(pi/3, x) print(gfg) Output: [1] 0.4823479 0.3358424 0.8084488 Comment More infoAdvertise with us Next Article Calculate arc tangent of a value in R programming - atan2(y, x) function J Jitender_1998 Follow Improve Article Tags : R Language Similar Reads 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 tangent of a value in R Programming - tan() Function 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 1 min read 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 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 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 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 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 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 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