Calculate sine of a value in R Programming – sin() Function Improve Improve Like Article Like Save Share Report 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: # R code to calculate sine of a value # Assigning values to variables x1 <- -90 x2 <- -30 # Using sin() Function sin(x1) sin(x2) Output: [1] -0.8939967 [1] 0.9880316 Example 2: # R code to calculate sine of a value # Assigning values to variables x1 <- pi x2 <- pi / 3 # Using sin() Function sin(x1) sin(x2) Output: [1] 1.224647e-16 [1] 0.8660254 Last Updated : 01 Jun, 2020 Like Article Save Article Previous Rounding off to the ceiling or floor value in R Programming - trunc() Function Next Calculate Hyperbolic sine of a value in R Programming - sinh() Function Share your thoughts in the comments Add Your Comment Please Login to comment...