Uses of Class
org.znerd.math.RealNumber

Uses of RealNumber in org.znerd.math
 

Subclasses of RealNumber in org.znerd.math
 class AbstractCompositeNumber
          Abstract base class for CompositeNumber implementations.
 class BasicDigitSet
          Basic implementation of a DigitSet.
 class BasicRationalNumber
          Basic implementation of a rational number, i.e.
 class BigIntegerNumber
          Basic implementation of an integer number.
 class CompositeNumber
          A composite real number.
 class DigitSet
          A set of digits, having a radix and an exponent.
 class IntegerNumber
          An immutable integer number.
 class Power
          A power, consisting of a base and an exponent.
 class Product
          A product of two real numbers.
 class RationalNumber
          Rational number.
 class SmallIntegerNumber
          Implementation of an IntegerNumber based on a int value.
 class Sum
          A sum of two real numbers.
 

Methods in org.znerd.math that return RealNumber
 RealNumber RealNumber.abs()
          Computes |this|.
 RealNumber RealNumber.negate()
          Computes -this.
 RealNumber RealNumber.invert()
          Computes 1/this.
 RealNumber RealNumber.add(RealNumber n)
          Computes this + n, where n is a real number.
 RealNumber RealNumber.subtract(RealNumber n)
          Computes this - n, where n is a real number.
 RealNumber RealNumber.multiply(RealNumber n)
          Computes this * n, where n is a real number.
 RealNumber RealNumber.divide(RealNumber n)
          Computes this/n, where n is a real number.
 RealNumber RealNumber.pow(RealNumber n)
          Computes thisn, where n is a real number.
abstract  RealNumber[] CompositeNumber.getElements()
          Returns the operands.
abstract  RealNumber CompositeNumber.getElement(int n)
          Returns the nth operand.
 RealNumber[] CanNotCompareException.getNumbers()
          Returns the numbers that could not be compared in a new array.
 RealNumber[] AbstractCompositeNumber.getElements()
           
 RealNumber AbstractCompositeNumber.getElement(int n)
           
 RealNumber Power.getBase()
          Returns the base of this power.
 RealNumber Power.getExponent()
          Returns the exponent of this power.
 RealNumber RationalNumber.negate()
           
 RealNumber RationalNumber.invert()
           
 RealNumber RationalNumber.add(RealNumber n)
           
 RealNumber RationalNumber.subtract(RealNumber n)
           
 RealNumber RationalNumber.multiply(RealNumber n)
           
 RealNumber RationalNumber.divide(RealNumber n)
           
 RealNumber RationalNumber.pow(RealNumber n)
           
 RealNumber IntegerNumber.abs()
           
 RealNumber IntegerNumber.negate()
           
 RealNumber IntegerNumber.invert()
           
 RealNumber[] Sum.getElements()
           
 RealNumber Sum.getElement(int n)
           
static RealNumber NumberCentral.add(RealNumber a, RealNumber b)
          Computes the sum of 2 RealNumbers.
static RealNumber NumberCentral.multiply(RealNumber a, RealNumber b)
          Computes the product of 2 RealNumbers.
static RealNumber NumberCentral.pow(RealNumber base, RealNumber exponent)
          Computes the power of the given base and exponent.
 

Methods in org.znerd.math with parameters of type RealNumber
 int RealNumber.compareTo(RealNumber n)
          Compares this number with the specified number.
protected  int RealNumber.compareToImpl(RealNumber n)
          Compares this number with the specified number, second level.
 RealNumber RealNumber.add(RealNumber n)
          Computes this + n, where n is a real number.
 RealNumber RealNumber.subtract(RealNumber n)
          Computes this - n, where n is a real number.
 RealNumber RealNumber.multiply(RealNumber n)
          Computes this * n, where n is a real number.
 RealNumber RealNumber.divide(RealNumber n)
          Computes this/n, where n is a real number.
 RealNumber RealNumber.pow(RealNumber n)
          Computes thisn, where n is a real number.
 boolean RoundingMode.round(RealNumber number, int radix, int digit)
          Rounds the specified digit for a number in the specified base.
protected abstract  boolean RoundingMode.roundImpl(RealNumber number, int sign, int radix, int digit)
          Actually rounds the specified digit for a number in the specified base.
static Power Power.createInstance(RealNumber a, RealNumber b)
          Returns a Power with the specified operands.
protected static int Power.determineSign(RealNumber base, RealNumber exponent)
          Computes the sign of a power with the specified operands.
protected  int RationalNumber.compareToImpl(RealNumber n)
          Compares this number with the specified number, second level.
protected  int RationalNumber.compareToImpl2(RealNumber n)
          Compares this number with the specified number, third level.
 RealNumber RationalNumber.add(RealNumber n)
           
 RealNumber RationalNumber.subtract(RealNumber n)
           
 RealNumber RationalNumber.multiply(RealNumber n)
           
 RealNumber RationalNumber.divide(RealNumber n)
           
 RealNumber RationalNumber.pow(RealNumber n)
           
static Sum Sum.createInstance(RealNumber a, RealNumber b)
          Returns a Sum with the specified operands.
protected  int Sum.compareToImpl(RealNumber n)
           
static Product Product.createInstance(RealNumber a, RealNumber b)
          Returns a Product with the specified operands.
protected static int Product.determineSign(RealNumber a, RealNumber b)
          Computes the sign of a product with the specified operands.
 int Product.retryCompare(RealNumber n)
          Returns -1, 0 or 1 as this number is less than, equal to, or greater than n, where n is a real number.
static RealNumber NumberCentral.add(RealNumber a, RealNumber b)
          Computes the sum of 2 RealNumbers.
static RealNumber NumberCentral.multiply(RealNumber a, RealNumber b)
          Computes the product of 2 RealNumbers.
static RealNumber NumberCentral.pow(RealNumber base, RealNumber exponent)
          Computes the power of the given base and exponent.
static void NumberCentral.checkDivideByZero(RealNumber n)
          Checks if dividing by the specified number would result in a division by zero.
 

Constructors in org.znerd.math with parameters of type RealNumber
CanNotCompareException.CanNotCompareException(RealNumber a, RealNumber b)
          Constructs a new CanNotCompareException for a failed comparison between the specified numbers.
AbstractCompositeNumber.AbstractCompositeNumber(int sign, String asString, RealNumber[] elements)
          Constructs a new AbstractCompositeNumber object.
Power.Power(RealNumber base, RealNumber exponent)
          Constructs a Power with the specified base and exponent.
Sum.Sum(RealNumber a, RealNumber b)
          Constructs a Sum based on the 2 specified operands.
Product.Product(RealNumber a, RealNumber b)
          Constructs a Product based on the 2 specified operands.
 



See http://jump-math.sourceforge.net/.