8. SciPy
Examples (29)
- E8.1The least well-determined physical constants
- E8.2A quantum particle in a gravitational field
- E8.3Drum vibrations with Bessel functions
- E8.4DNA diffraction pattern
- E8.5The gamma function
- E8.6A pendulum making 90-degree swings
- E8.7The circumference of an ellipse
- E8.8Quantum mechanical tunnelling probability for the ground state of the harmonic oscillator
- E8.9The Voigt profile
- E8.10The Euler spiral
- E8.11An application of the exponential integral
- E8.12Visualizing the spherical harmonics
- E8.13Finding the volume of a torus
- E8.14The volume of the unit sphere
- E8.15The mass and centre of mass of a tetrahedron
- E8.16Stokes drag
- E8.17Solving a system of stiff ODEs
- E8.18A projectile with air resistance
- E8.19scipy.interpolate.interp1d
- E8.20scipy.interpolate.interp2d
- E8.21Two-dimensional interpolation with scipy.interpolate.RectBivariateSpline
- E8.22Two-dimensional interpolation with scipy.interpolate.griddata
- E8.23A simple model of an airship envelope
- E8.24Non-linear fitting to an ellipse
- E8.25Weighted and non-weighted least-squares fitting
- E8.26Solving the Euler-Lotka equation
- E8.27The Newton fractal
- E8.28Interpolation of an image
- E8.29The SIR epidemic model
Questions (9)
- Q8.1.1The most well-determined physical constants
- Q8.1.2Number concentration from the ideal gas law
- Q8.2.1Numerical integration of a simple function
- Q8.2.2Numerical integration of some awkward integrals
- Q8.2.3Evaluating \(\pi\) by direct integration
- Q8.2.4dblquad gotcha
- Q8.4.1Equation solving with scipy.optimize.brentq
- Q8.4.2Failing to find the root with scipy.optimize.newton
- Q8.4.3Determining the initial angle of a projectile's motion
Problems (21)
- P8.1.1Pascal's triangle
- P8.1.2The Airy disc
- P8.1.3Wavelength from molar dissociation energy
- P8.1.4The surface area of an ellipsoid
- P8.1.5The Theis equation
- P8.1.6Heat dissipation of an annular fin heatsink
- P8.2.1Surface area of revolution
- P8.2.2Integral of the secant function
- P8.2.3Volume and moment of inertia of a torus
- P8.2.4The Brusselator
- P8.2.5The general pendulum
- P8.2.6The Chapman cycle
- P8.2.7The tumbling of Hyperion
- P8.2.8Modelling a radioactive decay chain
- P8.2.9Modelling the evolution of a match flame
- P8.4.1A simple constrained minimization problem
- P8.4.2Root-finding with newton and brentq
- P8.4.3The Wien displacement law
- P8.4.4The variational principle and the quantum mechanical particle-in-a-box
- P8.X.1Fitting the Cosmic Microwave Background
- P8.X.2Overlapping circles