Documentation/Calc Functions/IMCOS

Function name:
IMCOS

Category:
Add-in

Summary:
Calculates the trigonometric cosine of a complex number.

Syntax:
IMCOS(ComplexNumber)

Returns:
Returns a text string giving the complex number that is the cosine of the complex number passed as argument.

Arguments:
ComplexNumber is a string (in quotation marks) representing a complex number in the form a+bi or a+bj, or a reference to a cell containing that string, whose cosine is to be determined. a and b are real numbers.
 * If ComplexNumber does not have an imaginary part (b equal to 0), the real part can be passed to IMCOS as a number rather than a string.
 * If ComplexNumber is not a valid complex number, IMCOS reports an invalid argument error (Err:502).

Details specific to IMCOS function
For a complex number of the form a+bi, IMCOS implements the following equation: However, IMCOS determines if b=0 and in this case simply returns cos(a).

Related LibreOffice functions:
IMCOT

IMCSC

IMSEC

IMSIN

IMTAN

ODF standard:
Section 6.8.7, part 2

Equivalent Excel functions:
IMCOS