The molar heat capacity of a diatomic gas rises with temperature from 7R/2 towards 9R/2 as its vibrational levels become thermally populated, and beyond 9R/2 because the vibration is anharmonic and interacts with the rotation. This post fits the heat capacities of N₂ and CO …
This earlier blog post presented a way of performing a non-linear least squares fit on two-dimensional data using a sum of (2D) Gaussian functions. Fitting a two-dimensional polynomial to a surface is, in principle, a linear least-squares problem, since the fitting function is linear in …
Many phenomena can be described in terms of a measured variable varying exponentially with a quantity. For example, a processes such as radioactive decay and first-order reaction rates are described by an ordinary differential equation of the form where is time, is, e.g. the number …
Fitting a set of data points in the plane to an ellipse is a suprisingly common problem in image recognition and analysis. In principle, the problem is one that is open to a linear least squares solution, since the general equation of any conic section …
The scipy.optimize.curve_fit routine can be used to fit two-dimensional data, but the fitted data (the ydata argument) must be repacked as a one-dimensional array first. The independent variable (the xdata argument) must then be an array of shape (2,M) where M is the total number …
The Theis equation This post is also available as a Jupyter Notebook. The drawdown or change in hydraulic head, (a measure of the water pressure above some geodetic datum) a distance from a well at time from which water is being pumped at a constant …
The semi-empirical mass formula parameters used in the previous post were taken from the text book of J. W. Rohlf (1994) . Another, older set of parameters are presented in the compilation of A. H. Wapstra (1958). Below we compare each with the experimental data …