Contact: aviboots(AT)netvision.net.il
43,964 questions
57,400 answers
573 users
import numpy as np arr = np.array([[9, 12], [25, 16]], dtype = np.int64) sq = np.sqrt(arr) print(sq) ''' run: [[3. 3.46410162] [5. 4. ]] '''
import numpy as np arr = np.array([9, 12, 25], dtype = np.int64) sq = np.sqrt(arr) print(sq) ''' run: [3. 3.46410162 5. ] '''