欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: 為什么程序模塊 程序總在報錯 [打印本頁]

作者: guanbolan1    時間: 2025-11-25 15:41
標題: 為什么程序模塊 程序總在報錯
Chan1_V = 5.0 + 0.1 * sin(2 * 3.1416 * 0.5 * t) ;
Chan2_Temp = 22.0 + 3.0 * sin(2 * 3.1416 * 0.01 * t);
if (sin(2 * 3.1416 * 0.2 * t) > 0)
{
    Chan3_Current = 0.5;
}
else
{
    Chan3_Current = 0.0;  
}




t_mod_8= t - 8.0 * floor(t / 8.0);
if (t_mod_8 < 4.0)
{
    Chan4_NIM_V = 2.5 * t_mod_8
}
else
{
    Chan4_NIM_V = 20.0 - 2.5 * t_mod_8;
}
double t_mod_10;
t_mod_10 = t - 10.0 * floor(t / 10.0);  
Chan5_Current_Out = 2.0 * (t_mod_10 / 10.0) - 1.0;  
Chan5_Current_Out = fabs(Chan5_Current_Out);  
Chan5_Current_Out = 2.0 * (Chan5_Current_Out - 0.5);
double magnetic_gain = 100.0;  
double noise_amplitude = 5.0;  
Chan6_Magnetic_Field = magnetic_gain * Chan5_Current_Out
                      + noise_amplitude * rnd()
                      + 2.0 * Chan5_Current_Out * Chan5_Current_Out;



屏幕截圖 2025-11-25 154207.png (596.97 KB, 下載次數: 0)

屏幕截圖 2025-11-25 154207.png

作者: guanbolan1    時間: 2025-11-25 15:43
他這個不是t 在范圍里波動的意思么 為啥顯示沒定義呢

作者: rundstedt    時間: 2025-11-25 16:15
第25行變量沒定義,你定義一下就行了。




歡迎光臨 (http://www.raoushi.com/bbs/) Powered by Discuz! X3.1