tanpi()
R 語言中的函數用於計算 x 的正切值,它是 pi 的倍數。
用法: tanpi(x)
參數:
x:數值、數組或向量
範例1:
# R program to illustrate
# tanpi function
# Calling the tanpi() function
tanpi(0)
tanpi(1 / 4)
輸出:
[1] 0 [1] 1
範例2:
# R program to illustrate
# tanpi function
# Calling the tanpi() function
tanpi(2 / 3)
tanpi(1 / 2)
輸出:
[1] -1.732051 [1] NaN
相關用法
- R語言 cospi()用法及代碼示例
- R語言 sinpi()用法及代碼示例
- R語言 tanh()用法及代碼示例
- R語言 tan()用法及代碼示例
- R語言 atan()用法及代碼示例
- R語言 lgamma()用法及代碼示例
- R語言 trigamma()用法及代碼示例
- R語言 qcauchy()用法及代碼示例
- R語言 qlogis()用法及代碼示例
- R語言 qlnorm()用法及代碼示例
- R語言 qpois()用法及代碼示例
- R語言 qnbinom()用法及代碼示例
- R語言 ecdf()用法及代碼示例
- R語言 pf()用法及代碼示例
- R語言 qf()用法及代碼示例
- R語言 qweibull()用法及代碼示例
- R語言 qtukey()用法及代碼示例
- R語言 qsignrank()用法及代碼示例
- R語言 qwilcox()用法及代碼示例
- R語言 integrate()用法及代碼示例
- R語言 qgeom()用法及代碼示例
- R語言 qunif()用法及代碼示例
注:本文由純淨天空篩選整理自nidhi_biet大神的英文原創作品 Compute the tangent value which is multiples of pi in R Programming – tanpi() Function。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。