This function is compatible with the following targets:
|
|
#include <math.h>
double sqrt(double x);
float sqrtf(float x);
long double sqrtl(long double x);Parameters:
Parameters for this function are:
sqrt() returns the square root of x.
A domain error occurs if the argument is a negative value.
See Also: sqrt() example:#include <math.h>
#include <stdio.h>
int main(void)
{
double x = 64.0;
printf("The square root of %f is %f.\n", x, sqrt(x));
return 0;
}
Output:
The square root of 64.000000 is 8.000000.
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000