BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Defines constants and "almost equal" in namespace Numeric.
Definition in file Numeric.h.
Go to the source code of this file.
Namespaces | |
Numeric | |
Floating-point approximations. | |
Macros | |
#define | BORNAGAIN_BASE_MATH_NUMERIC_H |
Functions | |
double | Numeric::GetAbsoluteDifference (double a, double b) |
Returns the absolute value of the difference between a and b. More... | |
double | Numeric::GetLogDifference (double a, double b) |
Returns the difference of the logarithm; input values are truncated at the minimum positive value. More... | |
double | Numeric::relativeDifference (double a, double b) |
Returns the safe relative difference, which is 2(|a-b|)/(|a|+|b|) except in special cases. More... | |