Fixed power of x.
More...
#include <JMathlib.hh>
template<int N>
struct JMATH::JXn< N >
Fixed power of x.
Definition at line 1986 of file JMathlib.hh.
template<int N>
double JMATH::JXn< N >::getValue |
( |
const double |
x | ) |
const |
|
inline |
Function value.
- Parameters
-
- Returns
- function value
Definition at line 2003 of file JMathlib.hh.
T pow(const T &x, const double y)
Power .
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
template<int N>
double JMATH::JXn< N >::getDerivative |
( |
const double |
x | ) |
const |
|
inline |
Derivative value.
- Parameters
-
- Returns
- derivative value
Definition at line 2015 of file JMathlib.hh.
2017 return N *
pow(
x,
N - 1);
T pow(const T &x, const double y)
Power .
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
Get gradient.
- Parameters
-
- Returns
- gradient
Definition at line 2027 of file JMathlib.hh.
2029 static JXn gradient;
Function value.
- Parameters
-
- Returns
- function value
Definition at line 362 of file JMathlib.hh.
364 return static_cast<const JF1_t&
>(*this).getValue(
args...);
Negate function.
- Returns
- this function
Definition at line 203 of file JMathlib.hh.
206 static_cast<JF1_t&
>(*this).*
i = -(
static_cast<JF1_t&
>(*this).*
i);
209 return static_cast<JF1_t&
>(*this);
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Add function.
- Parameters
-
- Returns
- this function
Definition at line 219 of file JMathlib.hh.
222 static_cast<JF1_t&
>(*this).*
i += f1.*
i;
225 return static_cast<JF1_t&
>(*this);
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Subtract function.
- Parameters
-
- Returns
- this function
Definition at line 235 of file JMathlib.hh.
238 static_cast<JF1_t&
>(*this).*
i -= f1.*
i;
241 return static_cast<JF1_t&
>(*this);
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Scale function.
- Parameters
-
- Returns
- this function
Definition at line 251 of file JMathlib.hh.
254 static_cast<JF1_t&
>(*this).*
i *= factor;
257 return static_cast<JF1_t&
>(*this);
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Scale function.
- Parameters
-
- Returns
- this function
Definition at line 267 of file JMathlib.hh.
270 static_cast<JF1_t&
>(*this).*
i /= factor;
273 return static_cast<JF1_t&
>(*this);
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
The documentation for this struct was generated from the following file: