Commit 3466c28a by Jim Newton

### white space and comment

parent d2310b16
 ... @@ -2,7 +2,6 @@ import scala.math._ ... @@ -2,7 +2,6 @@ import scala.math._ // find a root of the given function within the given range // find a root of the given function within the given range def binSearch(left:Double,right:Double,f:Double=>Double,epsilon:Double,maxDepth:Int):Option[Double] = { def binSearch(left:Double,right:Double,f:Double=>Double,epsilon:Double,maxDepth:Int):Option[Double] = { def recur(left:Double,right:Double,depth:Int):Option[Double] = { def recur(left:Double,right:Double,depth:Int):Option[Double] = { val m = (left + right) / 2 val m = (left + right) / 2 val fm = f(m) val fm = f(m) ... ...
 ... @@ -13,6 +13,7 @@ limit4(cos,0.1,0.0001,0.0) ... @@ -13,6 +13,7 @@ limit4(cos,0.1,0.0001,0.0) limit4(sin,0.1,0.0001,0.0) limit4(sin,0.1,0.0001,0.0) limit4(cos,0.1,0.00001,Pi/4) limit4(cos,0.1,0.00001,Pi/4) // function which returns a function def limit(dx: Double, dy: Double) = { def limit(dx: Double, dy: Double) = { limit4(_,dx,dy,_) limit4(_,dx,dy,_) } } ... ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!