tkp.utility.uncertain – Uncertainty class

class tkp.utility.uncertain.Uncertain(value=0.0, error=0.0, *a, **t)[source]

Represents a numeric value with a known small uncertainty (error, standard deviation…).

Numeric operators are overloaded to work with other Uncertain or numeric objects. The uncertainty (error) must be small. Otherwise the linearization employed here becomes wrong.