Commit 5a897cf
docs: fix initialization tutorial example to use D(x) instead of y
The documentation example for a well-conditioned initialization system was
using `[x => 1, y => 0.0, g => 1]` which results in a structurally singular
system (returning NonlinearLeastSquaresProblem).
Changed to `[x => 1, D(x) => 0.0, g => 1]` with `guesses = [λ => 1, y => 0]`
which properly specifies the derivative and results in a well-conditioned
NonlinearProblem (actually SCCNonlinearProblem) as intended.
Also fixed "NonlinearSystem" -> "NonlinearProblem" which is the correct type.
Fixes #4024
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 80d2645 commit 5a897cf
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
481 | 481 | | |
482 | 482 | | |
483 | | - | |
| 483 | + | |
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| |||
0 commit comments