Cartesian constructor

const Cartesian(
  1. double real, [
  2. double imaginary = 0
])

Create a complex number given the real part and optionally the imaginary part.

Implementation

const Cartesian(this.real, [this.imaginary = 0]);