IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Static Public Member Functions | |
static double | IntegralSimpson (DlgFunctionValue f, double from, double to, int numintervals) |
Returns numerical integral of a function calculated by the composite Simpson's rule. Error: -(to-from)*h^4*f(4)(mi)/180 More... | |
static double | IntegralSimpson (double[] tabx, double[] tabf) |
Returns numerical integral of a function calculated by the Simpson's rule. Function is specified as a table of values in equidistant points. Intervals need to be equidistant, minimal number of points is 3 and must be odd. Error: -(to-from)*h^4*f(4)(mi)/180 More... | |
static double | IntegralTrapezoidal (DlgFunctionValue f, double from, double to, int numintervals) |
Returns numerical integral of a function calculated by the composite trapezoidal rule. Error: -(a-b)*h^2*f''(mi)/12 More... | |
static double | IntegralTrapezoidal (double[] tabx, double[] tabf) |
Returns numerical integral of a function calculated by the trapezoidal rule. Function is specified as a table of values in specified points. Intervals do not need to be equidistant, minimal number of points is 2. Error: -(a-b)*h^2*f''(mi)/12 More... | |
static double | DerivativeFD (DlgFunctionValue f, double x, double step) |
Calculates numerical derivative of a function according to the forward difference formula. Error: -h*f''(mi)/2 More... | |
static double | DerivativeBD (DlgFunctionValue f, double x, double step) |
Calculates numerical derivative of f according to the backward difference formula. Error: h*f''(mi)/2 More... | |
static double | DerivativeCD (DlgFunctionValue f, double x, double step) |
Calculates numerical derivative of a function according to the central difference formula. Error: -h^2*f(3)(mi)/6 More... | |
static double | Derivative4Point (DlgFunctionValue f, double x, double h) |
Calculates the derivative of a function with a 4 point formula. Error is of order O(h^4). More... | |
static double | SecondDerivativeCD (DlgFunctionValue f, double x, double step) |
Calculates numerical second derivative of a function according to the central difference formula. Error: -h^2*f(4)(mi)/12 More... | |
static double | SecondDerivative5Point (DlgFunctionValue f, double x, double h) |
Calculates the second order derivative of a function with a 5 point formula. Error is O(h^4). More... | |
static double | ThirdDerivative4Point (DlgFunctionValue f, double x, double h) |
Calculates the third order derivative of a function with a 5 point formula. Error is O(h^2). More... | |
static double | ThirdDerivative6Point (DlgFunctionValue f, double x, double h) |
Calculates the third order derivative of a function with a 5 point formula. Error is O(h^4). More... | |
static double | FourthDerivative5Point (DlgFunctionValue f, double x, double h) |
Calculates the fourth order derivative of a function with a 5 point formula. Error is O(h^2). More... | |
static double | FourthDerivative7Point (DlgFunctionValue f, double x, double h) |
Calculates the fourth order derivative of a function with a 5 point formula. Error is O(h^4). More... | |
static double | FifthDerivative7Point (DlgFunctionValue f, double x, double h) |
Calculates the fifth order derivative of a function with a 7 point formula. More... | |
static double | FifthDerivative9Point (DlgFunctionValue f, double x, double h) |
Calculates the fifth order derivative of a function with a 9 point formula. More... | |
static void | TestDifferentiation () |
Tests numerical differentiation methods. More... | |
static void | TestIntegration () |
Test for numerical integration methods. More... | |
Static Private Member Functions | |
static double | IntegralSimpsonTab (DlgFunctionValue f, double from, double to, int numintervals) |
Calculates numerical integral of a function by Simpson's rule, but through a table of values. More... | |
static double | IntegralTrapeZoidalTab (DlgFunctionValue f, double from, double to, int numintervals) |
Calculates numerical integral of a function by Trapezoidal rule, but through a table of values. More... | |
|
inlinestatic |
Returns numerical integral of a function calculated by the composite Simpson's rule. Error: -(to-from)*h^4*f(4)(mi)/180
f | Function to be integrated. |
from | Lower bound of integration interval. |
to | Upper bound of integration interval. |
numintervals | Number of sub-intervals (1 less than the numbe of evaluation points). |
References IG.Num.s.
Referenced by IG.Num.RealFunctionBase.NumericalIntegral().
|
inlinestatic |
Returns numerical integral of a function calculated by the Simpson's rule. Function is specified as a table of values in equidistant points. Intervals need to be equidistant, minimal number of points is 3 and must be odd. Error: -(to-from)*h^4*f(4)(mi)/180
tabx | Table of equidistant points at which function is evaluated. |
tabf | Table of function values in points contained in tabx. |
|
inlinestatic |
Returns numerical integral of a function calculated by the composite trapezoidal rule. Error: -(a-b)*h^2*f''(mi)/12
f | Function to be integrated. |
from | Lower bound of integration interval. |
to | Upper bound of integration interval. |
numintervals | Number of sub-intervals (1 less than the numbe of evaluation points). |
References IG.Num.s.
|
inlinestatic |
Returns numerical integral of a function calculated by the trapezoidal rule. Function is specified as a table of values in specified points. Intervals do not need to be equidistant, minimal number of points is 2. Error: -(a-b)*h^2*f''(mi)/12
tabx | Table of equidistant points at which function is evaluated. |
tabf | Table of function values in points contained in tabx. |
|
inlinestaticprivate |
Calculates numerical integral of a function by Simpson's rule, but through a table of values.
|
inlinestaticprivate |
Calculates numerical integral of a function by Trapezoidal rule, but through a table of values.
|
inlinestatic |
Calculates numerical derivative of a function according to the forward difference formula. Error: -h*f''(mi)/2
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
step | Step size used in differentiation. |
|
inlinestatic |
Calculates numerical derivative of f according to the backward difference formula. Error: h*f''(mi)/2
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
step | Step size used in differentiation. |
|
inlinestatic |
Calculates numerical derivative of a function according to the central difference formula. Error: -h^2*f(3)(mi)/6
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
step | Step size used in differentiation. |
Referenced by IG.Num.RealFunctionBase.NumericalDerivative().
|
inlinestatic |
Calculates the derivative of a function with a 4 point formula. Error is of order O(h^4).
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
h | Step size. |
|
inlinestatic |
Calculates numerical second derivative of a function according to the central difference formula. Error: -h^2*f(4)(mi)/12
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
step | Step size used in differentiation. |
Referenced by IG.Num.RealFunctionBase.NumericalSecondDerivative().
|
inlinestatic |
Calculates the second order derivative of a function with a 5 point formula. Error is O(h^4).
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
h | Step size. |
|
inlinestatic |
Calculates the third order derivative of a function with a 5 point formula. Error is O(h^2).
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
h | Step size. |
|
inlinestatic |
Calculates the third order derivative of a function with a 5 point formula. Error is O(h^4).
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
h | Step size. |
|
inlinestatic |
Calculates the fourth order derivative of a function with a 5 point formula. Error is O(h^2).
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
h | Step size. |
|
inlinestatic |
Calculates the fourth order derivative of a function with a 5 point formula. Error is O(h^4).
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
h | Step size. |
|
inlinestatic |
Calculates the fifth order derivative of a function with a 7 point formula.
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
h | Step size. |
|
inlinestatic |
Calculates the fifth order derivative of a function with a 9 point formula.
f | Function whose derivative is calculated. |
x | Value of independent variable at which derivative is calculated. |
h | Step size. |
|
inlinestatic |
Tests numerical differentiation methods.
References IG.Num.DlgFunctionValue().
|
inlinestatic |
Test for numerical integration methods.
References IG.Num.DlgFunctionValue().