ERF ERF Error Function Usage Computes the error function for real arguments. The erf function takes only a single argument y = erf(x) where x is either a float or double array. The output vector y is the same size (and type) as x.