Using ring map to transfer a list?
Ravi · Sun Aug 16, 2009 10:12 am
Hello,
I have calculated a list of (constant) matrices in one ring and now want to calculate their characteristic polynomials for which I need to define another ring but the list is not available in this new ring. How do I access the list in the new ring?
The documentation for the map function does not say how to transfer a list from one ring to another...
-------------------
One more elementary question: How do I do arithmetic on rational functions in Singular? For example calculate that
I have calculated a list of (constant) matrices in one ring and now want to calculate their characteristic polynomials for which I need to define another ring but the list is not available in this new ring. How do I access the list in the new ring?
The documentation for the map function does not say how to transfer a list from one ring to another...
Code:
LIB "finvar.lib";
LIB "linalg.lib";
ring R = (0,a), (x,y), dp;
minpoly = a2-3;
matrix A[2][2] = -1/2,-a/2, a/2,-1/2;
matrix B[2][2] = 1,0, 0,-1;
list L = group_reynolds(A,B);
print(size(L));
ring S = 0, t, dp;
for (int i=2; i<=7; i=i+1) {
print(charpoly(L[i], "t"); // L not accessible here
}
LIB "linalg.lib";
ring R = (0,a), (x,y), dp;
minpoly = a2-3;
matrix A[2][2] = -1/2,-a/2, a/2,-1/2;
matrix B[2][2] = 1,0, 0,-1;
list L = group_reynolds(A,B);
print(size(L));
ring S = 0, t, dp;
for (int i=2; i<=7; i=i+1) {
print(charpoly(L[i], "t"); // L not accessible here
}
-------------------
One more elementary question: How do I do arithmetic on rational functions in Singular? For example calculate that
Code:
1/(t+1) + 1/(t-1) = 2t/(t2-1)