2. Description of input parameters of trigonometric functions
parameter
illustrate
x
array_like represents the angle, in radians (2π = 360°) Note: The input here is in radians, and you need to convert the angles into radians through np.pi for input .
out
ndarray, None, or ndarray and None optional . Indicates where the results are stored. If provided, it must have the shape the input broadcasts to. If not provided or None, returns a newly allocated array. The length of the tuple (which can only be used as a keyword argument) must be equal to the number of outputs.
where
array_like is optional . Indicates that this condition is broadcast over the input. Where the condition is true, the out array will be set to the ufunc result. Elsewhere, the out array will retain its original value. Note that if the uninitialized out array is created with out=None by default, the locations where the condition is False will remain uninitialized.
6. Inverse trigonometric function input parameter description
parameter
type of data
illustrate
x
array variable
Indicates the y-coordinate on the unit circle.
out
n-dimensional array, None, a tuple of n-dimensional arrays, optional parameters
Indicates where the specified result is stored. If this parameter is provided, its dimension must be consistent with the broadcasted dimension of the input array. If this parameter is not provided or the parameter value is None, a newly created array will be returned. If this parameter is a tuple, its length must be consistent with the number of return values.
where
Array variable, optional parameter
Indicates that True is used to mark the position where function calculation is performed, and False is used to mark that this position does not perform function calculation, and directly returns the input value as it is, usually using the default value.
7. Inverse trigonometric function return parameter description
parameter
type of data
illustrate
y
n-dimensional array
Represents the value of the inverse trigonometric function for each element in x. The result is in radians and falls within the closed interval [-pi/2, pi/2]. If x is a scalar, then this computed value is also a scalar. Note [return value: in radians]
7. Instructions for Inverse Trigonometric Functions
The input value of the trigonometric function is radian, so when the trigonometric function of finding an angle, the degree must be converted into radian ;
The return value of the inverse trigonometric function is in radians, so to get the angle of the inverse trigonometric function, you must convert radians to degrees .