Package reflectometry :: Package reduction :: Module err1d

Module err1d

source code

Error propogation algorithms for simple arithmetic

Warning: like the underlying numpy library, the inplace operations may return values of the wrong type if some of the arguments are integers, so be sure to create them with floating point inputs.

Functions
 
div(X, varX, Y, varY)
Division with error propagation
source code
 
mul(X, varX, Y, varY)
Multiplication with error propagation
source code
 
sub(X, varX, Y, varY)
Subtraction with error propagation
source code
 
add(X, varX, Y, varY)
Addition with error propagation
source code
 
exp(X, varX)
Exponentiation with error propagation
source code
 
log(X, varX)
Logarithm with error propagation
source code
 
pow(X, varX, n)
X**n with error propagation
source code
 
div_inplace(X, varX, Y, varY)
In-place division with error propagation
source code
 
mul_inplace(X, varX, Y, varY)
In-place multiplication with error propagation
source code
 
sub_inplace(X, varX, Y, varY)
In-place subtraction with error propagation
source code
 
add_inplace(X, varX, Y, varY)
In-place addition with error propagation
source code
 
pow_inplace(X, varX, n)
In-place X**n with error propagation
source code