IT++ Logo Newcom Logo

scalfunc.cpp File Reference

Implementation of scalar functions. More...

#include <itpp/base/scalfunc.h>
#include <itpp/base/vec.h>
#include <cmath>
#include <cstdlib>

Go to the source code of this file.

Namespaces

namespace  itpp

Functions

double tgamma (double x)
 True gamma function.
double lgamma (double x)
 Lograrithm of an absolute gamma function.
double cbrt (double x)
double asinh (double x)
 Arcus sinhyp.
double acosh (double x)
 Arcus coshyp.
double atanh (double x)
 Arcus tanhyp.
double itpp::gamma (double x)
 Gamma function.
double itpp::Qfunc (double x)
 Q-function.
double itpp::erfinv (double x)
 Inverse of error function.
std::complex< double > itpp::cerfc_continued_fraction (const std::complex< double > &z)
std::complex< double > itpp::cerf_continued_fraction (const std::complex< double > &z)
std::complex< double > itpp::cerf_series (const std::complex< double > &z)
std::complex< double > itpp::cerf_rybicki (const std::complex< double > &z)
std::complex< double > itpp::erf (const std::complex< double > &z)
 Error function for complex argument.
double itpp::fact (int index)
 Calculates factorial coefficient for index <= 170.
long itpp::mod (long k, long n)
 Calculates the modulus, i.e. the signed reminder after division.
long itpp::gcd (long a, long b)
 returns the greatest common divisor (GCD) g of the elements a and b.
double itpp::binom (int n, int k)
 Compute the binomial coefficient "n over k" as a float.
int itpp::binom_i (int n, int k)
 Compute the binomial coefficient "n over k" as an integer.
double itpp::log_binom (int n, int k)
 Compute the base 10 logarithm of the binomial coefficient "n over k".
std::complex< double > itpp::round_to_zero (const std::complex< double > &x, double threshold=1e-14)
 Round each part of x smaller than threshold to zero.

Variables

int signgam


Detailed Description

Implementation of scalar functions.

Author:
Tony Ottosson, Pal Frenger and Adam Piatyszek
$Date$ $Revision$

-------------------------------------------------------------------------

IT++ - C++ library of mathematical, signal processing, speech processing, and communications classes and functions

Copyright (C) 1995-2007 (see AUTHORS file for a list of contributors)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

-------------------------------------------------------------------------

Definition in file scalfunc.cpp.

SourceForge Logo

Generated on Fri Jun 8 00:27:19 2007 for IT++ by Doxygen 1.5.2