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
Forgot to commit.
[official-gcc.git]
/
libf2c
/
libF77
/
z_sin.c
blob
94456c9c30a3346cec86d6ca5bfb12d5e22b7ea8
1
#include
"f2c.h"
2
3
#ifdef KR_headers
4
double
sin
(),
cos
(),
sinh
(),
cosh
();
5
VOID
z_sin
(
resx
,
z
)
doublecomplex
*
resx
, *
z
;
6
#else
7
#undef abs
8
#include <math.h>
9
void
z_sin
(
doublecomplex
*
resx
,
doublecomplex
*
z
)
10
#endif
11
{
12
doublecomplex res
;
13
14
res
.
r
=
sin
(
z
->
r
) *
cosh
(
z
->
i
);
15
res
.
i
=
cos
(
z
->
r
) *
sinh
(
z
->
i
);
16
17
resx
->
r
=
res
.
r
;
18
resx
->
i
=
res
.
i
;
19
}