oid led8_test(void) { int i, j, k iic_init() for( ) { for(j=0 j<10 j++) { for(i=0 i<8 i++) { k = 9-(i+j)%10 iic_write(0x70, 0x10+i, f_szDigital[k]) } delay(1000) } } }
上傳時間: 2013-12-19
上傳用戶:BOBOniu
使用最小二乘法的一次性計算公式來估計y(i) = b0 + b1 * x + b2 * x^2 + b3 * x^3 + ...... bn * x^n中b0, b1, ..., bn的值,并顯示你和的曲線.
上傳時間: 2015-10-15
上傳用戶:jing911003
對于多項式y(i) = b0 + b1 * x + b2 * x^2 + b3 * x^3 + ...... bn * x^n 用遞推最小二乘法來估計上式中的b0, b1, ..., bn
上傳時間: 2013-12-24
上傳用戶:13517191407
在sco unix 下顯示前n天或后n天日期的處理程序。 printf("功能: 時間戳與時間格式字符串的轉換程序\n") printf(" -i 輸入的參數為時間戳\n") printf(" -s 輸入的參數為格式化時間\n") printf(" -t 輸入的時間取當前系統時間\n") printf(" -x 輸入的時間增加或減少的天數\n") printf(" -o 輸出的時間為時間戳格式\n") printf(" -O 輸出的時間為格式化時間\n") printf(" -h 幫助文件-查看[format]如何定義,例 %s -h\n",procname) printf("范例:1 取當前日期的前2天的時間顯示 %s -t -x -2\n",procname) printf(" 2 取20030101的前5天的時間顯示 %s -s 20030101000000 -x -5\n",procname) printf(" 3 取20031231的后5天的時間顯示 %s -s 20031231000000 -x 5 -O \"%%D %%T\"\n",procname) printf(" 4 取時間戳為1089619417的時間顯示 %s -i 1089619417 \n",procname) printf(" 5 取時間戳為1089619417的后4天的時間顯示 %s -i 1089619417 -x 4 \n",procname)
上傳時間: 2015-10-17
上傳用戶:TRIFCT
首先簡單介紹了GPS 接收機串口通信的基本概念, 然后通過實例詳細介紹了計算機與GPS 接收機進行 數據傳輸的兩種方法: 一種是使用W in32 A P I 通信函數的文件讀寫方式 另一種是通過VC+ + 6. 0 提供的 M SComm 控件實現。
上傳時間: 2015-10-23
上傳用戶:xuan‘nian
一個旅行家想駕駛汽車從城市A到城市B(設出發時油箱是空的)。給定兩個城市之間的距離dis、汽車油箱的容量c、每升汽油能行駛的距離d、沿途油站數n、油站i離出發點的距離d[i]以及該站每升汽油的價格p[i],i=1,2,…,n。設d[1]=0<d[2]<…<d[n]。要花最少的油費從城市A到城市B,在每個加油站應加多少油,最少花費為多少?
上傳時間: 2013-12-31
上傳用戶:redmoons
用GOSS解線性方程組 Dim i As Integer 循環變量 Dim j As Integer 循環變量 Dim k As Integer 循環變量
上傳時間: 2015-10-25
上傳用戶:xinzhch
設計算法實現在一個具有在n各互不相同元素的數組A[1…n]中找出所有前k個最小元素的問題,這里k不是常量,即它是輸入數據的一部分。要求算法的時間復雜性為Θ(n)。
上傳時間: 2013-12-21
上傳用戶:zhliu007
Input The input consists of two lines. The first line contains two integers n and k which are the lengths of the array and the sliding window. There are n integers in the second line. Output There are two lines in the output. The first line gives the minimum values in the window at each position, from left to right, respectively. The second line gives the maximum values. Sample Input 8 3 1 3 -1 -3 5 3 6 7 Sample Output -1 -3 -3 -3 3 3 3 3 5 5 6 7
上傳時間: 2014-12-21
上傳用戶:hongmo
最小二乘遞推算法的Matlab仿真 v(k)是服從N(0,1)分布的不相關隨機噪聲
上傳時間: 2015-11-01
上傳用戶:love1314