From b11ef8b992dc6f5df23182561d1d10e07eed9af1 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 16 Oct 2011 18:57:30 +0000 Subject: [PATCH] Merge recent bug fixes from Trunk. Refs #6014 Refs #5832 Refs #5934 Refs #6001 Refs #5982 Refs #5914 Refs #5927 [SVN r74984] --- doc/sf_and_dist/html/index.html | 15 +- doc/sf_and_dist/html/index/s12.html | 2649 ++++---- doc/sf_and_dist/html/index/s13.html | 173 +- doc/sf_and_dist/html/index/s14.html | 381 +- doc/sf_and_dist/html/index/s15.html | 271 +- doc/sf_and_dist/html/index/s16.html | 5883 +++++++++-------- .../html/math_toolkit/backgrounders.html | 9 +- .../backgrounders/implementation.html | 77 +- .../math_toolkit/backgrounders/lanczos.html | 39 +- .../html/math_toolkit/backgrounders/refs.html | 19 +- .../backgrounders/relative_error.html | 11 +- .../math_toolkit/backgrounders/remez.html | 51 +- doc/sf_and_dist/html/math_toolkit/dist.html | 11 +- .../html/math_toolkit/dist/dist_ref.html | 9 +- .../dist/dist_ref/dist_algorithms.html | 81 +- .../math_toolkit/dist/dist_ref/dists.html | 9 +- .../dist/dist_ref/dists/bernoulli_dist.html | 41 +- .../dist/dist_ref/dists/beta_dist.html | 123 +- .../dist/dist_ref/dists/binomial_dist.html | 95 +- .../dist/dist_ref/dists/cauchy_dist.html | 27 +- .../dist/dist_ref/dists/chi_squared_dist.html | 45 +- .../dist/dist_ref/dists/exp_dist.html | 31 +- .../dist/dist_ref/dists/extreme_dist.html | 17 +- .../dist/dist_ref/dists/f_dist.html | 31 +- .../dist/dist_ref/dists/gamma_dist.html | 21 +- .../dist/dist_ref/dists/geometric_dist.html | 111 +- .../dist_ref/dists/hypergeometric_dist.html | 31 +- .../dists/inverse_chi_squared_dist.html | 59 +- .../dist_ref/dists/inverse_gamma_dist.html | 21 +- .../dist_ref/dists/inverse_gaussian_dist.html | 57 +- .../dist/dist_ref/dists/laplace_dist.html | 39 +- .../dist/dist_ref/dists/logistic_dist.html | 33 +- .../dist/dist_ref/dists/lognormal_dist.html | 29 +- .../dist/dist_ref/dists/nc_beta_dist.html | 35 +- .../dist_ref/dists/nc_chi_squared_dist.html | 41 +- .../dist/dist_ref/dists/nc_f_dist.html | 35 +- .../dist/dist_ref/dists/nc_t_dist.html | 35 +- .../dists/negative_binomial_dist.html | 113 +- .../dist/dist_ref/dists/normal_dist.html | 35 +- .../dist/dist_ref/dists/pareto.html | 41 +- .../dist/dist_ref/dists/poisson_dist.html | 27 +- .../dist/dist_ref/dists/rayleigh.html | 39 +- .../dist/dist_ref/dists/students_t_dist.html | 35 +- .../dist/dist_ref/dists/triangular_dist.html | 55 +- .../dist/dist_ref/dists/uniform_dist.html | 51 +- .../dist/dist_ref/dists/weibull_dist.html | 49 +- .../html/math_toolkit/dist/dist_ref/nmp.html | 279 +- .../html/math_toolkit/dist/future.html | 39 +- .../html/math_toolkit/dist/stat_tut.html | 11 +- .../dist/stat_tut/dist_params.html | 9 +- .../math_toolkit/dist/stat_tut/overview.html | 11 +- .../dist/stat_tut/overview/complements.html | 24 +- .../dist/stat_tut/overview/generic.html | 25 +- .../dist/stat_tut/overview/headers.html | 9 +- .../dist/stat_tut/overview/objects.html | 51 +- .../dist/stat_tut/overview/parameters.html | 19 +- .../dist/stat_tut/overview/summary.html | 23 +- .../math_toolkit/dist/stat_tut/variates.html | 9 +- .../html/math_toolkit/dist/stat_tut/weg.html | 9 +- .../dist/stat_tut/weg/binom_eg.html | 9 +- .../stat_tut/weg/binom_eg/binom_conf.html | 55 +- .../stat_tut/weg/binom_eg/binom_size_eg.html | 27 +- .../binom_eg/binomial_coinflip_example.html | 65 +- .../weg/binom_eg/binomial_quiz_example.html | 91 +- .../dist/stat_tut/weg/c_sharp.html | 9 +- .../math_toolkit/dist/stat_tut/weg/cs_eg.html | 9 +- .../stat_tut/weg/cs_eg/chi_sq_intervals.html | 29 +- .../dist/stat_tut/weg/cs_eg/chi_sq_size.html | 55 +- .../dist/stat_tut/weg/cs_eg/chi_sq_test.html | 23 +- .../dist/stat_tut/weg/dist_construct_eg.html | 81 +- .../dist/stat_tut/weg/error_eg.html | 39 +- .../math_toolkit/dist/stat_tut/weg/f_eg.html | 25 +- .../dist/stat_tut/weg/find_eg.html | 9 +- .../weg/find_eg/find_location_eg.html | 65 +- .../weg/find_eg/find_mean_and_sd_eg.html | 63 +- .../stat_tut/weg/find_eg/find_scale_eg.html | 63 +- .../dist/stat_tut/weg/geometric_eg.html | 119 +- .../stat_tut/weg/inverse_chi_squared_eg.html | 25 +- .../dist/stat_tut/weg/nag_library.html | 27 +- .../dist/stat_tut/weg/nccs_eg.html | 9 +- .../stat_tut/weg/nccs_eg/nccs_power_eg.html | 9 +- .../dist/stat_tut/weg/neg_binom_eg.html | 9 +- .../weg/neg_binom_eg/neg_binom_conf.html | 53 +- .../weg/neg_binom_eg/neg_binom_size_eg.html | 43 +- .../negative_binomial_example1.html | 53 +- .../negative_binomial_example2.html | 27 +- .../dist/stat_tut/weg/normal_example.html | 9 +- .../weg/normal_example/normal_misc.html | 159 +- .../math_toolkit/dist/stat_tut/weg/st_eg.html | 9 +- .../dist/stat_tut/weg/st_eg/paired_st.html | 17 +- .../weg/st_eg/tut_mean_intervals.html | 45 +- .../stat_tut/weg/st_eg/tut_mean_size.html | 53 +- .../stat_tut/weg/st_eg/tut_mean_test.html | 43 +- .../weg/st_eg/two_sample_students_t.html | 53 +- .../html/math_toolkit/extern_c.html | 9 +- .../html/math_toolkit/extern_c/c99.html | 31 +- .../html/math_toolkit/extern_c/tr1.html | 145 +- .../html/math_toolkit/extern_c/tr1_ref.html | 217 +- .../html/math_toolkit/main_overview.html | 9 +- .../math_toolkit/main_overview/building.html | 15 +- .../main_overview/compilers_overview.html | 9 +- .../main_overview/config_macros.html | 9 +- .../math_toolkit/main_overview/contact.html | 15 +- .../main_overview/directories.html | 13 +- .../main_overview/error_handling.html | 81 +- .../html/math_toolkit/main_overview/faq.html | 49 +- .../math_toolkit/main_overview/history1.html | 229 +- .../math_toolkit/main_overview/intro.html | 15 +- .../main_overview/namespaces.html | 9 +- .../main_overview/navigation.html | 11 +- .../math_toolkit/main_overview/perf_over.html | 15 +- .../main_overview/pol_overview.html | 31 +- .../main_overview/result_type.html | 25 +- .../math_toolkit/main_overview/threads.html | 9 +- .../html/math_toolkit/main_overview/tr1.html | 145 +- doc/sf_and_dist/html/math_toolkit/perf.html | 9 +- .../math_toolkit/perf/comp_compilers.html | 9 +- .../html/math_toolkit/perf/comparisons.html | 63 +- .../html/math_toolkit/perf/getting_best.html | 9 +- .../html/math_toolkit/perf/interp.html | 9 +- .../html/math_toolkit/perf/perf_over.html | 15 +- .../html/math_toolkit/perf/perf_test_app.html | 9 +- .../html/math_toolkit/perf/tuning.html | 9 +- doc/sf_and_dist/html/math_toolkit/policy.html | 9 +- .../math_toolkit/policy/pol_overview.html | 31 +- .../html/math_toolkit/policy/pol_ref.html | 9 +- .../policy/pol_ref/assert_undefined.html | 21 +- .../policy/pol_ref/discrete_quant_ref.html | 77 +- .../pol_ref/error_handling_policies.html | 85 +- .../policy/pol_ref/internal_promotion.html | 37 +- .../policy/pol_ref/iteration_pol.html | 9 +- .../policy/pol_ref/namespace_pol.html | 83 +- .../policy/pol_ref/pol_ref_ref.html | 9 +- .../policy/pol_ref/policy_defaults.html | 41 +- .../policy/pol_ref/precision_pol.html | 31 +- .../math_toolkit/policy/pol_tutorial.html | 9 +- .../pol_tutorial/ad_hoc_dist_policies.html | 33 +- .../pol_tutorial/ad_hoc_sf_policies.html | 73 +- .../changing_policy_defaults.html | 47 +- .../pol_tutorial/namespace_policies.html | 145 +- .../pol_tutorial/policy_tut_defaults.html | 19 +- .../policy/pol_tutorial/policy_usage.html | 19 +- .../pol_tutorial/understand_dis_quant.html | 65 +- .../policy/pol_tutorial/user_def_err_pol.html | 83 +- .../policy/pol_tutorial/what_is_a_policy.html | 31 +- .../html/math_toolkit/special.html | 9 +- .../html/math_toolkit/special/bessel.html | 9 +- .../math_toolkit/special/bessel/bessel.html | 19 +- .../special/bessel/bessel_over.html | 15 +- .../math_toolkit/special/bessel/mbessel.html | 25 +- .../special/bessel/sph_bessel.html | 19 +- .../html/math_toolkit/special/ellint.html | 9 +- .../math_toolkit/special/ellint/ellint_1.html | 23 +- .../math_toolkit/special/ellint/ellint_2.html | 23 +- .../math_toolkit/special/ellint/ellint_3.html | 27 +- .../special/ellint/ellint_carlson.html | 35 +- .../special/ellint/ellint_intro.html | 91 +- .../html/math_toolkit/special/expint.html | 9 +- .../math_toolkit/special/expint/expint_i.html | 27 +- .../math_toolkit/special/expint/expint_n.html | 23 +- .../html/math_toolkit/special/factorials.html | 9 +- .../special/factorials/sf_binomial.html | 19 +- .../factorials/sf_double_factorial.html | 33 +- .../special/factorials/sf_factorial.html | 37 +- .../factorials/sf_falling_factorial.html | 19 +- .../factorials/sf_rising_factorial.html | 19 +- .../html/math_toolkit/special/inv_hyper.html | 9 +- .../math_toolkit/special/inv_hyper/acosh.html | 15 +- .../math_toolkit/special/inv_hyper/asinh.html | 15 +- .../math_toolkit/special/inv_hyper/atanh.html | 15 +- .../special/inv_hyper/inv_hyper_over.html | 9 +- .../html/math_toolkit/special/powers.html | 9 +- .../math_toolkit/special/powers/cbrt.html | 17 +- .../math_toolkit/special/powers/ct_pow.html | 93 +- .../math_toolkit/special/powers/expm1.html | 17 +- .../math_toolkit/special/powers/hypot.html | 11 +- .../math_toolkit/special/powers/log1p.html | 17 +- .../math_toolkit/special/powers/powm1.html | 17 +- .../math_toolkit/special/powers/sqrt1pm1.html | 17 +- .../html/math_toolkit/special/sf_beta.html | 9 +- .../special/sf_beta/beta_derivative.html | 21 +- .../special/sf_beta/beta_function.html | 23 +- .../special/sf_beta/ibeta_function.html | 23 +- .../special/sf_beta/ibeta_inv_function.html | 43 +- .../html/math_toolkit/special/sf_erf.html | 9 +- .../special/sf_erf/error_function.html | 31 +- .../special/sf_erf/error_inv.html | 29 +- .../html/math_toolkit/special/sf_gamma.html | 9 +- .../special/sf_gamma/digamma.html | 23 +- .../special/sf_gamma/gamma_derivatives.html | 21 +- .../special/sf_gamma/gamma_ratios.html | 21 +- .../math_toolkit/special/sf_gamma/igamma.html | 41 +- .../special/sf_gamma/igamma_inv.html | 29 +- .../math_toolkit/special/sf_gamma/lgamma.html | 23 +- .../math_toolkit/special/sf_gamma/tgamma.html | 23 +- .../html/math_toolkit/special/sf_poly.html | 9 +- .../math_toolkit/special/sf_poly/hermite.html | 27 +- .../special/sf_poly/laguerre.html | 33 +- .../special/sf_poly/legendre.html | 41 +- .../special/sf_poly/sph_harm.html | 23 +- .../html/math_toolkit/special/sinc.html | 9 +- .../special/sinc/sinc_overview.html | 9 +- .../math_toolkit/special/sinc/sinc_pi.html | 9 +- .../math_toolkit/special/sinc/sinhc_pi.html | 9 +- .../html/math_toolkit/special/zetas.html | 9 +- .../html/math_toolkit/special/zetas/zeta.html | 23 +- doc/sf_and_dist/html/math_toolkit/status.html | 9 +- .../html/math_toolkit/status/credits.html | 13 +- .../html/math_toolkit/status/history1.html | 229 +- .../html/math_toolkit/status/issues.html | 71 +- .../html/math_toolkit/toolkit.html | 9 +- .../html/math_toolkit/toolkit/internals1.html | 9 +- .../math_toolkit/toolkit/internals1/cf.html | 29 +- .../toolkit/internals1/constants.html | 17 +- .../toolkit/internals1/minima.html | 15 +- .../toolkit/internals1/rational.html | 31 +- .../toolkit/internals1/roots.html | 87 +- .../toolkit/internals1/roots2.html | 45 +- .../toolkit/internals1/series_evaluation.html | 63 +- .../toolkit/internals1/tuples.html | 23 +- .../html/math_toolkit/toolkit/internals2.html | 9 +- .../toolkit/internals2/error_test.html | 79 +- .../toolkit/internals2/minimax.html | 9 +- .../toolkit/internals2/polynomials.html | 33 +- .../toolkit/internals2/test_data.html | 151 +- .../toolkit/internals_overview.html | 9 +- .../html/math_toolkit/using_udt.html | 9 +- .../math_toolkit/using_udt/archetypes.html | 35 +- .../html/math_toolkit/using_udt/concepts.html | 21 +- .../math_toolkit/using_udt/dist_concept.html | 9 +- .../html/math_toolkit/using_udt/e_float.html | 9 +- .../html/math_toolkit/using_udt/use_mpfr.html | 25 +- .../html/math_toolkit/using_udt/use_ntl.html | 9 +- doc/sf_and_dist/html/math_toolkit/utils.html | 9 +- .../html/math_toolkit/utils/fp_facets.html | 23 +- .../utils/fp_facets/examples.html | 70 +- .../math_toolkit/utils/fp_facets/intro.html | 67 +- .../utils/fp_facets/portability.html | 9 +- .../utils/fp_facets/rationale.html | 15 +- .../utils/fp_facets/reference.html | 45 +- .../html/math_toolkit/utils/fpclass.html | 83 +- .../html/math_toolkit/utils/next_float.html | 9 +- .../utils/next_float/float_advance.html | 17 +- .../utils/next_float/float_distance.html | 25 +- .../utils/next_float/float_next.html | 17 +- .../utils/next_float/float_prior.html | 21 +- .../utils/next_float/nextafter.html | 19 +- .../html/math_toolkit/utils/rounding.html | 9 +- .../math_toolkit/utils/rounding/modf.html | 9 +- .../math_toolkit/utils/rounding/round.html | 9 +- .../math_toolkit/utils/rounding/trunc.html | 9 +- .../math_toolkit/utils/sign_functions.html | 69 +- doc/sf_and_dist/issues.qbk | 4 + doc/sf_and_dist/roadmap.qbk | 19 +- include/boost/math/bindings/mpreal.hpp | 4 +- include/boost/math/constants/constants.hpp | 5 +- include/boost/math/distributions/beta.hpp | 2 +- .../distributions/detail/generic_quantile.hpp | 4 +- .../detail/inv_discrete_quantile.hpp | 2 +- .../math/distributions/hypergeometric.hpp | 9 +- .../math/distributions/non_central_beta.hpp | 4 +- .../distributions/non_central_chi_squared.hpp | 8 +- .../math/distributions/non_central_t.hpp | 6 +- include/boost/math/special_functions/beta.hpp | 2 +- .../special_functions/detail/bessel_jy.hpp | 1 + .../math/special_functions/detail/iconv.hpp | 3 +- .../special_functions/detail/lgamma_small.hpp | 6 +- .../detail/t_distribution_inv.hpp | 2 +- .../detail/unchecked_factorial.hpp | 5 + .../boost/math/special_functions/digamma.hpp | 2 +- .../boost/math/special_functions/ellint_3.hpp | 17 +- .../math/special_functions/fpclassify.hpp | 5 +- .../boost/math/special_functions/gamma.hpp | 10 +- .../boost/math/special_functions/lanczos.hpp | 2 +- include/boost/math/special_functions/next.hpp | 12 +- .../nonfinite_num_facets.hpp | 2 +- .../boost/math/special_functions/prime.hpp | 5 + .../boost/math/special_functions/round.hpp | 6 +- .../special_functions/spherical_harmonic.hpp | 2 +- .../boost/math/special_functions/trunc.hpp | 10 +- include/boost/math/tools/config.hpp | 2 +- include/boost/math/tools/toms748_solve.hpp | 2 +- include/boost/math/tools/tuple.hpp | 2 +- octonion/octonion_test.cpp | 122 +- quaternion/quaternion_mult_incl_test.cpp | 19 +- quaternion/quaternion_test.cpp | 111 +- special_functions/acosh_test.hpp | 10 +- special_functions/asinh_test.hpp | 10 +- special_functions/atanh_test.hpp | 15 +- special_functions/sinc_test.hpp | 12 +- special_functions/sinhc_test.hpp | 12 +- special_functions/special_functions_test.cpp | 28 +- test/acosh_test.hpp | 12 +- test/asinh_test.hpp | 12 +- test/atanh_test.hpp | 19 +- test/common_factor_test.cpp | 1 - test/complex_test.cpp | 8 +- test/sinc_test.hpp | 14 +- test/sinhc_test.hpp | 14 +- test/special_functions_test.cpp | 27 +- test/test_next.cpp | 18 + test/test_round.cpp | 68 +- test/test_signed_zero.cpp | 2 +- 303 files changed, 9433 insertions(+), 9472 deletions(-) diff --git a/doc/sf_and_dist/html/index.html b/doc/sf_and_dist/html/index.html index c21acde39..336e29ddb 100644 --- a/doc/sf_and_dist/html/index.html +++ b/doc/sf_and_dist/html/index.html @@ -3,7 +3,7 @@ Math Toolkit - + @@ -18,7 +18,7 @@
Next
-
+

