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


Ignore:
Timestamp:
2015-09-05T11:22:43-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

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

    r3497 r3508  
    6969    ;; so it will be automatically sorted.
    7070    (dolist (x '( ((2) . 22)  ((4) . 44) ((5) . 55) ((8) . 88) ((9) . 99) ))
    71       (insert-item p (make-instance 'monom :exponents (car x)) (cdr x)))
     71      (poly-insert-term p (make-instance 'monom :exponents (car x)) (cdr x)))
    7272    (dolist (x '( ((9) . 90) ((0) . 11)  ((2) . 20) ((3) . 33) ((4) . -44)  ((7) . 77) ((8) . 88) ))
    73       (insert-item q (make-instance 'monom :exponents (car x)) (cdr x)))
     73      (poly-insert-term q (make-instance 'monom :exponents (car x)) (cdr x)))
    7474    ;; P+Q
    7575    (dolist (x '(((0) . 11) ((2) . 42)  ((3) . 33) ((5) . 55) ((7) . 77) ((8) . 176) ((9) . 189) ))
    76       (insert-item p+q (make-instance 'monom :exponents (car x)) (cdr x)))
     76      (poly-insert-term p+q (make-instance 'monom :exponents (car x)) (cdr x)))
    7777    ;; P-Q
    7878    (dolist (x '(((0) . -11) ((2) . 2)  ((3) . -33) ((4) . 88) ((5) . 55) ((7) . -77) ((9) . 9)))
    79       (insert-item p-q (make-instance 'monom :exponents (car x)) (cdr x)))
     79      (poly-insert-term p-q (make-instance 'monom :exponents (car x)) (cdr x)))
    8080    ;; -P
    8181    (dolist (x '( ((2) . -22)  ((4) . -44) ((5) . -55) ((8) . -88) ((9) . -99)))
    82       (insert-item p-uminus (make-instance 'monom :exponents (car x)) (cdr x)))
     82      (poly-insert-term p-uminus (make-instance 'monom :exponents (car x)) (cdr x)))
    8383    ;;(print p) (print q) (print p+q) (print p-q)
    8484    (&body)))
     
    101101    ;; so it will be automatically sorted.
    102102    (dolist (x '( ((0) . 1)  ((1) . 2) ))
    103       (insert-item p (make-instance 'monom :exponents (car x)) (cdr x)))
     103      (poly-insert-term p (make-instance 'monom :exponents (car x)) (cdr x)))
    104104    (dolist (x '( ((0) . 1)  ((1) . 3) ))
    105       (insert-item q (make-instance 'monom :exponents (car x)) (cdr x)))
     105      (poly-insert-term q (make-instance 'monom :exponents (car x)) (cdr x)))
    106106    ;; P*Q
    107107    (dolist (x '( ((0) . 1) ((1) . 5) ((2) . 6)))
    108       (insert-item p*q (make-instance 'monom :exponents (car x)) (cdr x)))
     108      (poly-insert-term p*q (make-instance 'monom :exponents (car x)) (cdr x)))
    109109    (&body)))
    110110
Note: See TracChangeset for help on using the changeset viewer.