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

📄 pfe.m

📁 Programs for the book Advanced Engineering Mathematics using MATLAB, 2ndEd.
💻 M
字号:
function [K,S,p] = pfe
% PFE.M
%  Partial fraction expansion of polynomial P/Q
% CALL: [K,S,p]= pfe
% INPUTS:  From Keyboard as array [a0 a1 ... an]
%	   P Numerator polyomial coefficients in decending order
%          Q Denominator polynomial coefficients in decending order
% OUTPUTS: K Column vector of coefficients in the expansion
%          S Column vector of corresponding roots of the denominator 
%            in the expansion
%          p Coefficients of polynomial if P/Q is not proper fraction	al
%
P=input('Coefficients of numerator in decending order = ')
Q=input('Coefficients of denominator in decending order = ')
[K,S,p]=residue(P,Q);	

% 
% Note: residue can also reconstruct P/Q if three arguments are
%        given. See command nargin.

⌨️ 快捷键说明

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