This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5ae396
)
5.004_74: trig.t: math inaccuracy fudge for unicos
author
Jarkko Hietaniemi
<jhi@iki.fi>
Tue, 14 Jul 1998 21:35:02 +0000
(
00:35
+0300)
committer
Gurusamy Sarathy
<gsar@cpan.org>
Wed, 15 Jul 1998 05:48:38 +0000
(
05:48
+0000)
Message-Id: <
199807141835
.VAA09030@alpha.hut.fi>
p4raw-id: //depot/perl@1499
t/lib/trig.t
patch
|
blob
|
blame
|
history
diff --git
a/t/lib/trig.t
b/t/lib/trig.t
index
0914711
..
3114176
100755
(executable)
--- a/
t/lib/trig.t
+++ b/
t/lib/trig.t
@@
-21,6
+21,10
@@
use vars qw($x $y $z);
my $eps = 1e-11;
+if ($^O eq 'unicos') { # See lib/Math/Complex.pm and t/lib/complex.t.
+ $eps = 1e-10;
+}
+
sub near ($$;$) {
abs($_[0] - $_[1]) < (defined $_[2] ? $_[2] : $eps);
}