Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcd(a,b) != gcdx(a,b)[1] #58025

Open
LilithHafner opened this issue Apr 6, 2025 · 0 comments
Open

gcd(a,b) != gcdx(a,b)[1] #58025

LilithHafner opened this issue Apr 6, 2025 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior maths Mathematical functions

Comments

@LilithHafner
Copy link
Member

From the documentation I would expect gcdx's first return value to always equal gcd's return value on the same arguments. And yet:

julia> gcdx(UInt16(100), Int8(-101))
(0x0005, 0xf855, 0x0003)

julia> gcd(UInt16(100), Int8(-101))
0x0001

See also #58010

@LilithHafner LilithHafner added bug Indicates an unexpected problem or unintended behavior maths Mathematical functions labels Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior maths Mathematical functions
Projects
None yet
Development

No branches or pull requests

1 participant