public static double erf(double x){
  return (igamma(0.5,Math.pow(x,2.0)));
}

public static double erf ( double x ) { return ( igamma ( 0.5 , Math . pow ( x , 2.0 ) ) ) ; }
calculates the error function for a double
