Changeset 1118
- Timestamp:
- 2015-06-10T12:51:48-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r1117 r1118 281 281 ((endp (cddr expr)) 282 282 ;; A special case (/ ?), the inverse 283 ( apply (ring-div ring) (cdr expr)))283 (coerce-coeff ring (apply (ring-div ring) (cdr expr)))) 284 284 ((endp (cdddr expr)) 285 285 (let ((num (p-eval (cadr expr))) … … 287 287 (scalar-times-poly ring denom-inverse num))) 288 288 (t 289 (let ((num (p-eval (c ons '* (cdr (butlast expr)))))290 (denom (p-eval-scalar (cons '/ (last expr)))))291 ( cons num denom)))))289 (let ((num (p-eval (cadr expr))) 290 (denom-inverse (funcall (ring-div ring) (p-eval-scalar (cons '* (cddr expr)))))) 291 (scalar-times-poly ring denom-inverse num))))) 292 292 (expt 293 293 (cond
Note:
See TracChangeset
for help on using the changeset viewer.