Changeset 1c1d660 in git for Tst/Short/bug_tr760_761.tst


Ignore:
Timestamp:
May 11, 2016, 1:46:26 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8e11c18a3a737eb1a4f019cd5a31a51b01b07da8ff38ee02732552e78a143ebf4f9aadccee454071
Parents:
ed91a648ee6c2d95f04a52b58c09059d4c2c717e
Message:
fix: tr. #763 (there may be 0 as generator in resolution)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Tst/Short/bug_tr760_761.tst

    red91a6 r1c1d660  
    1313print(betti(s, 0), "betti");
    1414
    15 // 761: rwowShift, if betti[1,1] is 0
     15// 761: rowShift, if betti[1,1] is 0
    1616ring r2 = 0, x, dp;
    1717module m = gen(1);
     
    1919print(betti(list(m), 0), "betti");
    2020
     21// 763: there may be 0 as generator
     22LIB "matrix.lib";
     23ring r3 = 0, (x,y,z), dp;
     24ideal i1 = x, y, z;
     25ideal i2 = 1;
     26resolution s1 = res(i1, 0);
     27resolution s2 = res(i2, 0);
     28list l1 = s1;
     29list l2 = s2;
     30print(betti(l1, 0), "betti");
     31print(betti(l2, 0), "betti");
     32list l_sum;
     33l_sum[3] = module(dsum(matrix(l1[3]), matrix(l2[1])));   // direct sum
     34l_sum[1] = l1[1];
     35l_sum[2] = module(l1[2][1], l1[2][2], l1[2][3], 0);
     36l_sum;
     37
     38print(betti(l_sum, 0), "betti");
     39
    2140tst_status(1);$;
    2241
Note: See TracChangeset for help on using the changeset viewer.