Jupyter Books for Mathematics#
Jupyter-books is a simple editor that allows one to create eye-catching content and host it online. Created by programmers interested in data science, Jupyter-books provides a hugely customizable platform for any STEM discipline – and other disciplines, too. Mathematicians can repurpose this teaching and coding environment specifically for the content needed in their classes.
This Jupyter book explains how the interested mathematician can get started. Before that, let’s ask the question: Why would a mathematician want to get started? The answers include:
Helping students.
Saving the instructor’s time.
The editing environment includes LaTeX.
A python engine will evalate and display answers to items like:
Myst markdown is LaTeX-ready and makes editing easy with special content blocks:
Hints
Warnings
Notes
Cards
Sidebars
Note
Below, we show the python engine acting as a calculator. First, we need some initial code to setup python correctly for the calculations.
import numpy as np
import scipy.stats as stats
Tip
Always import numpy for scientific functions and scipy.stats for all statistical functions and tests (t-tests, ANOVA, chi-squared, and so on).
np.cos(np.pi/6)
np.float64(0.8660254037844387)
# Python's log function defaults to the natural log, not the common log.
np.log(7)
np.float64(1.9459101490553132)
sum(np.arange(10)**2)
np.int64(285)