view scripts/elfun/sech.m @ 1133:79ee7f07221e

[project @ 1995-02-22 22:16:41 by jwe]
author jwe
date Wed, 22 Feb 1995 22:16:50 +0000
parents 06a495f515c2
children 5cffc4b8de57
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