Learn R Programming

rkeops (version 2.2.2)

Arg: Element-wise argument (or angle) of complex operation

Description

Symbolic element-wise argument (or angle) of complex operation for ComplexLazyTensor objects or default element-wise argument (or angle) of complex operation otherwise.

Usage

Arg(z)

Value

See value of Arg.default() or Arg.LazyTensor().

Arguments

z

input for Arg.default() or Arg.LazyTensor().

Author

Chloe Serre-Combe, Amelie Vernay

Details

If z is a LazyTensor, see Arg.LazyTensor(), else see Arg.default().

See Also

Arg.default(), Arg.LazyTensor(), Re(), Im(), Mod(), Conj()

Examples

Run this code
if (FALSE) {
# R base operation
Arg(1)
Arg(1+1i)
# LazyTensor symbolic element-wise argument (or angle) of complex
z <- matrix(2 + 1i^ (-6:5), nrow = 4)         # complex matrix
z_i <- LazyTensor(z, "i", is_complex = TRUE)  # creating ComplexLazyTensor
Arg_z <- Arg(z_i)                             # symbolic matrix
}

Run the code above in your browser using DataLab