Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2008-05-16 13:20:02


Author: johnmaddock
Date: 2008-05-16 13:20:01 EDT (Fri, 16 May 2008)
New Revision: 45437
URL: http://svn.boost.org/trac/boost/changeset/45437

Log:
Fix some of the small constants.
Adjust expected error rate.
Text files modified:
   sandbox/math_toolkit/libs/math/test/ncbeta_big.ipp | 14 +++++++-------
   sandbox/math_toolkit/libs/math/test/nccs_big.ipp | 4 ++--
   sandbox/math_toolkit/libs/math/test/test_nc_chi_squared.cpp | 2 +-
   3 files changed, 10 insertions(+), 10 deletions(-)

Modified: sandbox/math_toolkit/libs/math/test/ncbeta_big.ipp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/ncbeta_big.ipp (original)
+++ sandbox/math_toolkit/libs/math/test/ncbeta_big.ipp 2008-05-16 13:20:01 EDT (Fri, 16 May 2008)
@@ -51,9 +51,9 @@
       { SC_(8.064482421875000000000000000000000000000e3), SC_(1.612896484375000000000000000000000000000e4), SC_(2.308069091796875000000000000000000000000e3), SC_(4.215314388275146484375000000000000000000e-1), SC_(1.000000000000000000000000000000000000000), SC_(8.780570835430068597846932288933646184057e-74) },
       { SC_(1.567437500000000000000000000000000000000e4), SC_(3.918593750000000000000000000000000000000e3), SC_(2.322846374511718750000000000000000000000e2), SC_(9.337261915206909179687500000000000000000e-1), SC_(1.000000000000000000000000000000000000000), SC_(6.669886156648541481539239127712633559563e-822) },
       { SC_(1.567437500000000000000000000000000000000e4), SC_(7.837187500000000000000000000000000000000e3), SC_(2.906821289062500000000000000000000000000e2), SC_(9.171786308288574218750000000000000000000e-1), SC_(1.000000000000000000000000000000000000000), SC_(2.537328853966596437961665214743068422061e-2547) },
- { SC_(1.567437500000000000000000000000000000000e4), SC_(1.175578125000000000000000000000000000000e4), SC_(9.757655029296875000000000000000000000000e2), SC_(9.157835841178894042968750000000000000000e-1), SC_(1.000000000000000000000000000000000000000), SC_(2.578246188050503138375491350089200688257e-4975) },
- { SC_(1.567437500000000000000000000000000000000e4), SC_(1.410693750000000000000000000000000000000e4), SC_(1.879048828125000000000000000000000000000e3), SC_(5.408018454909324645996093750000000000000e-2), SC_(8.129170124843363135273982574840676966496e-11622), SC_(1.000000000000000000000000000000000000000) },
- { SC_(1.567437500000000000000000000000000000000e4), SC_(1.551763183593750000000000000000000000000e4), SC_(2.308069091796875000000000000000000000000e3), SC_(1.300653219223022460937500000000000000000e-1), SC_(9.360587609330494354572770355536264481673e-5810), SC_(1.000000000000000000000000000000000000000) },
+ { SC_(1.567437500000000000000000000000000000000e4), SC_(1.175578125000000000000000000000000000000e4), SC_(9.757655029296875000000000000000000000000e2), SC_(9.157835841178894042968750000000000000000e-1), SC_(1.000000000000000000000000000000000000000), BOOST_MATH_SMALL_CONSTANT(SC_(2.578246188050503138375491350089200688257e-4975)) },
+ { SC_(1.567437500000000000000000000000000000000e4), SC_(1.410693750000000000000000000000000000000e4), SC_(1.879048828125000000000000000000000000000e3), SC_(5.408018454909324645996093750000000000000e-2), BOOST_MATH_SMALL_CONSTANT(SC_(8.129170124843363135273982574840676966496e-11622)), SC_(1.000000000000000000000000000000000000000) },
+ { SC_(1.567437500000000000000000000000000000000e4), SC_(1.551763183593750000000000000000000000000e4), SC_(2.308069091796875000000000000000000000000e3), SC_(1.300653219223022460937500000000000000000e-1), BOOST_MATH_SMALL_CONSTANT(SC_(9.360587609330494354572770355536264481673e-5810)), SC_(1.000000000000000000000000000000000000000) },
       { SC_(1.567437500000000000000000000000000000000e4), SC_(1.565870117187500000000000000000000000000e4), SC_(8.064482421875000000000000000000000000000e3), SC_(2.786142826080322265625000000000000000000e-1), SC_(1.261773771265826023398263693589020602527e-2297), SC_(1.000000000000000000000000000000000000000) },
       { SC_(1.567437500000000000000000000000000000000e4), SC_(1.567437500000000000000000000000000000000e4), SC_(1.567437500000000000000000000000000000000e4), SC_(4.499984383583068847656250000000000000000e-1), SC_(1.100181469524262372222569926548005371912e-657), SC_(1.000000000000000000000000000000000000000) },
       { SC_(1.567437500000000000000000000000000000000e4), SC_(1.567594238281250000000000000000000000000e4), SC_(2.000542187500000000000000000000000000000e4), SC_(5.588295459747314453125000000000000000000e-1), SC_(2.560684482889387137691472255137878939473e-124), SC_(1.000000000000000000000000000000000000000) },
