Rewrite patterns#
- braced
\eval{#1}#2\left.#1\vphantom{\int}\right|#2 - braced-star
\eval*{#1}#2\left.\smash{#1}\vphantom{\int}\right|#2 - paren
\eval(#1|#2\left(#1\vphantom{\int}\right|#2 - paren-star
\eval*(#1|#2\left(\smash{#1}\vphantom{\int}\right|#2 - bracket
\eval[#1|#2\left[#1\vphantom{\int}\right|#2 - bracket-star
\eval*[#1|#2\left[\smash{#1}\vphantom{\int}\right|#2
Examples#
Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.
Braced eval antiderivative#
Rendering verified with the declared packages.
Braced eval star#
Rendering verified with the declared packages.
Paren eval trig#
Rendering verified with the declared packages.
Paren eval star#
Rendering verified with the declared packages.
Bracket eval point#
Rendering verified with the declared packages.
Bracket eval star#
Rendering verified with the declared packages.
Related rules#
Upstream rules#
physics/evaluated-to-evalCollapse evaluated to the shorter eval helper before eval expansion.
Same family#
base/Big-class-variants-to-BigCollapse \Bigl, \Bigr, \Bigm to \Big.base/Bigg-class-variants-to-BiggCollapse \Biggl, \Biggr, \Biggm to \Bigg.base/big-class-variants-to-bigCollapse \bigl, \bigr, \bigm to \big.base/bigg-class-variants-to-biggCollapse \biggl, \biggr, \biggm to \bigg.base/Big-delimiter-size-dropDrop the fixed delimiter size imposed by \Big.base/Bigg-delimiter-size-dropDrop the fixed delimiter size imposed by \Bigg.base/big-delimiter-size-dropDrop the fixed delimiter size imposed by \big.base/bigg-delimiter-size-dropDrop the fixed delimiter size imposed by \bigg.physics/absolutevalue-to-absCollapse absolutevalue to the shorter abs helper before fence expansion.physics/evaluated-to-evalCollapse evaluated to the shorter eval helper before eval expansion.physics/quantity-to-qtyCollapse quantity to the shorter qty helper.physics/Bqty-to-brace-fenceRewrite Bqty to explicit brace fences.physics/abs-to-vert-fenceRewrite abs to explicit vertical bar fences.physics/bqty-to-bracket-fenceRewrite bqty to explicit bracket fences.physics/norm-to-double-vert-fenceRewrite norm to explicit double-vertical-bar fences.physics/pqty-to-paren-fenceRewrite pqty to explicit parenthesis fences.
Notes#
Merged from eval-braced-expand and eval-paren-expand so cmd:eval has one eliminates owner.
Disable this rule#
TransformEngine(profile="corpus", disable_rules=["physics/eval-expand"])new TransformEngine({ profile: 'corpus', disableRules: ['physics/eval-expand'] })