Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: math
See also: ccos ccosh cexp cln csin csinh ctan ctanh

Quantlet: csqrt
Description: computes square root of a complex number

Usage: z = csqrt(x)
Input:
x n x p x d1 x ... x dn complex array, i.e., list consisting of elements re and im, both n x p x d1 x ... x dn matrices
Output:
z n x p x d1 x ... x dn complex array, i.e., list consisting of elements re and im, both n x p x d1 x ... x dn matrices

Example:
library("math")
x = complex(#(4,16,-1), #(9,1,0))
csqrt(x)

Result:
Contents of z.re
[1,]   2.6314
[2,]    4.002
[3,]  6.1257e-17
Contents of z.im
[1,]   1.7101
[2,]  0.12494
[3,]        1



Author: S. Klinke, S. Hannappel, L. Cizkova, 20021206
(C) MD*TECH Method and Data Technologies, 05.02.2006