Package edu.jas.arith

Class BigComplex

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

public final class BigComplex extends Object implements StarRingElem<BigComplex>, GcdRingElem<BigComplex>, RingFactory<BigComplex>
BigComplex class based on BigRational implementing the RingElem respectively the StarRingElem interface. Objects of this class are immutable. The SAC2 static methods are also provided.
See Also:
  • Field Details

    • re

      public final BigRational re
      Real part of the data structure.
    • im

      public final BigRational im
      Imaginary part of the data structure.
    • random

      private static final Random random
    • logger

      private static final org.apache.logging.log4j.Logger logger
    • ZERO

      public static final BigComplex ZERO
      The constant 0.
    • ONE

      public static final BigComplex ONE
      The constant 1.
    • I

      public static final BigComplex I
      The constant i.
  • Constructor Details

    • BigComplex

      public BigComplex(BigRational r, BigRational i)
      The constructor creates a BigComplex object from two BigRational objects real and imaginary part.
      Parameters:
      r - real part.
      i - imaginary part.
    • BigComplex

      public BigComplex(BigRational r)
      The constructor creates a BigComplex object from a BigRational object as real part, the imaginary part is set to 0.
      Parameters:
      r - real part.
    • BigComplex

      public BigComplex(long r)
      The constructor creates a BigComplex object from a long element as real part, the imaginary part is set to 0.
      Parameters:
      r - real part.
    • BigComplex

      public BigComplex()
      The constructor creates a BigComplex object with real part 0 and imaginary part 0.
    • BigComplex

      public BigComplex(String s) throws NumberFormatException
      The constructor creates a BigComplex object from a String representation.
      Parameters:
      s - string of a BigComplex.
      Throws:
      NumberFormatException
  • Method Details