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 978


Ignore:
Timestamp:
2015-06-09T20:42:02-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r977 r978  
    128128
    129129(defun term-times-poly (ring term p)
     130  (declare (type ring ring))
    130131  (make-poly-from-termlist (term-times-termlist ring term (poly-termlist p)) (+ (poly-sugar p) (term-sugar term))))
    131132
    132 (defun poly-add (ring p q)
    133   (make-poly-from-termlist (termlist-add ring (poly-termlist p) (poly-termlist q)) (max (poly-sugar p) (poly-sugar q))))
     133(defun poly-add (ring-and-order p q)
     134  (declare (type ring-and-order ring-and-order))
     135  (make-poly-from-termlist
     136   (termlist-add ring-and-order
     137                 (poly-termlist p)
     138                 (poly-termlist q))
     139   (max (poly-sugar p) (poly-sugar q))))
    134140
    135141(defun poly-sub (ring p q)
Note: See TracChangeset for help on using the changeset viewer.