%例17-4 多项式求值 s=[3 5 -4 2] a=2.7 polyval(s,a) 3*a*a*a+5*a*a-4*a+2
一元多项式 源代码
汇集 一元多项式 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
%例17-1 多项式求根 p = [1 -6 -72 -27] r = roots(p)
%例17-4 多项式求值 s=[3 5 -4 2] a=2.7 polyval(s,a) 3*a*a*a+5*a*a-4*a+2
%例17-1 多项式求根 p = [1 -6 -72 -27] r = roots(p)
%例17-4 多项式求值 s=[3 5 -4 2] a=2.7 polyval(s,a) 3*a*a*a+5*a*a-4*a+2
%例17-1 多项式求根 p = [1 -6 -72 -27] r = roots(p)
#include #include #define OK 1; #define READ(I) while (((I)=getchar())=='\n'); //读入合法字符 typedef int status; typedef …
#include #include typedef struct { float coef; //系数 int expn; //指数 }term; typedef struct LNode { term data; …
#include #include #include struct _SExpNode { int data1; int data2; struct _SExpNode *next; }; typedef struct…
%poly_example.m %由根创建多项式 r=[-2 2 1]; p=poly(r); str=poly2str(p)