updating oE cos


<built-in> function cos(object angle) 

returns the cosine of an angle expressed in radians.

  1. angle : an object, each atom of which will be converted, no matter how deeply nested.

An object, the same shape as angle. Each atom in angle is turned into its cosine.


This function may be applied to an atom or to all elements of a sequence.

The cosine of an angle is an atom between -1 and 1 inclusive. 0.0 is hit by odd multiples of PI/2 only.

Example 1:
x = cos({.5, .6, .7}) 
-- x is {0.8775826, 0.8253356, 0.7648422} 
See Also:

sin, tan, arccos, PI, deg2rad

Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu