view scripts/elfun/coth.m @ 974:a0fa18fa9d0c

[project @ 1994-12-12 20:21:35 by jwe]
author jwe
date Mon, 12 Dec 1994 20:21:35 +0000
parents 3470f1e25a79
children 5cffc4b8de57
line wrap: on
line source

function w = coth (z)
  
# coth (z):  compute the hyperbolic cotangent for each element of z.
  
  if (nargin != 1)
    usage ("coth (z)");
  endif

  w = 1 ./ tanh(z);
  
endfunction