- Timestamp:
- 2015-06-18T08:11:04-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-monom.lisp
r2186 r2187 58 58 (n (make-monom :dimension 3 :initial-exponents '(4 5 6))) 59 59 (m*n (make-monom :dimension 3 :initial-exponents '(5 7 9))) 60 (n/m (make-monom :dimension 3 :initial-exponents '(3 3 3))) 60 61 (m-tensor-n (make-monom :initial-exponents '(1 2 3 4 5 6)))) 62 (is (= (r-dimension m) 3)) 63 (is (= (r-elt m 2) 3)) 64 (is (= (r-total-degree m) 6)) 65 (is (= (r-sugar m) 6)) 61 66 (is (equalp (r->list z) '(0 0 0)) "Trivial monomial is a vector of 0's") 62 67 (is (r-equalp (r* m n) m*n)) 68 (is (r-equalp (r/ n m) n/m)) 63 69 (is (r-equalp (r-tensor-product m n) m-tensor-n)) 64 70 (signals 65 71 (error "INITIAL-EXPONENTS must have length DIMENSION") 66 (make-monom :dimension 3 :initial-exponents '(1 2 3 4 5 6))))) 72 (make-monom :dimension 3 :initial-exponents '(1 2 3 4 5 6))) 73 (is-true (r-divides-p m n)) 74 (is-false (r-divides-p n m)) 75 (is (r-equalp (r-gcd m n) m)) 76 (is (r-equalp (r-lcm m n) n)))) 67 77 68 78
Note:
See TracChangeset
for help on using the changeset viewer.