#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". |
2002/11/18 22:02:51