Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error while creating augmented matrix: TypeError: unable to convert a to an integer

I am trying to create augmented matrix containing variables a and b, using the following code:

sage: 
sage: u = Matrix([
....: [1, -1],
....: [2,  1]
....: ])
sage: 
sage: var('a, b')
(a, b)
sage: 
sage: w = vector([ a, b])
sage: 
sage: u.augment(w, subdivide=True)

The last line, u.augment(w, subdivide=True), is giving me TypeError: unable to convert a to an integer.