diff scripts/elfun/sec.m @ 713:632844972d35

[project @ 1994-09-20 18:37:13 by jwe] Initial revision
author jwe
date Tue, 20 Sep 1994 18:38:18 +0000
parents
children 3470f1e25a79
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/elfun/sec.m	Tue Sep 20 18:38:18 1994 +0000
@@ -0,0 +1,11 @@
+function w = sec (z)
+  
+# sec (z): compute the secant for each element of z.
+
+  if (nargin != 1)
+    error ("usage: sec (z)");
+  endif
+  
+  y = 1 ./ cos(z);
+  
+endfunction
\ No newline at end of file