Globals


Annotated List
Files
Globals
Hierarchy
Index

bsp_20_fkt.hpp

Global member Documentation

double  riemann ( double (* const func)(double), const double &a, const double &b, const int n)

riemann

#include <bsp_20_fkt.hpp>

Calculates the integral value.of a 1D-function by the Riemann formula

Parameters:
funcfunction func(x) to integrate
ainterval [a,b]
binterval [a,b]
nnumber of subintervals of [a,b]

Returns: integral f(x) from a to b

double  derivative ( double (* const func)(double), const double &x, const double &h)

derivative

#include <bsp_20_fkt.hpp>

Calculates the first derivative f'(x) of a 1D-function by the finite difference.

Parameters:
funcfunction func(x) to differentiate
xpoint for evaluation
hdistance from x in the finite difference formula

Returns: f'(x)

double  riemann ( double (* const func)(double), const double &a, const double &b, const double eps=1e-4)

riemann

#include <bsp_20_fkt.hpp>

Calculates the integral value.of a 1D-function for a given accuracy by the Riemann formula

Parameters:
funcfunction func(x) to integrate
ainterval [a,b]
binterval [a,b]
epsabsolute numerical accuracy

Returns: integral f(x) from a to b

double  derivative2 ( double (* const func)(double), const double &x, const double eps=1e-4)

derivative2

#include <bsp_20_fkt.hpp>

Calculates the first derivative f'(x) of a 1D-function with a given accuracy by the finite difference.

Parameters:
funcfunction func(x) to differentiate
xpoint for evaluation
epsabsolute numerical accuracy

Returns: f'(x)

double  newton_diff_approx ( double (* const func)(double), const double &a, const double &b, const double eps=1e-4)

newton_diff_approx

#include <bsp_20_fkt.hpp>

Solves the equation f(x)=0 in the interval [a,b] with the Newton iteration using the finite difference to approximate the needed first derivative. Calculates the first derivative f'(x) of a 1D-function with a given accuracy by the finite difference.

Parameters:
func1D-function func(x)
ainterval [a,b]
binterval [a,b]
epsabsolute numerical accuracy

Returns: one root of func(x) in the given interval


Generated by: ghaase on mephisto on Thu May 24 08:44:56 2007, using kdoc 2.0a54.