Skip to content

Commit

Permalink
minor changes to math expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
jayantbhakar committed Aug 16, 2022
1 parent 9c7f4f2 commit 1e02ec2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/io/visualization/montecarlo_packet_visualization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,17 @@
"\\\n",
"<img src=\"attachment:packet_diagram.jpg\" style=\"width:400px\">\n",
"\n",
"<br><br>The diagram above shows the packet trajectory as it starts from photosphere `P0` and continues to move along the subsequent points `P1`, `P2` and so on.\n",
"<br><br>The diagram above shows the packet trajectory as it starts from photosphere `P0` and continues to move along the subsequent points `P1`, `P2`, and so on.\n",
"\n",
"<div class=\"alert alert-info\">\n",
"\n",
"Note\n",
" \n",
"Here `μ` is the angle of direction of packet propagation with respect to line joining the center.\n",
"Here `μ` represents the direction of packet propagation with respect to the radial line.\n",
" \n",
"</div>\n",
"\n",
"To determine the polar coordinates of any arbitrary point, let say `P2`, we need `r2` and `θ2`. `r2` is already present in the array obtained from the simulation. To determine `θ2`, we use sine rule and apply it on triangle `OP1P2`, where `O` is the center.\n",
"To determine the polar coordinates of any arbitrary point, say `P2`, we need `r2` and `θ2`. `r2` is already present in the array obtained from the simulation. To determine `θ2`, we use sine rule and apply it to the triangle `OP1P2`, where `O` is the center.\n",
"\n",
"$$\n",
"\\frac{r_{2}}{\\sin(\\pi - \\mu_{1})} = \\frac{r_{1}}{\\sin(\\alpha)}\n",
Expand All @@ -112,7 +112,9 @@
"Now, writing `α` in terms of `μ1` and `θ2`\n",
"\n",
"$$ \n",
"α = μ_{1} - θ_{2} \\\\ \\\\\n",
"α = μ_{1} - θ_{2}\n",
"$$\n",
"$$\n",
"\\frac{r_{2}}{\\sin(\\pi - \\mu_{1})} = \\frac{r_{1}}{\\sin(μ_{1} - θ_{2})}\n",
"$$\n",
"\n",
Expand Down Expand Up @@ -230,8 +232,8 @@
"fig = go.Figure()\n",
"\n",
"# Set axes properties\n",
"fig.update_xaxes(range=[-1.1*v_shells[-1],1.1*v_shells[-1]],title=\"velocity (km/s)\",exponentformat=\"none\",linecolor=\"#555\",gridcolor=\"#fafafa\",zerolinecolor=\"#fafafa\")\n",
"fig.update_yaxes(range=[-1.1*v_shells[-1],1.1*v_shells[-1]],title=\"velocity (km/s)\",exponentformat=\"none\",linecolor=\"#555\",gridcolor=\"#fafafa\",zerolinecolor=\"#fafafa\")\n",
"fig.update_xaxes(range=[-1.1*v_shells[-1],1.1*v_shells[-1]],title=\"VELOCITY (KM/S)\",exponentformat=\"none\",linecolor=\"#555\",gridcolor=\"#fafafa\",zerolinecolor=\"#fafafa\")\n",
"fig.update_yaxes(range=[-1.1*v_shells[-1],1.1*v_shells[-1]],title=\"VELOCITY (KM/S)\",exponentformat=\"none\",linecolor=\"#555\",gridcolor=\"#fafafa\",zerolinecolor=\"#fafafa\")\n",
"\n",
"# adding the shells\n",
"shell_shapes={}\n",
Expand Down

0 comments on commit 1e02ec2

Please sign in to comment.