diff options
author | Eduardo Julian | 2021-08-23 02:30:53 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-08-23 02:30:53 -0400 |
commit | ec1f31b5a1492d5e0ab260397291d4449483bbd9 (patch) | |
tree | c730b4ca89af366779b0ad0f46fae705b5c2bcbc /stdlib/source/library/lux/math/number/complex.lux | |
parent | 1ea83ecadccc5adee1bdb35bd11527c3982c015e (diff) |
The Python compiler can now be compiled by the new JVM compiler.
Diffstat (limited to 'stdlib/source/library/lux/math/number/complex.lux')
-rw-r--r-- | stdlib/source/library/lux/math/number/complex.lux | 7 |
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)))) |