📄 hypot.3m
字号:
.\" 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -