Next: Example: area program
Up: GRASP Routines: Template Bank
Previous: Function: m_and_eta()
  Contents
Function: template_area()
0
float template_area(struct Scope *Grid)
This function computes
the area of the enclosed region of
parameter space shown in Figure
.
The arguments are:
- Grid: Input. This function uses only the minimum mass,
maximum mass and the cut-off frequency
fields of Grid.
The function returns the numerical value of the area in units of
. See the example in the following subsection.
The function uses an analytic expression for the area obtained by
integration of formulae (
,
) for
and
given earlier. For example, to obtain the area of the
trapezoidal region bounded above by the maximum-mass curve and below by
the
axis, we integrate
Here
and
is a quantity with dimensions
given by
The area
under the minimum-mass curve can be obtained from the
formula above by interchanging
and
. (If you wish
to use geomtrized units in which the solar mass is
simply set
.) The area under the equal-mass curve
can be obtained by performing a similar integration along the
equal-mass curve
These three results can be combined to give the total area
enclosed
 |
(9.5.201) |
Equation (
) is the basis of template_area(); the next
example shows an application of this function.
- Author:
Alan Wiseman, agw@tapir.caltech.edu
- Comments:
None.
Next: Example: area program
Up: GRASP Routines: Template Bank
Previous: Function: m_and_eta()
  Contents
Bruce Allen
2000-11-19