Changeset 183572 in git
- Timestamp:
- Sep 30, 2010, 6:29:56 PM (13 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- 2433c5682fb607c4eeab2b77ea5d2c54269b493c
- Parents:
- efe1b1022b46cc4680baef24f2618a45b809633b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/realrad.lib
refe1b1 r183572 839 839 } 840 840 } 841 static proc exp(int a, int b)842 {843 number res = 1;844 while (b > 0) {845 if (b mod 2 == 1) {846 res = res * a;847 b = b-1;848 }849 a = a * a;850 b = b div 2;851 }852 return(res);853 }854 855 856 841 857 842 ////////////////////////////////////////////////////////////////////////////// … … 1087 1072 return(l); 1088 1073 } 1089 int grenze= int(exp(2,n))-1;1074 int grenze=2**n-1; 1090 1075 for (i=1;i<=grenze;i++) 1091 1076 {
Note: See TracChangeset
for help on using the changeset viewer.