ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
dfgammp.cpp File Reference

(Last Changed on January 21, 2015 for git-revision 35e08d02d11c1256d9066e996ca5136d59b07b9a.)

$Id$ More...

#include <fvar.hpp>

Go to the source code of this file.

Macros

#define EPS   1.0e-9
 
#define FPMIN   1.0e-30
 
#define ITMAX   200
 

Functions

dvariable cumd_gamma (const dvariable &x, const dvariable &a)
 
void gcf (const dvariable &_gammcf, const dvariable &a, const dvariable &x, const dvariable &_gln)
 Incomplete gamma function. More...
 
double get_values (double x, double y, int print_switch)
 
void gser (const dvariable &_gamser, const dvariable &a, const dvariable &x, const dvariable &_gln)
 Incomplete gamma function. More...
 

Detailed Description

$Id$

Author: David Fournier Copyright (c) 2009-2012 ADMB Foundation

This file deals with the Incomplete Gamma Functions of variable types. All supporting mathematical functions required to compute the Inmomplete Gamma Function are included. They being: gamma function, log gamma, and some polynomial evaluation functions.

Definition in file dfgammp.cpp.

Macro Definition Documentation

#define EPS   1.0e-9

Definition at line 19 of file dfgammp.cpp.

#define FPMIN   1.0e-30

Definition at line 21 of file dfgammp.cpp.

Referenced by gcf().

#define ITMAX   200

Definition at line 18 of file dfgammp.cpp.

Referenced by gcf(), and gser().

Function Documentation

dvariable cumd_gamma ( const dvariable x,
const dvariable a 
)

Definition at line 100 of file dfgammp.cpp.

void gcf ( const dvariable _gammcf,
const dvariable a,
const dvariable x,
const dvariable _gln 
)

Incomplete gamma function.

Continued fraction approximation.

The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 6

Definition at line 30 of file dfgammp.cpp.

double get_values ( double  x,
double  y,
int  print_switch 
)
void gser ( const dvariable _gamser,
const dvariable a,
const dvariable x,
const dvariable _gln 
)

Incomplete gamma function.

Series approximation.

The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 6

Definition at line 66 of file dfgammp.cpp.