view scripts/elfun/sec.m @ 1133:79ee7f07221e

[project @ 1995-02-22 22:16:41 by jwe]
author jwe
date Wed, 22 Feb 1995 22:16:50 +0000
parents 06a495f515c2
children 5cffc4b8de57
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