view scripts/elfun/sech.m @ 1095:06a495f515c2

[project @ 1995-02-09 14:45:55 by jwe]
author jwe
date Thu, 09 Feb 1995 14:48:17 +0000
parents 3470f1e25a79
children 79ee7f07221e
line wrap: on
line source

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

  w = 1 ./ cosh(z);
  
endfunction