此函数用于计算数组元素的双曲反正切。
句法
numpy.arctanh(array[, out] )
参数
- 数组:要计算其双曲反正切值的数组元素(以弧度为单位)。
- out:输出数组的形状。
返回
返回包含双曲反正切值的数组。
例子
import numpy as np
import math
arr = np.array([0, 0.2, 0.5, 0.3])
print("Input Array:", arr)
print("arctanh Array:", end=" ")
arctanharr = np.arctanh(arr)
print(arctanharr)
输出
Input Array: [0. 0.2 0.5 0.3]
arctanh Array: [0. 0.20273255 0.54930614 0.3095196 ]
来源:
https://www.srcmini02.com/30771.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_35735.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57