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

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