Fix circularity
parent
4c0f2cc3f5
commit
fed799a32c
|
@ -1,9 +1,12 @@
|
|||
! Copyright (C) 2004, 2008 Slava Pestov.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: math kernel math.constants math.private
|
||||
math.libm combinators math.order math.ratios sequences ;
|
||||
math.libm combinators math.order sequences ;
|
||||
IN: math.functions
|
||||
|
||||
: >fraction ( a/b -- a b )
|
||||
[ numerator ] [ denominator ] bi ; inline
|
||||
|
||||
<PRIVATE
|
||||
|
||||
: (rect>) ( x y -- z )
|
||||
|
|
|
@ -3,9 +3,6 @@
|
|||
USING: accessors kernel kernel.private math math.functions math.private ;
|
||||
IN: math.ratios
|
||||
|
||||
: >fraction ( a/b -- a b )
|
||||
dup numerator swap denominator ; inline
|
||||
|
||||
: 2>fraction ( a/b c/d -- a c b d )
|
||||
[ >fraction ] bi@ swapd ; inline
|
||||
|
||||
|
|
Loading…
Reference in New Issue