Rewrite patterns#
- derivative-two-args
\derivative{#1}{#2}\dv{#1}{#2} - derivative-star
\derivative*{#1}{#2}\dv*{#1}{#2} - derivative-order
\derivative[#1]{#2}{#3}\dv[#1]{#2}{#3} - derivative-single-arg
\derivative{#1}\dv{#1}
Examples#
Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.
dv alias embedded#
Rendering verified with the declared packages.
derivative field alias#
Rendering verified with the declared packages.
derivative star alias#
Rendering verified with the declared packages.
derivative order alias#
Rendering verified with the declared packages.
derivative single arg alias#
Rendering verified with the declared packages.
Related rules#
Downstream rules#
physics/dv-to-frac-dExpand dv forms to explicit d-based derivative fractions.
Same family#
physics/functional-derivative-to-fdvCollapse long functional derivative names to the fdv 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: derivative and dv 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/derivative-to-dv"])new TransformEngine({ profile: 'corpus', disableRules: ['physics/derivative-to-dv'] })