Classes | Functions
nmx::apps::x034 Namespace Reference

Classes

struct  quadratic_params
 The quadratic_params struct. More...
 

Functions

double quadratic_fn (double x, void *params)
 quadratic quadratisches Polynom More...
 
double quadratic_deriv (double x, void *params)
 quadratic_deriv Ableitung des quadratischen Polynoms More...
 
void quadratic_fdf (double x, void *params, double *y, double *dy)
 quadratic_fdf quadratisches Polynom und Ableitung More...
 
void ex1 ()
 ex1 Bisektionsverfahren mit gsl-Routinen More...
 
void ex2 ()
 ex2 Nullstellensuche mit dem Newton-Verfahren und gsl-Routinen More...
 
auto get_output_stream (const char *name, Format fmt=Output::terminal)
 get_output_stream More...
 
template<class T >
void show_results (std::ofstream &ofs, const T &obj, double expected)
 show_results Präsentation der Ergebnisse More...
 
void root1 ()
 root1 Berechnung von sqrt{5} mit dem Bisektionsverfahren More...
 
void root2 ()
 root2 Berechnung von sqrt{5} mit dem Bisektionsverfahren More...
 
void root3 ()
 root3 zwei Teilchen bewegen sich aufeinader zu More...
 
void root4 ()
 root4 Berechnung von sqrt(5) mit dem Newton-Verfahren More...
 

Function Documentation

◆ ex1()

void nmx::apps::x034::ex1 ( )
inline

ex1 Bisektionsverfahren mit gsl-Routinen

Definition at line 75 of file x034.h.

◆ ex2()

void nmx::apps::x034::ex2 ( )
inline

ex2 Nullstellensuche mit dem Newton-Verfahren und gsl-Routinen

Definition at line 137 of file x034.h.

◆ get_output_stream()

auto nmx::apps::x034::get_output_stream ( const char *  name,
Format  fmt = Output::terminal 
)
inline

get_output_stream

Parameters
nameName der Datei
fmtFormatierung der Daten

Definition at line 191 of file x034.h.

◆ quadratic_deriv()

double nmx::apps::x034::quadratic_deriv ( double  x,
void *  params 
)

quadratic_deriv Ableitung des quadratischen Polynoms

Parameters
xvariable
paramszusätzliche Daten
Returns
reelle Zahl

Definition at line 42 of file x034.h.

◆ quadratic_fdf()

void nmx::apps::x034::quadratic_fdf ( double  x,
void *  params,
double *  y,
double *  dy 
)

quadratic_fdf quadratisches Polynom und Ableitung

Parameters
xVariable
paramszusätzliche Daten
yRückgabewert quadratisches Polynom
dyRückgabewert Ableitung des quadratischen Polynoms

Definition at line 60 of file x034.h.

◆ quadratic_fn()

double nmx::apps::x034::quadratic_fn ( double  x,
void *  params 
)

quadratic quadratisches Polynom

Parameters
xVariable
paramszusätzliche Daten
Returns
reelle Zahl

Definition at line 25 of file x034.h.

◆ root1()

void nmx::apps::x034::root1 ( )
inline

root1 Berechnung von sqrt{5} mit dem Bisektionsverfahren

Definition at line 219 of file x034.h.

◆ root2()

void nmx::apps::x034::root2 ( )
inline

root2 Berechnung von sqrt{5} mit dem Bisektionsverfahren

Definition at line 248 of file x034.h.

◆ root3()

void nmx::apps::x034::root3 ( )
inline

root3 zwei Teilchen bewegen sich aufeinader zu

Definition at line 266 of file x034.h.

◆ root4()

void nmx::apps::x034::root4 ( )
inline

root4 Berechnung von sqrt(5) mit dem Newton-Verfahren

Definition at line 297 of file x034.h.

◆ show_results()

template<class T >
void nmx::apps::x034::show_results ( std::ofstream &  ofs,
const T &  obj,
double  expected 
)
inline

show_results Präsentation der Ergebnisse

Parameters
ofsAusgabestrom
objKlasse zur Nullstellensuche
expectedexakt berechneter Wert

Definition at line 204 of file x034.h.