Greedy algorithm for Egyptian fractions: Difference between revisions

m
m (→‎{{header|Haskell}}: Normalized orthography (egipt -> egypt), specified imports)
Line 486:
 
=={{header|Haskell}}==
<lang haskell>import Data.Ratio --(Ratio, (%), denominator, numerator)
 
egyptianFraction :: Integral a => Ratio a -> [Ratio a]
9,659

edits