BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Numeric.h File Reference

Defines constants and "almost equal" in namespace Numeric. More...

Include dependency graph for Numeric.h:
This graph shows which files directly or indirectly include this file:

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::GetRelativeDifference (double a, double b)
 Returns the safe relative difference, which is 2(|a-b|)/(|a|+|b|) except in special cases. More...
 

Detailed Description

Defines constants and "almost equal" in namespace Numeric.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file Numeric.h.

Macro Definition Documentation

◆ BORNAGAIN_BASE_MATH_NUMERIC_H

#define BORNAGAIN_BASE_MATH_NUMERIC_H

Definition at line 21 of file Numeric.h.