IT++ Logo

elem_math.cpp File Reference

Elementary mathematical functions - source file. More...

#include <itpp/base/math/elem_math.h>

Go to the source code of this file.


Namespaces

namespace  itpp
 itpp namespace

Functions

double tgamma (double x)
 True gamma function.
double lgamma (double x)
 Lograrithm of an absolute gamma function.
double cbrt (double x)
 Cubic root.
vec itpp::sqr (const cvec &x)
 Absolute square of elements.
mat itpp::sqr (const cmat &x)
 Absolute square of elements.
vec itpp::abs (const cvec &x)
 Absolute value.
mat itpp::abs (const cmat &x)
 Absolute value.
double itpp::fact (int index)
 Calculates factorial coefficient for index <= 170.
double itpp::binom (int n, int k)
 Compute the binomial coefficient "n over k".
int itpp::binom_i (int n, int k)
 Compute the binomial coefficient "n over k".
double itpp::log_binom (int n, int k)
 Compute the base 10 logarithm of the binomial coefficient "n over k".
int itpp::gcd (int a, int b)
 Compute the greatest common divisor (GCD) g of the elements a and b.
vec itpp::real (const cvec &x)
 Real part of complex values.
mat itpp::real (const cmat &x)
 Real part of complex values.
vec itpp::imag (const cvec &x)
 Imaginary part of complex values.
mat itpp::imag (const cmat &x)
 Imaginary part of complex values.
vec itpp::arg (const cvec &x)
 Argument (angle).
mat itpp::arg (const cmat &x)
 Argument (angle).

Variables

int signgam
 Global variable needed by lgamma function.


Detailed Description

Elementary mathematical functions - source file.

Author:
Tony Ottosson and Adam Piatyszek
-------------------------------------------------------------------------

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

Copyright (C) 1995-2008 (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 elem_math.cpp.

SourceForge Logo

Generated on Sun Jul 26 08:54:31 2009 for IT++ by Doxygen 1.5.9