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