Polydiv

Parent Previous Next

Polydiv


Polynomial division



Syntax


polydiv(x, y)

x, y are vectors

The input arguments x, y define two polynomials where the elements of the vectors are the coefficients in descending powers of the defined polynomial. polydiv(x, y) return a vector which contains the coefficients of the dividend polynomial of the two polynomials


Example


Input

Output

a=[2,0,2,-1,2,-1]

b=[1,0,0,-1]

polydiv(a,b)


See Also


Created with the Personal Edition of HelpNDoc: Free Kindle producer