Skip site navigation (1)Skip section navigation (2)

FreeBSD Man Pages

Man Page or Keyword Search:
Man Architecture
Apropos Keyword Search (all sections) Output format
home | help
SQRT(3)		       FreeBSD Library Functions Manual		       SQRT(3)

NAME
     cbrt, cbrtf, sqrt,	sqrtf -- cube root and square root functions

LIBRARY
     Math Library (libm, -lm)

SYNOPSIS
     #include <math.h>

     double
     cbrt(double x);

     float
     cbrtf(float x);

     double
     sqrt(double x);

     float
     sqrtf(float x);

DESCRIPTION
     The cbrt()	and the	cbrtf()	functions compute the cube root	of x.

     The sqrt()	and the	sqrtf()	functions compute the non-negative square root
     of	x.

RETURN VALUES
     The cbrt()	and the	cbrtf()	functions return the requested cube root.  The
     sqrt() and	the sqrtf() functions return the requested square root unless
     an	error occurs.  An attempt to take the sqrt() of	negative x raises an
     invalid exception and causes an NaN to be returned.

SEE ALSO
     fenv(3), math(3)

STANDARDS
     The sqrt()	function conforms to ISO/IEC 9899:1990 (``ISO C90'').

HISTORY
     The cbrt()	function appeared in 4.3BSD.

FreeBSD	6.0			  May 6, 1991			   FreeBSD 6.0

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO | STANDARDS | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=sqrtf&sektion=3&manpath=FreeBSD+6.0-RELEASE>

home | help