Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

May be you can achieve what you want via an anonymous function.

a,b=var('a,b')    
M = lambda a,b : matrix([[1,a], [0,b]])
A = M(a,b)
show(A)
B = M(a=0,b=b)
show(B)