113 reputation
3
bio website doublewise.net
location Colorado
age 25
visits member for 2 years, 2 months
seen Jul 16 at 2:39

Jan
18
comment What is the range of the remainder function given you have restricted the domain
Sorry, I hadn't meant to submit my comment yet. The remainder of [3, 6] came from [25, 26] / [10, 11].
Jan
18
comment What is the range of the remainder function given you have restricted the domain
@DavidPeterson: If x lies in the range [20, 21] and y lies in the range [25, 26], then the range of the remainder is [20, 21]. If y lies in the range [10, 11], then the range of the remainder is [3, 6]. Y
Jan
18
asked What is the range of the remainder function given you have restricted the domain
May
21
comment Rewriting repeated integer division with multiplication
While both answers were helpful, I found this much easier to follow.
May
21
awarded  Supporter
May
21
awarded  Scholar
May
21
accepted Rewriting repeated integer division with multiplication
May
21
comment Rewriting repeated integer division with multiplication
Most programming languages that I've seen simply use a/b, and if both a and b are integers, then the operation is performed with integer division. Python 3 introduced syntax that was in some other languages (that I don't know off the top of my head) of having 3 // 2 == 1 and 3 / 2 == 1.5 python.org/dev/peps/pep-0238
May
21
awarded  Student
May
21
asked Rewriting repeated integer division with multiplication