next up previous contents
Next: Parameters Up: Adding new integrands Previous: Adding new integrands

The integrand function

 
  
Figure 4.1: Sample Integrand Function
\begin{figure}
\begin{center}
\begin{small}
\begin{boxedverbatim}
int fcn7(int *...
 ...
 return 1;
} /* fcn7() */\end{boxedverbatim}\end{small}\end{center}\end{figure}

Figure 4.1 shows a sample integrand function. This function was previously presented in Figure 3.1. It returns the value of $\frac{1}{(x+y+z)^2}$ for a given x, y, and z value (or, rather, for a 3-dimensional $\vec{x}$ value).

The integrand function is called by PARINT many times during the evaluation of an integral. Each time, the appropriate $\vec{x}$ value is passed to the function, and the function is expected to calculate and return in a parameter the appropriate $\vec{f}(\vec{x})$ value.



 

Rodger R. Zanny
4/30/1999