next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: quotient(Matrix,GroebnerBasis)

quotient(Matrix,GroebnerBasis) -- matrix quotient

Synopsis

Description

The equation g*q+r == f will hold, where r is the map provided by remainder. The source of f should be a free module.
i1 : R = ZZ[x,y]

o1 = R

o1 : PolynomialRing
i2 : f = random(R^2,R^{2:-1})

o2 = | 4x+5y y     |
     | 5x    4x+4y |

             2       2
o2 : Matrix R  <--- R
i3 : g = vars R ++ vars R

o3 = | x y 0 0 |
     | 0 0 x y |

             2       4
o3 : Matrix R  <--- R
i4 : quotient(f,g)

o4 = {1} | 4 0 |
     {1} | 5 1 |
     {1} | 5 4 |
     {1} | 0 4 |

             4       2
o4 : Matrix R  <--- R
i5 : f = f + map(target f, source f, id_(R^2))

o5 = | 4x+5y+1 y       |
     | 5x      4x+4y+1 |

             2       2
o5 : Matrix R  <--- R
i6 : quotient(f,g)

o6 = {1} | 4 0 |
     {1} | 5 1 |
     {1} | 5 4 |
     {1} | 0 4 |

             4       2
o6 : Matrix R  <--- R

See also