@@ -49,11 +49,10 @@ Thijs van den Berg

-
+
-

+

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

@@ -104,7 +103,7 @@ are Objects
Generic operations common to all distributions are non-member functions
-
Complements +
Complements are supported too - and when to use them
Parameters can be calculated
@@ -514,7 +513,7 @@

- +

Last revised: July 16, 2011 at 10:40:56 GMT

Last revised: October 13, 2011 at 15:53:36 GMT


diff --git a/doc/sf_and_dist/html/index/s12.html b/doc/sf_and_dist/html/index/s12.html index 35703b934..8746703c6 100644 --- a/doc/sf_and_dist/html/index/s12.html +++ b/doc/sf_and_dist/html/index/s12.html @@ -3,7 +3,7 @@ Function Index - + @@ -22,2232 +22,2233 @@
PrevUpHomeNext
-
+

-Function Index

+Function Index

A B C D E F G H I K L M N P Q R S T U V W Z

A
-
-

B C D E F G H I L M N P R S T U W

B
-
-

A B C D E F G H I L N O P R S T U V W

A
-
-

B F

B
-
-

A B C D E F G H I K L M N O P Q R S T U V W Z

A
-
-
- + Median of distributions
@@ -293,7 +293,7 @@ Basic Statistics. give more detail, in particular for discrete distributions.

