Changeset 1113
- Timestamp:
- 2015-06-10T12:38:02-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r1112 r1113 282 282 ;; A special case (/ x) 283 283 (apply (ring-div ring) (cdr expr))) 284 ((endp (cdddr expr)) 285 (let ((num (p-eval (cadr expr))) 286 (denom-inverse (p-eval-scalar (cons '/ (last expr))))) 287 (scalar-times-poly ring denom-inverse denom))) 284 288 (t 285 289 (let ((num (p-eval (cons '* (cdr (butlast expr))))) 286 (denom (p-eval-scalar (cons '/ (last expr))))))))) 290 (denom (p-eval-scalar (cons '/ (last expr))))) 291 (cons num denom))))) 287 292 (expt 288 293 (cond
Note:
See TracChangeset
for help on using the changeset viewer.