comparison scripts/elfun/coth.m @ 713:632844972d35

[project @ 1994-09-20 18:37:13 by jwe] Initial revision
author jwe
date Tue, 20 Sep 1994 18:38:18 +0000
parents
children 3470f1e25a79
comparison
equal deleted inserted replaced
712:36ba0576bd1b 713:632844972d35
1 function w = coth (z)
2
3 # coth (z): compute the hyperbolic cotangent for each element of z.
4
5 if (nargin != 1)
6 error ("usage: coth (z)");
7 endif
8
9 w = 1 ./ tanh(z);
10
11 endfunction