Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#96 Opposite of augcoefmatrix()

open
nobody
None
5
2012-11-18
2012-03-23
Edd Barrett
No

If I had a augmented matrix:

M : [ 2 3 | 4 ]
[ 0 1 | 2 ]

A useful function might be augmatrix_to_linear(M, [a, b], ">"), which would give:

[2*a + 3*b > 4, 1*a > 2]

Thanks

Discussion

  • Barton Willis
    Barton Willis
    2012-03-24

    Maybe you want a function something like

    (%i77) m : matrix([1,2,3],[4,5,6])$
    (%i81) f(m,v) := args(map(lambda([s], rest(s,-1) . v > last(s)),m))$
    (%i82) f(m,[x,y]);
    (%o82) [2*y+x>3,5*y+4*x>6]