- Timestamp:
- 2015-06-12T12:52:51-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-tests.lisp
r1496 r1498 359 359 (is-true (grobner-equal ring-and-order fl gl)))) 360 360 361 ;; Calculate [F, U1*P1-1,U2*P2-1,...,UK*PK-1], where PLIST=[P1,P2,...,PK].361 ;; Calculates [F, U*P-1] 362 362 (test saturation-extension-1 363 363 "Saturation extension with 1 polynomial" … … 366 366 (P (string->poly "x^2" '(x y))) 367 367 (ring *ring-of-integers*) 368 (F-sat (append (cdr (string->poly F-str '(u 1x y)))369 (cdr (string->poly "[u 1*x^2-1]" '(u1x y))))))368 (F-sat (append (cdr (string->poly F-str '(u x y))) 369 (cdr (string->poly "[u*x^2-1]" '(u x y)))))) 370 370 (is (every #'poly-equal-no-sugar-p 371 371 (saturation-extension-1 ring F p) 372 372 F-sat)))) 373 373 374 ;; Calculates [F, U1*P1-1,U2*P2-1,...,UK*PK-1], where PLIST=[P1,P2,...,PK]. 374 375 (test saturation-extension 375 376 "Saturation extension" 376 377 (let* ((F-str "[x^3,x^2*y]") 377 378 (F (cdr (string->poly F-str '(x y)))) 378 (P (cdr (string->poly "[x^2 ]" '(x y))))379 (P (cdr (string->poly "[x^2,x*y]" '(x y)))) 379 380 (ring *ring-of-integers*) 380 381 (F-sat (append (cdr (string->poly F-str '(u1 x y))) 381 (cdr (string->poly "[u1*x^2-1 ]" '(u1 x y))))))382 (cdr (string->poly "[u1*x^2-1,u2*(x*y)-1]" '(u1 x y)))))) 382 383 (is (every #'poly-equal-no-sugar-p 383 384 (print (polysaturation-extension ring F P)) 384 385 F-sat)))) 385 386 386 #+nil387 387 (test ideal-saturation-1 388 388 "Calculate F : p^inf"
Note:
See TracChangeset
for help on using the changeset viewer.