NCPOLY.LOG 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. REDUCE 3.6, 15-Jul-95, patched to 6 Mar 96 ...
  2. nc_setup({k,n,NN,KK},{NN*n-n*NN=NN,KK*k-k*KK=KK},left);
  3. ***** 0=nn invalid as commutator relation
  4. p1 := (n-k+1)*NN - (n+1);
  5. p1 := - k*nn + n*nn - n + nn - 1
  6. p2 := (k+1)*KK -(n-k);
  7. p2 := k*kk + k + kk - n
  8. l_g:=nc_groebner ({p1,p2});
  9. ***** Vdpinit: vdpvars not set
  10. nc_preduce(p1+p2,l_g);
  11. ***** Vdpinit: vdpvars not set
  12. nc_divide (k*p1+p2,p1);
  13. ***** Vdpinit: vdpvars not set
  14. nc_divide (k*p1+p2,2*p1);
  15. ***** Vdpinit: vdpvars not set
  16. nc_divide (2*k*k*p1 + k*p1 + p2,2*p1);
  17. ***** Vdpinit: vdpvars not set
  18. nc_factorize (p1*p2);
  19. ***** Vdpinit: vdpvars not set
  20. nc_setup({k,n,NN,KK},{NN*n-n*NN=NN,KK*k-k*KK=KK},right);
  21. ***** invalid as rule list
  22. nc_factorize (p1*p2);
  23. ***** Vdpinit: vdpvars not set
  24. % applications to shift operators
  25. nc_setup({n,NN},{NN*n-n*NN=1},left);
  26. ***** invalid as rule list
  27. n*NN;
  28. n*nn
  29. nc_factorize(ws);
  30. ***** Vdpinit: vdpvars not set
  31. nc_setup({n,NN},{NN*n-n*NN=1},right);
  32. ***** invalid as rule list
  33. n*NN;
  34. n*nn
  35. nc_factorize(ws);
  36. ***** Vdpinit: vdpvars not set
  37. nc_setup({NN,n},{NN*n-n*NN=1},right);
  38. ***** invalid as rule list
  39. n*NN;
  40. n*nn
  41. nc_factorize(ws);
  42. ***** Vdpinit: vdpvars not set
  43. nc_setup({NN,n},{NN*n-n*NN=1},left);
  44. ***** invalid as rule list
  45. n*NN;
  46. n*nn
  47. nc_factorize(ws);
  48. ***** Vdpinit: vdpvars not set
  49. % Applications to partial differential equations
  50. nc_setup({x,Dx},{Dx*x-x*Dx=1});
  51. ***** invalid as rule list
  52. p:= 2*Dx^2 + x* Dx^3 + 3*x*Dx + x^2*Dx^2 + 14 + 7*x*Dx;
  53. 3 2 2 2
  54. p := dx *x + dx *x + 2*dx + 10*dx*x + 14
  55. nc_factorize p;
  56. ***** Vdpinit: vdpvars not set
  57. right_factor(p,1);
  58. ***** Vdpinit: vdpvars not set
  59. % no factor of degr 1
  60. right_factor(p,2);
  61. ***** Vdpinit: vdpvars not set
  62. left_factor(p,2);
  63. ***** Vdpinit: vdpvars not set
  64. nc_setup({x,Dx},{Dx*x-x*Dx=1});
  65. ***** invalid as rule list
  66. q := x**2*dx**2 + 2*x**2*dx + x*dx**3 + 2*x*dx**2
  67. + 8*x*dx + 16*x + 2*dx**2 + 4*dx$
  68. nc_factorize q;
  69. ***** Vdpinit: vdpvars not set
  70. right_factor(q,1);
  71. ***** Vdpinit: vdpvars not set
  72. right_factor(q,1,{x});
  73. ***** Vdpinit: vdpvars not set
  74. % no such right factor
  75. right_factor(q,1,{dx});
  76. ***** Vdpinit: vdpvars not set
  77. % looking for factor with degree bound for an individual variable
  78. q := x**6*dx + x**5*dx**2 + 12*x**5 + 10*x**4*dx + 20*x**3
  79. + x**2*dx**3 - x**2*dx**2 + x*dx**4 - x*dx**3 + 8*x*dx**2
  80. - 8*x*dx + 2*dx**3 - 2*dx**2$
  81. right_factor(q,dx);
  82. ***** Vdpinit: vdpvars not set
  83. right_factor(q,dx^2);
  84. ***** Vdpinit: vdpvars not set
  85. % some coefficient sports
  86. nc_setup({NN,n},{NN*n-n*NN=1},left);
  87. ***** invalid as rule list
  88. q:=(n*nn)^2;
  89. 2 2
  90. q := n *nn
  91. nc_factorize q;
  92. ***** Vdpinit: vdpvars not set
  93. nc_preduce(q,{c1+c2*n + c3*nn + c4*n*nn});
  94. ***** Vdpinit: vdpvars not set
  95. nc_divide(q,n);
  96. ***** Vdpinit: vdpvars not set
  97. nc_cleanup;
  98. ***** invalid as rule list
  99. end;
  100. (TIME: ncpoly 90 90)