complex complex::operator/(complex x) { return complex((this->getRe() * x.getRe() + this->getIm() * x.getIm()) / (x.getIm() * x.getIm() + x.getRe() * x.getRe()), (x.getRe() * this->getIm() - x.getIm() * this->getRe()) / (x.getIm() * x.getIm() + x.getRe() * x.getRe())); }
complex complex::operator*(complex x) { return complex(this->getRe() * x.getRe() - this->getIm() * x.getIm(), this->getRe() * x.getIm() + this->getIm() * x.getRe()); }
complex complex::operator=(complex x) { this->im = x.getIm(); this->re = x.getRe(); }
complex complex::operator-(complex x) { return complex(this->getRe() - x.getRe(), this->getIm() - x.getIm()); }