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.
-
SCF(long, long)
-
-
SCF(long[])
-
-
SCF(long[], long[])
-
-
convergent(int)
- returns the nth convergent
-
isPurelyPeriodic()
-
-
main(String[])
-
-
Sequent(int)
- returns the nth entry of the SCF, repeating as necessary for
periodic SCF
-
sequent(int)
-
-
toRational()
- converts to a rational
-
toString()
-
SCF
public SCF(long c[])
SCF
public SCF(long c[],
long d[])
SCF
public SCF(long p,
long q)
isPurelyPeriodic
public boolean isPurelyPeriodic()
toString
public String toString()
- Overrides:
- toString in class Object
sequent
public long sequent(int n)
Sequent
public Long Sequent(int n)
- returns the nth entry of the SCF, repeating as necessary for
periodic SCF
toRational
public Rational toRational()
- converts to a rational
convergent
public Rational convergent(int n)
- returns the nth convergent
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index