diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2008-08-23 11:16:44 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2008-08-23 11:16:44 +0200 |
commit | 07d5a8085bbcc21a1d9d06a2976ecc00e9c8d55b (patch) | |
tree | b07a53afeb56f4bba917c1a3a843f48dd25b62be /lib/complex.nim | |
parent | 916c25f9a70b68eb7a5e2c45d7cc2e10c6e3a525 (diff) | |
download | Nim-07d5a8085bbcc21a1d9d06a2976ecc00e9c8d55b.tar.gz |
too many changes to list
Diffstat (limited to 'lib/complex.nim')
-rw-r--r-- | lib/complex.nim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/complex.nim b/lib/complex.nim index b5724e48f..6f0f568a3 100644 --- a/lib/complex.nim +++ b/lib/complex.nim @@ -19,10 +19,8 @@ import math type - TComplex* = record ## a complex number, consisting of a real and an - ## imaginary part - re*: float ## real part of the complex number - im*: float ## imarginary part of the complex number + TComplex* = tuple[re, im: float] + ## a complex number, consisting of a real and an imaginary part proc `==` *(x, y: TComplex): bool = ## Compare two complex numbers `x` and `y` for equality. |