Calculate Inverse tangent of a value in R Programming – atan() Function Improve Improve Improve Like Article Like Save Article Save Share Report issue Report 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: # R code to calculate inverse tangent of a value # Assigning values to variables x1 <- -1 x2 <- 0.5 # Using atan() Function atan(x1) atan(x2) Output: [1] -0.7853982 [1] 0.4636476 Example 2: # R code to calculate inverse tangent of a value # Assigning values to variables x1 <- 0.224587 x2 <- 0.456732 # Using atan() Function atan(x1) atan(x2) Output: [1] 0.2209213 [1] 0.4284381 Last Updated : 01 Jun, 2020 Like Article Save Article Previous Rounding off to the ceiling or floor value in R Programming - trunc() Function Next Convert Degree value to Radian value in R Programming - deg2rad() Function Share your thoughts in the comments Add Your Comment Please Login to comment...