Mod_cpp: Absolute Value or Modulus of a Complex Number.

Description Usage Arguments Details Value Examples

Description

Computes the value of the Modulus.

Usage

1

Arguments

x

A cx_vec.

Details

Consider a complex number defined as: z = x + i y with real x and y, The modulus is defined as: r = Mod(z) = √{(x^2 + y^2)}

Value

A vec containing the modulus for each element.

Examples

1
Mod_cpp(c(1+.5i, 2+1i, 5+9i))


Search within the gmwm package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.