python program to perform sine operation on a numpy array
python program to perform sine operation
on a numpy array
==================================
code
from numpy import *
arr = array([0,30,60,90])
print("Original Array :", arr)
print("Sine values :",sin(arr))
output
Original Array : [0,30,60,90]
Sine values : [0,0.5,0.866,1]
No comments:
Post a Comment