Hi Aleks,

You can just treat m as any symoblic expression and call it as a function.

sage: x,y = var('x,y')
sage: m = matrix([[cos(x),0],[0,-sin(y)]])
sage: m
[ cos(x)       0]
[      0 -sin(y)]
sage: m(x=1, y=2)
[ cos(1)       0]
[      0 -sin(2)]
sage: m.variables()
(x, y)
sage: m(1,2)
[ cos(1)       0]
[      0 -sin(2)]

--Mike

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to