Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fudge power.t for niecza
  • Loading branch information
pmurias committed Dec 28, 2010
1 parent 4bde3e6 commit e75b0e8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions S32-num/power.t
Expand Up @@ -11,6 +11,9 @@ is(1 ** 2, 1, "1 ** 2 == 1");
is(4 ** 0, 1, "4 ** 0 == 1");
is(4 ** 1, 4, "4 ** 1 == 4");
is(4 ** 2, 16, "4 ** 2 == 16");

#?niecza 31 skip "unimpl"

is(4 ** 0.5, 2, "4 ** .5 == 2");
is(4 ** (1/2), 2, "4 ** (1/2) == 2 ");
is(4 ** (-1/2), 0.5, "4 ** (-1/2) == 1/2 ");
Expand Down Expand Up @@ -53,9 +56,10 @@ is_approx(5i ** 3, -125i, "5i ** 3 = -125i");
is_approx(3i ** 3, -27i, "3i ** 3 = -27i");
is_approx((-3i) ** 3, 27i, "-3i ** 3 = 27i");

for (8i).roots(4) -> $z
{
is_approx($z ** 4, 8i, "quartic root of 8i ** 4 = 8i");
for (8i).roots(4) -> $z {
is_approx($z ** 4, 8i, "quartic root of 8i ** 4 = 8i");
}
}

# Real ** Complex
Expand Down

0 comments on commit e75b0e8

Please sign in to comment.