Greedy algorithm for Egyptian fractions: Difference between revisions
Greedy algorithm for Egyptian fractions (view source)
Revision as of 17:27, 2 October 2018
, 5 years ago→{{header|Haskell}}
m (→{{header|Haskell}}: Normalized orthography (egipt -> egypt), specified imports) |
|||
Line 486:
=={{header|Haskell}}==
<lang haskell>import Data.Ratio
egyptianFraction :: Integral a => Ratio a -> [Ratio a]
|