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 1455 for branches


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

* empty log message *

File:
1 edited

Legend:

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

    r1454 r1455  
    333333         (order #'lex>)
    334334         (ring-and-order (make-ring-and-order :ring ring :order order))
    335          (lcm-f-and-g (string->poly "(x+y)^2*(x-y)" '(x y))))
    336     (is (poly-equal-no-sugar-p (poly-lcm ring-and-order f g) lcm-f-and-g))))
    337 
    338 (defun foo ()
    339   (let* (($poly_grobner_algorithm :buchberger)
    340          (f (string->poly "x^2-y^2" '(x y)))
    341          (g (string->poly "x^2+2*x*y+y^2" '(x y)))
    342          (ring *ring-of-integers*)
    343          (order #'lex>)
    344          (ring-and-order (make-ring-and-order :ring ring :order order)))
    345     (poly-lcm ring-and-order f g)))
     335         (lcm-f-and-g (string->poly "(x+y)^2*(x-y)" '(x y)))
     336         (gcd-f-and-g (string->poly "x+y" '(x y))))
     337    (is (poly-equal-no-sugar-p (poly-lcm ring-and-order f g) lcm-f-and-g))
     338    (is (poly-equal-no-sugar-p (poly-gcd ring-and-order f g) gcd-f-and-g))))
    346339
    347340
Note: See TracChangeset for help on using the changeset viewer.