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 3390 for branches


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/ring.lisp

    r3389 r3390  
    125125
    126126(defgeneric r-expt (x y)
    127   (:method ((x integer) (y integer)) (expt x y))
     127  (:method ((x number) (y integer)) (expt x y))
    128128  (:method ((x t) (y integer))
    129129    (declare (type fixnum y))
     
    134134       (do ((k 1 (ash k 1))
    135135            (q x (r* q q))              ;keep squaring
    136             (p 1 (if (not (zerop (logand k y))) (r* (r* p q) p))))
     136            (p 1 (if (not (zerop (logand k y))) (r* p q) p)))
    137137           ((> k y) p)
    138138         (declare (fixnum k))))))
Note: See TracChangeset for help on using the changeset viewer.