method

cos

v2_2_9 - Show latest stable - Class: CMath
cos(z)
public

returns the cosine of z, where z is given in radians

CMath.cos(1 + 1i) #=> (0.8337300251311491-0.9888977057628651i)