SpreadJS Documentation
IMCOS
SpreadJS Documentation > Formula Reference > Formula Functions > IMCOS

This function returns the cosine of a complex number.

Syntax

IMCOS(complexnum)

Arguments

The complexnum argument is a complex number for which to return the cosine.

Remarks

An error is returned if the complexnum argument is not in the form "x+yi" or "x+yj". For more information, refer to Complex Numbers.

Data Types

Accepts number and string data. Returns string data.

Examples

IMCOS("3+5j")

See Also