All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class benno.number.SCF

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

public class SCF
extends Object
BUGS: SCF(p,q) doesn't work with negatives.


Constructor Index

 o SCF(long, long)
 o SCF(long[])
 o SCF(long[], long[])

Method Index

 o convergent(int)
returns the nth convergent
 o isPurelyPeriodic()
 o main(String[])
 o Sequent(int)
returns the nth entry of the SCF, repeating as necessary for periodic SCF
 o sequent(int)
 o toRational()
converts to a rational
 o toString()

Constructors

 o SCF
 public SCF(long c[])
 o SCF
 public SCF(long c[],
            long d[])
 o SCF
 public SCF(long p,
            long q)

Methods

 o isPurelyPeriodic
 public boolean isPurelyPeriodic()
 o toString
 public String toString()
Overrides:
toString in class Object
 o sequent
 public long sequent(int n)
 o Sequent
 public Long Sequent(int n)
returns the nth entry of the SCF, repeating as necessary for periodic SCF

 o toRational
 public Rational toRational()
converts to a rational

 o convergent
 public Rational convergent(int n)
returns the nth convergent

 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index