i]);Р?printf("\n");Р?/*-------------------计算单位权中误差---------------*/Р?for(i=0;i<2*N;i++)Р sum+=L[i]*L[i];Р?m0=sqrt(sum/(2*N-6));Р?Р?cout<<"单位权中误差m0="<<m0<<endl;Р?cout<<"测量精度:"<<endl;Р?cout<<"Xs的精度为:"<<m0*sqrt(result1[0][0])<<endl;Р?cout<<"Ys的精度为:"<<m0*sqrt(result1[1][1])<<endl;Р?cout<<"Zs的精度为:"<<m0*sqrt(result1[2][2])<<endl;Р?cout<<"q的精度为:"<<m0*sqrt(result1[3][3])<<endl;Р?cout<<"w的精度为:"<<m0*sqrt(result1[4][4])<<endl;Р?cout<<"k的精度为:"<<m0*sqrt(result1[5][5])<<endl;Р}Р结果:Р迭代次数为:3Р像片外方位元素的解Р航向顷角q:-0.00398693Р旁向倾角w:0.00211391Р像片旋角k:-0.067578РXs=39795.452288 Ys=27476.462249 Zs=7572.685915Р旋转矩阵R:Р0.997709 0.067534 0.003987Р-0.067526 0.997715 -0.002114Р-0.004121 0.001840 0.999990Р单位权中误差m0=0.00727685РXs的精度为:1.11004РYs的精度为:1.25251РZs的精度为:0.489302Рq的精度为:0.000179054Рw的精度为:0.000161849Рk的精度为:7.22111e-005