diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000000000000000000000000000000000..ef788983291c166fbf3eeb73c072d36d6c4f5410 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "files.associations": { + "*.bin": "code-text-binary", + "string.h": "c" + } +} \ No newline at end of file diff --git a/polynomial.py b/polynomial.py index 1f0ae3a956c099795c8b382be82efb64cebda0a8..05175259fa3c246664121f4166654910adab9643 100644 --- a/polynomial.py +++ b/polynomial.py @@ -94,21 +94,12 @@ class Polynomial: def compute_bachet_bezout(a, b): - r = [] - x = [] - y = [] - q = [] - # Init - r.append(a) - x.append(1) - y.append(0) - q.append(0) - - r.append(b) - x.append(0) - y.append(1) - q.append(0) + + r = [a, b] + x = [1, 0] + y = [0, 1] + q = [0, 0] # Computing i = 1