回答編集履歴
1
追記
test
CHANGED
@@ -17,3 +17,19 @@
|
|
17
17
|
|
18
18
|
|
19
19
|
> printf("[%d] err=%f exp(x)=%f taylor(x,n)=%f\n", n, err, exp(x), taylor(x,n));
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
---
|
24
|
+
|
25
|
+
【追記】
|
26
|
+
|
27
|
+
`fctrl(n)`のところで警告がでてましたのでtaylor.cに#include"mylib.h"を補なってます。
|
28
|
+
|
29
|
+
この#include無しの場合、コンパイラは`int fctrl(int n)`と解釈している筈なので、そこで落ちたのかも知れません。
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|