RepeatedDoubling SΒΆ
defaults.spad line 27 [edit on github]
S: SetCategory with
+: (%, %) -> %
Implements multiplication by repeated addition
- double: (PositiveInteger, S) -> S
double(i, r)
multipliesr
byi
using repeated doubling.
defaults.spad line 27 [edit on github]
S: SetCategory with
+: (%, %) -> %
Implements multiplication by repeated addition
double(i, r)
multiplies r
by i
using repeated doubling.