Macaulay2 » Documentation
Packages » EliminationTemplates :: templateSolve
next | previous | forward | backward | up | index | toc

templateSolve -- polynomial system solver using elimination templates

Description

In the example below, the ideal $J$ defines a zero-dimensional variety with four points. This method finds numerical approximations to these four points by solving an eigenvalue problem, much like the package EigenSolver. The main advantage of elimination templates is that the internal template matrix may be reused for problems of a "similar structure" (see copyTemplate).

i1 : R = QQ[x,y]

o1 = R

o1 : PolynomialRing
i2 : J = ideal(x^2+y^2-1,x^2+x*y+y^2-1)

             2    2       2          2
o2 = ideal (x  + y  - 1, x  + x*y + y  - 1)

o2 : Ideal of R
i3 : actVar = x + 2*y

o3 = x + 2y

o3 : R
i4 : templateSolve(actVar, J)

o4 = {{1, 0}, {-1, 0}, {7.85046e-17, 1}, {-4.71028e-16, -1}}

o4 : List

Ways to use templateSolve:

  • templateSolve(EliminationTemplate)
  • templateSolve(Ideal)
  • templateSolve(RingElement,Ideal)

For the programmer

The object templateSolve is a method function with options.


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/EliminationTemplates.m2:947:0.