Numpy arcsin() method

This function is used to calculate the inverse sin of the array elements.

Syntax

snippet
numpy.arcsin(array, out)

Parameters

  1. array: these are the array elements of which, the inverse sin values are to be calculated.
  2. Out: It is the shape of the output array.

Return

It returns an array containing the inverse sin for all the array elements, x.

Example

snippet
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)

Output:

Output
Input array : [0, 0.3, -1] Inverse Sine values : [ 0. 0.30469265 -1.57079633]
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents