Compute the tangent value which is multiples of pi in R Programming – tanpi() Function Last Updated : 10 Jun, 2020 Improve Improve Like Article Like Save Share 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: # R program to illustrate # tanpi function # Calling the tanpi() function tanpi(0) tanpi(1 / 4) Output: [1] 0 [1] 1 Example 2: # R program to illustrate # tanpi function # Calling the tanpi() function tanpi(2 / 3) tanpi(1 / 2) Output: [1] -1.732051 [1] NaN Like Article Suggest improvement Next Compute the sine value which is multiples of pi in R Programming – sinpi() Function Share your thoughts in the comments Add Your Comment Please Login to comment...