grinter2.red 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. module grinter2; % Interface of Groebner package to REDUCE:
  2. % autoloadint entry points to operators of groebnr2;
  3. symbolic procedure groebnr2entry(fn,u);
  4. <<groebnr2load();
  5. apply(get(fn,'psopfn),list u)>>;
  6. symbolic procedure groebnr2load();
  7. load!-package 'groebnr2;
  8. put('gsort,'psopfn,
  9. '(lambda(u)(groebnr2entry 'gsort u)));
  10. put('gsplit,'psopfn,
  11. '(lambda(u)(groebnr2entry 'gsplit u)));
  12. put('gspoly,'psopfn,
  13. '(lambda(u)(groebnr2entry 'gspoly u)));
  14. put('gvars,'psopfn,
  15. '(lambda(u)(groebnr2entry 'gvars u)));
  16. put('greduce,'psopfn,
  17. '(lambda(u)(groebnr2entry 'greduce u)));
  18. put('preduce,'psopfn,
  19. '(lambda(u)(groebnr2entry 'preduce u)));
  20. put('groebnert,'psopfn,
  21. '(lambda(u)(groebnr2entry 'groebnert u)));
  22. put('preducet,'psopfn,
  23. '(lambda(u)(groebnr2entry 'preducet u)));
  24. put('groebnerm,'psopfn,
  25. '(lambda(u)(groebnr2entry 'groebnerm u)));
  26. put('glexconvert,'psopfn,
  27. '(lambda(u)(groebnr2entry 'glexconvert u)));
  28. put('HILBERTPOLYNOMIAL,'psopfn,
  29. '(lambda(u)(groebnr2entry 'HilbertPolynomial u)));
  30. put('GZERODIM!?,'psopfn,
  31. '(lambda(u)(groebnr2entry 'GZERODIM!? u)));
  32. put('dd_groebner,'psopfn,
  33. '(lambda(u)(groebnr2entry 'dd_groebner u)));
  34. put('trgroeb,'simpfg,'((t (groebnr2load))));
  35. put('trgroebs,'simpfg,'((t (groebnr2load)(setq !*trgroeb t))
  36. (nil (setq !*trgroeb nil))));
  37. put('trgroebr,'simpfg,'((t (groebnr2load))));
  38. put('groebstat,'simpfg,'((t ( groebnr2load))));
  39. put('groebweak,'simpfg,'((t (groebnr2load))));
  40. put('groebres,'simpfg,'((t (groebnr2load))));
  41. symbolic procedure groebTestrestriction (a1,a2);
  42. <<groebnr2load(); apply('groebTestrestriction,list(a1,a2))>>;
  43. endmodule;
  44. end;