Exemple #1
2
  public static void main(String[] args) {
    Integral process = new Integral();

    double[] S =
        process.divideSquare(
            Integer.parseInt(args[0]), Integer.parseInt(args[1]), Integer.parseInt(args[2]));
    System.out.println("real value: " + (double) 1 / 3);
    System.out.println("calc value1: " + S[0]);
    System.out.println("calc value2: " + S[1]);
    System.out.println("calc value3: " + S[2]);
  }
 /** contribution of bremsstrahlung to -dE/dx */
 public double dEdx() {
   if (cros.cb <= 0) return 0;
   if (jt) return Math.max(J.interpolate(p.e), 0);
   int i;
   double sum;
   sum = 0;
   for (i = 0; i < m.num; i++) {
     setEnergy(i);
     sum += I.integrateOpened(0, vUp, this);
   }
   return cros.cb * p.e * sum;
 }