Popular recipes by sasa sasa http://code.activestate.com/recipes/users/1963659/2007-12-11T02:11:00-08:00ActiveState Code RecipesError propagating class for uncertain numeric quantities (Python)
2007-12-11T02:11:00-08:00sasa sasahttp://code.activestate.com/recipes/users/1963659/http://code.activestate.com/recipes/535164-error-propagating-class-for-uncertain-numeric-quan/
<p style="color: grey">
Python
recipe 535164
by <a href="/recipes/users/1963659/">sasa sasa</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>).
</p>
<p>This class permits full error propagation for numeric values.
It wraps a value and an associated error (standard deviation, measurement uncertainty...). Numeric operations are overloaded and permit use with other Uncertain objects, precise values without errors, generally speakin gmost other numeric (even array) objects. The "traitification" can easily be reverted by dumping all references to traits.</p>