Mercurial > octave
view scripts/elfun/cot.m @ 904:3470f1e25a79
[project @ 1994-11-09 21:22:15 by jwe]
author | jwe |
---|---|
date | Wed, 09 Nov 1994 21:22:15 +0000 |
parents | 632844972d35 |
children | 5cffc4b8de57 |
line wrap: on
line source
function w = cot (z) # cot (z): compute the cotangent for each element of z. if (nargin != 1) usage ("cot (z)"); endif w = 1 ./ tan(z); endfunction