Complex.fromFraction constructor

Complex.fromFraction(
  1. Fraction real,
  2. Fraction imaginary
)

Creates a complex number from Fraction objects as parameter for the real and imaginary part.

Implementation

Complex.fromFraction(Fraction real, Fraction imaginary)
    : real = real.toDouble(),
      imaginary = imaginary.toDouble();