【文件属性】:
文件名称:工程测量方位角
文件大小:1KB
文件格式:TXT
更新时间:2016-01-19 10:24:19
方位角
# include
# include
# define PI 3.1415926535897932
void main()
{
long double RTA(long double alfa);
double JJ(double vx,double vy);
double vx,vy;
long double alfa;
printf ("请输入两个点的坐标\n");
scanf ("%lf,%lf,%lf,%lf",&xa;,&ya;,&xb;,&yb;);
vx=xb-xa;
vy=yb-ya;
alfa=JJ(vx,vy);
printf ("则两点所连直线的方位角为:alfa=%lf\n",alfa);