27 using Arg = argument_type;
28 using Res = result_type;
32 class Integral :
public std::binary_function<Arg, Arg, Res>
41 return ((exp(
fA * b) * (
fA * sin(
fB * b) -
fB * cos(
fB * b)) +
fB) -
42 (exp(
fA * (
double)a) * (
fA * sin(
fB * a) -
fB * cos(
fB * a)) +
fB)) /
55 result_type
operator()(argument_type x)
const {
return exp(
fA * x) * sin(
fB * x); }
Integral getIntegral() const
Return the analytic integral object.
OscillatoryFunctor(argument_type a, argument_type b)
Straightforward constructor.
result_type operator()(Arg a, Arg b) const
The definite integral from a to b.
Utilities for the implementation of the Adaptive Quadrature.
result_type operator()(argument_type x) const
Functor evaluation.
Integral(Arg a, Arg b)
Non-default constructor.
Nested class contains the analytic integral of the functor for testing purposes.