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 1113 for branches


Ignore:
Timestamp:
2015-06-10T12:38:02-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r1112 r1113  
    282282                 ;; A special case (/ x)
    283283                 (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)))
    284288                (t
    285289                 (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)))))
    287292         (expt
    288293          (cond
Note: See TracChangeset for help on using the changeset viewer.