cos (Function)

Signature: cos(x: t0) -> t0

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

Parameters

  • x (t0): The angle in radians

Returns: t0

Example

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