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

Update differential equation examples #59

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Mar 20, 2024

  1. Update coupled spring-mass system

    - Split into a few more cells, with Markdown comments in between
    
    - Use `solve_ivp`, which is now the more standard suggestion for
      SciPy's ODE solver, instead of odeint
    
    - Replace `from pylab import *` with `import matplotlib.pyplot as plt`
    
    - Don't save an intermediate data file, nor the figure; keep
      everything directly inside the notebook
    Evert Rol committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    9b0e22d View commit details
    Browse the repository at this point in the history
  2. Update Korteweg-de Vries equation

    - Make it more notebook style, with separate cells
    
    - Use `solve_ivp` instead of `odeint`
    
    - Fix Matplotlib code (`plt.axis("normal")` doesn't work anymore) and
      use one of the new standard colormaps
    Evert Rol committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    864806f View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. Update the Lotka-Volterra tutorial

    - Split into more cells, with Markdown comments in between
    
    - Use `solve_ivp`, which is now the more standard suggestion for
      SciPy's ODE solver, instead of odeint
    
    - Replace imports with more standard usage: `import numpy as np` and
      `import matplotlib.pyplot as plt`. Replace code accordingly.
    Evert Rol committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    77d3ff8 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Update the Zombie Apocalypse example

    - Split across more cells. In particular, each individual figure is
      preceded by its relevant code, instead of having all figures at the
      end
    
    - Use `solve_ivp` for one example, for comparison with `odeint`.
    
    - Remove some unnecessary lines (Matplotlib settings)
    Evert Rol committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    b1ebb18 View commit details
    Browse the repository at this point in the history
  2. Update the discrete boundary value problem

    Only very minor changes:
    
    - Move the imports to the relevant cells (notebook style instead of
      script/program style)
    
    - Recreate the figures in newer Matplotlib style
    
    - Timing commands in two cells, where the minimization happens
    Evert Rol committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    9ff9e1f View commit details
    Browse the repository at this point in the history