⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chp6ex3.m

📁 Those who are working on power system optimisatio, for them here is all the load flow programs from
💻 M
字号:
chp6fig4                        % Graphical display for Example 6.3
dx=1;                   % Change in variable is set to a high value
x=2;                                             % Initial estimate
iter = 0;                                       % Iteration counter
disp('Iter    g         dx        x')         % Heading for results
while abs(dx) >= 0.001 & iter < 100          % Test for convergence
iter = iter + 1;                                % No. of iterations
g = -1/9*x^3+6/9*x^2+4/9;
dx = g-x;                                      % Change in variable
x = x + 1.25*dx; % Successive approximation with 1.25 accel. factor
fprintf('%g', iter), disp([g, dx, x])
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -