Advertisement
Fhernd

calculo-arreglos-numericos-grandes.py

May 30th, 2018
1,858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import numpy as np
  2.  
  3. arreglo1 = np.array([2, 3, 5, 7, 11])
  4. arreglo2 = np.array([13, 17, 19, 13, 29])
  5.  
  6. print(arreglo1 * 2)
  7. print(arreglo1 + 5)
  8. print(arreglo1 + arreglo2)
  9. print(arreglo1 * arreglo2)
  10.  
  11. def f(x):
  12.     return 3 * x ** 2 - 2 * x + 7
  13.  
  14. print(f(arreglo1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement