Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9cf13e5

Browse files
authored
Merge branch 'cp-algorithms:main' intoGH-1005/pells-eqn
2 parentsd6206c9 +5b32a92 commit9cf13e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/algebra/extended-euclid-algorithm.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int gcd(int a, int b, int& x, int& y) {
9393
}
9494
```
9595

96-
If you look closely at the variables`a1` and`b1`, you can notice that they take exactly the same values as in the iterative version of the normal[Euclidean algorithm](euclid-algorithm.md). So the algorithm will at least compute the correct GCD.
96+
If you look closely at the variables`a1` and`b1`, you can notice that they take exactly the same values as in the iterative version of the normal[Euclidean algorithm](euclid-algorithm.md#implementation). So the algorithm will at least compute the correct GCD.
9797

9898
To see why the algorithm computes the correct coefficients, consider that the following invariants hold at any given time (before the while loop begins and at the end of each iteration):
9999

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp