gibuu is hosted by Hepforge, IPPP Durham
GiBUU

TABLE OF CONTENTS


/derivatives [ Modules ]

[ Top ] [ Modules ]

NAME

module derivatives

PURPOSE

Module which includes derivative and finite difference routines.


derivatives/finiteDifference [ Functions ]

[ Top ] [ derivatives ] [ Functions ]

NAME

function finiteDifference(y,dx,order,scheme) result(derivative)

PURPOSE

Evaluates the derivatives using finite differences.

INPUTS

  • real ,intent(in), dimension(-2:2) :: y ! function value at y(x-2*dx),...,y(x+2*dx)
  • real ,intent(in) :: dx ! delta x
  • integer,intent(in) :: order ! 1=first order, 2=second order
  • integer,intent(in) :: scheme ! negative=backward difference,0=central difference,positive=forward difference

OUTPUT


derivatives/derivative [ Functions ]

[ Top ] [ derivatives ] [ Functions ]

NAME

real function derivative(f,x,dx,order,scheme)

PURPOSE

Evaluates the derivative of "f" at position "x".

INPUTS

  • real, external :: f
  • real,intent(in) :: x
  • real,intent(in) :: dx -- step size
  • integer,intent(in) :: order -- 1=first order, 2=second order
  • integer,intent(in) :: scheme -- negative=backward difference scheme,0=central difference,positive=forward difference