| Author |
Comment/Response |
Parsifal
|
02/18/05 00:19am
Suppose I use Reduce[] and now I want to use the data it has returned in a Boolean expression. For example, parsing the equation entries a_(i,j) (of the Boolean expression at the bottom of this post) into a matrix would be really handy. What's the most effective way to do this?
Sample Boolean expression:
(C[1] | C[2] | C[3] | C[4] | C[5]) ? Integers && C[1] >= 0 && C[2] >= 0 && C[3] >= 0 && C[4] >= 0 && C[5] >= 0 && Subscript[a, 1, 1] == 1 + C[1] + C[2] + C[3] + 2*C[4] && Subscript[a, 1, 2] == 1 + C[1] + 2*C[2] + 2*C[5] && Subscript[a, 1, 3] == 1 + C[1] + 2*C[3] + C[4] + C[5] && Subscript[a, 2, 1] == 1 + C[1] + 2*C[3] + 2*C[5] && Subscript[a, 2, 2] == 1 + C[1] + C[2] + C[3] + C[4] + C[5] && Subscript[a, 2, 3] == 1 + C[1] + 2*C[2] + 2*C[4] && Subscript[a, 3, 1] == 1 + C[1] + 2*C[2] + C[4] + C[5] && Subscript[a, 3, 2] == 1 + C[1] + 2*C[3] + 2*C[4] && Subscript[a, 3, 3] == 1 + C[1] + C[2] + C[3] + 2*C[5] && M == 3 + 3*C[1] + 3*C[2] + 3*C[3] + 3*C[4] + 3*C[5]
URL: , |
|