当前位置:网站首页>Four operations and derivative operations of MATLAB polynomials
Four operations and derivative operations of MATLAB polynomials
2022-07-05 11:58:00 【**inevitable**】
MATLAB Four operations of polynomials and derivative operations
- Addition and subtraction operations can be performed directly through "+“ and ”-" To achieve , Different orders , Lower order polynomials must use 0 To fill
- Multiplication passes conv Function implementation , This function is equivalent to finding the convolution of two arrays
for example : Find a polynomial x3+2x2+3x+4 With the polynomial x2+2x+3 Multiply , The code is as follows :
The results obtained are as follows :p1 = [1 2 3 4]; p2 = [1 2 3]; p3 = conv(p1,p2); % Get the coefficient of polynomial multiplication multinomial = poly2sym(p3); % Find the polynomial according to the coefficient
- For division operation, you can pass deconv Function implementation , Equivalent to deconvolution
% Function description
[s,r] = deconv(p,q)
%p: Divisible form
%q: Division
%s: merchant
%r: The rest of the formula
for example : Find a polynomial x3+2x2+3x+4 With the polynomial x2+2x+3 be divided by , The code is as follows :
p1 = [1 2 3 4];
p2 = [1 2 3];
[s,r] = deconv(p1,p2); % Obtain the quotient and remainder after the division of polynomials
The results are as follows :
- For the derivative operation of polynomials, you can use polyder Function implementation
for example :
p = [1 2 3 4];
a = poly2sym(p)
b = poly2sym(polyder(p))
The results are shown below :
边栏推荐
- Redis集群的重定向
- Codeforces Round #804 (Div. 2)
- 【yolov5.yaml解析】
- [pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]
- [crawler] bugs encountered by wasm
- Uniapp + unicloud + Unipay realize wechat applet payment function
- Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises
- 一次生产环境redis内存占用居高不下问题排查
- abap查表程序
- redis主从模式
猜你喜欢

Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises
![[yolov3 loss function]](/img/79/87bcc408758403cf3993acc015381a.png)
[yolov3 loss function]

Multi table operation - sub query

《增长黑客》阅读笔记

Uniapp + unicloud + Unipay realize wechat applet payment function

yolov5目标检测神经网络——损失函数计算原理
![[cloud native | kubernetes] actual battle of ingress case (13)](/img/1a/9404f6dcedd15827fa45f8f6f4c093.png)
[cloud native | kubernetes] actual battle of ingress case (13)

Reading notes of growth hacker

redis主从模式

谜语1
随机推荐
Vscode shortcut key
13.(地图数据篇)百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
Redirection of redis cluster
Project summary notes series wstax kt session2 code analysis
leetcode:1200. Minimum absolute difference
byte2String、string2Byte
[untitled]
跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
vscode快捷键
简单解决redis cluster中从节点读取不了数据(error) MOVED
redis 集群模式原理
Reading notes of growth hacker
石油化工企业安全生产智能化管控系统平台建设思考和建议
多表操作-子查询
【 YOLOv3中Loss部分计算】
手机 CPU 架构类型了解
Network five whip
[yolov5.yaml parsing]
redis集群中hash tag 使用
如何让你的产品越贵越好卖