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 1007


Ignore:
Timestamp:
2015-06-10T06:26:26-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/parse.lisp

    r1006 r1007  
    100100numeric constant or a polynomial in internal representation. If the
    101101result 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)
    105105  "Divide a polynomials P which is either a numeric constant or a
    106106polynomial in internal representation, by a number Q."
    107107  (if (numberp p)
    108108      (common-lisp:/ p q)
    109       (scalar-times-poly (common-lisp:/ q) p ring)))
     109      (scalar-times-poly ring (common-lisp:/ q) p)))
    110110   
    111111(defun $poly-expt (p l n order ring)
     
    113113representation or a numeric constant, to power L. If P is a number,
    114114convert 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))
    116116
    117117(defun parse (&optional stream)
Note: See TracChangeset for help on using the changeset viewer.