用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/12/23 15:05:07
用C语言写了个数学公式出现errorC2064:termdoesnotevaluatetoafunctiondoubleN,Ra,S,S12;S12=579.5888;N=a*a/(b*sqrt(1+

用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);