aboutsummaryrefslogtreecommitdiffstats
path: root/buch/papers/0f1/listings/potenzreihe.c
diff options
context:
space:
mode:
authorAndreas Müller <andreas.mueller@ost.ch>2022-07-25 08:29:02 +0200
committerGitHub <noreply@github.com>2022-07-25 08:29:02 +0200
commit9f5f1b1d0a4389f9d4859fe306924cf0066960b0 (patch)
tree78829db12dd7fc1ec4f50c3d014124934ce9043e /buch/papers/0f1/listings/potenzreihe.c
parentMerge pull request #27 from daHugen/master (diff)
parent0f1, inhalt struktur (diff)
downloadSeminarSpezielleFunktionen-9f5f1b1d0a4389f9d4859fe306924cf0066960b0.tar.gz
SeminarSpezielleFunktionen-9f5f1b1d0a4389f9d4859fe306924cf0066960b0.zip
Merge pull request #28 from f1bi1n/master
0f1, entwurf struktur
Diffstat (limited to '')
-rw-r--r--buch/papers/0f1/listings/potenzreihe.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/buch/papers/0f1/listings/potenzreihe.c b/buch/papers/0f1/listings/potenzreihe.c
new file mode 100644
index 0000000..bfaa0e3
--- /dev/null
+++ b/buch/papers/0f1/listings/potenzreihe.c
@@ -0,0 +1,13 @@
+#include <math.h>
+
+static double powerseries(const double b, 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));
+ }
+
+ return temp;
+} \ No newline at end of file