#include <cstdlib>
#include <fstream>
#include <iostream>
#include <cmath>
#include <def.h>
#include <stdio.h>
Functions | |
int | theta (double a) |
Standard theta function: 1 is a>0, 0 otherwise. | |
void | outputCharacteristics (int) |
Sets number of decimal places to display in scientific output. | |
double | sqr (double a) |
square of a number | |
double | maximum (double a, double b) |
maximum of two numbers | |
double | minimum (double a, double b) |
minimum of a and b | |
int | minimum (int a, int b) |
minimum of a and b | |
double | toleranceCheck (double sTin, double sTout) |
Finds fractional difference between |a| and |b|. | |
bool | close (double m1, double m2, double tol) |
checks if ABSOLUTE (or squared) values are closer than tol | |
double | sign (double a, double b) |
Returns |a| with sign of b in front. | |
int | sgn (double x) |
gives the sign (+-1) of x | |
void | printRow (double x) |
bool | testNan (double f) |
Returns true if f's a nan. |
Revision 1.10 2004/09/28 10:39:07 allanach Added Les Houches output function for output to a file
Revision 1.9 2004/05/12 19:18:00 allanach Made the close function safer: it's no longer sensitive to zeros
Revision 1.8 2004/04/07 16:19:09 allanach Added proper NaN tests
Revision 1.7 2003/06/05 09:17:19 allanach Started coding Les Houches Discord
Revision 1.6 2003/05/20 15:19:40 allanach doxygen comment style implemented
Revision 1.5 2003/03/28 15:59:35 allanach Two-loop stuff relegated to seperate file
Revision 1.4 2003/02/21 13:02:07 allanach Changed headings to new conventions
Revision 1.3 2002/05/01 16:02:20 allanach Added checkTolerance subroutine
|
Outputs a space if greater than zero, a minus otherwise. Useful for outputting negative numbers in rows |