home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-SSP.ARJ
/
CXEXPN.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1984-08-08
|
312 b
|
17 lines
cxexpn(a,r)
/* subroutine evaluates the exponential of a */
/* complex argument */
float a[],r[];
{
double b;
extern double exp(),sin(),cos();
b = exp(a[0]);
r[0] = b * cos(a[1]);
r[1] = b * sin(a[1]);
}