Python cmath.cos() Method

cmath Methods : Find the cosine of a complex number

Definition and Usage

The cmath.cos() method returns the cosine of a complex number.

Syntax

cmath.cos(x)

Parameter Values

Parameter Description
x Required. A number to find the cosine of

Technical Details

Return Value: A complex value, representing cosine of a complex number
Python Version: 1.5