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 1451


Ignore:
Timestamp:
2015-06-12T11:00:06-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/5am-tests.lisp

    r1450 r1451  
    328328  "Polynomial LCM"
    329329  (let* (($poly_grobner_algorithm :buchberger)
    330          (I (cdr (string->poly "[x^2*y,x*y^2]" '(x y))))
    331          (J (cdr (string->poly "[x,y]" '(x y))))
    332          (ring *ring-of-integers*)
    333          (order #'lex>)
    334          (ring-and-order (make-ring-and-order :ring ring :order order))
    335          (I-colon-J (cdr (string->poly "[x*y]" '(x y)))))
    336     (is (every #'poly-equal-no-sugar-p (colon-ideal ring-and-order I J) I-colon-J))))
     330         (f (string->poly "x^2-y^2" '(x y)))
     331         (g (string->poly "x^2+2*xy+y^2" '(x y)))
     332         (ring *ring-of-integers*)
     333         (order #'lex>)
     334         (ring-and-order (make-ring-and-order :ring ring :order order))
     335         (lcm-f-and-g (string->poly "[x+y]" '(x y))))
     336    (is (poly-equal-no-sugar-p (poly-lcm ring-and-order f g) lcm-f-and-g))))
    337337
    338338
Note: See TracChangeset for help on using the changeset viewer.