@@ -66,10 +66,10 @@
       { SC_(2.000542187500000000000000000000000000000e4), SC_(4.001084375000000000000000000000000000000e4), SC_(8.064482421875000000000000000000000000000e3), SC_(4.320940375328063964843750000000000000000e-1), SC_(1.000000000000000000000000000000000000000), SC_(2.312959578619525129783342844601108813625e-171) },
       { SC_(5.348914843750000000000000000000000000000e4), SC_(5.348915039062500000000000000000000000000e3), SC_(2.322846374511718750000000000000000000000e2), SC_(9.546350240707397460937500000000000000000e-1), SC_(1.000000000000000000000000000000000000000), SC_(2.237637941712600702639280257134814673880e-479) },
       { SC_(5.348914843750000000000000000000000000000e4), SC_(1.337228710937500000000000000000000000000e4), SC_(2.906821289062500000000000000000000000000e2), SC_(9.334779381752014160156250000000000000000e-1), SC_(1.000000000000000000000000000000000000000), SC_(7.697670330139327953085651655652971629062e-2801) },
- { SC_(5.348914843750000000000000000000000000000e4), SC_(2.674457421875000000000000000000000000000e4), SC_(9.757655029296875000000000000000000000000e2), SC_(9.171703457832336425781250000000000000000e-1), SC_(1.000000000000000000000000000000000000000), SC_(4.351032154164457022358781300987678516698e-8686) },
- { SC_(5.348914843750000000000000000000000000000e4), SC_(4.814023046875000000000000000000000000000e4), SC_(2.308069091796875000000000000000000000000e3), SC_(5.316342040896415710449218750000000000000e-2), SC_(7.149393115066689998913230513163359568986e-39230), SC_(1.000000000000000000000000000000000000000) },
- { SC_(5.348914843750000000000000000000000000000e4), SC_(5.295425781250000000000000000000000000000e4), SC_(8.064482421875000000000000000000000000000e3), SC_(1.301675438880920410156250000000000000000e-1), SC_(8.209475494274670414553430270177931678225e-19833), SC_(1.000000000000000000000000000000000000000) },
- { SC_(5.348914843750000000000000000000000000000e4), SC_(5.343566015625000000000000000000000000000e4), SC_(1.567437500000000000000000000000000000000e4), SC_(2.671890854835510253906250000000000000000e-1), SC_(9.106575025886434917832830930013038223616e-7308), SC_(1.000000000000000000000000000000000000000) },
+ { SC_(5.348914843750000000000000000000000000000e4), SC_(2.674457421875000000000000000000000000000e4), SC_(9.757655029296875000000000000000000000000e2), SC_(9.171703457832336425781250000000000000000e-1), SC_(1.000000000000000000000000000000000000000), BOOST_MATH_SMALL_CONSTANT(SC_(4.351032154164457022358781300987678516698e-8686)) },
+ { SC_(5.348914843750000000000000000000000000000e4), SC_(4.814023046875000000000000000000000000000e4), SC_(2.308069091796875000000000000000000000000e3), SC_(5.316342040896415710449218750000000000000e-2), BOOST_MATH_SMALL_CONSTANT(SC_(7.149393115066689998913230513163359568986e-39230)), SC_(1.000000000000000000000000000000000000000) },
+ { SC_(5.348914843750000000000000000000000000000e4), SC_(5.295425781250000000000000000000000000000e4), SC_(8.064482421875000000000000000000000000000e3), SC_(1.301675438880920410156250000000000000000e-1), BOOST_MATH_SMALL_CONSTANT(SC_(8.209475494274670414553430270177931678225e-19833)), SC_(1.000000000000000000000000000000000000000) },
+ { SC_(5.348914843750000000000000000000000000000e4), SC_(5.343566015625000000000000000000000000000e4), SC_(1.567437500000000000000000000000000000000e4), SC_(2.671890854835510253906250000000000000000e-1), BOOST_MATH_SMALL_CONSTANT(SC_(9.106575025886434917832830930013038223616e-7308)), SC_(1.000000000000000000000000000000000000000) },
       { SC_(5.348914843750000000000000000000000000000e4), SC_(5.348914843750000000000000000000000000000e4), SC_(2.000542187500000000000000000000000000000e4), SC_(4.070649147033691406250000000000000000000e-1), SC_(8.116577402645222335506750742438163224103e-1745), SC_(1.000000000000000000000000000000000000000) },
       { SC_(5.348914843750000000000000000000000000000e4), SC_(5.349450000000000000000000000000000000000e4), SC_(5.348914843750000000000000000000000000000e4), SC_(5.399778485298156738281250000000000000000e-1), SC_(4.303272623463637069485056374998013097226e-372), SC_(1.000000000000000000000000000000000000000) }
    }};

