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


Ignore:
Timestamp:
2015-06-20T17:51:48-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/5am-poly.lisp

    r2736 r2737  
    7171    (dolist (x '( ((2) . 22)  ((4) . 44) ((5) . 55) ((8) . 88) ((9) . 99) ))
    7272      (insert-item p (make-instance 'term :exponents (car x) :coeff (cdr x))))
    73 
    7473    (dolist (x '( ((9) . 90) ((0) . 11)  ((2) . 20) ((3) . 33) ((4) . -44)  ((7) . 77) ((8) . 88) ))
    7574      (insert-item q (make-instance 'term :exponents (car x) :coeff (cdr x))))
    76 
     75    ;; P+Q
    7776    (dolist (x '(((0) . 11) ((2) . 42)  ((3) . 33) ((5) . 55) ((7) . 77) ((8) . 176) ((9) . 189) ))
    7877      (insert-item p+q (make-instance 'term :exponents (car x) :coeff (cdr x))))
    79 
     78    ;; P-Q
    8079    (dolist (x '(((0) . -11) ((2) . 2)  ((3) . -33) ((4) . 88) ((5) . 55) ((7) . -77) ((9) . 9)))
    8180      (insert-item p-q (make-instance 'term :exponents (car x) :coeff (cdr x))))
    82 
     81    ;; -P
    8382    (dolist (x '( ((2) . -22)  ((4) . -44) ((5) . -55) ((8) . -88) ((9) . -99) ))
    8483      (insert-item p-uminus (make-instance 'term :exponents (car x) :coeff (cdr x))))
Note: See TracChangeset for help on using the changeset viewer.