United States-English |
|
|
HP-UX Reference > Eerf(3M)HP-UX 11i Version 3: February 2007 |
|
NAMEerf(), erff(), erfl(), erfw(), erfq(), erfc(), erfcf(), erfcl(), erfcw(), erfcq() — error function and complementary error functions DESCRIPTIONerf() returns the error function of x, defined as: (2/sqrt(pi)) * (integral with respect to t from 0 to x of (exp(pow(-t,2)))) erfc() returns the complementary value, 1.0 - erf(x). It prevents the extreme loss of relative accuracy if erf(x) is called for a large x and the result is subtracted from 1.0. (For example, for x = 5, twelve decimal places are lost.) Integrity Server Onlyerff() and erfcf() are float versions of erf() and erfc() respectively; they take a float argument and return a float result. erfl() and erfcl() are long double versions of erf() and erfc() respectively; they take a long double argument and return a long double result. erfw() and erfcw() are extended versions of erf() and erfc() respectively; they take an extended argument and return an extended result. erfq() and erfcq() are equivalent to erfl() and erfcl() respectively on HP-UX systems. USAGETo use these functions compile either with the default -Ae option or with the -Aa and -D_HPUX_SOURCE options. To use (for Integrity servers) erfw(), erfcw(), erfq(), or erfcq(), compile also with the -fpwidetypes option. To use any of these functions, make sure your program includes <math.h>, and link in the math library by specifying -lm on the compiler or linker command line. For more information, see the HP-UX floating-point guide for HP Integrity servers at the following site: http://www.hp.com/go/fp. |
Printable version | ||
|