changeset 31:19b973bc5464

[project @ 1993-08-10 21:48:36 by jwe] (general_functions): Add givens to the list.
author jwe
date Tue, 10 Aug 1993 21:48:36 +0000
parents 9239bd2337bb
children 34899b0346b9
files src/builtins.cc
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/builtins.cc	Tue Aug 10 21:46:34 1993 +0000
+++ b/src/builtins.cc	Tue Aug 10 21:48:36 1993 +0000
@@ -344,8 +344,15 @@
   { "getenv", 2, 1, builtin_getenv,
     "get environment variable values\n", },
 
+  { "givens", 3, 2, builtin_givens,
+    "Givens rotation:\n\
+  G = givens(x,y) returns an orthogonal matrix G = [c s; -conj(s) c] such\n\
+    that G[x;y] = [*;0]  (x,y scalars)\n\
+  [c,s] = givens(x,y) returns the (c,s) values themselves.",},
+  
+
   { "hess", 2, 2, builtin_hess,
-    "Hessenburg decomposition\n",},
+    "Hessenberg decomposition\n",},
 
   { "home", 1, 0, builtin_clc,
     "clear screen\n", },