EVSL  1.1.0
EigenValues Slicing Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
simpson.c File Reference

Simpson integrater. More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "blaslapack.h"
#include "def.h"
#include "internal_proto.h"
#include "string.h"
#include "struct.h"

Go to the source code of this file.

Functions

void simpson (double *xi, double *yi, int npts)
 

Detailed Description

Simpson integrater.

Definition in file simpson.c.

Function Documentation

void simpson ( double *  xi,
double *  yi,
int  npts 
)

This function computes the integrals from xi[0] to xi[j] for j=0:npts-1

Parameters
[in]xinpts equally space points
[in]yivalues of a function f at the xi
[in]nptsnumber of sample points

In-place version.


Definition at line 27 of file simpson.c.

Referenced by LanDos(), LanDosG(), and spslicer2().

Here is the caller graph for this function: