Class Polynomi2
java.lang.Object
|
+--Polynomi2
- class Polynomi2
- extends java.lang.Object
Luokka toisen asteen polynomille ja sen nollakohdille
- Version:
- 1.0, 16.02.2003
- Author:
- Vesa Lappalainen
Field Summary |
private double |
a
|
private double |
b
|
private double |
c
|
private int |
reaalijuuria
|
private double |
x1
|
private double |
x2
|
Constructor Summary |
Polynomi2(double a,
double b,
double c)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
a
private double a
b
private double b
c
private double c
x1
private double x1
x2
private double x2
reaalijuuria
private int reaalijuuria
Polynomi2
public Polynomi2(double a,
double b,
double c)
ratkaise_2_asteen_yhtalo
private int ratkaise_2_asteen_yhtalo()
P2
public static double P2(double x,
double a,
double b,
double c)
f
public double f(double x)
getX1
public double getX1()
getX2
public double getX2()
getReaalijuuria
public int getReaalijuuria()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object