亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ode_drv.m

?? ode routines in matlab
?? M
字號:
% % ode_drv.m: simple driver for ode solvers%%%  Solution of the chemical reaction system%                         %    y_1'(x) = -k1*y_1(x) %    y_2'(x) =  k1*y_1(x) - k2*y_2(x)%    y_3'(x) =              k2*y_2(x)%%clf;% declare reaction rates as global variablesglobal k1 k2x0    = 0;x_end = 10;y0    = [ 1; 0; 0];k1    = 1;k2    = 10;rhs_fctn   = 'ChemReac';h = 0.2;% Exact solutionmx    = ceil((x_end-x0)/ h);x     = (x0:h:x0+mx*h);[x, y_exp] = ExpEuler( x0, x_end, y0, h, rhs_fctn );% Plot the computed solutionsubplot(2,2,1)plot(x,y_exp(1,:),'g',x,y_exp(2,:),'r',x,y_exp(3,:),'b');legend('y_1', 'y_2', 'y_3') xlabel(' x ')title([' Explicit Euler, h = ', num2str(h) ])[x, y_imp] = ImpEuler( x0, x_end, y0, h, rhs_fctn );% Plot the computed solutionsubplot(2,2,3)plot(x,y_imp(1,:),'g',x,y_imp(2,:),'r',x,y_imp(3,:),'b');legend('y_1', 'y_2', 'y_3') xlabel(' x ')title([' Implicit Euler, h = ', num2str(h) ])% Compute exact solutionA = [ -k1   0   0;       k1  -k2  0;       0    k2  0 ];[V,D] = eig(A);y_ex = zeros(3,length(x));for j = 1:length(x)    y_ex(:,j)  = V*(exp(diag(D)*x(j)).*(V\y0));end% Plot the error in the computed solutionsubplot(2,2,2)plot(x,abs(y_exp(1,:)-y_ex(1,:)),'g'); hold onplot(x,abs(y_exp(2,:)-y_ex(2,:)),'r'); hold onplot(x,abs(y_exp(3,:)-y_ex(3,:)),'b'); hold offlegend('y_1', 'y_2', 'y_3') xlabel(' x ')title([' Error, Explicit Euler, h = ', num2str(h) ])% Plot the error in the computed solutionsubplot(2,2,4)plot(x,abs(y_imp(1,:)-y_ex(1,:)),'g'); hold onplot(x,abs(y_imp(2,:)-y_ex(2,:)),'r'); hold onplot(x,abs(y_imp(3,:)-y_ex(3,:)),'b'); hold offlegend('y_1', 'y_2', 'y_3') xlabel(' x ')title([' Error, Implicit Euler, h = ', num2str(h) ])returndisp(' Hit key to continue .....')pause%  Solution of the %                         %    y_1'(x) =  y_2(x)%               %    y_2'(x) =  4*y_1(x) + 3*y_2(x) - 8*exp(x) * cos(2x)%                %  with initial conditions%%    y_1(0) =  2 + 10/13             %    y_2(0) = -3 + 14/13%%  This system is equivalent to the second order ODE%%    z''(x) - 3 z'(x) - 4 z(x) = - 8 exp(x) * cos(2x)%%  The exact solution of the system is given by%    y_1(x) =  exp(-x) + exp(4*x) %               + 10/13 * exp(x) * cos(2x) + 2/13 * exp(x) * sin(2x)%               %    y_2(x) = -exp(-x) + 4 * exp(4*x) %               + 14/13 * exp(x) * cos(2x) - 18/13 * exp(x) * sin(2x)%clf;x0    = 0;x_end = 1;y0    = [ 2 + 10/13; 3 + 14/13];rhs_fctn   = 'Ex1';h = 0.02;% Exact solutionmx    = ceil(x_end-x0)/ h;x     = (x0:h:x0+mx*h);y_ex  = [ exp(-x) + exp(4*x) + (10/13)*exp(x).*cos(2*x) ...              + (2/13)*exp(x).*sin(2*x);         -exp(-x) + 4*exp(4*x) + (14/13)*exp(x).*cos(2*x) ...              - (18/13).*exp(x).*sin(2*x) ];[x, y_exp] = ExpEuler( x0, x_end, y0, h, rhs_fctn );% Plot the computed solutionsubplot(2,2,1)plot(x,y_exp(1,:),'g'); hold onplot(x,y_exp(2,:),'r'); hold offlegend('y_1', 'y_2') xlabel(' x ')title([' Explicit Euler, h = ', num2str(h) ])% Plot the error in the computed solutionsubplot(2,2,2)plot(x,abs(y_exp(1,:)-y_ex(1,:)),'g'); hold onplot(x,abs(y_exp(2,:)-y_ex(2,:)),'r'); hold offlegend('y_1', 'y_2') xlabel(' x ')title([' Error, Explicit Euler, h = ', num2str(h) ])[x, y_imp] = ImpEuler( x0, x_end, y0, h, rhs_fctn );% Plot the computed solutionsubplot(2,2,3)plot(x,y_imp(1,:),'g'); hold onplot(x,y_imp(2,:),'r'); hold offlegend('y_1', 'y_2') xlabel(' x ')title([' Implicit Euler, h = ', num2str(h) ])% Plot the error in the computed solutionsubplot(2,2,4)plot(x,abs(y_imp(1,:)-y_ex(1,:)),'g'); hold onplot(x,abs(y_imp(2,:)-y_ex(2,:)),'r'); hold offlegend('y_1', 'y_2') xlabel(' x ')title([' Error, Implicit Euler, h = ', num2str(h) ])disp(' Hit key to continue .....')pause%  Predator Prey model 1%%%    y_1'(x) = alpha*y_1(x) - beta*y_1(x)*y_2(x)%    y_2'(x) = gamma*y_2(x)  + delta*y_1(x)*y_2(x)%%%clf;x0    = 0;x_end = 20;y0    = [ 80; 30];rhs_fctn   = 'PredPrey';h = 0.05;[x, y_exp] = ExpEuler( x0, x_end, y0, h, rhs_fctn );% Plot the computed solutionsubplot(2,2,1)plot(x,y_exp(1,:),'g'); hold onplot(x,y_exp(2,:),'r'); hold offlegend('Population 1', 'Population 2') xlabel(' Time ')title([' Explicit Euler, h = ', num2str(h) ])[x, y_imp] = ImpEuler( x0, x_end, y0, h, rhs_fctn );% Plot the computed solutionsubplot(2,2,2)plot(x,y_imp(1,:),'g'); hold onplot(x,y_imp(2,:),'r'); hold offlegend('Population 1', 'Population 2') xlabel(' Time ')title([' Implicit Euler, h = ',  num2str(h) ])% Plot the difference in computed solutionssubplot(2,2,3)plot(x,abs(y_exp(1,:)-y_imp(1,:)),'g'); hold onplot(x,abs(y_exp(2,:)-y_imp(2,:)),'r'); hold offlegend('Population 1', 'Population 2') xlabel(' Time ')title([' Difference in Computed Solutions, h = ',  num2str(h) ])disp(' Hit key to continue .....')pause%  Predator Prey model 2%%                                         y_1(x) * y_2(x)%    y_1'(x) = 1.2 * y_1(x) - y_1^2(x) -  ---------------%                                          y_1(x) + 0.2%%               1.5 * y_1(x) * y_2(x)%    y_2'(x) =  ---------------------  -  y_2(x)%                   y_1(x) + 0.2%%%clf;x0    = 0;x_end = 30;y0    = [ 1; 0.75];rhs_fctn   = 'PredPrey2';h = 0.001;[x, y_exp] = ExpEuler( x0, x_end, y0, h, rhs_fctn );% Plot the computed solutionsubplot(2,2,1)plot(x,y_exp(1,:),'g'); hold onplot(x,y_exp(2,:),'r'); hold offlegend('Population 1', 'Population 2') xlabel(' Time ')title([' Explicit Euler, h = ', num2str(h) ])[x, y_imp] = ImpEuler( x0, x_end, y0, h, rhs_fctn );% Plot the computed solutionsubplot(2,2,2)plot(x,y_imp(1,:),'g'); hold onplot(x,y_imp(2,:),'r'); hold offlegend('Population 1', 'Population 2') xlabel(' Time ')title([' Implicit Euler, h = ',  num2str(h) ])% Plot the difference in computed solutionssubplot(2,2,3)plot(x,abs(y_exp(1,:)-y_imp(1,:)),'g'); hold onplot(x,abs(y_exp(2,:)-y_imp(2,:)),'r'); hold offlegend('Population 1', 'Population 2') xlabel(' Time ')title([' Difference in Computed Solutions, h = ',  num2str(h) ])

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产乱码精品一区二区三区av| 成人国产精品免费观看动漫| 色94色欧美sute亚洲线路二| 综合久久久久久| 99久久精品情趣| 一区二区三区鲁丝不卡| 欧美综合天天夜夜久久| 日日夜夜免费精品视频| 日韩欧美国产三级| 国产aⅴ综合色| 亚洲欧美日韩国产手机在线| 日本黄色一区二区| 日韩精品一级中文字幕精品视频免费观看| 欧美在线色视频| 久久福利视频一区二区| 国产喷白浆一区二区三区| 99精品在线观看视频| 亚洲一区在线观看免费观看电影高清| 三级一区在线视频先锋| 欧美一区二区三区啪啪| 色哟哟国产精品| 午夜一区二区三区在线观看| 日韩一区二区三区电影| 成人夜色视频网站在线观看| 亚洲第一激情av| 久久综合九色综合欧美亚洲| 99免费精品在线观看| 亚洲国产cao| 国产视频一区二区三区在线观看 | 国产suv精品一区二区三区| 一区精品在线播放| 欧美一区中文字幕| av亚洲产国偷v产偷v自拍| 午夜成人免费电影| 国产农村妇女毛片精品久久麻豆| 色老汉一区二区三区| 狠狠狠色丁香婷婷综合久久五月| 亚洲人成伊人成综合网小说| 日韩女优av电影在线观看| 国产精品二三区| 久久久国产精品午夜一区ai换脸| av中文字幕不卡| 日韩综合在线视频| 亚洲欧美日韩在线不卡| 一区二区三区四区不卡在线 | 91蝌蚪国产九色| 麻豆高清免费国产一区| 亚洲视频在线观看一区| 精品av久久707| 欧美色区777第一页| 成人97人人超碰人人99| 美脚の诱脚舐め脚责91| 午夜欧美在线一二页| 中文欧美字幕免费| 久久综合五月天婷婷伊人| 欧美日韩高清影院| 在线免费观看不卡av| 国产成人福利片| 精品亚洲国产成人av制服丝袜| 亚洲电影中文字幕在线观看| 《视频一区视频二区| 91精品国产91久久久久久一区二区 | 国产福利电影一区二区三区| 亚洲成人你懂的| 一区二区三区在线免费| 国产精品伦一区二区三级视频| 欧美成人在线直播| 欧美日韩成人一区| 91极品视觉盛宴| 91免费观看视频| 不卡一区在线观看| 懂色av中文一区二区三区| 国产最新精品免费| 奇米精品一区二区三区在线观看一| 五月激情综合婷婷| 久草这里只有精品视频| 天堂在线亚洲视频| 亚洲第一成人在线| 亚洲一二三四在线| 亚洲第一av色| 成人网在线播放| 麻豆精品一区二区av白丝在线| 亚洲国产视频一区| 亚洲图片欧美综合| 午夜欧美视频在线观看| 香港成人在线视频| 欧美a级理论片| 久久成人综合网| 久久97超碰色| 国产成人免费视频网站高清观看视频 | 欧美喷水一区二区| 7777精品伊人久久久大香线蕉超级流畅| 欧美久久久久久久久久| 91精品在线免费| 日韩久久精品一区| 久久精品日韩一区二区三区| 国产精品伦一区二区三级视频| 亚洲男人的天堂网| 亚洲成人午夜电影| 精品一区二区影视| 成+人+亚洲+综合天堂| 色婷婷av一区二区三区大白胸| 欧美午夜影院一区| 欧美一区二区三区啪啪| 亚洲综合一区二区| 日本欧美肥老太交大片| 国产在线播放一区二区三区| 成人免费视频播放| 欧美视频一区在线观看| 日韩女优av电影在线观看| 亚洲国产精品高清| 午夜精品久久久久久久| 韩国精品一区二区| 色88888久久久久久影院按摩| 91精品国产欧美日韩| 国产日韩欧美精品一区| 亚洲综合色网站| 激情五月婷婷综合| 91蜜桃视频在线| 欧美一区二区三区免费视频| 亚洲国产精品成人综合| 天天色 色综合| 成人一级黄色片| 欧美一区二区视频在线观看2022| 中文字幕免费不卡| 婷婷久久综合九色综合伊人色| 国产馆精品极品| 欧美日韩国产另类一区| 国产欧美中文在线| 日产欧产美韩系列久久99| 成人午夜视频福利| 欧美一区二区在线观看| 亚洲欧美激情小说另类| 激情偷乱视频一区二区三区| 一本大道av一区二区在线播放| 精品国产免费久久| 国产成人av资源| 777奇米四色成人影色区| 中文字幕一区二区三区蜜月| 美女视频免费一区| 欧美日韩你懂得| 中文字幕一区二区三区不卡在线| 极品尤物av久久免费看| 欧美日韩精品电影| 亚洲乱码国产乱码精品精98午夜 | 亚洲国产色一区| 成人av在线资源网站| 精品免费国产二区三区| 日韩成人午夜电影| 日本韩国欧美在线| 国产精品久久久久久户外露出| 激情综合色综合久久| 5858s免费视频成人| 亚洲永久免费av| 色综合久久久久| 国产精品电影院| 北岛玲一区二区三区四区| 26uuu国产日韩综合| 色妹子一区二区| 一区二区在线观看视频| 国产精品456| 久久先锋影音av鲁色资源网| 免费在线观看精品| 3d动漫精品啪啪| 日韩综合在线视频| 91精品综合久久久久久| 天堂成人免费av电影一区| 欧美日韩激情在线| 亚洲国产另类av| 欧美日韩高清在线播放| 天堂影院一区二区| 欧美一区二区三区免费大片| 另类小说图片综合网| 欧美成人一区二区三区| 国产美女主播视频一区| 国产亚洲精品精华液| 国产99一区视频免费| 亚洲欧美在线高清| 色婷婷综合在线| 亚洲成人免费在线观看| 91精品国产91热久久久做人人| 另类小说一区二区三区| 久久久久久99精品| 久久99精品国产麻豆婷婷洗澡| 日韩一区二区三区精品视频 | 91麻豆国产在线观看| 亚洲人成影院在线观看| 91久久精品一区二区三| 亚洲成av人片一区二区三区| 91麻豆精品国产91久久久久久久久| 喷水一区二区三区| 国产欧美精品在线观看| 日韩欧美国产综合一区 | 国产精品66部| 1024亚洲合集| 337p亚洲精品色噜噜| 国产尤物一区二区在线| 一区免费观看视频| 8x福利精品第一导航| 国产精品99久|