cos(x) sin(x) tan(x)
NA
s) are
allowed.
This function will be used as the default method for classes that do not inherit a specific method for the function or for the Math group of functions. The result will retain the class and the attributes. If this behavior is not appropriate, the designer of the class should provide a method for the function or for the Math group
Missing values in the input create missing values in the output.
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 dimensions 1/sin(x) # cosecant of x 1/tan(x) # cotangent of x