view scripts/elfun/sec.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 06a495f515c2
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
  
  y = 1 ./ cos(z);
  
endfunction