Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Numpy-Solved.ipynb #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Tutorial_02/Numpy-Solved.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -612,14 +613,14 @@
"$$m-M=5(\\log(d)-1)$$\n",
"where $M$ is the absolute magnitude and $d$ the distance of the star from us in parsecs(pc).\n",
"\n",
"Now let $m_\\odot$ denote the apparent magnetude of the sun and $d_\\odot$ the distance of the sun from us. We can then write the following formula assuming $m$ to be the apparent magnitude of the star considered and $d$ its distance:\n",
"Now let $m_\\odot$ denote the apparent magnitude of the sun and $d_\\odot$ the distance of the sun from us. We can then write the following formula assuming $m$ to be the apparent magnitude of the star considered and $d$ its distance:\n",
"$$m = -2.5log\\left(\\frac{L/4\\pi d^2}{F_0}\\right)$$\n",
"$$m_\\odot = -2.5\\log\\left(\\frac{L_\\odot/4\\pi d_\\odot^2}{F_0}\\right)$$\n",
"Subtracting the two we get, \n",
"$$m_\\odot-m = -2.5\\log\\left(\\frac{L}{L_\\odot}\\right) + 5\\log\\left(\\frac{d}{d_\\odot}\\right)$$ \n",
"$$m_\\odot-m = 2.5\\log\\left(\\frac{L}{L_\\odot}\\right) - 5\\log\\left(\\frac{d}{d_\\odot}\\right)$$ \n",
"\n",
"Now using\n",
"$$m_\\odot - 4.83 = 5(\\log(d) - 1)$$\n",
"$$m_\\odot - 4.83 = 5(\\log(d_\\odot) - 1)$$\n",
"and substituting in the above equation we get after some rearrangement:\n",
"$$5 \\log(d) = m + 2.5\\log\\left(\\frac{L}{L_\\odot}\\right) + 0.17$$\n",
"$$\\implies \\log(d) = \\left[m + 2.5\\log\\left(\\frac{L}{L_\\odot}\\right) + 0.17\\right]/5$$\n",
Expand Down