erfc と erf
なんでerfcはerfよりへたれにくいんだ…
$ python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import math >>> math.erf(1) 0.842700792949715 >>> math.erfc(1) 0.157299207050285 >>> math.erf(10) # これが弱い 1.0 >>> math.erfc(10) # つよい 2.0884875837625433e-45 >>> math.erf(-10) # 弱い -1.0 >>> math.erfc(-10) # 弱い 2.0 >>> math.erf(-1.3) -0.9340079449406524 >>> math.erfc(-1.3) 1.9340079449406524 >>> math.erfc(-1.3)
気分的には、erfは両方へたれやすいけど、erfcは右側が強いからというのはわかるけど、弱点持ちこまずに強化されるのがなんか納得いかないな。(実際にはerfcは左側が1bit分ぐらい弱くなってるけど…)