Synthetic Division with Matlab

版本 1.0.0 (2.3 KB) 作者: Lawrence Agbezuge
Purpose: Perform synthetic division of the rational function N(x)/D(x), where N(x) is a polynomial and D(x) is of the form x+k.
60.0 次下载
更新时间 2019/11/8

查看许可证

Purpose:
Perform synthetic division of the rational function N(x)/D(x), where
N(x), the numerator, is a polynomial of degree n, expressed by
N(x) = a(n)*x^n + a(n-1)*x^(n-1) + ... + a(1)*x + a0
D(x), the denominator, is expressed by
D(x) = x - k, k=constant.
Usage: synthDiv
You will be prompted to enter coefficients for the polynomial N(x),
and the value for k. You should enter a complete polynomial,
with zero coefficients for missing powers of x.
Example:
Evaluate (x^5 + 3*x^4 + 2*x^3 - 7*x + 8)/(x+2)
That is,
N(x) = x^5 + 3*x^4 + 2*x^3 + 0*x^2 - 7*x + 8 (degree is n=5)
D(x) = x+2 (k = -2)

The coefficients for N(x) are 1,3,2,0,-7,8
Note that all coefficients for N(x) are required.
The quadratic term x^2 is absent, therefore it has a coefficient of 0.

引用格式

Lawrence Agbezuge (2024). Synthetic Division with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/73298-synthetic-division-with-matlab), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2019b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Polynomials 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0