Thursday, September 10, 2020

python program to perform sine operation on a numpy array

 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

Durga Puja in Odisha

 Durga Puja in Odisha