Changeset 183572 in git


Ignore:
Timestamp:
Sep 30, 2010, 6:29:56 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '45e267b9942dec9429fe249ce3e5e44ab80a6a3a')
Children:
2433c5682fb607c4eeab2b77ea5d2c54269b493c
Parents:
efe1b1022b46cc4680baef24f2618a45b809633b
Message:
removed static proc exp

git-svn-id: file:///usr/local/Singular/svn/trunk@13352 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/realrad.lib

    refe1b1 r183572  
    839839 }
    840840}
    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 
    856841
    857842//////////////////////////////////////////////////////////////////////////////
     
    10871072   return(l);
    10881073 }
    1089  int grenze=int(exp(2,n))-1;
     1074 int grenze=2**n-1;
    10901075 for (i=1;i<=grenze;i++)
    10911076 {
Note: See TracChangeset for help on using the changeset viewer.