Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

scalfunc.cpp File Reference

Implementation of scalar functions. More...

#include <ctime>
#include <cmath>
#include <spuc.h>
#include "vector.h"
#include "scalfunc.h"

Include dependency graph for scalfunc.cpp:


Namespaces

namespace  SPUC

Functions

double SPUC::Qfunc (double x)
 Q-function.
double SPUC::erfinv (double x)
 Inverse of error function.
double SPUC::gamma (double x)
 Gamma function.
double SPUC::asinh (double x)
 Arcus sinhyp.
double SPUC::acosh (double x)
 Arcus coshyp.
double SPUC::atanh (double x)
 Arcus tanhyp.
double SPUC::fact (int index)
 Calculates factorial coefficient for index <= 170.
long SPUC::mod (long k, long n)
 Calculates the modulus, i.e. the signed reminder after division.
long SPUC::gcd (long a, long b)
 returns the greatest common divisor (GCD) g of the elements a and b.
double SPUC::integrate (double(*f)(double), double A, double B, double tol=0.001)
 Integrate over the function f from A to B with tolerance tol.
double SPUC::binom (int n, int k)
 Compute the binomial coefficient "n over k" as a float.
int SPUC::binom_i (int n, int k)
 Compute the binomial coefficient "n over k" as an integer.
double SPUC::log_binom (int n, int k)
 Compute the base 10 logarithm of the binomial coefficient "n over k".

Detailed Description

Implementation of scalar functions.

Author:
Tony Ottosson and Pål Frenger
1.16

2002/11/18 22:02:51


Generated on Fri Sep 16 11:04:29 2005 for spuc by  doxygen 1.4.4