Qurak

N integrate integration strategies introduction

教程 2 步,在同一个会话中按顺序运行。每一步都在引擎上执行过,下面的输出就是它实际产生的。

第 1 步
NIntegrate[(1/Sqrt[Abs[x - 1]]), {x, 0, 2}]
输出
7781.165464676946
第 2 步
points = Reap[NIntegrate[(1/Sqrt[Abs[x - 1]]), {x, 0, 2}, EvaluationMonitor :> Sow[x]]][[2, 1]];
Graphics[{PointSize[0.006], Point /@ N@Transpose[{points, Range[Length[points]]}]}, PlotRange -> All, AspectRatio -> 1, Axes -> True]
输出
-Graphics-

用到的函数

相关操作示例

全部操作示例 · 函数参考 · 从 MCP 客户端使用