Commit | Line | Data |
---|---|---|
1b2ad0f5 | 1 | /* |
3fc68725 RE |
2 | * Copyright (c) 1980 Regents of the University of California. |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | * | |
6 | * @(#)c_sin.c 5.1 %G% | |
1b2ad0f5 DW |
7 | */ |
8 | ||
9 | #include "complex" | |
10 | ||
11 | c_sin(r, z) | |
12 | complex *r, *z; | |
13 | { | |
14 | double sin(), cos(), sinh(), cosh(); | |
15 | ||
16 | r->real = sin(z->real) * cosh(z->imag); | |
17 | r->imag = cos(z->real) * sinh(z->imag); | |
18 | } |