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 2582


Ignore:
Timestamp:
2015-06-19T18:08:25-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

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

    r2575 r2582  
    176176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    177177
     178#|
    178179(test poly
    179180  "Polynomial"
     
    188189    (is-true (print p))
    189190  ))
     191|#
     192
     193(defun foo ()
     194  (let ((p (make-instance 'poly))
     195        (q (make-instance 'poly)))
     196    (dotimes (i 5)
     197      (insert-item p (make-instance 'term :exponents (list (* 3 i)) :coeff (1+ (* 3 i))))
     198      (insert-item q (make-instance 'term :exponents (list (+ (* 3 i) 2)) :coeff (1- (* 3 i)))))
     199    (print p)
     200    (print q)
     201    (add-to p q)
     202    (print p)
     203  ))
     204
    190205
    191206
Note: See TracChangeset for help on using the changeset viewer.