📌  相关文章
📜  在 R 编程中计算数值数据的双曲反正切 – atanh()函数

📅  最后修改于: 2022-05-13 01:54:56.328000             🧑  作者: Mango

在 R 编程中计算数值数据的双曲反正切 – atanh()函数

R 语言中的atanh()函数用于计算数值数据的双曲反正切。

示例 1:

# R program to illustrate
# atanh function
   
# Calling atanh() function over
# different numbers
atanh(0)
atanh(1)
atanh(0.9)
atanh(-0.8)

输出:

[1] 0
[1] Inf
[1] 1.472219
[1] -1.098612

示例 2:

# R program to illustrate
# atanh function
  
# Initializing some vectors
x <- c(0, 1, 0.9)
y <- c(-0.1, 0.1)
   
# Calling atanh() function
atanh(x)
atanh(y)

输出:

[1] 0.000000      Inf 1.472219
[1] -0.1003353  0.1003353