1ERF(3) 386BSD Programmer's Manual ERF(3) 2 3NNAAMMEE 4 eerrff, eerrffcc - error function operators 5 6SSYYNNOOPPSSIISS 7 ##iinncclluuddee <<mmaatthh..hh>> 8 9 _d_o_u_b_l_e 10 eerrff(_d_o_u_b_l_e _x) 11 12 _d_o_u_b_l_e 13 eerrffcc(_d_o_u_b_l_e _x) 14 15DDEESSCCRRIIPPTTIIOONN 16 These functions calculate the error function of _x. 17 18 The eerrff() calculates the error function of x; where 19 20 erf(x) = 2/sqrt(pi)*integral from 0 to x of exp(-t*t) dt. 21 22 The eerrffcc() function calculates the complementary error function of _x; 23 that is eerrffcc() subtracts the result of the error function eerrff(_x) from 24 1.0. This is useful, since for large _x places disappear. 25 26SSEEEE AALLSSOO 27 math(3) 28 29HHIISSTTOORRYY 30 The eerrff() and eerrffcc() functions appeared in 4.3BSD. 31 324.3 Berkeley Distribution April 20, 1991 1 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67