Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions
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:
Move the worspaces to classes?

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.

Member Function Documentation

template<class vec_t >
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.

template<class vec_t >
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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.