Changeset 224420b in git
- Timestamp:
- Feb 8, 2010, 4:57:48 PM (13 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- b4ffba8b9a7046b1dd2251d561bbd258152ad7c8
- Parents:
- 43525f2b3186f312a1677e0ce6e04823dc86a8c1
- Location:
- Singular/LIB
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/brnoeth.lib
r43525f r224420b 508 508 } 509 509 /////////////////////////////////////////////////////////////////////////////// 510 static proc subset (ideal I,ideal J)510 static proc idealSubset (ideal I,ideal J) 511 511 { 512 512 // checks wether I is contained in J and returns a boolean … … 530 530 if (typeof(P[1])=="ideal") 531 531 { 532 return( subset(I,P[1]));532 return(idealSubset(I,P[1])); 533 533 } 534 534 else … … 543 543 // remark : I and J are assumed to be given by a standard basis 544 544 int answer=0; 545 if ( subset(I,J)==1)546 { 547 if ( subset(J,I)==1)545 if (idealSubset(I,J)==1) 546 { 547 if (idealSubset(J,I)==1) 548 548 { 549 549 answer=1; -
Singular/LIB/crypto.lib
r43525f r224420b 2077 2077 } 2078 2078 2079 proc decode (string g)2080 "USAGE: decode (s); s a string2079 proc decodeString(string g) 2080 "USAGE: decodeString(s); s a string 2081 2081 ASSUME: s is a string of a number, the output of code 2082 2082 COMPUTE: a string, RSA-decoding of the string s 2083 2083 RETURN: return RSA-decoding of the string s as string 2084 EXAMPLE: decode ; shows an example2084 EXAMPLE: decodeString; shows an example 2085 2085 " 2086 2086 { … … 2104 2104 string 2105 2105 s="78638618599886548153321853785991541374544958648147340831959482696082179852616053583234149080198937632782579537867262780982185252913122030800897193851413140758915381848932565"; 2106 string t=decode (s);2106 string t=decodeString(s); 2107 2107 t; 2108 2108 } -
Singular/LIB/gmspoly.lib
r43525f r224420b 138 138 /////////////////////////////////////////////////////////////////////////////// 139 139 140 static proc vfilt (matrix B,int d)140 static proc vfiltTuple(matrix B,int d) 141 141 { 142 142 int mu=ncols(B); … … 527 527 setring(@S); 528 528 529 e0,s0,V,B=vfilt (imap(@XS,A),d);529 e0,s0,V,B=vfiltTuple(imap(@XS,A),d); 530 530 a,e0,e,s,V,B,G=spec(e0,s0,V,B); 531 531 -
Singular/LIB/realrad.lib
r43525f r224420b 68 68 } 69 69 //sub are the subsets of {x_1,...,x_n} 70 sub=subset (n);70 sub=subsets(n); 71 71 siz=size(sub)-1;//we dont want to localize on all variables 72 72 … … 582 582 p=subst(p,@t,0); 583 583 p=realpoly(p); 584 @s=subset (n-1);584 @s=subsets(n-1); 585 585 ideal jacs; 586 586 for (@z=1;@z<=size(@s);@z++) … … 1075 1075 } 1076 1076 1077 static proc subset (int n)1078 "USAGE :subset (n); n>=0 in Z1077 static proc subsets(int n) 1078 "USAGE :subsets(n); n>=0 in Z 1079 1079 RETURN :l a list of all non-empty subsets of {1,..,n} 1080 EXAMPLE:subset (n) shows an example;1080 EXAMPLE:subsets(n) shows an example; 1081 1081 " 1082 1082 { … … 1106 1106 example 1107 1107 { "EXAMPLE:"; echo = 2; 1108 subset (3);1109 subset (4);1108 subsets(3); 1109 subsets(4); 1110 1110 } 1111 1111
Note: See TracChangeset
for help on using the changeset viewer.