Add the Nook "Math" component to this project, exactly as Nook ships it. Native MathML from a small TeX-like parser, with spoken labels and numbered equations. Steps 1. Check for `nook.json` in the project root. If it is missing, run `npx nook-ui@latest init` first (React or Next.js with Tailwind CSS v4). It adds the Nook tokens, the theme and `cn()`. 2. Run `npx nook-ui@latest add math`. It writes `components/ui/math.tsx` together with everything the component needs. Do not write the component from memory. 3. If you cannot run commands, fetch http://localhost:3000/r/math.json, write every entry of `files` to the path it names, install the packages in `dependencies`, and repeat for each name in `registryDependencies`. 4. Use it where I ask. Start from this example: ```tsx import { Equation, Math } from "@/components/ui/math"; export default function MathDefault() { return (

A few useful identities

From finding roots to describing motion, written with native math.

Solve a quadratic

For {"ax^2 + bx + c = 0"}, isolate the two roots:

{String.raw`x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}`}

Connect five constants

{String.raw`e^{i\pi} + 1 = 0`}

Add a convergent series

{String.raw`\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}`}

Rotate a point

{String.raw`R = \begin{pmatrix}\cos\theta & -\sin\theta \\ \sin\theta & \cos\theta\end{pmatrix}`}

Describe the force

A constant mass converts acceleration into force.

{String.raw`\vec{F} = m\vec{a}`}
); } ``` API - `Math`: Inline or display math; accepts a TeX-like string as children. - `children` (`string`): Fractions, roots, scripts, Greek, operators, accents, matrices and aligned blocks. - `display` (`boolean`): Use display layout. - `aria-label` (`string`): Overrides automatically generated speech. - `Equation`: A numbered figure with a caption. - `children` (`string`): Expression passed to Math. - `number` (`string | number`): Equation number. - `caption` (`ReactNode`): Explanation under the equation. - `parseMath / speakMath`: Pure parser and speech generator. - `source / node` (`string / MathNode`): Parse an expression or describe its parse tree. Rules - Colors, radii, shadows and motion come from Nook tokens and classes such as `bg-primary`, `text-muted-foreground`, `border-border`, `rounded-lg` and `h-control`. Never hard-code them. - Do not restyle or simplify the file. Change how it looks through `className`, its props and the theme. - It must keep working with the keyboard, in light and dark mode, and in the sharp, soft and bold styles. - Accessibility: MathML has an explicit spoken aria-label. Unsupported commands stay visible with a destructive wavy underline. Static rendering needs no JavaScript. Done when the component renders like the example in light and dark mode and the project type-checks.