- + Handling of Floating-Point Infinity
@@ -337,7 +337,7 @@ handling policies.

- + Scale, Shape and Location
@@ -350,8 +350,8 @@ RealType lower = dist.lower(); RealType mode = dist.mode(); RealType upper = dist.upper(); - RealType result; // of checks. - if(false == detail::check_triangular(BOOST_CURRENT_FUNCTION, lower, mode, upper, &result)) + RealType result; // of checks. + if(false == detail::check_triangular(BOOST_CURRENT_FUNCTION, lower, mode, upper, &result)) { return result; } @@ -364,11 +364,11 @@ functions, they can be added if required.

- + Notes on Implementation of Specific Functions & Distributions
-
  • +
    • Default parameters for the Triangular Distribution. We are uncertain about the best default parameters. Some sources suggest that the Standard Triangular Distribution has lower = 0, mode = half and upper = 1. However @@ -376,7 +376,7 @@ lower = -1, mode = 0 and upper = 1 would be more suitable.
    - + Rational Approximations Used
    @@ -419,7 +419,7 @@ to the "true" minimax solution.

    - + Representation of Mathematical Constants
    @@ -471,16 +471,16 @@

    So you cannot write

    -
    double p = boost::math::constants::pi<>();  // could not deduce template argument for 'T'
    -
    +
    double p = boost::math::constants::pi<>();  // could not deduce template argument for 'T'
    +

    Neither can you write:

    -
    double p = boost::math::constants::pi; // Context does not allow for disambiguation of overloaded function
    -double p = boost::math::constants::pi(); // Context does not allow for disambiguation of overloaded function
    -
    +
    double p = boost::math::constants::pi; // Context does not allow for disambiguation of overloaded function
    +double p = boost::math::constants::pi(); // Context does not allow for disambiguation of overloaded function
    +
    - + Thread safety
    @@ -505,7 +505,7 @@ the right thing here at some point.

    - + Sources of Test Data
    @@ -546,7 +546,7 @@ the underlying special function is known to be difficult to implement.

    - + Creating and Managing the Equations
    @@ -696,8 +696,8 @@ done <font weight="bold" style="italic"><font-data ttf="palabi.ttf"/></font> </font-family> - <font-family name"Lucida Sans Unicode"> - <!-- <font><font-data ttf"lsansuni.ttf"><font> --> + <font-family name="Lucida Sans Unicode"> + <!-- <font><font-data ttf="lsansuni.ttf"><font> --> <!-- actually called l_10646.ttf on Windows 2000 and Vista Sp1 --> <font><font-data ttf="l_10646.ttf"></font> </font-family> @@ -718,11 +718,11 @@ done template defined in math.qbk. This outputs Docbook XML that looks like:

    <inlinemediaobject>
    -<imageobject role"html">
    -<imagedata fileref"../equations/myfile.png"></imagedata>
    +<imageobject role="html">
    +<imagedata fileref="../equations/myfile.png"></imagedata>
     </imageobject>
    -<imageobject role"print">
    -<imagedata fileref"../equations/myfile.svg"></imagedata>
    +<imageobject role="print">
    +<imagedata fileref="../equations/myfile.svg"></imagedata>
     </imageobject>
     </inlinemediaobject>
     
    @@ -731,7 +731,7 @@ done HTML: this needs further investigation.

    - + Producing Graphs
    @@ -750,9 +750,8 @@ done
-
- + Computing the Coefficients
@@ -205,7 +205,7 @@ multiplied by F as the last step.

- + Choosing the Right Parameters
@@ -535,24 +535,24 @@ is exact, and so isn't used for the gamma function.

- + References
-
    -
  1. - Paul Godfrey, "A +
      +
    1. + Paul Godfrey, "A note on the computation of the convergent Lanczos complex Gamma approximation".
    2. -
    3. - Glendon Ralph Pugh, "An +
    4. + Glendon Ralph Pugh, "An Analysis of the Lanczos Gamma Approximation", PhD Thesis November 2004.
    5. -
    6. +
    7. Viktor T. Toth, "Calculators and the Gamma Function".
    8. -
    9. +
    10. Mathworld, The Lanczos Approximation.
    11. @@ -560,9 +560,8 @@
    -