Changeset 756
- Timestamp:
- 2015-06-08T21:20:46-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-tests.lisp
r748 r756 81 81 "monom" 82 82 (is (equalp (monom-exponents (make-monom 3)) #(0 0 0)) "Trivial monomial is a vector of 0's") 83 (is (equalp (monom-exponents (make-monom 3 :initial- contents '(1 2 3))) #(1 2 3)) "Monomial with powers 1,2,3"))83 (is (equalp (monom-exponents (make-monom 3 :initial-exponents '(1 2 3))) #(1 2 3)) "Monomial with powers 1,2,3")) 84 84 85 85 (test order 86 86 "order" 87 (let ((p (make-monom 3 :initial- contents '(1 3 2)))88 (q (make-monom 3 :initial- contents '(1 2 3))))87 (let ((p (make-monom 3 :initial-exponents '(1 3 2))) 88 (q (make-monom 3 :initial-exponents '(1 2 3)))) 89 89 (is-true (lex> p q)) 90 90 (is-true (grlex> p q)) … … 92 92 (is-true (grevlex> p q)) 93 93 (is-false (invlex> p q))) 94 (let ((p (make-monom 3 :initial- contents '(1 2 3)))95 (q (make-monom 3 :initial- contents '(4 5 6))))94 (let ((p (make-monom 3 :initial-exponents '(1 2 3))) 95 (q (make-monom 3 :initial-exponents '(4 5 6)))) 96 96 (is-false (elimination-order-1 p q)) 97 97 (is-false (funcall (elimination-order 2) p q)))) … … 99 99 (test term 100 100 "term" 101 (let* ((m1 (make-monom 3 :initial- contents '(1 2 3)))102 (m2 (make-monom 3 :initial- contents '(3 5 2)))101 (let* ((m1 (make-monom 3 :initial-exponents '(1 2 3))) 102 (m2 (make-monom 3 :initial-exponents '(3 5 2))) 103 103 (m3 (monom-mul m1 m2)) 104 104 (t1 (make-term m1 7))
Note:
See TracChangeset
for help on using the changeset viewer.