sqrt, sqrtf, sqrtl - square root function


   #include <math.h>

   double sqrt(double x);
   float sqrtf(float x);
   long double sqrtl(long double x);

   Link with -lm.

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

   sqrtf(), sqrtl():
       _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
           || /* Since glibc 2.19: */ _DEFAULT_SOURCE
           || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE


   These functions return the nonnegative square root of x.


   On success, these functions return the square root of x.

   If x is a NaN, a NaN is returned.

   If x is +0 (-0), +0 (-0) is returned.

   If x is positive infinity, positive infinity is returned.

   If x is less than -0, a domain error occurs, and a NaN is returned.


   See  math_error(7) for information on how to determine whether an error
   has occurred when calling these functions.

   The following errors can occur:

   Domain error: x less than -0
          errno is set  to  EDOM.   An  invalid  floating-point  exception
          (FE_INVALID) is raised.


   For   an   explanation   of   the  terms  used  in  this  section,  see

   Interface                 Attribute      Value   
   sqrt(), sqrtf(), sqrtl()  Thread safety  MT-Safe 


   C99, POSIX.1-2001, POSIX.1-2008.

   The variant returning double also conforms to SVr4, 4.3BSD, C89.


   cbrt(3), csqrt(3), hypot(3)


   This page is part of release 4.09 of the Linux  man-pages  project.   A
   description  of  the project, information about reporting bugs, and the
   latest    version    of    this    page,    can     be     found     at

                              2016-03-15                           SQRT(3)

More Linux Commands

gnutls_openpgp_privkey_sec_param(3) - API function (ManPage)
gnutls_openpgp_privkey_sec_param.3 - This function will return the security parameter appropriate with this private key. RETURNS On success, a valid security pa

gnutls_pkcs7_set_crl(3) - API function - Linux manual page
This function will add a parsed CRL to the PKCS7 or RFC2630 crl set. RETURNS On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. REP

glVertex3s(3gl) - specify a vertex - Linux manual page......
glVertex commands are used within glBegin/glEnd pairs to specify point, line, and polygon vertices. The current color, normal, and texture coordinates are assoc

perlmodstyle(1) - Perl module style guide - Linux man page
* One or more sections or subsections giving greater detail of available methods and routines and any other relevant information. * BUGS/CAVEATS/etc * AUTHOR *

pthread_kill(3) - send a signal to a thread - Linux man page
The pthread_kill() function sends the signal sig to thread, a thread in the same process as the caller. The signal is asynchronously directed to thread. If sig

rake.ruby2.1(1) Ruby Make (Commands - Linux manual page)....
Rake is a simple ruby(1) build program with capabilities similar to the regular make(1) command. Rake has the following features: * Rakefiles (Rakes version of

filter(3ncurses) - miscellaneous curses utility routines....
The unctrl routine returns a character string which is a printable representation of the character c, ignoring attributes. Control characters are displayed in t

vfwprintf(3) - formatted wide-character output conversion...
The wprintf() family of functions is the wide-character equivalent of the printf(3) family of functions. It performs formatted output of wide characters. The wp

setupterm(3ncurses) - curses interfaces to terminfo database
These low-level routines must be called by programs that have to deal directly with the terminfo database to handle certain terminal capabilities, such as progr

sane-ricoh(5) - SANE backend for Ricoh flatbed scanners.....
The sane-ricoh library implements a SANE (Scanner Access Now Easy) backend that provides access to the following Ricoh flatbed scanners: IS50 IS60 DEVICE NAMES

vfs_cacheprime(8) - prime the kernel file data cache........
This VFS module is part of the samba(7) suite. The vfs_cacheprime VFS module reads chunks of file data near the range requested by clients in order to make sure

git-relink(1) - Hardlink common objects in local repositorie
This will scan 1 or more object repositories and look for objects in common with a master repository. Objects not already hardlinked to the master repository wi

We can't live, work or learn in freedom unless the software we use is free.