Commit | Line | Data |
---|---|---|
006beca2 | 1 | /* |
3337a9c2 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 | * @(#)z_exp.c 5.1 %G% | |
006beca2 DW |
7 | */ |
8 | ||
9 | #include "complex" | |
10 | ||
11 | z_exp(r, z) | |
12 | dcomplex *r, *z; | |
13 | { | |
14 | double expx; | |
15 | double exp(), cos(), sin(); | |
16 | ||
17 | expx = exp(z->dreal); | |
18 | r->dreal = expx * cos(z->dimag); | |
19 | r->dimag = expx * sin(z->dimag); | |
20 | } |