cos

cos (angle -- cosine)

Inputs

Outputs

cos accepts Real32 and Real64 values. The input is dereferenced and must be non-NIL. The input value represents an angle in radians.

Behavior

Example

{} () {} [
  "-- real32 --" printCompilerMessage
  0.0r32 cos printStack _:;
  3.1415927r32 cos printStack _:;

  "-- real64 --" printCompilerMessage
  0.0 cos printStack _:;
  3.141592653589793 cos printStack _:;
] "main" exportFunction

Expected Output During Compilation

-- real32 --
1.0r32
-1.0r32
-- real64 --
1.0
-1.0

See also