erf function

AD-compatible error function and complementary error function