Macaulay2 » Documentation
Packages » NAGtypes :: realPoints
next | previous | forward | backward | up | index | toc

realPoints -- select real points

Description

Selects real points from a list of points using the function isRealPoint.

i1 : needsPackage "NumericalAlgebraicGeometry"

o1 = NumericalAlgebraicGeometry

o1 : Package
i2 : R = CC[x,y];
i3 : sols = solveSystem{x^6-y^4, x-y-2}

o3 = {{-2*ii, -2-2*ii}, {.937565-.715691*ii, -1.06244-.715691*ii},
     ------------------------------------------------------------------------
     {.937565+.715691*ii, -1.06244+.715691*ii}, {-2.87513, -4.87513}, {1,
     ------------------------------------------------------------------------
     -1}, {2*ii, -2+2*ii}}

o3 : List
i4 : realPoints sols

o4 = {{-2.87513, -4.87513}, {1, -1}}

o4 : List

See also

Ways to use realPoints:

  • realPoints(List)

For the programmer

The object realPoints is a method function with options.


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