close
<?
$a = array(1,2,3,4,5,6,7,8);
$tmp=0;
for ($i=0; $i<8; $i++) {
for ($j=0; $j<=315; $j+=45){
$tmp += $j;
//$tmp + $j
$sum = $sum + ($a[$i] * cos($tmp + $j));
}
}
echo $sum;
?>
$a = array(1,2,3,4,5,6,7,8);
$tmp=0;
for ($i=0; $i<8; $i++) {
for ($j=0; $j<=315; $j+=45){
$tmp += $j;
//$tmp + $j
$sum = $sum + ($a[$i] * cos($tmp + $j));
}
}
echo $sum;
?>
全站熱搜
留言列表