Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.29 KB | None | 0 0
  1.  
  2. i2 : R=QQ[x,y,z,MonomialOrder=>Lex];
  3.  
  4. i3 : G={y^6-z^5, x*z-y^2, x*y^4-z^4, x^2*y^2-z^3 *x^3-z^2}
  5.  
  6.        6    5         2     4    4     3 3    2 2    2
  7. o3 = {y  - z , x*z - y , x*y  - z , - x z  + x y  - z }
  8.  
  9. o3 : List
  10.  
  11. i4 :
  12.      ^2*y^2*z^2+y^6+3*z^5;
  13. stdio:5:1:(3): error: syntax error at '^'
  14.  
  15. i4 :      
  16.      y^2*z^2+y^6+3*z^5
  17.  
  18.       6    2 2     5
  19. o4 = y  + y z  + 3z
  20.  
  21. o4 : R
  22.  
  23. i5 :  
  24.      //G
  25. stdio:8:1:(3): error: syntax error at '//'
  26.  
  27. i5 : f//G
  28. stdio:8:4:(3): error: no method for binary operator // applied to objects:
  29. --            f (of class Symbol)
  30. --              6    5         2     4    4     3 3    2 2    2
  31. --     //     {y  - z , x*z - y , x*y  - z , - x z  + x y  - z } (of class List)
  32.  
  33. i6 : gens G
  34. stdio:9:1:(3): error: no method found for applying generators to:
  35.      argument   :    6    5         2     4    4     3 3    2 . (of class List)
  36.                    {y  - z , x*z - y , x*y  - z , - x z  + x y.
  37.  
  38. i7 : G
  39.  
  40.        6    5         2     4    4     3 3    2 2    2
  41. o7 = {y  - z , x*z - y , x*y  - z , - x z  + x y  - z }
  42.  
  43. o7 : List
  44.  
  45. i8 : gb G
  46. stdio:11:1:(3): error: no method found for applying gb to:
  47.      argument   :    6    5         2     4    4     3 3    2 . (of class List)
  48.                    {y  - z , x*z - y , x*y  - z , - x z  + x y.
  49.  
  50. i9 : ideal(G)
  51.  
  52.              6    5         2     4    4     3 3    2 2    2
  53. o9 = ideal (y  - z , x*z - y , x*y  - z , - x z  + x y  - z )
  54.  
  55. o9 : Ideal of R
  56.  
  57. i10 : f // gens ideal(G)
  58. stdio:13:3:(3): error: no method for binary operator // applied to objects:
  59. --            f (of class Symbol)
  60. --     //     | y6-z5 xz-y2 xy4-z4 -x3z3+x2y2-z2 | (of class Matrix)
  61.  
  62. i11 : f//ideal(G)
  63. stdio:14:2:(3): error: no method for binary operator // applied to objects:
  64. --            f (of class Symbol)
  65. --                    6    5         2     4    4     3 3    2 2    2
  66. --     //     ideal (y  - z , x*z - y , x*y  - z , - x z  + x y  - z ) (of class Ideal)
  67.  
  68. i12 : f//gens gb(ideal(G))
  69. stdio:15:2:(3): error: no method for binary operator // applied to objects:
  70. --            f (of class Symbol)
  71. --     //     | z6-z4+z3 y2z5-y2z3+y2z2 y4z4-y4z2+y4z y6-z5 xz-y2 xy4-z4 x2y2-z5-. (of class Matrix)
  72.  
  73. i13 : gb(ideal(G))
  74.  
  75. o13 = GroebnerBasis[status: done; S-pairs encountered up to degree 10]
  76.  
  77. o13 : GroebnerBasis
  78.  
  79. i14 : gro=gb(ideal(G))
  80.  
  81. o14 = GroebnerBasis[status: done; S-pairs encountered up to degree 10]
  82.  
  83. o14 : GroebnerBasis
  84.  
  85. i15 : f//gens gro
  86. stdio:18:2:(3): error: no method for binary operator // applied to objects:
  87. --            f (of class Symbol)
  88. --     //     | z6-z4+z3 y2z5-y2z3+y2z2 y4z4-y4z2+y4z y6-z5 xz-y2 xy4-z4 x2y2-z5-. (of class Matrix)
  89.  
  90. i16 : gens gro
  91.  
  92. o16 = | z6-z4+z3 y2z5-y2z3+y2z2 y4z4-y4z2+y4z y6-z5 xz-y2 xy4-z4 x2y2-z5-z2 |
  93.  
  94.               1       7
  95. o16 : Matrix R  <--- R
  96.  
  97. i17 : f//(gens gro)
  98. stdio:20:2:(3): error: no method for binary operator // applied to objects:
  99. --            f (of class Symbol)
  100. --     //     | z6-z4+z3 y2z5-y2z3+y2z2 y4z4-y4z2+y4z y6-z5 xz-y2 xy4-z4 x2y2-z5-. (of class Matrix)
  101.  
  102. i18 : gro
  103.  
  104. o18 = GroebnerBasis[status: done; S-pairs encountered up to degree 10]
  105.  
  106. o18 : GroebnerBasis
  107.  
  108. i19 : gens gro
  109.  
  110. o19 = | z6-z4+z3 y2z5-y2z3+y2z2 y4z4-y4z2+y4z y6-z5 xz-y2 xy4-z4 x2y2-z5-z2 |
  111.  
  112.               1       7
  113. o19 : Matrix R  <--- R
  114.  
  115. i20 : f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement