Homework Assignments#

Expectations#

All homework assignments will be completed using Jupyter notebooks, where you will submit your source file (*.ipynb) and a compiled file (*.pdf). The filename for each submission will be in the following format “ASTR4410_Chpt#_LastName”, where the “#” character is replaced the appropriate chapter number. Jupyter notebooks allow you to create code cells in Python and non-code cells in Markdown. There are short guides in the Preamble that will help you.

A complete homework problem contains a detailed explanation that describes the process by which you arrived at the solution. You will not receive full credit for simply reporting the final answer. To describe the process, you will use the math mode in \(\LaTeX\) to display equations, numbers in scientific notation, and variables. A guide to the various commands can be found here.

Homework Style#

The homework assignments should match the following style:

  1. The homework title is the top level section (#).

  2. Each homework problem is the next level section (##)

  3. The text following the homework problem is a verbatim copy of the text from the respective problem in bold.

  4. Your detailed explanation is written in normal text, where in-line math mode (single $) or display math mode (double $) is used appropriately.

  5. The final result is displayed in bold.

  6. Code cells that recreate your solution are placed just after your detailed explanation.

The next section provides a template to help you see the described style.

Chapter 1#

Problem 3#

At what distance from a 100 W light bulb is the radiant flux equal to the solar irradiance?

The solar irradiance is the amount of flux that the Earth receives from the Sun. The Sun’s luminosity is defined as 1 \(L_\odot\) (or \(3.828 \times 10^{26}\) W) and the Earth’s distance from the Sun is 1 AU. The equation for flux \(F\) is simply the luminosity \(L\) of a source divided over (i.e., spread out) an area, where this case is the surface of a sphere \((A_{\rm sphere} = 4\pi r^2)\), or

\[ F = \frac{L}{4\pi r^2}. \]

In this case, the solar irradiance is defined as 1361 \({\rm W/m^2}\) and the luminosity of the bulb is 100 W. Using algebra, the above equation becomes

\[r = \sqrt{\frac{L}{4\pi F}}, \]

which will give the distance to a source given the luminosity and flux. The distance to receive a solar irradiance from a 100 W light bulb is 0.0765 m or 76.5 mm.

#https://docs.astropy.org/en/stable/constants/#module-astropy.constants
from astropy.constants import L_sun, au
import numpy as np

def get_flux(L,r):
    #luminosity (in W)
    #radius (in m)
    return L/(4*np.pi*r**2)

def get_radius(L,F):
    #L = luminosity (in W)
    #F = flux (in W/m^2)
    return np.sqrt(L/(4*np.pi*F)) #returns the distance (in m)

F_solar = get_flux(L_sun.value,au.value)
print("The radiative flux received by the Earth at 1 AU is %d W/m^2." % F_solar)
r_bulb = get_radius(100,F_solar)
print("The distance to the bulb to recieve a solar irradiance of flux is %1.4f m." % r_bulb)
The radiative flux received by the Earth at 1 AU is 1361 W/m^2.
The distance to the bulb to recieve a solar irradiance of flux is 0.0765 m.