aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/math/complex.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/math/complex.lux')
-rw-r--r--stdlib/source/lux/math/complex.lux8
1 files changed, 6 insertions, 2 deletions
diff --git a/stdlib/source/lux/math/complex.lux b/stdlib/source/lux/math/complex.lux
index 1da82b290..9666abdab 100644
--- a/stdlib/source/lux/math/complex.lux
+++ b/stdlib/source/lux/math/complex.lux
@@ -3,7 +3,7 @@
## If a copy of the MPL was not distributed with this file,
## You can obtain one at http://mozilla.org/MPL/2.0/.
-(;module:
+(;module: {#;doc "Complex arithmetic."}
lux
(lux [math]
(control eq
@@ -29,8 +29,12 @@
#imaginary Real})
(syntax: #export (complex real [?imaginary (s;opt s;any)])
+ {#;doc (doc "Complex literals."
+ (complex real imaginary)
+ "The imaginary part can be omitted if it's 0."
+ (complex real))}
(wrap (list (` {#;;real (~ real)
- #;;imaginary (~ (default (` 0.0)
+ #;;imaginary (~ (default (' 0.0)
?imaginary))}))))
(def: #export i Complex (complex 0.0 1.0))