Mercurial > octave
view scripts/elfun/sech.m @ 1249:86fc40576f22
[project @ 1995-04-11 01:03:08 by jwe]
author | jwe |
---|---|
date | Tue, 11 Apr 1995 01:03:57 +0000 |
parents | 79ee7f07221e |
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