Changeset 1215
- Timestamp:
- 2015-06-11T11:53:59-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r1214 r1215 120 120 (defun poly-length (p) (length (poly-termlist p))) 121 121 122 (defun poly-reset-sugar (p) 123 (declare (type poly p)) 124 122 125 (defun scalar-times-poly (ring c p) 123 126 "The scalar product of scalar C by a polynomial P. The sugar of the 124 127 original polynomial becomes the sugar of the result." 125 (declare (type ring ring) ( poly p))128 (declare (type ring ring) (type poly p)) 126 129 (make-poly-from-termlist (scalar-times-termlist ring c (poly-termlist p)) (poly-sugar p))) 127 130 … … 129 132 "The scalar product of scalar C by a polynomial P, omitting the head term. The sugar of the 130 133 original polynomial becomes the sugar of the result." 131 (declare (type ring ring) ( poly p))134 (declare (type ring ring) (type poly p)) 132 135 (make-poly-from-termlist (scalar-times-termlist ring c (cdr (poly-termlist p))) (poly-sugar p))) 133 136 134 137 (defun monom-times-poly (m p) 135 (declare ( poly p))138 (declare (type poly p)) 136 139 (make-poly-from-termlist 137 140 (monom-times-termlist m (poly-termlist p))
Note:
See TracChangeset
for help on using the changeset viewer.