1994-08-19 09:40:01 +00:00
|
|
|
/*
|
|
|
|
* cabsf() wrapper for hypotf().
|
1995-05-30 05:51:47 +00:00
|
|
|
*
|
1994-08-19 09:40:01 +00:00
|
|
|
* Written by J.T. Conklin, <jtc@wimsey.com>
|
|
|
|
* Placed into the Public Domain, 1994.
|
|
|
|
*/
|
|
|
|
|
2001-06-13 15:16:30 +00:00
|
|
|
#ifndef lint
|
|
|
|
static const char rcsid[] =
|
|
|
|
"$FreeBSD$";
|
|
|
|
#endif /* not lint */
|
1994-08-19 09:40:01 +00:00
|
|
|
|
2001-06-13 15:16:30 +00:00
|
|
|
#include <complex.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include "math_private.h"
|
1994-08-19 09:40:01 +00:00
|
|
|
|
|
|
|
float
|
|
|
|
cabsf(z)
|
2001-06-13 15:16:30 +00:00
|
|
|
float complex z;
|
1994-08-19 09:40:01 +00:00
|
|
|
{
|
2001-06-13 15:16:30 +00:00
|
|
|
|
|
|
|
return hypotf(crealf(z), cimagf(z));
|
1994-08-19 09:40:01 +00:00
|
|
|
}
|