-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Labels
correctness bug ⚠Bugs that are likely to lead to incorrect results in user code without throwingBugs that are likely to lead to incorrect results in user code without throwingmathsMathematical functionsMathematical functions
Description
The extension of lcm() and gcd() to both Array and Rational was incorrect. The case of the gcd has been corrected in #34417, but not the lcm:
lcm([1//2;1//2])
1//1 # false
lcm(1//2,1//2)
1//2 # true
Metadata
Metadata
Assignees
Labels
correctness bug ⚠Bugs that are likely to lead to incorrect results in user code without throwingBugs that are likely to lead to incorrect results in user code without throwingmathsMathematical functionsMathematical functions