QuantiPhy Eval — Computations with Physical Quantities

A companion to QuantiPhy, quantiphy_eval evaluates strings containing simple algebraic expressions that involve quantities. It returns a quantity.

For example:

>>> from quantiphy_eval import evaluate

>>> average = evaluate('($1.2M + $1.3M)/2', '$')
>>> print(f'{average}')
$1.25M

You can download and install the latest stable version of the code from PyPI using:

pip3 install --user --upgrade quantiphy_eval

You can find the latest development version of the source code on Github.

Enjoy,
-Ken

Contents: