R = sqrt(M)
| Parameter | Description |
|---|---|
| M | a variable |
| Parameter | Description |
|---|---|
| R | result of sqrt: square root. |
sqrt computes the square root.
For real positive numbers:
$$\sqrt{x}$$For complex numbers z = x + iy:
$$\sqrt{z} = \sqrt{r} e^{i\phi/2}$$where
$$r = |z| = \sqrt{x^2 + y^2}$$and
$$\phi = \arg(z) = \text{atan2}(y, x)$$x = -3:3;
r = sqrt(x)
| Version | Description |
|---|---|
| 1.0.0 | initial version |