hypot.3m
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3M 代码 · 共 53 行
3M
53 行
.\" SCCSID: @(#)hypot.3m 8.1 9/11/90.TH hypot 3m VAX.SH Namehypot, cabs \- Euclidean distance.SH Syntax.nf.B #include <math.h>.PP.B double hypot(\fIx,y\fP).B double \fIx,y\fP;.PP.B double cabs(\fIz\fP).B struct {double x,y;} \fIz\fP;.fi.SH Description.NXR "hypot subroutine".NXR "cabs subroutine".NXR "Euclidean distance"The.PN hypotand.PN cabsfunctions return.PP.IPsqrt(\fIx\fP*\fIx\fP + \fIy\fP*\fIy\fP),.PPtaking precautions against unwarranted overflows..SH Return ValuesThe .PN hypotand.PN cabsfunctions return HUGE_VAL and sets \fIerrno\fP to ERANGE when thecorrect value would overflow..SH EnvironmentWhen your program is compiled using the System V environment,if the correct value would overflow,.PN hypotreturns HUGE and sets \fIerrno\fP to ERANGE..PPThese error-handling procedures may be changed with the function.MS matherr 3m ..PPThe .PN cabssubroutine does not exist in the System V environment.For sqrt, see .MS exp 3m ..SH See Alsoexp(3m)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?