Package edu.jas.arith

Class BigInteger

java.lang.Object
edu.jas.arith.BigInteger
All Implemented Interfaces:
Rational, AbelianGroupElem<BigInteger>, AbelianGroupFactory<BigInteger>, Element<BigInteger>, ElemFactory<BigInteger>, GcdRingElem<BigInteger>, MonoidElem<BigInteger>, MonoidFactory<BigInteger>, RingElem<BigInteger>, RingFactory<BigInteger>, Serializable, Comparable<BigInteger>, Iterable<BigInteger>

public final class BigInteger extends Object implements GcdRingElem<BigInteger>, RingFactory<BigInteger>, Iterable<BigInteger>, Rational
BigInteger class to make java.math.BigInteger available with RingElem respectively the GcdRingElem interface. Objects of this class are immutable. The SAC2 static methods are also provided.
See Also:
  • Field Details

    • val

      public final BigInteger val
      The data structure.
    • random

      private static final Random random
    • ZERO

      public static final BigInteger ZERO
      The constant 0.
    • ONE

      public static final BigInteger ONE
      The constant 1.
    • TWO

      public static final BigInteger TWO
      The constant 2.
    • nonNegative

      private boolean nonNegative
  • Constructor Details

    • BigInteger

      public BigInteger(BigInteger a)
      Constructor for BigInteger from math.BigInteger.
      Parameters:
      a - java.math.BigInteger.
    • BigInteger

      public BigInteger(long a)
      Constructor for BigInteger from long.
      Parameters:
      a - long.
    • BigInteger

      public BigInteger(String s)
      Constructor for BigInteger from String.
      Parameters:
      s - String.
    • BigInteger

      public BigInteger()
      Constructor for BigInteger without parameters.
  • Method Details