Changeset 4173c7 in git for Singular/LIB/general.lib


Ignore:
Timestamp:
May 4, 2011, 3:11:46 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
85ba0aaf4c7c467f1fa0dbf0a8b22f8cc10cf672
Parents:
c8a1b262104ff4f22a15159b4777248922f0178f
Message:
use div instead of /, part 1


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/general.lib

    rc8a1b26 r4173c7  
    787787static proc lsum (int n, list l)
    788788{ if (n>10)
    789   { return( lsum(n/2,list(l[1..(n/2)])) + lsum(n-n/2, list(l[(n/2+1)..n])) );
     789  { return( lsum(n div 2,list(l[1..(n div 2)])) + lsum(n-n div 2, list(l[(n div 2+1)..n])) );
    790790  }
    791791  else
     
    878878   n = size(id);
    879879   if (n>10)
    880    { return( lsum(n/2,list(id[1..(n/2)])) + lsum(n-n/2, list(id[(n/2+1)..n])) );
     880   { return( lsum(n div 2,list(id[1..(n div 2)])) + lsum(n-n div 2, list(id[(n div 2+1)..n])) );
    881881   }
    882882   else
Note: See TracChangeset for help on using the changeset viewer.