diff --git a/extra/math/erato/erato.factor b/extra/math/erato/erato.factor index 894905e405..7f9262380c 100644 --- a/extra/math/erato/erato.factor +++ b/extra/math/erato/erato.factor @@ -15,7 +15,7 @@ TUPLE: erato limit bits latest ; [ ind ] [ bits>> ] bi* nth ; inline : indices ( n erato -- range ) - limit>> ind over 3 * ind swap rot ; + limit>> ind over 3 * ind spin ; : mark-multiples ( n erato -- ) 2dup [ sq ] [ limit>> ] bi* <= [ diff --git a/extra/math/finance/finance.factor b/extra/math/finance/finance.factor index f006e6aee7..e02f4be624 100644 --- a/extra/math/finance/finance.factor +++ b/extra/math/finance/finance.factor @@ -7,7 +7,7 @@ IN: math.finance : ema ( seq n -- newseq ) - a swap unclip [ [ dup ] 2dip swap rot weighted ] accumulate 2nip ; + a swap unclip [ [ dup ] 2dip spin weighted ] accumulate 2nip ; : sma ( seq n -- newseq ) clump [ mean ] map ;