Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
apoorvgarg
· 7y ago · 0 comments
What would be the signature of your gcd function ?
Comments
[–]
base698
7y ago
Numerator, denominator?
[–]
mrgriffin
7y ago
For GCD? I would find those names very misleading since semantically the order of the arguments to GCD is irrelevant (even if in the implementation you typically mod by b there's no reason you couldn't mod by a).
[–]
sacado2
7y ago
This is not mathematically correct. Those names would be pretty misleading, actually.
[–]
coldtea
7y ago
Good luck with any bigger equation then