当前位置:网站首页>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 :
边栏推荐
- Application of a class of identities (vandermond convolution and hypergeometric functions)
- 手机 CPU 架构类型了解
- MySQL statistical skills: on duplicate key update usage
- Pytorch softmax regression
- Wireless WiFi learning 8-channel transmitting remote control module
- pytorch-softmax回归
- Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
- MVVM framework part I lifecycle
- abap查表程序
- The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix
猜你喜欢

pytorch-权重衰退(weight decay)和丢弃法(dropout)

Idea set the number of open file windows

Uniapp + unicloud + Unipay realize wechat applet payment function

XML解析

【pytorch 修改预训练模型:实测加载预训练模型与模型随机初始化差别不大】

Redis cluster (master-slave) brain crack and solution

yolov5目标检测神经网络——损失函数计算原理

1 plug-in to handle advertisements in web pages

Check the debug port information in rancher and do idea remote JVM debug
![[crawler] bugs encountered by wasm](/img/29/6782bda4c149b7b2b334238936e211.png)
[crawler] bugs encountered by wasm
随机推荐
【load dataset】
[cloud native | kubernetes] actual battle of ingress case (13)
互联网公司实习岗位选择与简易版职业发展规划
多表操作-自关联查询
Halcon template matching actual code (I)
How to protect user privacy without password authentication?
【L1、L2、smooth L1三类损失函数】
Programmers are involved and maintain industry competitiveness
POJ 3176 cow bowling (DP | memory search)
splunk配置163邮箱告警
Prevent browser backward operation
12.(地图数据篇)cesium城市建筑物贴图
Pytorch MLP
【load dataset】
SET XACT_ ABORT ON
byte2String、string2Byte
Install esxi 6.0 interactively
Wireless WiFi learning 8-channel transmitting remote control module
【yolov3损失函数】
Solve readobjectstart: expect {or N, but found n, error found in 1 byte of