numpy.arcsin(x[, out]) = ufunc 'arcsin') : This mathematical function helps user to calculate inverse sine for all x(being the array elements).
Parameters :
array : [array_like]elements are in radians.
out : [array_like]array of same shape as x.
Return :
An array with inverse sine of x
for all x i.e. array elements.
The values are in the closed interval [-pi/2, pi/2].
Code #1 : Working
Output :
Input array :
[0, 1, 0.3, -1]
Inverse Sine values :
[ 0. 1.57079633 0.30469265 -1.57079633]
Code #2 : Graphical representation