Mod_squared_cpp | R Documentation |
Computes the squared value of the Modulus.
Mod_squared_cpp(x)
x |
A |
Consider a complex number defined as: z = x + i y with real x and y, The modulus is defined as: r = Mod(z) = sqrt(x^2 + y^2) This function will return: r^2 = Mod≤ft(z\right)^2 = x^2 + y^2
A vec
containing the modulus squared for each element.
Mod_squared_cpp(c(1+.5i, 2+1i, 5+9i))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.