Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Hesham Ouda
Added: Jul 10, 2021 11:48 PM
Views: 33
Tags: algorithm
  1.         public Complex add(Complex z) {
  2. //              Complex zahl = new Complex();
  3. //              zahl.re = this.re + z.re;
  4. //              zahl.im = this.im+ z.im;
  5. //              return zahl;
  6.  
  7.                 return new Complex(this.re + z.re, this.im + z.im);
  8.         }