diff options
author | Andreas Rumpf <andreas@andreas-desktop> | 2010-03-20 01:07:34 +0100 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-desktop> | 2010-03-20 01:07:34 +0100 |
commit | c5d8a5c1da9618d65ff08cb0ab6b084e07493b49 (patch) | |
tree | 558f4e7acd87dff73965f06827bcee284b639844 /lib/pure/complex.nim | |
parent | 33fbf7fd03145d1de6023edee9c002aec982ffc7 (diff) | |
download | Nim-c5d8a5c1da9618d65ff08cb0ab6b084e07493b49.tar.gz |
Bugfix: empty echo statement
Diffstat (limited to 'lib/pure/complex.nim')
-rwxr-xr-x | lib/pure/complex.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/complex.nim b/lib/pure/complex.nim index f50ff4bd0..f597a09e1 100755 --- a/lib/pure/complex.nim +++ b/lib/pure/complex.nim @@ -97,7 +97,7 @@ proc sqrt*(z: TComplex): TComplex = w = sqrt(y) * sqrt(0.5 * (r + sqrt(1.0 + r * r))) if z.re >= 0.0: result.re = w - result.im = z.im / (w * 2) + result.im = z.im / (w * 2.0) else: if z.im >= 0.0: result.im = w else: result.im = -w |