Changeset 1007 for branches/f4grobner
- Timestamp:
- 2015-06-10T06:26:26-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/parse.lisp
r1006 r1007 100 100 numeric constant or a polynomial in internal representation. If the 101 101 result is a number then convert it to a polynomial in N variables." 102 (poly * (convert-number p n) (convert-number q n) order ring))103 104 (defun $poly/ ( p q ring)102 (poly-mul ring-and-order (convert-number p n) (convert-number q n))) 103 104 (defun $poly/ (ring p q) 105 105 "Divide a polynomials P which is either a numeric constant or a 106 106 polynomial in internal representation, by a number Q." 107 107 (if (numberp p) 108 108 (common-lisp:/ p q) 109 (scalar-times-poly (common-lisp:/ q) p ring)))109 (scalar-times-poly ring (common-lisp:/ q) p))) 110 110 111 111 (defun $poly-expt (p l n order ring) … … 113 113 representation or a numeric constant, to power L. If P is a number, 114 114 convert the result to a polynomial in N variables." 115 (poly-expt (convert-number p n) l order ring))115 (poly-expt ring-and-order (convert-number p n) l)) 116 116 117 117 (defun parse (&optional stream)
Note:
See TracChangeset
for help on using the changeset viewer.