S
shaz
Guest
亲爱的
代码米派遣热电偶线性化我写的莱凯勒方程的C51 languague的。我想这个代码尺寸更短
, 但其工作。如何才能做到这一点。请帮我代码://////////////////提高到功率/////////////////////双重的RTP(浮动rtp_base,廉政rtp_power)(
整合酶;
双rtp_result;rtp_result = 1;为(= 1,我“= rtp_power,我 )(
rtp_result = rtp_result * rtp_base;
)返回(rtp_result);
)
////////////////////////////////////////////////// / / / /
/ /线性方程ý = 0 2.508355e1 * V1的7.860106电子2 * RTP协议(V1的,2) - 2.503131e - 1 * RTP协议(V1的,3) 8.315270e - 2 * RTP协议(V1的,4)- 1.228034e - 2 * RTP协议(V1的,5) 9.804036e - 4 * RTP协议(V1的,6)- 4.413030e - 5 *的RTP(V1的,7)1.057734电子6 * RTP协议(V1的,8)- 1.052755e - 8 * RTP协议( V1的,9);lcd_init();
lcd_com状态(0x01); / /清除显示
lcd_com(0X0C); / /显示开,光标
lcd_com(0x80);
lcd_puts(“温度=”);sprintf(缓冲带,“%d个”,y)的;
lcd_puts(缓冲带);
代码米派遣热电偶线性化我写的莱凯勒方程的C51 languague的。我想这个代码尺寸更短
, 但其工作。如何才能做到这一点。请帮我代码://////////////////提高到功率/////////////////////双重的RTP(浮动rtp_base,廉政rtp_power)(
整合酶;
双rtp_result;rtp_result = 1;为(= 1,我“= rtp_power,我 )(
rtp_result = rtp_result * rtp_base;
)返回(rtp_result);
)
////////////////////////////////////////////////// / / / /
/ /线性方程ý = 0 2.508355e1 * V1的7.860106电子2 * RTP协议(V1的,2) - 2.503131e - 1 * RTP协议(V1的,3) 8.315270e - 2 * RTP协议(V1的,4)- 1.228034e - 2 * RTP协议(V1的,5) 9.804036e - 4 * RTP协议(V1的,6)- 4.413030e - 5 *的RTP(V1的,7)1.057734电子6 * RTP协议(V1的,8)- 1.052755e - 8 * RTP协议( V1的,9);lcd_init();
lcd_com状态(0x01); / /清除显示
lcd_com(0X0C); / /显示开,光标
lcd_com(0x80);
lcd_puts(“温度=”);sprintf(缓冲带,“%d个”,y)的;
lcd_puts(缓冲带);