STK++ 0.9.13
STK::Funct::Serielog1p Class Reference

This Series computes. More...

#include <STK_Funct_Util.h>

Inheritance diagram for STK::Funct::Serielog1p:
Inheritance graph

Public Member Functions

 Serielog1p (Real const &x)
 
Real firstImpl () const
 
Real nextImpl () const
 
- Public Member Functions inherited from STK::ISerie< Serielog1p >
Real first () const
 
Real next () const
 
- Public Member Functions inherited from STK::IRecursiveTemplate< Derived >
Derived & asDerived ()
 static cast : return a reference of this with a cast to the derived class.
 
Derived constasDerived () const
 static cast : return a const reference of this with a cast to the derived class.
 
Derived * asPtrDerived ()
 static cast : return a ptr on a Derived of this with a cast to the derived class.
 
Derived constasPtrDerived () const
 static cast : return a ptr on a constant Derived of this with a cast to the derived class.
 
Derived * clone () const
 create a leaf using the copy constructor of the Derived class.
 
Derived * clone (bool isRef) const
 create a leaf using the copy constructor of the Derived class and a flag determining if the clone is a reference or not.
 

Private Attributes

const Realx_
 
Real n_
 
Real xpown_
 

Additional Inherited Members

- Protected Member Functions inherited from STK::ISerie< Serielog1p >
 ISerie ()
 Default Constructor.
 
 ~ISerie ()
 destructor.
 
- Protected Member Functions inherited from STK::IRecursiveTemplate< Derived >
 IRecursiveTemplate ()
 constructor.
 
 ~IRecursiveTemplate ()
 destructor.
 

Detailed Description

This Series computes.

\[ \frac{x^n}{n+2} \]

for n >= 0.

Definition at line 50 of file STK_Funct_Util.h.

Constructor & Destructor Documentation

◆ Serielog1p()

STK::Funct::Serielog1p::Serielog1p ( Real const x)
inline

Definition at line 53 of file STK_Funct_Util.h.

Member Function Documentation

◆ firstImpl()

Real STK::Funct::Serielog1p::firstImpl ( ) const
inline

Definition at line 54 of file STK_Funct_Util.h.

54{ return 1./n_;}

References n_.

◆ nextImpl()

Real STK::Funct::Serielog1p::nextImpl ( ) const
inline

Definition at line 55 of file STK_Funct_Util.h.

55{ return (xpown_ *= x_)/(++n_);}

References n_, x_, and xpown_.

Member Data Documentation

◆ n_

Real STK::Funct::Serielog1p::n_
mutableprivate

Definition at line 59 of file STK_Funct_Util.h.

Referenced by firstImpl(), and nextImpl().

◆ x_

const Real& STK::Funct::Serielog1p::x_
private

Definition at line 58 of file STK_Funct_Util.h.

Referenced by nextImpl().

◆ xpown_

Real STK::Funct::Serielog1p::xpown_
mutableprivate

Definition at line 60 of file STK_Funct_Util.h.

Referenced by nextImpl().


The documentation for this class was generated from the following file: