예제 #1
0
 public static BigRational reihenSumme(int n, IN2Q in2q) {
   BigRational result = new BigRational("0/1");
   for (; n > 1; n--) {
     result = result.add(in2q.map(n));
   }
   return result;
 }
예제 #2
0
 public static BigRational[] createBigRationalFolge(int anzahl, IN2Q in2q) {
   BigRational[] result = new BigRational[anzahl];
   for (int i = 0; i < anzahl; i++) {
     result[i] = in2q.map(i + 1);
   }
   return result;
 }