Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Polynomials > pdiv

pdiv

polynomial division

Syntax

[R,Q]=pdiv(P1,P2)
[Q]=pdiv(P1,P2)

Arguments

P1

polynomial matrix

P2

polynomial or polynomial matrix

R,Q

two polynomial matrices

Description

Element-wise euclidan division of the polynomial matrix P1 by the polynomial P2 or by the polynomial matrix P2. Rij is the matrix of remainders, Qij is the matrix of quotients and P1ij = Qij*P2 + Rij or P1ij = Qij*P2ij + Rij.

Examples

x=poly(0,'x');
p1=(1+x^2)*(1-x);p2=1-x;
[r,q]=pdiv(p1,p2)
p2*q-p1
p2=1+x;
[r,q]=pdiv(p1,p2)
p2*q+r-p1

See also

  • ldiv — polynomial matrix long division
  • pfss — partial fraction decomposition
  • gcd — Greatest (positive) Common Divisor
VersionDescription
6.0.0 pdiv return a matrix of type 'constant' when all ranks are 0.
Report an issue
<< numer Polynomials pol2str >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:26:48 CET 2018