diff options
| author | SVN Migration <svn@php.net> | 2003-02-27 17:43:39 +0000 |
|---|---|---|
| committer | SVN Migration <svn@php.net> | 2003-02-27 17:43:39 +0000 |
| commit | 078bcec0997ad0e07b720c43cc9e6d0e046a75ab (patch) | |
| tree | 36cb0f6be2ef078fe3374de8c087b93ecf82f812 /ext/standard/tests/math/log.phpt | |
| parent | fd61f69077f6156ca71dde60ecfd9ed9765a02db (diff) | |
| download | php-git-PHP-5.tar.gz | |
This commit was manufactured by cvs2svn to create branch 'PHP_5'.PHP-5
Diffstat (limited to 'ext/standard/tests/math/log.phpt')
| -rw-r--r-- | ext/standard/tests/math/log.phpt | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/ext/standard/tests/math/log.phpt b/ext/standard/tests/math/log.phpt deleted file mode 100644 index 285b19c853..0000000000 --- a/ext/standard/tests/math/log.phpt +++ /dev/null @@ -1,44 +0,0 @@ ---TEST-- -log() tests ---POST-- ---GET-- ---FILE-- -<?php // $Id$ -echo "On failure, please mail result to php-dev@lists.php.net\n"; -for ($x = 0, $count= 0; $x < 200; $x++) { - $x2 = (int) exp(log($x)); - // e ^ log(x) should be close in range to x - if (($x2 < ($x + 2)) && ($x2 > ($x - 2))) { - $count++; - } else { - print "$x : $x2\n"; - } -} -print $count . "\n"; - -// Now test the base form of log -for ($base = 2; $base < 11; $base++) { - for ($x = 0, $count= 0; $x < 50; $x++) { - $x2 = (int) pow($base, log($x, $base)); - // base ^ log(x) should be close in range to x - if (($x2 < ($x + 2)) && ($x2 > ($x - 2))) { - $count++; - } else { - print "base $base: $x : $x2\n"; - } - } - print $count . "\n"; -} -?> ---EXPECT-- -On failure, please mail result to php-dev@lists.php.net -200 -50 -50 -50 -50 -50 -50 -50 -50 -50 |
