|
Last change
on this file since 645 was 2, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
283 bytes
|
| Line | |
|---|
| 1 | #include "f2c.h"
|
|---|
| 2 |
|
|---|
| 3 | #ifdef KR_headers
|
|---|
| 4 | extern double sin(), cos(), sinh(), cosh();
|
|---|
| 5 |
|
|---|
| 6 | VOID c_sin(r, z) complex *r, *z;
|
|---|
| 7 | #else
|
|---|
| 8 | #undef abs
|
|---|
| 9 | #include "math.h"
|
|---|
| 10 |
|
|---|
| 11 | void c_sin(complex *r, complex *z)
|
|---|
| 12 | #endif
|
|---|
| 13 | {
|
|---|
| 14 | double zi = z->i, zr = z->r;
|
|---|
| 15 | r->r = sin(zr) * cosh(zi);
|
|---|
| 16 | r->i = cos(zr) * sinh(zi);
|
|---|
| 17 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.