.radCos()
Description
radCos calculates the cosine of a number in radians. Unlike .cos() which uses degrees, this method expects radians.
Parameters
radCos takes no parameters.
Usage On Numbers
num = 3.14159 // π
log num.radCos()
// approximately -1 (cosine of π)
num = 1.5708 // π/2
log num.radCos()
// approximately 0 (cosine of π/2)
num = 0
log num.radCos()
// 1 (cosine of 0)
Last updated
Was this helpful?