version 0.6.0
-
A constant library has been added with physical constants that can be accessed
by name or alias with theconstant
function. Thesearch_constants
function
with no argument gives a listing of all built-in constants. Each constant
definition includes any correlations with other constants. -
The
Quantity
class has been added to represent a general numerical value
multiplied by a unit and theunit
function has been added to retrieve
Unit
instances from the unit library by name or alias.Unit
instances
can now be multiplied and divided by otherUnit
instances to produce
composite units, can be multiplied and divided by numbers to produce
Quantity
instances or multiply or divideQuantity
instances. The
gummy
class is now a subclass ofQuantity
with anummy
value rather
than a subclass ofnummy
. AQuantityArray
class has been introduced
to represent an array of values all with the same unit. Multiplying aUnit
instance by a list, tuple, or numpy array produces aQuantityArray
instance. -
The
immy
class has been introduced as anummy
valued counterpart of the
jummy
class for representing complex values with uncertainties.immy
andjummy
values can now be displayed in a polar representation in addition
to a cartesian representation.immy
andjummy
.r and .phi properties
have been added to access the magnitude and argument of the values as a
complement to the .real and .imag properties.