Skip to content

Commit

Permalink
Merge pull request #46 from project-lovelace/jupyter-notebooks
Browse files Browse the repository at this point in the history
Link to Jupyter notebooks
  • Loading branch information
ali-ramadhan authored Jul 17, 2019
2 parents e544d8e + cb57e7f commit 5e3eff7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
9 changes: 8 additions & 1 deletion src/problems/templates/problems/almost-pi.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,18 @@
{% if solved_by_user %}
<h3>Solution notes</h3>
<ul>
<li>The formula we used here is <a href="https://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80">Leibniz formula
<li>
The formula we used here is <a href="https://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80">Leibniz formula
for π</a> and is one of the slowest to converge: you need TONS of terms to calculate more and more digits of π.
There are <a href="https://en.wikipedia.org/wiki/List_of_formulae_involving_%CF%80#Efficient_infinite_series">
crazy looking efficient formulas</a>a that can calculate digits of π much faster.
</li>
<li>
The Jupyter notebook used to generate the plot in the figure is on GitHub:
<a href="https://github.com/project-lovelace/lovelace-code-snippets/blob/master/Almost%20pi/Almost%20pi.ipynb">
Almost pi.ipynb
</a>
</li>
</ul>
{% endif %}

Expand Down
8 changes: 5 additions & 3 deletions src/problems/templates/problems/chaos.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@
{% if solved_by_user %}
<h3>Solution notes</h3>
<ul>
<li>You can download the script used to generate the plot in the figure as <a
href="{% static 'code/Logistic_map_plot.py' %}">Python code</a> or a <a
href="{% static 'code/Logistic_map_plot.ipynb' %}">Jupyter notebook</a>.
<li>
The Jupyter notebook used to generate the plot in the figure is on GitHub:
<a href="https://github.com/project-lovelace/lovelace-code-snippets/blob/master/Chaos/Logistic_map_plot.ipynb">
Logistic_map_plot.ipynb
</a>
</li>
</ul>
{% endif %}
Expand Down
12 changes: 7 additions & 5 deletions src/problems/templates/problems/rocket-science.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,14 @@ <h3>Solution notes</h3>
<ul>
<li>Hey you solved the first problem! You might notice that your estimate for the fuel needed to escape Earth
(almost 20 million kg) is much higher than the fully loaded mass of the Saturn V of 2.97 million kg. The Saturn V
(and pretty much all rockets) get away with it because they are <a
href="https://en.wikipedia.org/wiki/Multistage_rocket">multistage rockets</a>.
(and pretty much all rockets) get away with it because they are
<a href="https://en.wikipedia.org/wiki/Multistage_rocket">multistage rockets</a>.
</li>
<li>You can download the script used to generate the plot in the figure as <a
href="{% static 'code/Rocket_science_fuel_needed_plot.py' %}">Python code</a> or a <a
href="{% static 'code/Rocket_science_fuel_needed_plot.ipynb' %}">Jupyter notebook</a>.
<li>
The Jupyter notebook used to generate the plot in the figure is on GitHub:
<a href="https://github.com/project-lovelace/lovelace-code-snippets/blob/master/Rocket%20science/Rocket_science_fuel_needed_plot.ipynb">
Rocket_science_fuel_needed_plot.ipynb
</a>
</li>
</ul>
{% endif %}
Expand Down

0 comments on commit 5e3eff7

Please sign in to comment.