ncpoly.red 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. module ncpoly; % Computing in non-commutative polynomial rings and
  2. % ideals.
  3. % Author: H. Melenk, ZIB-Berlin, J. Apel, University of Leipzig.
  4. % Copyright: Konrad-Zuse-Zentrum Berlin, 1994
  5. create!-package ('(ncpoly ncenv ncdip ncgroeb ncfactor ncout),
  6. '(contrib ncpoly));
  7. fluid '(
  8. basecount!*
  9. bcount!*
  10. b4count!*
  11. dipvars!*
  12. factortime!*
  13. fcount!*
  14. glterms!*
  15. groecontcount!*
  16. groetime!*
  17. hcount!*
  18. hzerocount!*
  19. mcount!*
  20. nccof!* % cofactors after a reduction step
  21. ncdipbase!* % vector:
  22. % the i-th entry is a list (j1,j2...)
  23. % where j1,j2 ... < i
  24. % and x_i * x_j neq x_j*x_i
  25. ncdipcircular!* % t if one variable appears in more than one
  26. % commutator
  27. ncdiptable!* % 2-dim array:
  28. % then entry (i,j) keeps the powers of the
  29. % commutator [x_i,x_j] where j<i
  30. ncdipvars!* % variable set
  31. ncpi!-brackets!*
  32. ncpi!-comm!-rules!*
  33. ncpi!-names!*
  34. ncpi!-name!-rules!*
  35. nc_factor_time
  36. nc_factor_time!*
  37. vdpsortmode!*
  38. pcount!*
  39. !*evallhseqp
  40. !*gsugar
  41. !*ncg!-right
  42. !*nc!-traverso!-sloppy
  43. !*trgroeb
  44. !*trgroebs
  45. !*trgroebfull % print a full trace
  46. !*trnc
  47. !*varoptt
  48. !*vdpinteger
  49. );
  50. global '(glterms);
  51. share ncpi!-brackets!*,ncpi!-comm!-rules!*,ncpi!-name!-rules!*;
  52. load_package dipoly;
  53. load_package groebner;
  54. exports nc_cleanup,nc_compact,left_factor,left_factors,nc_divide,
  55. nc_factorize,nc_factorize_all,nc_groebner,nc_preduce,nc_setup,right_factor,
  56. right_factors;
  57. (if not numberp v or v<2.8
  58. then rederr "Groebner package version too old")
  59. where v=get('groebner,'version);
  60. endmodule;;end;