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; }
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; }