Line | |
---|
1 | (in-package :polynomial)
|
---|
2 |
|
---|
3 | (proclaim '(special p r))
|
---|
4 |
|
---|
5 | (setf p (ADD-TO
|
---|
6 | (make-instance 'poly :dimension 1 :termlist (list (make-instance 'term :exponents #(0) :coeff 5)) :order #'lex>)
|
---|
7 | (make-instance 'poly :dimension 1 :termlist (list (make-instance 'term :exponents #(1) :coeff 1)) :order #'lex>)))
|
---|
8 |
|
---|
9 | (setf r (POLYNOMIAL::ADD-TERMLISTS (list (make-instance 'term :exponents #(0) :coeff 5))
|
---|
10 | (list (make-instance 'term :exponents #(1) :coeff 1))
|
---|
11 | #'lex>))
|
---|
12 | (print r)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.