public class Gerade extends DifferenzierbareFunktion
Modifier and Type | Field and Description |
---|---|
private double |
m
Anstieg m.
|
private double |
n
Absolutglied n.
|
Constructor and Description |
---|
Gerade() |
Modifier and Type | Method and Description |
---|---|
boolean |
konsolenEingabe()
Geradeneingabe ueber Konsole.
|
boolean |
setGerade(double anstieg,
double absolut)
Setzt Koeffizienten m und n.
|
boolean |
setGerade(double anstieg,
double x0,
double y0)
Setzt Koeffizienten m und n
mittels Punktrichtungsgleichung.
|
boolean |
setGerade(double x1,
double y1,
double x2,
double y2)
Setzt Koeffizienten m und n, m <> n,
mittels Zweipunktegleichung.
|
java.lang.String |
toString()
Darstellen einer Geraden.
|
double |
wert(double arg)
Berechnen eines Funktionswertes.
|
double |
wertErsteAbleitung(double arg)
Berechnen einer ersten Ableitung g'( x) = m.
|
tabellieren
public boolean setGerade(double anstieg, double absolut)
anstieg
- Anstiegabsolut
- Absolutgliedpublic boolean setGerade(double anstieg, double x0, double y0)
anstieg
- Anstiegx0
- x-Kooerdinate eines Punktesy0
- y-Kooerdinate eines Punktespublic boolean setGerade(double x1, double y1, double x2, double y2)
x1
- x-Kooerdinate eines Punktesy1
- y-Kooerdinate eines Punktesx2
- x-Kooerdinate eines zweiten Punktesy2
- y-Kooerdinate eines zweiten Punktespublic boolean konsolenEingabe()
konsolenEingabe
in class Funktion
public double wert(double arg)
public double wertErsteAbleitung(double arg)
wertErsteAbleitung
in class DifferenzierbareFunktion
arg
- Argument