RepeatedDoubling SΒΆ
defaults.spad line 27 [edit on github]
S: SetCategory with
+: (%, %) -> %
Implements multiplication by repeated addition
- double: (PositiveInteger, S) -> S
double(i, r)multipliesrbyiusing 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.