Compute the Givens rotation matrix G.
The Givens matrix is a 2 by 2 orthogonal matrix
g = [c s; -s' c]
such that
g [x; y] = [*; 0]
with x and y scalars.
If two output arguments are requested, return the factors c and s rather than the Givens rotation matrix.
For example:
givens (1, 1) ⇒ 0.70711 0.70711 -0.70711 0.70711
See also: planerot.
Package: octave