double sqrt(double dX);
float sqrt(float); double sqrt(double); long double sqrt(long double);
float sqrtf(float); long double sqrtl(long double);
* Note: Since C does not allow function overloading, these other versions of this function exist.
Domain [0, ∞) Range [0, ∞) Periodicity None Symmetry None Asymptotes None |
|
#include <iostream> #include <cmath> int main() { using namespace std; double dX = 10.0; cout << "x = " << dX << " sqrt(x) = " << sqrt(dX) << endl; dX = 1.8; cout << "x = " << dX << " sqrt(x) = " << sqrt(dX) << endl; return 0; }
© 20072024 XoaX.net LLC. All rights reserved.