First time here? Check out the FAQ!
answered 2012-10-23 16:34:33 +0100
sage: A = matrix([[1,2],[3,4]]) sage: f(x)=x^2 sage: A.apply_map(f) [ 1 4] [ 9 16]