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 1996 for branches/f4grobner


Ignore:
Timestamp:
2015-06-16T01:33:28-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/pol.lisp

    r1995 r1996  
    336336         (make-poly-variable ring (length vars) pos)))
    337337      ((atom expr)
    338        (coerce-coeff ring expr vars))
     338       (scalar->poly ring expr vars))
    339339      ((eq (car expr) list-marker)
    340340       (cons list-marker (p-eval-list (cdr expr))))
     
    357357            ((endp (cddr expr))
    358358             ;; A special case (/ ?), the inverse
    359              (coerce-coeff ring (apply (ring-div ring) (cdr expr)) vars))
     359             (scalar->poly ring (apply (ring-div ring) (cdr expr)) vars))
    360360            (t
    361361             (let ((num (p-eval (cadr expr)))
     
    373373             ;; Negative power means division in coefficient ring
    374374             ;; Non-integer power means non-polynomial coefficient
    375              (coerce-coeff ring expr vars))
     375             (scalar->poly ring expr vars))
    376376            (t (poly-expt ring-and-order (p-eval (cadr expr)) (caddr expr)))))
    377377         (otherwise
    378           (coerce-coeff ring expr vars)))))))
     378          (scalar->poly ring expr vars)))))))
    379379
    380380(defun poly-eval-scalar (expr
Note: See TracChangeset for help on using the changeset viewer.