edu.jas.arith
Interface Coefficient

All Known Implementing Classes:
BigComplex, BigInteger, BigQuaternion, BigRational

public interface Coefficient

Coefficient interface for use with the polynomial classes. BigRational and BigInteger implement this interface.


Field Summary
static Coefficient ONE
           
static Coefficient ZERO
           
 
Method Summary
 Coefficient abs()
           
 Coefficient add(Coefficient S)
           
 int compareTo(java.lang.Object b)
           
 Coefficient divide(Coefficient S)
           
 Coefficient fromInteger(java.math.BigInteger a)
           
 Coefficient fromInteger(long a)
           
 Coefficient inverse()
           
 boolean isONE()
           
 boolean isZERO()
           
 Coefficient multiply(Coefficient S)
           
 Coefficient negate()
           
 Coefficient random(int n)
           
 int signum()
           
 Coefficient subtract(Coefficient S)
           
 

Field Detail

ONE

static final Coefficient ONE

ZERO

static final Coefficient ZERO
Method Detail

isZERO

boolean isZERO()

isONE

boolean isONE()

fromInteger

Coefficient fromInteger(java.math.BigInteger a)

fromInteger

Coefficient fromInteger(long a)

compareTo

int compareTo(java.lang.Object b)

signum

int signum()

add

Coefficient add(Coefficient S)

subtract

Coefficient subtract(Coefficient S)

negate

Coefficient negate()

abs

Coefficient abs()

random

Coefficient random(int n)

divide

Coefficient divide(Coefficient S)

multiply

Coefficient multiply(Coefficient S)

inverse

Coefficient inverse()