Message96332
nirinA: thanks for the erf patch. It's fine as far as it goes; the main
technical issue is that the series development only converges at a
sensible rate for smallish x; for larger x something more is needed.
Here's a prototype patch for the erf and erfc functions that uses a power
series (not quite the same as the series nirinA used; by pulling out a
factor of exp(-x*2) you can make all coefficients in the remaining series
positive, which is good for the numerics) for small x, and a continued
fraction expansion for larger x. The erf and erfc functions are
currently written in Python. I'll do some more testing (and possibly
tweaking) of this patch and then translate the Python to C. |
|
Date |
User |
Action |
Args |
2009-12-13 12:53:50 | mark.dickinson | set | recipients:
+ mark.dickinson, tim.peters, rhettinger, terry.reedy, ned.deily, stutzbach, nirinA, steven.daprano |
2009-12-13 12:53:48 | mark.dickinson | set | messageid: <1260708828.34.0.963757970672.issue3366@psf.upfronthosting.co.za> |
2009-12-13 12:53:46 | mark.dickinson | link | issue3366 messages |
2009-12-13 12:53:45 | mark.dickinson | create | |
|