sqrt
Square root.
📝Syntax
R = sqrt(M)
📥Input Arguments
Parameter Description
M a variable
📤Output Arguments
Parameter Description
R result of sqrt: square root.
📄Description

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)$$
💡Examples
x = -3:3;
r = sqrt(x)
🔗See Also
logabsangle
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub