Post Reply 
RE: HP48-HP50G : Error functions ERF(z), FRESNEL integrals, PROBIT, etc.
11-12-2023, 03:57 PM (This post was last modified: 11-12-2023 06:52 PM by Gil.)
Post: #17
RE: HP48-HP50G : Error functions Erf(x), Erfc(x) & Erf/Erfc —>x
I did not look at the open sources, but finally used instead https://math.stackexchange.com/questions...inary-part

creating the following HP50G function/program, that gives most acceptable results up to the last two digits (errors due to "loop roundings"), here now a mended, faster version with summation sign (sigma)

ERF(z)
« C->R -> x y
« x ERF
'e^-x^2/(2*pi*x)*(1-COS(2*x*y)+i*SIN(2*x*y))' ->NUM +
'2/pi*e^-x^2' ->NUM

'Sigma(k=1,30,e^(-k^2/4)/(k^2+4*x^2)*(2*x*(1-COS(2*x*y)*COSH(k*y))+k*SIN(2*x*y)*SINH(k*y)+i*(2*x*SIN(2*x*y)*COSH(k*y)+k*COS(2​*x*y)*SINH(k*y))))'

->NUM * + ->NUM
»
»


And ERF(x)
« 0 .5 ROT UTPN -2 * 1 +
»

The HP Prime must use a similar algorithm.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP48-HP50G : Error functions Erf(x), Erfc(x) & Erf/Erfc —>x - Gil - 11-12-2023 03:57 PM



User(s) browsing this thread: 20 Guest(s)