Documentation for routine cos
assembled from the following pages:
Class: Cool §
From Cool
(Cool) routine cos §
Defined as:
sub cos(Numeric(Cool))method cos()
Coerces the invocant (or in sub form, the argument) to Numeric, interprets it as radians, returns its cosine.
say 0.cos; # OUTPUT: «1» say pi.cos; # OUTPUT: «-1» say cos(pi/2); # OUTPUT: «6.12323399573677e-17»