routine cis
1 | class Cool |
1.1 | (Cool) routine cis |
Documentation for routine cis
assembled from the following types:
class Cool
From Cool
(Cool) routine cis
Defined as:
sub cis(Numeric(Cool))method cis()
Coerces the invocant (or in sub form, its argument) to Numeric, and returns cos(argument) + i*sin(argument).
say cis(pi/4); # OUTPUT: «0.707106781186548+0.707106781186547i»