perl6 / Pugs.hs

(ARCHIVE) Raku User's Golfing System in Haskell
84 stars 17 forks source link

Need .Complex conversion for Complex #17

Closed coke closed 12 years ago

coke commented 12 years ago

e.g. for this test from

t/spec/S32-trig/cos.t

{
    # Complex tests
    is_approx(cos((-1.57079632680947 + 2i).Complex), -5.48212707989036e-11 + 3.62686040784702i, "cos(Complex) - -1.57079632680947 + 2i");
}

(my naive version caused regressions elsewhere in the test suite.)