diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-04-03 22:18:48 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-11-10 18:03:22 +0100 |
commit | 476583c90a47cad62f992ab0b845ebf2897cb47d (patch) | |
tree | c3742b376e852cc34b3bcfe052fd7aa1acbc09f5 /Scala/sandbox/sqrt.scala | |
parent | 545c03ac4981737594d7638b7a925d1881a74cdc (diff) | |
download | coursera-476583c90a47cad62f992ab0b845ebf2897cb47d.zip coursera-476583c90a47cad62f992ab0b845ebf2897cb47d.tar.gz |
Scala : cleanup, Scala : add sumCurry
Diffstat (limited to 'Scala/sandbox/sqrt.scala')
-rw-r--r-- | Scala/sandbox/sqrt.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Scala/sandbox/sqrt.scala b/Scala/sandbox/sqrt.scala index 2544425..c76ee00 100644 --- a/Scala/sandbox/sqrt.scala +++ b/Scala/sandbox/sqrt.scala @@ -18,11 +18,13 @@ object Sqrt { sqrtIter(1.0) } - def run = + def run = { + println("Sqrt") println(sqrt(2)) println(sqrt(0.001)) println(sqrt(0.1e-20)) println(sqrt(1.0e20)) println(sqrt(1.0e50)) + } } |