aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/math/number/frac.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/documentation/lux/math/number/frac.lux')
-rw-r--r--stdlib/source/documentation/lux/math/number/frac.lux313
1 files changed, 144 insertions, 169 deletions
diff --git a/stdlib/source/documentation/lux/math/number/frac.lux b/stdlib/source/documentation/lux/math/number/frac.lux
index 20c5b02bf..9fd4f06ce 100644
--- a/stdlib/source/documentation/lux/math/number/frac.lux
+++ b/stdlib/source/documentation/lux/math/number/frac.lux
@@ -1,7 +1,7 @@
(.require
[library
[lux (.except private)
- ["$" documentation (.only documentation:)]
+ ["$" documentation]
[data
["[0]" text (.only \n)
["%" \\format (.only format)]]]
@@ -10,171 +10,146 @@
[\\library
["[0]" /]])
-(documentation: /.=
- "Frac(tion) equivalence."
- [(= reference sample)])
-
-(documentation: /.<
- "Frac(tion) less-than."
- [(< reference sample)])
-
-(documentation: /.<=
- "Frac(tion) less-than or equal."
- [(<= reference sample)])
-
-(documentation: /.>
- "Frac(tion) greater-than."
- [(> reference sample)])
-
-(documentation: /.>=
- "Frac(tion) greater-than or equal."
- [(>= reference sample)])
-
-(with_template [<name> <doc>]
- [(documentation: <name>
- <doc>)]
-
- [/.+ "Frac(tion) addition."]
- [/.- "Frac(tion) substraction."]
- [/.* "Frac(tion) multiplication."]
- [/./ "Frac(tion) division."]
- [/.% "Frac(tion) remainder."]
- )
-
-(documentation: /./%
- ""
- [(/% param subject)])
-
-(with_template [<name> <doc>]
- [(documentation: <name>
- <doc>)]
-
- [/.min "Frac(tion) minimum."]
- [/.max "Frac(tion) minimum."]
- )
-
-(with_template [<name> <doc>]
- [(documentation: <name>
- <doc>)]
-
- [/.not_a_number "Not a number."]
- [/.positive_infinity "Positive infinity."]
- [/.negative_infinity "Negative infinity."]
- )
-
-(documentation: /.not_a_number?
- "Tests whether a frac is actually not-a-number."
- [(not_a_number? it)])
-
-(documentation: /.approximately?
- ""
- [(approximately? margin_of_error standard value)])
-
-(documentation: /.mod
- ""
- [(mod divisor dividend)])
-
-(documentation: /.e
- "The base of the natural logarithm.")
-
-(documentation: /.pi
- "The ratio of a circle's circumference to its diameter.")
-
-(documentation: /.tau
- "The ratio of a circle's circumference to its radius.")
-
-(documentation: /.pow
- ""
- [(pow param subject)])
-
-(documentation: /.atan_2
- ""
- [(atan_2 x y)])
-
-(documentation: /.log_by
- ""
- [(log_by base it)])
-
-(.def .public documentation
- (.List $.Module)
- ($.module /._
- ""
- [..=
- ..<
- ..<=
- ..>
- ..>=
- ..+
- ..-
- ..*
- ../
- ..%
- ../%
- ..min
- ..max
- ..not_a_number
- ..positive_infinity
- ..negative_infinity
- ..not_a_number?
- ..approximately?
- ..mod
- ($.default /.positive?)
- ($.default /.negative?)
- ($.default /.zero?)
- ($.default /.opposite)
- ($.default /.abs)
- ($.default /.signum)
- ($.default /.nat)
- ($.default /.int)
- ($.default /.rev)
- ($.default /.equivalence)
- ($.default /.order)
- ($.default /.smallest)
- ($.default /.biggest)
- ($.default /.addition)
- ($.default /.multiplication)
- ($.default /.minimum)
- ($.default /.maximum)
- ($.default /.number?)
- ($.default /.decimal)
- ($.default /.bits)
- ($.default /.of_bits)
- ($.default /.binary)
- ($.default /.octal)
- ($.default /.hex)
- ($.default /.hash)
-
- ..e
- ..pi
- ..tau
- ..pow
- ..atan_2
- ..log_by
- ($.default /.cos)
- ($.default /.sin)
- ($.default /.tan)
- ($.default /.acos)
- ($.default /.asin)
- ($.default /.atan)
- ($.default /.exp)
- ($.default /.log)
- ($.default /.ceil)
- ($.default /.floor)
- ($.default /.root_2)
- ($.default /.root_3)
- ($.default /.round)
- ($.default /.factorial)
- ($.default /.hypotenuse)
- ($.default /.sinh)
- ($.default /.csch)
- ($.default /.cosh)
- ($.default /.sech)
- ($.default /.tanh)
- ($.default /.coth)
- ($.default /.asinh)
- ($.default /.acosh)
- ($.default /.atanh)
- ($.default /.acoth)
- ($.default /.asech)
- ($.default /.acsch)]
- []))
+(`` (.def .public documentation
+ (.List $.Module)
+ ($.module /._
+ ""
+ [($.default /.positive?)
+ ($.default /.negative?)
+ ($.default /.zero?)
+ ($.default /.opposite)
+ ($.default /.abs)
+ ($.default /.signum)
+ ($.default /.nat)
+ ($.default /.int)
+ ($.default /.rev)
+ ($.default /.equivalence)
+ ($.default /.order)
+ ($.default /.smallest)
+ ($.default /.biggest)
+ ($.default /.addition)
+ ($.default /.multiplication)
+ ($.default /.minimum)
+ ($.default /.maximum)
+ ($.default /.number?)
+ ($.default /.decimal)
+ ($.default /.bits)
+ ($.default /.of_bits)
+ ($.default /.binary)
+ ($.default /.octal)
+ ($.default /.hex)
+ ($.default /.hash)
+
+ ($.default /.cos)
+ ($.default /.sin)
+ ($.default /.tan)
+ ($.default /.acos)
+ ($.default /.asin)
+ ($.default /.atan)
+ ($.default /.exp)
+ ($.default /.log)
+ ($.default /.ceil)
+ ($.default /.floor)
+ ($.default /.root_2)
+ ($.default /.root_3)
+ ($.default /.round)
+ ($.default /.factorial)
+ ($.default /.hypotenuse)
+ ($.default /.sinh)
+ ($.default /.csch)
+ ($.default /.cosh)
+ ($.default /.sech)
+ ($.default /.tanh)
+ ($.default /.coth)
+ ($.default /.asinh)
+ ($.default /.acosh)
+ ($.default /.atanh)
+ ($.default /.acoth)
+ ($.default /.asech)
+ ($.default /.acsch)
+
+ ($.documentation /.=
+ "Frac(tion) equivalence."
+ [(= reference sample)])
+
+ ($.documentation /.<
+ "Frac(tion) less-than."
+ [(< reference sample)])
+
+ ($.documentation /.<=
+ "Frac(tion) less-than or equal."
+ [(<= reference sample)])
+
+ ($.documentation /.>
+ "Frac(tion) greater-than."
+ [(> reference sample)])
+
+ ($.documentation /.>=
+ "Frac(tion) greater-than or equal."
+ [(>= reference sample)])
+
+ (~~ (with_template [<name> <doc>]
+ [($.documentation <name>
+ <doc>)]
+
+ [/.+ "Frac(tion) addition."]
+ [/.- "Frac(tion) substraction."]
+ [/.* "Frac(tion) multiplication."]
+ [/./ "Frac(tion) division."]
+ [/.% "Frac(tion) remainder."]
+ ))
+
+ ($.documentation /./%
+ ""
+ [(/% param subject)])
+
+ (~~ (with_template [<name> <doc>]
+ [($.documentation <name>
+ <doc>)]
+
+ [/.min "Frac(tion) minimum."]
+ [/.max "Frac(tion) minimum."]
+ ))
+
+ (~~ (with_template [<name> <doc>]
+ [($.documentation <name>
+ <doc>)]
+
+ [/.not_a_number "Not a number."]
+ [/.positive_infinity "Positive infinity."]
+ [/.negative_infinity "Negative infinity."]
+ ))
+
+ ($.documentation /.not_a_number?
+ "Tests whether a frac is actually not-a-number."
+ [(not_a_number? it)])
+
+ ($.documentation /.approximately?
+ ""
+ [(approximately? margin_of_error standard value)])
+
+ ($.documentation /.mod
+ ""
+ [(mod divisor dividend)])
+
+ ($.documentation /.e
+ "The base of the natural logarithm.")
+
+ ($.documentation /.pi
+ "The ratio of a circle's circumference to its diameter.")
+
+ ($.documentation /.tau
+ "The ratio of a circle's circumference to its radius.")
+
+ ($.documentation /.pow
+ ""
+ [(pow param subject)])
+
+ ($.documentation /.atan_2
+ ""
+ [(atan_2 x y)])
+
+ ($.documentation /.log_by
+ ""
+ [(log_by base it)])]
+ [])))