From 5cf96830e07444f126722e8aafbaaa1e1dba9c37 Mon Sep 17 00:00:00 2001 From: stefanf Date: Thu, 6 May 2004 13:11:18 +0000 Subject: The prototypes for cabs() and cabsf() are in . Fix their arguments' types and describe them briefly. Reviewed by: ru, bde Approved by: das (mentor) --- lib/msun/man/hypot.3 | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'lib/msun') diff --git a/lib/msun/man/hypot.3 b/lib/msun/man/hypot.3 index f7ae5c07..b866940 100644 --- a/lib/msun/man/hypot.3 +++ b/lib/msun/man/hypot.3 @@ -49,24 +49,27 @@ .Fn hypot "double x" "double y" .Ft float .Fn hypotf "float x" "float y" -.Vt struct {double x, y;} z ; +.In complex.h .Ft double -.Fn cabs z -.Vt struct {float x, y;} z ; +.Fn cabs "double complex z" .Ft float -.Fn cabsf z +.Fn cabsf "float complex z" .Sh DESCRIPTION The -.Fn hypot , -.Fn hypotf , -.Fn cabs +.Fn hypot and -.Fn cabsf +.Fn hypotf functions compute the sqrt(x*x+y*y) in such a way that underflow will not happen, and overflow occurs only if the final result deserves it. +The +.Fn cabs +and +.Fn cabsf +functions compute the complex absolute value of +.Ar z . .Pp .Fn hypot "\*(If" "v" = -- cgit v1.1