Section: Mathematical Functions
y = sqrt(x)
where x is an N-dimensional numerical array.
sqrt
--> sqrt(9)
ans =
3
--> sqrt(i)
ans =
0.7071 + 0.7071i
--> sqrt(-1)
ans =
0.0000 + 1.0000i
--> x = rand(4)
x =
0.2550 0.0649 0.8151 0.3022
0.2716 0.0796 0.0013 0.9098
0.2932 0.5069 0.3592 0.1642
0.4481 0.5085 0.3159 0.1587
--> sqrt(x)
ans =
0.5050 0.2547 0.9028 0.5497
0.5211 0.2822 0.0354 0.9538
0.5415 0.7120 0.5993 0.4052
0.6694 0.7131 0.5621 0.3984
-->
quit