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
Chapter 6: NumPy
Problems
Problems
P6.1
P6.1.1 A structured array of whale species data
P6.1.2 The shoelace algorithm
P6.1.3 Gaussian functions and their derivatives
P6.2
P6.2.1 8000 m peaks
P6.2.2 Airport distances
P6.2.3 Immunization rates
None Analysing meteorological data with NumPy
P6.3
P6.3.1 Analysing lottery results
P6.3.2 Plotting a histogram with pylab.bar
P6.3.3 Plotting a height distribution histogram
P6.4
P6.4.1 Analysis of a nuclear explosion
P6.4.2 Linear Regression on four data sets
P6.4.3 The van der Waals equation of state
P6.4.4 Saturn V first stage launch analysis
P6.5
P6.5.1 Planck units of measurement
P6.5.2 The moment of inertia tensor
P6.5.3 Singular value decomposition
Measuring the Coefficient of Restitution
P6.6
P6.6.1 Finding the number of integers not containing the digit 5
P6.6.2 The Fibonacci sequence by matrix similarity transform
P6.6.3 Conic sections
P6.7
P6.7.1 Coin-flipping simulation
P6.7.2 Buffon's needle
P6.7.3 A simple model for chemotaxis
P6.7.4 Modeling meanders
P6.8
P6.8.1 Apodization
P6.8.2 Fourier expansion of a square wave
P6.8.3 Fourier transform of a sound file