# Cosine of Degree Values in NumPy To calculate trigonometric functions such as sine, cosine and tangent in Python we can use functions from the NumPy module such as `np.cos()`, `np.sin()` and `np.tan()`.

To get cosine using NumPy our code would be:

``````import numpy as np

result = np.cos(0.8)

print(result)
``````
``````0.6967067093471655
``````

## Cosine of Degree

To convert angle radians to degrees for use in the `cos()` function, we can pass it through `np.radians()` first like this:

``````import numpy as np

print(result)
``````
``````0.8191520442889918
``````

An alternative is to use the NumPy `deg2rad()` function, which might be more readable to you.

``````import numpy as np

print(result)
``````
``````0.8191520442889918
``````

#### Related Tutorials ### JavaScript: How to Rotate Images

October 14, 2021 ### Python: Get the Maximum value in a NumPy Array

June 09, 2021 ### Python Numpy.sqrt() - Square Root

June 30, 2021 ### How to Replace NA or NaN Values in Pandas DataFrame with fillna()

June 10, 2021 ### How to Generate a Range of Floats in Python

April 22, 2021 ### How to Create Range of Floats in Python

September 15, 2021