Improve `rationalize` fallback result #61297
Improve `rationalize` fallback result + tests
bfce4943
Avoid broadcasting
b5f1963b
Avoid broadcasting
0d6f11b9
Prevent integer overflow
6d07844a
Rename variable so we can reuse `a` instead of calling `div` again
77f4818d
Test cases where the output components are close to overflow
dd9d1619
Merge branch 'master' into rationalize_fallback_result
3c1f9fa3
Merge branch 'master' into rationalize_fallback_result
bbeff4b6
Prevent integer overflow and allow fallback from `1//0`
550995c5
adienes
approved these changes
on 2026-03-18
adienes
merged
775e1fdf
into master 52 days ago
Assignees
No one assigned
Labels
rationals
maths
bugfix
Login to write a write a comment.
Login via GitHub