Skip to content

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

@LilithHafner

Description

@LilithHafner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorcorrectness bug ⚠Bugs that are likely to lead to incorrect results in user code without throwingmathsMathematical functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions