![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
Series acceleration by Levin u-transform (GSL) More...
#include <gsl_series.h>
Given an array of terms in a sum, this attempts to evaluate the entire sum with an estimate of the error.
Definition at line 64 of file gsl_series.h.
Public Member Functions | |
gsl_series (size_t size=0) | |
size is the number of terms in the series | |
template<class vec_t > | |
double | series_accel (size_t na, vec_t &array, double &abserr_trunc) |
Return the accelerated sum of the series with a simple error estimate. | |
template<class vec_t > | |
double | series_accel_err (size_t na, vec_t &array, double &abserr) |
Return the accelerated sum of the series with an accurate error estimate. | |
void | set_size (size_t new_size) |
Set the number of terms. |
double gsl_series::series_accel | ( | size_t | na, |
vec_t & | array, | ||
double & | abserr_trunc | ||
) | [inline] |
The input vector x
should be an array with n
values from x[0]
to x[n-1]
.
Definition at line 81 of file gsl_series.h.
double gsl_series::series_accel_err | ( | size_t | na, |
vec_t & | array, | ||
double & | abserr | ||
) | [inline] |
The input vector x
should be an array with n
values from x[0]
to x[n-1]
.
Definition at line 204 of file gsl_series.h.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).