"abs" also works (in R 1.8.1 under Windows 2000), as we see just by trying it:

abs(1+1i) = 1.414214

hope this helps. spencer graves

Prof Brian Ripley wrote:

That's called the modulus, and computed by function Mod().

On Mon, 15 Mar 2004, Frank Gerrit Zoellner wrote:



I want o calc the norm of a complex number ( |c| where c is complex).
Does the function abs() this ?






______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to