math.cos¶ math.cos(x) -> number Return the cosine of x, in radians. Parameters x: any — the angle in radians Returns number — the cosine of x, as a float Examples assert(math.cos(0) == 1.0) print(math.cos(math.pi)) --> -1.0 (approximately) output: -1.0