/* $NetBSD: cabs.c,v 1.1 2007/08/20 16:01:30 drochner Exp $ */ /* * Written by Matthias Drochner . * Public domain. */ #include #include #include "../src/math_private.h" double cabs(double complex z) { return hypot(creal(z), cimag(z)); }