[R] norm of complex number

Spencer Graves spencer.graves at pdf.com
Mon Mar 15 21:20:12 CET 2004


      "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 ?
>>    
>>
>
>  
>




More information about the R-help mailing list