
public class bench_math {
  public static void main(String[] args) {
    double total = 0.0;

    double x = 1.0;
    while(x <= 2000.0) {

      double result = (5.4*Math.pow(x, 5.0) - 3.211*Math.pow(x, 4.0) + 100.3*Math.pow(x, 2.0) - 100 +
        20*Math.sin(x) - Math.log(x)) * 20*Math.exp(-x/100.3);
      total = total + result / 0.0001;
      
      x = x + 0.0001;
    }

    System.out.println(total);

  }
}

