ZIP 317: add `min` and `floor` to Notation section.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2022-12-08 02:39:30 +00:00 committed by Deirdre Connolly
parent 91c4c89eaa
commit c7c1c22da0
2 changed files with 21 additions and 5 deletions

View File

@ -46,15 +46,25 @@ Pull-Request: &lt;<a href="https://github.com/zcash/zips/pull/631">https://githu
<section id="specification"><h2><span class="section-heading">Specification</span><span class="section-anchor"> <a rel="bookmark" href="#specification"><img width="24" height="24" class="section-anchor" src="assets/images/section-anchor.png" alt=""></a></span></h2>
<section id="notation"><h3><span class="section-heading">Notation</span><span class="section-anchor"> <a rel="bookmark" href="#notation"><img width="24" height="24" class="section-anchor" src="assets/images/section-anchor.png" alt=""></a></span></h3>
<p>Let
<span class="math">\(\mathsf{min}(a, b)\)</span>
be the lesser of
<span class="math">\(a\)</span>
and
<span class="math">\(b\!\)</span>
. <br/> Let
<span class="math">\(\mathsf{max}(a, b)\)</span>
be the greater of
<span class="math">\(a\)</span>
and
<span class="math">\(b\)</span>
. Let
<span class="math">\(b\!\)</span>
. <br/> Let
<span class="math">\(\mathsf{floor}(x)\)</span>
be the largest integer
<span class="math">\(\leq x\!\)</span>
. <br/> Let
<span class="math">\(\mathsf{ceiling}(x)\)</span>
be the smallest integer
<span class="math">\(\geq x\)</span>
<span class="math">\(\geq x\!\)</span>
.</p>
</section>
<section id="fee-calculation"><h3><span class="section-heading">Fee calculation</span><span class="section-anchor"> <a rel="bookmark" href="#fee-calculation"><img width="24" height="24" class="section-anchor" src="assets/images/section-anchor.png" alt=""></a></span></h3>

View File

@ -82,8 +82,14 @@ Specification
Notation
--------
Let :math:`\mathsf{max}(a, b)` be the greater of :math:`a` and :math:`b`.
Let :math:`\mathsf{ceiling}(x)` be the smallest integer :math:`\geq x`.
.. |br| raw:: html
<br/>
Let :math:`\mathsf{min}(a, b)` be the lesser of :math:`a` and :math:`b\!`. |br|
Let :math:`\mathsf{max}(a, b)` be the greater of :math:`a` and :math:`b\!`. |br|
Let :math:`\mathsf{floor}(x)` be the largest integer :math:`\leq x\!`. |br|
Let :math:`\mathsf{ceiling}(x)` be the smallest integer :math:`\geq x\!`.
Fee calculation
---------------