Greedy algorithm for Egyptian fractions: Difference between revisions

Added link to numberphile video
m (Minor edit to C++ code)
(Added link to numberphile video)
 
(One intermediate revision by one other user not shown)
Line 41:
;Also see:
*   Wolfram MathWorld™ entry: [http://mathworld.wolfram.com/EgyptianFraction.html Egyptian fraction]
*   Numberphile YouTube video: [https://youtu.be/aVUUbNbQkbQ Egyptian Fractions and the Greedy Algorithm]
<br><br>
 
Line 3,768 ⟶ 3,769:
{{libheader|Wren-big}}
We use the BigRat class in the above module to represent arbitrary size fractions.
<syntaxhighlight lang="ecmascriptwren">import "./big" for BigInt, BigRat
 
var toEgyptianHelper // recursive
1,466

edits