⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 connect.php

📁 计算卫星天线角度
💻 PHP
字号:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
<?php
function connect(){
$dbconn=mysql_connect("localhost","root","123");
mysql_query("SET NAMES GB2312");
if($dbconn){
echo "<center><b>is connected</b></center>";
} 
else{
die();
}
}
?>



<?php
function fangwei($weixingjing,$jieshoujing,$jieshouwei){
$x1=($weixingjing-$jieshoujing);     $y1=$jieshouwei;     $pi=3.1415926;
$x=$x1*$pi/180;        $y=$y1*$pi/180;
     $az1=atan(tan($x)/sin($y));
     $az=$az1*180/$pi;
echo ("<br>方位角:".$az);
}


function yangjiao($weixingjing,$jieshoujing,$jieshouwei){
$x1=($weixingjing-$jieshoujing);     $y1=$jieshouwei;     $pi=3.1415926;
$x=$x1*$pi/180;        $y=$y1*$pi/180;
$a=(cos($x)*cos($Y)-0.1513);
$m=cos($x)*cos($x);$n=cos($y)*cos($y);
$b=(1-$m*$n);$d=sqrt($b);$c=atan($a/$d);
$EI=$c*180/$pi;
echo ("<br>仰&nbsp;&nbsp角:".$EI."<br>");
}


function jihua($weixingjing,$jieshoujing){
$x=($weixingjing-$jieshoujing);
echo ("<br>极化角:".$x."<br>");
} 
?>


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -