Error getting tags :
error 404Error getting tags :
error 404 cos | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
cos
Basics
Expander triangle
Type
Function
Syntax

the cos of angle

cos(angle)

See Also
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the cosine of an angle (in radians).
Examples

cos(pi)
the cos of 0
put cos(the startAngle of graphic 3) into field "Cosine"

Additional Comments
Expander triangle

Use the cos function to find the cosine of an angle.

Parameters:

The angle is a positive or negative number, or an expression that evaluates to a number.

Value:

The cos function returns a number between -1 and 1.

Comments:

The cos function repeats every 2*pi radians: cos(x) = cos(x + 2 * pi), for any value of x.

The cos function requires its input to be in radians. To provide an angle in degrees, use the following custom function:

function cosInDegrees angleInDegrees

return cos(angleInDegrees * pi / 180)

end cosInDegrees

User Comments
Expander triangle