- Timestamp:
- 2015-08-27T08:41:52-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/ring.lisp
r3384 r3385 127 127 (:method ((x integer) (y integer)) (expt x y)) 128 128 (:method (x (y integer)) 129 (declare (type fixnum n))129 (declare (type fixnum y)) 130 130 (cond 131 ((minusp n) (error "r-expt: Negative exponent."))132 (( endp poly) (if (zerop n) 1))131 ((minusp y) (error "r-expt: Negative exponent.")) 132 ((r-zerop x) (if (zerop y) 1)) 133 133 (t 134 134 (do ((k 1 (ash k 1))
Note:
See TracChangeset
for help on using the changeset viewer.