Hey does anyone know if there is an error function in the math library of C++? I think there is so, but I just can't figure out how to use it.

Featured Replies

- 2
Hi I didn't found any error function when I was searching the compilers (gcc, visual c, watcom). Therefore, I took an approximation from Abramowitz/Stegun and wrote my own erf(x). It's approximation error is about 10^(-7). which was almost always sufficient for my apps. erf(x) = 1-erfc(x). [CODE]double erf(double x) { … Read More

This topic has been dead for over six months. Start a new discussion instead.

Recommended Topics