BarbosaRMS
9/21/2017 - 3:36 AM

complex.cpp

complex.cpp

#include <iostream>
#include <string>
#include "complex.h"


Complex Complex::Conjugate(){
  Complex temp;
  temp.setReal(this->real);
  temp.setImaginary(this->imaginary * (-1));
  return temp;
};

void Complex::setReal(float a){
  this->real = a;
};
void Complex::setImaginary(float b){
  this->imaginary = b;
};
float Complex::getReal(){
  return this->real;
};
float Complex::getImaginary(){
  return this->imaginary;
};
/*




*/