当前位置:网站首页>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 :
边栏推荐
- Prevent browser backward operation
- [mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]
- Solve the grpc connection problem. Dial succeeds with transientfailure
- Unity xlua monoproxy mono proxy class
- [singleshotmultiboxdetector (SSD, single step multi frame target detection)]
- Error modulenotfounderror: no module named 'cv2 aruco‘
- Liunx prohibit Ping explain the different usage of traceroute
- C operation XML file
- 手机 CPU 架构类型了解
- Codeforces Round #804 (Div. 2)
猜你喜欢

splunk配置163邮箱告警

Principle of persistence mechanism of redis

codeforces每日5题(均1700)-第五天

Liunx prohibit Ping explain the different usage of traceroute

【SingleShotMultiBoxDetector(SSD,单步多框目标检测)】
![[loss functions of L1, L2 and smooth L1]](/img/c6/27eab1175766b77d4f030b691670c0.png)
[loss functions of L1, L2 and smooth L1]
The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases

12.(地图数据篇)cesium城市建筑物贴图

报错ModuleNotFoundError: No module named ‘cv2.aruco‘

Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
随机推荐
871. Minimum Number of Refueling Stops
redis 集群模式原理
Dynamic SQL of ibatis
codeforces每日5题(均1700)-第五天
Prevent browser backward operation
[deploy pytoch project through onnx using tensorrt]
How to make your products as expensive as possible
[crawler] bugs encountered by wasm
[leetcode] wild card matching
redis的持久化机制原理
Vscode shortcut key
MySQL statistical skills: on duplicate key update usage
Install esxi 6.0 interactively
Solve the grpc connection problem. Dial succeeds with transientfailure
你做自动化测试为什么总是失败?
《增长黑客》阅读笔记
redis主从中的Master自动选举之Sentinel哨兵机制
Sentinel sentinel mechanism of master automatic election in redis master-slave
Codeworks 5 questions per day (1700 average) - day 5
Check the debug port information in rancher and do idea remote JVM debug