cos (Function)

Signature: cos(x: float) -> float

Description: The cosine of a float in radians. Total over IEEE doubles; pure, so a kernel may call it or name it.

Parameters

  • x (float): The angle in radians

Returns: float

Example

print(cos(1.0))  // 0.5403023058681398
print (cos 1.0)  // 0.5403023058681398