public class Integral
extends java.lang.Object
Constructor and Description |
---|
Integral() |
Modifier and Type | Method and Description |
---|---|
double |
simpson(double[] y,
double h)
Integrieren mittels quadratischer Interpolation
(Simpsonregel).
|
double |
simpson(Funktion fkt,
double a,
double b,
int s)
Integrieren mittels quadratischer Interpolation
(Simpsonregel).
|
double |
trapez(double[] y,
double h)
Integrieren mittels linearer Interpolation
(Trapezregel).
|
double |
trapez(Funktion fkt,
double a,
double b,
int s)
Integrieren mittels linearer Interpolation
(Trapezregel).
|
public double trapez(double[] y, double h)
y
- Funktionswerte aller Stuetzstellenh
- Abstand zwischen den Stuetzstellenpublic double trapez(Funktion fkt, double a, double b, int s)
fkt
- Funktiona
- untere Integrationsgrenzeb
- obere Integrationsgrenzes
- Anzahl der Stuetzstellenpublic double simpson(double[] y, double h)
y
- Funktionswerte aller Stuetzstellenh
- Abstand zwischen den Stuetzstellenpublic double simpson(Funktion fkt, double a, double b, int s)
fkt
- Funktiona
- untere Integrationsgrenzeb
- obere Integrationsgrenzes
- Anzahl der Stuetzstellen