All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class benno.number.QuadraticForm

java.lang.Object
   |
   +----benno.number.QuadraticForm

public class QuadraticForm
extends Object
this is for Number Theory MAS320@qmw, coursework 4. It represents a form A x^2 + B xy + C y^2


Variable Index

 o A
 o B
 o C

Constructor Index

 o QuadraticForm(long, long, long)

Method Index

 o definiteReductionStep()
this makes one step in the definite form reduction algorithm.
 o discriminant()
 o firstRoot()
 o isDefinite()
 o isReduced()
 o rightNeighbour(long)
returns the right neighbour by k
 o toString()

Variables

 o A
 public long A
 o B
 public long B
 o C
 public long C

Constructors

 o QuadraticForm
 public QuadraticForm(long a,
                      long b,
                      long c)

Methods

 o toString
 public String toString()
Overrides:
toString in class Object
 o discriminant
 public long discriminant()
 o isDefinite
 public boolean isDefinite()
 o isReduced
 public boolean isReduced()
 o firstRoot
 public QuadraticIrrational firstRoot()
 o rightNeighbour
 public QuadraticForm rightNeighbour(long k)
returns the right neighbour by k

 o definiteReductionStep
 public QuadraticForm definiteReductionStep()
this makes one step in the definite form reduction algorithm.


All Packages  Class Hierarchy  This Package  Previous  Next  Index