Section: Mathematical Functions
y = sqrt(x)
where x
is an N-dimensional numerical array.
sqrt
--> sqrt(9) ans = <double> - size: [1 1] 3 --> sqrt(i) ans = <complex> - size: [1 1] 0.70710677+0.70710677 i --> sqrt(-1) ans = <dcomplex> - size: [1 1] 6.123031769111886e-17+1.000000000000000e+00i --> x = rand(4) x = <double> - size: [4 4] Columns 1 to 3 0.57197204274900537 0.67276953239797321 0.07282172849057622 0.30836590449491652 0.35416346724739967 0.34617885941236703 0.04988455008698289 0.46457021337099846 0.55617234357104706 0.28221650529703501 0.39184914702729223 0.15141493010410334 Columns 4 to 4 0.16322487367463900 0.49978804122362641 0.95156525233420830 0.37112185863545955 --> sqrt(x) ans = <double> - size: [4 4] Columns 1 to 3 0.75628833307740861 0.82022529368337160 0.26985501383256938 0.55530703623753641 0.59511634765598542 0.58836966221276832 0.22334849470498541 0.68159387715192865 0.74576963170341481 0.53124053431288076 0.62597855157129167 0.38912071405169801 Columns 4 to 4 0.40401098212132674 0.70695688781114963 0.97548206151328498 0.60919771719488536