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)
           
 
Method Summary
 double f(double x)
           
 int getReaalijuuria()
           
 double getX1()
           
 double getX2()
           
static double P2(double x, double a, double b, double c)
           
private  int ratkaise_2_asteen_yhtalo()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

a

private double a

b

private double b

c

private double c

x1

private double x1

x2

private double x2

reaalijuuria

private int reaalijuuria
Constructor Detail

Polynomi2

public Polynomi2(double a,
                 double b,
                 double c)
Method Detail

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