An intro to scientific computing with Python
Jan 7, 2015
This example was originally developed by Hans Petter Langtangen (http://hplgit.github.io/bumpy/doc/pub/bumpy.html) at Simula Research Laboratory and University of Oslo.
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,
- testing.
Read »