DERF Function

DERF is the double-precision error function used in calculating probability. This function accepts any number and returns a value between -1 and 1. DERF is defined the same as ERF, as follows:

DERF(x) = 2/SQRT(pi)*(INTEGRAL(e**((-t)**2)dt) from 0 to x)