Public Member Functions | List of all members
nmx::apps::x015::Cos Class Reference

The Cos class Taylorpolynom für cos(x) More...

#include <x015.h>

Inheritance diagram for nmx::apps::x015::Cos:
nmx::apps::x015::PowerSeries

Public Member Functions

 Cos (size_t n)
 Cos Konstruktor. More...
 
double term (size_t n, double x)
 term Term des Taylor-Polynoms More...
 
- Public Member Functions inherited from nmx::apps::x015::PowerSeries
double operator() (double x) const
 operator () More...
 

Additional Inherited Members

- Protected Member Functions inherited from nmx::apps::x015::PowerSeries
 PowerSeries (size_t n)
 PowerSeries Konstruktor. More...
 
double sum (double x) const
 sum Summe aller Terme More...
 
- Static Protected Member Functions inherited from nmx::apps::x015::PowerSeries
static double factorial (size_t n)
 factorial Fakultät More...
 
static int sign (size_t n)
 sign More...
 
- Protected Attributes inherited from nmx::apps::x015::PowerSeries
size_t _n
 
std::function< double(size_t, double)> _fn
 
- Static Protected Attributes inherited from nmx::apps::x015::PowerSeries
static std::vector< double > cache
 

Detailed Description

The Cos class Taylorpolynom für cos(x)

Definition at line 158 of file x015.h.

Constructor & Destructor Documentation

◆ Cos()

nmx::apps::x015::Cos::Cos ( size_t  n)
inline

Cos Konstruktor.

Parameters
nAnzahl der Terme

Definition at line 168 of file x015.h.

Member Function Documentation

◆ term()

double nmx::apps::x015::Cos::term ( size_t  n,
double  x 
)
inline

term Term des Taylor-Polynoms

Parameters
nn-ter term
xVariable
Returns
Wert des n-ten Terms an der Stelle x

Definition at line 179 of file x015.h.


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