#23261 [NEW]: $f[$i][0] = 2.95*COS((4*3.1415+i*(4*3.1415)/$n));
| From: | nicolae79 at oneup dot ro | Date: | Thu, 17 Apr 2003 17:05:58 +0000 |
| Subject: | #23261 [NEW]: $f[$i][0] = 2.95*COS((4*3.1415+i*(4*3.1415)/$n)); | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37819@lists.php.net to get a copy of this message | ||
From: nicolae79 at oneup dot ro
Operating system: WINDOWS 2000
PHP version: 4.3.2RC1
PHP Bug Type: Math related
Bug description: $f[$i][0] = 2.95*COS((4*3.1415+i*(4*3.1415)/$n));
Fatal error: Maximum execution time of 320 seconds exceeded in c:\program
files\apache group\apache\htdocs\spiral.php on line 51
the problem is that ...I want to use these functions and
I do not know Why it thake so long to calculate just the first line,...And
what to say about the hole code...
IT can be possible to run this unde PHP Apache server?
unde Pascal it work fine...
Thanks,..
I hope somebody can help me...
//-------------------------------------------------------------
for($i = 1;$i = $n; $i++)
{
$a[$i][0] = 3.2*COS((4*3.1415+$i*(4*3.1415)/$n));
$a[$i][2] = 3.2*SIN((4*3.1415+$i*(4*3.1415)/$n));
$a[$i][1] = (0.25+$i/5);
}
//--------------------------------------------------------------
for($i = 1;$i = $n; $i++)
{
$b[$i][0] = 3.2*COS((4*3.1415+$i*(4*3.1415)/$n));
$b[$i][2] = 3.2*SIN((4*3.1415+$i*(4*3.1415)/$n));
$b[$i][1] = ($i/5);
}
//--------------------------------------------------------------
for($i = 1;$i = $n; $i++)
{
$c[$i][0] = 0.1*COS((4*3.1415+$i*(4*3.1415)/$n));
$c[$i][2] = 0.1*SIN((4*3.1415+$i*(4*3.1415)/$n));
$c[$i][1] = (0.25+$i/5);
}
//--------------------------------------------------------------
for($i = 1;$i = $n; $i++)
{
$d[$i][0] = 2.95*COS((4*3.1415+$i*(4*3.1415)/$n));
$d[$i][2] = 2.95*SIN((4*3.1415+$i*(4*3.1415)/$n));
$d[$i][1] = (0.25+$i/5);
}
//--------------------------------------------------------------
for($i = 1;$i = $n; $i++)
{
$e[$i][0] = 2.95*COS((4*3.1415+$i*(4*3.1415)/$n));
$e[$i][2] = 2.95*SIN((4*3.1415+$i*(4*3.1415)/$n));
$e[$i][1] = (0.25+$i/5);
}
//--------------------------------------------------------------
for($i = 1;$i = $n; $i++)
{
$f[$i][0] = 2.95*COS((4*3.1415+i*(4*3.1415)/$n));
$f[$i][2] = 2.95*SIN((4*3.1415+i*(4*3.1415)/$n));
$f[$i][1] = (0.25+$i/5);
}
//--------------------------------------------------------------
--
Edit bug report at http://bugs.php.net/?id=23261&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23261&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23261&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23261&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23261&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23261&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23261&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23261&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23261&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23261&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23261&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23261&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23261&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23261&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23261&r=gnused