fastfunctions.cpp File Reference

#include "fastfunctions.h"

Go to the source code of this file.

Functions

double fastPower (double x, int n)
 Fast power function for use when the exponent is a small integer.
double pythag (double a, double b)
 A safe implementation of pythagoran's theorem.


Function Documentation

double fastPower ( double  x,
int  n 
)

Fast power function for use when the exponent is a small integer.

Parameters:
x base
n exponent
Returns:
$x^n$

Definition at line 15 of file fastfunctions.cpp.

Referenced by QMCNuclearForces::calcCoefficients().

double pythag ( double  a,
double  b 
)

A safe implementation of pythagoran's theorem.

It shouldn't under or over flow.

Definition at line 42 of file fastfunctions.cpp.

Referenced by Array2D< QMCProperty >::eigenvaluesRS().


Generated on Sat Jul 5 16:13:59 2008 for QMcBeaver by  doxygen 1.5.6