freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

面向?qū)ο蟪绦蛟O(shè)計(jì)課程設(shè)計(jì)報(bào)告-在線瀏覽

2025-05-10 12:42本頁面
  

【正文】 、減、乘運(yùn)算模塊設(shè)計(jì)程序代碼如下:Matrix Matrix::operator+(Matrix amp。 exit(0)。 =m。 =new double[m*n]。 for(i=0。i++) for(j=0。j++) [i*+j]=p[i*+j]+[i*+j]。 return c。b) //減法重載函數(shù){ if(m!=||n!=) {cout\n行或列不匹配。 } Matrix c。 =n。 for(int i=0。i++) for(int j=0。j++) [i*+j]=p[i*+j][i*+j]。 return c。b) //乘法重載函數(shù){ Matrix c。 =n。 if(m!=) { cout\n行列不匹配。 } int i,j,k。im。j。k。 Out(c)。}測試任意兩個(gè)矩陣加、減、乘情況例如,輸入以下兩個(gè)矩陣,矩陣a: 矩陣b:1 2 3 1 4 74 5 6 2 5 87 8 9 3 6 9其效果如下:(方陣)逆設(shè)計(jì)模塊程序代碼如下:Matrix Adjunct(Matrix amp。 = 1。 = new double[() * ()]。 iindexm。 jindexn。 } for (int k=indexn+1。k++) { [i *()+k1] = [i*+k]。 m。j。 } for (int k=indexn+1。k++) { [(m1)*()+k1]=[m*+k]。}double Det(Matrix amp。 if ( != ) { cout不是方陣,沒有行列式!endl。 } if ( == 1) { det = [0]。 } else { for (int i = 0。 i++) { if (i % 2 == 0) det += [i * ] * Det(Adjunct(a, i, 0))。 } } return det。a) //求矩陣的逆 { Matrix temp 。 =。 double det = Det(a)。 cout求矩陣逆退出!。 } for (int i=0。i++) { for (int j=0。j++) { if ((i+j) % 2 == 0) [i*+j]=Det(Adjunct(a,i,j))/det。 } } return temp。按照正常的顯示是先輸出行的。typedef double Datatype。 //無參構(gòu)造函數(shù) friend void In(Matrix amp。 //設(shè)置為友元的輸入函數(shù) friend void Out(Matrix amp。 //設(shè)置為友元的輸出函數(shù) Matrix operator +(Matrix amp。 //加法重載函數(shù)Matrix operator (Matrix amp。 //減法重載函數(shù) Matrix operator *(Matrix amp。 //乘法重載函數(shù) friend Matrix change(Matrix amp。 //轉(zhuǎn)置函數(shù) friend Matrix Adjunct(Matrix amp。//設(shè)置成友元的求代數(shù)余子式 friend double Det(Matrix amp。 //設(shè)置成友元的遞歸求行列式 friend Matrix Inv(Matrix amp。 //
點(diǎn)擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1