回答編集履歴
1
微修正
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
// maclaurin-s
|
21
|
+
// maclaurin-expansion : Σ(x^k)/k! where k = 0, 1, 2 ... n
|
22
22
|
|
23
23
|
double m(double x, int n) { return n == 0 ? 1.0 : m(x, n-1) + p(x, n)/f(n); }
|
24
24
|
|