Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
UA_CoMP::Num::SimpsonRule Class Reference

The Simpson rule. More...

#include <SimpleRules.h>

Collaboration diagram for UA_CoMP::Num::SimpsonRule:
Collaboration graph

Static Public Member Functions

template<class Ftor >
static Ftor::result_type sum (typename Ftor::argument_type l, typename Ftor::argument_type d, Ftor f)
 Execute the rule on the cell. More...
 

Detailed Description

The Simpson rule.

Cfr. The Handbook of Mathematical Functions, M. Abramowitz and I. Stegun, Dover Publications Chapter 25, item 25.4.5.

Definition at line 20 of file SimpleRules.h.

Member Function Documentation

template<class Ftor >
static Ftor::result_type UA_CoMP::Num::SimpsonRule::sum ( typename Ftor::argument_type  l,
typename Ftor::argument_type  d,
Ftor  f 
)
inlinestatic

Execute the rule on the cell.

Returns
Sum of functor values in quadrature points of cell
Parameters
lLeft bounadry of quadrature domain
dDistance to right boundary of the domain
fFunctor that gets summed
Exceptions
none

Definition at line 32 of file SimpleRules.h.


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