Numpy arccos() method

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

Syntax

Parameters

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

Return

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

Example

Output:

Input array : 
 [0, 0.3, -1]

Inverse cos values : 
 [1.57079633 1.26610367 3.14159265]

Next TopicNumpy arcsin()