horner directive#
The horner directive renders a Horner (synthetic division) scheme as an SVG figure. It supports step-by-step reveal via the stage option.
Basic usage#
:::{horner}
:p: x^3 + 2x^2 - 3x - 6
:x: 1
:::
Step-by-step reveal#
Use stage to show only the first n steps of the scheme, perfect for classroom walkthroughs:
:::{horner}
:p: x^3 + 2x^2 - 3x - 6
:x: 1
:stage: 2
:::
Options#
Option |
Meaning |
Default |
|---|---|---|
|
Polynomial expression (e.g. |
(required) |
|
Evaluation point / divisor |
(required) |
|
Number of steps to reveal (0 = show all) |
|
|
Enable interactive tutor mode |
off |
|
CSS width |
— |
|
|
— |
|
Extra CSS classes |
— |
|
Stable anchor / reference name |
— |
|
Alt text |
— |
|
Force regeneration |
— |