On Thu, Oct 15, 2009 at 7:45 PM, Matt Rissler <discn...@gmail.com> wrote: > > Basically, I'm having student look for the x that makes the matrix > singular, or the columns linearly dependent, or ... However Sage > behaves like so: > > sage: A=matrix([[0,1,1],[2,2,-2],[-1,x,3]])
You could also solve the problem by computing the determinant: sage: A=matrix([[0,1,1],[2,2,-2],[-1,x,3]]) sage: f = A.det(); f 2*x - 2 sage: solve(f==0,x) [x == 1] sage: A.subs(x==1).rank() 2 William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---