Compute the tangent value which is multiples of pi in R Programming – tanpi() Function Last Updated : 10 Jun, 2020 Comments Improve Suggest changes Like Article Like Report tanpi() function in R Language is used to compute the tangent value of x which is the multiples of pi. Syntax: tanpi(x) Parameters: x: Numeric value, array or vector Example 1: Python3 1== # R program to illustrate # tanpi function # Calling the tanpi() function tanpi(0) tanpi(1 / 4) Output: [1] 0 [1] 1 Example 2: Python3 1== # R program to illustrate # tanpi function # Calling the tanpi() function tanpi(2 / 3) tanpi(1 / 2) Output: [1] -1.732051 [1] NaN Comment More infoAdvertise with us Next Article Compute the tangent value which is multiples of pi in R Programming – tanpi() Function N nidhi_biet Follow Improve Article Tags : R Language R Math-Function Similar Reads Compute the sine value which is multiples of pi in R Programming â sinpi() Function sinpi() function in R Language is used to compute the sine value of x which is the multiples of pi. Syntax: sinpi(x) Parameters: x: Numeric value, array or vector Example 1: Python3 1== # R program to illustrate # sinpi function # Calling the sinpi() function sinpi(0.5) sinpi(1) Output: [1] 1 [1] 0 1 min read Compute the cosine value which is multiples of pi in R Programming - cospi() Function cospi() function in R Language is used to compute the cosine value of x which is the multiples of pi. Syntax: cospi(x) Parameters: x: Numeric value, array or vector Example 1: Python3 # R program to illustrate # cospi function # Calling the cospi() function cospi(0) cospi(1) Output: [1] 1 [1] -1 Exa 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 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 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 Like