Modified: sandbox/math_toolkit/libs/math/test/nccs_big.ipp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/nccs_big.ipp (original)
+++ sandbox/math_toolkit/libs/math/test/nccs_big.ipp 2008-05-16 13:20:01 EDT (Fri, 16 May 2008)
@@ -84,7 +84,7 @@
       { SC_(1.180317916870117187500000000000000000000e2), SC_(3.168707763671875000000000000000000000000e3), SC_(4.930109375000000000000000000000000000000e3), SC_(9.999999999999999999999999999999999999934e-1), SC_(6.557262454499425866053901459949272385297e-39) },
       //{ SC_(1.180317916870117187500000000000000000000e2), SC_(5.236728515625000000000000000000000000000e3), SC_(1.070952050781250000000000000000000000000e4), SC_(1.000000000000000000000000000000000000000), SC_(6.167443665608496863538189576167114928763e-204) },
       { SC_(1.180317916870117187500000000000000000000e2), SC_(9.735224609375000000000000000000000000000e3), SC_(2.955976953125000000000000000000000000000e4), SC_(1.000000000000000000000000000000000000000), SC_(1.990645628766642822455100767265998174079e-1154) },
- { SC_(1.180317916870117187500000000000000000000e2), SC_(2.534410546875000000000000000000000000000e4), SC_(1.018485468750000000000000000000000000000e5), SC_(1.000000000000000000000000000000000000000), SC_(2.161179594078246743099231258168478258347e-5540) },
+ { SC_(1.180317916870117187500000000000000000000e2), SC_(2.534410546875000000000000000000000000000e4), SC_(1.018485468750000000000000000000000000000e5), SC_(1.000000000000000000000000000000000000000), BOOST_MATH_SMALL_CONSTANT(SC_(2.161179594078246743099231258168478258347e-5540)) },
       { SC_(1.630037689208984375000000000000000000000e2), SC_(1.814723730087280273437500000000000000000), SC_(8.240924682617187500000000000000000000000e2), SC_(1.000000000000000000000000000000000000000), SC_(2.472200591904090894287894991961986227014e-87) },
       { SC_(1.630037689208984375000000000000000000000e2), SC_(2.270954132080078125000000000000000000000), SC_(1.652747154235839843750000000000000000000e1), SC_(1.100485350257933009825823755964439914036e-51), SC_(1.000000000000000000000000000000000000000) },
       { SC_(1.630037689208984375000000000000000000000e2), SC_(7.623167991638183593750000000000000000000), SC_(4.265673446655273437500000000000000000000e1), SC_(1.676359039911057637896453411108497715675e-24), SC_(9.999999999999999999999983236409600889424e-1) },
