Scilab Function

diophant - diophantine (Bezout) equation

Calling Sequence

[x,err]=diophant(p1p2,b)

Parameters

Description

diophant solves the bezout equation:

p1*x1+p2*x2=b with p1p2 a polynomial vector. If the equation is not solvable

else err=0

Examples