csqrt()

Computes the square root.

  #include <math.h>
  
  double complex csqrt(double complex x);
  
  float complex csqrtf(float complex x);
  
  long double complex csqrtl(long double complex x);    
Parameter

x

A complex value.

Remarks

These functions return the square root of x. If x < 0 , csqrt() assigns EDOM to errno. Use fpclassify() to check the validity of the result returned by clog().

This facility may not be available on configurations of the EWL that run on platforms that do not have floating-point math capabilities.