PrecisionCalc
xl
Precision
Get Your Numbers Right

 

xlpCOS

Returns the cosine of an angle, with up to 32,767 significant digits of precision. Same as Excel's built-in COS function, but with high precision.

For any given angle in a right triangle, the angle's cosine is the length of the side between the angle and the right angle (the "adjacent" side), divided by the length of the side opposite the right angle (the "hypotenuse").

Syntax

xlpCOS(num,maximum_significant_digits)

num Required. The angle, in radians, for which to find the cosine.
maximum_significant_digits Optional. Determines the maximum number of significant digits to be returned. Default is the maximum number allowed by the edition of xlPrecision.

Remarks

Examples

Formula Description
=xlpCOS(0.25) Cosine of angle of 0.25 radians.
=xlpCOS(xlpRADIANS(15)) Cosine of angle of 15 degrees.

See Also

xlpSIN
xlpTAN