Changeset 3387
- Timestamp:
- 2015-08-27T08:42:41-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/ring.lisp
r3386 r3387 134 134 (do ((k 1 (ash k 1)) 135 135 (q x (r* q q)) ;keep squaring 136 (p 1 (if (not (zerop (logand k n))) (r* (r* p q) p))))137 ((> k n) p)136 (p 1 (if (not (zerop (logand k y))) (r* (r* p q) p)))) 137 ((> k y) p) 138 138 (declare (fixnum k)))))) 139 139 (:documentation "Raises X to power Y."))
Note:
See TracChangeset
for help on using the changeset viewer.