gsl_series Class Reference

Series acceleration by Levin u-transform (GSL). More...

#include <gsl_series.h>


Detailed Description

Given an array of terms in a sum, this attempts to evaluate the entire sum with an estimate of the error.

Idea for future:
Convert to a more generic vector type (This actually doesn't require much more than making a templated version of the gsl_sum_levin_u_minmax functions which accept a different type for the array parameter).

Definition at line 45 of file gsl_series.h.


Public Member Functions

 gsl_series (int size=1)
 size is the number of terms in the series
double series_accel (double *x, double &err)
 Return the accelerated sum of the series with a simple error estimate.
double series_accel_err (double *x, double &err)
 Return the accelerated sum of the series with an accurate error estimate.
int set_size (int new_size)
 Set the number of terms.

Member Function Documentation

double series_accel ( double *  x,
double &  err 
)

The input vector x should be an array with size values from x[0] to x[size-1] where /c size is the value given to the constructor or given to the set_size() function.

double series_accel_err ( double *  x,
double &  err 
)

The input vector x should be an array with size values from x[0] to x[size-1] where /c size is the value given to the constructor or given to the set_size() function.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page