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