Stern-Brocot sequence: Difference between revisions
→Python: Composing pure (curried) functions: Slightly simplified expression of the SB function.
(→Python: Composing pure (curried) functions: Updated primitives.) |
(→Python: Composing pure (curried) functions: Slightly simplified expression of the SB function.) |
||
Line 3,939:
import math
import operator
from itertools import
Line 3,948:
def go(xs):
return (
return
|