Top
Back: D.7.1.5 fastelim
Forward: D.7.1.7 hilbvec
FastBack: D. SINGULAR libraries
FastForward: E. Release Notes
Up: D.7.1 presolve_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

D.7.1.6 findvars

Procedure from library presolve.lib (see presolve_lib).

Usage:

findvars(id [,any] ); id=poly/ideal/vector/module/matrix, any=any type

Return:

if no second argument is present: ideal of variables occurring in id,
if a second argument is given (of any type): list L with 4 entries:

 
  L[1]: ideal of variables occurring in id
  L[2]: intvec of variables occurring in id
  L[3]: ideal of variables not occurring in id
  L[4]: intvec of variables not occurring in id
  

Example:

 
LIB "presolve.lib";
ring s  = 0,(e,f,x,y,t,u,v,w,a,d),dp;
ideal i = w2+f2-1, x2+t2+a2-1;
findvars(i);
→ _[1]=f
→ _[2]=x
→ _[3]=t
→ _[4]=w
→ _[5]=a
findvars(i,1);
→ [1]:
→    _[1]=f
→    _[2]=x
→    _[3]=t
→    _[4]=w
→    _[5]=a
→ [2]:
→    2,3,5,8,9
→ [3]:
→    _[1]=e
→    _[2]=y
→    _[3]=u
→    _[4]=v
→    _[5]=d
→ [4]:
→    1,4,6,7,10

Top Back: D.7.1.5 fastelim Forward: D.7.1.7 hilbvec FastBack: D. SINGULAR libraries FastForward: E. Release Notes Up: D.7.1 presolve_lib Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.