toComplexNumber(number) {
    if (number instanceof ComplexNumber) {
      return number;
    }

    return new ComplexNumber({ re: number });
  }
Convert real numbers to complex number.
In case if complex number is provided then lefts it as is.

@param {ComplexNumber|number} number
@return {ComplexNumber}