获取 NIntegrate 中的误差

f[x_] := 1 + Sin[x];
exact = Integrate[f[x], {x, 0, 2 Pi}];
res = NIntegrate[f[x], {x, 0, 2 Pi}, IntegrationMonitor :> ((error = Through[#1@"Error"]) &)]



posted @ 2017-02-27 14:46  F.Feng  阅读(202)  评论(0编辑  收藏  举报