想在威纶触摸屏上进行计算,计算中有小数,可是计算结果总是不对,能帮忙看下么,下面是宏指令:macro_command main()float a[6]GetData(a[0], "MITSUBISHI FX2n", D, 500, 1)GetData(a[1], "MITSUBISHI FX2n", D, 501, 1)GetData
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/11 19:09:50
想在威纶触摸屏上进行计算,计算中有小数,可是计算结果总是不对,能帮忙看下么,下面是宏指令:macro_command main()float a[6]GetData(a[0], "MITSUBISHI FX2n", D, 500, 1)GetData(a[1], "MITSUBISHI FX2n", D, 501, 1)GetData
想在威纶触摸屏上进行计算,计算中有小数,可是计算结果总是不对,能帮忙看下么,下面是宏指令:
macro_command main()
float a[6]
GetData(a[0], "MITSUBISHI FX2n", D, 500, 1)
GetData(a[1], "MITSUBISHI FX2n", D, 501, 1)
GetData(a[2], "MITSUBISHI FX2n", D, 502, 1)
a[3]=3.141592653
a[4]=a[1]*a[1]*(a[0]*a[0]+36*a[3]*a[3]*a[2]*a[2])/(4*a[3]*a[3]*a[0]*a[0]*a[2]*a[2])
SQRT(a[4], a[5])
SetData(a[3], "MITSUBISHI FX2n", D, 503, 1)
SetData(a[4], "MITSUBISHI FX2n", D, 504, 1)
SetData(a[5], "MITSUBISHI FX2n", D, 505, 1)
end macro_command
想在威纶触摸屏上进行计算,计算中有小数,可是计算结果总是不对,能帮忙看下么,下面是宏指令:macro_command main()float a[6]GetData(a[0], "MITSUBISHI FX2n", D, 500, 1)GetData(a[1], "MITSUBISHI FX2n", D, 501, 1)GetData
macro_command main()
float a[6]
GetData(a[0],"MITSUBISHI FX2n",D,500,1)
GetData(a[1],"MITSUBISHI FX2n",D,502,1)
GetData(a[2],"MITSUBISHI FX2n",D,504,1)
a[3]=3.141592653
a[4]=a[1]*a[1]*(a[0]*a[0]+36*a[3]*a[3]*a[2]*a[2])/(4*a[3]*a[3]*a[0]*a[0]*a[2]*a[2])
SQRT(a[4],a[5])
SetData(a[3],"MITSUBISHI FX2n",D,506,1)
SetData(a[4],"MITSUBISHI FX2n",D,508,1)
SetData(a[5],"MITSUBISHI FX2n",D,510,1)
end macro_command
绝对可以!
浮点数地址间隔是两位吧,你吗D500~D505地址不冲突吗。
参考答案 58.这年头,杀了爹或者被爹杀了都不算新闻。