Group: | Mathematical Functions |
Topic: | Trigonometric Functions |
See also: | acos acosh asin asinh atan atan2 atanh cos cosh sinh tan tanh |
Function: | sin | |
Description: | Returns the sine in radian of the elements of an array. |
Usage: | z = sin (x) | |
Input: | ||
x | array | |
Output: | ||
z | array |
x = #(pi/2, pi/4)~#(pi, 3/4*pi) sin(x) setenv("outputformat","%8.5f") sin(x) setenv("outputformat","%8.5lg")
Contents of sin [1,] 1 1.2251e-16 [2,] 0.70711 0.70711 Contents of sin [1,] 1.00000 0.00000 [2,] 0.70711 0.70711