
15 Oct
2006
15 Oct
'06
6:50 p.m.
Vraj Mohan wrote:
This works for several examples that I tried out but goes into an infinite loop for my_sqrt 96. How do I go about debugging this code in GHC or Hugs?
(The equivalent code is well-behaved on MIT Scheme)
There was some excellent advice in the other responses, but I thought it worth mentioning that your Haskell code converges if you step up from Float -> Float to Double -> Double.