A worked example on scientific computing with Python
Hans Petter Langtangen [1, 2] (hpl at simula.no)
[1] Simula Research Laboratory
[2] University of Oslo
Jul 27, 2016
Contents.
This worked example
- fetches a data file from a web site,
- applies that file as input data for a differential equation modeling a vibrating system,
- solves the equation by a finite difference method,
- visualizes various properties of the solution and the input data.
The following programming topics are illustrated:
- basic Python constructs: variables, loops, if-tests, arrays, functions
- flexible storage of objects in lists,
- storage of objects in files (persistence),
- downloading files from the web,
- user input via the command line,
- signal processing and FFT,
- curve plotting of data,
- unit testing,
- symbolic mathematics,
- modules.
All files can be forked at
https://github.com/hplgit/bumpy.
Read »