summary refs log tree commit diff stats
path: root/lib/complex.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/complex.nim')
-rw-r--r--lib/complex.nim6
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.