grinter2.red 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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();apply(get(fn,'psopfn),{u})>>;
  5. symbolic procedure groebnr2load();load!-package'groebnr2;
  6. put('gsort,'psopfn,'(lambda(u)(groebnr2entry 'gsort u)));
  7. put('gsplit,'psopfn,'(lambda(u)(groebnr2entry 'gsplit u)));
  8. put('gspoly,'psopfn,'(lambda(u)(groebnr2entry 'gspoly u)));
  9. put('gvars,'psopfn,'(lambda(u)(groebnr2entry 'gvars u)));
  10. put('greduce,'psopfn,'(lambda(u)(groebnr2entry 'greduce u)));
  11. put('greduce_orders,'psopfn,
  12. '(lambda(u)(groebnr2entry 'greduce_orders u)));
  13. put('preduce,'psopfn,'(lambda(u)(groebnr2entry 'preduce u)));
  14. put('groebnert,'psopfn,'(lambda(u)(groebnr2entry 'groebnert u)));
  15. put('preducet,'psopfn,'(lambda(u)(groebnr2entry 'preducet u)));
  16. put('groebnerm,'psopfn,'(lambda(u)(groebnr2entry 'groebnerm u)));
  17. put('glexconvert,'psopfn,'(lambda(u)(groebnr2entry 'glexconvert u)));
  18. put('hilbertpolynomial,'psopfn,
  19. '(lambda(u)(groebnr2entry 'hilbertpolynomial u)));
  20. put('gzerodim!?,'psopfn,
  21. '(lambda(u)(groebnr2entry 'gzerodim!? u)));
  22. put('dd_groebner,'psopfn,'(lambda(u)(groebnr2entry 'dd_groebner u)));
  23. put('trgroeb,'simpfg,'((t(groebnr2load))));
  24. put('trgroebs,'simpfg,'((t(groebnr2load)(setq !*trgroeb t))
  25. (nil(setq !*trgroeb nil))));
  26. put('trgroebr,'simpfg,'((t(groebnr2load))));
  27. put('groebstat,'simpfg,'((t(groebnr2load))));
  28. put('groebweak,'simpfg,'((t(groebnr2load))));
  29. % put('groebres,'simpfg,'((t(groebnr2load))));
  30. symbolic procedure groebtestrestriction(a1,a2);
  31. <<groebnr2load();apply('groebtestrestriction,{a1,a2})>>;
  32. put('groebner_walk,'psopfn,
  33. '(lambda(u)(groebnr2entry'groebner_walk u)));
  34. endmodule;;end;