diff options
| author | Taylan Kammer <taylan.kammer@gmail.com> | 2025-12-26 06:34:32 +0100 |
|---|---|---|
| committer | Taylan Kammer <taylan.kammer@gmail.com> | 2025-12-26 07:04:53 +0100 |
| commit | f93437d8d54e26c64a88e4136e38f6a796d7fd8c (patch) | |
| tree | 6322d0168ae2bfbb49253c03a8b962041d13b7a8 /notes/250329-numbers.md | |
| parent | 69a9d657af41e52223e32e294f182400e0adb384 (diff) | |
Rename notes to add dates and fix index.
Diffstat (limited to 'notes/250329-numbers.md')
| -rw-r--r-- | notes/250329-numbers.md | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/notes/250329-numbers.md b/notes/250329-numbers.md new file mode 100644 index 0000000..6507a67 --- /dev/null +++ b/notes/250329-numbers.md @@ -0,0 +1,45 @@ + +exacts: + + uint : 0...n + + sint : -n...-1 | uint + + ratn : ( p: sint, q: sint ) + + comp : ( r: ratn, i: ratn ) + + +inexacts: + + double : ieee754 double with +inf, -inf, +nan, -nan + + cmp128 : ( r: double , i: double ) + + +exact operations: + + uint + uint = uint + + sint + uint = sint + + ratn + uint = ratn [ ratn + ( p = uint , q = 0 ) ] + + ratn + sint = ratn [ ratn + ( p = sint , q = 0 ) ] + + ratn + ratn = ratn + + comp + uint = comp [ comp + ( r = ( p = uint , q = 0 ) , i = 0 ) ] + + comp + sint = comp [ comp + ( r = ( p = sint , q = 0 ) , i = 0 ) ] + + comp + ratn = comp [ comp + ( r = ratn , i = 0 ) ] + + comp + comp = comp + + +inexact operations: + + double + double = double + + cmp128 + double = cmp128 [ cmp128 + ( r = double , i = 0 ) ] |
