aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/math/number/rev.lux
blob: 0b629eb7dd8ca144e37f3b5895aa9b8bf0bdd388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
(.require
 [library
  [lux (.except private)
   ["$" documentation]
   [data
    ["[0]" text (.only \n)
     ["%" \\format (.only format)]]]]]
 [\\library
  ["[0]" /]])

(`` (.def .public documentation
      (.List $.Module)
      ($.module /._
                ""
                [($.definition /./1)
                 ($.definition /./2)
                 ($.definition /./4)
                 ($.definition /./8)
                 ($.definition /./16)
                 ($.definition /./32)
                 ($.definition /./64)
                 ($.definition /./128)
                 ($.definition /./256)
                 ($.definition /./512)
                 ($.definition /./1024)
                 ($.definition /./2048)
                 ($.definition /./4096)
                 ($.definition /./%)
                 ($.definition /.frac)
                 ($.definition /.equivalence)
                 ($.definition /.hash)
                 ($.definition /.order)
                 ($.definition /.enum)
                 ($.definition /.interval)
                 ($.definition /.addition)
                 ($.definition /.maximum)
                 ($.definition /.minimum)
                 ($.definition /.binary)
                 ($.definition /.octal)
                 ($.definition /.hex)
                 ($.definition /.decimal)

                 ($.definition /.=
                   "Rev(olution) equivalence."
                   [(= reference sample)])

                 ($.definition /.<
                   "Rev(olution) less-than."
                   [(< reference sample)])

                 ($.definition /.<=
                   "Rev(olution) less-than or equal."
                   [(<= reference sample)])

                 ($.definition /.>
                   "Rev(olution) greater-than."
                   [(> reference sample)])

                 ($.definition /.>=
                   "Rev(olution) greater-than or equal."
                   [(>= reference sample)])

                 (,, (with_template [<name> <doc>]
                       [($.definition <name>
                          <doc>)]

                       [/.min "Rev(olution) minimum."]
                       [/.max "Rev(olution) maximum."]
                       ))

                 (,, (with_template [<name> <doc>]
                       [($.definition <name>
                          <doc>)]

                       [/.+ "Rev(olution) addition."]
                       [/.- "Rev(olution) substraction."]
                       [/.* "Rev(olution) multiplication."]
                       [/./ "Rev(olution) division."]
                       [/.% "Rev(olution) remainder."]
                       [/.ratio "Ratio between two rev(olution)s."]
                       ))

                 ($.definition /.up
                   ""
                   [(up scale subject)])

                 ($.definition /.down
                   ""
                   [(down scale subject)])

                 ($.definition /.reciprocal
                   "Rev(olution) reciprocal of a Nat(ural)."
                   [(reciprocal numerator)])]
                [])))