1 #ifndef __JMATH__JTRIGONOMETRIC__
2 #define __JMATH__JTRIGONOMETRIC__
16 namespace JPP {
using namespace JMATH; }
33 typedef double (*
pF)(double);
44 if (
f1 != sin &&
f1 != cos) {
144 if (in >>
object.
factor >> buffer) {
147 else if (buffer ==
"cos")
166 out <<
object.factor;
168 if (
object.
f1 == sin)
170 else if (
object.
f1 == cos)
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Trigonometric function object for sin and cos.
JTrigonometric getIntegral() const
Integral function.
JTrigonometric(pF f1, const double factor=1.0)
Constructor.
double getDerivative(const double x) const
Derivative value.
double operator()(const double x) const
Function value.
friend std::istream & operator>>(std::istream &in, JTrigonometric &object)
Read trigonometric from input.
friend std::ostream & operator<<(std::ostream &out, const JTrigonometric &object)
Write trigonometric to output.
JTrigonometric getDerivative() const
Derivative function.
double getIntegral(const double x) const
Integral value.
double(* pF)(double)
Type definition of pointer to trigonometric function.
double getValue(const double x) const
Function value.
Auxiliary classes and methods for mathematical operations.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).