repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[official-gcc.git]
/
libf2c
/
libF77
/
c_exp.c
blob
52d0d2ffc95cffd932407380e220cf0dc0ac9b8b
1
#include
"f2c.h"
2
3
#ifdef KR_headers
4
extern
double
exp
(),
cos
(),
sin
();
5
6
VOID
c_exp
(
r
,
z
)
complex
*
r
, *
z
;
7
#else
8
#undef abs
9
#include
"math.h"
10
11
void
c_exp
(
complex
*
r
,
complex
*
z
)
12
#endif
13
{
14
double
expx
,
zi
=
z
->
i
;
15
16
expx
=
exp
(
z
->
r
);
17
r
->
r
=
expx
*
cos
(
zi
);
18
r
->
i
=
expx
*
sin
(
zi
);
19
}