Mercurial > hg > octave-lyh
view scripts/elfun/sech.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 |
line wrap: on
line source
function w = sech (z) # sech (z): compute the hyperbolic secant for each element of z. if (nargin != 1) error ("usage: sech (z)"); endif y = 1 ./ cosh(z); endfunction