Skip to end of banner
Go to start of banner

cos

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8? Click here and leave these dusty old pages behind!

Availability

This routine is available starting with SIL Engine™ 2.5.

Syntax

cos(number)

Description


Returns the cosine of the given angle. If the angle is in degrees, either multiply the angle by PI()/180 or use the radians function to convert the angle to radians.


Parameters

ParameterTypeRequiredDescription
numberNumberYesAngle in radians you want the cosine for.

Return type

number

Example

number a = cos(1.047);
print("a= " + a);

number b = cos(60*pi()/180);
print("b= " + b);

number c = cos(radians(30));
print("c= " + c);

Prints: a= 0.5001710745970701;

           b= 0.5000000000000001;

           c= 0.5000000000000001;

See also


  • No labels