.\" Copyright (c) 1985 Regents of the University of California. .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" .\" @(#)sqrt.3m 6.2 (Berkeley) 5/12/86 .\" .TH SQRT 3 "May 12, 1986" .UC 6 .ds up \fIulp\fR .SH NAME sqrt, cbrt \- square root, cube root .SH SYNOPSIS .nf .ft B #include double sqrt(double \fIx\fP) double cbrt(double \fIx\fP) .ft R .fi .SH DESCRIPTION Sqrt(x) returns the square root of x. .PP Cbrt(x) returns the cube root of x. .SH DIAGNOSTICS sqrt(\(+-0) = \(+-0 (exact) .br sqrt(Inf) = Inf .br sqrt(x) = NaN with invalid signal if x < 0. .br sqrt(NaN) = NaN with invalid signal for signaling NaN. .SH SEE ALSO .BR math (3). .SH AUTHOR W. Kahan