| 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)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.