| java.lang.Object java.lang.Number gnu.math.Numeric gnu.math.Quantity gnu.math.Complex gnu.math.RealNum gnu.math.RatNum
All known Subclasses: gnu.math.IntNum, gnu.math.IntFraction,
RatNum | abstract public class RatNum extends RealNum (Code) | | The abstract class of rational numbers.
|
infinity | public static RatNum infinity(int sign)(Code) | | Return exact "rational" infinity.
Parameters: sign - either 1 or -1 for positive or negative infinity |
isExact | public boolean isExact()(Code) | | |
isZero | public boolean isZero()(Code) | | |
Methods inherited from gnu.math.RealNum | public Numeric abs()(Code)(Java Doc) public static RealNum add(RealNum x, RealNum y, int k)(Code)(Java Doc) abstract public Numeric add(Object obj, int k)(Code)(Java Doc) public java.math.BigDecimal asBigDecimal()(Code)(Java Doc) public int compareTo(Object o)(Code)(Java Doc) abstract public Numeric div(Object obj)(Code)(Java Doc) public static RealNum divide(RealNum x, RealNum y)(Code)(Java Doc) public Complex exp()(Code)(Java Doc) final public RealNum im()(Code)(Java Doc) abstract public boolean isNegative()(Code)(Java Doc) public boolean isZero()(Code)(Java Doc) public Complex log()(Code)(Java Doc) public RealNum max(RealNum x)(Code)(Java Doc) public RealNum min(RealNum x)(Code)(Java Doc) abstract public Numeric mul(Object obj)(Code)(Java Doc) final public RealNum re()(Code)(Java Doc) final public RealNum rneg()(Code)(Java Doc) abstract public int sign()(Code)(Java Doc) final public Complex sin()(Code)(Java Doc) final public Complex sqrt()(Code)(Java Doc) public static RealNum times(RealNum x, RealNum y)(Code)(Java Doc) public RatNum toExact()(Code)(Java Doc) public IntNum toExactInt(int rounding_mode)(Code)(Java Doc) public static IntNum toExactInt(double value, int rounding_mode)(Code)(Java Doc) public static IntNum toExactInt(double value)(Code)(Java Doc) public static double toInt(double d, int rounding_mode)(Code)(Java Doc) public RealNum toInt(int rounding_mode)(Code)(Java Doc) public static IntNum toScaledInt(double f, int k)(Code)(Java Doc) public static IntNum toScaledInt(RatNum r, int k)(Code)(Java Doc) public IntNum toScaledInt(int k)(Code)(Java Doc) public static String toStringDecimal(String dstr)(Code)(Java Doc) public static String toStringScientific(float d)(Code)(Java Doc) public static String toStringScientific(double d)(Code)(Java Doc) public static String toStringScientific(String dstr)(Code)(Java Doc) public static int toStringScientific(String dstr, StringBuffer sbuf)(Code)(Java Doc)
|
Methods inherited from gnu.math.Complex | public Numeric abs()(Code)(Java Doc) public static Complex add(Complex x, Complex y, int k)(Code)(Java Doc) public Numeric add(Object y, int k)(Code)(Java Doc) public Numeric addReversed(Numeric x, int k)(Code)(Java Doc) public RealNum angle()(Code)(Java Doc) public static int compare(Complex x, Complex y)(Code)(Java Doc) public int compare(Object obj)(Code)(Java Doc) public Numeric div(Object y)(Code)(Java Doc) public Numeric divReversed(Numeric x)(Code)(Java Doc) public static Complex divide(Complex x, Complex y)(Code)(Java Doc) public double doubleImagValue()(Code)(Java Doc) final public double doubleRealValue()(Code)(Java Doc) public double doubleValue()(Code)(Java Doc) public static boolean equals(Complex x, Complex y)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Complex exp()(Code)(Java Doc) public static CComplex imMinusOne()(Code)(Java Doc) public static CComplex imOne()(Code)(Java Doc) public boolean isExact()(Code)(Java Doc) public boolean isZero()(Code)(Java Doc) public Complex log()(Code)(Java Doc) public long longValue()(Code)(Java Doc) public static Complex make(RealNum re, RealNum im)(Code)(Java Doc) public static Complex make(double re, double im)(Code)(Java Doc) public Numeric mul(Object y)(Code)(Java Doc) public Numeric mulReversed(Numeric x)(Code)(Java Doc) public static Complex neg(Complex x)(Code)(Java Doc) public Numeric neg()(Code)(Java Doc) public Complex number()(Code)(Java Doc) public static DComplex polar(double r, double t)(Code)(Java Doc) public static DComplex polar(RealNum r, RealNum t)(Code)(Java Doc) public static Complex power(Complex x, Complex y)(Code)(Java Doc) public Complex sqrt()(Code)(Java Doc) public static Complex times(Complex x, Complex y)(Code)(Java Doc) public String toString(int radix)(Code)(Java Doc)
|
Methods inherited from gnu.math.Quantity | public Numeric abs()(Code)(Java Doc) public static Quantity add(Quantity x, Quantity y, int k)(Code)(Java Doc) public Numeric add(Object y, int k)(Code)(Java Doc) public Numeric addReversed(Numeric x, int k)(Code)(Java Doc) public static int compare(Quantity x, Quantity y)(Code)(Java Doc) public int compare(Object obj)(Code)(Java Doc) public int compareReversed(Numeric x)(Code)(Java Doc) public Dimensions dimensions()(Code)(Java Doc) public Numeric div(Object y)(Code)(Java Doc) public Numeric divReversed(Numeric x)(Code)(Java Doc) public static Quantity divide(Quantity x, Quantity y)(Code)(Java Doc) public double doubleImagValue()(Code)(Java Doc) public double doubleValue()(Code)(Java Doc) public RealNum im()(Code)(Java Doc) final public double imValue()(Code)(Java Doc) public static Quantity make(Complex x, Unit u)(Code)(Java Doc) public static Quantity make(RealNum re, RealNum im, Unit unit)(Code)(Java Doc) public static Quantity make(double re, double im, Unit unit)(Code)(Java Doc) public Numeric mul(Object y)(Code)(Java Doc) public Numeric mulReversed(Numeric x)(Code)(Java Doc) public Numeric neg()(Code)(Java Doc) abstract public Complex number()(Code)(Java Doc) public RealNum re()(Code)(Java Doc) final public double reValue()(Code)(Java Doc) public static Quantity times(Quantity x, Quantity y)(Code)(Java Doc) public String toString(int radix)(Code)(Java Doc) public Unit unit()(Code)(Java Doc)
|
|
|