Numeric root finder.
แตกต่างจากเอกสารอ้างอิง .wl: `FindRoot` options and damping schedule
ตรวจสอบได้อย่างอิสระ: คำตอบของฟังก์ชันนี้ถูกหาใหม่ด้วยเส้นทางอื่นแล้วนำมาเปรียบเทียบ - เวิร์กเบนช์และเครื่องมือ verify ทำสิ่งนี้โดยอัตโนมัติ ดังนั้นคำตอบที่ผิดจึงถูกจับได้แทนที่จะเชื่อถือ ประวัติ →
FindRoot[f, {x, x0}]
FindRoot[lhs == rhs, {x, x0}]
FindRoot[{f1, f2, …}, {{x, x0}, {y, y0}, …}]
FindRoot[{eqn1, eqn2, …}, {{x, x0}, {y, y0}, …}]
FindRoot[Cos[x] == x, {x, 1}]
→ {x -> 0.7390851332151607}FindRoot[Exp[x] - 1000, {x, 1}]
→ {x -> 6.907755278982137}FindRoot[x^2 - 2, {x, 1}, MaxIterations -> 2]
→
FindRoot::cvmit: Failed to converge to the requested accuracy or precision within 2 iterations.
{x -> 1.4166666666666667}FindRoot[x^2 - 2, {x, 1}, MaxIterations -> 3]
→
FindRoot::cvmit: Failed to converge to the requested accuracy or precision within 3 iterations.
{x -> 1.4142156862745099}FindRoot[x^2 - 2, {x, 1}, MaxIterations -> 0]
→
FindRoot::ioppfa: The value of the option MaxIterations -> 0 should be a positive integer, Infinity or Automatic\. (regex)
.* (regex*)
FindRoot[x^2 - 2, {x, 1}, MaxIterations -> 0]FindRoot[x^2 + 1, {x, 1}]
→
FindRoot::jsing: Encountered a singular Jacobian at the point {x} = {0.}. Try perturbing the initial point(s).
{x -> 0.}FindRoot[Max[x, 2 x] - 6, {x, 1}]
→ {x -> 3.}- AccuracyGoal — default Automatic
- EvaluationMonitor — default None
- Jacobian — default Automatic
- MaxIterations — default 100
- PrecisionGoal — default Automatic
- StepMonitor — default None
- WorkingPrecision — default MachinePrecision