Greedy algorithm for Egyptian fractions: Difference between revisions
Content added Content deleted
m (Minor edit to C++ code) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 3,768: | Line 3,768: | ||
{{libheader|Wren-big}} |
{{libheader|Wren-big}} |
||
We use the BigRat class in the above module to represent arbitrary size fractions. |
We use the BigRat class in the above module to represent arbitrary size fractions. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "./big" for BigInt, BigRat |
||
var toEgyptianHelper // recursive |
var toEgyptianHelper // recursive |