Skip to content
Chung Leong edited this page Jan 10, 2022 · 5 revisions

cos - Cosine

float cos ( float $x )

cos() returns the cosine of x. The x parameter is in radians.

Parameters:

x - The argument to process in radians. It can be a scalar or an array.

Return Value:

The cosine of x. If x is an array, the return value will also be an array.

Version

1.0 and above.

Clone this wiki locally