Calculates the square root of a complex value.
Calculates the square root of a double value.
complex sqrt( complex z )
double sqrt( double x )
The square root of z.
The square root of x.
EX1
void run_complex_sqrt() { complex cc(0., 8.); out_complex("sqrt = ", sqrt(cc)); // Result is "sqrt = 2.000000+2.000000i" }
EX2
void run_sqrt() { double rr = 625; double val = sqrt(rr); printf("sqrt(%f) = %f\n", rr, val); }
origin.h