Make 'fortran float sin(), cos();' work with gcc by replacing it with
[unix-history] / usr / src / usr.bin / f77 / libF77 / c_exp.c
CommitLineData
ca918670 1/*
1c3db5b1
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_exp.c 5.1 %G%
ca918670
DW
7 */
8
9#include "complex"
10
11c_exp(r, z)
12complex *r, *z;
13{
14double expx;
15double exp(), cos(), sin();
16
17expx = exp(z->real);
18r->real = expx * cos(z->imag);
19r->imag = expx * sin(z->imag);
20}