Toggle Navigation
Everything
Blog posts
Pages
Home
About
The Author
The Book
This Website
Book
Chapter 1: Introduction
Chapter 2: The Core Python Language I
Examples
Questions
Problems
Additional Problems
Chapter 3: Simple Plotting with pylab
Examples
Problems
Chapter 4: The core Python language II
Examples
Questions
Problems
Additional Problems
Chapter 5: IPython and IPython Notebook
Examples
Chapter 6: NumPy
Examples
Questions
Problems
Additional Examples
Additional Problems
Chapter 7: Matplotlib
Examples
Questions
Problems
Chapter 8: SciPy
Examples
Questions
Problems
Additional Examples
Additional Problems
Chapter 9: General Scientific Programming
Examples
Questions
Problems
Errata
Book (2nd ed.)
Chapter 1: Introduction
Chapter 2: The Core Python Language I
Examples
Questions
Problems
Additional Problems
Chapter 3: Simple Plots and Charts
Examples
Problems
Chapter 4: The core Python language II
Examples
Questions
Problems
Additional Problems
Chapter 5: IPython and Jupyter Notebook
Examples
Problems
Chapter 6: NumPy
Examples
Questions
Problems
Additional Examples
Additional Problems
Chapter 7: Matplotlib
Examples
Questions
Problems
Chapter 8: SciPy
Examples
Questions
Problems
Additional Examples
Additional Problems
Chapter 9: Data Analysis with pandas
Examples
Problems
Chapter 10: General Scientific Programming
Examples
Questions
Problems
Errata
Additional Notes
Blog
Apps
Contact
Home
Book (2nd ed.)
Chapter 10: General Scientific Programming
Chapter 10: General Scientific Programming
Examples
E10.1 Numerical stability of the forward-Euler method
E10.2 Numerical stability of an integral solved by recursion
E10.3 Intersecting lines
E10.4 Wilkinson's polynomial
E10.6 Unit test example
E10.6 Avoiding Magic Numbers: simulating dice rolling
E10.7 Unit testing: converting between temperature units
Questions
Q10.1.1 The decimal representation of 0.99999...
Q10.1.2 Evaluating $\sqrt{\tan(\pi)}$
Q10.1.3 A counter-example to Fermat's Last Theorem(?)
Q10.1.4 Floating point approximations to two trigonometric functions
Q10.1.5 Checking for nan without using isnan
Q10.1.6 Boolean operations with floating point numbers
Problems
P10.1
P10.1.1 Heron's formula
P10.1.2 Determining the machine-epsilon
P10.2
P10.2.1 Numerical differentiation
P10.2.2 Wilkinson's polynomial