home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / lib / octave / 1.1.1 / m / elfun / asec.m < prev    next >
Encoding:
Text File  |  1996-10-12  |  178 b   |  11 lines

  1. function w = asec (z)
  2.   
  3. # asec (z):  compute the inverse secant for each element of z.
  4.   
  5.   if (nargin != 1)
  6.     usage ("asec (z)");
  7.   endif
  8.  
  9.   w = acos (1 ./ z);
  10.   
  11. endfunction