From Kx Wiki
Revision as of 09:37, 12 October 2009 by Chris Burke
cos (cosine function)
The cos function computes the cosine of its argument, taken to be in radians. The result is between -1 and 1, or null if the argument is null or infinity.
q)cos 0.2 0.9800666 q)min cos 10000?3.14159265 -1f q)max cos 10000?3.14159265 1f
For a complete list of functions, see the kdb+ Function Reference.