看板 FJU-STAT95B 關於我們 聯絡資訊
前置作業: 打開一個記事本 輸入以下資料 186 38 35 227 54 45 219 78 78 355 112 140 653 285 259 檔名儲存為RC.dat 並存於C:\\devcpp ===============================從以下開始複製================================= #include <C:\devcpp\all.h> double Chi2_CDF( double x ) { return X2_CDF( x, 8 ); } int main() { long int i, j; srand((unsigned)time(NULL)); cout.setf(ios::fixed); cout.precision(10); // $$$$$$$$ Start your program here $$$$$$$$$$$$$$$$$$$$$ Matrix X; X.read_from_file("C:\\devcpp\\RC.dat",3); X.print(0); X.X2_test().print(3); cout << "critical value alfa = 0.05" << endl; cout << root_of(Chi2_CDF, 0.95, 8 ) << endl; cout << "C.V. alfa = 0.005" << endl; cout << root_of(Chi2_CDF, 0.995, 8) << endl; // $$$$$$$ End of your program $$$$$$$$$$$$$$$$$$$$$$$$$ ================================複製以上====================================== 隨時有最新進度 我會按E修改文章 請FOLLOW謝謝 -- ▄ ▄ ████ 六丁愛維尼* ◥██◤ ˙ ◢███◣ ◤ ▃ ◢█████◣ / ◤◥████◣ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.136.161.81
abidog:原po是正妹 04/27 15:14
※ 編輯: weiching0323 來自: 140.136.161.81 (04/27 15:20)