cos(x) sin(x) tan(x)
These are members of the Math group of generic functions.
See section 5.1.5 of Becker, Chambers and Wilks for details on domains and branch cuts in the case of complex arguments.
my.matrix <- matrix(seq(1, 2*pi, len=12, nrow=4) cos(my.matrix) # will be a matrix of the same dimensions1/sin(x) # cosecant of x 1/tan(x) # cotangent of x