News for hackers. Stuff that matters.
Re:Can your programming language do this? by gregwebs on Wednesday July 08, 2009 @09:25PM (#695022)
haskell list comprehension

entropy x = - sum [p i * (log . p) i | i <- [1..x]]

There are no comments on this comment yet.