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


Ignore:
Timestamp:
2015-06-23T11:30:37-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/symbolic-polynomial.lisp

    r3337 r3338  
    5757
    5858
    59 (defun coerce-coeff (ring expr vars)
     59(defun update-instance-for-different-class ((old term) (new symbolic-poly-vars) &key)
    6060  "Coerce an element of the coefficient ring to a constant polynomial."
    61   (declare (type ring ring))
    62   (make-poly-from-termlist (list (make-term :monom (make-monom :dimension (length vars))
    63                                             :coeff (funcall (ring-parse ring) expr)))
    64                            0))
    65 
     61  (reinitialize-instance new
     62                         :termlist (list old)
     63                         0))
     64
     65#|
    6666(defun poly-eval (expr vars
    6767                  &optional
Note: See TracChangeset for help on using the changeset viewer.