Test of Jupyter Notebook generator

Core Dump, Seg. Fault Ltd and Univ. of C. Space

May 14, 2015

This is a test notebook where we solve the following math problem:

$$ y' = y,\quad y(0)=2 $$

The equation is separable, and we find by standard methods that

$$ y(t) = 2 e^{t}. $$

The integration constant is found from the initial condition $y(0)=2$ and equals in this case $2$.

We implement the evaulation of $y(t)$ in Python:


In [ ]:
from numpy import exp

def y(t):
    return 2*exp(t)

# Try values
y(0)

In [ ]:
y(1), 2*exp(1)

In [ ]:
y(2), 2*exp(2)

This is how we run the notebook generator on files with extension .aipynb:

Terminal> ipynb_generator.py myfile.aipynb