Jump to content

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.