實驗源代碼 //Warshall.cpp #include<stdio.h> void warshall(int k,int n) { int i , j, t; int temp[20][20]; for(int a=0;a<k;a++) { printf("請輸入矩陣第%d 行元素:",a); for(int b=0;b<n;b++) { scanf ("%d",&temp[a][b]); } } for(i=0;i<k;i++){ for( j=0;j<k;j++){ if(temp[ j][i]==1) { for(t=0;t<n;t++) { temp[ j][t]=temp[i][t]||temp[ j][t]; } } } } printf("可傳遞閉包關系矩陣是:\n"); for(i=0;i<k;i++) { for( j=0;j<n;j++) { printf("%d", temp[i][ j]); } printf("\n"); } } void main() { printf("利用 Warshall 算法求二元關系的可傳遞閉包\n"); void warshall(int,int); int k , n; printf("請輸入矩陣的行數 i: "); scanf("%d",&k); 四川大學實驗報告 printf("請輸入矩陣的列數 j: "); scanf("%d",&n); warshall(k,n); }
上傳時間: 2016-06-27
上傳用戶:梁雪文以
#include "iostream" using namespace std; class Matrix { private: double** A; //矩陣A double *b; //向量b public: int size; Matrix(int ); ~Matrix(); friend double* Dooli(Matrix& ); void Input(); void Disp(); }; Matrix::Matrix(int x) { size=x; //為向量b分配空間并初始化為0 b=new double [x]; for(int j=0;j<x;j++) b[j]=0; //為向量A分配空間并初始化為0 A=new double* [x]; for(int i=0;i<x;i++) A[i]=new double [x]; for(int m=0;m<x;m++) for(int n=0;n<x;n++) A[m][n]=0; } Matrix::~Matrix() { cout<<"正在析構中~~~~"<<endl; delete b; for(int i=0;i<size;i++) delete A[i]; delete A; } void Matrix::Disp() { for(int i=0;i<size;i++) { for(int j=0;j<size;j++) cout<<A[i][j]<<" "; cout<<endl; } } void Matrix::Input() { cout<<"請輸入A:"<<endl; for(int i=0;i<size;i++) for(int j=0;j<size;j++){ cout<<"第"<<i+1<<"行"<<"第"<<j+1<<"列:"<<endl; cin>>A[i][j]; } cout<<"請輸入b:"<<endl; for(int j=0;j<size;j++){ cout<<"第"<<j+1<<"個:"<<endl; cin>>b[j]; } } double* Dooli(Matrix& A) { double *Xn=new double [A.size]; Matrix L(A.size),U(A.size); //分別求得U,L的第一行與第一列 for(int i=0;i<A.size;i++) U.A[0][i]=A.A[0][i]; for(int j=1;j<A.size;j++) L.A[j][0]=A.A[j][0]/U.A[0][0]; //分別求得U,L的第r行,第r列 double temp1=0,temp2=0; for(int r=1;r<A.size;r++){ //U for(int i=r;i<A.size;i++){ for(int k=0;k<r-1;k++) temp1=temp1+L.A[r][k]*U.A[k][i]; U.A[r][i]=A.A[r][i]-temp1; } //L for(int i=r+1;i<A.size;i++){ for(int k=0;k<r-1;k++) temp2=temp2+L.A[i][k]*U.A[k][r]; L.A[i][r]=(A.A[i][r]-temp2)/U.A[r][r]; } } cout<<"計算U得:"<<endl; U.Disp(); cout<<"計算L的:"<<endl; L.Disp(); double *Y=new double [A.size]; Y[0]=A.b[0]; for(int i=1;i<A.size;i++ ){ double temp3=0; for(int k=0;k<i-1;k++) temp3=temp3+L.A[i][k]*Y[k]; Y[i]=A.b[i]-temp3; } Xn[A.size-1]=Y[A.size-1]/U.A[A.size-1][A.size-1]; for(int i=A.size-1;i>=0;i--){ double temp4=0; for(int k=i+1;k<A.size;k++) temp4=temp4+U.A[i][k]*Xn[k]; Xn[i]=(Y[i]-temp4)/U.A[i][i]; } return Xn; } int main() { Matrix B(4); B.Input(); double *X; X=Dooli(B); cout<<"~~~~解得:"<<endl; for(int i=0;i<B.size;i++) cout<<"X["<<i<<"]:"<<X[i]<<" "; cout<<endl<<"呵呵呵呵呵"; return 0; }
標簽: 道理特分解法
上傳時間: 2018-05-20
上傳用戶:Aa123456789
The countless technological advances of the twentieth century require that futureengineering educationemphasizebridging thegapbetweentheoryand the real world.Thisedition hasbeenprepared withparticular attentiontothe needs of undergraduates, especially those who seek a solid foundation in control theory aswellas an ability tobridgethe gapbetween control theory and itsreal- world applications.To help the reader achieve this goal, computer-aided design accuracy checks (CADAC) are used throughout the text to encourage good habits of computerliteracy.Each CADAC uses fundamentalconcepts to ensure the viability of a computer solution.
標簽: Analysis Control Linear Design System Fifth and
上傳時間: 2020-06-10
上傳用戶:shancjb
AR0231AT7C00XUEA0-DRBR(RGB濾光)安森美半導體推出采用突破性減少LED閃爍 (LFM)技術的新的230萬像素CMOS圖像傳感器樣品AR0231AT,為汽車先進駕駛輔助系統(ADAS)應用確立了一個新基準。新器件能捕獲1080p高動態范圍(HDR)視頻,還具備支持汽車安全完整性等級B(ASIL B)的特性。LFM技術(專利申請中)消除交通信號燈和汽車LED照明的高頻LED閃爍,令交通信號閱讀算法能于所有光照條件下工作。AR0231AT具有1/2.7英寸(6.82 mm)光學格式和1928(水平) x 1208(垂直)有源像素陣列。它采用最新的3.0微米背照式(BSI)像素及安森美半導體的DR-Pix?技術,提供雙轉換增益以在所有光照條件下提升性能。它以線性、HDR或LFM模式捕獲圖像,并提供模式間的幀到幀情境切換。 AR0231AT提供達4重曝光的HDR,以出色的噪聲性能捕獲超過120dB的動態范圍。AR0231AT能同步支持多個攝相機,以易于在汽車應用中實現多個傳感器節點,和通過一個簡單的雙線串行接口實現用戶可編程性。它還有多個數據接口,包括MIPI(移動產業處理器接口)、并行和HiSPi(高速串行像素接口)。其它關鍵特性還包括可選自動化或用戶控制的黑電平控制,支持擴頻時鐘輸入和提供多色濾波陣列選擇。封裝和現狀:AR0231AT采用11 mm x 10 mm iBGA-121封裝,現提供工程樣品。工作溫度范圍為-40℃至105℃(環境溫度),將完全通過AEC-Q100認證。
標簽: 圖像傳感器
上傳時間: 2022-06-27
上傳用戶:XuVshu
VIP專區-嵌入式/單片機編程源碼精選合集系列(36)資源包含以下內容:1. C51 I2C 驅動程序 含頭文件.2. arm芯 ucos 下的開發框架.3. c8051f***的程序源代碼.4. 新華龍單片機的flash用法.5. 用C8051F300設計鋰離子電池充電器的解決方案.6. c8051f系列單片機 用過采樣和求均值提高ADC分辨率.7. C6000指令集 是對C6000指令集的文檔.8. VxWorks 編程手冊 VxWorks 編程手冊.9. proteus 6.7及其破解(絕對好用).10. iic總線資料.11. 手機游戲禮包包 原理圖采用OrCad軟件或PowerPCB軟件打開 好玩的很 快來試試吧.12. 紅外測溫計 紅外線測溫 自動化設計 原理圖采用OrCad軟件或PowerPCB軟件打開 很完美.13. 9智能機器人禮包 智能機器人 單片機實現 功能齊全 運動流暢.14. 哈哈!終于找到了最新版本的UCGUI! 增加了不少的功能.15. Nios II是一個用戶可配置的通用RISC嵌入式處理器,這個文檔詳細介紹這個處理器的用法.16. 這是一個c語言寫的a/d轉換程序。利用i2c總線實現對24c02的存和取.17. 學DSP時.18. 漢字液晶子程 液晶屏分為4行*12列漢字.19. 這是一個c語言描述的8位led顯示的源代碼.20. We demonstrate a method for encoding and decoding the [24,12,8] extended binary Golay code using a s.21. Training embedded apps to process speech may be as easy as finding the right 8-bit micro. Don t let.22. The CC1000 RF transceiver is very easy to interface with a microcontroller. The chip is configured.23. One of the most important issues affecting the implementation of microcontroller software deals wi.24. AVR單片機開發中.25. 作基于日立公司superh系列微處理器嵌入式操作系統bootloader源代碼.26. touchsceen_test ├─ main.c C語言主源文件 ├─ AscII6x8.c Ascii字符6x8點陣顯示格式數據 ├─ lcd.c LCD顯示函數源文件 ├─.27. iic_test ├─ main.c C語言主源文件 ├─ iic.c IIC總線操作和24C040擦寫函數源文件 └─ iic.h IIC總線操作和24C040寫定義頭文件.28. Nexperia系統聲音實現的源碼.29. 89C516RD+的兩個AD轉換程序,89C51是22.1184MHZ,有64KB Flash 256B(DataRAM)+1024B(Ext.RAM)的性價比很高的MCU.30. 網上收集的VC多線程開發、嵌入式開發文檔.31. ucos-2在lpc2100上的移制例子。.32. mcf5307實驗源代碼.33. CPLD對DUSH的讀寫控制,LINUX下運行.解壓即可..34. HART協議由Rosemount公司開發且已向每個使用者開放HART協議采用標準的Bell 202頻移鍵控信號以1200波特通信以低電平加載于4mA~20mA模擬信號上.35. 中文MODBUS協議(完整版)涵蓋協議基本內容。不用我多說了吧!自己看好了。.36. μC_OS-II在Nios上的移植(共同學習ucosII).37. SST28F040讀寫源程序,C語言編寫,方便移植.38. 基于ARM 的PDA拼音輸入法源程序,c語言編寫,方便移植.39. Cypress公司的USB芯片開發資料.40. at91 sam 系列arm7單片機程序下工具.
標簽: 自動變速器
上傳時間: 2013-06-18
上傳用戶:eeworm
8051 VARIOUS UTILITY FUNCTIONSUTIL_ADCAD - Add Acc to DPTR, sets CYUTIL_ADCBAD - Add B/A to DPTR, sets CYUTIL_SUBBAD
標簽: FUNCTIONSUTIL_ADCAD DPTR CYUTIL_ADCBAD Add
上傳時間: 2013-11-25
上傳用戶:himbly
b to b 模式 電子商務系統 ,c# 開發 , B/S結構
上傳時間: 2014-01-20
上傳用戶:hanli8870
This project attempts to implement a Database using B+Tree. The project has developed a DATABASE SYSTEM with lesser memory consumption. Its API includes simple SQL Statements and the output is displayed on the screen. Certain applications for which several features of existing databases like concurrency control, transaction management, security features are not enabled. B+Trees can be used as an index for factor access to the data. Help facility is provided to know the syntax of SQL Statements.
標簽: project implement developed Database
上傳時間: 2013-12-25
上傳用戶:semi1981
Bing is a point-to-point bandwidth measurement tool (hence the b ), based on ping. Bing determines the real (raw, as opposed to available or average) throughput on a link by measuring ICMP echo requests roundtrip times for different packet sizes for each end of the link
標簽: Bing point-to-point measurement determines
上傳時間: 2015-09-15
上傳用戶:lgnf
If we have two individually sorted vectors "a" and "b" but they are not sorted with respect to each other and we want to merge them into vector "c" such that "c" is also a sorted vector. Then c=mergesorted(a,b) can be used.
標簽: sorted individually respect vectors
上傳時間: 2015-09-23
上傳用戶:comua