This function is used to calculate the inverse cos of the array elements.
numpy.arccos(array, out)
It returns an array containing the inverse cos for all the array elements, x.
import numpy as np arr = [0, 0.3, -1] print ("Input array : \n", arr) arccos_val = np.arccos(arr) print ("\nInverse cos values : \n", arccos_val)
Output: