From 04e8d14d40b506a26899b1a364a276c93446053e Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Wed, 6 Nov 2019 16:51:12 +1100 Subject: [PATCH] Add doc/glossary.md --- doc/glossary.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 doc/glossary.md diff --git a/doc/glossary.md b/doc/glossary.md new file mode 100644 index 00000000..2d4ab392 --- /dev/null +++ b/doc/glossary.md @@ -0,0 +1,21 @@ +# Glossary + +#### Arithmetic + +Addition `(x + y)`, multiplication `(x * y)`, etc. + +#### Interval Arithmetic + +See the [interval arithmetic](/doc/note/interval-arithmetic.md) note. + +#### Modular Arithmetic + +Arithmetic that wraps around at a certain modulus, such as `256` for the +`base.u8` type. For example, if `x` is a `base.u8` with value `200`, then `(x + +70)` has value `270`, but `(x ~mod+ 70)` has value `14`. + +#### Saturating Arithmetic + +Arithmetic that stops at certain bounds, such as `0` and `255` for the +`base.u8` type. For example, if `x` is a `base.u8` with value `200`, then `(x + +70)` has value `270`, but `(x ~sat+ 70)` has value `255`.