ADMB Documentation  11.1.2192
 All Classes Files Functions Variables Typedefs Friends Defines
Defines | Functions
dfgammp.cpp File Reference

(* $Id: dfgammp.cpp 1935 2014-04-26 02:02:58Z johnoel $)

This file deals with the Incomplete Gamma Functions of variable types. More...

#include <fvar.hpp>

Go to the source code of this file.

Defines

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

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.
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.

Detailed Description

This file deals with the Incomplete Gamma Functions of variable types.

Id:
dfgammp.cpp 1935 2014-04-26 02:02:58Z johnoel

Author: David Fournier Copyright (c) 2009-2012 ADMB Foundation 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.


Define 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   100

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.