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
* c-common.c (parse_in): Make a cpp_reader *.
[official-gcc.git]
/
libf2c
/
libF77
/
c_cos.c
blob
549953dc65620fb47188b4422eb78c32b39c9680
1
#include
"f2c.h"
2
3
#ifdef KR_headers
4
extern
double
sin
(),
cos
(),
sinh
(),
cosh
();
5
6
VOID
c_cos
(
r
,
z
)
complex
*
r
, *
z
;
7
#else
8
#undef abs
9
#include
"math.h"
10
11
void
c_cos
(
complex
*
r
,
complex
*
z
)
12
#endif
13
{
14
double
zi
=
z
->
i
,
zr
=
z
->
r
;
15
r
->
r
=
cos
(
zr
) *
cosh
(
zi
);
16
r
->
i
= -
sin
(
zr
) *
sinh
(
zi
);
17
}