前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Adams-Bashforth-Euler格式的稳定域。

Adams-Bashforth-Euler格式的稳定域。

作者头像
裴来凡
发布2022-05-28 15:27:20
3500
发布2022-05-28 15:27:20
举报
文章被收录于专栏:图像处理与模式识别研究所

Adams_Bashforth_2.m

代码语言:javascript
复制
figure(1), clf, hold on

    % Plot of stability domain
theta = 0:0.01:1; theta = theta*pi;
z = exp(2*i*theta) - exp(i*theta); z = z./(1.5*exp(i*theta) - 0.5); plot(z)

    % Plot of oval
b = 0.5^0.25; a = 0.5; z =  - a*(1-cos(theta)) + i*b*(sin(theta)).^0.5;
plot(z,'--')

    % Plot of half ellipse
a = 1.0; b = sqrt(2/3); theta = -pi/2 +0.5*theta;
z = -a*cos(theta) - i*b*sin(theta); plot(z,'.')

Adams_Bashforth_3.m

代码语言:javascript
复制
figure(1), clf, hold on

    % Plot of stability domain
theta = 0:0.01:1; theta = theta*pi;
z = exp(3*i*theta) - exp(2*i*theta);
z = 12*z./(23*exp(2*i*theta) - 16*exp(i*theta) + 5); plot(z)

    % Plot of half ellipse
a =6/11;b = (72/11)*sqrt(2/235); theta = pi/2 + 0.5*theta;
z = a*cos(theta) + i*b*sin(theta); plot(z,'--');

z = [0  0.8*i]; plot(z)%   Plot of imaginary axis

Adams_Bashforth_Crank_Nicolson.m

代码语言:javascript
复制
figure(1), clf, hold on

    % Plot of stability domain
theta = 0:0.005:0.8; theta = theta*pi; c = (2-cos(theta)).*(1+cos(theta));
a = 0.5*(1-cos(theta)).^2./c; b = - 2*sin(theta)./c; z = -(a+i*b); plot(z)

    % Plot of oval
a = 0.5; b = 0.75^0.25; theta = 0:0.002:1; theta = theta*pi;
z =  - a*(1-cos(theta)) + i*b*(sin(theta)).^0.5; plot(z,'--')

    % Plot of parabola
yy = 0:0.02:2; par = -0.75*(yy).^2; plot(par,yy,'.')

Adams_Bashforth_Euler.m

代码语言:javascript
复制
figure(1), clf, hold on

    % Plot of stability domain
theta = 0:0.01:1; theta = theta*pi;
z = - 2*(1-cos(theta)).^2./(3-cos(theta)) + i*2*sin(theta)./(3-cos(theta));
plot(z)

    % Stability domain of second order Adams-Bashforth scheme
z = exp(2*i*theta) - exp(i*theta); z = z./(1.5*exp(i*theta) - 0.5); plot(z,'-.')

    % Plot of oval
b = 1; a = 1; z =  - a*(1-cos(theta)) + i*b*(sin(theta)).^0.5; plot(z,'--')

    % Plot of half ellipse
a = 2.0; b = sqrt(1/3); theta = -pi/2 +0.5*theta;
z = - a*cos(theta) - i*b*sin(theta); plot(z,'.')

BDF2.m

代码语言:javascript
复制
figure(1), clf

    % Plot of stability domain
theta = 0:0.01:1; theta = theta*pi;
z = 0.5*exp(-2*i*theta) - 2*exp(-i*theta) +3/2; plot(z)

Extrapolated_BDF.m

代码语言:javascript
复制
figure(1), clf, hold on

    % Plot of stability domain
theta = 0:0.01:0.5; theta = theta*pi;
a = (6*cos(theta)-9)./(2*cos(2*theta) - 4*cos(theta)) - 3/2;
b = (sin(theta).*(2-cos(theta)))./(cos(2*theta) - 2*cos(theta));
z = - a - i*b; plot(z)

    % Plot of oval
a = 1; b =(2*a/4)^(1/4); theta = 0:0.002:1; theta = theta*pi;
z =  - a*(1-cos(theta)) + i*b*(sin(theta)).^0.5; plot(z,'--')

    % Plot of parabola
yy = 0:0.02:1.8; b = 1; par = -(yy/b).^2; plot(par,yy,'.')
本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2020-05-20,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 图像处理与模式识别研究所 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档