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.40663497729216602 0.08747017507489308 0.01593444966380131 0.55779195278479099 0.71493099186266174 0.65332496252868777 0.75766204737427256 0.68031656571272592 0.85797322970030954 0.91841918711037873 0.54999662708094066 0.44162552964133306 Columns 4 to 4 0.79651302205786900 0.86312963180946323 0.77057046831984377 0.91928222854362174 --> sqrt(x) ans = <double> - size: [4 4] Columns 1 to 3 0.63767936872080633 0.29575357153362170 0.12623173001983815 0.74685470660951914 0.84553591991272714 0.80828519875640914 0.87043784808237312 0.82481304894668461 0.92626844364919914 0.95834189468601383 0.74161757468451395 0.66454911755364865 Columns 4 to 4 0.89247578233690406 0.92904770157912953 0.87782143304879712 0.95879206741796819