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


Ignore:
Timestamp:
2016-05-31T12:03:18-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r3876 r4009  
    623623  (:method ((self term) &optional vars)
    624624    "Convert a term SELF to infix form, using variable VARS to build the representation."
     625    (declare (ignore vars))
    625626    (with-slots (exponents coeff)
    626627        self
    627       (list* '* coeff
    628             (mapcan #'(lambda (var power)
    629                         (cond ((= power 0) nil)
    630                               ((= power 1) (list var))
    631                               (t (list `(expt ,var ,power)))))
    632                     vars (coerce exponents 'list))))))
     628      (let ((m (call-next-method)))
     629        (cond ((= coeff 1) m)
     630              (t (setf (cdr m) (cons coeff (cdr m)))))
     631        m))))
Note: See TracChangeset for help on using the changeset viewer.