diff --git a/basis/math/complex/complex-tests.factor b/basis/math/complex/complex-tests.factor index 4b0481eca1..f85ec49f81 100644 --- a/basis/math/complex/complex-tests.factor +++ b/basis/math/complex/complex-tests.factor @@ -70,4 +70,7 @@ IN: math.complex.tests [ ] [ C{ 1 4 } coth drop ] unit-test [ ] [ C{ 1 4 } cot drop ] unit-test +[ t ] [ 0.0 pi rect> exp C{ -1 0 } 1.0e-7 ~ ] unit-test +[ t ] [ 0 pi rect> exp C{ -1 0 } 1.0e-7 ~ ] unit-test + [ "C{ 1/2 2/3 }" ] [ C{ 1/2 2/3 } unparse ] unit-test diff --git a/basis/math/functions/functions.factor b/basis/math/functions/functions.factor index d91b4b6b92..a1466dd22c 100644 --- a/basis/math/functions/functions.factor +++ b/basis/math/functions/functions.factor @@ -1,4 +1,4 @@ -! Copyright (C) 2004, 2008 Slava Pestov. +! Copyright (C) 2004, 2010 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: math kernel math.constants math.private math.bits math.libm combinators math.order sequences ; @@ -62,7 +62,7 @@ M: float exp fexp ; inline M: real exp >float exp ; inline -M: complex exp >rect swap fexp swap polar> ; inline +M: complex exp >rect swap exp swap polar> ; inline