Skip to content

[newton_method] Some updates - #1073

Open
longye-tian wants to merge 6 commits into
mainfrom
newton_update
Open

longye-tian wants to merge 6 commits into
mainfrom
newton_update

Conversation

@longye-tian

@longye-tian longye-tian commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Hi @jstac
This PR updates the lecture newton_method according to #1063

Best,
Longye

@longye-tian longye-tian self-assigned this Sep 27, 2026
@longye-tian longye-tian added enhancement Improvement to existing material do-not-merge Approved-looking but must not be merged yet (hold / pin) labels Sep 27, 2026
@longye-tian longye-tian linked an issue Sep 27, 2026 that may be closed by this pull request
23 tasks done
@github-actions

github-actions Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-1073--sunny-cactus-210e3e.netlify.app

Commit: 569a5bd

📚 Changed Lectures


Build Info

@longye-tian longye-tian removed the do-not-merge Approved-looking but must not be merged yet (hold / pin) label Sep 27, 2026
@longye-tian
longye-tian marked this pull request as ready for review September 28, 2026 00:29
@mmcky
mmcky requested a balanced review from Copilot October 8, 2026 23:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are limited to one lecture file, and all code renames, the Jacobian correction, and parameter threading were traced and verified to be consistent and correct.

0 open findings

What changed in this PR

This PR revises the newton_method lecture to improve wording, notation, and code clarity/correctness in response to issue #1063. It fits into the QuantEcon intermediate Python lecture series as an educational content and code-quality improvement, with no structural or build changes.

Changes:

  • Wording/notation polish: non-uniqueness phrasing ("a fixed point"/"a zero"), sentence-case headings, := definitions, explicit non-degeneracy conditions (1-g'(x_t)≠0, f'(x_t)≠0, nonsingular Jacobian), clearer per-sentence paragraphs, and corrected initial-vector notation ($k_0^{(i)}$, $p_0^{(i)}$).
  • Code correctness/clarity: fixed the hand-computed Jacobian to use full (Ap)_i row products; computed k_star inside plot_trajectories; parameterized plot_excess_demand with A, b, c via two_good_params; set the zero contour color to black and removed the misleading embedded title.
  • Renamed the multivariate Newton routine to newton_nd (distinct from the scalar newton) and updated all downstream calls; aligned "3,000 goods" prose with the code.
File Description
lectures/​newton_method.md Wording/notation refinements, a corrected hand-coded Jacobian, parameterized plotting, and a newton → newton_nd rename with consistent downstream call updates.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement to existing material

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[newton_method] Some suggestions on code and wording

2 participants