First page Back Continue Last page Overview Graphics

Operations, III

Other operations on arrays:

>>> x = np.arange(1,4)

>>> np.sin(x)

array([ 0.84147098, 0.90929743, 0.14112001])

>>> np.log(x)

array([ 0. , 0.69314718, 1.09861229])

>>> np.exp(x)

array([ 2.71828183, 7.3890561 , 20.08553692])

>>>