Sine of function.
More...
#include <JMathlib.hh>
template<class JF1_t>
struct JMATH::JSin< JF1_t >
Sine of function.
Definition at line 2221 of file JMathlib.hh.
Constructor.
- Parameters
-
Definition at line 2241 of file JMathlib.hh.
const JPolynome f1(1.0, 2.0, 3.0)
Function.
template<class JF1_t >
double JMATH::JSin< JF1_t >::getValue |
( |
const double |
x | ) |
const |
|
inline |
Function value.
- Parameters
-
- Returns
- function value
Definition at line 2252 of file JMathlib.hh.
2254 const double u =
static_cast<const JF1_t&
>(*this).getValue(
x);
template<class JF1_t >
double JMATH::JSin< JF1_t >::getDerivative |
( |
const double |
x | ) |
const |
|
inline |
Derivative value.
- Parameters
-
- Returns
- derivative value
Definition at line 2266 of file JMathlib.hh.
2268 const double u =
static_cast<const JF1_t&
>(*this).getValue(
x);
2269 const double v =
static_cast<const JF1_t&
>(*this).getDerivative(
x);
Get gradient.
- Parameters
-
- Returns
- gradient
Definition at line 2281 of file JMathlib.hh.
2283 static JSin gradient;
2285 const double u =
static_cast<const JF1_t&
>(*this).getValue(
x);
2287 static_cast<JF1_t&
>(gradient) = static_cast<const JF1_t&>(*this).getGradient(
x);
2288 static_cast<JF1_t&
>(gradient) *= cos(u);
Function value.
- Parameters
-
- Returns
- function value
Definition at line 362 of file JMathlib.hh.
364 return static_cast<const JF1_t&
>(*this).getValue(
args...);
The documentation for this struct was generated from the following file: