Documentation for routine tanh
assembled from the following pages:
Class: Cool §
From Cool
(Cool) routine tanh §
Defined as:
sub tanh(Numeric(Cool))method tanh()
Coerces the invocant (or in sub form, its argument) to Numeric, interprets it as radians and returns its Tangent hyperbolicus.
say tanh(0.5); # OUTPUT: «0.46211715726001» say tanh(atanh(0.5)); # OUTPUT: «0.5»