Next: cosh() Up: MacAnova Help File Previous: cor()   Contents

cos()

Usage:
cos(x [, degrees:T or radians:T or cycles:T]), x REAL or a structure
  with REAL components x in radians (default), cycles, or degrees as set
  by option "angles" or the optional keyword



Keywords: transformations
                                  Usage
cos(x) computes the cosine of the values of the elements of x,
where x is a REAL scalar, vector, matrix or array.  The result has the
same shape as x.

                                  Units
The argument is considered to be in units of radians, degrees or cycles
as determined by the value of option 'angles'.  The default is radians.
See topic 'options'.

cos(x, radians:T), cos(x, degrees:T), cos(x, cycles:T) interpret x as in
the indicated units, regardless of the value of option 'angles'.

                      Missing or too large argument
When any element of x is MISSING or is too large (> 5000000*PI radians
in absolute value), the corresponding element of the result is MISSING
and a warning message is printed.

                           Structure argument
When x is a structure, all of whose non-structure components are REAL,
cos(x [,UNITS:T]), where UNITS is one of 'radians', 'degrees' or
'cycles', is a structure of the same shape and with the same component
names as x with each non-structure component transformed by cos().

                            Cross references
See topic 'transformations' for more information on cos(), including its
use with a CHARACTER argument.


Gary Oehlert 2005-08-12