基于NCO的數(shù)字控制振蕩器。帶測試程序,輸出12位的cos和SIN波形。
標(biāo)簽: NCO 數(shù)字控制 振蕩器 測試程序
上傳時(shí)間: 2014-01-20
上傳用戶:jkhjkh1982
簡易的運(yùn)算包括sin,cos等,一些簡單的運(yùn)算的程序。
上傳時(shí)間: 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
標(biāo)簽: culculator classical special thing
上傳時(shí)間: 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.
標(biāo)簽: Description caclulation Scientific calculator
上傳時(shí)間: 2014-01-25
上傳用戶:familiarsmile
本文針對(duì)嵌入式流行存儲(chǔ)設(shè)備Fl鵲h存儲(chǔ)器的特點(diǎn),設(shè) 計(jì)并實(shí)現(xiàn)了Flash為存儲(chǔ)設(shè)備和ucosII系統(tǒng)為運(yùn)行平臺(tái)的嵌入式文件系統(tǒng)。系統(tǒng)采用日志文件系統(tǒng)設(shè)計(jì)思想,使Flash存儲(chǔ)設(shè)備得到更加合理的利用。系統(tǒng)實(shí)現(xiàn)代碼精簡,資源占用率低,執(zhí)行效率高,安全性能好。
標(biāo)簽: 嵌入式系統(tǒng) ucosii 文件系統(tǒng)
上傳時(shí)間: 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.
標(biāo)簽: matlab fft
上傳時(shí)間: 2015-11-23
上傳用戶:石灰?guī)r123
日出日落時(shí)間計(jì)算 我能給你一個(gè)粗略的計(jì)算公式 日出時(shí)間計(jì)算公式: 24*(180+時(shí)區(qū)*15-經(jīng)度-Acos(-TAN(-23.4*cos(360*(日期序列數(shù)+9)/365))*TAN(緯度))/360 我國時(shí)區(qū)為東8區(qū),時(shí)區(qū)=8 經(jīng)度、緯度采用角度制,東經(jīng)、北緯為正,西經(jīng)、南緯為負(fù) 日期序列數(shù)為當(dāng)天在這一年中的序列,如2月11日就是42 因?yàn)橛?jì)算機(jī)一般采用弧度制,上面公式可變化為: 24*(180+時(shí)區(qū)*15-經(jīng)度-Acos(-TAN(-23.4*cos(2*π*(日期序列數(shù)+9)/365)*π/180)*TAN(緯度*π/180))*180/π)/360 計(jì)算結(jié)果是一個(gè)小于24的數(shù)值,如6.69,表示6:41 日落時(shí)間計(jì)算公式:24*(1+(時(shí)區(qū)*15-經(jīng)度)/180)-日出時(shí)間
標(biāo)簽: 日出日落時(shí)間計(jì)算
上傳時(shí)間: 2015-11-23
上傳用戶:曾阿強(qiáng)啊
共軛梯度法為求解線性方程組而提出。后來,人們把這種方法用于求解無約束最優(yōu)化問題, 使之成為一種重要的最優(yōu)化方法。 共軛梯度法的基本思想是把共軛性與最速下降方法相結(jié)合, 利用已知點(diǎn)處的梯度構(gòu)造一組共 軛方向, 并沿這組方向進(jìn)行搜索, 求出目標(biāo)函數(shù)的極小點(diǎn)。 根據(jù)共軛方向的基本性質(zhì), 這種 方法具有二次終止性。 在各種優(yōu)化算法中, 共軛梯度法是非常重要的一種。 其優(yōu)點(diǎn)是所需存 儲(chǔ)量小,具有步收斂性,穩(wěn)定性高,而且不需要任何外來參數(shù)。 共軛方向 無約束最優(yōu)化方法的核心問題是選擇搜索方向 . 在本次實(shí)驗(yàn)中 , 我們運(yùn)用基于共軛方向的一種 算法 — 共軛梯度法 三.算法流程圖: 四.實(shí)驗(yàn)結(jié)果: (1). 實(shí)驗(yàn)函數(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; 給定初始點(diǎn) (0,0,0) , k=1 ,最 大迭代次數(shù) n ? ? d 確定搜索方向 進(jìn) 退 法 確 定 搜 索 區(qū) 間 分割法確定最 優(yōu)步長
上傳時(shí)間: 2016-05-08
上傳用戶:saren11
在基于實(shí)時(shí)操作系統(tǒng)的應(yīng)用程序設(shè)計(jì)中,任務(wù)設(shè)計(jì)是整個(gè)應(yīng)用程序的基礎(chǔ),其他軟件設(shè) 計(jì)工作都是圍繞任務(wù)設(shè)計(jì)來展開,任務(wù)設(shè)計(jì)就是設(shè)計(jì)“任務(wù)函數(shù)”和相關(guān)的數(shù)據(jù)結(jié)構(gòu)。
上傳時(shí)間: 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('導(dǎo)數(shù)值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(shù)值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(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('導(dǎo)數(shù)值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(shù)值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(shù)值'); title('Vzzz'); grid on %% %垂直臺(tái)階 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('垂直臺(tái)階重力異常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(shù)值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(shù)值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(shù)值'); title('Vzzz'); grid on %% %傾斜臺(tái)階 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('傾斜臺(tái)階重力異常Δg'); grid on subplot(2,2,2) plot(x,Vxz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(shù)值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(shù)值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(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('導(dǎo)數(shù)值'); title('Vxz'); grid on subplot(2,2,3) plot(x,Vzz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(shù)值'); title('Vzz'); grid on subplot(2,2,4); plot(x,Vzzz); xlabel('水平距離(m)'); ylabel('導(dǎo)數(shù)值'); title('Vzzz'); grid on
上傳時(shí)間: 2019-05-10
上傳用戶:xiajiang
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1