Recently, I wrote a post about finding the gcd and lcm with C: http://knowledge-aholic.blogspot.com/2009/11/greatest-common-divisor-and-least.html
Since then, I have started Haskell and here is how implemented the "same" functions with Haskell (note that with Haskell, I have to use recursion to find the gcd) :
Saturday, November 14, 2009
Comments

Post a new comment
Comments by IntenseDebate
Reply as a Guest, or login:
Go back
Connected as (Logout)
Not displayed publicly.
Connected as (Logout)
Not displayed publicly.
Posting anonymously.
Greatest Common Divisor and Least Common Multiple functions in Haskell
2009-11-14T15:56:00+01:00
Andreas Grech
Haskell|Mathematics|
Subscribe to:
Post Comments (Atom)