sqrt

Square root.

📝 Syntax

  • R = sqrt(M)

📥 Input argument

  • M - a variable

📤 Output argument

  • R - result of sqrt: square root.

📄 Description

sqrt computes the square root.

For real positive numbers: x\sqrt{x}

For complex numbers z = x + iy: z=reiϕ/2\sqrt{z} = \sqrt{r} e^{i\phi/2}

where r=z=x2+y2r = |z| = \sqrt{x^2 + y^2}

and ϕ=arg(z)=atan2(y,x)\phi = \arg(z) = \text{atan2}(y, x)

💡 Example

x = -3:3;
r = sqrt(x)

🔗 See also

log, abs, angle.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?