Fix mnestic's bug and remove math.complex.prettyprint hack
parent
62976058ee
commit
d6e7eefde3
|
@ -3,5 +3,3 @@ USING: vocabs vocabs.loader kernel ;
|
||||||
"math.ratios" require
|
"math.ratios" require
|
||||||
"math.floats" require
|
"math.floats" require
|
||||||
"math.complex" require
|
"math.complex" require
|
||||||
|
|
||||||
"prettyprint" vocab [ "math.complex.prettyprint" require ] when
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
! Copyright (C) 2006, 2008 Slava Pestov.
|
! Copyright (C) 2006, 2009 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors kernel kernel.private math math.private
|
USING: accessors kernel kernel.private math math.private
|
||||||
math.libm math.functions arrays math.functions.private sequences
|
math.libm math.functions arrays math.functions.private sequences
|
||||||
|
@ -47,3 +47,9 @@ M: complex sqrt >polar [ fsqrt ] [ 2.0 / ] bi* polar> ;
|
||||||
IN: syntax
|
IN: syntax
|
||||||
|
|
||||||
: C{ \ } [ first2 rect> ] parse-literal ; parsing
|
: C{ \ } [ first2 rect> ] parse-literal ; parsing
|
||||||
|
|
||||||
|
USE: prettyprint.custom
|
||||||
|
|
||||||
|
M: complex pprint* pprint-object ;
|
||||||
|
M: complex pprint-delims drop \ C{ \ } ;
|
||||||
|
M: complex >pprint-sequence >rect 2array ;
|
|
@ -1,8 +0,0 @@
|
||||||
! Copyright (C) 2008 Slava Pestov.
|
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
|
||||||
USING: math math.functions arrays prettyprint.custom kernel ;
|
|
||||||
IN: math.complex.prettyprint
|
|
||||||
|
|
||||||
M: complex pprint* pprint-object ;
|
|
||||||
M: complex pprint-delims drop \ C{ \ } ;
|
|
||||||
M: complex >pprint-sequence >rect 2array ;
|
|
Loading…
Reference in New Issue