Ticket #4: sum.bug.sing

File sum.bug.sing, 1.1 KB (added by Oleksandr , 16 years ago)

test

Line 
1LIB "ncall.lib";
2ring r=2,(x,y,z),dp;
3ring s=0,(a,b,c,d),dp;
4def nc_s=SuperCommutative(3,4);
5def R=r+nc_s;
6setring R;
7R;
8/*
9//   characteristic : 2
10//   number of vars : 7
11//        block   1 : ordering dp
12//                  : names    x y z
13//        block   2 : ordering dp
14//                  : names    a b c d
15//        block   3 : ordering C
16//   noncommutative relations:
17// quotient ring from ideal
18_[1]=d2
19_[2]=c2
20*/
21
22def X=nc_s+r;
23
24// // ** Error on recognizing nc types
25
26setring X;
27X;
28/*
29//   characteristic : 2
30//   number of vars : 7
31//        block   1 : ordering dp
32//                  : names    a b c d
33//        block   2 : ordering dp
34//                  : names    x y z
35//        block   3 : ordering C
36//   noncommutative relations:
37// quotient ring from ideal
38_[1]=d2
39_[2]=c2
40*/
41
42/*
43Sowohl R=r+nc_s als auch X=nc_s+r haben das zu erwartende Ergebnis, aber
44bei letzterem gibt es // ** Error on recognizing nc types
45
46Ist diese Fehlermeldung ein Fehler? Oder ist es wirklich nicht erlaubt,
47nc_s+r zu sagen (warum?), während r+nc_s problemlos geht?
48*/
49
50
51
52$$$$$$$