Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Задано масив arr:
arr = np.array([1, 2, 3, 4])
Як знайти суму квадратів елементів масиву arr
s = np.sum(arr**2)
s = np.sum([for a in arr]**2)
s = np.sum(arr[arr**2])
s = arr[arr**2].sum()
s = (arr**2).sum
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!