当前位置:网站首页>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 :
边栏推荐
- [pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]
- [yolov3 loss function]
- Pytorch linear regression
- yolov5目標檢測神經網絡——損失函數計算原理
- XML parsing
- 查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
- What is the difference between canvas and SVG?
- ACID事务理论
- 【PyTorch预训练模型修改、增删特定层】
- pytorch-线性回归
猜你喜欢

Hiengine: comparable to the local cloud native memory database engine

【无标题】

Mongodb replica set
![[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]](/img/1a/dd7453bc5afc6458334ea08aed7998.png)
[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]

Redis master-slave mode

【主流Nivida显卡深度学习/强化学习/AI算力汇总】

mmclassification 训练自定义数据

一次生产环境redis内存占用居高不下问题排查

Linux Installation and deployment lamp (apache+mysql+php)

codeforces每日5题(均1700)-第五天
随机推荐
[configuration method of win11 multi-user simultaneous login remote desktop]
redis的持久化机制原理
How can China Africa diamond accessory stones be inlaid to be safe and beautiful?
【TFLite, ONNX, CoreML, TensorRT Export】
多表操作-子查询
Which domestic cloud management platform manufacturer is good in 2022? Why?
Hiengine: comparable to the local cloud native memory database engine
Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
SET XACT_ ABORT ON
《看完就懂系列》15个方法教你玩转字符串
【无标题】
redis 集群模式原理
Codeworks 5 questions per day (1700 average) - day 5
Intern position selection and simplified career development planning in Internet companies
Linux Installation and deployment lamp (apache+mysql+php)
2048 game logic
JS for循环 循环次数异常
Linux安装部署LAMP(Apache+MySQL+PHP)
Redis集群(主从)脑裂及解决方案
Troubleshooting of high memory usage of redis in a production environment