예제 #1
0
  public Complex[] couple(Complex a1, Complex a2, int iterations) {

    double final_coupling = calculateFinalCoupling(iterations);

    return new Complex[] {
      (a2.sub(a1)).times_mutable(final_coupling).plus_mutable(a1),
      (a1.sub(a2)).times_mutable(final_coupling).plus_mutable(a2)
    };
  }
예제 #2
0
  @Override
  public Complex getPixel(Complex pixel) {

    return pixel.cos();
  }