Changeset 1bf4c54 in git


Ignore:
Timestamp:
Nov 24, 2017, 12:35:48 PM (6 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
67a25dc16190bd3be04c9899cc5aba41125ec8b9
Parents:
4d0ea67733b0f73e65b8a437610cac163471ee33
Message:
Fix prime/semi-prime for a special case
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/fpadim.lib

    r4d0ea67 r1bf4c54  
    13091309  G = simplify(G, 2+4+8);
    13101310
     1311  // check special case 1
     1312  int l = 0;
     1313  for (int i = 1; i <= size(G); i++) {
     1314    // find the max degree in G
     1315    int d = deg(G[i]);
     1316    if (d > l) {
     1317      l = d;
     1318    }
     1319
     1320    // also if G is the whole ring
     1321    if (leadmonom(G[i]) == 1) {
     1322      return(1);
     1323    }
     1324  }
     1325  // if longest word has length 1 we handle it as a special case
     1326  if (l == 1) {
     1327    return(1);
     1328  }
     1329
    13111330  list VUG = lpUfGraph(G, 1);
    13121331  intmat UG = VUG[1]; // the Ufnarovskij graph
     
    13801399  G = lead(G);
    13811400  G = simplify(G, 2+4+8);
     1401
     1402  // check special case 1
     1403  int l = 0;
     1404  for (int i = 1; i <= size(G); i++) {
     1405    // find the max degree in G
     1406    int d = deg(G[i]);
     1407    if (d > l) {
     1408      l = d;
     1409    }
     1410
     1411    // also if G is the whole ring
     1412    if (leadmonom(G[i]) == 1) {
     1413      return(1);
     1414    }
     1415  }
     1416  // if longest word has length 1 we handle it as a special case
     1417  if (l == 1) {
     1418    return(1);
     1419  }
    13821420
    13831421  list VUG = lpUfGraph(G, 1);
Note: See TracChangeset for help on using the changeset viewer.