home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume10
/
complex-lib
/
cxampl.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
C/C++ Source or Header
|
1987-07-14
|
278 b
|
21 lines
/*
CxAmpl -- amplitude (magnitude, modulus, norm) of a complex
CxAmpl( &c ) returns |c|
last edit: 86/01/04 D A Gwyn
SCCS ID: @(#)cxampl.c 1.1
*/
#include <math.h>
#include <complex.h>
double
CxAmpl( cp )
register complex *cp;
{
return hypot( cp->re, cp->im );
}