3 #ifndef DUNE_FUNCTIONS_ANALYTICFUNCTIONS_TRIGONOMETRICFUNCTION_HH 4 #define DUNE_FUNCTIONS_ANALYTICFUNCTIONS_TRIGONOMETRICFUNCTION_HH 24 template<
class K,
int sinFactor,
int cosFactor>
31 return sinFactor * std::sin(x) + cosFactor * std::cos(x);
37 template<
class K,
int sinFactor,
int cosFactor>
49 #endif // DUNE_FUNCTIONS_ANALYTICFUNCTIONS_TRIGONOMETRICFUNCTION_HH A linear combination of trigonomic functions.
Definition: trigonometricfunction.hh:25
TrigonometricFunction< K, -cosFactor, sinFactor > derivative(const TrigonometricFunction< K, sinFactor, cosFactor > &f)
Obtain derivative of TrigonometricFunction function.
Definition: trigonometricfunction.hh:38
K operator()(const K &x) const
Evaluate function.
Definition: trigonometricfunction.hh:29
Definition: polynomial.hh:7