aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/math/number/complex.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/math/number/complex.lux')
-rw-r--r--stdlib/source/library/lux/math/number/complex.lux7
1 files changed, 1 insertions, 6 deletions
diff --git a/stdlib/source/library/lux/math/number/complex.lux b/stdlib/source/library/lux/math/number/complex.lux
index d26544c0b..324b84d43 100644
--- a/stdlib/source/library/lux/math/number/complex.lux
+++ b/stdlib/source/library/lux/math/number/complex.lux
@@ -1,5 +1,4 @@
(.module:
- {#.doc "Complex arithmetic."}
[library
[lux #*
["." math]
@@ -24,16 +23,11 @@
["." int]]]]])
(type: .public Complex
- {#.doc (example "A complex number.")}
{#real Frac
#imaginary Frac})
(syntax: .public (complex [real <code>.any
?imaginary (<>.maybe <code>.any)])
- {#.doc (example "Complex literals."
- (complex real imaginary)
- "The imaginary part can be omitted if it's +0.0."
- (complex real))}
(in (list (` {#..real (~ real)
#..imaginary (~ (maybe.else (' +0.0) ?imaginary))}))))
@@ -50,6 +44,7 @@
(..complex +0.0 +0.0))
(def: .public (not_a_number? complex)
+ (-> Complex Bit)
(or (f.not_a_number? (value@ #real complex))
(f.not_a_number? (value@ #imaginary complex))))