RE: HP48-HP50G : Error functions ERF(z), FRESNEL integrals, PROBIT, etc.
|
11-14-2023, 10:50 PM
Post: #27
|
|||
|
|||
RE: RE: HP48-HP50G : Error functions ERF(x or z), ERFC (x or z) & iERF/iERFc —>x
(11-14-2023 08:37 PM)Gil Wrote: I try here This is very bad ierfc, only 3 digits accuracy, with exact input! Perhaps UTPN is not so accurate after all? ierf(1e-9) ≈ sqrt(pi)/2 * 1e-9 ≈ 8.86226925452758e-10 (all digits correct!) Quote:function erf_taylor(x) Let's start from your y, but this time use a good ierf lua> x, y = 1e-9, .000000001128 lua> dydx = 2/sqrt(pi) * exp(-x*x) lua> h = x - ierf(y) lua> y + dydx * h 1.1283791670955127e-09 lua> erf(x) 1.1283791670955127e-09 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 9 Guest(s)