// slow way to do a square root
double y = Math.pow( x, 0.5 );