source: git/Tst/Short/bug_tr760_761.tst @ 1c1d660

spielwiese
Last change on this file since 1c1d660 was 1c1d660, checked in by Hans Schoenemann <hannes@…>, 8 years ago
fix: tr. #763 (there may be 0 as generator in resolution)
  • Property mode set to 100644
File size: 922 bytes
RevLine 
[fc866f6]1LIB "tst.lib";
2tst_init();
3
[ed91a6]4// 760: conversion list -> resolution must include attribute isHomog
[fc866f6]5ring r = 0, x, dp;
6module m = 0;
7attrib(m, "isHomog", intvec(3));
8print(betti(list(m), 0), "betti");
9attrib(m,"isHomog");
10resolution s = list(m);
11attrib(s);
12attrib(s,"isHomog");
13print(betti(s, 0), "betti");
14
[1c1d660]15// 761: rowShift, if betti[1,1] is 0
[ed91a6]16ring r2 = 0, x, dp;
17module m = gen(1);
18attrib(m, "isHomog", intvec(3));
19print(betti(list(m), 0), "betti");
20
[1c1d660]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
[fc866f6]40tst_status(1);$;
41
42
Note: See TracBrowser for help on using the repository browser.