diff options
author | Robert Persson <r.k.persson@gmail.com> | 2013-07-02 20:55:27 +0200 |
---|---|---|
committer | Robert Persson <r.k.persson@gmail.com> | 2013-07-02 20:55:27 +0200 |
commit | d1a90c6ec6c64f3fcdf39da2e54ffd67b70339c4 (patch) | |
tree | e67b55a8c10aad953262bb9861b6f8ac6d16188d /lib/pure/poly.nim | |
parent | 85dbc2d3065e50f7abeaee733ef309124f927688 (diff) | |
download | Nim-d1a90c6ec6c64f3fcdf39da2e54ffd67b70339c4.tar.gz |
Cleanup of poly an numeric modules
Removed some test code
Diffstat (limited to 'lib/pure/poly.nim')
-rw-r--r-- | lib/pure/poly.nim | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/pure/poly.nim b/lib/pure/poly.nim index 8333398e5..e90bc96e8 100644 --- a/lib/pure/poly.nim +++ b/lib/pure/poly.nim @@ -371,41 +371,3 @@ proc roots*(p:TPoly,tol=1.0e-9,zerotol=1.0e-6,mergetol=1.0e-12):seq[float]= addRoot(p,res,x0,x1,tol,zerotol,mergetol) return res - -when isMainModule: - var ply=initPoly(1.0,-6.0,5.0,2.0) - var ply2 =initPoly(4.0,5.0,6.0) - - echo ply - echo ply2 - echo ply2-ply - - - - - var rts=ply.roots - if rts!=nil: - for i in rts: - echo formatFloat(i,ffDefault,0) - - - discard readLine(stdin) - - - - - - - - - - - - - - - - - - - \ No newline at end of file |