cope with partial overlap
From-SVN: r26741
This commit is contained in:
parent
a152cad74a
commit
336725627d
@ -1,3 +1,8 @@
|
||||
Mon May 3 11:21:35 1999 Craig Burley <craig@jcb-sc.com>
|
||||
|
||||
* libF77/c_log.c: Cope with partial overlap a la z_log.c.
|
||||
(Change likely to be made to netlib version shortly.)
|
||||
|
||||
Mon May 3 11:12:38 1999 Craig Burley <craig@jcb-sc.com>
|
||||
|
||||
Update to Netlib version of 1999-05-03:
|
||||
|
@ -11,7 +11,7 @@ extern double f__cabs(double, double);
|
||||
void c_log(complex *r, complex *z)
|
||||
#endif
|
||||
{
|
||||
double zi;
|
||||
r->i = atan2(zi = z->i, z->r);
|
||||
r->r = log( f__cabs(z->r, zi) );
|
||||
double zi = z->i, zr = z->r;
|
||||
r->i = atan2(zi, zr);
|
||||
r->r = log( f__cabs( zr, zi ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user