Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Mathematical Functions
Topic: Trigonometric Functions
See also: acos acosh asin asinh atan atan2 atanh cosh sin sinh tan tanh

Function: cos
Description: Returns the cosine in radian of the elements of an array.

Usage: z = cos (x)
Input:
x array
Output:
z array

Note:

Example:
x = #(pi/2, pi/4)~#(pi, 3/4*pi)
cos(x)
setenv("outputformat","%8.5f")
cos(x)
setenv("outputformat","%8.5lg")

Result:
Content of cos
[1,] 6.1232e-17       -1
[2,]  0.70711 -0.70711
Content of cos
[1,]  0.00000 -1.00000
[2,]  0.70711 -0.70711



(C) MD*TECH Method and Data Technologies, 05.02.2006