polynomial.asv
来自「this file consists of many matlab progra」· ASV 代码 · 共 13 行
ASV
13 行
%%OPERATATIONS ON POLYNOMIALS%%
p=[1 3 2]; %%representing polynomial x^2+3x+2%%
r=roots(p) %%finding roots of polynomial%%
poly(r) %% finding coefficients from roots of polynomial%%
polyval(p,3)%%value of polynomial at x=3%%
q=[2 3 1];
c=conv(p,q)%%multiplying polynomials p and q%%
deconv(c,p)%%for c/p=q%%
d=polyder(c)%%derivative of equation%%
x=(1:.5:4)
y=[12 23 26 34 43 51 64]
z=polyfit(x,y,5) %%fitting curve in form of polynomial of order 5%%
residue
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?