Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fudge for Niecza.
  • Loading branch information
colomon committed Oct 26, 2011
1 parent 6a5a339 commit 016a50f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S32-num/exp.t
Expand Up @@ -37,6 +37,7 @@ my $pi = 312689/99532;
is_approx(exp(5), $e_to_the_fifth, 'got the exponential of 5');
is_approx(exp(0), 1, 'exp(0) == 1');
is_approx(exp(-1), 0.3678794, '1/e is correct');
#?niecza todo "niecza says Infinitey when we're looking for Inf"
is(exp(Inf), 'Inf', 'exp(Inf) == Inf');
is(exp(-Inf), 0, 'exp(-Inf) == 0');
is(exp(NaN), NaN, 'exp(NaN) == NaN');
Expand All @@ -48,6 +49,7 @@ is_approx(exp(-1i*$pi), -1, 'exp(-i $pi) == -1');

is_approx(exp(5, 2), 32, 'got 32');
is_approx(exp(0, 2), 1, 'exp(0, 2) == 1');
#?niecza todo "niecza says Infinitey when we're looking for Inf"
is_approx(exp(-1, 2), 1/2, '1/2 is correct');
is(exp(Inf, 2), 'Inf', 'exp(Inf) == Inf');
is(exp(-Inf, 2), 0, 'exp(-Inf) == 0');
Expand Down

0 comments on commit 016a50f

Please sign in to comment.