code: public float mixed(float[] x, int A, float alpha) {
      float tmp;
      tmp =
        (float) Math.cos((float) 2.0 * A * (float) Math.PI * x[0] + (float) Math.PI * (float) 0.5);
      tmp /= (2.0 * (float) A * Math.PI);
  
      return (float) Math.pow(((float) 1.0 - x[0] - tmp), alpha);
    }
docs: Calculate a mixed shape