In this python numpy program, we will calculate the tan angle of an array using NumPy.
Steps to solve the program
- Import the numpy library as np.
- Create an array using np.array().
- Calculate the tan angle of the array using np.tan().
- Print the output.
import numpy as np
angle = np.array([45,13])
print(f"Tan of {angle}: ",np.tan(angle))
Output :
Tan of [45 13]: [1.61977519 0.46302113]