With the usage of NumPy library do the following requirements. a) Create and print a NumPy array which consists of even numbers from 0 to 50(including 50). b) Get the sum of the all elements in array...


BY USING PYTHON


With the usage of NumPy library do the following requirements.<br>a) Create and print a NumPy array which consists of even numbers from 0 to<br>50(including 50).<br>b) Get the sum of the all elements in array and print them by using NumPy's sum()<br>function.<br>c) Create a new array which consists of squared values of the array by using the array in<br>option a).<br>d) Get the sum of all elements in squared array and print them.<br>e) From the array in option c), take the elements that are under 1000 by using Boolean<br>masking method. (Hint: You will print Boolean array and value array both in this option.)<br>

Extracted text: With the usage of NumPy library do the following requirements. a) Create and print a NumPy array which consists of even numbers from 0 to 50(including 50). b) Get the sum of the all elements in array and print them by using NumPy's sum() function. c) Create a new array which consists of squared values of the array by using the array in option a). d) Get the sum of all elements in squared array and print them. e) From the array in option c), take the elements that are under 1000 by using Boolean masking method. (Hint: You will print Boolean array and value array both in this option.)

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here