Run »
import numpy as np arr = np.array([np.pi/2, np.pi/3, np.pi/4, np.pi/5]) x = np.sin(arr) print(x)
[1. 0.8660254 0.70710678 0.58778525]