1#ifndef __JMATH__JPOWER__
2#define __JMATH__JPOWER__
14namespace JPP {
using namespace JMATH; }
99 in >>
object.alpha >>
object.factor;
114 return out <<
object.alpha <<
' ' <<
object.factor;
Power law function object.
double getDerivative(const double x) const
Derivative value.
friend std::ostream & operator<<(std::ostream &out, const JPower &object)
Write power to output.
double operator()(const double x) const
Function value.
double getValue(const double x) const
Function value.
double getIntegral(const double x) const
Integral value.
friend std::istream & operator>>(std::istream &in, JPower &object)
Read power from input.
JPower(const double alpha, const double factor=1.0)
Constructor.
Auxiliary classes and methods for mathematical operations.
T pow(const T &x, const double y)
Power .
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).