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
Patch for PR 9255
[official-gcc.git]
/
libf2c
/
libF77
/
c_log.c
blob
7d5b9513167dba920942572c159336958e990c2c
1
#include
"f2c.h"
2
3
#undef abs
4
#include
"math.h"
5
extern
double
f__cabs
(
double
,
double
);
6
7
void
8
c_log
(
complex
*
r
,
complex
*
z
)
9
{
10
double
zi
,
zr
;
11
r
->
i
=
atan2
(
zi
=
z
->
i
,
zr
=
z
->
r
);
12
r
->
r
=
log
(
f__cabs
(
zr
,
zi
));
13
}