numpy arcsinh()

此函数用于计算数组元素的双曲反正弦。

句法

numpy.arcsinh(array[, out] )

参数

  1. 数组:要计算其双曲反正弦值的数组元素(以弧度为单位)。
  2. out:输出数组的形状。

返回

返回包含双曲反正弦值的数组。

例子

import numpy as np
import math

arr = np.array([0, math.pi/4, 3*math.pi/2, math.pi/6])

print("Input Array:", arr)
print("tanh Array:", end=" ")

arcsinharr = np.arcsinh(arr)

print(arcsinharr)

输出

Input Array: [0.         0.78539816 4.71238898 0.52359878]
tanh Array: [0.         0.72122549 2.25441459 0.50221899]

来源:

https://www.srcmini02.com/30770.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_35733.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?