OAR

RTEMS GNU Tools On-Line Library


sqrt

PREV UP NEXT Bookshelf

1.25: sqrt, sqrtf---positive square root

Synopsis

#include <math.h>
double sqrt(double x);
float  sqrtf(float x);

Description
sqrt computes the positive square root of the argument. You can modify error handling for this function with matherr.


Returns
On success, the square root is returned. If x is real and positive, then the result is positive. If x is real and negative, the global value errno is set to EDOM (domain error).


Portability
sqrt is ANSI C. sqrtf is an extension.



PREV UP NEXT Bookshelf

Packaging copyright © 1988-2000 OAR Corporation
Context copyright by each document's author. See Free Software Foundation for information.