
11 Jul
2005
11 Jul
'05
12:06 p.m.
Thanks for your reply, i just simply removed the first line and it works, but i dont understand why 1/x is not Float.
Try this:
sumHam :: Integer -> Float sumHam n = sum [1.0/(fromIntegral x) | x<-[-1..n]]
-- Andy
_________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://messenger.msn.co.uk