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


Ignore:
Timestamp:
2015-06-17T18:55:38-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/ring.lisp

    r2058 r2059  
    8787|#
    8888
    89 (defgeneric parse (object)
     89(defgeneric ring-parse (object)
    9090  (:method ((object t)) object))
    9191
    92 (defgeneric unit-for (object)
     92(defgeneric ring-unit-for (object)
    9393  (:method ((self number)) 1))
    9494
    95 (defgeneric zerop (object)
     95(defgeneric ring-zerop (object)
    9696  (:method ((self number)) (zerop self)))
    9797
    98 (defgeneric add (x y)
     98(defgeneric ring-add (x y)
    9999  (:method ((x number) (y number)) (+ x y)))
    100100
    101 (defgeneric mul (x y)
     101(defgeneric ring-mul (x y)
    102102  (:method ((x number) (y number)) (* x y)))
    103103
    104 (defgeneric div (x y)
     104(defgeneric ring-div (x y)
    105105  (:method ((x number) (y number)) (/ x y)))
    106106
    107 (defgeneric lcm (x y)
     107(defgeneric ring-lcm (x y)
    108108  (:method ((x integer) (y integer)) (lcm x y)))
    109109
    110 (defgeneric ezgcd (x y)
     110(defgeneric ring-ezgcd (x y)
    111111  (:method ((x integer) (y integer)
    112112            &aux (c (gcd x y)))
    113113    (values c (/ x c) (/ y c))))
    114114
    115 (defgeneric gcd (x y)
     115(defgeneric ring-gcd (x y)
    116116  (:method ((x integer) (y integer))
    117117    (gcd x y)))
    118118
    119 (defgeneric dimension (object)
     119(defgeneric ring-dimension (object)
    120120  (:method ((object integer)) 1))
    121121
Note: See TracChangeset for help on using the changeset viewer.