diff --git a/fuenfteabgabe.c b/fuenfteabgabe.c index a3467b5..37f818c 100644 --- a/fuenfteabgabe.c +++ b/fuenfteabgabe.c @@ -40,7 +40,7 @@ void ujeins(soli_param *sp) { + u0[j]; } else if (j == 0) { - uj1[j] = (d * 6 * u0[j] * (u0[j + 1] - u0[j - 1]) / (2 * h)) + uj1[j] = (d * 6 * u0[j] * (u0[j + 1]) / (2 * h)) - (d * (u0[j + 2]) / (2 * pow(h, 3))) + u0[j]; } else if (j == jmax - 1) {