Skip to content

Commit 1bb1550

Browse files
author
Jan-Olof Hendig
committed
Added documentation for sech and asech to Cool.pod
1 parent ade320d commit 1bb1550

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

doc/Type/Cool.pod

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,40 @@ Usage:
502502
Coerces the invocant (or in method form, its argument) to L<Numeric|/type/Numeric>, and returns its
503503
L<Inverse tangens hyperbolicus|https://en.wikipedia.org/wiki/Inverse_hyperbolic_function>.
504504
505+
=head2 routine sech
506+
507+
Defined as:
508+
509+
sub sech(Numeric(Cool))
510+
method sech()
511+
512+
Usage:
513+
514+
sech NUMERIC
515+
NUMERIC.sech
516+
517+
Coerces the invocant (or in method form, its argument) to L<Numeric|/type/Numeric>, and returns its
518+
L<Secant hyperbolicus|https://en.wikipedia.org/wiki/Hyperbolic_function>.
519+
520+
say 0.sech; # 1
521+
522+
=head2 routine asech
523+
524+
Defined as:
525+
526+
sub asech(Numeric(Cool))
527+
method asech()
528+
529+
Usage:
530+
531+
asech NUMERIC
532+
NUMERIC.asech
533+
534+
Coerces the invocant (or in method form, its argument) to L<Numeric|/type/Numeric>, and returns its
535+
L<Inverse hyperbolic secant|https://en.wikipedia.org/wiki/Hyperbolic_function>.
536+
537+
say 0.8.asech; # 0.693147180559945
538+
505539
=head2 routine log
506540
507541
Defined as:

0 commit comments

Comments
 (0)