Mercurial > hg > octave-lyh
comparison scripts/elfun/acot.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 |
comparison
equal
deleted
inserted
replaced
903:b3692d63cca3 | 904:3470f1e25a79 |
---|---|
1 function w = acot (z) | 1 function w = acot (z) |
2 | 2 |
3 # acot (z): compute the inverse cotangent for each element of z. | 3 # acot (z): compute the inverse cotangent for each element of z. |
4 | 4 |
5 if (nargin != 1) | 5 if (nargin != 1) |
6 error ("usage: acot (z)"); | 6 usage ("acot (z)"); |
7 endif | 7 endif |
8 | 8 |
9 w = atan (1 ./ z); | 9 w = atan (1 ./ z); |
10 | 10 |
11 endfunction | 11 endfunction |