First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 12 years ago

achrzesz gravatar image
sage: A = matrix([[1,2],[3,4]])
sage: f(x)=x^2                 
sage: A.apply_map(f)           
[ 1  4]
[ 9 16]