Rewrite patterns#
- fderivative-two-args
\fderivative{#1}{#2}\fdv{#1}{#2} - fderivative-star
\fderivative*{#1}{#2}\fdv*{#1}{#2} - fderivative-order
\fderivative[#1]{#2}{#3}\fdv[#1]{#2}{#3} - fderivative-single-arg
\fderivative{#1}\fdv{#1} - functionalderivative-two-args
\functionalderivative{#1}{#2}\fdv{#1}{#2} - functionalderivative-star
\functionalderivative*{#1}{#2}\fdv*{#1}{#2} - functionalderivative-order
\functionalderivative[#1]{#2}{#3}\fdv[#1]{#2}{#3} - functionalderivative-single-arg
\functionalderivative{#1}\fdv{#1}
Examples#
Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.
fdv alias stationary action#
Rendering verified with the declared packages.
fderivative short alias#
Rendering verified with the declared packages.
fderivative star alias#
Rendering verified with the declared packages.
fderivative order alias#
Rendering verified with the declared packages.
fderivative single arg alias#
Rendering verified with the declared packages.
functionalderivative star alias#
Rendering verified with the declared packages.
Remaining 2 examples#
Listed as LaTeX source. Hover over, focus, or tap a row to preview the rendering before and after. Each renders the same as its input with the declared packages.
| Example | Before | After this rule |
|---|---|---|
| functionalderivative order alias | \functionalderivative[n]{S}{\phi} | \fdv[n]{S}{\phi} |
| functionalderivative single arg alias | \functionalderivative{\phi} S[\phi] | \fdv{\phi} S[\phi] |
Related rules#
Downstream rules#
physics/fdv-to-frac-deltaExpand fdv forms to explicit delta-based derivative fractions.
Same family#
physics/derivative-to-dvCollapse derivative to the compact dv command.physics/partial-derivative-to-pdvCollapse long partial derivative names to the pdv command.physics/vectorarrow-to-vaCollapse vectorarrow to the short va helper.physics/vectorbold-to-vbCollapse vectorbold to the short vb helper.physics/vectorunit-to-vuCollapse vectorunit to the short vu helper.physics/dv-to-frac-dExpand dv forms to explicit d-based derivative fractions.physics/fdv-to-frac-deltaExpand fdv forms to explicit delta-based derivative fractions.physics/pdv-to-frac-partialExpand pdv forms to explicit partial-derivative fractions.physics/va-to-vec-mathbfCanonicalize va to an explicit vec-wrapped mathbf form.physics/vb-to-mathbfCanonicalize vb to an explicit mathbf wrapper.physics/vu-to-hat-mathbfCanonicalize vu to an explicit hat-wrapped mathbf form.
Notes#
Alias rewrite: fderivative, functionalderivative, and fdv share the same physics Derivative handler and argspec, so star, optional order, and one-argument forms are preserved by renaming the command.
Disable this rule#
TransformEngine(profile="corpus", disable_rules=["physics/functional-derivative-to-fdv"])new TransformEngine({ profile: 'corpus', disableRules: ['physics/functional-derivative-to-fdv'] })