Friday, September 11, 2020

'exp' method over arrays in python

  'exp' method over arrays in python


 

 

 

'exp' method over arrays in python

============================

method to calculate exponents over arrays in python

 

example:

=======

from numpy import *

arr = array([1,2,3,4])

print("Original Array:", arr)

print("Exponentiation value:", exp(arr))

 

Output :

=======

Original Array: [1 2 3 4]
Exponentiation value: [ 2.71828183  7.3890561  20.08553692 54.59815003]


No comments:

Post a Comment

Durga Puja in Odisha

 Durga Puja in Odisha