Mercurial > octave
view scripts/elfun/sec.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 = sec (z) # sec (z): compute the secant for each element of z. if (nargin != 1) usage ("sec (z)"); endif w = 1 ./ cos(z); endfunction