Square root of function.  
 More...
#include <JMathlib.hh>
template<class JF1_t = _vF>
struct JMATH::JSqrt< JF1_t >
Square root of function. 
Definition at line 2055 of file JMathlib.hh.
 
◆ JSqrt() [1/2]
template<class JF1_t  = _vF> 
 
 
◆ JSqrt() [2/2]
template<class JF1_t  = _vF> 
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 2075 of file JMathlib.hh.
const JPolynome f1(1.0, 2.0, 3.0)
Function.
 
 
 
 
◆ getValue()
template<class JF1_t  = _vF> 
  
  
      
        
          | double JMATH::JSqrt< JF1_t >::getValue  | 
          ( | 
          const double  | 
          x | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Function value. 
- Parameters
 - 
  
  
 
- Returns
 - function value 
 
Definition at line 2086 of file JMathlib.hh.
 2088       const double u = 
static_cast<const JF1_t&
>(*this).getValue(
x);
 
 
 
 
◆ getDerivative()
template<class JF1_t  = _vF> 
  
  
      
        
          | double JMATH::JSqrt< JF1_t >::getDerivative  | 
          ( | 
          const double  | 
          x | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Derivative value. 
- Parameters
 - 
  
  
 
- Returns
 - derivative value 
 
Definition at line 2100 of file JMathlib.hh.
 2102       const double u = 
static_cast<const JF1_t&
>(*this).getValue(
x);
 
 2103       const double v = 
static_cast<const JF1_t&
>(*this).getDerivative(
x);
 
 2105       return 0.5 * 
v / sqrt(
u);
 
 
 
 
◆ getGradient()
template<class JF1_t  = _vF> 
 
Get gradient. 
- Parameters
 - 
  
  
 
- Returns
 - gradient 
 
Definition at line 2115 of file JMathlib.hh.
 2117       static JSqrt gradient;                                  
 
 2119       const double u = 
static_cast<const JF1_t&
>(*this).getValue(
x);
 
 2121       static_cast<JF1_t&
>(gradient)  = 
static_cast<const JF1_t&
>(*this).getGradient(
x);
 
 2122       static_cast<JF1_t&
>(gradient) *= 0.5 / sqrt(
u);
 
 
 
 
◆ operator()()
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: