Public Member Functions | Protected Attributes | Friends | List of all members
nmx::apps::x013::Polynom< T, N > Class Template Reference

The Polynom class Darstellung von Polynomen. More...

#include <x013.h>

Inheritance diagram for nmx::apps::x013::Polynom< T, N >:
nmx::apps::x016::QPolynom

Public Member Functions

 Polynom (std::array< T, N+1 > clst)
 Polynom Konstruktor. More...
 
c (size_t idx) const
 c lese Koeffizienten More...
 
auto eval (gsl_complex z) const
 eval Auswertung des Polynoms More...
 
auto eval (double x) const
 eval Auswertung des Polynoms More...
 
template<class R >
auto operator() (R x) const
 operator () Auswertung des Polynoms More...
 
constexpr size_t degree () const
 degree More...
 

Protected Attributes

std::array< T, N+1 > _c
 

Friends

std::ostream & operator<< (std::ostream &os, const Polynom &p)
 operator << Ausgabe der Koeffizienten des Polynoms {c0,c1,c2,...,cn} More...
 

Detailed Description

template<class T, size_t N>
class nmx::apps::x013::Polynom< T, N >

The Polynom class Darstellung von Polynomen.

Parameters
TDatentyp der Koeffizienten
NGrad des Polynoms. N+1 : Anzahl der Koeffizienten

Definition at line 28 of file x013.h.

Constructor & Destructor Documentation

◆ Polynom()

template<class T, size_t N>
nmx::apps::x013::Polynom< T, N >::Polynom ( std::array< T, N+1 >  clst)
inline

Polynom Konstruktor.

Parameters
carrayFeld mit Koeffizienten

Definition at line 39 of file x013.h.

Member Function Documentation

◆ c()

template<class T, size_t N>
T nmx::apps::x013::Polynom< T, N >::c ( size_t  idx) const
inline

c lese Koeffizienten

Parameters
idxIndex Position im Feld
Returns
Koeffizient

Definition at line 48 of file x013.h.

◆ degree()

template<class T, size_t N>
constexpr size_t nmx::apps::x013::Polynom< T, N >::degree ( ) const
inline

degree

Returns
Grad des Polynoms

Definition at line 118 of file x013.h.

◆ eval() [1/2]

template<class T, size_t N>
auto nmx::apps::x013::Polynom< T, N >::eval ( gsl_complex  z) const
inline

eval Auswertung des Polynoms

Parameters
zkomplexe Variable
Returns
Wert des Polynoms an der Stelle z

Definition at line 58 of file x013.h.

◆ eval() [2/2]

template<class T, size_t N>
auto nmx::apps::x013::Polynom< T, N >::eval ( double  x) const
inline

eval Auswertung des Polynoms

Parameters
xreelle Variable
Returns
Wert des Polynoms an der Stelle x

Definition at line 76 of file x013.h.

◆ operator()()

template<class T, size_t N>
template<class R >
auto nmx::apps::x013::Polynom< T, N >::operator() ( x) const
inline

operator () Auswertung des Polynoms

Parameters
xVariable (komplex oder reell)
Returns
Wert des Polynoms an der Stelle x

Definition at line 95 of file x013.h.

Friends And Related Function Documentation

◆ operator<<

template<class T, size_t N>
std::ostream& operator<< ( std::ostream &  os,
const Polynom< T, N > &  p 
)
friend

operator << Ausgabe der Koeffizienten des Polynoms {c0,c1,c2,...,cn}

Parameters
osAusgabestrom
pPolynom
Returns
Referenz auf Ausgabestrom

Definition at line 106 of file x013.h.

Member Data Documentation

◆ _c

template<class T, size_t N>
std::array<T, N + 1> nmx::apps::x013::Polynom< T, N >::_c
protected

Definition at line 32 of file x013.h.


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