Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Need help from the 2nd question writing a find size function using Python to the last question. Thanks. In [0] import numpy as np Create

image text in transcribedimage text in transcribed

Need help from the 2nd question writing a find size function using Python to the last question. Thanks.

In [0] import numpy as np Create an array called: abs_mag 100 evenly spaced point between 3.0 and 15.0 In 171 abs_mag np.linspace (3, 15, 100) abs_mag OutI 17]: array 3. , 3.12121212, 3.24242424, 3.36363636, 3.48484848, 3.60606061 3.72727273, 3.84848485,3.96969697, 4.09090909, 4.21212121, 4.33333333, 4.45454545, 4.57575758, 4.6969697, 4.81818182, 4.93939394, 5.06060606, 5.18181818, 5.3030303 , 5.42424242, 5.54545455, 5.66666667,5.78787879, 5.90909091, 6.03030303 6.15151515, 6.27272727,6.39393939, 6.51515152, 6.63636364, 6.75757576, 6.87878788, 7. 7.24242424, 7.36363636, 7.48484848, 7.60606061, 7.72727273 7.12121212 8.45454545, 8.57575758, 8.6969697 9.06060606, 9.18181818, 9.3030303, 9.66666667, 9.78787879, 9.90909091, 10.03030303, 10.15151515 7.84848485, 7.96969697, 8.09090909, 8.21212121, 8.33333333, 8.81818182, 8.93939394, 9.42424242, 9.54545455, 10.27272727, 10.39393939, 10.51515152, 10.63636364, 10.75757576, 11.12121212, 11.24242424,11.36363636, 11.48484848, 11.60606061, 11.72727273, 11.84848485, 11.96969697, 12.09090909, 12.21212121, 12.33333333, 12.45454545, 12.57575758, 12.6969697 , 12.81818182, 12.93939394, 13.06060606, 13.18181818, 13.3030303, 13.42424242, 13.54545455, 13.66666667, 13.78787879, 13.90909091, 14.03030303, 14.15151515, 14.27272727, 14.39393939, 10.87878788, 11. 14.51515152, 14.63636364,14.75757576, 14.87878788, 15 Write a function called find size to compute: 4200 x 10(-0.2 Xabs mag) In [181: Out[ 18]array(01054.99230123, 997.71583749, 943.54896355, 892.32285703, 843.87786108, 798.06298674, 754.73544238,713.76018868, 675.00951768, 638.36265484, 603.70538254, 570.92968417, , 510.61994588, 482.89793807, 456.68098254, 539.9334074 431.88736869,408.43982202, 386.26526337, 365.2945811 345.46241568, 326.70695605, 308.96974687, 292.19550645, 276.33195436, 261.32964851, 247.14183111, 233.72428283, 221.03518511, 209.0349897,197.6862955, 186.95373194, 176.80384872, 167.20501163, 158.12730389, 149.54243291, 141.42364216, 133.74562773, 126.48445948, 119.61750647, , 95.6808551, .53416547, 72.37905804, 68.44953505, 64.73334935, 61.21891864, 6,48.96840485, .16934057, 113.12336641,106.98179894, 101.1736626 90.48625698, 85.57367818 80.92780762, 76 57.89528948 46.3098669, 37.04280248, 54.75210309, 43.79566333, 35.03171602, 33 1.77956306 41.41795809, 39 .12981322, 31.3311664 29.63016971, 28.02152162, 26.50020847, 25.06148875, , 20.04643588, .03494491, , 12.82619314, 23.70087839 22.41413677 21.19725349 16.95547249, 16 09717,17.92884533, 15.16439359, 14.34110527, 13 .562514 12.12984778, 11.47130764,10.84852021, 10.25954447 9.70254474, 7.76096915, 6.20792212, 4.96565523, 9.17578502, 7.33961928, 5.87088855, 4.69606543 8.67762355, 6.94114487, 5.55215282, .44111189, 8.2065077 6.56430398, 5.25072154, 4.2 Aoolv the function to the array abs_mag. Call the output array: size of rock In [1: How many values of size _of_rock are greater than 500? In [0]:14 How many values of size _of_rock are between 10 and 50? In [0]:0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students explore these related Databases questions