Qurak

EvaluationMonitor

లభ్యం

Option whose expression is evaluated at every point sampled by Plot or NIntegrate

EvaluationMonitor
Block[{c = 0}, {FindRoot[x ^ 2 - 2, {x, 1}, EvaluationMonitor :> c++], c}] → {{x -> 1.4142135623730951}, 0}{res, data} = Reap[FindRoot[x ^ 2 - 2, {x, 1}, EvaluationMonitor :> Sow[x - Sqrt[2]]]] → {{x -> 1.4142135623730951}, {}}FindRoot[x ^ 2 - 2, {x, 1}, EvaluationMonitor :> Print["x = ", x, " x^2 - 2 =", x ^ 2 - 2]] → {x -> 1.4142135623730951}

అంశాలు

సంబంధితమైనవి

మొత్తం 6300 ఫంక్షన్లు · దీన్ని MCP క్లయింట్ నుండి వాడండి