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 980


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r979 r980  
    125125(defun monom-times-poly (m p)
    126126  (declare (type ring ring))
    127   (make-poly-from-termlist (monom-times-termlist m (poly-termlist p)) (+ (poly-sugar p) (monom-sugar m))))
     127  (make-poly-from-termlist
     128   (monom-times-termlist m (poly-termlist p))
     129   (+ (poly-sugar p) (monom-sugar m))))
    128130
    129131(defun term-times-poly (ring term p)
    130   (declare (type ring ring))
     132  (declare (type ring ring) (type poly p))
    131133  (make-poly-from-termlist
    132134   (term-times-termlist ring term (poly-termlist p))
     
    134136
    135137(defun poly-add (ring-and-order p q)
    136   (declare (type ring-and-order ring-and-order))
     138  (declare (type ring-and-order ring-and-order) (type poly p q))
    137139  (make-poly-from-termlist
    138140   (termlist-add ring-and-order
     
    141143   (max (poly-sugar p) (poly-sugar q))))
    142144
    143 (defun poly-sub (ring p q)
    144   (make-poly-from-termlist (termlist-sub ring (poly-termlist p) (poly-termlist q)) (max (poly-sugar p) (poly-sugar q))))
     145(defun poly-sub (ring-and-order p q)
     146  (declare (type ring-and-order ring-and-order) (type poly p q))
     147  (make-poly-from-termlist
     148   (termlist-sub ring (poly-termlist p) (poly-termlist q))
     149   (max (poly-sugar p) (poly-sugar q))))
    145150
    146151(defun poly-uminus (ring p)
Note: See TracChangeset for help on using the changeset viewer.