import numpy as np; x = np.array([0.5, 1, 1.5, 2.5]); print(np.round(np.sin(np.pi * x), 2))
Log in to join the discussion.
Loading…