Changeset f999689 in git for Singular/LIB/presolve.lib
- Timestamp:
- Jan 26, 2015, 12:43:16 PM (9 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 1386125efea2b96cc1b1eb9c36caa5004c0f47f6766ae30cf1b9a4f004ee11825797b33b8798ae39
- Parents:
- 97a7da2750245efc953ff12aad2e56a4bff4374e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/presolve.lib
r97a7da2 rf999689 1 1 //////////////////////////////////////////////////////////////////////////// 2 version="version presolve.lib 4.0. 0.0 Jun_2013"; // $Id$2 version="version presolve.lib 4.0.1.2 Jan_2015 "; // $Id$ 3 3 category="Symbolic-numerical solving"; 4 4 info=" … … 12 12 elimpartanyr(i,p); factors of p partially eliminated from i in any ring 13 13 fastelim(i,p[..]); fast elimination of factors of p from i [options] 14 findvars(id [..]); ideal of variables occuring in id [more information]14 findvars(id); variables occuring/not occurring in id 15 15 hilbvec(id[,c,o]); intvec of Hilberseries of id [in char c and ord o] 16 16 linearpart(id); elements of id of total degree <=1 … … 837 837 838 838 proc findvars(def id, list #) 839 "USAGE: findvars(id [,any] ); id=poly/ideal/vector/module/matrix, any=any type 840 RETURN: if no second argument is present: ideal of variables occuring in id,@* 841 if a second argument is given (of any type): list L with 4 entries: 839 "USAGE: findvars(id ); id=poly/ideal/vector/module/matrix 840 RETURN: list L with 4 entries: 842 841 @format 843 842 L[1]: ideal of variables occuring in id … … 846 845 L[4]: intvec of variables not occuring in id 847 846 @end format 847 SEE ALSO: variables 848 848 EXAMPLE: example findvars; shows an example 849 849 " … … 873 873 if ( size(f)>1 ) { f = f[2..size(f)]; } //intvec of found vars 874 874 if ( size(nf)>1 ) { nf = nf[2..size(nf)]; } //intvec of vars not found 875 if( size(#)==0 ) { return(found); } 876 if( size(#)!=0 ) { list L = found,f,notfound,nf; return(L); } 875 list L = found,f,notfound,nf; return(L); 877 876 } 878 877 example … … 881 880 ideal i = w2+f2-1, x2+t2+a2-1; 882 881 findvars(i); 883 findvars(i,1);884 882 } 885 883 ///////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.