@@ -218,7 +218,7 @@
       { SC_(9.835224609375000000000000000000000000000e3), SC_(1.123881347656250000000000000000000000000e3), SC_(2.191821093750000000000000000000000000000e4), SC_(1.000000000000000000000000000000000000000), SC_(1.655478781768704897040723830687178230050e-668) },
       { SC_(9.835224609375000000000000000000000000000e3), SC_(3.168707763671875000000000000000000000000e3), SC_(3.901179687500000000000000000000000000000e4), SC_(1.000000000000000000000000000000000000000), SC_(3.472631147339733657827714586706936341515e-2118) },
       //{ SC_(9.835224609375000000000000000000000000000e3), SC_(5.236728515625000000000000000000000000000e3), SC_(6.028781250000000000000000000000000000000e4), SC_(1.000000000000000000000000000000000000000), SC_(9.212326594397207246241789680223342444637e-4200) },
- { SC_(9.835224609375000000000000000000000000000e3), SC_(9.735224609375000000000000000000000000000e3), SC_(9.785225000000000000000000000000000000000e4), SC_(1.000000000000000000000000000000000000000), SC_(3.538077281516414493897074365065585126946e-7667) },
+ { SC_(9.835224609375000000000000000000000000000e3), SC_(9.735224609375000000000000000000000000000e3), SC_(9.785225000000000000000000000000000000000e4), SC_(1.000000000000000000000000000000000000000), BOOST_MATH_SMALL_CONSTANT(SC_(3.538077281516414493897074365065585126946e-7667)) },
       //{ SC_(9.835224609375000000000000000000000000000e3), SC_(2.534410546875000000000000000000000000000e4), SC_(3.517932861328125000000000000000000000000e3), SC_(1.099992559780263385542867064735840160345e-4822), SC_(1.000000000000000000000000000000000000000) },
       { SC_(2.544410546875000000000000000000000000000e4), SC_(1.814723730087280273437500000000000000000), SC_(6.361479980468750000000000000000000000000e3), SC_(1.181726713955470992474919794090175086526e-3518), SC_(1.000000000000000000000000000000000000000) },
       { SC_(2.544410546875000000000000000000000000000e4), SC_(2.270954132080078125000000000000000000000), SC_(1.272318847656250000000000000000000000000e4), SC_(4.884425625229736252928233330384214577613e-1070), SC_(1.000000000000000000000000000000000000000) },

Modified: sandbox/math_toolkit/libs/math/test/test_nc_chi_squared.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/test_nc_chi_squared.cpp (original)
+++ sandbox/math_toolkit/libs/math/test/test_nc_chi_squared.cpp 2008-05-16 13:20:01 EDT (Fri, 16 May 2008)
@@ -319,7 +319,7 @@
    // mode:
    BOOST_CHECK_CLOSE(
       mode(dist)
- , static_cast<RealType>(17.184201184730857030170788677340294070728990862663L), sqrt(tolerance * 20));
+ , static_cast<RealType>(17.184201184730857030170788677340294070728990862663L), sqrt(tolerance * 500));
    BOOST_CHECK_CLOSE(
       median(dist),
       quantile(


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk