Note: in some cases, Python notebooks such as these can be run and modified within the Authorea Jupyter notebook webserver. In this case, however, you must first download the code to your own computer, as Pint is not yet included in the Authorea's python installation.  Note about print formatting commands: the ~ command instructs Pint to output units in abbreviated form. The P command adds subscript and superscript formatting.  See the Pint tutorial.

Calculations with uncertainties

For  simple first-order ('linear') error propagation involving quantities with units,  you can use Pint's handy  plus_minus()  operator. It allows absolute and relative uncertainties: