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.30321237556395952 0.88194882640444583 0.08364828321231343 0.89000870990351189 0.28718737336883804 0.85652864497748205 0.24228626078925408 0.60644730246736522 0.38520056617787590 0.64087763657404362 0.18691431309757034 0.92958575403063803 Columns 4 to 4 0.64442638307431366 0.70020763274943776 0.58484919732966401 0.84041505600660127 --> sqrt(x) ans = <double> - size: [4 4] Columns 1 to 3 0.55064723332089804 0.93912130547892791 0.28922012933458391 0.94340272943399517 0.53589865960724148 0.92548832784507984 0.49222582296061435 0.77874726482175538 0.62064528208782499 0.80054833493927380 0.43233587995627931 0.96415027564723443 Columns 4 to 4 0.80276172247704591 0.83678410163520545 0.76475433789529035 0.91674154264252761