First time here? Check out the FAQ!
answered 12 years ago
sage: A = matrix([[1,2],[3,4]]) sage: f(x)=x^2 sage: A.apply_map(f) [ 1 4] [ 9 16]