Exemple #1
0
 @Override
 public IComplexNumber update(IComplexNumber accum, double x, double y) {
   return accum.add(x >= 0 ? x : -x);
 }
Exemple #2
0
 @Override
 public IComplexNumber update(IComplexNumber accum, IComplexNumber x, IComplexNumber y) {
   return accum.add(x.absoluteValue());
 }
Exemple #3
0
 @Override
 public IComplexNumber combineSubResults(IComplexNumber first, IComplexNumber second) {
   return first.add(second);
 }