Lemina
A molecular dynamics package for network, granular material and point particles with a range of interaction potential.
 
Loading...
Searching...
No Matches
Integrate.c File Reference
#include <stdio.h>
#include "global.h"
+ Include dependency graph for Integrate.c:

Go to the source code of this file.

Functions

double Integrate (double *f, int nf)
 

Function Documentation

◆ Integrate()

double Integrate ( double * f,
int nf )

Definition at line 25 of file Integrate.c.

25 {
26 double s;
27 int i;
28 s = 0.5*(f[1] + f[nf]);
29 for(i = 2 ; i <= nf - 1 ; i ++)
30 s += f[i];
31 return(s);
32}

Referenced by AccumVacf().

+ Here is the caller graph for this function: