From 220b382cf4b7019b199c3023ddab73ba2658e27a Mon Sep 17 00:00:00 2001 From: Fabian <@> Date: Wed, 27 Jul 2022 13:08:39 +0200 Subject: 0f1, bilder --- buch/papers/0f1/listings/kettenbruchRekursion.c | 8 ++++---- buch/papers/0f1/listings/potenzreihe.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'buch/papers/0f1/listings') diff --git a/buch/papers/0f1/listings/kettenbruchRekursion.c b/buch/papers/0f1/listings/kettenbruchRekursion.c index 143683f..3caaf43 100644 --- a/buch/papers/0f1/listings/kettenbruchRekursion.c +++ b/buch/papers/0f1/listings/kettenbruchRekursion.c @@ -17,11 +17,11 @@ static double fractionIter0f1(const double c, const double z, unsigned int k) { abk = z / (k * ((k - 1) + c)); //abk = ak, bk - a = k > 1 ? (1 + abk) : 1; //a0, a1 - b = k > 1 ? -abk : abk; //b1 + a = k > 1 ? (1 + abk) : 1; //a0, a1 + b = k > 1 ? -abk : abk; //b1 - temp = b / (a + temp); ////bk / (ak + last result) + temp = b / (a + temp); //bk / (ak + last result) } - return a + temp; //a0 + temp + return a + temp; //a0 + temp } \ No newline at end of file diff --git a/buch/papers/0f1/listings/potenzreihe.c b/buch/papers/0f1/listings/potenzreihe.c index 3eb9b86..23fdfea 100644 --- a/buch/papers/0f1/listings/potenzreihe.c +++ b/buch/papers/0f1/listings/potenzreihe.c @@ -51,18 +51,18 @@ static double fac(int n) /** * @brief Calculates the Hypergeometric Function 0F1(;b;z) - * @param b0 in 0F1(;b0;z) - * @param z in 0F1(;b0;z) + * @param c in 0F1(;c;z) + * @param z in 0F1(;c;z) * @param n number of itertions (precision) * @return Result */ -static double powerseries(const double b, const double z, unsigned int n) +static double powerseries(const double c, const double z, unsigned int n) { double temp = 0.0; for (unsigned int k = 0; k < n; ++k) { - temp += pow(z, k) / (factorial(k) * pochhammer(b, k)); + temp += pow(z, k) / (factorial(k) * pochhammer(c, k)); } return temp; -- cgit v1.2.1