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

(* $Id$)

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

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


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