close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 3387


Ignore:
Timestamp:
2015-08-27T08:42:41-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/ring.lisp

    r3386 r3387  
    134134       (do ((k 1 (ash k 1))
    135135            (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)
    138138         (declare (fixnum k))))))
    139139  (:documentation "Raises X to power Y."))
Note: See TracChangeset for help on using the changeset viewer.