Class ComplexNumber

    • Constructor Detail

      • ComplexNumber

        public ComplexNumber​(double real)
        Creates an instance from the real part.
        Parameters:
        real - the real part
      • ComplexNumber

        public ComplexNumber​(double real,
                             double imaginary)
        Creates an instance from the real and imaginary parts.
        Parameters:
        real - the real part
        imaginary - the imaginary part