BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Implements "almost equal" in namespace Numeric. More...
Go to the source code of this file.
Namespaces | |
Numeric | |
Floating-point epsilon, tolerances, almost-equal. | |
Functions | |
double | Numeric::GetAbsoluteDifference (double a, double b) |
Returns the absolute value of the difference between a and b. | |
double | Numeric::GetRelativeDifference (double a, double b) |
Returns the safe relative difference, which is 2(|a-b|)/(|a|+|b|) except in special cases. | |
double | Numeric::GetLogDifference (double a, double b) |
Returns the difference of the logarithm; input values are truncated at the minimum positive value. | |
Implements "almost equal" in namespace Numeric.
Definition in file Numeric.cpp.