home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume10
/
complex-lib
/
cxsub.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1987-07-14
|
320 b
|
22 lines
/*
CxSub -- subtract one complex from another
CxSub( &a, &b ) subtracts b from a and returns &a
last edit: 86/01/04 D A Gwyn
SCCS ID: @(#)cxsub.c 1.1
*/
#include <complex.h>
complex *
CxSub( ap, bp )
register complex *ap, *bp; /* (may coincide) */
{
ap->re -= bp->re;
ap->im -= bp->im;
return ap;
}