complex_and_trig#
Series: lecture-python-intro
File:
lectures/complex_and_trig.mdAudit date: 2026-05-28
Categories audited: writing, math, code, figures, references, links, admonitions (JAX out of scope)
Overall score: 6.7 / 10
Priority: MEDIUM
Score breakdown#
Category |
Score |
One-line note |
|---|---|---|
Writing |
6/10 |
Multiple Title Case H2/H3 violations; “## Note: we choose the solution near 0” is mid-content heading. |
Math |
7/10 |
Generally clean; uses |
Code |
8/10 |
Unicode Greek ( |
JAX |
out of scope |
— |
Figures |
5/10 |
|
References |
6/10 |
“Samuelson (1939) {cite}`Samuelson1939`” (line 34) is manual year + citation — should be |
Links |
N/A |
no cross-series links |
Admonitions |
8/10 |
Solutions use |
Issues#
Critical#
None found.
High severity#
W3 — Systematic Title Case in subsection headings. Examples: “### Complex Numbers” (44), “### An Example” (104), “## De Moivre’s Theorem” (160), “## Applications of de Moivre’s Theorem” (178), “### Example 1/2/3” (180, 205, 231), “### Trigonometric Identities” (358), “### Trigonometric Integrals” (421), “### Exercises” (486). Count: 8+ headings.
[qe-fig-007] — Spines hidden with
ax.spines['top'/'right'].set_visible(False)— see lines around the figure on line 143; 3 spine-removal calls.[qe-ref-001] — Manual “Author (Year)” +
{cite}pattern. Example:lectures/complex_and_trig.md:34(“Samuelson (1939) {cite}`Samuelson1939`”). Count: 1 occurrence.
Medium severity#
W3 — “## Note: we choose the solution near 0” (line 306) used as section heading where it appears to be a code comment.
W7 — “de Moivre’s theorem” capitalized inconsistently: “## De Moivre’s Theorem” vs “de Moivre’s theorem states that:” (line 162).
[qe-fig-001] —
figsize=overrides on lines 98, 133, 333. Count: 3 occurrences.[qe-fig-003] —
ax.set_title("Trigonometry of complex numbers", ...)on line 143 outside any exercise/solution context.
Low severity#
W1 — Some longer paragraphs (lines 33–36, 38–41).
[qe-fig-005] — No figures have a
:name:field.
Strengths#
H1 title in Title Case (W2 OK).
alignedinside$$(M12 OK).Bold for definitions (“real part”, “imaginary part”, “modulus”).
Unicode Greek in code (qe-code-002 OK).
{prf:theorem}for de Moivre (qe-admon-004 OK).
Recommended actions#
Convert all H2/H3 headings to sentence case per qe-writing-006.
Convert “Samuelson (1939) {cite}” →
{cite:t}form.Remove
ax.spines[...].set_visible(False)calls per qe-fig-007.Remove
ax.set_titleoutside exercise context (line 143).Remove
figsize=overrides on lines 98, 133, 333.