用C语言写了个数学公式出现error C2064:term does not evaluate to a functiondouble N,Ra,S,S12;S12=579.5888;N=a*a/(b*sqrt(1+e12*cos(B1)*cos(B1)));Ra=N/(1+e12*cos(B1)*cos(B1)*cos(A1)*cos(A1));S=S12*sqrt((1-(H2-H1)*(H2-H1)/(S12*S12))/((1+H1/Ra)

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/02 18:40:28

用C语言写了个数学公式出现error C2064:term does not evaluate to a functiondouble N,Ra,S,S12;S12=579.5888;N=a*a/(b*sqrt(1+e12*cos(B1)*cos(B1)));Ra=N/(1+e12*cos(B1)*cos(B1)*cos(A1)*cos(A1));S=S12*sqrt((1-(H2-H1)*(H2-H1)/(S12*S12))/((1+H1/Ra)
用C语言写了个数学公式出现error C2064:term does not evaluate to a function
double N,Ra,S,S12;
S12=579.5888;N=a*a/(b*sqrt(1+e12*cos(B1)*cos(B1)));Ra=N/(1+e12*cos(B1)*cos(B1)*cos(A1)*cos(A1));S=S12*sqrt((1-(H2-H1)*(H2-H1)/(S12*S12))/((1+H1/Ra)(1+H2/Ra)))+S12*S12*S12/(24*Ra*Ra);//S=S12*sqrt((1-((H2-H1)/S12)*((H2-H1)/S12))/((1+H1/Ra)(1+H2/Ra)))+S12*S12*S12/(24*Ra*Ra);printf("大地线长度S=%lf\n",S); 就是S=……这个公式

用C语言写了个数学公式出现error C2064:term does not evaluate to a functiondouble N,Ra,S,S12;S12=579.5888;N=a*a/(b*sqrt(1+e12*cos(B1)*cos(B1)));Ra=N/(1+e12*cos(B1)*cos(B1)*cos(A1)*cos(A1));S=S12*sqrt((1-(H2-H1)*(H2-H1)/(S12*S12))/((1+H1/Ra)
double N,Ra,S,S12;
S12=579.5888;
// a没有定义,也没有赋值,b没有定义和赋值,e12没有定义和赋值,B1没有定义和赋值
N=a*a/(b*sqrt(1+e12*cos(B1)*cos(B1)));
// A1没有定义和赋值
Ra=N/(1+e12*cos(B1)*cos(B1)*cos(A1)*cos(A1));
// H1、H2没有定义和赋值
S=S12*sqrt((1-(H2-H1)*(H2-H1)/(S12*S12))/((1+H1/Ra)(1+H2/Ra)))+S12*S12*S12/(24*Ra*Ra);
//S=S12*sqrt((1-((H2-H1)/S12)*((H2-H1)/S12))/((1+H1/Ra)(1+H2/Ra)))+S12*S12*S12/(24*Ra*Ra);
printf("大地线长度S=%lf\n",S);