サブ pxg.js   Last modified: Mar 25, 2004

function pxg(p)
{
  var a1 =  0.161614603871299e-15
  var b1 = -0.178837229464158e-13
  var c1 =  0.888943322341436e-12
  var d1 = -0.261195052190738e-10
  var e1 =  0.500533655324426e-09
  var f1 = -0.646627744010232e-08
  var g1 =  0.553751002988654e-07
  var h1 = -0.283629174340630e-06
  var i1 =  0.539877747512783e-06
  var j1 =  0.122127251950965e-05
  var k1 =  0.154574365345128e-04
  var l1 = -0.234768842092152e-03
  var m1 = -0.830686207721635e-03
  var n1 =  0.370684581838722e-01
  var o1 =  1.57079636931376
  var a2 =  0.475993226875073e-20
  var b2 = -0.160810158951050e-17
  var c2 =  0.247926693002221e-15
  var d2 = -0.231079228290330e-13
  var e2 =  0.145374571956651e-11
  var f2 = -0.652519616362467e-10
  var g2 =  0.215245004110748e-08
  var h2 = -0.528966690546445e-07
  var i2 =  0.968810841143746e-06
  var j2 = -0.130151504271833e-04
  var k2 =  0.122266235739026e-03
  var l2 = -0.686950369052696e-03
  var m2 =  0.323268032864241e-03
  var n2 =  0.354191456970913e-01
  var o2 =  1.57180584930853
  var y = -Math.log(4.0*p*(1.0-p))
  return (p >= 3e-7)
    ? Math.sqrt(((((((((((((((y*a1+b1)*y+c1)*y+d1)*y+e1)*y+f1)*y+g1)*y+h1)*y+i1)*y+j1)*y+k1)*y+l1)*y+m1)*y+n1)*y+o1)*y)
    : Math.sqrt(((((((((((((((y*a2+b2)*y+c2)*y+d2)*y+e2)*y+f2)*y+g2)*y+h2)*y+i2)*y+j2)*y+k2)*y+l2)*y+m2)*y+n2)*y+o2)*y)
}


・ 直前のページへ戻る  ・ E-mail to Shigenobu AOKI

Made with Macintosh