基于NCO的數(shù)字控制振蕩器。帶測試程序,輸出12位的Cos和SIN波形。
上傳時間: 2014-01-20
上傳用戶:jkhjkh1982
簡易的運算包括sin,Cos等,一些簡單的運算的程序。
上傳時間: 2017-06-21
上傳用戶:13681659100
classical culculator but has some thing special that you can store your work in a file in the hard and including sin & Cos
標簽: culculator classical special thing
上傳時間: 2013-12-19
上傳用戶:mpquest
Description Scientific calculator. Allows to perform caclulation with high precicion and implements most populatr mathematical functions: sin, Cos, tan, asin, acon, atan, exp, log, sqr, floor and ceil. Also it make it possible to define your own function, store results in variables and use variable sin expressions. Calculator store al formuls you have entered. Plot function can be used to draw graph of function with single argument. More detailed description of calculator is here.
標簽: Description caclulation Scientific calculator
上傳時間: 2014-01-25
上傳用戶:familiarsmile
本文針對嵌入式流行存儲設備Fl鵲h存儲器的特點,設 計并實現(xiàn)了Flash為存儲設備和uCosII系統(tǒng)為運行平臺的嵌入式文件系統(tǒng)。系統(tǒng)采用日志文件系統(tǒng)設計思想,使Flash存儲設備得到更加合理的利用。系統(tǒng)實現(xiàn)代碼精簡,資源占用率低,執(zhí)行效率高,安全性能好。
標簽: 嵌入式系統(tǒng) uCosii 文件系統(tǒng)
上傳時間: 2015-05-25
上傳用戶:wzg01@126.com
Use the fast Fourier transform function fft to analyse following signal. Plot the original signal, and the magnitude of its spectrum linearly and logarithmically. Apply Hamming window to reduce the leakage. . The hamming window can be coded in Matlab as for n=1:N hamming(n)=0.54+0.46*Cos((2*n-N+1)*pi/N); end; where N is the data length in the FFT.
標簽: matlab fft
上傳時間: 2015-11-23
上傳用戶:石灰?guī)r123
日出日落時間計算 我能給你一個粗略的計算公式 日出時間計算公式: 24*(180+時區(qū)*15-經(jīng)度-ACos(-TAN(-23.4*Cos(360*(日期序列數(shù)+9)/365))*TAN(緯度))/360 我國時區(qū)為東8區(qū),時區(qū)=8 經(jīng)度、緯度采用角度制,東經(jīng)、北緯為正,西經(jīng)、南緯為負 日期序列數(shù)為當天在這一年中的序列,如2月11日就是42 因為計算機一般采用弧度制,上面公式可變化為: 24*(180+時區(qū)*15-經(jīng)度-ACos(-TAN(-23.4*Cos(2*π*(日期序列數(shù)+9)/365)*π/180)*TAN(緯度*π/180))*180/π)/360 計算結果是一個小于24的數(shù)值,如6.69,表示6:41 日落時間計算公式:24*(1+(時區(qū)*15-經(jīng)度)/180)-日出時間
標簽: 日出日落時間計算
上傳時間: 2015-11-23
上傳用戶:曾阿強啊
共軛梯度法為求解線性方程組而提出。后來,人們把這種方法用于求解無約束最優(yōu)化問題, 使之成為一種重要的最優(yōu)化方法。 共軛梯度法的基本思想是把共軛性與最速下降方法相結合, 利用已知點處的梯度構造一組共 軛方向, 并沿這組方向進行搜索, 求出目標函數(shù)的極小點。 根據(jù)共軛方向的基本性質(zhì), 這種 方法具有二次終止性。 在各種優(yōu)化算法中, 共軛梯度法是非常重要的一種。 其優(yōu)點是所需存 儲量小,具有步收斂性,穩(wěn)定性高,而且不需要任何外來參數(shù)。 共軛方向 無約束最優(yōu)化方法的核心問題是選擇搜索方向 . 在本次實驗中 , 我們運用基于共軛方向的一種 算法 — 共軛梯度法 三.算法流程圖: 四.實驗結果: (1). 實驗函數(shù) f=(3*x1-Cos(x2*x3)-1/2)^2+(x1^2-81*(x2+0.1)+sin(x3)+1.06)^2+(exp(-x1*x2)+20*x3+ 1/3*(10*3.14159-3))^2; 給定初始點 (0,0,0) , k=1 ,最 大迭代次數(shù) n ? ? d 確定搜索方向 進 退 法 確 定 搜 索 區(qū) 間 分割法確定最 優(yōu)步長
上傳時間: 2016-05-08
上傳用戶:saren11
在基于實時操作系統(tǒng)的應用程序設計中,任務設計是整個應用程序的基礎,其他軟件設 計工作都是圍繞任務設計來展開,任務設計就是設計“任務函數(shù)”和相關的數(shù)據(jù)結構。
上傳時間: 2017-04-21
上傳用戶:shao_shl
%球體 close all; G=6.67e-11; R=2;%球體半徑 p=4.0;%密度 D=10.0;%深度 M=(4/3)*pi*R^3*p;%質(zhì)量 x=-20:1:20; g=G*M*D./((x.^2+D^2).^(3/2)); Vxz=-3*G*M*D.*x./((x.^2+D^2).^(5/2)); Vzz=G*M.*(2*D^2-x.^2)./((x.^2+D^2).^(5/2)); Vzzz=3*G*M.*(2*D^2-3.*x.^2)./((x.^2+D^2).^(7/2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距離(m)'); ylabel('重力異常值'); title('球體重力異常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vzzz'); grid on %% %水平圓柱體 close all G=6.67e-11; p=10.0;%線密度 D=100.0;%深度 x=-200:1:200; g=G*2*p*D./(x.^2+D^2); Vxz=4*G*p*D.*x./(x.^2+D^2).^2; Vzz=2*G*p.*(D^2-x.^2)./(x.^2+D^2).^2; Vzzz=4*G*p.*(D^2-3.*x.^2)./((x.^2+D^2).^3); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距離(m)'); ylabel('重力異常值'); title('水平圓柱體重力異常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vzzz'); grid on %% %垂直臺階 G=6.67e-11; p=4.0;%密度 h1=50.0;%下層深度 h2=40.0;%上層深度 x=-100:1:100; g=G*p.*(pi*(h1-h2)+x.*log((x.^2+h1^2)./(x.^2+h2^2))+2*h1.*atan(x./h1)-2*h2.*atan(x./h2)); Vxz=G*p.*log((h1^2+x.^2)./(h2^2+x.^2)); Vzz=2*G*p.*atan((x.*(h1-h2))./(x.^2+h1*h2)); Vzzz=2*G*p.*x*(h1^2-h2^2)./((h1^2+x.^2).*(x.^2+h2^2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距離(m)'); ylabel('重力異常值'); title('垂直臺階重力異常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vzzz'); grid on %% %傾斜臺階 G=6.67e-11; p=4.0;%密度 h1=50.0;%下層深度 h2=40.0;%上層深度 a=pi/6;%傾斜角度 x=-500:1:500; g=G*p.*(pi*(h1-h2)+2*h1.*atan((x+h1*cot(a))./h1)-2*h2.*atan((x+h2*cot(a))./h1)+x.*sin(a)^2.*log(((h1+x.*sin(a).*Cos(a)).^2+x.^2.*sin(a)^4)./((h2+x.*(sin(a)*Cos(a))).^2+x.^2.*sin(a)^4))); Vxz=G*p.*(sin(a)^2.*log(((h1*cot(a)+x).^2+h1^2)./((h2*cot(a)+x).^2+h2^2))-2*sin(2*a).*(atan((h1/sin(a)+x.*Cos(a))./(x.*sin(a)))-atan((h2/sin(a)+x.^Cos(a))./(sin(a).*x)))); Vzz=G*p.*(0.5*sin(2*a)^2.*log(((h1*cot(a)+x).^2+h1^2)./((h2*cot(a)+x).^2+h2^2))+2*sin(a)^2.*(atan((h1/sin(a)+x.*Cos(a))./(x.*sin(a)))-atan((h2/sin(a)+x.*Cos(a))./(x.*sin(a))))); Vzzz=2*G*p*sin(a)^2.*((x+2*h2*cot(a))./((h2*cot(a)+x).^2+h2^2)-(x+2*h1*cot(a))./((h1*cot(a)+x).^2+h1^2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距離(m)'); ylabel('重力異常值'); title('傾斜臺階重力異常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vzzz'); grid on %% %鉛錘柱體 G=6.67e-11; p=4.0;%密度 h1=50.0;%下層深度 h2=40.0;%上層深度 a=3;%半徑 x=-500:1:500; g=G*p.*((x+a).*log(((x+a).^2+h1^2)./((x+a).^2+h2^2))-(x-a).*log(((x-a).^2+h1^2)./((x-a).^2+h2^2))+2*h1.*(atan((x+a)./h1)-atan((x-a)./h1))-2*h2.*(atan((x+a)./h2)-atan((x-a)./h2))); Vxz=G*p.*log((((x+a).^2+h1^2).*((x-a).^2+h2^2))./(((x+a).^2+h2^2).*((x-a).^2+h1^2))); Vzz=2*G*p.*(atan(h1./(x+a))-atan(h2./(x+a))-atan(h1./(x-a))+atan(h2./(x-a))); Vzzz=2*G*p.*((x+a)./((x+a).^2+h2^2)-(x+a)./((x+a).^2+h1^2)-(x-a)./((x-a).^2+h2^2)+(x-a)./((x-a).^2+h1^2)); subplot(2,2,1) plot(x,g,'k-'); xlabel('水平距離/m') ylabel('重力異常值') title('鉛垂柱體重力異常') grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導數(shù)值'); title('Vzzz'); grid on
上傳時間: 2019-05-10
上傳用戶:xiajiang