Query: hypot
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
hypot(3) Library Functions Manual hypot(3)NAMEhypot, cabs, fabs - Calculate Euclidean distance and absolute valueLIBRARYMath Library (libm.a)SYNOPSIS#include <math.h> double hypot (double x, double y); float hypotf (float x, float y); long double hypotl (long double x, long double y); double cabs (double x, double y); float cabsf (float x, float y); long double cabsl (long double x, long double y); double fabs (double x); float fabsf (float x); long double fabsl (long double x);STANDARDSInterfaces documented on this reference page conform to industry standards as follows: hypot(): XPG4 fabs(): XPG4 Refer to the standards(5) reference page for more information about industry standards and associated tags.DESCRIPTIONThe hypot(), hypotf(), and hypotl() functions compute the length of the hypotenuse of a right triangle, where x and y represent the perpen- dicular sides of the triangle. The hypot(x,y), hypotf(x,y) and hypotl(x,y) functions are defined as sqrt(x**2 + y**2). The cabs(), cabsf(), and cabsl() functions return the complex absolute value of x. The cabs(), cabsf(), and cabsfl) functions are defined as hypot() and hypotf(), respectively. The fabs(), fabsf(), and fabsl() functions compute the absolute value of x. The following table describes function behavior in response to exceptional arguments: ----------------------------------------------------------------------------- Function Exceptional Argument Routine Behavior ----------------------------------------------------------------------------- hypot(), hypotf(), hypotl() sqrt(x**2 + y**2)>max_float Overflow cabs(), cabsf(), cabsl() sqrt(x**2 + y**2)>max_float Overflow ----------------------------------------------------------------------------- The following table lists boundary values used by these functions: -------------------------------------------------------------------------- Value Data Hexadecimal Value Decimal Value Name Type -------------------------------------------------------------------------- max_float S_FLOAT 7F7FFFFF 3.402823e38 T_FLOAT 7FEFFFFFFFFFFFFF 1.7976931348623e308 -------------------------------------------------------------------------- delim off hypot(3)
Related Man Pages |
---|
hypot(3m) - opensolaris |
hypot(3) - suse |
fabs(3) - osf1 |
hypotl(3m) - sunos |
hypotl(3m) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
Want to remove all lines but not latest 50 lines from a file |
Join not working properly |
Long file names within shell script |
Avoiding external utilities |
AIX version selection |