/* * cabs() wrapper for hypot(). * * Written by J.T. Conklin, * Placed into the Public Domain, 1994. */ #ifndef lint static const char rcsid[] = "$FreeBSD$"; #endif /* not lint */ #include #include double cabs(z) double complex z; { return hypot(creal(z), cimag(z)); } double z_abs(z) double complex *z; { return hypot(creal(*z), cimag(*z)); }