XLPack 6.1
Excel VBA Numerical Library Reference Manual
Loading...
Searching...
No Matches

◆ Zrotg()

Sub Zrotg ( ZA As  Complex,
ZB As  Complex,
C As  Double,
ZS As  Complex 
)

Constructs Givens plane rotation (complex vector) (BLAS 1)

Purpose
This routine constructs Givens plane rotation for the point (a, b) as below.
( c s ) * ( a ) = ( r )
(-conjg(s) c ) ( b ) ( 0 )
where r = (a/sqrt(conjg(a)*a))*sqrt(conjg(a)*a + conjg(b)*b), if |a| != 0,
r = b, if |a| = 0.
The constructed plane rotation can be used by Zrot to convert the points to the new coordinate system.
Parameters
[in,out]ZA[in] a value
[out] r value
[in]ZBb value.
[out]Cc (cosine) value.
[out]ZSs (sine) value.
Reference
BLAS