aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/0f1/listings/potenzreihe.c
diff options
context:
space:
mode:
authorFabian <@>2022-07-27 13:08:39 +0200
committerFabian <@>2022-07-27 13:08:39 +0200
commit220b382cf4b7019b199c3023ddab73ba2658e27a (patch)
tree0da0ffe25b8ed47ab8dafc606112d78956d7ab16 /buch/papers/0f1/listings/potenzreihe.c
parent0f1, Code ueberarbeitet (diff)
downloadSeminarSpezielleFunktionen-220b382cf4b7019b199c3023ddab73ba2658e27a.tar.gz
SeminarSpezielleFunktionen-220b382cf4b7019b199c3023ddab73ba2658e27a.zip
0f1, bilder
Diffstat (limited to '')
-rw-r--r--buch/papers/0f1/listings/potenzreihe.c8
1 files changed, 4 insertions, 4 deletions
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;