numpy arcsin()方法使用实例

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

句法

numpy.arcsin(array, out)

参数

  1. 数组:这些是要计算其反正弦值的数组元素。
  2. Out:这是输出数组的形状。

返回

它返回一个数组, 其中包含所有数组元素x的反正弦值。

例子

import numpy as np 
import math

arr = [0, 0.3, -1] 
print ("Input array : \n", arr) 

arcsine = np.arcsin(arr) 
print ("\nInverse Sine values : \n", arcsine)

输出

Input array : 
 [0, 0.3, -1]

Inverse Sine values : 
 [ 0.          0.30469265 -1.57079633]

来源:

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