First Last - IntroPython


In [ ]:
import numpy as np

Create an array called: abs_mag

  • 100 evenly spaced point between 3.0 and 15.0

In [ ]:

Write a function called find_size to compute:

$$\large 4200\ * 10^{-0.2\ \textrm{abs_mag}}$$

In [ ]:

Apply the function to the array abs_mag. Call the output array: size_of_rock


In [ ]:

How many values of size _of_rock are greater than 500?


In [ ]:

How many values of size _of_rock are between 10 and 50?


In [ ]:

Due Thur Oct 12 - 5pm

  • Make sure to change the filename to your name!
  • Make sure to change the Title to your name!
  • File -> Download as -> HTML (.html)
  • upload your .html and .ipynb file to the class Canvas page