1#ifndef __JMATH__JTRIGONOMETRIC__
2#define __JMATH__JTRIGONOMETRIC__
16namespace JPP {
using namespace JMATH; }
33 typedef double (*
pF)(double);
44 if (
f1 != (
double (*)(
double)) sin &&
f1 != (
double (*)(
double)) cos) {
108 if (
f1 == (
double (*)(
double)) sin)
110 else if (
f1 == (
double (*)(
double)) cos)
124 if (
f1 == (
double (*)(
double)) sin)
126 else if (
f1 == (
double (*)(
double)) cos)
144 if (in >>
object.
factor >> buffer) {
147 else if (buffer ==
"cos")
166 out <<
object.factor;
168 if (
object.
f1 == (
double (*)(
double)) sin)
170 else if (
object.
f1 == (
double (*)(
double)) 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.
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.
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.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).