From 32a41b1abe1a4aab0892c9c2051be6ba5b379f1e Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 11 May 2020 22:17:58 +0200 Subject: New upstream version 2.2.0~rc1+repack --- boost/libs/math/doc/Jamfile.v2 | 89 - boost/libs/math/doc/background/error.qbk | 73 - boost/libs/math/doc/background/implementation.qbk | 664 - boost/libs/math/doc/background/lanczos.qbk | 246 - boost/libs/math/doc/background/references.qbk | 115 - boost/libs/math/doc/background/remez.qbk | 377 - boost/libs/math/doc/background/special_tut.qbk | 508 - boost/libs/math/doc/complex/complex-tr1.qbk | 149 - boost/libs/math/doc/concepts/concepts.qbk | 636 - boost/libs/math/doc/constants/constants.qbk | 746 -- boost/libs/math/doc/constants/pp_pi.hpp | 99 - boost/libs/math/doc/cstdfloat/cstdfloat.qbk | 551 - boost/libs/math/doc/cstdfloat/cstdfloat_header.qbk | 29 - boost/libs/math/doc/cstdfloat/jamfile.v2 | 109 - boost/libs/math/doc/distexplorer/Jamfile.v2 | 56 - boost/libs/math/doc/distexplorer/distexplorer.qbk | 105 - boost/libs/math/doc/distexplorer/html/index.html | 216 - boost/libs/math/doc/distributions/arcsine.qbk | 288 - boost/libs/math/doc/distributions/background.qbk | 84 - boost/libs/math/doc/distributions/bernoulli.qbk | 118 - boost/libs/math/doc/distributions/beta.qbk | 280 - boost/libs/math/doc/distributions/binomial.qbk | 404 - .../math/doc/distributions/binomial_example.qbk | 332 - boost/libs/math/doc/distributions/c_sharp.qbk | 20 - boost/libs/math/doc/distributions/cauchy.qbk | 154 - boost/libs/math/doc/distributions/chi_squared.qbk | 161 - .../doc/distributions/chi_squared_examples.qbk | 500 - .../math/doc/distributions/dist_algorithms.qbk | 78 - .../libs/math/doc/distributions/dist_reference.qbk | 147 - .../libs/math/doc/distributions/dist_tutorial.qbk | 459 - .../distributions/distribution_construction.qbk | 17 - .../doc/distributions/error_handling_example.qbk | 35 - boost/libs/math/doc/distributions/exponential.qbk | 108 - .../libs/math/doc/distributions/extreme_value.qbk | 119 - .../libs/math/doc/distributions/f_dist_example.qbk | 220 - .../doc/distributions/find_location_and_scale.qbk | 39 - boost/libs/math/doc/distributions/fisher.qbk | 190 - boost/libs/math/doc/distributions/gamma.qbk | 139 - boost/libs/math/doc/distributions/geometric.qbk | 350 - .../math/doc/distributions/geometric_example.qbk | 20 - .../math/doc/distributions/hyperexponential.qbk | 506 - .../libs/math/doc/distributions/hypergeometric.qbk | 229 - .../math/doc/distributions/inverse_chi_squared.qbk | 176 - .../doc/distributions/inverse_chi_squared_eg.qbk | 32 - .../libs/math/doc/distributions/inverse_gamma.qbk | 129 - .../doc/distributions/inverse_gamma_example.qbk | 15 - .../math/doc/distributions/inverse_gaussian.qbk | 171 - boost/libs/math/doc/distributions/laplace.qbk | 141 - boost/libs/math/doc/distributions/logistic.qbk | 103 - boost/libs/math/doc/distributions/lognormal.qbk | 119 - boost/libs/math/doc/distributions/nag_library.qbk | 60 - boost/libs/math/doc/distributions/nc_beta.qbk | 204 - .../libs/math/doc/distributions/nc_chi_squared.qbk | 273 - .../doc/distributions/nc_chi_squared_example.qbk | 20 - boost/libs/math/doc/distributions/nc_f.qbk | 193 - boost/libs/math/doc/distributions/nc_t.qbk | 224 - .../math/doc/distributions/negative_binomial.qbk | 373 - .../distributions/negative_binomial_example.qbk | 192 - boost/libs/math/doc/distributions/non_members.qbk | 406 - boost/libs/math/doc/distributions/normal.qbk | 120 - .../libs/math/doc/distributions/normal_example.qbk | 36 - boost/libs/math/doc/distributions/pareto.qbk | 121 - boost/libs/math/doc/distributions/poisson.qbk | 103 - boost/libs/math/doc/distributions/rayleigh.qbk | 119 - boost/libs/math/doc/distributions/skew_normal.qbk | 193 - boost/libs/math/doc/distributions/students_t.qbk | 180 - .../math/doc/distributions/students_t_examples.qbk | 781 -- boost/libs/math/doc/distributions/triangular.qbk | 179 - boost/libs/math/doc/distributions/uniform.qbk | 134 - boost/libs/math/doc/distributions/weibull.qbk | 132 - boost/libs/math/doc/equations/acosh1.mml | 39 - boost/libs/math/doc/equations/acosh1.png | Bin 2832 -> 0 bytes boost/libs/math/doc/equations/acosh1.svg | 2 - boost/libs/math/doc/equations/acosh2.mml | 40 - boost/libs/math/doc/equations/acosh2.png | Bin 3208 -> 0 bytes boost/libs/math/doc/equations/acosh2.svg | 2 - boost/libs/math/doc/equations/acosh3.mml | 48 - boost/libs/math/doc/equations/acosh3.png | Bin 4276 -> 0 bytes boost/libs/math/doc/equations/acosh3.svg | 2 - boost/libs/math/doc/equations/acosh4.mml | 65 - boost/libs/math/doc/equations/acosh4.png | Bin 5898 -> 0 bytes boost/libs/math/doc/equations/acosh4.svg | 2 - boost/libs/math/doc/equations/airy.mml | 76 - boost/libs/math/doc/equations/airy.png | Bin 5256 -> 0 bytes boost/libs/math/doc/equations/airy.svg | 2 - boost/libs/math/doc/equations/airy_ai.mml | 188 - boost/libs/math/doc/equations/airy_ai.png | Bin 10490 -> 0 bytes boost/libs/math/doc/equations/airy_ai.svg | 2 - boost/libs/math/doc/equations/airy_aip.mml | 179 - boost/libs/math/doc/equations/airy_aip.png | Bin 9750 -> 0 bytes boost/libs/math/doc/equations/airy_aip.svg | 2 - boost/libs/math/doc/equations/airy_bi.mml | 195 - boost/libs/math/doc/equations/airy_bi.png | Bin 11048 -> 0 bytes boost/libs/math/doc/equations/airy_bi.svg | 2 - boost/libs/math/doc/equations/airy_bip.mml | 195 - boost/libs/math/doc/equations/airy_bip.png | Bin 11014 -> 0 bytes boost/libs/math/doc/equations/airy_bip.svg | 2 - boost/libs/math/doc/equations/airy_zero_1.mml | 90 - boost/libs/math/doc/equations/airy_zero_1.svg | 2 - boost/libs/math/doc/equations/airy_zero_2.mml | 36 - boost/libs/math/doc/equations/airy_zero_2.svg | 2 - boost/libs/math/doc/equations/airy_zero_3.mml | 36 - boost/libs/math/doc/equations/airy_zero_3.svg | 2 - boost/libs/math/doc/equations/asinh1.mml | 39 - boost/libs/math/doc/equations/asinh1.png | Bin 2784 -> 0 bytes boost/libs/math/doc/equations/asinh1.svg | 2 - boost/libs/math/doc/equations/asinh2.mml | 51 - boost/libs/math/doc/equations/asinh2.png | Bin 3905 -> 0 bytes boost/libs/math/doc/equations/asinh2.svg | 2 - boost/libs/math/doc/equations/asinh3.mml | 41 - boost/libs/math/doc/equations/asinh3.png | Bin 2967 -> 0 bytes boost/libs/math/doc/equations/asinh3.svg | 2 - boost/libs/math/doc/equations/asinh4.mml | 38 - boost/libs/math/doc/equations/asinh4.png | Bin 4070 -> 0 bytes boost/libs/math/doc/equations/asinh4.svg | 2 - boost/libs/math/doc/equations/atanh1.mml | 44 - boost/libs/math/doc/equations/atanh1.png | Bin 2759 -> 0 bytes boost/libs/math/doc/equations/atanh1.svg | 2 - boost/libs/math/doc/equations/atanh2.mml | 40 - boost/libs/math/doc/equations/atanh2.png | Bin 2947 -> 0 bytes boost/libs/math/doc/equations/atanh2.svg | 2 - boost/libs/math/doc/equations/atanh3.mml | 41 - boost/libs/math/doc/equations/atanh3.png | Bin 4075 -> 0 bytes boost/libs/math/doc/equations/atanh3.svg | 2 - .../libs/math/doc/equations/bernoulli_numbers.mml | 52 - .../libs/math/doc/equations/bernoulli_numbers.png | Bin 2763 -> 0 bytes .../libs/math/doc/equations/bernoulli_numbers.svg | 2 - .../libs/math/doc/equations/bernoulli_numbers2.mml | 224 - .../libs/math/doc/equations/bernoulli_numbers2.png | Bin 9752 -> 0 bytes .../libs/math/doc/equations/bernoulli_numbers2.svg | 2 - boost/libs/math/doc/equations/bessel1.mml | 1 - boost/libs/math/doc/equations/bessel1.png | Bin 3844 -> 0 bytes boost/libs/math/doc/equations/bessel1.svg | 2 - boost/libs/math/doc/equations/bessel10.mml | 1 - boost/libs/math/doc/equations/bessel10.png | Bin 3959 -> 0 bytes boost/libs/math/doc/equations/bessel10.svg | 2 - boost/libs/math/doc/equations/bessel11.mml | 1 - boost/libs/math/doc/equations/bessel11.png | Bin 3759 -> 0 bytes boost/libs/math/doc/equations/bessel11.svg | 2 - boost/libs/math/doc/equations/bessel12.mml | 1 - boost/libs/math/doc/equations/bessel12.png | Bin 9203 -> 0 bytes boost/libs/math/doc/equations/bessel12.svg | 2 - boost/libs/math/doc/equations/bessel13.mml | 140 - boost/libs/math/doc/equations/bessel13.png | Bin 7615 -> 0 bytes boost/libs/math/doc/equations/bessel13.svg | 2 - boost/libs/math/doc/equations/bessel14.mml | 1 - boost/libs/math/doc/equations/bessel14.png | Bin 1337 -> 0 bytes boost/libs/math/doc/equations/bessel14.svg | 2 - boost/libs/math/doc/equations/bessel15.mml | 114 - boost/libs/math/doc/equations/bessel15.png | Bin 5191 -> 0 bytes boost/libs/math/doc/equations/bessel15.svg | 2 - boost/libs/math/doc/equations/bessel16.mml | 1 - boost/libs/math/doc/equations/bessel16.png | Bin 2241 -> 0 bytes boost/libs/math/doc/equations/bessel16.svg | 2 - boost/libs/math/doc/equations/bessel2.mml | 1 - boost/libs/math/doc/equations/bessel2.png | Bin 5468 -> 0 bytes boost/libs/math/doc/equations/bessel2.svg | 2 - boost/libs/math/doc/equations/bessel3.mml | 1 - boost/libs/math/doc/equations/bessel3.png | Bin 4234 -> 0 bytes boost/libs/math/doc/equations/bessel3.svg | 2 - boost/libs/math/doc/equations/bessel4.mml | 1 - boost/libs/math/doc/equations/bessel4.png | Bin 2868 -> 0 bytes boost/libs/math/doc/equations/bessel4.svg | 2 - boost/libs/math/doc/equations/bessel5.mml | 1 - boost/libs/math/doc/equations/bessel5.png | Bin 3057 -> 0 bytes boost/libs/math/doc/equations/bessel5.svg | 2 - boost/libs/math/doc/equations/bessel6.mml | 1 - boost/libs/math/doc/equations/bessel6.png | Bin 2633 -> 0 bytes boost/libs/math/doc/equations/bessel6.svg | 2 - boost/libs/math/doc/equations/bessel7.mml | 1 - boost/libs/math/doc/equations/bessel7.png | Bin 2715 -> 0 bytes boost/libs/math/doc/equations/bessel7.svg | 2 - boost/libs/math/doc/equations/bessel8.mml | 1 - boost/libs/math/doc/equations/bessel8.png | Bin 6451 -> 0 bytes boost/libs/math/doc/equations/bessel8.svg | 2 - boost/libs/math/doc/equations/bessel9.mml | 1 - boost/libs/math/doc/equations/bessel9.png | Bin 3934 -> 0 bytes boost/libs/math/doc/equations/bessel9.svg | 2 - .../math/doc/equations/bessel_derivatives1.mml | 442 - .../math/doc/equations/bessel_derivatives1.png | Bin 14687 -> 0 bytes .../math/doc/equations/bessel_derivatives1.svg | 2 - .../math/doc/equations/bessel_derivatives2.mml | 69 - .../math/doc/equations/bessel_derivatives2.png | Bin 3046 -> 0 bytes .../math/doc/equations/bessel_derivatives2.svg | 2 - .../math/doc/equations/bessel_derivatives3.mml | 69 - .../math/doc/equations/bessel_derivatives3.png | Bin 3046 -> 0 bytes .../math/doc/equations/bessel_derivatives3.svg | 2 - .../math/doc/equations/bessel_derivatives4.mml | 370 - .../math/doc/equations/bessel_derivatives4.png | Bin 17621 -> 0 bytes .../math/doc/equations/bessel_derivatives4.svg | 2 - .../math/doc/equations/bessel_derivatives5.mml | 396 - .../math/doc/equations/bessel_derivatives5.png | Bin 15350 -> 0 bytes .../math/doc/equations/bessel_derivatives5.svg | 2 - .../libs/math/doc/equations/bessel_y0_small_z.mml | 52 - .../libs/math/doc/equations/bessel_y0_small_z.png | Bin 3943 -> 0 bytes .../libs/math/doc/equations/bessel_y0_small_z.svg | 2 - .../libs/math/doc/equations/bessel_y1_small_z.mml | 70 - .../libs/math/doc/equations/bessel_y1_small_z.png | Bin 5010 -> 0 bytes .../libs/math/doc/equations/bessel_y1_small_z.svg | 2 - .../libs/math/doc/equations/bessel_y2_small_z.mml | 81 - .../libs/math/doc/equations/bessel_y2_small_z.png | Bin 5839 -> 0 bytes .../libs/math/doc/equations/bessel_y2_small_z.svg | 2 - .../libs/math/doc/equations/bessel_yn_small_z.mml | 64 - .../libs/math/doc/equations/bessel_yn_small_z.png | Bin 4324 -> 0 bytes .../libs/math/doc/equations/bessel_yn_small_z.svg | 2 - .../libs/math/doc/equations/bessel_yv_small_z.mml | 171 - .../libs/math/doc/equations/bessel_yv_small_z.png | Bin 12583 -> 0 bytes .../libs/math/doc/equations/bessel_yv_small_z.svg | 2 - boost/libs/math/doc/equations/beta1.mml | 49 - boost/libs/math/doc/equations/beta1.png | Bin 4703 -> 0 bytes boost/libs/math/doc/equations/beta1.svg | 2 - boost/libs/math/doc/equations/beta1.svg.svg | 2 - boost/libs/math/doc/equations/beta2.mml | 106 - boost/libs/math/doc/equations/beta2.png | Bin 11009 -> 0 bytes boost/libs/math/doc/equations/beta2.svg | 2 - boost/libs/math/doc/equations/beta3.mml | 128 - boost/libs/math/doc/equations/beta3.png | Bin 13483 -> 0 bytes boost/libs/math/doc/equations/beta3.svg | 2 - boost/libs/math/doc/equations/beta4.mml | 34 - boost/libs/math/doc/equations/beta4.png | Bin 3906 -> 0 bytes boost/libs/math/doc/equations/beta4.svg | 2 - boost/libs/math/doc/equations/beta5.mml | 49 - boost/libs/math/doc/equations/beta5.png | Bin 5231 -> 0 bytes boost/libs/math/doc/equations/beta5.svg | 2 - boost/libs/math/doc/equations/beta6.mml | 48 - boost/libs/math/doc/equations/beta6.png | Bin 4859 -> 0 bytes boost/libs/math/doc/equations/beta6.svg | 2 - boost/libs/math/doc/equations/beta7.mml | 28 - boost/libs/math/doc/equations/beta7.png | Bin 3057 -> 0 bytes boost/libs/math/doc/equations/beta7.svg | 2 - boost/libs/math/doc/equations/beta8.mml | 52 - boost/libs/math/doc/equations/beta8.png | Bin 3141 -> 0 bytes boost/libs/math/doc/equations/beta8.svg | 2 - .../libs/math/doc/equations/beta_dist_kurtosis.mml | 72 - .../libs/math/doc/equations/beta_dist_kurtosis.png | Bin 6789 -> 0 bytes .../libs/math/doc/equations/beta_dist_kurtosis.svg | 2 - boost/libs/math/doc/equations/binomial_ref1.mml | 212 - boost/libs/math/doc/equations/binomial_ref1.png | Bin 11599 -> 0 bytes boost/libs/math/doc/equations/binomial_ref1.svg | 2 - boost/libs/math/doc/equations/binomial_ref2.mml | 98 - boost/libs/math/doc/equations/binomial_ref2.png | Bin 5521 -> 0 bytes boost/libs/math/doc/equations/binomial_ref2.svg | 2 - boost/libs/math/doc/equations/cauchy_ref1.mml | 51 - boost/libs/math/doc/equations/cauchy_ref1.png | Bin 4326 -> 0 bytes boost/libs/math/doc/equations/cauchy_ref1.svg | 2 - boost/libs/math/doc/equations/chf.mml | 44 - boost/libs/math/doc/equations/chf.png | Bin 4083 -> 0 bytes boost/libs/math/doc/equations/chf.svg | 2 - boost/libs/math/doc/equations/chi_squ_ref1.mml | 44 - boost/libs/math/doc/equations/chi_squ_ref1.png | Bin 3152 -> 0 bytes boost/libs/math/doc/equations/chi_squ_ref1.svg | 2 - boost/libs/math/doc/equations/chi_squ_tut1.mml | 90 - boost/libs/math/doc/equations/chi_squ_tut1.png | Bin 6698 -> 0 bytes boost/libs/math/doc/equations/chi_squ_tut1.svg | 2 - boost/libs/math/doc/equations/chi_squ_tut2.mml | 24 - boost/libs/math/doc/equations/chi_squ_tut2.png | Bin 1361 -> 0 bytes boost/libs/math/doc/equations/chi_squ_tut2.svg | 2 - boost/libs/math/doc/equations/chi_squ_tut3.mml | 26 - boost/libs/math/doc/equations/chi_squ_tut3.png | Bin 1501 -> 0 bytes boost/libs/math/doc/equations/chi_squ_tut3.svg | 2 - boost/libs/math/doc/equations/derivative1.mml | 61 - boost/libs/math/doc/equations/derivative1.png | Bin 6289 -> 0 bytes boost/libs/math/doc/equations/derivative1.svg | 2 - boost/libs/math/doc/equations/derivative2.mml | 75 - boost/libs/math/doc/equations/derivative2.png | Bin 7004 -> 0 bytes boost/libs/math/doc/equations/derivative2.svg | 2 - boost/libs/math/doc/equations/digamma1.mml | 56 - boost/libs/math/doc/equations/digamma1.png | Bin 4015 -> 0 bytes boost/libs/math/doc/equations/digamma1.svg | 2 - boost/libs/math/doc/equations/digamma2.mml | 60 - boost/libs/math/doc/equations/digamma2.png | Bin 4614 -> 0 bytes boost/libs/math/doc/equations/digamma2.svg | 2 - boost/libs/math/doc/equations/digamma3.mml | 94 - boost/libs/math/doc/equations/digamma3.png | Bin 7178 -> 0 bytes boost/libs/math/doc/equations/digamma3.svg | 2 - boost/libs/math/doc/equations/digamma4.mml | 47 - boost/libs/math/doc/equations/digamma4.png | Bin 3284 -> 0 bytes boost/libs/math/doc/equations/digamma4.svg | 2 - boost/libs/math/doc/equations/digamma5.mml | 78 - boost/libs/math/doc/equations/digamma5.png | Bin 6282 -> 0 bytes boost/libs/math/doc/equations/digamma5.svg | 2 - boost/libs/math/doc/equations/dist_tutorial1.mml | 140 - boost/libs/math/doc/equations/dist_tutorial1.png | Bin 8459 -> 0 bytes boost/libs/math/doc/equations/dist_tutorial1.svg | 2 - boost/libs/math/doc/equations/dist_tutorial2.mml | 55 - boost/libs/math/doc/equations/dist_tutorial2.png | Bin 3796 -> 0 bytes boost/libs/math/doc/equations/dist_tutorial2.svg | 2 - boost/libs/math/doc/equations/dist_tutorial3.mml | 114 - boost/libs/math/doc/equations/dist_tutorial3.png | Bin 7505 -> 0 bytes boost/libs/math/doc/equations/dist_tutorial3.svg | 2 - boost/libs/math/doc/equations/dist_tutorial4.mml | 32 - boost/libs/math/doc/equations/dist_tutorial4.png | Bin 2144 -> 0 bytes boost/libs/math/doc/equations/dist_tutorial4.svg | 2 - boost/libs/math/doc/equations/ellint1.mml | 1 - boost/libs/math/doc/equations/ellint1.png | Bin 1567 -> 0 bytes boost/libs/math/doc/equations/ellint1.svg | 2 - boost/libs/math/doc/equations/ellint10.mml | 1 - boost/libs/math/doc/equations/ellint10.png | Bin 5298 -> 0 bytes boost/libs/math/doc/equations/ellint10.svg | 2 - boost/libs/math/doc/equations/ellint11.mml | 1 - boost/libs/math/doc/equations/ellint11.png | Bin 5738 -> 0 bytes boost/libs/math/doc/equations/ellint11.svg | 2 - boost/libs/math/doc/equations/ellint12.mml | 1 - boost/libs/math/doc/equations/ellint12.png | Bin 4055 -> 0 bytes boost/libs/math/doc/equations/ellint12.svg | 2 - boost/libs/math/doc/equations/ellint13.mml | 149 - boost/libs/math/doc/equations/ellint13.png | Bin 8222 -> 0 bytes boost/libs/math/doc/equations/ellint13.svg | 2 - boost/libs/math/doc/equations/ellint14.mml | 1 - boost/libs/math/doc/equations/ellint14.png | Bin 22660 -> 0 bytes boost/libs/math/doc/equations/ellint14.svg | 2 - boost/libs/math/doc/equations/ellint15.mml | 1 - boost/libs/math/doc/equations/ellint15.png | Bin 12340 -> 0 bytes boost/libs/math/doc/equations/ellint15.svg | 2 - boost/libs/math/doc/equations/ellint16.mml | 1 - boost/libs/math/doc/equations/ellint16.png | Bin 1962 -> 0 bytes boost/libs/math/doc/equations/ellint16.svg | 2 - boost/libs/math/doc/equations/ellint17.mml | 173 - boost/libs/math/doc/equations/ellint17.png | Bin 13634 -> 0 bytes boost/libs/math/doc/equations/ellint17.svg | 2 - boost/libs/math/doc/equations/ellint18.mml | 53 - boost/libs/math/doc/equations/ellint18.png | Bin 4088 -> 0 bytes boost/libs/math/doc/equations/ellint18.svg | 2 - boost/libs/math/doc/equations/ellint19.mml | 119 - boost/libs/math/doc/equations/ellint19.png | Bin 10564 -> 0 bytes boost/libs/math/doc/equations/ellint19.svg | 2 - boost/libs/math/doc/equations/ellint2.mml | 1 - boost/libs/math/doc/equations/ellint2.png | Bin 3866 -> 0 bytes boost/libs/math/doc/equations/ellint2.svg | 2 - boost/libs/math/doc/equations/ellint20.mml | 30 - boost/libs/math/doc/equations/ellint20.png | Bin 2601 -> 0 bytes boost/libs/math/doc/equations/ellint20.svg | 2 - boost/libs/math/doc/equations/ellint21.mml | 175 - boost/libs/math/doc/equations/ellint21.png | Bin 16251 -> 0 bytes boost/libs/math/doc/equations/ellint21.svg | 2 - boost/libs/math/doc/equations/ellint22.mml | 57 - boost/libs/math/doc/equations/ellint22.png | Bin 4911 -> 0 bytes boost/libs/math/doc/equations/ellint22.svg | 2 - boost/libs/math/doc/equations/ellint23.mml | 130 - boost/libs/math/doc/equations/ellint23.png | Bin 9151 -> 0 bytes boost/libs/math/doc/equations/ellint23.svg | 2 - boost/libs/math/doc/equations/ellint24.mml | 228 - boost/libs/math/doc/equations/ellint24.png | Bin 15186 -> 0 bytes boost/libs/math/doc/equations/ellint24.svg | 2 - boost/libs/math/doc/equations/ellint25.mml | 97 - boost/libs/math/doc/equations/ellint25.png | Bin 9134 -> 0 bytes boost/libs/math/doc/equations/ellint25.svg | 2 - boost/libs/math/doc/equations/ellint26.mml | 57 - boost/libs/math/doc/equations/ellint26.png | Bin 4895 -> 0 bytes boost/libs/math/doc/equations/ellint26.svg | 2 - boost/libs/math/doc/equations/ellint27.mml | 98 - boost/libs/math/doc/equations/ellint27.png | Bin 7757 -> 0 bytes boost/libs/math/doc/equations/ellint27.svg | 2 - boost/libs/math/doc/equations/ellint3.mml | 1 - boost/libs/math/doc/equations/ellint3.png | Bin 3657 -> 0 bytes boost/libs/math/doc/equations/ellint3.svg | 2 - boost/libs/math/doc/equations/ellint4.mml | 1 - boost/libs/math/doc/equations/ellint4.png | Bin 5378 -> 0 bytes boost/libs/math/doc/equations/ellint4.svg | 2 - boost/libs/math/doc/equations/ellint5.mml | 1 - boost/libs/math/doc/equations/ellint5.png | Bin 1599 -> 0 bytes boost/libs/math/doc/equations/ellint5.svg | 2 - boost/libs/math/doc/equations/ellint6.mml | 62 - boost/libs/math/doc/equations/ellint6.png | Bin 5214 -> 0 bytes boost/libs/math/doc/equations/ellint6.svg | 2 - boost/libs/math/doc/equations/ellint7.mml | 61 - boost/libs/math/doc/equations/ellint7.png | Bin 4898 -> 0 bytes boost/libs/math/doc/equations/ellint7.svg | 2 - boost/libs/math/doc/equations/ellint8.mml | 82 - boost/libs/math/doc/equations/ellint8.png | Bin 7063 -> 0 bytes boost/libs/math/doc/equations/ellint8.svg | 2 - boost/libs/math/doc/equations/ellint9.mml | 1 - boost/libs/math/doc/equations/ellint9.png | Bin 4771 -> 0 bytes boost/libs/math/doc/equations/ellint9.svg | 2 - boost/libs/math/doc/equations/ellint_d.mml | 210 - boost/libs/math/doc/equations/ellint_d.png | Bin 10324 -> 0 bytes boost/libs/math/doc/equations/ellint_d.svg | 2 - boost/libs/math/doc/equations/ellint_rg.svg | 2 - boost/libs/math/doc/equations/erf1.mml | 41 - boost/libs/math/doc/equations/erf1.png | Bin 3175 -> 0 bytes boost/libs/math/doc/equations/erf1.svg | 2 - boost/libs/math/doc/equations/erf2.mml | 22 - boost/libs/math/doc/equations/erf2.png | Bin 2083 -> 0 bytes boost/libs/math/doc/equations/erf2.svg | 2 - boost/libs/math/doc/equations/error1.mml | 31 - boost/libs/math/doc/equations/error1.png | Bin 2256 -> 0 bytes boost/libs/math/doc/equations/error1.svg | 2 - boost/libs/math/doc/equations/error2.mml | 15 - boost/libs/math/doc/equations/error2.png | Bin 841 -> 0 bytes boost/libs/math/doc/equations/error2.svg | 2 - boost/libs/math/doc/equations/expint_i_1.mml | 46 - boost/libs/math/doc/equations/expint_i_1.png | Bin 3416 -> 0 bytes boost/libs/math/doc/equations/expint_i_1.svg | 2 - boost/libs/math/doc/equations/expint_i_2.mml | 42 - boost/libs/math/doc/equations/expint_i_2.png | Bin 4004 -> 0 bytes boost/libs/math/doc/equations/expint_i_2.svg | 2 - boost/libs/math/doc/equations/expint_i_3.mml | 45 - boost/libs/math/doc/equations/expint_i_3.png | Bin 4216 -> 0 bytes boost/libs/math/doc/equations/expint_i_3.svg | 2 - boost/libs/math/doc/equations/expint_i_4.mml | 32 - boost/libs/math/doc/equations/expint_i_4.png | Bin 2654 -> 0 bytes boost/libs/math/doc/equations/expint_i_4.svg | 2 - boost/libs/math/doc/equations/expint_n_1.mml | 41 - boost/libs/math/doc/equations/expint_n_1.png | Bin 2629 -> 0 bytes boost/libs/math/doc/equations/expint_n_1.svg | 2 - boost/libs/math/doc/equations/expint_n_2.mml | 101 - boost/libs/math/doc/equations/expint_n_2.png | Bin 8293 -> 0 bytes boost/libs/math/doc/equations/expint_n_2.svg | 2 - boost/libs/math/doc/equations/expint_n_3.mml | 101 - boost/libs/math/doc/equations/expint_n_3.png | Bin 6019 -> 0 bytes boost/libs/math/doc/equations/expint_n_3.svg | 2 - boost/libs/math/doc/equations/expint_n_4.mml | 31 - boost/libs/math/doc/equations/expint_n_4.png | Bin 2832 -> 0 bytes boost/libs/math/doc/equations/expint_n_4.svg | 2 - boost/libs/math/doc/equations/expint_n_5.mml | 39 - boost/libs/math/doc/equations/expint_n_5.png | Bin 3032 -> 0 bytes boost/libs/math/doc/equations/expint_n_5.svg | 2 - .../math/doc/equations/exponential_dist_ref1.mml | 23 - .../math/doc/equations/exponential_dist_ref1.png | Bin 1392 -> 0 bytes .../math/doc/equations/exponential_dist_ref1.svg | 2 - boost/libs/math/doc/equations/fisher_pdf.mml | 91 - boost/libs/math/doc/equations/fisher_pdf.png | Bin 5688 -> 0 bytes boost/libs/math/doc/equations/fisher_pdf.svg | 2 - boost/libs/math/doc/equations/fraction1.mml | 61 - boost/libs/math/doc/equations/fraction1.png | Bin 3271 -> 0 bytes boost/libs/math/doc/equations/fraction1.svg | 2 - boost/libs/math/doc/equations/fraction2.mml | 56 - boost/libs/math/doc/equations/fraction2.png | Bin 2785 -> 0 bytes boost/libs/math/doc/equations/fraction2.svg | 2 - boost/libs/math/doc/equations/fraction3.mml | 38 - boost/libs/math/doc/equations/fraction3.png | Bin 3206 -> 0 bytes boost/libs/math/doc/equations/fraction3.svg | 2 - boost/libs/math/doc/equations/fraction4.mml | 62 - boost/libs/math/doc/equations/fraction4.png | Bin 3371 -> 0 bytes boost/libs/math/doc/equations/fraction4.svg | 2 - boost/libs/math/doc/equations/gamm1.mml | 43 - boost/libs/math/doc/equations/gamm1.png | Bin 3877 -> 0 bytes boost/libs/math/doc/equations/gamm1.svg | 2 - boost/libs/math/doc/equations/gamm2.mml | 148 - boost/libs/math/doc/equations/gamm2.png | Bin 11688 -> 0 bytes boost/libs/math/doc/equations/gamm2.svg | 2 - boost/libs/math/doc/equations/gamm3.mml | 25 - boost/libs/math/doc/equations/gamm3.png | Bin 1839 -> 0 bytes boost/libs/math/doc/equations/gamm3.svg | 2 - boost/libs/math/doc/equations/gamm4.mml | 28 - boost/libs/math/doc/equations/gamm4.png | Bin 1951 -> 0 bytes boost/libs/math/doc/equations/gamm4.svg | 2 - boost/libs/math/doc/equations/gamm5.mml | 33 - boost/libs/math/doc/equations/gamm5.png | Bin 2637 -> 0 bytes boost/libs/math/doc/equations/gamm5.svg | 2 - boost/libs/math/doc/equations/gamma6.mml | 113 - boost/libs/math/doc/equations/gamma6.png | Bin 5988 -> 0 bytes boost/libs/math/doc/equations/gamma6.svg | 2 - boost/libs/math/doc/equations/gamma_dist_ref1.mml | 50 - boost/libs/math/doc/equations/gamma_dist_ref1.png | Bin 3515 -> 0 bytes boost/libs/math/doc/equations/gamma_dist_ref1.svg | 2 - boost/libs/math/doc/equations/gamma_dist_ref2.mml | 50 - boost/libs/math/doc/equations/gamma_dist_ref2.png | Bin 3541 -> 0 bytes boost/libs/math/doc/equations/gamma_dist_ref2.svg | 2 - boost/libs/math/doc/equations/gamma_ratio0.mml | 28 - boost/libs/math/doc/equations/gamma_ratio0.png | Bin 4024 -> 0 bytes boost/libs/math/doc/equations/gamma_ratio0.svg | 2 - boost/libs/math/doc/equations/gamma_ratio1.mml | 34 - boost/libs/math/doc/equations/gamma_ratio1.png | Bin 5921 -> 0 bytes boost/libs/math/doc/equations/gamma_ratio1.svg | 2 - boost/libs/math/doc/equations/generate.sh | 32 - boost/libs/math/doc/equations/hankel1.mml | 57 - boost/libs/math/doc/equations/hankel1.png | Bin 2430 -> 0 bytes boost/libs/math/doc/equations/hankel1.svg | 2 - boost/libs/math/doc/equations/hankel2.mml | 152 - boost/libs/math/doc/equations/hankel2.png | Bin 6337 -> 0 bytes boost/libs/math/doc/equations/hankel2.svg | 2 - boost/libs/math/doc/equations/hankel3.mml | 115 - boost/libs/math/doc/equations/hankel3.png | Bin 6238 -> 0 bytes boost/libs/math/doc/equations/hankel3.svg | 2 - boost/libs/math/doc/equations/hankel4.mml | 69 - boost/libs/math/doc/equations/hankel4.png | Bin 3745 -> 0 bytes boost/libs/math/doc/equations/hankel4.svg | 2 - boost/libs/math/doc/equations/hankel5.mml | 69 - boost/libs/math/doc/equations/hankel5.png | Bin 3839 -> 0 bytes boost/libs/math/doc/equations/hankel5.svg | 2 - boost/libs/math/doc/equations/hazard.mml | 43 - boost/libs/math/doc/equations/hazard.png | Bin 4445 -> 0 bytes boost/libs/math/doc/equations/hazard.svg | 2 - boost/libs/math/doc/equations/hermite_0.mml | 67 - boost/libs/math/doc/equations/hermite_0.png | Bin 4761 -> 0 bytes boost/libs/math/doc/equations/hermite_0.svg | 2 - boost/libs/math/doc/equations/hermite_1.mml | 48 - boost/libs/math/doc/equations/hermite_1.png | Bin 3376 -> 0 bytes boost/libs/math/doc/equations/hermite_1.svg | 2 - boost/libs/math/doc/equations/heuman_lambda.mml | 224 - boost/libs/math/doc/equations/heuman_lambda.png | Bin 12804 -> 0 bytes boost/libs/math/doc/equations/heuman_lambda.svg | 2 - .../math/doc/equations/hyperexponential_ccdf.mml | 27 - .../math/doc/equations/hyperexponential_ccdf.png | Bin 1781 -> 0 bytes .../math/doc/equations/hyperexponential_ccdf.svg | 2 - .../math/doc/equations/hyperexponential_cdf.mml | 29 - .../math/doc/equations/hyperexponential_cdf.png | Bin 1964 -> 0 bytes .../math/doc/equations/hyperexponential_cdf.svg | 2 - .../doc/equations/hyperexponential_kurtosis.mml | 282 - .../doc/equations/hyperexponential_kurtosis.png | Bin 20745 -> 0 bytes .../doc/equations/hyperexponential_kurtosis.svg | 2 - .../math/doc/equations/hyperexponential_mean.mml | 22 - .../math/doc/equations/hyperexponential_mean.png | Bin 1699 -> 0 bytes .../math/doc/equations/hyperexponential_mean.svg | 2 - .../math/doc/equations/hyperexponential_pdf.mml | 31 - .../math/doc/equations/hyperexponential_pdf.png | Bin 2000 -> 0 bytes .../math/doc/equations/hyperexponential_pdf.svg | 2 - .../doc/equations/hyperexponential_skewness.mml | 230 - .../doc/equations/hyperexponential_skewness.png | Bin 16635 -> 0 bytes .../doc/equations/hyperexponential_skewness.svg | 2 - .../doc/equations/hyperexponential_variance.mml | 59 - .../doc/equations/hyperexponential_variance.png | Bin 4840 -> 0 bytes .../doc/equations/hyperexponential_variance.svg | 2 - boost/libs/math/doc/equations/hypergeometric1.mml | 117 - boost/libs/math/doc/equations/hypergeometric1.png | Bin 11071 -> 0 bytes boost/libs/math/doc/equations/hypergeometric1.svg | 2 - boost/libs/math/doc/equations/hypergeometric2.mml | 50 - boost/libs/math/doc/equations/hypergeometric2.png | Bin 2225 -> 0 bytes boost/libs/math/doc/equations/hypergeometric2.svg | 2 - boost/libs/math/doc/equations/hypergeometric3.mml | 60 - boost/libs/math/doc/equations/hypergeometric3.png | Bin 4652 -> 0 bytes boost/libs/math/doc/equations/hypergeometric3.svg | 2 - boost/libs/math/doc/equations/hypergeometric4.mml | 60 - boost/libs/math/doc/equations/hypergeometric4.png | Bin 3381 -> 0 bytes boost/libs/math/doc/equations/hypergeometric4.svg | 2 - boost/libs/math/doc/equations/hypergeometric5.mml | 161 - boost/libs/math/doc/equations/hypergeometric5.png | Bin 10727 -> 0 bytes boost/libs/math/doc/equations/hypergeometric5.svg | 2 - boost/libs/math/doc/equations/hypergeometric6.mml | 303 - boost/libs/math/doc/equations/hypergeometric6.png | Bin 22979 -> 0 bytes boost/libs/math/doc/equations/hypergeometric6.svg | 2 - boost/libs/math/doc/equations/hypot.mml | 29 - boost/libs/math/doc/equations/hypot.png | Bin 2636 -> 0 bytes boost/libs/math/doc/equations/hypot.svg | 2 - boost/libs/math/doc/equations/hypot2.mml | 34 - boost/libs/math/doc/equations/hypot2.png | Bin 3394 -> 0 bytes boost/libs/math/doc/equations/hypot2.svg | 2 - boost/libs/math/doc/equations/ibeta1.mml | 63 - boost/libs/math/doc/equations/ibeta1.png | Bin 4762 -> 0 bytes boost/libs/math/doc/equations/ibeta1.svg | 2 - boost/libs/math/doc/equations/ibeta10.mml | 202 - boost/libs/math/doc/equations/ibeta10.png | Bin 11680 -> 0 bytes boost/libs/math/doc/equations/ibeta10.svg | 2 - boost/libs/math/doc/equations/ibeta11.mml | 135 - boost/libs/math/doc/equations/ibeta11.png | Bin 9068 -> 0 bytes boost/libs/math/doc/equations/ibeta11.svg | 2 - boost/libs/math/doc/equations/ibeta12.mml | 77 - boost/libs/math/doc/equations/ibeta12.png | Bin 6527 -> 0 bytes boost/libs/math/doc/equations/ibeta12.svg | 2 - boost/libs/math/doc/equations/ibeta2.mml | 49 - boost/libs/math/doc/equations/ibeta2.png | Bin 4127 -> 0 bytes boost/libs/math/doc/equations/ibeta2.svg | 2 - boost/libs/math/doc/equations/ibeta3.mml | 76 - boost/libs/math/doc/equations/ibeta3.png | Bin 6583 -> 0 bytes boost/libs/math/doc/equations/ibeta3.svg | 2 - boost/libs/math/doc/equations/ibeta4.mml | 49 - boost/libs/math/doc/equations/ibeta4.png | Bin 3927 -> 0 bytes boost/libs/math/doc/equations/ibeta4.svg | 2 - boost/libs/math/doc/equations/ibeta5.mml | 198 - boost/libs/math/doc/equations/ibeta5.png | Bin 11151 -> 0 bytes boost/libs/math/doc/equations/ibeta5.svg | 2 - boost/libs/math/doc/equations/ibeta6.mml | 265 - boost/libs/math/doc/equations/ibeta6.png | Bin 15818 -> 0 bytes boost/libs/math/doc/equations/ibeta6.svg | 2 - boost/libs/math/doc/equations/ibeta7.mml | 80 - boost/libs/math/doc/equations/ibeta7.png | Bin 5808 -> 0 bytes boost/libs/math/doc/equations/ibeta7.svg | 2 - boost/libs/math/doc/equations/ibeta8.mml | 281 - boost/libs/math/doc/equations/ibeta8.png | Bin 16693 -> 0 bytes boost/libs/math/doc/equations/ibeta8.svg | 2 - boost/libs/math/doc/equations/ibeta9.mml | 109 - boost/libs/math/doc/equations/ibeta9.png | Bin 9288 -> 0 bytes boost/libs/math/doc/equations/ibeta9.svg | 2 - boost/libs/math/doc/equations/ibeta_inv1.mml | 155 - boost/libs/math/doc/equations/ibeta_inv1.png | Bin 11974 -> 0 bytes boost/libs/math/doc/equations/ibeta_inv1.svg | 2 - boost/libs/math/doc/equations/ibeta_inv2.mml | 28 - boost/libs/math/doc/equations/ibeta_inv2.png | Bin 2346 -> 0 bytes boost/libs/math/doc/equations/ibeta_inv2.svg | 2 - boost/libs/math/doc/equations/ibeta_inv3.mml | 33 - boost/libs/math/doc/equations/ibeta_inv3.png | Bin 3291 -> 0 bytes boost/libs/math/doc/equations/ibeta_inv3.svg | 2 - boost/libs/math/doc/equations/ibeta_inv4.mml | 47 - boost/libs/math/doc/equations/ibeta_inv4.png | Bin 3110 -> 0 bytes boost/libs/math/doc/equations/ibeta_inv4.svg | 2 - boost/libs/math/doc/equations/ibeta_inv5.mml | 50 - boost/libs/math/doc/equations/ibeta_inv5.png | Bin 3556 -> 0 bytes boost/libs/math/doc/equations/ibeta_inv5.svg | 2 - boost/libs/math/doc/equations/ibeta_inv6.mml | 53 - boost/libs/math/doc/equations/ibeta_inv6.png | Bin 3652 -> 0 bytes boost/libs/math/doc/equations/ibeta_inv6.svg | 2 - boost/libs/math/doc/equations/ibeta_inv7.mml | 59 - boost/libs/math/doc/equations/ibeta_inv7.png | Bin 3984 -> 0 bytes boost/libs/math/doc/equations/ibeta_inv7.svg | 2 - boost/libs/math/doc/equations/ibeta_inv8.mml | 37 - boost/libs/math/doc/equations/ibeta_inv8.png | Bin 2207 -> 0 bytes boost/libs/math/doc/equations/ibeta_inv8.svg | 2 - boost/libs/math/doc/equations/igamma1.mml | 51 - boost/libs/math/doc/equations/igamma1.png | Bin 4292 -> 0 bytes boost/libs/math/doc/equations/igamma1.svg | 2 - boost/libs/math/doc/equations/igamma10.mml | 57 - boost/libs/math/doc/equations/igamma10.png | Bin 4723 -> 0 bytes boost/libs/math/doc/equations/igamma10.svg | 2 - boost/libs/math/doc/equations/igamma11.mml | 141 - boost/libs/math/doc/equations/igamma11.png | Bin 11664 -> 0 bytes boost/libs/math/doc/equations/igamma11.svg | 2 - boost/libs/math/doc/equations/igamma11b.mml | 104 - boost/libs/math/doc/equations/igamma11b.png | Bin 9983 -> 0 bytes boost/libs/math/doc/equations/igamma11b.svg | 2 - boost/libs/math/doc/equations/igamma12.mml | 81 - boost/libs/math/doc/equations/igamma12.png | Bin 6156 -> 0 bytes boost/libs/math/doc/equations/igamma12.svg | 2 - boost/libs/math/doc/equations/igamma13.mml | 104 - boost/libs/math/doc/equations/igamma13.png | Bin 9723 -> 0 bytes boost/libs/math/doc/equations/igamma13.svg | 2 - boost/libs/math/doc/equations/igamma16.mml | 61 - boost/libs/math/doc/equations/igamma16.png | Bin 5353 -> 0 bytes boost/libs/math/doc/equations/igamma16.svg | 2 - boost/libs/math/doc/equations/igamma17.mml | 61 - boost/libs/math/doc/equations/igamma17.png | Bin 5400 -> 0 bytes boost/libs/math/doc/equations/igamma17.svg | 2 - boost/libs/math/doc/equations/igamma18.mml | 57 - boost/libs/math/doc/equations/igamma18.png | Bin 4594 -> 0 bytes boost/libs/math/doc/equations/igamma18.svg | 2 - boost/libs/math/doc/equations/igamma19.mml | 75 - boost/libs/math/doc/equations/igamma19.png | Bin 7544 -> 0 bytes boost/libs/math/doc/equations/igamma19.svg | 2 - boost/libs/math/doc/equations/igamma1f.mml | 57 - boost/libs/math/doc/equations/igamma1f.png | Bin 4202 -> 0 bytes boost/libs/math/doc/equations/igamma1f.svg | 2 - boost/libs/math/doc/equations/igamma2.mml | 51 - boost/libs/math/doc/equations/igamma2.png | Bin 5009 -> 0 bytes boost/libs/math/doc/equations/igamma2.svg | 2 - boost/libs/math/doc/equations/igamma2f.mml | 98 - boost/libs/math/doc/equations/igamma2f.png | Bin 8696 -> 0 bytes boost/libs/math/doc/equations/igamma2f.svg | 2 - boost/libs/math/doc/equations/igamma3.mml | 85 - boost/libs/math/doc/equations/igamma3.png | Bin 7444 -> 0 bytes boost/libs/math/doc/equations/igamma3.svg | 2 - boost/libs/math/doc/equations/igamma4.mml | 85 - boost/libs/math/doc/equations/igamma4.png | Bin 7370 -> 0 bytes boost/libs/math/doc/equations/igamma4.svg | 2 - boost/libs/math/doc/equations/igamma5.mml | 26 - boost/libs/math/doc/equations/igamma5.png | Bin 2241 -> 0 bytes boost/libs/math/doc/equations/igamma5.svg | 2 - boost/libs/math/doc/equations/igamma6.mml | 31 - boost/libs/math/doc/equations/igamma6.png | Bin 2483 -> 0 bytes boost/libs/math/doc/equations/igamma6.svg | 2 - boost/libs/math/doc/equations/igamma7.mml | 70 - boost/libs/math/doc/equations/igamma7.png | Bin 5344 -> 0 bytes boost/libs/math/doc/equations/igamma7.svg | 2 - boost/libs/math/doc/equations/igamma8.mml | 108 - boost/libs/math/doc/equations/igamma8.png | Bin 7622 -> 0 bytes boost/libs/math/doc/equations/igamma8.svg | 2 - boost/libs/math/doc/equations/igamma9.mml | 111 - boost/libs/math/doc/equations/igamma9.png | Bin 7085 -> 0 bytes boost/libs/math/doc/equations/igamma9.svg | 2 - boost/libs/math/doc/equations/jacobi1.mml | 51 - boost/libs/math/doc/equations/jacobi1.png | Bin 3736 -> 0 bytes boost/libs/math/doc/equations/jacobi1.svg | 2 - boost/libs/math/doc/equations/jacobi2.mml | 92 - boost/libs/math/doc/equations/jacobi2.png | Bin 6592 -> 0 bytes boost/libs/math/doc/equations/jacobi2.svg | 2 - boost/libs/math/doc/equations/jacobi3.mml | 135 - boost/libs/math/doc/equations/jacobi3.png | Bin 6492 -> 0 bytes boost/libs/math/doc/equations/jacobi3.svg | 2 - boost/libs/math/doc/equations/jacobi4.mml | 170 - boost/libs/math/doc/equations/jacobi4.png | Bin 13466 -> 0 bytes boost/libs/math/doc/equations/jacobi4.svg | 2 - boost/libs/math/doc/equations/jacobi_zeta.mml | 142 - boost/libs/math/doc/equations/jacobi_zeta.png | Bin 9110 -> 0 bytes boost/libs/math/doc/equations/jacobi_zeta.svg | 2 - boost/libs/math/doc/equations/laguerre_0.mml | 70 - boost/libs/math/doc/equations/laguerre_0.png | Bin 4958 -> 0 bytes boost/libs/math/doc/equations/laguerre_0.svg | 2 - boost/libs/math/doc/equations/laguerre_1.mml | 70 - boost/libs/math/doc/equations/laguerre_1.png | Bin 5445 -> 0 bytes boost/libs/math/doc/equations/laguerre_1.svg | 2 - boost/libs/math/doc/equations/laguerre_2.mml | 66 - boost/libs/math/doc/equations/laguerre_2.png | Bin 4697 -> 0 bytes boost/libs/math/doc/equations/laguerre_2.svg | 2 - boost/libs/math/doc/equations/laguerre_3.mml | 78 - boost/libs/math/doc/equations/laguerre_3.png | Bin 5447 -> 0 bytes boost/libs/math/doc/equations/laguerre_3.svg | 2 - boost/libs/math/doc/equations/lanczos0.mml | 62 - boost/libs/math/doc/equations/lanczos0.png | Bin 4953 -> 0 bytes boost/libs/math/doc/equations/lanczos0.svg | 2 - boost/libs/math/doc/equations/lanczos0a.mml | 75 - boost/libs/math/doc/equations/lanczos0a.png | Bin 5264 -> 0 bytes boost/libs/math/doc/equations/lanczos0a.svg | 2 - boost/libs/math/doc/equations/lanczos0b.mml | 105 - boost/libs/math/doc/equations/lanczos0b.png | Bin 8883 -> 0 bytes boost/libs/math/doc/equations/lanczos0b.svg | 2 - boost/libs/math/doc/equations/lanczos1.mml | 50 - boost/libs/math/doc/equations/lanczos1.png | Bin 4125 -> 0 bytes boost/libs/math/doc/equations/lanczos1.svg | 2 - boost/libs/math/doc/equations/lanczos2.mml | 46 - boost/libs/math/doc/equations/lanczos2.png | Bin 3702 -> 0 bytes boost/libs/math/doc/equations/lanczos2.svg | 2 - boost/libs/math/doc/equations/lanczos3.mml | 110 - boost/libs/math/doc/equations/lanczos3.png | Bin 7494 -> 0 bytes boost/libs/math/doc/equations/lanczos3.svg | 2 - boost/libs/math/doc/equations/lanczos4.mml | 107 - boost/libs/math/doc/equations/lanczos4.png | Bin 7736 -> 0 bytes boost/libs/math/doc/equations/lanczos4.svg | 2 - boost/libs/math/doc/equations/lanczos5.mml | 134 - boost/libs/math/doc/equations/lanczos5.png | Bin 9917 -> 0 bytes boost/libs/math/doc/equations/lanczos5.svg | 2 - boost/libs/math/doc/equations/lanczos6.mml | 60 - boost/libs/math/doc/equations/lanczos6.png | Bin 4329 -> 0 bytes boost/libs/math/doc/equations/lanczos6.svg | 2 - boost/libs/math/doc/equations/lanczos7.mml | 47 - boost/libs/math/doc/equations/lanczos7.png | Bin 3993 -> 0 bytes boost/libs/math/doc/equations/lanczos7.svg | 2 - boost/libs/math/doc/equations/laplace_pdf.mml | 52 - boost/libs/math/doc/equations/laplace_pdf.png | Bin 2589 -> 0 bytes boost/libs/math/doc/equations/laplace_pdf.svg | 2 - boost/libs/math/doc/equations/legendre_0.mml | 75 - boost/libs/math/doc/equations/legendre_0.png | Bin 6155 -> 0 bytes boost/libs/math/doc/equations/legendre_0.svg | 2 - boost/libs/math/doc/equations/legendre_1.mml | 84 - boost/libs/math/doc/equations/legendre_1.png | Bin 6935 -> 0 bytes boost/libs/math/doc/equations/legendre_1.svg | 2 - boost/libs/math/doc/equations/legendre_1b.mml | 85 - boost/libs/math/doc/equations/legendre_1b.png | Bin 6371 -> 0 bytes boost/libs/math/doc/equations/legendre_1b.svg | 2 - boost/libs/math/doc/equations/legendre_2.mml | 118 - boost/libs/math/doc/equations/legendre_2.png | Bin 8800 -> 0 bytes boost/libs/math/doc/equations/legendre_2.svg | 2 - boost/libs/math/doc/equations/legendre_3.mml | 117 - boost/libs/math/doc/equations/legendre_3.png | Bin 5787 -> 0 bytes boost/libs/math/doc/equations/legendre_3.svg | 2 - boost/libs/math/doc/equations/legendre_4.mml | 65 - boost/libs/math/doc/equations/legendre_4.png | Bin 4399 -> 0 bytes boost/libs/math/doc/equations/legendre_4.svg | 2 - boost/libs/math/doc/equations/legendre_5.mml | 80 - boost/libs/math/doc/equations/legendre_5.png | Bin 5954 -> 0 bytes boost/libs/math/doc/equations/legendre_5.svg | 2 - boost/libs/math/doc/equations/lgamm1.mml | 21 - boost/libs/math/doc/equations/lgamm1.png | Bin 2386 -> 0 bytes boost/libs/math/doc/equations/lgamm1.svg | 2 - boost/libs/math/doc/equations/lgamm2.mml | 139 - boost/libs/math/doc/equations/lgamm2.png | Bin 11223 -> 0 bytes boost/libs/math/doc/equations/lgamm2.svg | 2 - boost/libs/math/doc/equations/lgamm3.mml | 52 - boost/libs/math/doc/equations/lgamm3.png | Bin 4373 -> 0 bytes boost/libs/math/doc/equations/lgamm3.svg | 2 - boost/libs/math/doc/equations/lgamm4.mml | 60 - boost/libs/math/doc/equations/lgamm4.png | Bin 5640 -> 0 bytes boost/libs/math/doc/equations/lgamm4.svg | 2 - boost/libs/math/doc/equations/lgamm5.mml | 171 - boost/libs/math/doc/equations/lgamm5.png | Bin 12374 -> 0 bytes boost/libs/math/doc/equations/lgamm5.svg | 2 - boost/libs/math/doc/equations/lgamm6.mml | 180 - boost/libs/math/doc/equations/lgamm6.png | Bin 12729 -> 0 bytes boost/libs/math/doc/equations/lgamm6.svg | 2 - boost/libs/math/doc/equations/log1pseries.mml | 47 - boost/libs/math/doc/equations/log1pseries.png | Bin 3795 -> 0 bytes boost/libs/math/doc/equations/log1pseries.svg | 2 - boost/libs/math/doc/equations/lognormal_ref.mml | 55 - boost/libs/math/doc/equations/lognormal_ref.png | Bin 3244 -> 0 bytes boost/libs/math/doc/equations/lognormal_ref.svg | 2 - boost/libs/math/doc/equations/mbessel1.mml | 1 - boost/libs/math/doc/equations/mbessel1.png | Bin 3843 -> 0 bytes boost/libs/math/doc/equations/mbessel1.svg | 2 - boost/libs/math/doc/equations/mbessel10.mml | 1 - boost/libs/math/doc/equations/mbessel10.png | Bin 1688 -> 0 bytes boost/libs/math/doc/equations/mbessel10.svg | 2 - boost/libs/math/doc/equations/mbessel11.mml | 1 - boost/libs/math/doc/equations/mbessel11.png | Bin 3865 -> 0 bytes boost/libs/math/doc/equations/mbessel11.svg | 2 - boost/libs/math/doc/equations/mbessel12.mml | 1 - boost/libs/math/doc/equations/mbessel12.png | Bin 6634 -> 0 bytes boost/libs/math/doc/equations/mbessel12.svg | 2 - boost/libs/math/doc/equations/mbessel13.mml | 162 - boost/libs/math/doc/equations/mbessel13.png | Bin 6159 -> 0 bytes boost/libs/math/doc/equations/mbessel13.svg | 2 - boost/libs/math/doc/equations/mbessel14.mml | 1 - boost/libs/math/doc/equations/mbessel14.png | Bin 2366 -> 0 bytes boost/libs/math/doc/equations/mbessel14.svg | 2 - boost/libs/math/doc/equations/mbessel15.mml | 116 - boost/libs/math/doc/equations/mbessel15.png | Bin 4327 -> 0 bytes boost/libs/math/doc/equations/mbessel15.svg | 2 - boost/libs/math/doc/equations/mbessel16.mml | 1 - boost/libs/math/doc/equations/mbessel16.png | Bin 2195 -> 0 bytes boost/libs/math/doc/equations/mbessel16.svg | 2 - boost/libs/math/doc/equations/mbessel17.mml | 69 - boost/libs/math/doc/equations/mbessel17.png | Bin 4897 -> 0 bytes boost/libs/math/doc/equations/mbessel17.svg | 2 - boost/libs/math/doc/equations/mbessel2.mml | 1 - boost/libs/math/doc/equations/mbessel2.png | Bin 5449 -> 0 bytes boost/libs/math/doc/equations/mbessel2.svg | 2 - boost/libs/math/doc/equations/mbessel3.mml | 1 - boost/libs/math/doc/equations/mbessel3.png | Bin 3657 -> 0 bytes boost/libs/math/doc/equations/mbessel3.svg | 2 - boost/libs/math/doc/equations/mbessel4.mml | 1 - boost/libs/math/doc/equations/mbessel4.png | Bin 2950 -> 0 bytes boost/libs/math/doc/equations/mbessel4.svg | 2 - boost/libs/math/doc/equations/mbessel5.mml | 1 - boost/libs/math/doc/equations/mbessel5.png | Bin 3290 -> 0 bytes boost/libs/math/doc/equations/mbessel5.svg | 2 - boost/libs/math/doc/equations/mbessel6.mml | 1 - boost/libs/math/doc/equations/mbessel6.png | Bin 2567 -> 0 bytes boost/libs/math/doc/equations/mbessel6.svg | 2 - boost/libs/math/doc/equations/mbessel7.mml | 1 - boost/libs/math/doc/equations/mbessel7.png | Bin 2860 -> 0 bytes boost/libs/math/doc/equations/mbessel7.svg | 2 - boost/libs/math/doc/equations/mbessel8.mml | 1 - boost/libs/math/doc/equations/mbessel8.png | Bin 6712 -> 0 bytes boost/libs/math/doc/equations/mbessel8.svg | 2 - boost/libs/math/doc/equations/mbessel9.mml | 1 - boost/libs/math/doc/equations/mbessel9.png | Bin 3514 -> 0 bytes boost/libs/math/doc/equations/mbessel9.svg | 2 - boost/libs/math/doc/equations/nc_beta_ref1.mml | 56 - boost/libs/math/doc/equations/nc_beta_ref1.png | Bin 5188 -> 0 bytes boost/libs/math/doc/equations/nc_beta_ref1.svg | 2 - boost/libs/math/doc/equations/nc_beta_ref2.mml | 53 - boost/libs/math/doc/equations/nc_beta_ref2.png | Bin 5200 -> 0 bytes boost/libs/math/doc/equations/nc_beta_ref2.svg | 2 - boost/libs/math/doc/equations/nc_beta_ref3.mml | 53 - boost/libs/math/doc/equations/nc_beta_ref3.png | Bin 5372 -> 0 bytes boost/libs/math/doc/equations/nc_beta_ref3.svg | 2 - boost/libs/math/doc/equations/nc_beta_ref4.mml | 130 - boost/libs/math/doc/equations/nc_beta_ref4.png | Bin 9956 -> 0 bytes boost/libs/math/doc/equations/nc_beta_ref4.svg | 2 - boost/libs/math/doc/equations/nc_chi_squ_ref1.mml | 35 - boost/libs/math/doc/equations/nc_chi_squ_ref1.png | Bin 2314 -> 0 bytes boost/libs/math/doc/equations/nc_chi_squ_ref1.svg | 2 - boost/libs/math/doc/equations/nc_chi_squ_ref2.mml | 39 - boost/libs/math/doc/equations/nc_chi_squ_ref2.png | Bin 2662 -> 0 bytes boost/libs/math/doc/equations/nc_chi_squ_ref2.svg | 2 - boost/libs/math/doc/equations/nc_chi_squ_ref3.mml | 146 - boost/libs/math/doc/equations/nc_chi_squ_ref3.png | Bin 10753 -> 0 bytes boost/libs/math/doc/equations/nc_chi_squ_ref3.svg | 2 - boost/libs/math/doc/equations/nc_chi_squ_ref4.mml | 182 - boost/libs/math/doc/equations/nc_chi_squ_ref4.png | Bin 9519 -> 0 bytes boost/libs/math/doc/equations/nc_chi_squ_ref4.svg | 2 - boost/libs/math/doc/equations/nc_chi_squ_ref5.mml | 75 - boost/libs/math/doc/equations/nc_chi_squ_ref5.png | Bin 5881 -> 0 bytes boost/libs/math/doc/equations/nc_chi_squ_ref5.svg | 2 - boost/libs/math/doc/equations/nc_chi_squ_ref6.mml | 77 - boost/libs/math/doc/equations/nc_chi_squ_ref6.png | Bin 6165 -> 0 bytes boost/libs/math/doc/equations/nc_chi_squ_ref6.svg | 2 - boost/libs/math/doc/equations/nc_chi_squ_ref7.mml | 86 - boost/libs/math/doc/equations/nc_chi_squ_ref7.png | Bin 6737 -> 0 bytes boost/libs/math/doc/equations/nc_chi_squ_ref7.svg | 2 - boost/libs/math/doc/equations/nc_f_ref1.mml | 314 - boost/libs/math/doc/equations/nc_f_ref1.png | Bin 16235 -> 0 bytes boost/libs/math/doc/equations/nc_f_ref1.svg | 2 - boost/libs/math/doc/equations/nc_f_ref2.mml | 214 - boost/libs/math/doc/equations/nc_f_ref2.png | Bin 12705 -> 0 bytes boost/libs/math/doc/equations/nc_f_ref2.svg | 2 - boost/libs/math/doc/equations/nc_t_ref1.mml | 259 - boost/libs/math/doc/equations/nc_t_ref1.png | Bin 17474 -> 0 bytes boost/libs/math/doc/equations/nc_t_ref1.svg | 2 - boost/libs/math/doc/equations/nc_t_ref2.mml | 231 - boost/libs/math/doc/equations/nc_t_ref2.png | Bin 13473 -> 0 bytes boost/libs/math/doc/equations/nc_t_ref2.svg | 2 - boost/libs/math/doc/equations/nc_t_ref3.mml | 70 - boost/libs/math/doc/equations/nc_t_ref3.png | Bin 5733 -> 0 bytes boost/libs/math/doc/equations/nc_t_ref3.svg | 2 - boost/libs/math/doc/equations/nc_t_ref4.mml | 125 - boost/libs/math/doc/equations/nc_t_ref4.png | Bin 9341 -> 0 bytes boost/libs/math/doc/equations/nc_t_ref4.svg | 2 - boost/libs/math/doc/equations/nc_t_ref5.mml | 128 - boost/libs/math/doc/equations/nc_t_ref5.png | Bin 8856 -> 0 bytes boost/libs/math/doc/equations/nc_t_ref5.svg | 2 - boost/libs/math/doc/equations/neg_binomial_ref.mml | 54 - boost/libs/math/doc/equations/neg_binomial_ref.png | Bin 4327 -> 0 bytes boost/libs/math/doc/equations/neg_binomial_ref.svg | 2 - boost/libs/math/doc/equations/normal01_cdf.mml | 62 - boost/libs/math/doc/equations/normal01_cdf.png | Bin 4959 -> 0 bytes boost/libs/math/doc/equations/normal01_cdf.svg | 2 - boost/libs/math/doc/equations/normal01_pdf.mml | 45 - boost/libs/math/doc/equations/normal01_pdf.png | Bin 2641 -> 0 bytes boost/libs/math/doc/equations/normal01_pdf.svg | 2 - boost/libs/math/doc/equations/normal_cdf.mml | 50 - boost/libs/math/doc/equations/normal_cdf.png | Bin 4085 -> 0 bytes boost/libs/math/doc/equations/normal_cdf.svg | 2 - boost/libs/math/doc/equations/normal_ref1.mml | 57 - boost/libs/math/doc/equations/normal_ref1.png | Bin 3488 -> 0 bytes boost/libs/math/doc/equations/normal_ref1.svg | 2 - boost/libs/math/doc/equations/owens_t.mml | 105 - boost/libs/math/doc/equations/owens_t.png | Bin 8580 -> 0 bytes boost/libs/math/doc/equations/owens_t.svg | 2 - boost/libs/math/doc/equations/poisson_ref1.mml | 35 - boost/libs/math/doc/equations/poisson_ref1.png | Bin 2191 -> 0 bytes boost/libs/math/doc/equations/poisson_ref1.svg | 2 - boost/libs/math/doc/equations/polygamma1.mml | 94 - boost/libs/math/doc/equations/polygamma1.png | Bin 6436 -> 0 bytes boost/libs/math/doc/equations/polygamma1.svg | 2 - boost/libs/math/doc/equations/polygamma2.mml | 90 - boost/libs/math/doc/equations/polygamma2.png | Bin 5262 -> 0 bytes boost/libs/math/doc/equations/polygamma2.svg | 2 - boost/libs/math/doc/equations/polygamma3.mml | 95 - boost/libs/math/doc/equations/polygamma3.png | Bin 6970 -> 0 bytes boost/libs/math/doc/equations/polygamma3.svg | 2 - boost/libs/math/doc/equations/polygamma4.mml | 113 - boost/libs/math/doc/equations/polygamma4.png | Bin 7298 -> 0 bytes boost/libs/math/doc/equations/polygamma4.svg | 2 - boost/libs/math/doc/equations/polygamma5.mml | 134 - boost/libs/math/doc/equations/polygamma5.png | Bin 9057 -> 0 bytes boost/libs/math/doc/equations/polygamma5.svg | 2 - boost/libs/math/doc/equations/polygamma6.mml | 88 - boost/libs/math/doc/equations/polygamma6.png | Bin 5562 -> 0 bytes boost/libs/math/doc/equations/polygamma6.svg | 2 - boost/libs/math/doc/equations/polygamma7.mml | 107 - boost/libs/math/doc/equations/polygamma7.png | Bin 7776 -> 0 bytes boost/libs/math/doc/equations/polygamma7.svg | 2 - boost/libs/math/doc/equations/polygamma8.mml | 52 - boost/libs/math/doc/equations/polygamma8.png | Bin 2767 -> 0 bytes boost/libs/math/doc/equations/polygamma8.svg | 2 - boost/libs/math/doc/equations/polygamma9.mml | 69 - boost/libs/math/doc/equations/polygamma9.png | Bin 4071 -> 0 bytes boost/libs/math/doc/equations/polygamma9.svg | 2 - boost/libs/math/doc/equations/roots1.mml | 40 - boost/libs/math/doc/equations/roots1.png | Bin 2386 -> 0 bytes boost/libs/math/doc/equations/roots1.svg | 2 - boost/libs/math/doc/equations/roots2.mml | 70 - boost/libs/math/doc/equations/roots2.png | Bin 5149 -> 0 bytes boost/libs/math/doc/equations/roots2.svg | 2 - boost/libs/math/doc/equations/roots3.mml | 81 - boost/libs/math/doc/equations/roots3.png | Bin 5317 -> 0 bytes boost/libs/math/doc/equations/roots3.svg | 2 - boost/libs/math/doc/equations/roots4.mml | 67 - boost/libs/math/doc/equations/roots4.png | Bin 3864 -> 0 bytes boost/libs/math/doc/equations/roots4.svg | 2 - boost/libs/math/doc/equations/sbessel1.mml | 1 - boost/libs/math/doc/equations/sbessel1.png | Bin 4402 -> 0 bytes boost/libs/math/doc/equations/sbessel1.svg | 2 - boost/libs/math/doc/equations/sbessel2.mml | 144 - boost/libs/math/doc/equations/sbessel2.png | Bin 5026 -> 0 bytes boost/libs/math/doc/equations/sbessel2.svg | 2 - boost/libs/math/doc/equations/sbessel3.mml | 1 - boost/libs/math/doc/equations/sbessel3.png | Bin 4401 -> 0 bytes boost/libs/math/doc/equations/sbessel3.svg | 2 - boost/libs/math/doc/equations/sbessel4.mml | 144 - boost/libs/math/doc/equations/sbessel4.png | Bin 5085 -> 0 bytes boost/libs/math/doc/equations/sbessel4.svg | 2 - boost/libs/math/doc/equations/sbessel5.mml | 1 - boost/libs/math/doc/equations/sbessel5.png | Bin 6227 -> 0 bytes boost/libs/math/doc/equations/sbessel5.svg | 2 - boost/libs/math/doc/equations/skew_normal_cdf.mml | 56 - boost/libs/math/doc/equations/skew_normal_cdf.png | Bin 4342 -> 0 bytes boost/libs/math/doc/equations/skew_normal_cdf.svg | 2 - .../math/doc/equations/skew_normal_kurt_ex.mml | 62 - .../math/doc/equations/skew_normal_kurt_ex.png | Bin 4091 -> 0 bytes .../math/doc/equations/skew_normal_kurt_ex.svg | 2 - boost/libs/math/doc/equations/skew_normal_mean.mml | 53 - boost/libs/math/doc/equations/skew_normal_mean.png | Bin 4624 -> 0 bytes boost/libs/math/doc/equations/skew_normal_mean.svg | 2 - boost/libs/math/doc/equations/skew_normal_pdf.mml | 89 - boost/libs/math/doc/equations/skew_normal_pdf.png | Bin 6183 -> 0 bytes boost/libs/math/doc/equations/skew_normal_pdf.svg | 2 - boost/libs/math/doc/equations/skew_normal_pdf0.mml | 36 - boost/libs/math/doc/equations/skew_normal_pdf0.png | Bin 2224 -> 0 bytes boost/libs/math/doc/equations/skew_normal_pdf0.svg | 2 - .../math/doc/equations/skew_normal_skewness.mml | 71 - .../math/doc/equations/skew_normal_skewness.png | Bin 4578 -> 0 bytes .../math/doc/equations/skew_normal_skewness.svg | 2 - .../math/doc/equations/skew_normal_variance.mml | 33 - .../math/doc/equations/skew_normal_variance.png | Bin 1881 -> 0 bytes .../math/doc/equations/skew_normal_variance.svg | 2 - .../doc/equations/special_functions_blurb1.mml | 35 - .../doc/equations/special_functions_blurb1.png | Bin 2902 -> 0 bytes .../doc/equations/special_functions_blurb1.svg | 2 - .../doc/equations/special_functions_blurb15.mml | 36 - .../doc/equations/special_functions_blurb15.png | Bin 3071 -> 0 bytes .../doc/equations/special_functions_blurb15.svg | 2 - .../doc/equations/special_functions_blurb17.mml | 31 - .../doc/equations/special_functions_blurb17.png | Bin 3052 -> 0 bytes .../doc/equations/special_functions_blurb17.svg | 2 - .../doc/equations/special_functions_blurb18.mml | 31 - .../doc/equations/special_functions_blurb18.png | Bin 3097 -> 0 bytes .../doc/equations/special_functions_blurb18.svg | 2 - .../doc/equations/special_functions_blurb20.mml | 42 - .../doc/equations/special_functions_blurb20.png | Bin 2891 -> 0 bytes .../doc/equations/special_functions_blurb20.svg | 2 - .../doc/equations/special_functions_blurb22.mml | 43 - .../doc/equations/special_functions_blurb22.png | Bin 3169 -> 0 bytes .../doc/equations/special_functions_blurb22.svg | 2 - .../doc/equations/special_functions_blurb5.mml | 35 - .../doc/equations/special_functions_blurb5.png | Bin 3558 -> 0 bytes .../doc/equations/special_functions_blurb5.svg | 2 - .../doc/equations/special_functions_blurb6.mml | 33 - .../doc/equations/special_functions_blurb6.png | Bin 3425 -> 0 bytes .../doc/equations/special_functions_blurb6.svg | 2 - .../doc/equations/special_functions_blurb7.mml | 32 - .../doc/equations/special_functions_blurb7.png | Bin 3364 -> 0 bytes .../doc/equations/special_functions_blurb7.svg | 2 - boost/libs/math/doc/equations/spherical_0.mml | 81 - boost/libs/math/doc/equations/spherical_0.png | Bin 6547 -> 0 bytes boost/libs/math/doc/equations/spherical_0.svg | 2 - boost/libs/math/doc/equations/spherical_1.mml | 85 - boost/libs/math/doc/equations/spherical_1.png | Bin 7814 -> 0 bytes boost/libs/math/doc/equations/spherical_1.svg | 2 - boost/libs/math/doc/equations/spherical_2.mml | 85 - boost/libs/math/doc/equations/spherical_2.png | Bin 7719 -> 0 bytes boost/libs/math/doc/equations/spherical_2.svg | 2 - boost/libs/math/doc/equations/spherical_3.mml | 105 - boost/libs/math/doc/equations/spherical_3.png | Bin 9239 -> 0 bytes boost/libs/math/doc/equations/spherical_3.svg | 2 - boost/libs/math/doc/equations/students_t_dist.mml | 24 - boost/libs/math/doc/equations/students_t_dist.png | Bin 1498 -> 0 bytes boost/libs/math/doc/equations/students_t_dist.svg | 2 - boost/libs/math/doc/equations/students_t_ref1.mml | 75 - boost/libs/math/doc/equations/students_t_ref1.png | Bin 4668 -> 0 bytes boost/libs/math/doc/equations/students_t_ref1.svg | 2 - .../libs/math/doc/equations/tangent_number_def.mml | 51 - .../libs/math/doc/equations/tangent_number_def.png | Bin 2310 -> 0 bytes .../libs/math/doc/equations/tangent_number_def.svg | 2 - .../math/doc/equations/tangent_number_def2.mml | 65 - .../math/doc/equations/tangent_number_def2.png | Bin 2976 -> 0 bytes .../math/doc/equations/tangent_number_def2.svg | 2 - boost/libs/math/doc/equations/tangent_numbers.mml | 57 - boost/libs/math/doc/equations/tangent_numbers.png | Bin 3040 -> 0 bytes boost/libs/math/doc/equations/tangent_numbers.svg | 2 - boost/libs/math/doc/equations/trigamma1.mml | 69 - boost/libs/math/doc/equations/trigamma1.png | Bin 4975 -> 0 bytes boost/libs/math/doc/equations/trigamma1.svg | 2 - boost/libs/math/doc/equations/trigamma2.mml | 65 - boost/libs/math/doc/equations/trigamma2.png | Bin 3831 -> 0 bytes boost/libs/math/doc/equations/trigamma2.svg | 2 - boost/libs/math/doc/equations/trigamma3.mml | 54 - boost/libs/math/doc/equations/trigamma3.png | Bin 2779 -> 0 bytes boost/libs/math/doc/equations/trigamma3.svg | 2 - boost/libs/math/doc/equations/trigamma4.mml | 49 - boost/libs/math/doc/equations/trigamma4.png | Bin 2782 -> 0 bytes boost/libs/math/doc/equations/trigamma4.svg | 2 - boost/libs/math/doc/equations/trigamma5.mml | 49 - boost/libs/math/doc/equations/trigamma5.png | Bin 2749 -> 0 bytes boost/libs/math/doc/equations/trigamma5.svg | 2 - boost/libs/math/doc/equations/zeta1.mml | 29 - boost/libs/math/doc/equations/zeta1.png | Bin 2300 -> 0 bytes boost/libs/math/doc/equations/zeta1.svg | 2 - boost/libs/math/doc/equations/zeta2.mml | 95 - boost/libs/math/doc/equations/zeta2.png | Bin 6287 -> 0 bytes boost/libs/math/doc/equations/zeta2.svg | 2 - boost/libs/math/doc/equations/zeta3.mml | 54 - boost/libs/math/doc/equations/zeta3.png | Bin 4582 -> 0 bytes boost/libs/math/doc/equations/zeta3.svg | 2 - boost/libs/math/doc/equations/zeta4.mml | 32 - boost/libs/math/doc/equations/zeta4.png | Bin 2439 -> 0 bytes boost/libs/math/doc/equations/zeta4.svg | 2 - boost/libs/math/doc/equations/zeta5.mml | 30 - boost/libs/math/doc/equations/zeta5.png | Bin 2478 -> 0 bytes boost/libs/math/doc/equations/zeta5.svg | 2 - boost/libs/math/doc/equations/zeta6.mml | 185 - boost/libs/math/doc/equations/zeta6.png | Bin 13637 -> 0 bytes boost/libs/math/doc/equations/zeta6.svg | 2 - boost/libs/math/doc/equations/zeta7.mml | 53 - boost/libs/math/doc/equations/zeta7.png | Bin 3109 -> 0 bytes boost/libs/math/doc/equations/zeta7.svg | 2 - boost/libs/math/doc/equations/zeta8.mml | 31 - boost/libs/math/doc/equations/zeta8.png | Bin 2048 -> 0 bytes boost/libs/math/doc/equations/zeta8.svg | 2 - boost/libs/math/doc/equations/zeta9.mml | 78 - boost/libs/math/doc/equations/zeta9.png | Bin 4670 -> 0 bytes boost/libs/math/doc/equations/zeta9.svg | 2 - .../math/doc/fp_utilities/float_comparison.qbk | 122 - boost/libs/math/doc/fp_utilities/float_next.qbk | 272 - boost/libs/math/doc/fp_utilities/fp_facets.qbk | 568 - boost/libs/math/doc/fp_utilities/fpclassify.qbk | 124 - boost/libs/math/doc/fp_utilities/rounding_func.qbk | 129 - boost/libs/math/doc/fp_utilities/sign.qbk | 137 - boost/libs/math/doc/gcd/math-gcd.qbk | 258 - boost/libs/math/doc/graphs/Jamfile.v2 | 53 - boost/libs/math/doc/graphs/acosh.png | Bin 20242 -> 0 bytes boost/libs/math/doc/graphs/acosh.svg | 64 - boost/libs/math/doc/graphs/airy_ai.png | Bin 33690 -> 0 bytes boost/libs/math/doc/graphs/airy_ai.svg | 65 - boost/libs/math/doc/graphs/airy_aip.png | Bin 33021 -> 0 bytes boost/libs/math/doc/graphs/airy_aip.svg | 60 - boost/libs/math/doc/graphs/airy_bi.png | Bin 18018 -> 0 bytes boost/libs/math/doc/graphs/airy_bi.svg | 58 - boost/libs/math/doc/graphs/airy_bip.png | Bin 22406 -> 0 bytes boost/libs/math/doc/graphs/airy_bip.svg | 60 - boost/libs/math/doc/graphs/airy_zeros.png | Bin 39348 -> 0 bytes boost/libs/math/doc/graphs/airy_zeros.svg | 75 - boost/libs/math/doc/graphs/arcsine01_cdf.png | Bin 45312 -> 0 bytes boost/libs/math/doc/graphs/arcsine01_cdf.svg | 70 - boost/libs/math/doc/graphs/arcsine01_pdf.png | Bin 40844 -> 0 bytes boost/libs/math/doc/graphs/arcsine01_pdf.svg | 66 - boost/libs/math/doc/graphs/arcsine_cdf.png | Bin 71714 -> 0 bytes boost/libs/math/doc/graphs/arcsine_cdf.svg | 77 - boost/libs/math/doc/graphs/arcsine_pdf.png | Bin 63439 -> 0 bytes boost/libs/math/doc/graphs/arcsine_pdf.svg | 73 - boost/libs/math/doc/graphs/asinh.png | Bin 17850 -> 0 bytes boost/libs/math/doc/graphs/asinh.svg | 61 - boost/libs/math/doc/graphs/atanh.png | Bin 18493 -> 0 bytes boost/libs/math/doc/graphs/atanh.svg | 65 - boost/libs/math/doc/graphs/bernoulli_cdf.png | Bin 25957 -> 0 bytes boost/libs/math/doc/graphs/bernoulli_cdf.svg | 68 - boost/libs/math/doc/graphs/bernoulli_pdf.png | Bin 24206 -> 0 bytes boost/libs/math/doc/graphs/bernoulli_pdf.svg | 65 - boost/libs/math/doc/graphs/bessel_j_zeros.png | Bin 34250 -> 0 bytes boost/libs/math/doc/graphs/bessel_j_zeros.svg | 75 - boost/libs/math/doc/graphs/beta.png | Bin 30614 -> 0 bytes boost/libs/math/doc/graphs/beta.svg | 73 - boost/libs/math/doc/graphs/beta_pdf.png | Bin 65277 -> 0 bytes boost/libs/math/doc/graphs/beta_pdf.svg | 79 - boost/libs/math/doc/graphs/binomial_pdf.png | Bin 5022 -> 0 bytes boost/libs/math/doc/graphs/binomial_pdf_1.png | Bin 28953 -> 0 bytes boost/libs/math/doc/graphs/binomial_pdf_1.svg | 67 - boost/libs/math/doc/graphs/binomial_pdf_2.png | Bin 27832 -> 0 bytes boost/libs/math/doc/graphs/binomial_pdf_2.svg | 66 - boost/libs/math/doc/graphs/binomial_pdf_3.png | Bin 5956 -> 0 bytes boost/libs/math/doc/graphs/binomial_quantile_1.png | Bin 5170 -> 0 bytes .../libs/math/doc/graphs/brent_test_function_1.png | Bin 20328 -> 0 bytes .../libs/math/doc/graphs/brent_test_function_1.svg | 62 - boost/libs/math/doc/graphs/cauchy_pdf1.png | Bin 48210 -> 0 bytes boost/libs/math/doc/graphs/cauchy_pdf1.svg | 61 - boost/libs/math/doc/graphs/cauchy_pdf2.png | Bin 44126 -> 0 bytes boost/libs/math/doc/graphs/cauchy_pdf2.svg | 65 - boost/libs/math/doc/graphs/cbrt.png | Bin 16371 -> 0 bytes boost/libs/math/doc/graphs/cbrt.svg | 60 - boost/libs/math/doc/graphs/cdf.png | Bin 3914 -> 0 bytes boost/libs/math/doc/graphs/chi_squared_pdf.png | Bin 38704 -> 0 bytes boost/libs/math/doc/graphs/chi_squared_pdf.svg | 65 - boost/libs/math/doc/graphs/cyl_bessel_i.png | Bin 34389 -> 0 bytes boost/libs/math/doc/graphs/cyl_bessel_i.svg | 76 - boost/libs/math/doc/graphs/cyl_bessel_j.png | Bin 68898 -> 0 bytes boost/libs/math/doc/graphs/cyl_bessel_j.svg | 76 - boost/libs/math/doc/graphs/cyl_bessel_k.png | Bin 34283 -> 0 bytes boost/libs/math/doc/graphs/cyl_bessel_k.svg | 87 - boost/libs/math/doc/graphs/cyl_neumann.png | Bin 40987 -> 0 bytes boost/libs/math/doc/graphs/cyl_neumann.svg | 77 - boost/libs/math/doc/graphs/digamma.png | Bin 23855 -> 0 bytes boost/libs/math/doc/graphs/digamma.svg | 62 - boost/libs/math/doc/graphs/dist_graphs.cpp | 722 -- boost/libs/math/doc/graphs/ellint_1.png | Bin 29435 -> 0 bytes boost/libs/math/doc/graphs/ellint_1.svg | 70 - boost/libs/math/doc/graphs/ellint_2.png | Bin 33152 -> 0 bytes boost/libs/math/doc/graphs/ellint_2.svg | 71 - boost/libs/math/doc/graphs/ellint_3.png | Bin 40814 -> 0 bytes boost/libs/math/doc/graphs/ellint_3.svg | 74 - boost/libs/math/doc/graphs/ellint_carlson.png | Bin 22890 -> 0 bytes boost/libs/math/doc/graphs/ellint_carlson.svg | 70 - boost/libs/math/doc/graphs/erf.png | Bin 15921 -> 0 bytes boost/libs/math/doc/graphs/erf.svg | 61 - boost/libs/math/doc/graphs/erf_inv.png | Bin 16881 -> 0 bytes boost/libs/math/doc/graphs/erf_inv.svg | 59 - boost/libs/math/doc/graphs/erfc.png | Bin 16724 -> 0 bytes boost/libs/math/doc/graphs/erfc.svg | 61 - boost/libs/math/doc/graphs/erfc_inv.png | Bin 18719 -> 0 bytes boost/libs/math/doc/graphs/erfc_inv.svg | 60 - boost/libs/math/doc/graphs/exp_on_r.png | Bin 3062 -> 0 bytes boost/libs/math/doc/graphs/expint2.png | Bin 40029 -> 0 bytes boost/libs/math/doc/graphs/expint2.svg | 78 - boost/libs/math/doc/graphs/expint_i.png | Bin 20700 -> 0 bytes boost/libs/math/doc/graphs/expint_i.svg | 63 - boost/libs/math/doc/graphs/expm1.png | Bin 18542 -> 0 bytes boost/libs/math/doc/graphs/expm1.svg | 64 - boost/libs/math/doc/graphs/exponential_pdf.png | Bin 35475 -> 0 bytes boost/libs/math/doc/graphs/exponential_pdf.svg | 65 - boost/libs/math/doc/graphs/extreme_value_pdf1.png | Bin 47238 -> 0 bytes boost/libs/math/doc/graphs/extreme_value_pdf1.svg | 62 - boost/libs/math/doc/graphs/extreme_value_pdf2.png | Bin 47283 -> 0 bytes boost/libs/math/doc/graphs/extreme_value_pdf2.svg | 65 - boost/libs/math/doc/graphs/fisher_f_pdf.png | Bin 51980 -> 0 bytes boost/libs/math/doc/graphs/fisher_f_pdf.svg | 71 - boost/libs/math/doc/graphs/gamma1_pdf.png | Bin 39092 -> 0 bytes boost/libs/math/doc/graphs/gamma1_pdf.svg | 66 - boost/libs/math/doc/graphs/gamma2_pdf.png | Bin 44969 -> 0 bytes boost/libs/math/doc/graphs/gamma2_pdf.svg | 65 - boost/libs/math/doc/graphs/gamma_p.png | Bin 35639 -> 0 bytes boost/libs/math/doc/graphs/gamma_p.svg | 80 - boost/libs/math/doc/graphs/gamma_q.png | Bin 36654 -> 0 bytes boost/libs/math/doc/graphs/gamma_q.svg | 79 - boost/libs/math/doc/graphs/generate.sh | 28 - boost/libs/math/doc/graphs/geometric_cdf_2.png | Bin 34637 -> 0 bytes boost/libs/math/doc/graphs/geometric_cdf_2.svg | 69 - .../math/doc/graphs/geometric_cdf_discrete.png | Bin 26586 -> 0 bytes .../math/doc/graphs/geometric_cdf_discrete.svg | 69 - boost/libs/math/doc/graphs/geometric_pdf_2.png | Bin 34843 -> 0 bytes boost/libs/math/doc/graphs/geometric_pdf_2.svg | 66 - .../math/doc/graphs/geometric_pdf_discrete.png | Bin 24411 -> 0 bytes .../math/doc/graphs/geometric_pdf_discrete.svg | 66 - boost/libs/math/doc/graphs/hermite.png | Bin 39453 -> 0 bytes boost/libs/math/doc/graphs/hermite.svg | 75 - boost/libs/math/doc/graphs/hyperbolic.png | Bin 4244 -> 0 bytes .../libs/math/doc/graphs/hyperexponential_pdf.png | Bin 26458 -> 0 bytes .../libs/math/doc/graphs/hyperexponential_pdf.svg | 240 - .../doc/graphs/hyperexponential_pdf_samemean.png | Bin 18278 -> 0 bytes .../doc/graphs/hyperexponential_pdf_samemean.svg | 174 - .../doc/graphs/hyperexponential_pdf_samerate.png | Bin 24583 -> 0 bytes .../doc/graphs/hyperexponential_pdf_samerate.svg | 202 - .../libs/math/doc/graphs/hypergeometric_pdf_1.png | Bin 40963 -> 0 bytes .../libs/math/doc/graphs/hypergeometric_pdf_1.svg | 73 - .../libs/math/doc/graphs/hypergeometric_pdf_2.png | Bin 39749 -> 0 bytes .../libs/math/doc/graphs/hypergeometric_pdf_2.svg | 71 - boost/libs/math/doc/graphs/ibeta.png | Bin 45748 -> 0 bytes boost/libs/math/doc/graphs/ibeta.svg | 89 - boost/libs/math/doc/graphs/im_exp_on_c.png | Bin 11293 -> 0 bytes .../math/doc/graphs/inverse_chi_squared_cdf.png | Bin 50133 -> 0 bytes .../math/doc/graphs/inverse_chi_squared_cdf.svg | 79 - .../math/doc/graphs/inverse_chi_squared_pdf.png | Bin 39793 -> 0 bytes .../math/doc/graphs/inverse_chi_squared_pdf.svg | 72 - boost/libs/math/doc/graphs/inverse_gamma_cdf.png | Bin 42954 -> 0 bytes boost/libs/math/doc/graphs/inverse_gamma_cdf.svg | 75 - boost/libs/math/doc/graphs/inverse_gamma_pdf.png | Bin 34350 -> 0 bytes boost/libs/math/doc/graphs/inverse_gamma_pdf.svg | 69 - .../libs/math/doc/graphs/inverse_gaussian_cdf.png | Bin 50291 -> 0 bytes .../libs/math/doc/graphs/inverse_gaussian_cdf.svg | 76 - .../libs/math/doc/graphs/inverse_gaussian_pdf.png | Bin 46962 -> 0 bytes .../libs/math/doc/graphs/inverse_gaussian_pdf.svg | 69 - boost/libs/math/doc/graphs/jacobi_cd.png | Bin 66843 -> 0 bytes boost/libs/math/doc/graphs/jacobi_cd.svg | 76 - boost/libs/math/doc/graphs/jacobi_cn.png | Bin 68711 -> 0 bytes boost/libs/math/doc/graphs/jacobi_cn.svg | 76 - boost/libs/math/doc/graphs/jacobi_cs.png | Bin 31706 -> 0 bytes boost/libs/math/doc/graphs/jacobi_cs.svg | 76 - boost/libs/math/doc/graphs/jacobi_dc.png | Bin 41200 -> 0 bytes boost/libs/math/doc/graphs/jacobi_dc.svg | 76 - boost/libs/math/doc/graphs/jacobi_dn.png | Bin 56196 -> 0 bytes boost/libs/math/doc/graphs/jacobi_dn.svg | 81 - boost/libs/math/doc/graphs/jacobi_ds.png | Bin 36276 -> 0 bytes boost/libs/math/doc/graphs/jacobi_ds.svg | 81 - boost/libs/math/doc/graphs/jacobi_nc.png | Bin 37471 -> 0 bytes boost/libs/math/doc/graphs/jacobi_nc.svg | 83 - boost/libs/math/doc/graphs/jacobi_nd.png | Bin 36676 -> 0 bytes boost/libs/math/doc/graphs/jacobi_nd.svg | 77 - boost/libs/math/doc/graphs/jacobi_ns.png | Bin 24030 -> 0 bytes boost/libs/math/doc/graphs/jacobi_ns.svg | 75 - boost/libs/math/doc/graphs/jacobi_sc.png | Bin 36791 -> 0 bytes boost/libs/math/doc/graphs/jacobi_sc.svg | 85 - boost/libs/math/doc/graphs/jacobi_sd.png | Bin 31680 -> 0 bytes boost/libs/math/doc/graphs/jacobi_sd.svg | 75 - boost/libs/math/doc/graphs/jacobi_sn.png | Bin 64184 -> 0 bytes boost/libs/math/doc/graphs/jacobi_sn.svg | 76 - boost/libs/math/doc/graphs/laguerre.png | Bin 44750 -> 0 bytes boost/libs/math/doc/graphs/laguerre.svg | 78 - boost/libs/math/doc/graphs/laplace_pdf.png | Bin 51644 -> 0 bytes boost/libs/math/doc/graphs/laplace_pdf.svg | 75 - boost/libs/math/doc/graphs/legendre_p.png | Bin 52390 -> 0 bytes boost/libs/math/doc/graphs/legendre_p.svg | 77 - boost/libs/math/doc/graphs/legendre_q.png | Bin 61830 -> 0 bytes boost/libs/math/doc/graphs/legendre_q.svg | 74 - boost/libs/math/doc/graphs/lgamma.png | Bin 24713 -> 0 bytes boost/libs/math/doc/graphs/lgamma.svg | 61 - boost/libs/math/doc/graphs/log1p.png | Bin 13555 -> 0 bytes boost/libs/math/doc/graphs/log1p.svg | 56 - boost/libs/math/doc/graphs/logistic_pdf.png | Bin 50024 -> 0 bytes boost/libs/math/doc/graphs/logistic_pdf.svg | 67 - boost/libs/math/doc/graphs/lognormal_pdf1.png | Bin 36321 -> 0 bytes boost/libs/math/doc/graphs/lognormal_pdf1.svg | 61 - boost/libs/math/doc/graphs/lognormal_pdf2.png | Bin 44589 -> 0 bytes boost/libs/math/doc/graphs/lognormal_pdf2.svg | 62 - boost/libs/math/doc/graphs/nc_beta_pdf.png | Bin 64589 -> 0 bytes boost/libs/math/doc/graphs/nc_beta_pdf.svg | 83 - boost/libs/math/doc/graphs/nc_f_pdf.png | Bin 57250 -> 0 bytes boost/libs/math/doc/graphs/nc_f_pdf.svg | 78 - boost/libs/math/doc/graphs/nc_t_cdf.png | Bin 53615 -> 0 bytes boost/libs/math/doc/graphs/nc_t_cdf.svg | 78 - boost/libs/math/doc/graphs/nc_t_pdf.png | Bin 45014 -> 0 bytes boost/libs/math/doc/graphs/nc_t_pdf.svg | 71 - boost/libs/math/doc/graphs/nccs_pdf.png | Bin 59537 -> 0 bytes boost/libs/math/doc/graphs/nccs_pdf.svg | 75 - .../math/doc/graphs/negative_binomial_pdf_1.png | Bin 31141 -> 0 bytes .../math/doc/graphs/negative_binomial_pdf_1.svg | 61 - .../math/doc/graphs/negative_binomial_pdf_2.png | Bin 37232 -> 0 bytes .../math/doc/graphs/negative_binomial_pdf_2.svg | 68 - boost/libs/math/doc/graphs/neumann_y_zeros.png | Bin 66543 -> 0 bytes boost/libs/math/doc/graphs/neumann_y_zeros.svg | 101 - boost/libs/math/doc/graphs/normal01_cdf.png | Bin 32400 -> 0 bytes boost/libs/math/doc/graphs/normal01_cdf.svg | 63 - boost/libs/math/doc/graphs/normal01_pdf.png | Bin 32475 -> 0 bytes boost/libs/math/doc/graphs/normal01_pdf.svg | 58 - boost/libs/math/doc/graphs/normal_cdf.png | Bin 48182 -> 0 bytes boost/libs/math/doc/graphs/normal_cdf.svg | 81 - boost/libs/math/doc/graphs/normal_pdf.png | Bin 52644 -> 0 bytes boost/libs/math/doc/graphs/normal_pdf.svg | 78 - .../math/doc/graphs/owens_integration_area.png | Bin 5924 -> 0 bytes .../math/doc/graphs/owens_integration_area.svg | 121 - boost/libs/math/doc/graphs/pareto_pdf1.png | Bin 43105 -> 0 bytes boost/libs/math/doc/graphs/pareto_pdf1.svg | 65 - boost/libs/math/doc/graphs/pareto_pdf2.png | Bin 37344 -> 0 bytes boost/libs/math/doc/graphs/pareto_pdf2.svg | 64 - boost/libs/math/doc/graphs/pdf.png | Bin 4273 -> 0 bytes boost/libs/math/doc/graphs/plot_owens_3d_xyp.png | Bin 27597 -> 0 bytes boost/libs/math/doc/graphs/plot_owens_t.png | Bin 20320 -> 0 bytes boost/libs/math/doc/graphs/poisson_pdf_1.png | Bin 25630 -> 0 bytes boost/libs/math/doc/graphs/poisson_pdf_1.svg | 65 - boost/libs/math/doc/graphs/polygamma2.png | Bin 28765 -> 0 bytes boost/libs/math/doc/graphs/polygamma2.svg | 70 - boost/libs/math/doc/graphs/polygamma3.png | Bin 32173 -> 0 bytes boost/libs/math/doc/graphs/polygamma3.svg | 67 - boost/libs/math/doc/graphs/powm1.png | Bin 33301 -> 0 bytes boost/libs/math/doc/graphs/powm1.svg | 84 - .../libs/math/doc/graphs/prior_posterior_plot.png | Bin 37418 -> 0 bytes .../libs/math/doc/graphs/prior_posterior_plot.svg | 69 - boost/libs/math/doc/graphs/quantile.png | Bin 4107 -> 0 bytes boost/libs/math/doc/graphs/rayleigh_cdf.png | Bin 46778 -> 0 bytes boost/libs/math/doc/graphs/rayleigh_cdf.svg | 78 - boost/libs/math/doc/graphs/rayleigh_pdf.png | Bin 35215 -> 0 bytes boost/libs/math/doc/graphs/rayleigh_pdf.svg | 69 - boost/libs/math/doc/graphs/remez-2.png | Bin 4943 -> 0 bytes boost/libs/math/doc/graphs/remez-3.png | Bin 5890 -> 0 bytes boost/libs/math/doc/graphs/remez-4.png | Bin 5979 -> 0 bytes boost/libs/math/doc/graphs/remez-5.png | Bin 5658 -> 0 bytes boost/libs/math/doc/graphs/sf_graphs.cpp | 735 -- boost/libs/math/doc/graphs/sinc_pi.png | Bin 21943 -> 0 bytes boost/libs/math/doc/graphs/sinc_pi.svg | 58 - .../math/doc/graphs/sinc_pi_and_sinhc_pi_on_r.png | Bin 3403 -> 0 bytes boost/libs/math/doc/graphs/sinhc_pi.png | Bin 21731 -> 0 bytes boost/libs/math/doc/graphs/sinhc_pi.svg | 63 - boost/libs/math/doc/graphs/skew_normal_cdf.png | Bin 60290 -> 0 bytes boost/libs/math/doc/graphs/skew_normal_cdf.svg | 81 - boost/libs/math/doc/graphs/skew_normal_pdf.png | Bin 66683 -> 0 bytes boost/libs/math/doc/graphs/skew_normal_pdf.svg | 80 - boost/libs/math/doc/graphs/sph_bessel.png | Bin 37670 -> 0 bytes boost/libs/math/doc/graphs/sph_bessel.svg | 75 - boost/libs/math/doc/graphs/sph_neumann.png | Bin 35283 -> 0 bytes boost/libs/math/doc/graphs/sph_neumann.svg | 76 - boost/libs/math/doc/graphs/sqrt1pm1.png | Bin 19435 -> 0 bytes boost/libs/math/doc/graphs/sqrt1pm1.svg | 62 - boost/libs/math/doc/graphs/students_t_pdf.png | Bin 48429 -> 0 bytes boost/libs/math/doc/graphs/students_t_pdf.svg | 68 - boost/libs/math/doc/graphs/survival.png | Bin 4818 -> 0 bytes boost/libs/math/doc/graphs/survival_inv.png | Bin 3967 -> 0 bytes boost/libs/math/doc/graphs/tgamma.png | Bin 24933 -> 0 bytes boost/libs/math/doc/graphs/tgamma.svg | 69 - boost/libs/math/doc/graphs/tgamma_delta_ratio.png | Bin 44612 -> 0 bytes boost/libs/math/doc/graphs/tgamma_delta_ratio.svg | 81 - boost/libs/math/doc/graphs/triangular_cdf.png | Bin 50305 -> 0 bytes boost/libs/math/doc/graphs/triangular_cdf.svg | 78 - boost/libs/math/doc/graphs/triangular_pdf.png | Bin 46759 -> 0 bytes boost/libs/math/doc/graphs/triangular_pdf.svg | 71 - boost/libs/math/doc/graphs/trigamma.png | Bin 30578 -> 0 bytes boost/libs/math/doc/graphs/trigamma.svg | 70 - boost/libs/math/doc/graphs/trigonometric.png | Bin 7373 -> 0 bytes boost/libs/math/doc/graphs/uniform_cdf.png | Bin 46523 -> 0 bytes boost/libs/math/doc/graphs/uniform_cdf.svg | 75 - boost/libs/math/doc/graphs/uniform_pdf.png | Bin 31906 -> 0 bytes boost/libs/math/doc/graphs/uniform_pdf.svg | 75 - boost/libs/math/doc/graphs/weibull_pdf1.png | Bin 44834 -> 0 bytes boost/libs/math/doc/graphs/weibull_pdf1.svg | 68 - boost/libs/math/doc/graphs/weibull_pdf2.png | Bin 42096 -> 0 bytes boost/libs/math/doc/graphs/weibull_pdf2.svg | 63 - boost/libs/math/doc/graphs/zeta1.png | Bin 23204 -> 0 bytes boost/libs/math/doc/graphs/zeta1.svg | 63 - boost/libs/math/doc/graphs/zeta2.png | Bin 22573 -> 0 bytes boost/libs/math/doc/graphs/zeta2.svg | 58 - boost/libs/math/doc/html/backgrounders.html | 69 - boost/libs/math/doc/html/constants.html | 62 - boost/libs/math/doc/html/cstdfloat.html | 70 - boost/libs/math/doc/html/dist.html | 220 - boost/libs/math/doc/html/extern_c.html | 53 - boost/libs/math/doc/html/gcd_lcm.html | 61 - boost/libs/math/doc/html/index.html | 125 - boost/libs/math/doc/html/indexes.html | 55 - boost/libs/math/doc/html/indexes/s01.html | 3015 ----- boost/libs/math/doc/html/indexes/s02.html | 271 - boost/libs/math/doc/html/indexes/s03.html | 442 - boost/libs/math/doc/html/indexes/s04.html | 352 - boost/libs/math/doc/html/indexes/s05.html | 7416 ----------- boost/libs/math/doc/html/internals.html | 64 - boost/libs/math/doc/html/inverse_complex.html | 65 - boost/libs/math/doc/html/math.css | 80 - .../doc/html/math_toolkit/acknowledgement.html | 52 - .../doc/html/math_toolkit/acknowledgements.html | 52 - boost/libs/math/doc/html/math_toolkit/acos.html | 66 - boost/libs/math/doc/html/math_toolkit/acosh.html | 66 - boost/libs/math/doc/html/math_toolkit/airy.html | 53 - boost/libs/math/doc/html/math_toolkit/airy/ai.html | 123 - .../libs/math/doc/html/math_toolkit/airy/aip.html | 119 - .../math/doc/html/math_toolkit/airy/airy_root.html | 475 - boost/libs/math/doc/html/math_toolkit/airy/bi.html | 118 - .../libs/math/doc/html/math_toolkit/airy/bip.html | 119 - .../math/doc/html/math_toolkit/archetypes.html | 197 - boost/libs/math/doc/html/math_toolkit/asin.html | 66 - boost/libs/math/doc/html/math_toolkit/asinh.html | 66 - boost/libs/math/doc/html/math_toolkit/atan.html | 66 - boost/libs/math/doc/html/math_toolkit/atanh.html | 66 - boost/libs/math/doc/html/math_toolkit/bessel.html | 59 - .../math_toolkit/bessel/bessel_derivatives.html | 1452 --- .../doc/html/math_toolkit/bessel/bessel_first.html | 1387 --- .../doc/html/math_toolkit/bessel/bessel_over.html | 212 - .../doc/html/math_toolkit/bessel/bessel_root.html | 764 -- .../math/doc/html/math_toolkit/bessel/mbessel.html | 1122 -- .../doc/html/math_toolkit/bessel/sph_bessel.html | 287 - .../libs/math/doc/html/math_toolkit/building.html | 164 - boost/libs/math/doc/html/math_toolkit/c99.html | 477 - .../math/doc/html/math_toolkit/comp_compilers.html | 2412 ---- .../math/doc/html/math_toolkit/comparisons.html | 270 - .../math/doc/html/math_toolkit/compile_time.html | 106 - .../doc/html/math_toolkit/compilers_overview.html | 683 -- .../doc/html/math_toolkit/complex_history.html | 54 - .../html/math_toolkit/complex_implementation.html | 63 - .../math/doc/html/math_toolkit/config_macros.html | 383 - .../libs/math/doc/html/math_toolkit/constants.html | 1490 --- .../math/doc/html/math_toolkit/constants_faq.html | 483 - .../doc/html/math_toolkit/constants_intro.html | 131 - boost/libs/math/doc/html/math_toolkit/contact.html | 63 - .../math/doc/html/math_toolkit/conventions.html | 87 - boost/libs/math/doc/html/math_toolkit/create.html | 121 - boost/libs/math/doc/html/math_toolkit/credits.html | 190 - boost/libs/math/doc/html/math_toolkit/demo.html | 53 - .../math/doc/html/math_toolkit/directories.html | 127 - .../math/doc/html/math_toolkit/dist_concept.html | 397 - .../libs/math/doc/html/math_toolkit/dist_ref.html | 109 - .../math_toolkit/dist_ref/dist_algorithms.html | 136 - .../math/doc/html/math_toolkit/dist_ref/dists.html | 104 - .../math_toolkit/dist_ref/dists/arcine_dist.html | 642 - .../dist_ref/dists/bernoulli_dist.html | 356 - .../math_toolkit/dist_ref/dists/beta_dist.html | 622 - .../math_toolkit/dist_ref/dists/binomial_dist.html | 908 -- .../math_toolkit/dist_ref/dists/cauchy_dist.html | 305 - .../dist_ref/dists/chi_squared_dist.html | 411 - .../html/math_toolkit/dist_ref/dists/exp_dist.html | 328 - .../math_toolkit/dist_ref/dists/extreme_dist.html | 331 - .../html/math_toolkit/dist_ref/dists/f_dist.html | 434 - .../math_toolkit/dist_ref/dists/gamma_dist.html | 364 - .../dist_ref/dists/geometric_dist.html | 841 -- .../dist_ref/dists/hyperexponential_dist.html | 1460 --- .../dist_ref/dists/hypergeometric_dist.html | 339 - .../dist_ref/dists/inverse_chi_squared_dist.html | 471 - .../dist_ref/dists/inverse_gamma_dist.html | 367 - .../dist_ref/dists/inverse_gaussian_dist.html | 445 - .../math_toolkit/dist_ref/dists/laplace_dist.html | 360 - .../math_toolkit/dist_ref/dists/logistic_dist.html | 298 - .../dist_ref/dists/lognormal_dist.html | 330 - .../math_toolkit/dist_ref/dists/nc_beta_dist.html | 484 - .../dist_ref/dists/nc_chi_squared_dist.html | 572 - .../math_toolkit/dist_ref/dists/nc_f_dist.html | 410 - .../math_toolkit/dist_ref/dists/nc_t_dist.html | 566 - .../dist_ref/dists/negative_binomial_dist.html | 883 -- .../math_toolkit/dist_ref/dists/normal_dist.html | 325 - .../html/math_toolkit/dist_ref/dists/pareto.html | 350 - .../math_toolkit/dist_ref/dists/poisson_dist.html | 330 - .../html/math_toolkit/dist_ref/dists/rayleigh.html | 347 - .../dist_ref/dists/skew_normal_dist.html | 498 - .../dist_ref/dists/students_t_dist.html | 430 - .../dist_ref/dists/triangular_dist.html | 446 - .../math_toolkit/dist_ref/dists/uniform_dist.html | 367 - .../math_toolkit/dist_ref/dists/weibull_dist.html | 369 - .../math/doc/html/math_toolkit/dist_ref/nmp.html | 706 -- boost/libs/math/doc/html/math_toolkit/ellint.html | 61 - .../doc/html/math_toolkit/ellint/ellint_1.html | 268 - .../doc/html/math_toolkit/ellint/ellint_2.html | 269 - .../doc/html/math_toolkit/ellint/ellint_3.html | 352 - .../html/math_toolkit/ellint/ellint_carlson.html | 1128 -- .../doc/html/math_toolkit/ellint/ellint_d.html | 360 - .../doc/html/math_toolkit/ellint/ellint_intro.html | 451 - .../html/math_toolkit/ellint/heuman_lambda.html | 221 - .../doc/html/math_toolkit/ellint/jacobi_zeta.html | 257 - .../math/doc/html/math_toolkit/error_handling.html | 1128 -- .../math/doc/html/math_toolkit/exact_typdefs.html | 175 - .../libs/math/doc/html/math_toolkit/examples.html | 140 - boost/libs/math/doc/html/math_toolkit/exp.html | 58 - boost/libs/math/doc/html/math_toolkit/expint.html | 50 - .../doc/html/math_toolkit/expint/expint_i.html | 317 - .../doc/html/math_toolkit/expint/expint_n.html | 284 - .../math/doc/html/math_toolkit/factorials.html | 54 - .../html/math_toolkit/factorials/sf_binomial.html | 145 - .../factorials/sf_double_factorial.html | 161 - .../html/math_toolkit/factorials/sf_factorial.html | 193 - .../factorials/sf_falling_factorial.html | 110 - .../factorials/sf_rising_factorial.html | 114 - .../doc/html/math_toolkit/fastest_typdefs.html | 64 - .../libs/math/doc/html/math_toolkit/float128.html | 175 - .../html/math_toolkit/float128/exp_function.html | 71 - .../html/math_toolkit/float128/overloading.html | 97 - .../float128/overloading_template_functions_w.html | 97 - .../doc/html/math_toolkit/float128/typeinfo.html | 78 - .../math/doc/html/math_toolkit/float128_hints.html | 107 - .../doc/html/math_toolkit/float_comparison.html | 413 - .../libs/math/doc/html/math_toolkit/fp_facets.html | 92 - .../doc/html/math_toolkit/fp_facets/examples.html | 258 - .../html/math_toolkit/fp_facets/facets_intro.html | 380 - .../html/math_toolkit/fp_facets/portability.html | 51 - .../doc/html/math_toolkit/fp_facets/rationale.html | 68 - .../doc/html/math_toolkit/fp_facets/reference.html | 491 - boost/libs/math/doc/html/math_toolkit/fpclass.html | 252 - boost/libs/math/doc/html/math_toolkit/future.html | 148 - .../math/doc/html/math_toolkit/gcd_credits.html | 52 - .../doc/html/math_toolkit/gcd_function_object.html | 76 - .../math/doc/html/math_toolkit/gcd_header.html | 61 - .../math/doc/html/math_toolkit/gcd_history.html | 60 - .../math/doc/html/math_toolkit/getting_best.html | 177 - .../doc/html/math_toolkit/greatest_typdefs.html | 96 - boost/libs/math/doc/html/math_toolkit/hankel.html | 50 - .../doc/html/math_toolkit/hankel/cyl_hankel.html | 162 - .../doc/html/math_toolkit/hankel/sph_hankel.html | 124 - .../math/doc/html/math_toolkit/high_precision.html | 111 - .../html/math_toolkit/high_precision/e_float.html | 68 - .../html/math_toolkit/high_precision/float128.html | 65 - .../html/math_toolkit/high_precision/use_mpfr.html | 117 - .../high_precision/use_multiprecision.html | 364 - .../html/math_toolkit/high_precision/use_ntl.html | 74 - .../math_toolkit/high_precision/using_test.html | 144 - .../high_precision/why_high_precision.html | 139 - boost/libs/math/doc/html/math_toolkit/hints.html | 110 - .../libs/math/doc/html/math_toolkit/history1.html | 1047 -- .../libs/math/doc/html/math_toolkit/history2.html | 1047 -- .../libs/math/doc/html/math_toolkit/internals.html | 57 - .../math/doc/html/math_toolkit/internals/cf.html | 281 - .../html/math_toolkit/internals/error_test.html | 237 - .../doc/html/math_toolkit/internals/minimax.html | 283 - .../html/math_toolkit/internals/polynomials.html | 278 - .../doc/html/math_toolkit/internals/rational.html | 232 - .../math_toolkit/internals/series_evaluation.html | 197 - .../doc/html/math_toolkit/internals/test_data.html | 563 - .../doc/html/math_toolkit/internals/tuples.html | 85 - .../doc/html/math_toolkit/internals_overview.html | 61 - boost/libs/math/doc/html/math_toolkit/interp.html | 74 - .../doc/html/math_toolkit/intro_pol_overview.html | 118 - .../math/doc/html/math_toolkit/introduction.html | 52 - .../libs/math/doc/html/math_toolkit/inv_hyper.html | 53 - .../doc/html/math_toolkit/inv_hyper/acosh.html | 129 - .../doc/html/math_toolkit/inv_hyper/asinh.html | 124 - .../doc/html/math_toolkit/inv_hyper/atanh.html | 134 - .../math_toolkit/inv_hyper/inv_hyper_over.html | 116 - boost/libs/math/doc/html/math_toolkit/issues.html | 1234 -- boost/libs/math/doc/html/math_toolkit/jacobi.html | 76 - .../doc/html/math_toolkit/jacobi/jac_over.html | 123 - .../doc/html/math_toolkit/jacobi/jacobi_cd.html | 86 - .../doc/html/math_toolkit/jacobi/jacobi_cn.html | 82 - .../doc/html/math_toolkit/jacobi/jacobi_cs.html | 86 - .../doc/html/math_toolkit/jacobi/jacobi_dc.html | 86 - .../doc/html/math_toolkit/jacobi/jacobi_dn.html | 82 - .../doc/html/math_toolkit/jacobi/jacobi_ds.html | 86 - .../html/math_toolkit/jacobi/jacobi_elliptic.html | 781 -- .../doc/html/math_toolkit/jacobi/jacobi_nc.html | 86 - .../doc/html/math_toolkit/jacobi/jacobi_nd.html | 86 - .../doc/html/math_toolkit/jacobi/jacobi_ns.html | 86 - .../doc/html/math_toolkit/jacobi/jacobi_sc.html | 86 - .../doc/html/math_toolkit/jacobi/jacobi_sd.html | 86 - .../doc/html/math_toolkit/jacobi/jacobi_sn.html | 82 - boost/libs/math/doc/html/math_toolkit/lanczos.html | 577 - .../doc/html/math_toolkit/lcm_function_object.html | 76 - .../doc/html/math_toolkit/logs_and_tables.html | 52 - .../math_toolkit/logs_and_tables/all_table.html | 12270 ------------------- .../html/math_toolkit/logs_and_tables/logs.html | 4453 ------- boost/libs/math/doc/html/math_toolkit/macros.html | 88 - .../libs/math/doc/html/math_toolkit/main_faq.html | 226 - .../math/doc/html/math_toolkit/main_intro.html | 141 - .../libs/math/doc/html/math_toolkit/main_tr1.html | 617 - .../math/doc/html/math_toolkit/mem_typedef.html | 72 - .../doc/html/math_toolkit/minimum_typdefs.html | 62 - .../math/doc/html/math_toolkit/multiprecision.html | 126 - .../math/doc/html/math_toolkit/namespaces.html | 97 - .../math/doc/html/math_toolkit/navigation.html | 104 - .../libs/math/doc/html/math_toolkit/new_const.html | 266 - .../math/doc/html/math_toolkit/next_float.html | 88 - .../math_toolkit/next_float/float_advance.html | 72 - .../math_toolkit/next_float/float_distance.html | 106 - .../html/math_toolkit/next_float/float_next.html | 76 - .../html/math_toolkit/next_float/float_prior.html | 76 - .../html/math_toolkit/next_float/nextafter.html | 130 - .../math/doc/html/math_toolkit/next_float/ulp.html | 164 - .../math/doc/html/math_toolkit/number_series.html | 52 - .../number_series/bernoulli_numbers.html | 373 - .../html/math_toolkit/number_series/primes.html | 84 - .../number_series/tangent_numbers.html | 138 - .../math/doc/html/math_toolkit/oct_create.html | 84 - .../math/doc/html/math_toolkit/oct_header.html | 49 - .../math/doc/html/math_toolkit/oct_history.html | 111 - .../math/doc/html/math_toolkit/oct_mem_fun.html | 259 - .../math/doc/html/math_toolkit/oct_non_mem.html | 223 - .../math/doc/html/math_toolkit/oct_overview.html | 86 - .../doc/html/math_toolkit/oct_specialization.html | 242 - .../math/doc/html/math_toolkit/oct_synopsis.html | 141 - .../libs/math/doc/html/math_toolkit/oct_tests.html | 60 - .../libs/math/doc/html/math_toolkit/oct_todo.html | 57 - .../libs/math/doc/html/math_toolkit/oct_trans.html | 148 - .../math/doc/html/math_toolkit/oct_typedefs.html | 72 - .../math/doc/html/math_toolkit/oct_value_ops.html | 108 - .../libs/math/doc/html/math_toolkit/octonion.html | 114 - .../libs/math/doc/html/math_toolkit/overview.html | 93 - .../math/doc/html/math_toolkit/overview_tr1.html | 617 - boost/libs/math/doc/html/math_toolkit/owens_t.html | 318 - .../math/doc/html/math_toolkit/perf_over1.html | 88 - .../math/doc/html/math_toolkit/perf_over2.html | 88 - .../math/doc/html/math_toolkit/perf_test_app.html | 118 - .../math/doc/html/math_toolkit/pol_overview.html | 118 - boost/libs/math/doc/html/math_toolkit/pol_ref.html | 64 - .../math_toolkit/pol_ref/assert_undefined.html | 102 - .../math_toolkit/pol_ref/discrete_quant_ref.html | 252 - .../pol_ref/error_handling_policies.html | 773 -- .../math_toolkit/pol_ref/internal_promotion.html | 150 - .../html/math_toolkit/pol_ref/iteration_pol.html | 67 - .../html/math_toolkit/pol_ref/namespace_pol.html | 157 - .../doc/html/math_toolkit/pol_ref/pol_ref_ref.html | 258 - .../html/math_toolkit/pol_ref/policy_defaults.html | 258 - .../html/math_toolkit/pol_ref/precision_pol.html | 110 - .../math/doc/html/math_toolkit/pol_tutorial.html | 66 - .../pol_tutorial/ad_hoc_dist_policies.html | 105 - .../pol_tutorial/ad_hoc_sf_policies.html | 174 - .../pol_tutorial/changing_policy_defaults.html | 258 - .../pol_tutorial/namespace_policies.html | 366 - .../pol_tutorial/policy_tut_defaults.html | 141 - .../math_toolkit/pol_tutorial/policy_usage.html | 73 - .../pol_tutorial/understand_dis_quant.html | 417 - .../pol_tutorial/user_def_err_pol.html | 454 - .../pol_tutorial/what_is_a_policy.html | 88 - boost/libs/math/doc/html/math_toolkit/powers.html | 58 - .../math/doc/html/math_toolkit/powers/cbrt.html | 165 - .../math/doc/html/math_toolkit/powers/cos_pi.html | 169 - .../math/doc/html/math_toolkit/powers/ct_pow.html | 265 - .../math/doc/html/math_toolkit/powers/expm1.html | 177 - .../math/doc/html/math_toolkit/powers/hypot.html | 91 - .../math/doc/html/math_toolkit/powers/log1p.html | 189 - .../math/doc/html/math_toolkit/powers/powm1.html | 162 - .../math/doc/html/math_toolkit/powers/sin_pi.html | 169 - .../doc/html/math_toolkit/powers/sqrt1pm1.html | 165 - boost/libs/math/doc/html/math_toolkit/quat.html | 99 - .../math/doc/html/math_toolkit/quat_header.html | 49 - .../math/doc/html/math_toolkit/quat_history.html | 113 - .../math/doc/html/math_toolkit/quat_mem_fun.html | 236 - .../math/doc/html/math_toolkit/quat_non_mem.html | 224 - .../math/doc/html/math_toolkit/quat_overview.html | 96 - .../math/doc/html/math_toolkit/quat_synopsis.html | 128 - .../math/doc/html/math_toolkit/quat_tests.html | 61 - .../libs/math/doc/html/math_toolkit/quat_todo.html | 61 - .../libs/math/doc/html/math_toolkit/rationale.html | 155 - .../math/doc/html/math_toolkit/rationale0.html | 52 - .../math/doc/html/math_toolkit/real_concepts.html | 1376 --- boost/libs/math/doc/html/math_toolkit/refs.html | 215 - .../math/doc/html/math_toolkit/relative_error.html | 123 - boost/libs/math/doc/html/math_toolkit/remez.html | 538 - .../math/doc/html/math_toolkit/result_type.html | 153 - boost/libs/math/doc/html/math_toolkit/roots.html | 138 - .../doc/html/math_toolkit/roots/bad_guess.html | 778 -- .../doc/html/math_toolkit/roots/bad_roots.html | 127 - .../doc/html/math_toolkit/roots/brent_minima.html | 612 - .../doc/html/math_toolkit/roots/polynomials.html | 312 - .../math/doc/html/math_toolkit/roots/rational.html | 232 - .../html/math_toolkit/roots/root_comparison.html | 55 - .../roots/root_comparison/cbrt_comparison.html | 1588 --- .../roots/root_comparison/elliptic_comparison.html | 1870 --- .../roots/root_comparison/root_n_comparison.html | 5286 -------- .../math_toolkit/roots/root_finding_examples.html | 90 - .../roots/root_finding_examples/5th_root_eg.html | 169 - .../roots/root_finding_examples/cbrt_eg.html | 486 - .../roots/root_finding_examples/elliptic_eg.html | 272 - .../roots/root_finding_examples/lambda.html | 78 - .../root_finding_examples/multiprecision_root.html | 291 - .../roots/root_finding_examples/nth_root.html | 184 - .../doc/html/math_toolkit/roots/roots_deriv.html | 315 - .../doc/html/math_toolkit/roots/roots_noderiv.html | 222 - .../math_toolkit/roots/roots_noderiv/TOMS748.html | 193 - .../math_toolkit/roots/roots_noderiv/bisect.html | 152 - .../roots/roots_noderiv/bracket_solve.html | 186 - .../math_toolkit/roots/roots_noderiv/brent.html | 54 - .../roots/roots_noderiv/implementation.html | 63 - .../roots/roots_noderiv/root_termination.html | 102 - .../libs/math/doc/html/math_toolkit/rounding.html | 53 - .../math/doc/html/math_toolkit/rounding/modf.html | 83 - .../math/doc/html/math_toolkit/rounding/round.html | 83 - .../math/doc/html/math_toolkit/rounding/trunc.html | 85 - .../libs/math/doc/html/math_toolkit/run_time.html | 73 - boost/libs/math/doc/html/math_toolkit/sf_beta.html | 55 - .../html/math_toolkit/sf_beta/beta_derivative.html | 102 - .../html/math_toolkit/sf_beta/beta_function.html | 318 - .../html/math_toolkit/sf_beta/ibeta_function.html | 893 -- .../math_toolkit/sf_beta/ibeta_inv_function.html | 912 -- boost/libs/math/doc/html/math_toolkit/sf_erf.html | 50 - .../html/math_toolkit/sf_erf/error_function.html | 492 - .../doc/html/math_toolkit/sf_erf/error_inv.html | 351 - .../libs/math/doc/html/math_toolkit/sf_gamma.html | 59 - .../doc/html/math_toolkit/sf_gamma/digamma.html | 467 - .../math_toolkit/sf_gamma/gamma_derivatives.html | 107 - .../html/math_toolkit/sf_gamma/gamma_ratios.html | 418 - .../doc/html/math_toolkit/sf_gamma/igamma.html | 963 -- .../doc/html/math_toolkit/sf_gamma/igamma_inv.html | 622 - .../doc/html/math_toolkit/sf_gamma/lgamma.html | 487 - .../doc/html/math_toolkit/sf_gamma/polygamma.html | 409 - .../doc/html/math_toolkit/sf_gamma/tgamma.html | 531 - .../doc/html/math_toolkit/sf_gamma/trigamma.html | 205 - .../doc/html/math_toolkit/sf_implementation.html | 862 -- boost/libs/math/doc/html/math_toolkit/sf_poly.html | 54 - .../doc/html/math_toolkit/sf_poly/hermite.html | 243 - .../doc/html/math_toolkit/sf_poly/laguerre.html | 384 - .../doc/html/math_toolkit/sf_poly/legendre.html | 602 - .../doc/html/math_toolkit/sf_poly/sph_harm.html | 334 - .../math/doc/html/math_toolkit/sign_functions.html | 251 - boost/libs/math/doc/html/math_toolkit/sinc.html | 53 - .../doc/html/math_toolkit/sinc/sinc_overview.html | 83 - .../math/doc/html/math_toolkit/sinc/sinc_pi.html | 79 - .../math/doc/html/math_toolkit/sinc/sinhc_pi.html | 83 - boost/libs/math/doc/html/math_toolkit/spec.html | 192 - .../math/doc/html/math_toolkit/special_tut.html | 51 - .../math_toolkit/special_tut/special_tut_impl.html | 390 - .../math_toolkit/special_tut/special_tut_test.html | 525 - .../doc/html/math_toolkit/specified_typedefs.html | 108 - .../libs/math/doc/html/math_toolkit/stat_tut.html | 155 - .../html/math_toolkit/stat_tut/dist_params.html | 100 - .../doc/html/math_toolkit/stat_tut/overview.html | 59 - .../stat_tut/overview/complements.html | 200 - .../math_toolkit/stat_tut/overview/generic.html | 254 - .../math_toolkit/stat_tut/overview/headers.html | 78 - .../math_toolkit/stat_tut/overview/objects.html | 134 - .../math_toolkit/stat_tut/overview/parameters.html | 73 - .../math_toolkit/stat_tut/overview/summary.html | 75 - .../doc/html/math_toolkit/stat_tut/variates.html | 76 - .../math/doc/html/math_toolkit/stat_tut/weg.html | 129 - .../html/math_toolkit/stat_tut/weg/binom_eg.html | 61 - .../stat_tut/weg/binom_eg/binom_conf.html | 241 - .../stat_tut/weg/binom_eg/binom_size_eg.html | 160 - .../weg/binom_eg/binomial_coinflip_example.html | 274 - .../weg/binom_eg/binomial_quiz_example.html | 458 - .../html/math_toolkit/stat_tut/weg/c_sharp.html | 58 - .../doc/html/math_toolkit/stat_tut/weg/cs_eg.html | 55 - .../stat_tut/weg/cs_eg/chi_sq_intervals.html | 236 - .../stat_tut/weg/cs_eg/chi_sq_size.html | 182 - .../stat_tut/weg/cs_eg/chi_sq_test.html | 297 - .../stat_tut/weg/dist_construct_eg.html | 333 - .../html/math_toolkit/stat_tut/weg/error_eg.html | 206 - .../doc/html/math_toolkit/stat_tut/weg/f_eg.html | 329 - .../html/math_toolkit/stat_tut/weg/find_eg.html | 55 - .../stat_tut/weg/find_eg/find_location_eg.html | 190 - .../stat_tut/weg/find_eg/find_mean_and_sd_eg.html | 455 - .../stat_tut/weg/find_eg/find_scale_eg.html | 209 - .../math_toolkit/stat_tut/weg/geometric_eg.html | 422 - .../stat_tut/weg/inverse_chi_squared_eg.html | 360 - .../math_toolkit/stat_tut/weg/nag_library.html | 116 - .../html/math_toolkit/stat_tut/weg/nccs_eg.html | 53 - .../stat_tut/weg/nccs_eg/nccs_power_eg.html | 1287 -- .../math_toolkit/stat_tut/weg/neg_binom_eg.html | 62 - .../stat_tut/weg/neg_binom_eg/neg_binom_conf.html | 221 - .../weg/neg_binom_eg/neg_binom_size_eg.html | 207 - .../neg_binom_eg/negative_binomial_example1.html | 507 - .../neg_binom_eg/negative_binomial_example2.html | 136 - .../math_toolkit/stat_tut/weg/normal_example.html | 53 - .../stat_tut/weg/normal_example/normal_misc.html | 518 - .../doc/html/math_toolkit/stat_tut/weg/st_eg.html | 60 - .../math_toolkit/stat_tut/weg/st_eg/paired_st.html | 81 - .../stat_tut/weg/st_eg/tut_mean_intervals.html | 267 - .../stat_tut/weg/st_eg/tut_mean_size.html | 179 - .../stat_tut/weg/st_eg/tut_mean_test.html | 334 - .../stat_tut/weg/st_eg/two_sample_students_t.html | 359 - .../libs/math/doc/html/math_toolkit/synopsis.html | 73 - boost/libs/math/doc/html/math_toolkit/threads.html | 52 - boost/libs/math/doc/html/math_toolkit/tr1_ref.html | 538 - .../libs/math/doc/html/math_toolkit/tradoffs.html | 178 - boost/libs/math/doc/html/math_toolkit/trans.html | 144 - boost/libs/math/doc/html/math_toolkit/tuning.html | 2175 ---- .../libs/math/doc/html/math_toolkit/tutorial.html | 53 - .../doc/html/math_toolkit/tutorial/non_templ.html | 86 - .../math/doc/html/math_toolkit/tutorial/templ.html | 157 - .../doc/html/math_toolkit/tutorial/user_def.html | 336 - .../libs/math/doc/html/math_toolkit/value_op.html | 109 - boost/libs/math/doc/html/math_toolkit/zetas.html | 47 - .../math/doc/html/math_toolkit/zetas/zeta.html | 387 - boost/libs/math/doc/html/octonions.html | 65 - boost/libs/math/doc/html/overview.html | 70 - boost/libs/math/doc/html/perf.html | 62 - boost/libs/math/doc/html/policy.html | 91 - boost/libs/math/doc/html/quaternions.html | 66 - boost/libs/math/doc/html/rooting.html | 105 - boost/libs/math/doc/html/special.html | 215 - boost/libs/math/doc/html/standalone_HTML.manifest | 407 - boost/libs/math/doc/html/status.html | 53 - boost/libs/math/doc/html/using_udt.html | 73 - boost/libs/math/doc/html/utils.html | 87 - boost/libs/math/doc/html4_symbols.qbk | 226 - boost/libs/math/doc/images/acos.png | Bin 520 -> 0 bytes boost/libs/math/doc/images/acosh.png | Bin 547 -> 0 bytes boost/libs/math/doc/images/asin.png | Bin 435 -> 0 bytes boost/libs/math/doc/images/asinh.png | Bin 534 -> 0 bytes boost/libs/math/doc/images/atan.png | Bin 634 -> 0 bytes boost/libs/math/doc/images/atanh.png | Bin 522 -> 0 bytes boost/libs/math/doc/images/hypot.png | Bin 283 -> 0 bytes boost/libs/math/doc/images/hypot2.png | Bin 415 -> 0 bytes boost/libs/math/doc/index.html | 23 - boost/libs/math/doc/index.idx | 56 - boost/libs/math/doc/internals/fraction.qbk | 177 - .../libs/math/doc/internals/internals_overview.qbk | 22 - boost/libs/math/doc/internals/minimax.qbk | 167 - boost/libs/math/doc/internals/polynomial.qbk | 179 - boost/libs/math/doc/internals/rational.qbk | 176 - boost/libs/math/doc/internals/relative_error.qbk | 139 - boost/libs/math/doc/internals/series.qbk | 141 - boost/libs/math/doc/internals/test_data.qbk | 446 - boost/libs/math/doc/internals/tuple.qbk | 31 - boost/libs/math/doc/math.css | 130 - boost/libs/math/doc/math.pdf | Bin 9430927 -> 0 bytes boost/libs/math/doc/math.qbk | 711 -- .../doc/octonion/graphics/octonion_blurb1.jpeg | Bin 1905 -> 0 bytes .../doc/octonion/graphics/octonion_blurb10.jpeg | Bin 727 -> 0 bytes .../doc/octonion/graphics/octonion_blurb11.jpeg | Bin 739 -> 0 bytes .../doc/octonion/graphics/octonion_blurb12.jpeg | Bin 733 -> 0 bytes .../doc/octonion/graphics/octonion_blurb13.jpeg | Bin 685 -> 0 bytes .../doc/octonion/graphics/octonion_blurb14.jpeg | Bin 729 -> 0 bytes .../doc/octonion/graphics/octonion_blurb15.jpeg | Bin 683 -> 0 bytes .../doc/octonion/graphics/octonion_blurb16.jpeg | Bin 1592 -> 0 bytes .../doc/octonion/graphics/octonion_blurb17.jpeg | Bin 15302 -> 0 bytes .../doc/octonion/graphics/octonion_blurb18.jpeg | Bin 3348 -> 0 bytes .../doc/octonion/graphics/octonion_blurb19.jpeg | Bin 3605 -> 0 bytes .../doc/octonion/graphics/octonion_blurb2.jpeg | Bin 3348 -> 0 bytes .../doc/octonion/graphics/octonion_blurb20.jpeg | Bin 3523 -> 0 bytes .../doc/octonion/graphics/octonion_blurb21.jpeg | Bin 1301 -> 0 bytes .../doc/octonion/graphics/octonion_blurb3.jpeg | Bin 727 -> 0 bytes .../doc/octonion/graphics/octonion_blurb4.jpeg | Bin 739 -> 0 bytes .../doc/octonion/graphics/octonion_blurb5.jpeg | Bin 733 -> 0 bytes .../doc/octonion/graphics/octonion_blurb6.jpeg | Bin 783 -> 0 bytes .../doc/octonion/graphics/octonion_blurb7.jpeg | Bin 734 -> 0 bytes .../doc/octonion/graphics/octonion_blurb8.jpeg | Bin 779 -> 0 bytes .../doc/octonion/graphics/octonion_blurb9.jpeg | Bin 777 -> 0 bytes boost/libs/math/doc/octonion/math-octonion.qbk | 991 -- boost/libs/math/doc/octonion/output.txt | 17 - boost/libs/math/doc/octonion/output_more.txt | 63 - boost/libs/math/doc/overview/building.qbk | 106 - boost/libs/math/doc/overview/common_overviews.qbk | 231 - boost/libs/math/doc/overview/config_macros.qbk | 61 - boost/libs/math/doc/overview/contact_info.qbk | 25 - boost/libs/math/doc/overview/credits.qbk | 134 - boost/libs/math/doc/overview/error_handling.qbk | 403 - boost/libs/math/doc/overview/faq.qbk | 104 - boost/libs/math/doc/overview/issues.qbk | 153 - boost/libs/math/doc/overview/overview.qbk | 93 - boost/libs/math/doc/overview/result_type_calc.qbk | 85 - boost/libs/math/doc/overview/roadmap.qbk | 418 - boost/libs/math/doc/overview/structure.qbk | 193 - boost/libs/math/doc/overview/thread_safety.qbk | 15 - boost/libs/math/doc/overview/tr1.qbk | 398 - boost/libs/math/doc/performance/performance.qbk | 376 - boost/libs/math/doc/plot_owens_3d_xyp.png | Bin 27597 -> 0 bytes boost/libs/math/doc/plot_owens_t.png | Bin 20320 -> 0 bytes boost/libs/math/doc/policies/policy.qbk | 897 -- boost/libs/math/doc/policies/policy_tutorial.qbk | 511 - boost/libs/math/doc/quaternion/TQE.pdf | 2254 ---- boost/libs/math/doc/quaternion/TQE_EA.pdf | Bin 29759 -> 0 bytes .../doc/quaternion/graphics/quaternion_blurb1.jpeg | Bin 829 -> 0 bytes .../quaternion/graphics/quaternion_blurb10.jpeg | Bin 850 -> 0 bytes .../quaternion/graphics/quaternion_blurb11.jpeg | Bin 849 -> 0 bytes .../quaternion/graphics/quaternion_blurb12.jpeg | Bin 1346 -> 0 bytes .../quaternion/graphics/quaternion_blurb13.jpeg | Bin 1960 -> 0 bytes .../quaternion/graphics/quaternion_blurb14.jpeg | Bin 727 -> 0 bytes .../quaternion/graphics/quaternion_blurb15.jpeg | Bin 739 -> 0 bytes .../quaternion/graphics/quaternion_blurb16.jpeg | Bin 733 -> 0 bytes .../quaternion/graphics/quaternion_blurb17.jpeg | Bin 727 -> 0 bytes .../quaternion/graphics/quaternion_blurb18.jpeg | Bin 685 -> 0 bytes .../quaternion/graphics/quaternion_blurb19.jpeg | Bin 729 -> 0 bytes .../doc/quaternion/graphics/quaternion_blurb2.jpeg | Bin 821 -> 0 bytes .../quaternion/graphics/quaternion_blurb20.jpeg | Bin 1050 -> 0 bytes .../quaternion/graphics/quaternion_blurb21.jpeg | Bin 1907 -> 0 bytes .../quaternion/graphics/quaternion_blurb22.jpeg | Bin 2030 -> 0 bytes .../quaternion/graphics/quaternion_blurb23.jpeg | Bin 2141 -> 0 bytes .../doc/quaternion/graphics/quaternion_blurb3.jpeg | Bin 848 -> 0 bytes .../doc/quaternion/graphics/quaternion_blurb4.jpeg | Bin 828 -> 0 bytes .../doc/quaternion/graphics/quaternion_blurb5.jpeg | Bin 729 -> 0 bytes .../doc/quaternion/graphics/quaternion_blurb6.jpeg | Bin 1172 -> 0 bytes .../doc/quaternion/graphics/quaternion_blurb7.jpeg | Bin 685 -> 0 bytes .../doc/quaternion/graphics/quaternion_blurb8.jpeg | Bin 779 -> 0 bytes .../doc/quaternion/graphics/quaternion_blurb9.jpeg | Bin 972 -> 0 bytes boost/libs/math/doc/quaternion/math-quaternion.qbk | 918 -- boost/libs/math/doc/quaternion/output.txt | 29 - boost/libs/math/doc/quaternion/output_more.txt | 66 - boost/libs/math/doc/roots/bad_root_1.svg | 110 - boost/libs/math/doc/roots/bad_root_2.svg | 110 - boost/libs/math/doc/roots/bad_root_3.svg | 111 - boost/libs/math/doc/roots/bad_root_4.svg | 111 - .../doc/roots/elliptic_table_100_gcc_X64_SSE2.qbk | 20 - .../doc/roots/elliptic_table_100_msvc_X64_AVX.qbk | 20 - .../doc/roots/elliptic_table_100_msvc_X86_AVX.qbk | 20 - .../doc/roots/elliptic_table_100_msvc_X86_SSE2.qbk | 20 - boost/libs/math/doc/roots/minima.qbk | 264 - boost/libs/math/doc/roots/root_comparison.qbk | 250 - .../math/doc/roots/root_comparison_tables_gcc.qbk | 19 - .../doc/roots/root_comparison_tables_gcc_075.qbk | 27 - .../math/doc/roots/root_comparison_tables_msvc.qbk | 19 - .../doc/roots/root_comparison_tables_msvc_075.qbk | 27 - .../libs/math/doc/roots/root_finding_examples.qbk | 595 - .../math/doc/roots/root_n_comparison_tables.qbk | 30 - boost/libs/math/doc/roots/roots.qbk | 172 - boost/libs/math/doc/roots/roots_overview.qbk | 29 - .../doc/roots/roots_table_100_gcc_SEE_SEE2_X64.qbk | 37 - .../doc/roots/roots_table_100_gcc_X64_SSE2.qbk | 37 - boost/libs/math/doc/roots/roots_table_100_msvc.qbk | 37 - .../math/doc/roots/roots_table_100_msvc_AVX.qbk | 37 - .../doc/roots/roots_table_100_msvc_X64_AVX.qbk | 37 - .../math/doc/roots/roots_table_100_msvc_X86.qbk | 37 - .../doc/roots/roots_table_100_msvc_X86_SSE2.qbk | 37 - .../doc/roots/roots_table_75_gcc_SEE_SEE2_X64.qbk | 37 - .../math/doc/roots/roots_table_75_gcc_X64_SSE2.qbk | 37 - boost/libs/math/doc/roots/roots_table_75_msvc.qbk | 37 - .../math/doc/roots/roots_table_75_msvc_AVX.qbk | 37 - .../math/doc/roots/roots_table_75_msvc_X86.qbk | 37 - .../doc/roots/roots_table_75_msvc_X86_SSE2.qbk | 37 - .../math/doc/roots/roots_without_derivatives.qbk | 498 - .../math/doc/roots/type_info_table_100_msvc.qbk | 18 - .../math/doc/roots/type_info_table_75_msvc.qbk | 18 - boost/libs/math/doc/sf/airy.qbk | 384 - boost/libs/math/doc/sf/bernoulli_numbers.qbk | 223 - boost/libs/math/doc/sf/bessel_ik.qbk | 194 - boost/libs/math/doc/sf/bessel_introduction.qbk | 124 - boost/libs/math/doc/sf/bessel_jy.qbk | 548 - boost/libs/math/doc/sf/bessel_prime.qbk | 109 - boost/libs/math/doc/sf/bessel_spherical.qbk | 90 - boost/libs/math/doc/sf/beta.qbk | 110 - boost/libs/math/doc/sf/beta_derivative.qbk | 50 - boost/libs/math/doc/sf/digamma.qbk | 142 - boost/libs/math/doc/sf/ellint_carlson.qbk | 246 - boost/libs/math/doc/sf/ellint_introduction.qbk | 249 - boost/libs/math/doc/sf/ellint_legendre.qbk | 554 - boost/libs/math/doc/sf/erf.qbk | 142 - boost/libs/math/doc/sf/erf_inv.qbk | 136 - boost/libs/math/doc/sf/expint.qbk | 217 - boost/libs/math/doc/sf/factorials.qbk | 374 - boost/libs/math/doc/sf/gamma_derivatives.qbk | 54 - boost/libs/math/doc/sf/gamma_ratios.qbk | 98 - boost/libs/math/doc/sf/hankel.qbk | 136 - boost/libs/math/doc/sf/hermite.qbk | 107 - boost/libs/math/doc/sf/ibeta.qbk | 202 - boost/libs/math/doc/sf/ibeta_inv.qbk | 368 - boost/libs/math/doc/sf/igamma.qbk | 290 - boost/libs/math/doc/sf/igamma_inv.qbk | 169 - boost/libs/math/doc/sf/inv_hyper.qbk | 279 - boost/libs/math/doc/sf/jacobi_elliptic.qbk | 550 - boost/libs/math/doc/sf/laguerre.qbk | 159 - boost/libs/math/doc/sf/latin1_symbols.qbk | 115 - boost/libs/math/doc/sf/legendre.qbk | 228 - boost/libs/math/doc/sf/lgamma.qbk | 161 - boost/libs/math/doc/sf/license.qbk | 6 - boost/libs/math/doc/sf/number_series.qbk | 270 - boost/libs/math/doc/sf/owens_t.qbk | 136 - boost/libs/math/doc/sf/poisson_optimisation.qbk | 121 - boost/libs/math/doc/sf/polygamma.qbk | 110 - boost/libs/math/doc/sf/pow.qbk | 157 - boost/libs/math/doc/sf/powers.qbk | 350 - boost/libs/math/doc/sf/sinc.qbk | 110 - boost/libs/math/doc/sf/spherical_harmonic.qbk | 144 - boost/libs/math/doc/sf/test_html4_symbols.qbk | 144 - boost/libs/math/doc/sf/tgamma.qbk | 141 - boost/libs/math/doc/sf/trigamma.qbk | 79 - boost/libs/math/doc/sf/zeta.qbk | 119 - boost/libs/math/doc/tr1/c99_ref.qbk | 299 - boost/libs/math/doc/tr1/tr1_ref.qbk | 393 - boost/libs/math/doc/win32_nmake.mak | 73 - 1932 files changed, 215364 deletions(-) delete mode 100644 boost/libs/math/doc/Jamfile.v2 delete mode 100644 boost/libs/math/doc/background/error.qbk delete mode 100644 boost/libs/math/doc/background/implementation.qbk delete mode 100644 boost/libs/math/doc/background/lanczos.qbk delete mode 100644 boost/libs/math/doc/background/references.qbk delete mode 100644 boost/libs/math/doc/background/remez.qbk delete mode 100644 boost/libs/math/doc/background/special_tut.qbk delete mode 100644 boost/libs/math/doc/complex/complex-tr1.qbk delete mode 100644 boost/libs/math/doc/concepts/concepts.qbk delete mode 100644 boost/libs/math/doc/constants/constants.qbk delete mode 100644 boost/libs/math/doc/constants/pp_pi.hpp delete mode 100644 boost/libs/math/doc/cstdfloat/cstdfloat.qbk delete mode 100644 boost/libs/math/doc/cstdfloat/cstdfloat_header.qbk delete mode 100644 boost/libs/math/doc/cstdfloat/jamfile.v2 delete mode 100644 boost/libs/math/doc/distexplorer/Jamfile.v2 delete mode 100644 boost/libs/math/doc/distexplorer/distexplorer.qbk delete mode 100644 boost/libs/math/doc/distexplorer/html/index.html delete mode 100644 boost/libs/math/doc/distributions/arcsine.qbk delete mode 100644 boost/libs/math/doc/distributions/background.qbk delete mode 100644 boost/libs/math/doc/distributions/bernoulli.qbk delete mode 100644 boost/libs/math/doc/distributions/beta.qbk delete mode 100644 boost/libs/math/doc/distributions/binomial.qbk delete mode 100644 boost/libs/math/doc/distributions/binomial_example.qbk delete mode 100644 boost/libs/math/doc/distributions/c_sharp.qbk delete mode 100644 boost/libs/math/doc/distributions/cauchy.qbk delete mode 100644 boost/libs/math/doc/distributions/chi_squared.qbk delete mode 100644 boost/libs/math/doc/distributions/chi_squared_examples.qbk delete mode 100644 boost/libs/math/doc/distributions/dist_algorithms.qbk delete mode 100644 boost/libs/math/doc/distributions/dist_reference.qbk delete mode 100644 boost/libs/math/doc/distributions/dist_tutorial.qbk delete mode 100644 boost/libs/math/doc/distributions/distribution_construction.qbk delete mode 100644 boost/libs/math/doc/distributions/error_handling_example.qbk delete mode 100644 boost/libs/math/doc/distributions/exponential.qbk delete mode 100644 boost/libs/math/doc/distributions/extreme_value.qbk delete mode 100644 boost/libs/math/doc/distributions/f_dist_example.qbk delete mode 100644 boost/libs/math/doc/distributions/find_location_and_scale.qbk delete mode 100644 boost/libs/math/doc/distributions/fisher.qbk delete mode 100644 boost/libs/math/doc/distributions/gamma.qbk delete mode 100644 boost/libs/math/doc/distributions/geometric.qbk delete mode 100644 boost/libs/math/doc/distributions/geometric_example.qbk delete mode 100644 boost/libs/math/doc/distributions/hyperexponential.qbk delete mode 100644 boost/libs/math/doc/distributions/hypergeometric.qbk delete mode 100644 boost/libs/math/doc/distributions/inverse_chi_squared.qbk delete mode 100644 boost/libs/math/doc/distributions/inverse_chi_squared_eg.qbk delete mode 100644 boost/libs/math/doc/distributions/inverse_gamma.qbk delete mode 100644 boost/libs/math/doc/distributions/inverse_gamma_example.qbk delete mode 100644 boost/libs/math/doc/distributions/inverse_gaussian.qbk delete mode 100644 boost/libs/math/doc/distributions/laplace.qbk delete mode 100644 boost/libs/math/doc/distributions/logistic.qbk delete mode 100644 boost/libs/math/doc/distributions/lognormal.qbk delete mode 100644 boost/libs/math/doc/distributions/nag_library.qbk delete mode 100644 boost/libs/math/doc/distributions/nc_beta.qbk delete mode 100644 boost/libs/math/doc/distributions/nc_chi_squared.qbk delete mode 100644 boost/libs/math/doc/distributions/nc_chi_squared_example.qbk delete mode 100644 boost/libs/math/doc/distributions/nc_f.qbk delete mode 100644 boost/libs/math/doc/distributions/nc_t.qbk delete mode 100644 boost/libs/math/doc/distributions/negative_binomial.qbk delete mode 100644 boost/libs/math/doc/distributions/negative_binomial_example.qbk delete mode 100644 boost/libs/math/doc/distributions/non_members.qbk delete mode 100644 boost/libs/math/doc/distributions/normal.qbk delete mode 100644 boost/libs/math/doc/distributions/normal_example.qbk delete mode 100644 boost/libs/math/doc/distributions/pareto.qbk delete mode 100644 boost/libs/math/doc/distributions/poisson.qbk delete mode 100644 boost/libs/math/doc/distributions/rayleigh.qbk delete mode 100644 boost/libs/math/doc/distributions/skew_normal.qbk delete mode 100644 boost/libs/math/doc/distributions/students_t.qbk delete mode 100644 boost/libs/math/doc/distributions/students_t_examples.qbk delete mode 100644 boost/libs/math/doc/distributions/triangular.qbk delete mode 100644 boost/libs/math/doc/distributions/uniform.qbk delete mode 100644 boost/libs/math/doc/distributions/weibull.qbk delete mode 100644 boost/libs/math/doc/equations/acosh1.mml delete mode 100644 boost/libs/math/doc/equations/acosh1.png delete mode 100644 boost/libs/math/doc/equations/acosh1.svg delete mode 100644 boost/libs/math/doc/equations/acosh2.mml delete mode 100644 boost/libs/math/doc/equations/acosh2.png delete mode 100644 boost/libs/math/doc/equations/acosh2.svg delete mode 100644 boost/libs/math/doc/equations/acosh3.mml delete mode 100644 boost/libs/math/doc/equations/acosh3.png delete mode 100644 boost/libs/math/doc/equations/acosh3.svg delete mode 100644 boost/libs/math/doc/equations/acosh4.mml delete mode 100644 boost/libs/math/doc/equations/acosh4.png delete mode 100644 boost/libs/math/doc/equations/acosh4.svg delete mode 100644 boost/libs/math/doc/equations/airy.mml delete mode 100644 boost/libs/math/doc/equations/airy.png delete mode 100644 boost/libs/math/doc/equations/airy.svg delete mode 100644 boost/libs/math/doc/equations/airy_ai.mml delete mode 100644 boost/libs/math/doc/equations/airy_ai.png delete mode 100644 boost/libs/math/doc/equations/airy_ai.svg delete mode 100644 boost/libs/math/doc/equations/airy_aip.mml delete mode 100644 boost/libs/math/doc/equations/airy_aip.png delete mode 100644 boost/libs/math/doc/equations/airy_aip.svg delete mode 100644 boost/libs/math/doc/equations/airy_bi.mml delete mode 100644 boost/libs/math/doc/equations/airy_bi.png delete mode 100644 boost/libs/math/doc/equations/airy_bi.svg delete mode 100644 boost/libs/math/doc/equations/airy_bip.mml delete mode 100644 boost/libs/math/doc/equations/airy_bip.png delete mode 100644 boost/libs/math/doc/equations/airy_bip.svg delete mode 100644 boost/libs/math/doc/equations/airy_zero_1.mml delete mode 100644 boost/libs/math/doc/equations/airy_zero_1.svg delete mode 100644 boost/libs/math/doc/equations/airy_zero_2.mml delete mode 100644 boost/libs/math/doc/equations/airy_zero_2.svg delete mode 100644 boost/libs/math/doc/equations/airy_zero_3.mml delete mode 100644 boost/libs/math/doc/equations/airy_zero_3.svg delete mode 100644 boost/libs/math/doc/equations/asinh1.mml delete mode 100644 boost/libs/math/doc/equations/asinh1.png delete mode 100644 boost/libs/math/doc/equations/asinh1.svg delete mode 100644 boost/libs/math/doc/equations/asinh2.mml delete mode 100644 boost/libs/math/doc/equations/asinh2.png delete mode 100644 boost/libs/math/doc/equations/asinh2.svg delete mode 100644 boost/libs/math/doc/equations/asinh3.mml delete mode 100644 boost/libs/math/doc/equations/asinh3.png delete mode 100644 boost/libs/math/doc/equations/asinh3.svg delete mode 100644 boost/libs/math/doc/equations/asinh4.mml delete mode 100644 boost/libs/math/doc/equations/asinh4.png delete mode 100644 boost/libs/math/doc/equations/asinh4.svg delete mode 100644 boost/libs/math/doc/equations/atanh1.mml delete mode 100644 boost/libs/math/doc/equations/atanh1.png delete mode 100644 boost/libs/math/doc/equations/atanh1.svg delete mode 100644 boost/libs/math/doc/equations/atanh2.mml delete mode 100644 boost/libs/math/doc/equations/atanh2.png delete mode 100644 boost/libs/math/doc/equations/atanh2.svg delete mode 100644 boost/libs/math/doc/equations/atanh3.mml delete mode 100644 boost/libs/math/doc/equations/atanh3.png delete mode 100644 boost/libs/math/doc/equations/atanh3.svg delete mode 100644 boost/libs/math/doc/equations/bernoulli_numbers.mml delete mode 100644 boost/libs/math/doc/equations/bernoulli_numbers.png delete mode 100644 boost/libs/math/doc/equations/bernoulli_numbers.svg delete mode 100644 boost/libs/math/doc/equations/bernoulli_numbers2.mml delete mode 100644 boost/libs/math/doc/equations/bernoulli_numbers2.png delete mode 100644 boost/libs/math/doc/equations/bernoulli_numbers2.svg delete mode 100644 boost/libs/math/doc/equations/bessel1.mml delete mode 100644 boost/libs/math/doc/equations/bessel1.png delete mode 100644 boost/libs/math/doc/equations/bessel1.svg delete mode 100644 boost/libs/math/doc/equations/bessel10.mml delete mode 100644 boost/libs/math/doc/equations/bessel10.png delete mode 100644 boost/libs/math/doc/equations/bessel10.svg delete mode 100644 boost/libs/math/doc/equations/bessel11.mml delete mode 100644 boost/libs/math/doc/equations/bessel11.png delete mode 100644 boost/libs/math/doc/equations/bessel11.svg delete mode 100644 boost/libs/math/doc/equations/bessel12.mml delete mode 100644 boost/libs/math/doc/equations/bessel12.png delete mode 100644 boost/libs/math/doc/equations/bessel12.svg delete mode 100644 boost/libs/math/doc/equations/bessel13.mml delete mode 100644 boost/libs/math/doc/equations/bessel13.png delete mode 100644 boost/libs/math/doc/equations/bessel13.svg delete mode 100644 boost/libs/math/doc/equations/bessel14.mml delete mode 100644 boost/libs/math/doc/equations/bessel14.png delete mode 100644 boost/libs/math/doc/equations/bessel14.svg delete mode 100644 boost/libs/math/doc/equations/bessel15.mml delete mode 100644 boost/libs/math/doc/equations/bessel15.png delete mode 100644 boost/libs/math/doc/equations/bessel15.svg delete mode 100644 boost/libs/math/doc/equations/bessel16.mml delete mode 100644 boost/libs/math/doc/equations/bessel16.png delete mode 100644 boost/libs/math/doc/equations/bessel16.svg delete mode 100644 boost/libs/math/doc/equations/bessel2.mml delete mode 100644 boost/libs/math/doc/equations/bessel2.png delete mode 100644 boost/libs/math/doc/equations/bessel2.svg delete mode 100644 boost/libs/math/doc/equations/bessel3.mml delete mode 100644 boost/libs/math/doc/equations/bessel3.png delete mode 100644 boost/libs/math/doc/equations/bessel3.svg delete mode 100644 boost/libs/math/doc/equations/bessel4.mml delete mode 100644 boost/libs/math/doc/equations/bessel4.png delete mode 100644 boost/libs/math/doc/equations/bessel4.svg delete mode 100644 boost/libs/math/doc/equations/bessel5.mml delete mode 100644 boost/libs/math/doc/equations/bessel5.png delete mode 100644 boost/libs/math/doc/equations/bessel5.svg delete mode 100644 boost/libs/math/doc/equations/bessel6.mml delete mode 100644 boost/libs/math/doc/equations/bessel6.png delete mode 100644 boost/libs/math/doc/equations/bessel6.svg delete mode 100644 boost/libs/math/doc/equations/bessel7.mml delete mode 100644 boost/libs/math/doc/equations/bessel7.png delete mode 100644 boost/libs/math/doc/equations/bessel7.svg delete mode 100644 boost/libs/math/doc/equations/bessel8.mml delete mode 100644 boost/libs/math/doc/equations/bessel8.png delete mode 100644 boost/libs/math/doc/equations/bessel8.svg delete mode 100644 boost/libs/math/doc/equations/bessel9.mml delete mode 100644 boost/libs/math/doc/equations/bessel9.png delete mode 100644 boost/libs/math/doc/equations/bessel9.svg delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives1.mml delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives1.png delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives1.svg delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives2.mml delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives2.png delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives2.svg delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives3.mml delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives3.png delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives3.svg delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives4.mml delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives4.png delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives4.svg delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives5.mml delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives5.png delete mode 100644 boost/libs/math/doc/equations/bessel_derivatives5.svg delete mode 100644 boost/libs/math/doc/equations/bessel_y0_small_z.mml delete mode 100644 boost/libs/math/doc/equations/bessel_y0_small_z.png delete mode 100644 boost/libs/math/doc/equations/bessel_y0_small_z.svg delete mode 100644 boost/libs/math/doc/equations/bessel_y1_small_z.mml delete mode 100644 boost/libs/math/doc/equations/bessel_y1_small_z.png delete mode 100644 boost/libs/math/doc/equations/bessel_y1_small_z.svg delete mode 100644 boost/libs/math/doc/equations/bessel_y2_small_z.mml delete mode 100644 boost/libs/math/doc/equations/bessel_y2_small_z.png delete mode 100644 boost/libs/math/doc/equations/bessel_y2_small_z.svg delete mode 100644 boost/libs/math/doc/equations/bessel_yn_small_z.mml delete mode 100644 boost/libs/math/doc/equations/bessel_yn_small_z.png delete mode 100644 boost/libs/math/doc/equations/bessel_yn_small_z.svg delete mode 100644 boost/libs/math/doc/equations/bessel_yv_small_z.mml delete mode 100644 boost/libs/math/doc/equations/bessel_yv_small_z.png delete mode 100644 boost/libs/math/doc/equations/bessel_yv_small_z.svg delete mode 100644 boost/libs/math/doc/equations/beta1.mml delete mode 100644 boost/libs/math/doc/equations/beta1.png delete mode 100644 boost/libs/math/doc/equations/beta1.svg delete mode 100644 boost/libs/math/doc/equations/beta1.svg.svg delete mode 100644 boost/libs/math/doc/equations/beta2.mml delete mode 100644 boost/libs/math/doc/equations/beta2.png delete mode 100644 boost/libs/math/doc/equations/beta2.svg delete mode 100644 boost/libs/math/doc/equations/beta3.mml delete mode 100644 boost/libs/math/doc/equations/beta3.png delete mode 100644 boost/libs/math/doc/equations/beta3.svg delete mode 100644 boost/libs/math/doc/equations/beta4.mml delete mode 100644 boost/libs/math/doc/equations/beta4.png delete mode 100644 boost/libs/math/doc/equations/beta4.svg delete mode 100644 boost/libs/math/doc/equations/beta5.mml delete mode 100644 boost/libs/math/doc/equations/beta5.png delete mode 100644 boost/libs/math/doc/equations/beta5.svg delete mode 100644 boost/libs/math/doc/equations/beta6.mml delete mode 100644 boost/libs/math/doc/equations/beta6.png delete mode 100644 boost/libs/math/doc/equations/beta6.svg delete mode 100644 boost/libs/math/doc/equations/beta7.mml delete mode 100644 boost/libs/math/doc/equations/beta7.png delete mode 100644 boost/libs/math/doc/equations/beta7.svg delete mode 100644 boost/libs/math/doc/equations/beta8.mml delete mode 100644 boost/libs/math/doc/equations/beta8.png delete mode 100644 boost/libs/math/doc/equations/beta8.svg delete mode 100644 boost/libs/math/doc/equations/beta_dist_kurtosis.mml delete mode 100644 boost/libs/math/doc/equations/beta_dist_kurtosis.png delete mode 100644 boost/libs/math/doc/equations/beta_dist_kurtosis.svg delete mode 100644 boost/libs/math/doc/equations/binomial_ref1.mml delete mode 100644 boost/libs/math/doc/equations/binomial_ref1.png delete mode 100644 boost/libs/math/doc/equations/binomial_ref1.svg delete mode 100644 boost/libs/math/doc/equations/binomial_ref2.mml delete mode 100644 boost/libs/math/doc/equations/binomial_ref2.png delete mode 100644 boost/libs/math/doc/equations/binomial_ref2.svg delete mode 100644 boost/libs/math/doc/equations/cauchy_ref1.mml delete mode 100644 boost/libs/math/doc/equations/cauchy_ref1.png delete mode 100644 boost/libs/math/doc/equations/cauchy_ref1.svg delete mode 100644 boost/libs/math/doc/equations/chf.mml delete mode 100644 boost/libs/math/doc/equations/chf.png delete mode 100644 boost/libs/math/doc/equations/chf.svg delete mode 100644 boost/libs/math/doc/equations/chi_squ_ref1.mml delete mode 100644 boost/libs/math/doc/equations/chi_squ_ref1.png delete mode 100644 boost/libs/math/doc/equations/chi_squ_ref1.svg delete mode 100644 boost/libs/math/doc/equations/chi_squ_tut1.mml delete mode 100644 boost/libs/math/doc/equations/chi_squ_tut1.png delete mode 100644 boost/libs/math/doc/equations/chi_squ_tut1.svg delete mode 100644 boost/libs/math/doc/equations/chi_squ_tut2.mml delete mode 100644 boost/libs/math/doc/equations/chi_squ_tut2.png delete mode 100644 boost/libs/math/doc/equations/chi_squ_tut2.svg delete mode 100644 boost/libs/math/doc/equations/chi_squ_tut3.mml delete mode 100644 boost/libs/math/doc/equations/chi_squ_tut3.png delete mode 100644 boost/libs/math/doc/equations/chi_squ_tut3.svg delete mode 100644 boost/libs/math/doc/equations/derivative1.mml delete mode 100644 boost/libs/math/doc/equations/derivative1.png delete mode 100644 boost/libs/math/doc/equations/derivative1.svg delete mode 100644 boost/libs/math/doc/equations/derivative2.mml delete mode 100644 boost/libs/math/doc/equations/derivative2.png delete mode 100644 boost/libs/math/doc/equations/derivative2.svg delete mode 100644 boost/libs/math/doc/equations/digamma1.mml delete mode 100644 boost/libs/math/doc/equations/digamma1.png delete mode 100644 boost/libs/math/doc/equations/digamma1.svg delete mode 100644 boost/libs/math/doc/equations/digamma2.mml delete mode 100644 boost/libs/math/doc/equations/digamma2.png delete mode 100644 boost/libs/math/doc/equations/digamma2.svg delete mode 100644 boost/libs/math/doc/equations/digamma3.mml delete mode 100644 boost/libs/math/doc/equations/digamma3.png delete mode 100644 boost/libs/math/doc/equations/digamma3.svg delete mode 100644 boost/libs/math/doc/equations/digamma4.mml delete mode 100644 boost/libs/math/doc/equations/digamma4.png delete mode 100644 boost/libs/math/doc/equations/digamma4.svg delete mode 100644 boost/libs/math/doc/equations/digamma5.mml delete mode 100644 boost/libs/math/doc/equations/digamma5.png delete mode 100644 boost/libs/math/doc/equations/digamma5.svg delete mode 100644 boost/libs/math/doc/equations/dist_tutorial1.mml delete mode 100644 boost/libs/math/doc/equations/dist_tutorial1.png delete mode 100644 boost/libs/math/doc/equations/dist_tutorial1.svg delete mode 100644 boost/libs/math/doc/equations/dist_tutorial2.mml delete mode 100644 boost/libs/math/doc/equations/dist_tutorial2.png delete mode 100644 boost/libs/math/doc/equations/dist_tutorial2.svg delete mode 100644 boost/libs/math/doc/equations/dist_tutorial3.mml delete mode 100644 boost/libs/math/doc/equations/dist_tutorial3.png delete mode 100644 boost/libs/math/doc/equations/dist_tutorial3.svg delete mode 100644 boost/libs/math/doc/equations/dist_tutorial4.mml delete mode 100644 boost/libs/math/doc/equations/dist_tutorial4.png delete mode 100644 boost/libs/math/doc/equations/dist_tutorial4.svg delete mode 100644 boost/libs/math/doc/equations/ellint1.mml delete mode 100644 boost/libs/math/doc/equations/ellint1.png delete mode 100644 boost/libs/math/doc/equations/ellint1.svg delete mode 100644 boost/libs/math/doc/equations/ellint10.mml delete mode 100644 boost/libs/math/doc/equations/ellint10.png delete mode 100644 boost/libs/math/doc/equations/ellint10.svg delete mode 100644 boost/libs/math/doc/equations/ellint11.mml delete mode 100644 boost/libs/math/doc/equations/ellint11.png delete mode 100644 boost/libs/math/doc/equations/ellint11.svg delete mode 100644 boost/libs/math/doc/equations/ellint12.mml delete mode 100644 boost/libs/math/doc/equations/ellint12.png delete mode 100644 boost/libs/math/doc/equations/ellint12.svg delete mode 100644 boost/libs/math/doc/equations/ellint13.mml delete mode 100644 boost/libs/math/doc/equations/ellint13.png delete mode 100644 boost/libs/math/doc/equations/ellint13.svg delete mode 100644 boost/libs/math/doc/equations/ellint14.mml delete mode 100644 boost/libs/math/doc/equations/ellint14.png delete mode 100644 boost/libs/math/doc/equations/ellint14.svg delete mode 100644 boost/libs/math/doc/equations/ellint15.mml delete mode 100644 boost/libs/math/doc/equations/ellint15.png delete mode 100644 boost/libs/math/doc/equations/ellint15.svg delete mode 100644 boost/libs/math/doc/equations/ellint16.mml delete mode 100644 boost/libs/math/doc/equations/ellint16.png delete mode 100644 boost/libs/math/doc/equations/ellint16.svg delete mode 100644 boost/libs/math/doc/equations/ellint17.mml delete mode 100644 boost/libs/math/doc/equations/ellint17.png delete mode 100644 boost/libs/math/doc/equations/ellint17.svg delete mode 100644 boost/libs/math/doc/equations/ellint18.mml delete mode 100644 boost/libs/math/doc/equations/ellint18.png delete mode 100644 boost/libs/math/doc/equations/ellint18.svg delete mode 100644 boost/libs/math/doc/equations/ellint19.mml delete mode 100644 boost/libs/math/doc/equations/ellint19.png delete mode 100644 boost/libs/math/doc/equations/ellint19.svg delete mode 100644 boost/libs/math/doc/equations/ellint2.mml delete mode 100644 boost/libs/math/doc/equations/ellint2.png delete mode 100644 boost/libs/math/doc/equations/ellint2.svg delete mode 100644 boost/libs/math/doc/equations/ellint20.mml delete mode 100644 boost/libs/math/doc/equations/ellint20.png delete mode 100644 boost/libs/math/doc/equations/ellint20.svg delete mode 100644 boost/libs/math/doc/equations/ellint21.mml delete mode 100644 boost/libs/math/doc/equations/ellint21.png delete mode 100644 boost/libs/math/doc/equations/ellint21.svg delete mode 100644 boost/libs/math/doc/equations/ellint22.mml delete mode 100644 boost/libs/math/doc/equations/ellint22.png delete mode 100644 boost/libs/math/doc/equations/ellint22.svg delete mode 100644 boost/libs/math/doc/equations/ellint23.mml delete mode 100644 boost/libs/math/doc/equations/ellint23.png delete mode 100644 boost/libs/math/doc/equations/ellint23.svg delete mode 100644 boost/libs/math/doc/equations/ellint24.mml delete mode 100644 boost/libs/math/doc/equations/ellint24.png delete mode 100644 boost/libs/math/doc/equations/ellint24.svg delete mode 100644 boost/libs/math/doc/equations/ellint25.mml delete mode 100644 boost/libs/math/doc/equations/ellint25.png delete mode 100644 boost/libs/math/doc/equations/ellint25.svg delete mode 100644 boost/libs/math/doc/equations/ellint26.mml delete mode 100644 boost/libs/math/doc/equations/ellint26.png delete mode 100644 boost/libs/math/doc/equations/ellint26.svg delete mode 100644 boost/libs/math/doc/equations/ellint27.mml delete mode 100644 boost/libs/math/doc/equations/ellint27.png delete mode 100644 boost/libs/math/doc/equations/ellint27.svg delete mode 100644 boost/libs/math/doc/equations/ellint3.mml delete mode 100644 boost/libs/math/doc/equations/ellint3.png delete mode 100644 boost/libs/math/doc/equations/ellint3.svg delete mode 100644 boost/libs/math/doc/equations/ellint4.mml delete mode 100644 boost/libs/math/doc/equations/ellint4.png delete mode 100644 boost/libs/math/doc/equations/ellint4.svg delete mode 100644 boost/libs/math/doc/equations/ellint5.mml delete mode 100644 boost/libs/math/doc/equations/ellint5.png delete mode 100644 boost/libs/math/doc/equations/ellint5.svg delete mode 100644 boost/libs/math/doc/equations/ellint6.mml delete mode 100644 boost/libs/math/doc/equations/ellint6.png delete mode 100644 boost/libs/math/doc/equations/ellint6.svg delete mode 100644 boost/libs/math/doc/equations/ellint7.mml delete mode 100644 boost/libs/math/doc/equations/ellint7.png delete mode 100644 boost/libs/math/doc/equations/ellint7.svg delete mode 100644 boost/libs/math/doc/equations/ellint8.mml delete mode 100644 boost/libs/math/doc/equations/ellint8.png delete mode 100644 boost/libs/math/doc/equations/ellint8.svg delete mode 100644 boost/libs/math/doc/equations/ellint9.mml delete mode 100644 boost/libs/math/doc/equations/ellint9.png delete mode 100644 boost/libs/math/doc/equations/ellint9.svg delete mode 100644 boost/libs/math/doc/equations/ellint_d.mml delete mode 100644 boost/libs/math/doc/equations/ellint_d.png delete mode 100644 boost/libs/math/doc/equations/ellint_d.svg delete mode 100644 boost/libs/math/doc/equations/ellint_rg.svg delete mode 100644 boost/libs/math/doc/equations/erf1.mml delete mode 100644 boost/libs/math/doc/equations/erf1.png delete mode 100644 boost/libs/math/doc/equations/erf1.svg delete mode 100644 boost/libs/math/doc/equations/erf2.mml delete mode 100644 boost/libs/math/doc/equations/erf2.png delete mode 100644 boost/libs/math/doc/equations/erf2.svg delete mode 100644 boost/libs/math/doc/equations/error1.mml delete mode 100644 boost/libs/math/doc/equations/error1.png delete mode 100644 boost/libs/math/doc/equations/error1.svg delete mode 100644 boost/libs/math/doc/equations/error2.mml delete mode 100644 boost/libs/math/doc/equations/error2.png delete mode 100644 boost/libs/math/doc/equations/error2.svg delete mode 100644 boost/libs/math/doc/equations/expint_i_1.mml delete mode 100644 boost/libs/math/doc/equations/expint_i_1.png delete mode 100644 boost/libs/math/doc/equations/expint_i_1.svg delete mode 100644 boost/libs/math/doc/equations/expint_i_2.mml delete mode 100644 boost/libs/math/doc/equations/expint_i_2.png delete mode 100644 boost/libs/math/doc/equations/expint_i_2.svg delete mode 100644 boost/libs/math/doc/equations/expint_i_3.mml delete mode 100644 boost/libs/math/doc/equations/expint_i_3.png delete mode 100644 boost/libs/math/doc/equations/expint_i_3.svg delete mode 100644 boost/libs/math/doc/equations/expint_i_4.mml delete mode 100644 boost/libs/math/doc/equations/expint_i_4.png delete mode 100644 boost/libs/math/doc/equations/expint_i_4.svg delete mode 100644 boost/libs/math/doc/equations/expint_n_1.mml delete mode 100644 boost/libs/math/doc/equations/expint_n_1.png delete mode 100644 boost/libs/math/doc/equations/expint_n_1.svg delete mode 100644 boost/libs/math/doc/equations/expint_n_2.mml delete mode 100644 boost/libs/math/doc/equations/expint_n_2.png delete mode 100644 boost/libs/math/doc/equations/expint_n_2.svg delete mode 100644 boost/libs/math/doc/equations/expint_n_3.mml delete mode 100644 boost/libs/math/doc/equations/expint_n_3.png delete mode 100644 boost/libs/math/doc/equations/expint_n_3.svg delete mode 100644 boost/libs/math/doc/equations/expint_n_4.mml delete mode 100644 boost/libs/math/doc/equations/expint_n_4.png delete mode 100644 boost/libs/math/doc/equations/expint_n_4.svg delete mode 100644 boost/libs/math/doc/equations/expint_n_5.mml delete mode 100644 boost/libs/math/doc/equations/expint_n_5.png delete mode 100644 boost/libs/math/doc/equations/expint_n_5.svg delete mode 100644 boost/libs/math/doc/equations/exponential_dist_ref1.mml delete mode 100644 boost/libs/math/doc/equations/exponential_dist_ref1.png delete mode 100644 boost/libs/math/doc/equations/exponential_dist_ref1.svg delete mode 100644 boost/libs/math/doc/equations/fisher_pdf.mml delete mode 100644 boost/libs/math/doc/equations/fisher_pdf.png delete mode 100644 boost/libs/math/doc/equations/fisher_pdf.svg delete mode 100644 boost/libs/math/doc/equations/fraction1.mml delete mode 100644 boost/libs/math/doc/equations/fraction1.png delete mode 100644 boost/libs/math/doc/equations/fraction1.svg delete mode 100644 boost/libs/math/doc/equations/fraction2.mml delete mode 100644 boost/libs/math/doc/equations/fraction2.png delete mode 100644 boost/libs/math/doc/equations/fraction2.svg delete mode 100644 boost/libs/math/doc/equations/fraction3.mml delete mode 100644 boost/libs/math/doc/equations/fraction3.png delete mode 100644 boost/libs/math/doc/equations/fraction3.svg delete mode 100644 boost/libs/math/doc/equations/fraction4.mml delete mode 100644 boost/libs/math/doc/equations/fraction4.png delete mode 100644 boost/libs/math/doc/equations/fraction4.svg delete mode 100644 boost/libs/math/doc/equations/gamm1.mml delete mode 100644 boost/libs/math/doc/equations/gamm1.png delete mode 100644 boost/libs/math/doc/equations/gamm1.svg delete mode 100644 boost/libs/math/doc/equations/gamm2.mml delete mode 100644 boost/libs/math/doc/equations/gamm2.png delete mode 100644 boost/libs/math/doc/equations/gamm2.svg delete mode 100644 boost/libs/math/doc/equations/gamm3.mml delete mode 100644 boost/libs/math/doc/equations/gamm3.png delete mode 100644 boost/libs/math/doc/equations/gamm3.svg delete mode 100644 boost/libs/math/doc/equations/gamm4.mml delete mode 100644 boost/libs/math/doc/equations/gamm4.png delete mode 100644 boost/libs/math/doc/equations/gamm4.svg delete mode 100644 boost/libs/math/doc/equations/gamm5.mml delete mode 100644 boost/libs/math/doc/equations/gamm5.png delete mode 100644 boost/libs/math/doc/equations/gamm5.svg delete mode 100644 boost/libs/math/doc/equations/gamma6.mml delete mode 100644 boost/libs/math/doc/equations/gamma6.png delete mode 100644 boost/libs/math/doc/equations/gamma6.svg delete mode 100644 boost/libs/math/doc/equations/gamma_dist_ref1.mml delete mode 100644 boost/libs/math/doc/equations/gamma_dist_ref1.png delete mode 100644 boost/libs/math/doc/equations/gamma_dist_ref1.svg delete mode 100644 boost/libs/math/doc/equations/gamma_dist_ref2.mml delete mode 100644 boost/libs/math/doc/equations/gamma_dist_ref2.png delete mode 100644 boost/libs/math/doc/equations/gamma_dist_ref2.svg delete mode 100644 boost/libs/math/doc/equations/gamma_ratio0.mml delete mode 100644 boost/libs/math/doc/equations/gamma_ratio0.png delete mode 100644 boost/libs/math/doc/equations/gamma_ratio0.svg delete mode 100644 boost/libs/math/doc/equations/gamma_ratio1.mml delete mode 100644 boost/libs/math/doc/equations/gamma_ratio1.png delete mode 100644 boost/libs/math/doc/equations/gamma_ratio1.svg delete mode 100644 boost/libs/math/doc/equations/generate.sh delete mode 100644 boost/libs/math/doc/equations/hankel1.mml delete mode 100644 boost/libs/math/doc/equations/hankel1.png delete mode 100644 boost/libs/math/doc/equations/hankel1.svg delete mode 100644 boost/libs/math/doc/equations/hankel2.mml delete mode 100644 boost/libs/math/doc/equations/hankel2.png delete mode 100644 boost/libs/math/doc/equations/hankel2.svg delete mode 100644 boost/libs/math/doc/equations/hankel3.mml delete mode 100644 boost/libs/math/doc/equations/hankel3.png delete mode 100644 boost/libs/math/doc/equations/hankel3.svg delete mode 100644 boost/libs/math/doc/equations/hankel4.mml delete mode 100644 boost/libs/math/doc/equations/hankel4.png delete mode 100644 boost/libs/math/doc/equations/hankel4.svg delete mode 100644 boost/libs/math/doc/equations/hankel5.mml delete mode 100644 boost/libs/math/doc/equations/hankel5.png delete mode 100644 boost/libs/math/doc/equations/hankel5.svg delete mode 100644 boost/libs/math/doc/equations/hazard.mml delete mode 100644 boost/libs/math/doc/equations/hazard.png delete mode 100644 boost/libs/math/doc/equations/hazard.svg delete mode 100644 boost/libs/math/doc/equations/hermite_0.mml delete mode 100644 boost/libs/math/doc/equations/hermite_0.png delete mode 100644 boost/libs/math/doc/equations/hermite_0.svg delete mode 100644 boost/libs/math/doc/equations/hermite_1.mml delete mode 100644 boost/libs/math/doc/equations/hermite_1.png delete mode 100644 boost/libs/math/doc/equations/hermite_1.svg delete mode 100644 boost/libs/math/doc/equations/heuman_lambda.mml delete mode 100644 boost/libs/math/doc/equations/heuman_lambda.png delete mode 100644 boost/libs/math/doc/equations/heuman_lambda.svg delete mode 100644 boost/libs/math/doc/equations/hyperexponential_ccdf.mml delete mode 100644 boost/libs/math/doc/equations/hyperexponential_ccdf.png delete mode 100644 boost/libs/math/doc/equations/hyperexponential_ccdf.svg delete mode 100644 boost/libs/math/doc/equations/hyperexponential_cdf.mml delete mode 100644 boost/libs/math/doc/equations/hyperexponential_cdf.png delete mode 100644 boost/libs/math/doc/equations/hyperexponential_cdf.svg delete mode 100644 boost/libs/math/doc/equations/hyperexponential_kurtosis.mml delete mode 100644 boost/libs/math/doc/equations/hyperexponential_kurtosis.png delete mode 100644 boost/libs/math/doc/equations/hyperexponential_kurtosis.svg delete mode 100644 boost/libs/math/doc/equations/hyperexponential_mean.mml delete mode 100644 boost/libs/math/doc/equations/hyperexponential_mean.png delete mode 100644 boost/libs/math/doc/equations/hyperexponential_mean.svg delete mode 100644 boost/libs/math/doc/equations/hyperexponential_pdf.mml delete mode 100644 boost/libs/math/doc/equations/hyperexponential_pdf.png delete mode 100644 boost/libs/math/doc/equations/hyperexponential_pdf.svg delete mode 100644 boost/libs/math/doc/equations/hyperexponential_skewness.mml delete mode 100644 boost/libs/math/doc/equations/hyperexponential_skewness.png delete mode 100644 boost/libs/math/doc/equations/hyperexponential_skewness.svg delete mode 100644 boost/libs/math/doc/equations/hyperexponential_variance.mml delete mode 100644 boost/libs/math/doc/equations/hyperexponential_variance.png delete mode 100644 boost/libs/math/doc/equations/hyperexponential_variance.svg delete mode 100644 boost/libs/math/doc/equations/hypergeometric1.mml delete mode 100644 boost/libs/math/doc/equations/hypergeometric1.png delete mode 100644 boost/libs/math/doc/equations/hypergeometric1.svg delete mode 100644 boost/libs/math/doc/equations/hypergeometric2.mml delete mode 100644 boost/libs/math/doc/equations/hypergeometric2.png delete mode 100644 boost/libs/math/doc/equations/hypergeometric2.svg delete mode 100644 boost/libs/math/doc/equations/hypergeometric3.mml delete mode 100644 boost/libs/math/doc/equations/hypergeometric3.png delete mode 100644 boost/libs/math/doc/equations/hypergeometric3.svg delete mode 100644 boost/libs/math/doc/equations/hypergeometric4.mml delete mode 100644 boost/libs/math/doc/equations/hypergeometric4.png delete mode 100644 boost/libs/math/doc/equations/hypergeometric4.svg delete mode 100644 boost/libs/math/doc/equations/hypergeometric5.mml delete mode 100644 boost/libs/math/doc/equations/hypergeometric5.png delete mode 100644 boost/libs/math/doc/equations/hypergeometric5.svg delete mode 100644 boost/libs/math/doc/equations/hypergeometric6.mml delete mode 100644 boost/libs/math/doc/equations/hypergeometric6.png delete mode 100644 boost/libs/math/doc/equations/hypergeometric6.svg delete mode 100644 boost/libs/math/doc/equations/hypot.mml delete mode 100644 boost/libs/math/doc/equations/hypot.png delete mode 100644 boost/libs/math/doc/equations/hypot.svg delete mode 100644 boost/libs/math/doc/equations/hypot2.mml delete mode 100644 boost/libs/math/doc/equations/hypot2.png delete mode 100644 boost/libs/math/doc/equations/hypot2.svg delete mode 100644 boost/libs/math/doc/equations/ibeta1.mml delete mode 100644 boost/libs/math/doc/equations/ibeta1.png delete mode 100644 boost/libs/math/doc/equations/ibeta1.svg delete mode 100644 boost/libs/math/doc/equations/ibeta10.mml delete mode 100644 boost/libs/math/doc/equations/ibeta10.png delete mode 100644 boost/libs/math/doc/equations/ibeta10.svg delete mode 100644 boost/libs/math/doc/equations/ibeta11.mml delete mode 100644 boost/libs/math/doc/equations/ibeta11.png delete mode 100644 boost/libs/math/doc/equations/ibeta11.svg delete mode 100644 boost/libs/math/doc/equations/ibeta12.mml delete mode 100644 boost/libs/math/doc/equations/ibeta12.png delete mode 100644 boost/libs/math/doc/equations/ibeta12.svg delete mode 100644 boost/libs/math/doc/equations/ibeta2.mml delete mode 100644 boost/libs/math/doc/equations/ibeta2.png delete mode 100644 boost/libs/math/doc/equations/ibeta2.svg delete mode 100644 boost/libs/math/doc/equations/ibeta3.mml delete mode 100644 boost/libs/math/doc/equations/ibeta3.png delete mode 100644 boost/libs/math/doc/equations/ibeta3.svg delete mode 100644 boost/libs/math/doc/equations/ibeta4.mml delete mode 100644 boost/libs/math/doc/equations/ibeta4.png delete mode 100644 boost/libs/math/doc/equations/ibeta4.svg delete mode 100644 boost/libs/math/doc/equations/ibeta5.mml delete mode 100644 boost/libs/math/doc/equations/ibeta5.png delete mode 100644 boost/libs/math/doc/equations/ibeta5.svg delete mode 100644 boost/libs/math/doc/equations/ibeta6.mml delete mode 100644 boost/libs/math/doc/equations/ibeta6.png delete mode 100644 boost/libs/math/doc/equations/ibeta6.svg delete mode 100644 boost/libs/math/doc/equations/ibeta7.mml delete mode 100644 boost/libs/math/doc/equations/ibeta7.png delete mode 100644 boost/libs/math/doc/equations/ibeta7.svg delete mode 100644 boost/libs/math/doc/equations/ibeta8.mml delete mode 100644 boost/libs/math/doc/equations/ibeta8.png delete mode 100644 boost/libs/math/doc/equations/ibeta8.svg delete mode 100644 boost/libs/math/doc/equations/ibeta9.mml delete mode 100644 boost/libs/math/doc/equations/ibeta9.png delete mode 100644 boost/libs/math/doc/equations/ibeta9.svg delete mode 100644 boost/libs/math/doc/equations/ibeta_inv1.mml delete mode 100644 boost/libs/math/doc/equations/ibeta_inv1.png delete mode 100644 boost/libs/math/doc/equations/ibeta_inv1.svg delete mode 100644 boost/libs/math/doc/equations/ibeta_inv2.mml delete mode 100644 boost/libs/math/doc/equations/ibeta_inv2.png delete mode 100644 boost/libs/math/doc/equations/ibeta_inv2.svg delete mode 100644 boost/libs/math/doc/equations/ibeta_inv3.mml delete mode 100644 boost/libs/math/doc/equations/ibeta_inv3.png delete mode 100644 boost/libs/math/doc/equations/ibeta_inv3.svg delete mode 100644 boost/libs/math/doc/equations/ibeta_inv4.mml delete mode 100644 boost/libs/math/doc/equations/ibeta_inv4.png delete mode 100644 boost/libs/math/doc/equations/ibeta_inv4.svg delete mode 100644 boost/libs/math/doc/equations/ibeta_inv5.mml delete mode 100644 boost/libs/math/doc/equations/ibeta_inv5.png delete mode 100644 boost/libs/math/doc/equations/ibeta_inv5.svg delete mode 100644 boost/libs/math/doc/equations/ibeta_inv6.mml delete mode 100644 boost/libs/math/doc/equations/ibeta_inv6.png delete mode 100644 boost/libs/math/doc/equations/ibeta_inv6.svg delete mode 100644 boost/libs/math/doc/equations/ibeta_inv7.mml delete mode 100644 boost/libs/math/doc/equations/ibeta_inv7.png delete mode 100644 boost/libs/math/doc/equations/ibeta_inv7.svg delete mode 100644 boost/libs/math/doc/equations/ibeta_inv8.mml delete mode 100644 boost/libs/math/doc/equations/ibeta_inv8.png delete mode 100644 boost/libs/math/doc/equations/ibeta_inv8.svg delete mode 100644 boost/libs/math/doc/equations/igamma1.mml delete mode 100644 boost/libs/math/doc/equations/igamma1.png delete mode 100644 boost/libs/math/doc/equations/igamma1.svg delete mode 100644 boost/libs/math/doc/equations/igamma10.mml delete mode 100644 boost/libs/math/doc/equations/igamma10.png delete mode 100644 boost/libs/math/doc/equations/igamma10.svg delete mode 100644 boost/libs/math/doc/equations/igamma11.mml delete mode 100644 boost/libs/math/doc/equations/igamma11.png delete mode 100644 boost/libs/math/doc/equations/igamma11.svg delete mode 100644 boost/libs/math/doc/equations/igamma11b.mml delete mode 100644 boost/libs/math/doc/equations/igamma11b.png delete mode 100644 boost/libs/math/doc/equations/igamma11b.svg delete mode 100644 boost/libs/math/doc/equations/igamma12.mml delete mode 100644 boost/libs/math/doc/equations/igamma12.png delete mode 100644 boost/libs/math/doc/equations/igamma12.svg delete mode 100644 boost/libs/math/doc/equations/igamma13.mml delete mode 100644 boost/libs/math/doc/equations/igamma13.png delete mode 100644 boost/libs/math/doc/equations/igamma13.svg delete mode 100644 boost/libs/math/doc/equations/igamma16.mml delete mode 100644 boost/libs/math/doc/equations/igamma16.png delete mode 100644 boost/libs/math/doc/equations/igamma16.svg delete mode 100644 boost/libs/math/doc/equations/igamma17.mml delete mode 100644 boost/libs/math/doc/equations/igamma17.png delete mode 100644 boost/libs/math/doc/equations/igamma17.svg delete mode 100644 boost/libs/math/doc/equations/igamma18.mml delete mode 100644 boost/libs/math/doc/equations/igamma18.png delete mode 100644 boost/libs/math/doc/equations/igamma18.svg delete mode 100644 boost/libs/math/doc/equations/igamma19.mml delete mode 100644 boost/libs/math/doc/equations/igamma19.png delete mode 100644 boost/libs/math/doc/equations/igamma19.svg delete mode 100644 boost/libs/math/doc/equations/igamma1f.mml delete mode 100644 boost/libs/math/doc/equations/igamma1f.png delete mode 100644 boost/libs/math/doc/equations/igamma1f.svg delete mode 100644 boost/libs/math/doc/equations/igamma2.mml delete mode 100644 boost/libs/math/doc/equations/igamma2.png delete mode 100644 boost/libs/math/doc/equations/igamma2.svg delete mode 100644 boost/libs/math/doc/equations/igamma2f.mml delete mode 100644 boost/libs/math/doc/equations/igamma2f.png delete mode 100644 boost/libs/math/doc/equations/igamma2f.svg delete mode 100644 boost/libs/math/doc/equations/igamma3.mml delete mode 100644 boost/libs/math/doc/equations/igamma3.png delete mode 100644 boost/libs/math/doc/equations/igamma3.svg delete mode 100644 boost/libs/math/doc/equations/igamma4.mml delete mode 100644 boost/libs/math/doc/equations/igamma4.png delete mode 100644 boost/libs/math/doc/equations/igamma4.svg delete mode 100644 boost/libs/math/doc/equations/igamma5.mml delete mode 100644 boost/libs/math/doc/equations/igamma5.png delete mode 100644 boost/libs/math/doc/equations/igamma5.svg delete mode 100644 boost/libs/math/doc/equations/igamma6.mml delete mode 100644 boost/libs/math/doc/equations/igamma6.png delete mode 100644 boost/libs/math/doc/equations/igamma6.svg delete mode 100644 boost/libs/math/doc/equations/igamma7.mml delete mode 100644 boost/libs/math/doc/equations/igamma7.png delete mode 100644 boost/libs/math/doc/equations/igamma7.svg delete mode 100644 boost/libs/math/doc/equations/igamma8.mml delete mode 100644 boost/libs/math/doc/equations/igamma8.png delete mode 100644 boost/libs/math/doc/equations/igamma8.svg delete mode 100644 boost/libs/math/doc/equations/igamma9.mml delete mode 100644 boost/libs/math/doc/equations/igamma9.png delete mode 100644 boost/libs/math/doc/equations/igamma9.svg delete mode 100644 boost/libs/math/doc/equations/jacobi1.mml delete mode 100644 boost/libs/math/doc/equations/jacobi1.png delete mode 100644 boost/libs/math/doc/equations/jacobi1.svg delete mode 100644 boost/libs/math/doc/equations/jacobi2.mml delete mode 100644 boost/libs/math/doc/equations/jacobi2.png delete mode 100644 boost/libs/math/doc/equations/jacobi2.svg delete mode 100644 boost/libs/math/doc/equations/jacobi3.mml delete mode 100644 boost/libs/math/doc/equations/jacobi3.png delete mode 100644 boost/libs/math/doc/equations/jacobi3.svg delete mode 100644 boost/libs/math/doc/equations/jacobi4.mml delete mode 100644 boost/libs/math/doc/equations/jacobi4.png delete mode 100644 boost/libs/math/doc/equations/jacobi4.svg delete mode 100644 boost/libs/math/doc/equations/jacobi_zeta.mml delete mode 100644 boost/libs/math/doc/equations/jacobi_zeta.png delete mode 100644 boost/libs/math/doc/equations/jacobi_zeta.svg delete mode 100644 boost/libs/math/doc/equations/laguerre_0.mml delete mode 100644 boost/libs/math/doc/equations/laguerre_0.png delete mode 100644 boost/libs/math/doc/equations/laguerre_0.svg delete mode 100644 boost/libs/math/doc/equations/laguerre_1.mml delete mode 100644 boost/libs/math/doc/equations/laguerre_1.png delete mode 100644 boost/libs/math/doc/equations/laguerre_1.svg delete mode 100644 boost/libs/math/doc/equations/laguerre_2.mml delete mode 100644 boost/libs/math/doc/equations/laguerre_2.png delete mode 100644 boost/libs/math/doc/equations/laguerre_2.svg delete mode 100644 boost/libs/math/doc/equations/laguerre_3.mml delete mode 100644 boost/libs/math/doc/equations/laguerre_3.png delete mode 100644 boost/libs/math/doc/equations/laguerre_3.svg delete mode 100644 boost/libs/math/doc/equations/lanczos0.mml delete mode 100644 boost/libs/math/doc/equations/lanczos0.png delete mode 100644 boost/libs/math/doc/equations/lanczos0.svg delete mode 100644 boost/libs/math/doc/equations/lanczos0a.mml delete mode 100644 boost/libs/math/doc/equations/lanczos0a.png delete mode 100644 boost/libs/math/doc/equations/lanczos0a.svg delete mode 100644 boost/libs/math/doc/equations/lanczos0b.mml delete mode 100644 boost/libs/math/doc/equations/lanczos0b.png delete mode 100644 boost/libs/math/doc/equations/lanczos0b.svg delete mode 100644 boost/libs/math/doc/equations/lanczos1.mml delete mode 100644 boost/libs/math/doc/equations/lanczos1.png delete mode 100644 boost/libs/math/doc/equations/lanczos1.svg delete mode 100644 boost/libs/math/doc/equations/lanczos2.mml delete mode 100644 boost/libs/math/doc/equations/lanczos2.png delete mode 100644 boost/libs/math/doc/equations/lanczos2.svg delete mode 100644 boost/libs/math/doc/equations/lanczos3.mml delete mode 100644 boost/libs/math/doc/equations/lanczos3.png delete mode 100644 boost/libs/math/doc/equations/lanczos3.svg delete mode 100644 boost/libs/math/doc/equations/lanczos4.mml delete mode 100644 boost/libs/math/doc/equations/lanczos4.png delete mode 100644 boost/libs/math/doc/equations/lanczos4.svg delete mode 100644 boost/libs/math/doc/equations/lanczos5.mml delete mode 100644 boost/libs/math/doc/equations/lanczos5.png delete mode 100644 boost/libs/math/doc/equations/lanczos5.svg delete mode 100644 boost/libs/math/doc/equations/lanczos6.mml delete mode 100644 boost/libs/math/doc/equations/lanczos6.png delete mode 100644 boost/libs/math/doc/equations/lanczos6.svg delete mode 100644 boost/libs/math/doc/equations/lanczos7.mml delete mode 100644 boost/libs/math/doc/equations/lanczos7.png delete mode 100644 boost/libs/math/doc/equations/lanczos7.svg delete mode 100644 boost/libs/math/doc/equations/laplace_pdf.mml delete mode 100644 boost/libs/math/doc/equations/laplace_pdf.png delete mode 100644 boost/libs/math/doc/equations/laplace_pdf.svg delete mode 100644 boost/libs/math/doc/equations/legendre_0.mml delete mode 100644 boost/libs/math/doc/equations/legendre_0.png delete mode 100644 boost/libs/math/doc/equations/legendre_0.svg delete mode 100644 boost/libs/math/doc/equations/legendre_1.mml delete mode 100644 boost/libs/math/doc/equations/legendre_1.png delete mode 100644 boost/libs/math/doc/equations/legendre_1.svg delete mode 100644 boost/libs/math/doc/equations/legendre_1b.mml delete mode 100644 boost/libs/math/doc/equations/legendre_1b.png delete mode 100644 boost/libs/math/doc/equations/legendre_1b.svg delete mode 100644 boost/libs/math/doc/equations/legendre_2.mml delete mode 100644 boost/libs/math/doc/equations/legendre_2.png delete mode 100644 boost/libs/math/doc/equations/legendre_2.svg delete mode 100644 boost/libs/math/doc/equations/legendre_3.mml delete mode 100644 boost/libs/math/doc/equations/legendre_3.png delete mode 100644 boost/libs/math/doc/equations/legendre_3.svg delete mode 100644 boost/libs/math/doc/equations/legendre_4.mml delete mode 100644 boost/libs/math/doc/equations/legendre_4.png delete mode 100644 boost/libs/math/doc/equations/legendre_4.svg delete mode 100644 boost/libs/math/doc/equations/legendre_5.mml delete mode 100644 boost/libs/math/doc/equations/legendre_5.png delete mode 100644 boost/libs/math/doc/equations/legendre_5.svg delete mode 100644 boost/libs/math/doc/equations/lgamm1.mml delete mode 100644 boost/libs/math/doc/equations/lgamm1.png delete mode 100644 boost/libs/math/doc/equations/lgamm1.svg delete mode 100644 boost/libs/math/doc/equations/lgamm2.mml delete mode 100644 boost/libs/math/doc/equations/lgamm2.png delete mode 100644 boost/libs/math/doc/equations/lgamm2.svg delete mode 100644 boost/libs/math/doc/equations/lgamm3.mml delete mode 100644 boost/libs/math/doc/equations/lgamm3.png delete mode 100644 boost/libs/math/doc/equations/lgamm3.svg delete mode 100644 boost/libs/math/doc/equations/lgamm4.mml delete mode 100644 boost/libs/math/doc/equations/lgamm4.png delete mode 100644 boost/libs/math/doc/equations/lgamm4.svg delete mode 100644 boost/libs/math/doc/equations/lgamm5.mml delete mode 100644 boost/libs/math/doc/equations/lgamm5.png delete mode 100644 boost/libs/math/doc/equations/lgamm5.svg delete mode 100644 boost/libs/math/doc/equations/lgamm6.mml delete mode 100644 boost/libs/math/doc/equations/lgamm6.png delete mode 100644 boost/libs/math/doc/equations/lgamm6.svg delete mode 100644 boost/libs/math/doc/equations/log1pseries.mml delete mode 100644 boost/libs/math/doc/equations/log1pseries.png delete mode 100644 boost/libs/math/doc/equations/log1pseries.svg delete mode 100644 boost/libs/math/doc/equations/lognormal_ref.mml delete mode 100644 boost/libs/math/doc/equations/lognormal_ref.png delete mode 100644 boost/libs/math/doc/equations/lognormal_ref.svg delete mode 100644 boost/libs/math/doc/equations/mbessel1.mml delete mode 100644 boost/libs/math/doc/equations/mbessel1.png delete mode 100644 boost/libs/math/doc/equations/mbessel1.svg delete mode 100644 boost/libs/math/doc/equations/mbessel10.mml delete mode 100644 boost/libs/math/doc/equations/mbessel10.png delete mode 100644 boost/libs/math/doc/equations/mbessel10.svg delete mode 100644 boost/libs/math/doc/equations/mbessel11.mml delete mode 100644 boost/libs/math/doc/equations/mbessel11.png delete mode 100644 boost/libs/math/doc/equations/mbessel11.svg delete mode 100644 boost/libs/math/doc/equations/mbessel12.mml delete mode 100644 boost/libs/math/doc/equations/mbessel12.png delete mode 100644 boost/libs/math/doc/equations/mbessel12.svg delete mode 100644 boost/libs/math/doc/equations/mbessel13.mml delete mode 100644 boost/libs/math/doc/equations/mbessel13.png delete mode 100644 boost/libs/math/doc/equations/mbessel13.svg delete mode 100644 boost/libs/math/doc/equations/mbessel14.mml delete mode 100644 boost/libs/math/doc/equations/mbessel14.png delete mode 100644 boost/libs/math/doc/equations/mbessel14.svg delete mode 100644 boost/libs/math/doc/equations/mbessel15.mml delete mode 100644 boost/libs/math/doc/equations/mbessel15.png delete mode 100644 boost/libs/math/doc/equations/mbessel15.svg delete mode 100644 boost/libs/math/doc/equations/mbessel16.mml delete mode 100644 boost/libs/math/doc/equations/mbessel16.png delete mode 100644 boost/libs/math/doc/equations/mbessel16.svg delete mode 100644 boost/libs/math/doc/equations/mbessel17.mml delete mode 100644 boost/libs/math/doc/equations/mbessel17.png delete mode 100644 boost/libs/math/doc/equations/mbessel17.svg delete mode 100644 boost/libs/math/doc/equations/mbessel2.mml delete mode 100644 boost/libs/math/doc/equations/mbessel2.png delete mode 100644 boost/libs/math/doc/equations/mbessel2.svg delete mode 100644 boost/libs/math/doc/equations/mbessel3.mml delete mode 100644 boost/libs/math/doc/equations/mbessel3.png delete mode 100644 boost/libs/math/doc/equations/mbessel3.svg delete mode 100644 boost/libs/math/doc/equations/mbessel4.mml delete mode 100644 boost/libs/math/doc/equations/mbessel4.png delete mode 100644 boost/libs/math/doc/equations/mbessel4.svg delete mode 100644 boost/libs/math/doc/equations/mbessel5.mml delete mode 100644 boost/libs/math/doc/equations/mbessel5.png delete mode 100644 boost/libs/math/doc/equations/mbessel5.svg delete mode 100644 boost/libs/math/doc/equations/mbessel6.mml delete mode 100644 boost/libs/math/doc/equations/mbessel6.png delete mode 100644 boost/libs/math/doc/equations/mbessel6.svg delete mode 100644 boost/libs/math/doc/equations/mbessel7.mml delete mode 100644 boost/libs/math/doc/equations/mbessel7.png delete mode 100644 boost/libs/math/doc/equations/mbessel7.svg delete mode 100644 boost/libs/math/doc/equations/mbessel8.mml delete mode 100644 boost/libs/math/doc/equations/mbessel8.png delete mode 100644 boost/libs/math/doc/equations/mbessel8.svg delete mode 100644 boost/libs/math/doc/equations/mbessel9.mml delete mode 100644 boost/libs/math/doc/equations/mbessel9.png delete mode 100644 boost/libs/math/doc/equations/mbessel9.svg delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref1.mml delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref1.png delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref1.svg delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref2.mml delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref2.png delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref2.svg delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref3.mml delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref3.png delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref3.svg delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref4.mml delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref4.png delete mode 100644 boost/libs/math/doc/equations/nc_beta_ref4.svg delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref1.mml delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref1.png delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref1.svg delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref2.mml delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref2.png delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref2.svg delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref3.mml delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref3.png delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref3.svg delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref4.mml delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref4.png delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref4.svg delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref5.mml delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref5.png delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref5.svg delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref6.mml delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref6.png delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref6.svg delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref7.mml delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref7.png delete mode 100644 boost/libs/math/doc/equations/nc_chi_squ_ref7.svg delete mode 100644 boost/libs/math/doc/equations/nc_f_ref1.mml delete mode 100644 boost/libs/math/doc/equations/nc_f_ref1.png delete mode 100644 boost/libs/math/doc/equations/nc_f_ref1.svg delete mode 100644 boost/libs/math/doc/equations/nc_f_ref2.mml delete mode 100644 boost/libs/math/doc/equations/nc_f_ref2.png delete mode 100644 boost/libs/math/doc/equations/nc_f_ref2.svg delete mode 100644 boost/libs/math/doc/equations/nc_t_ref1.mml delete mode 100644 boost/libs/math/doc/equations/nc_t_ref1.png delete mode 100644 boost/libs/math/doc/equations/nc_t_ref1.svg delete mode 100644 boost/libs/math/doc/equations/nc_t_ref2.mml delete mode 100644 boost/libs/math/doc/equations/nc_t_ref2.png delete mode 100644 boost/libs/math/doc/equations/nc_t_ref2.svg delete mode 100644 boost/libs/math/doc/equations/nc_t_ref3.mml delete mode 100644 boost/libs/math/doc/equations/nc_t_ref3.png delete mode 100644 boost/libs/math/doc/equations/nc_t_ref3.svg delete mode 100644 boost/libs/math/doc/equations/nc_t_ref4.mml delete mode 100644 boost/libs/math/doc/equations/nc_t_ref4.png delete mode 100644 boost/libs/math/doc/equations/nc_t_ref4.svg delete mode 100644 boost/libs/math/doc/equations/nc_t_ref5.mml delete mode 100644 boost/libs/math/doc/equations/nc_t_ref5.png delete mode 100644 boost/libs/math/doc/equations/nc_t_ref5.svg delete mode 100644 boost/libs/math/doc/equations/neg_binomial_ref.mml delete mode 100644 boost/libs/math/doc/equations/neg_binomial_ref.png delete mode 100644 boost/libs/math/doc/equations/neg_binomial_ref.svg delete mode 100644 boost/libs/math/doc/equations/normal01_cdf.mml delete mode 100644 boost/libs/math/doc/equations/normal01_cdf.png delete mode 100644 boost/libs/math/doc/equations/normal01_cdf.svg delete mode 100644 boost/libs/math/doc/equations/normal01_pdf.mml delete mode 100644 boost/libs/math/doc/equations/normal01_pdf.png delete mode 100644 boost/libs/math/doc/equations/normal01_pdf.svg delete mode 100644 boost/libs/math/doc/equations/normal_cdf.mml delete mode 100644 boost/libs/math/doc/equations/normal_cdf.png delete mode 100644 boost/libs/math/doc/equations/normal_cdf.svg delete mode 100644 boost/libs/math/doc/equations/normal_ref1.mml delete mode 100644 boost/libs/math/doc/equations/normal_ref1.png delete mode 100644 boost/libs/math/doc/equations/normal_ref1.svg delete mode 100644 boost/libs/math/doc/equations/owens_t.mml delete mode 100644 boost/libs/math/doc/equations/owens_t.png delete mode 100644 boost/libs/math/doc/equations/owens_t.svg delete mode 100644 boost/libs/math/doc/equations/poisson_ref1.mml delete mode 100644 boost/libs/math/doc/equations/poisson_ref1.png delete mode 100644 boost/libs/math/doc/equations/poisson_ref1.svg delete mode 100644 boost/libs/math/doc/equations/polygamma1.mml delete mode 100644 boost/libs/math/doc/equations/polygamma1.png delete mode 100644 boost/libs/math/doc/equations/polygamma1.svg delete mode 100644 boost/libs/math/doc/equations/polygamma2.mml delete mode 100644 boost/libs/math/doc/equations/polygamma2.png delete mode 100644 boost/libs/math/doc/equations/polygamma2.svg delete mode 100644 boost/libs/math/doc/equations/polygamma3.mml delete mode 100644 boost/libs/math/doc/equations/polygamma3.png delete mode 100644 boost/libs/math/doc/equations/polygamma3.svg delete mode 100644 boost/libs/math/doc/equations/polygamma4.mml delete mode 100644 boost/libs/math/doc/equations/polygamma4.png delete mode 100644 boost/libs/math/doc/equations/polygamma4.svg delete mode 100644 boost/libs/math/doc/equations/polygamma5.mml delete mode 100644 boost/libs/math/doc/equations/polygamma5.png delete mode 100644 boost/libs/math/doc/equations/polygamma5.svg delete mode 100644 boost/libs/math/doc/equations/polygamma6.mml delete mode 100644 boost/libs/math/doc/equations/polygamma6.png delete mode 100644 boost/libs/math/doc/equations/polygamma6.svg delete mode 100644 boost/libs/math/doc/equations/polygamma7.mml delete mode 100644 boost/libs/math/doc/equations/polygamma7.png delete mode 100644 boost/libs/math/doc/equations/polygamma7.svg delete mode 100644 boost/libs/math/doc/equations/polygamma8.mml delete mode 100644 boost/libs/math/doc/equations/polygamma8.png delete mode 100644 boost/libs/math/doc/equations/polygamma8.svg delete mode 100644 boost/libs/math/doc/equations/polygamma9.mml delete mode 100644 boost/libs/math/doc/equations/polygamma9.png delete mode 100644 boost/libs/math/doc/equations/polygamma9.svg delete mode 100644 boost/libs/math/doc/equations/roots1.mml delete mode 100644 boost/libs/math/doc/equations/roots1.png delete mode 100644 boost/libs/math/doc/equations/roots1.svg delete mode 100644 boost/libs/math/doc/equations/roots2.mml delete mode 100644 boost/libs/math/doc/equations/roots2.png delete mode 100644 boost/libs/math/doc/equations/roots2.svg delete mode 100644 boost/libs/math/doc/equations/roots3.mml delete mode 100644 boost/libs/math/doc/equations/roots3.png delete mode 100644 boost/libs/math/doc/equations/roots3.svg delete mode 100644 boost/libs/math/doc/equations/roots4.mml delete mode 100644 boost/libs/math/doc/equations/roots4.png delete mode 100644 boost/libs/math/doc/equations/roots4.svg delete mode 100644 boost/libs/math/doc/equations/sbessel1.mml delete mode 100644 boost/libs/math/doc/equations/sbessel1.png delete mode 100644 boost/libs/math/doc/equations/sbessel1.svg delete mode 100644 boost/libs/math/doc/equations/sbessel2.mml delete mode 100644 boost/libs/math/doc/equations/sbessel2.png delete mode 100644 boost/libs/math/doc/equations/sbessel2.svg delete mode 100644 boost/libs/math/doc/equations/sbessel3.mml delete mode 100644 boost/libs/math/doc/equations/sbessel3.png delete mode 100644 boost/libs/math/doc/equations/sbessel3.svg delete mode 100644 boost/libs/math/doc/equations/sbessel4.mml delete mode 100644 boost/libs/math/doc/equations/sbessel4.png delete mode 100644 boost/libs/math/doc/equations/sbessel4.svg delete mode 100644 boost/libs/math/doc/equations/sbessel5.mml delete mode 100644 boost/libs/math/doc/equations/sbessel5.png delete mode 100644 boost/libs/math/doc/equations/sbessel5.svg delete mode 100644 boost/libs/math/doc/equations/skew_normal_cdf.mml delete mode 100644 boost/libs/math/doc/equations/skew_normal_cdf.png delete mode 100644 boost/libs/math/doc/equations/skew_normal_cdf.svg delete mode 100644 boost/libs/math/doc/equations/skew_normal_kurt_ex.mml delete mode 100644 boost/libs/math/doc/equations/skew_normal_kurt_ex.png delete mode 100644 boost/libs/math/doc/equations/skew_normal_kurt_ex.svg delete mode 100644 boost/libs/math/doc/equations/skew_normal_mean.mml delete mode 100644 boost/libs/math/doc/equations/skew_normal_mean.png delete mode 100644 boost/libs/math/doc/equations/skew_normal_mean.svg delete mode 100644 boost/libs/math/doc/equations/skew_normal_pdf.mml delete mode 100644 boost/libs/math/doc/equations/skew_normal_pdf.png delete mode 100644 boost/libs/math/doc/equations/skew_normal_pdf.svg delete mode 100644 boost/libs/math/doc/equations/skew_normal_pdf0.mml delete mode 100644 boost/libs/math/doc/equations/skew_normal_pdf0.png delete mode 100644 boost/libs/math/doc/equations/skew_normal_pdf0.svg delete mode 100644 boost/libs/math/doc/equations/skew_normal_skewness.mml delete mode 100644 boost/libs/math/doc/equations/skew_normal_skewness.png delete mode 100644 boost/libs/math/doc/equations/skew_normal_skewness.svg delete mode 100644 boost/libs/math/doc/equations/skew_normal_variance.mml delete mode 100644 boost/libs/math/doc/equations/skew_normal_variance.png delete mode 100644 boost/libs/math/doc/equations/skew_normal_variance.svg delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb1.mml delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb1.png delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb1.svg delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb15.mml delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb15.png delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb15.svg delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb17.mml delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb17.png delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb17.svg delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb18.mml delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb18.png delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb18.svg delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb20.mml delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb20.png delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb20.svg delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb22.mml delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb22.png delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb22.svg delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb5.mml delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb5.png delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb5.svg delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb6.mml delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb6.png delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb6.svg delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb7.mml delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb7.png delete mode 100644 boost/libs/math/doc/equations/special_functions_blurb7.svg delete mode 100644 boost/libs/math/doc/equations/spherical_0.mml delete mode 100644 boost/libs/math/doc/equations/spherical_0.png delete mode 100644 boost/libs/math/doc/equations/spherical_0.svg delete mode 100644 boost/libs/math/doc/equations/spherical_1.mml delete mode 100644 boost/libs/math/doc/equations/spherical_1.png delete mode 100644 boost/libs/math/doc/equations/spherical_1.svg delete mode 100644 boost/libs/math/doc/equations/spherical_2.mml delete mode 100644 boost/libs/math/doc/equations/spherical_2.png delete mode 100644 boost/libs/math/doc/equations/spherical_2.svg delete mode 100644 boost/libs/math/doc/equations/spherical_3.mml delete mode 100644 boost/libs/math/doc/equations/spherical_3.png delete mode 100644 boost/libs/math/doc/equations/spherical_3.svg delete mode 100644 boost/libs/math/doc/equations/students_t_dist.mml delete mode 100644 boost/libs/math/doc/equations/students_t_dist.png delete mode 100644 boost/libs/math/doc/equations/students_t_dist.svg delete mode 100644 boost/libs/math/doc/equations/students_t_ref1.mml delete mode 100644 boost/libs/math/doc/equations/students_t_ref1.png delete mode 100644 boost/libs/math/doc/equations/students_t_ref1.svg delete mode 100644 boost/libs/math/doc/equations/tangent_number_def.mml delete mode 100644 boost/libs/math/doc/equations/tangent_number_def.png delete mode 100644 boost/libs/math/doc/equations/tangent_number_def.svg delete mode 100644 boost/libs/math/doc/equations/tangent_number_def2.mml delete mode 100644 boost/libs/math/doc/equations/tangent_number_def2.png delete mode 100644 boost/libs/math/doc/equations/tangent_number_def2.svg delete mode 100644 boost/libs/math/doc/equations/tangent_numbers.mml delete mode 100644 boost/libs/math/doc/equations/tangent_numbers.png delete mode 100644 boost/libs/math/doc/equations/tangent_numbers.svg delete mode 100644 boost/libs/math/doc/equations/trigamma1.mml delete mode 100644 boost/libs/math/doc/equations/trigamma1.png delete mode 100644 boost/libs/math/doc/equations/trigamma1.svg delete mode 100644 boost/libs/math/doc/equations/trigamma2.mml delete mode 100644 boost/libs/math/doc/equations/trigamma2.png delete mode 100644 boost/libs/math/doc/equations/trigamma2.svg delete mode 100644 boost/libs/math/doc/equations/trigamma3.mml delete mode 100644 boost/libs/math/doc/equations/trigamma3.png delete mode 100644 boost/libs/math/doc/equations/trigamma3.svg delete mode 100644 boost/libs/math/doc/equations/trigamma4.mml delete mode 100644 boost/libs/math/doc/equations/trigamma4.png delete mode 100644 boost/libs/math/doc/equations/trigamma4.svg delete mode 100644 boost/libs/math/doc/equations/trigamma5.mml delete mode 100644 boost/libs/math/doc/equations/trigamma5.png delete mode 100644 boost/libs/math/doc/equations/trigamma5.svg delete mode 100644 boost/libs/math/doc/equations/zeta1.mml delete mode 100644 boost/libs/math/doc/equations/zeta1.png delete mode 100644 boost/libs/math/doc/equations/zeta1.svg delete mode 100644 boost/libs/math/doc/equations/zeta2.mml delete mode 100644 boost/libs/math/doc/equations/zeta2.png delete mode 100644 boost/libs/math/doc/equations/zeta2.svg delete mode 100644 boost/libs/math/doc/equations/zeta3.mml delete mode 100644 boost/libs/math/doc/equations/zeta3.png delete mode 100644 boost/libs/math/doc/equations/zeta3.svg delete mode 100644 boost/libs/math/doc/equations/zeta4.mml delete mode 100644 boost/libs/math/doc/equations/zeta4.png delete mode 100644 boost/libs/math/doc/equations/zeta4.svg delete mode 100644 boost/libs/math/doc/equations/zeta5.mml delete mode 100644 boost/libs/math/doc/equations/zeta5.png delete mode 100644 boost/libs/math/doc/equations/zeta5.svg delete mode 100644 boost/libs/math/doc/equations/zeta6.mml delete mode 100644 boost/libs/math/doc/equations/zeta6.png delete mode 100644 boost/libs/math/doc/equations/zeta6.svg delete mode 100644 boost/libs/math/doc/equations/zeta7.mml delete mode 100644 boost/libs/math/doc/equations/zeta7.png delete mode 100644 boost/libs/math/doc/equations/zeta7.svg delete mode 100644 boost/libs/math/doc/equations/zeta8.mml delete mode 100644 boost/libs/math/doc/equations/zeta8.png delete mode 100644 boost/libs/math/doc/equations/zeta8.svg delete mode 100644 boost/libs/math/doc/equations/zeta9.mml delete mode 100644 boost/libs/math/doc/equations/zeta9.png delete mode 100644 boost/libs/math/doc/equations/zeta9.svg delete mode 100644 boost/libs/math/doc/fp_utilities/float_comparison.qbk delete mode 100644 boost/libs/math/doc/fp_utilities/float_next.qbk delete mode 100644 boost/libs/math/doc/fp_utilities/fp_facets.qbk delete mode 100644 boost/libs/math/doc/fp_utilities/fpclassify.qbk delete mode 100644 boost/libs/math/doc/fp_utilities/rounding_func.qbk delete mode 100644 boost/libs/math/doc/fp_utilities/sign.qbk delete mode 100644 boost/libs/math/doc/gcd/math-gcd.qbk delete mode 100644 boost/libs/math/doc/graphs/Jamfile.v2 delete mode 100644 boost/libs/math/doc/graphs/acosh.png delete mode 100644 boost/libs/math/doc/graphs/acosh.svg delete mode 100644 boost/libs/math/doc/graphs/airy_ai.png delete mode 100644 boost/libs/math/doc/graphs/airy_ai.svg delete mode 100644 boost/libs/math/doc/graphs/airy_aip.png delete mode 100644 boost/libs/math/doc/graphs/airy_aip.svg delete mode 100644 boost/libs/math/doc/graphs/airy_bi.png delete mode 100644 boost/libs/math/doc/graphs/airy_bi.svg delete mode 100644 boost/libs/math/doc/graphs/airy_bip.png delete mode 100644 boost/libs/math/doc/graphs/airy_bip.svg delete mode 100644 boost/libs/math/doc/graphs/airy_zeros.png delete mode 100644 boost/libs/math/doc/graphs/airy_zeros.svg delete mode 100644 boost/libs/math/doc/graphs/arcsine01_cdf.png delete mode 100644 boost/libs/math/doc/graphs/arcsine01_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/arcsine01_pdf.png delete mode 100644 boost/libs/math/doc/graphs/arcsine01_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/arcsine_cdf.png delete mode 100644 boost/libs/math/doc/graphs/arcsine_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/arcsine_pdf.png delete mode 100644 boost/libs/math/doc/graphs/arcsine_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/asinh.png delete mode 100644 boost/libs/math/doc/graphs/asinh.svg delete mode 100644 boost/libs/math/doc/graphs/atanh.png delete mode 100644 boost/libs/math/doc/graphs/atanh.svg delete mode 100644 boost/libs/math/doc/graphs/bernoulli_cdf.png delete mode 100644 boost/libs/math/doc/graphs/bernoulli_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/bernoulli_pdf.png delete mode 100644 boost/libs/math/doc/graphs/bernoulli_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/bessel_j_zeros.png delete mode 100644 boost/libs/math/doc/graphs/bessel_j_zeros.svg delete mode 100644 boost/libs/math/doc/graphs/beta.png delete mode 100644 boost/libs/math/doc/graphs/beta.svg delete mode 100644 boost/libs/math/doc/graphs/beta_pdf.png delete mode 100644 boost/libs/math/doc/graphs/beta_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/binomial_pdf.png delete mode 100644 boost/libs/math/doc/graphs/binomial_pdf_1.png delete mode 100644 boost/libs/math/doc/graphs/binomial_pdf_1.svg delete mode 100644 boost/libs/math/doc/graphs/binomial_pdf_2.png delete mode 100644 boost/libs/math/doc/graphs/binomial_pdf_2.svg delete mode 100644 boost/libs/math/doc/graphs/binomial_pdf_3.png delete mode 100644 boost/libs/math/doc/graphs/binomial_quantile_1.png delete mode 100644 boost/libs/math/doc/graphs/brent_test_function_1.png delete mode 100644 boost/libs/math/doc/graphs/brent_test_function_1.svg delete mode 100644 boost/libs/math/doc/graphs/cauchy_pdf1.png delete mode 100644 boost/libs/math/doc/graphs/cauchy_pdf1.svg delete mode 100644 boost/libs/math/doc/graphs/cauchy_pdf2.png delete mode 100644 boost/libs/math/doc/graphs/cauchy_pdf2.svg delete mode 100644 boost/libs/math/doc/graphs/cbrt.png delete mode 100644 boost/libs/math/doc/graphs/cbrt.svg delete mode 100644 boost/libs/math/doc/graphs/cdf.png delete mode 100644 boost/libs/math/doc/graphs/chi_squared_pdf.png delete mode 100644 boost/libs/math/doc/graphs/chi_squared_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/cyl_bessel_i.png delete mode 100644 boost/libs/math/doc/graphs/cyl_bessel_i.svg delete mode 100644 boost/libs/math/doc/graphs/cyl_bessel_j.png delete mode 100644 boost/libs/math/doc/graphs/cyl_bessel_j.svg delete mode 100644 boost/libs/math/doc/graphs/cyl_bessel_k.png delete mode 100644 boost/libs/math/doc/graphs/cyl_bessel_k.svg delete mode 100644 boost/libs/math/doc/graphs/cyl_neumann.png delete mode 100644 boost/libs/math/doc/graphs/cyl_neumann.svg delete mode 100644 boost/libs/math/doc/graphs/digamma.png delete mode 100644 boost/libs/math/doc/graphs/digamma.svg delete mode 100644 boost/libs/math/doc/graphs/dist_graphs.cpp delete mode 100644 boost/libs/math/doc/graphs/ellint_1.png delete mode 100644 boost/libs/math/doc/graphs/ellint_1.svg delete mode 100644 boost/libs/math/doc/graphs/ellint_2.png delete mode 100644 boost/libs/math/doc/graphs/ellint_2.svg delete mode 100644 boost/libs/math/doc/graphs/ellint_3.png delete mode 100644 boost/libs/math/doc/graphs/ellint_3.svg delete mode 100644 boost/libs/math/doc/graphs/ellint_carlson.png delete mode 100644 boost/libs/math/doc/graphs/ellint_carlson.svg delete mode 100644 boost/libs/math/doc/graphs/erf.png delete mode 100644 boost/libs/math/doc/graphs/erf.svg delete mode 100644 boost/libs/math/doc/graphs/erf_inv.png delete mode 100644 boost/libs/math/doc/graphs/erf_inv.svg delete mode 100644 boost/libs/math/doc/graphs/erfc.png delete mode 100644 boost/libs/math/doc/graphs/erfc.svg delete mode 100644 boost/libs/math/doc/graphs/erfc_inv.png delete mode 100644 boost/libs/math/doc/graphs/erfc_inv.svg delete mode 100644 boost/libs/math/doc/graphs/exp_on_r.png delete mode 100644 boost/libs/math/doc/graphs/expint2.png delete mode 100644 boost/libs/math/doc/graphs/expint2.svg delete mode 100644 boost/libs/math/doc/graphs/expint_i.png delete mode 100644 boost/libs/math/doc/graphs/expint_i.svg delete mode 100644 boost/libs/math/doc/graphs/expm1.png delete mode 100644 boost/libs/math/doc/graphs/expm1.svg delete mode 100644 boost/libs/math/doc/graphs/exponential_pdf.png delete mode 100644 boost/libs/math/doc/graphs/exponential_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/extreme_value_pdf1.png delete mode 100644 boost/libs/math/doc/graphs/extreme_value_pdf1.svg delete mode 100644 boost/libs/math/doc/graphs/extreme_value_pdf2.png delete mode 100644 boost/libs/math/doc/graphs/extreme_value_pdf2.svg delete mode 100644 boost/libs/math/doc/graphs/fisher_f_pdf.png delete mode 100644 boost/libs/math/doc/graphs/fisher_f_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/gamma1_pdf.png delete mode 100644 boost/libs/math/doc/graphs/gamma1_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/gamma2_pdf.png delete mode 100644 boost/libs/math/doc/graphs/gamma2_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/gamma_p.png delete mode 100644 boost/libs/math/doc/graphs/gamma_p.svg delete mode 100644 boost/libs/math/doc/graphs/gamma_q.png delete mode 100644 boost/libs/math/doc/graphs/gamma_q.svg delete mode 100644 boost/libs/math/doc/graphs/generate.sh delete mode 100644 boost/libs/math/doc/graphs/geometric_cdf_2.png delete mode 100644 boost/libs/math/doc/graphs/geometric_cdf_2.svg delete mode 100644 boost/libs/math/doc/graphs/geometric_cdf_discrete.png delete mode 100644 boost/libs/math/doc/graphs/geometric_cdf_discrete.svg delete mode 100644 boost/libs/math/doc/graphs/geometric_pdf_2.png delete mode 100644 boost/libs/math/doc/graphs/geometric_pdf_2.svg delete mode 100644 boost/libs/math/doc/graphs/geometric_pdf_discrete.png delete mode 100644 boost/libs/math/doc/graphs/geometric_pdf_discrete.svg delete mode 100644 boost/libs/math/doc/graphs/hermite.png delete mode 100644 boost/libs/math/doc/graphs/hermite.svg delete mode 100644 boost/libs/math/doc/graphs/hyperbolic.png delete mode 100644 boost/libs/math/doc/graphs/hyperexponential_pdf.png delete mode 100644 boost/libs/math/doc/graphs/hyperexponential_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/hyperexponential_pdf_samemean.png delete mode 100644 boost/libs/math/doc/graphs/hyperexponential_pdf_samemean.svg delete mode 100644 boost/libs/math/doc/graphs/hyperexponential_pdf_samerate.png delete mode 100644 boost/libs/math/doc/graphs/hyperexponential_pdf_samerate.svg delete mode 100644 boost/libs/math/doc/graphs/hypergeometric_pdf_1.png delete mode 100644 boost/libs/math/doc/graphs/hypergeometric_pdf_1.svg delete mode 100644 boost/libs/math/doc/graphs/hypergeometric_pdf_2.png delete mode 100644 boost/libs/math/doc/graphs/hypergeometric_pdf_2.svg delete mode 100644 boost/libs/math/doc/graphs/ibeta.png delete mode 100644 boost/libs/math/doc/graphs/ibeta.svg delete mode 100644 boost/libs/math/doc/graphs/im_exp_on_c.png delete mode 100644 boost/libs/math/doc/graphs/inverse_chi_squared_cdf.png delete mode 100644 boost/libs/math/doc/graphs/inverse_chi_squared_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/inverse_chi_squared_pdf.png delete mode 100644 boost/libs/math/doc/graphs/inverse_chi_squared_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/inverse_gamma_cdf.png delete mode 100644 boost/libs/math/doc/graphs/inverse_gamma_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/inverse_gamma_pdf.png delete mode 100644 boost/libs/math/doc/graphs/inverse_gamma_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/inverse_gaussian_cdf.png delete mode 100644 boost/libs/math/doc/graphs/inverse_gaussian_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/inverse_gaussian_pdf.png delete mode 100644 boost/libs/math/doc/graphs/inverse_gaussian_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_cd.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_cd.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_cn.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_cn.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_cs.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_cs.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_dc.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_dc.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_dn.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_dn.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_ds.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_ds.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_nc.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_nc.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_nd.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_nd.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_ns.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_ns.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_sc.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_sc.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_sd.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_sd.svg delete mode 100644 boost/libs/math/doc/graphs/jacobi_sn.png delete mode 100644 boost/libs/math/doc/graphs/jacobi_sn.svg delete mode 100644 boost/libs/math/doc/graphs/laguerre.png delete mode 100644 boost/libs/math/doc/graphs/laguerre.svg delete mode 100644 boost/libs/math/doc/graphs/laplace_pdf.png delete mode 100644 boost/libs/math/doc/graphs/laplace_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/legendre_p.png delete mode 100644 boost/libs/math/doc/graphs/legendre_p.svg delete mode 100644 boost/libs/math/doc/graphs/legendre_q.png delete mode 100644 boost/libs/math/doc/graphs/legendre_q.svg delete mode 100644 boost/libs/math/doc/graphs/lgamma.png delete mode 100644 boost/libs/math/doc/graphs/lgamma.svg delete mode 100644 boost/libs/math/doc/graphs/log1p.png delete mode 100644 boost/libs/math/doc/graphs/log1p.svg delete mode 100644 boost/libs/math/doc/graphs/logistic_pdf.png delete mode 100644 boost/libs/math/doc/graphs/logistic_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/lognormal_pdf1.png delete mode 100644 boost/libs/math/doc/graphs/lognormal_pdf1.svg delete mode 100644 boost/libs/math/doc/graphs/lognormal_pdf2.png delete mode 100644 boost/libs/math/doc/graphs/lognormal_pdf2.svg delete mode 100644 boost/libs/math/doc/graphs/nc_beta_pdf.png delete mode 100644 boost/libs/math/doc/graphs/nc_beta_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/nc_f_pdf.png delete mode 100644 boost/libs/math/doc/graphs/nc_f_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/nc_t_cdf.png delete mode 100644 boost/libs/math/doc/graphs/nc_t_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/nc_t_pdf.png delete mode 100644 boost/libs/math/doc/graphs/nc_t_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/nccs_pdf.png delete mode 100644 boost/libs/math/doc/graphs/nccs_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/negative_binomial_pdf_1.png delete mode 100644 boost/libs/math/doc/graphs/negative_binomial_pdf_1.svg delete mode 100644 boost/libs/math/doc/graphs/negative_binomial_pdf_2.png delete mode 100644 boost/libs/math/doc/graphs/negative_binomial_pdf_2.svg delete mode 100644 boost/libs/math/doc/graphs/neumann_y_zeros.png delete mode 100644 boost/libs/math/doc/graphs/neumann_y_zeros.svg delete mode 100644 boost/libs/math/doc/graphs/normal01_cdf.png delete mode 100644 boost/libs/math/doc/graphs/normal01_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/normal01_pdf.png delete mode 100644 boost/libs/math/doc/graphs/normal01_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/normal_cdf.png delete mode 100644 boost/libs/math/doc/graphs/normal_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/normal_pdf.png delete mode 100644 boost/libs/math/doc/graphs/normal_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/owens_integration_area.png delete mode 100644 boost/libs/math/doc/graphs/owens_integration_area.svg delete mode 100644 boost/libs/math/doc/graphs/pareto_pdf1.png delete mode 100644 boost/libs/math/doc/graphs/pareto_pdf1.svg delete mode 100644 boost/libs/math/doc/graphs/pareto_pdf2.png delete mode 100644 boost/libs/math/doc/graphs/pareto_pdf2.svg delete mode 100644 boost/libs/math/doc/graphs/pdf.png delete mode 100644 boost/libs/math/doc/graphs/plot_owens_3d_xyp.png delete mode 100644 boost/libs/math/doc/graphs/plot_owens_t.png delete mode 100644 boost/libs/math/doc/graphs/poisson_pdf_1.png delete mode 100644 boost/libs/math/doc/graphs/poisson_pdf_1.svg delete mode 100644 boost/libs/math/doc/graphs/polygamma2.png delete mode 100644 boost/libs/math/doc/graphs/polygamma2.svg delete mode 100644 boost/libs/math/doc/graphs/polygamma3.png delete mode 100644 boost/libs/math/doc/graphs/polygamma3.svg delete mode 100644 boost/libs/math/doc/graphs/powm1.png delete mode 100644 boost/libs/math/doc/graphs/powm1.svg delete mode 100644 boost/libs/math/doc/graphs/prior_posterior_plot.png delete mode 100644 boost/libs/math/doc/graphs/prior_posterior_plot.svg delete mode 100644 boost/libs/math/doc/graphs/quantile.png delete mode 100644 boost/libs/math/doc/graphs/rayleigh_cdf.png delete mode 100644 boost/libs/math/doc/graphs/rayleigh_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/rayleigh_pdf.png delete mode 100644 boost/libs/math/doc/graphs/rayleigh_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/remez-2.png delete mode 100644 boost/libs/math/doc/graphs/remez-3.png delete mode 100644 boost/libs/math/doc/graphs/remez-4.png delete mode 100644 boost/libs/math/doc/graphs/remez-5.png delete mode 100644 boost/libs/math/doc/graphs/sf_graphs.cpp delete mode 100644 boost/libs/math/doc/graphs/sinc_pi.png delete mode 100644 boost/libs/math/doc/graphs/sinc_pi.svg delete mode 100644 boost/libs/math/doc/graphs/sinc_pi_and_sinhc_pi_on_r.png delete mode 100644 boost/libs/math/doc/graphs/sinhc_pi.png delete mode 100644 boost/libs/math/doc/graphs/sinhc_pi.svg delete mode 100644 boost/libs/math/doc/graphs/skew_normal_cdf.png delete mode 100644 boost/libs/math/doc/graphs/skew_normal_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/skew_normal_pdf.png delete mode 100644 boost/libs/math/doc/graphs/skew_normal_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/sph_bessel.png delete mode 100644 boost/libs/math/doc/graphs/sph_bessel.svg delete mode 100644 boost/libs/math/doc/graphs/sph_neumann.png delete mode 100644 boost/libs/math/doc/graphs/sph_neumann.svg delete mode 100644 boost/libs/math/doc/graphs/sqrt1pm1.png delete mode 100644 boost/libs/math/doc/graphs/sqrt1pm1.svg delete mode 100644 boost/libs/math/doc/graphs/students_t_pdf.png delete mode 100644 boost/libs/math/doc/graphs/students_t_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/survival.png delete mode 100644 boost/libs/math/doc/graphs/survival_inv.png delete mode 100644 boost/libs/math/doc/graphs/tgamma.png delete mode 100644 boost/libs/math/doc/graphs/tgamma.svg delete mode 100644 boost/libs/math/doc/graphs/tgamma_delta_ratio.png delete mode 100644 boost/libs/math/doc/graphs/tgamma_delta_ratio.svg delete mode 100644 boost/libs/math/doc/graphs/triangular_cdf.png delete mode 100644 boost/libs/math/doc/graphs/triangular_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/triangular_pdf.png delete mode 100644 boost/libs/math/doc/graphs/triangular_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/trigamma.png delete mode 100644 boost/libs/math/doc/graphs/trigamma.svg delete mode 100644 boost/libs/math/doc/graphs/trigonometric.png delete mode 100644 boost/libs/math/doc/graphs/uniform_cdf.png delete mode 100644 boost/libs/math/doc/graphs/uniform_cdf.svg delete mode 100644 boost/libs/math/doc/graphs/uniform_pdf.png delete mode 100644 boost/libs/math/doc/graphs/uniform_pdf.svg delete mode 100644 boost/libs/math/doc/graphs/weibull_pdf1.png delete mode 100644 boost/libs/math/doc/graphs/weibull_pdf1.svg delete mode 100644 boost/libs/math/doc/graphs/weibull_pdf2.png delete mode 100644 boost/libs/math/doc/graphs/weibull_pdf2.svg delete mode 100644 boost/libs/math/doc/graphs/zeta1.png delete mode 100644 boost/libs/math/doc/graphs/zeta1.svg delete mode 100644 boost/libs/math/doc/graphs/zeta2.png delete mode 100644 boost/libs/math/doc/graphs/zeta2.svg delete mode 100644 boost/libs/math/doc/html/backgrounders.html delete mode 100644 boost/libs/math/doc/html/constants.html delete mode 100644 boost/libs/math/doc/html/cstdfloat.html delete mode 100644 boost/libs/math/doc/html/dist.html delete mode 100644 boost/libs/math/doc/html/extern_c.html delete mode 100644 boost/libs/math/doc/html/gcd_lcm.html delete mode 100644 boost/libs/math/doc/html/index.html delete mode 100644 boost/libs/math/doc/html/indexes.html delete mode 100644 boost/libs/math/doc/html/indexes/s01.html delete mode 100644 boost/libs/math/doc/html/indexes/s02.html delete mode 100644 boost/libs/math/doc/html/indexes/s03.html delete mode 100644 boost/libs/math/doc/html/indexes/s04.html delete mode 100644 boost/libs/math/doc/html/indexes/s05.html delete mode 100644 boost/libs/math/doc/html/internals.html delete mode 100644 boost/libs/math/doc/html/inverse_complex.html delete mode 100644 boost/libs/math/doc/html/math.css delete mode 100644 boost/libs/math/doc/html/math_toolkit/acknowledgement.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/acknowledgements.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/acos.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/acosh.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/airy.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/airy/ai.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/airy/aip.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/airy/airy_root.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/airy/bi.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/airy/bip.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/archetypes.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/asin.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/asinh.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/atan.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/atanh.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/bessel.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/bessel/bessel_derivatives.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/bessel/bessel_first.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/bessel/bessel_over.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/bessel/bessel_root.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/bessel/mbessel.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/bessel/sph_bessel.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/building.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/c99.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/comp_compilers.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/comparisons.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/compile_time.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/compilers_overview.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/complex_history.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/complex_implementation.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/config_macros.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/constants.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/constants_faq.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/constants_intro.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/contact.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/conventions.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/create.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/credits.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/demo.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/directories.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_concept.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dist_algorithms.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/arcine_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/bernoulli_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/beta_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/binomial_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/cauchy_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/chi_squared_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/exp_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/extreme_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/f_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/gamma_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/geometric_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/hyperexponential_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/hypergeometric_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_chi_squared_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_gamma_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_gaussian_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/laplace_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/logistic_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/lognormal_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_beta_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_chi_squared_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_f_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_t_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/negative_binomial_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/normal_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/pareto.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/poisson_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/rayleigh.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/skew_normal_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/students_t_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/triangular_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/uniform_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/dists/weibull_dist.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/dist_ref/nmp.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/ellint.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/ellint/ellint_1.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/ellint/ellint_2.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/ellint/ellint_3.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/ellint/ellint_carlson.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/ellint/ellint_d.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/ellint/ellint_intro.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/ellint/heuman_lambda.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/ellint/jacobi_zeta.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/error_handling.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/exact_typdefs.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/examples.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/exp.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/expint.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/expint/expint_i.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/expint/expint_n.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/factorials.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/factorials/sf_binomial.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/factorials/sf_double_factorial.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/factorials/sf_factorial.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/factorials/sf_falling_factorial.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/factorials/sf_rising_factorial.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/fastest_typdefs.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/float128.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/float128/exp_function.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/float128/overloading.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/float128/overloading_template_functions_w.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/float128/typeinfo.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/float128_hints.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/float_comparison.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/fp_facets.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/fp_facets/examples.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/fp_facets/facets_intro.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/fp_facets/portability.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/fp_facets/rationale.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/fp_facets/reference.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/fpclass.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/future.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/gcd_credits.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/gcd_function_object.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/gcd_header.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/gcd_history.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/getting_best.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/greatest_typdefs.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/hankel.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/hankel/cyl_hankel.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/hankel/sph_hankel.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/high_precision.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/high_precision/e_float.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/high_precision/float128.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/high_precision/use_mpfr.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/high_precision/use_multiprecision.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/high_precision/use_ntl.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/high_precision/using_test.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/high_precision/why_high_precision.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/hints.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/history1.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/history2.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/internals.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/internals/cf.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/internals/error_test.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/internals/minimax.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/internals/polynomials.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/internals/rational.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/internals/series_evaluation.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/internals/test_data.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/internals/tuples.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/internals_overview.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/interp.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/intro_pol_overview.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/introduction.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/inv_hyper.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/inv_hyper/acosh.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/inv_hyper/asinh.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/inv_hyper/atanh.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/inv_hyper/inv_hyper_over.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/issues.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jac_over.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cd.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cn.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cs.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_dc.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_dn.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_ds.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_elliptic.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_nc.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_nd.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_ns.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sc.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sd.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sn.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/lanczos.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/lcm_function_object.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/logs_and_tables.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/logs_and_tables/all_table.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/logs_and_tables/logs.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/macros.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/main_faq.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/main_intro.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/main_tr1.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/mem_typedef.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/minimum_typdefs.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/multiprecision.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/namespaces.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/navigation.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/new_const.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/next_float.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/next_float/float_advance.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/next_float/float_distance.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/next_float/float_next.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/next_float/float_prior.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/next_float/nextafter.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/next_float/ulp.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/number_series.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/number_series/bernoulli_numbers.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/number_series/primes.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/number_series/tangent_numbers.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_create.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_header.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_history.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_mem_fun.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_non_mem.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_overview.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_specialization.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_synopsis.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_tests.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_todo.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_trans.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_typedefs.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/oct_value_ops.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/octonion.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/overview.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/overview_tr1.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/owens_t.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/perf_over1.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/perf_over2.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/perf_test_app.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_overview.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_ref.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_ref/assert_undefined.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_ref/discrete_quant_ref.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_ref/error_handling_policies.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_ref/internal_promotion.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_ref/iteration_pol.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_ref/namespace_pol.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_ref/pol_ref_ref.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_ref/policy_defaults.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_ref/precision_pol.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_tutorial.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_tutorial/ad_hoc_dist_policies.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_tutorial/ad_hoc_sf_policies.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_tutorial/changing_policy_defaults.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_tutorial/namespace_policies.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_tutorial/policy_tut_defaults.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_tutorial/policy_usage.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_tutorial/understand_dis_quant.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_tutorial/user_def_err_pol.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/pol_tutorial/what_is_a_policy.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/powers.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/powers/cbrt.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/powers/cos_pi.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/powers/ct_pow.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/powers/expm1.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/powers/hypot.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/powers/log1p.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/powers/powm1.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/powers/sin_pi.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/powers/sqrt1pm1.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/quat.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/quat_header.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/quat_history.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/quat_mem_fun.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/quat_non_mem.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/quat_overview.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/quat_synopsis.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/quat_tests.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/quat_todo.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/rationale.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/rationale0.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/real_concepts.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/refs.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/relative_error.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/remez.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/result_type.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/bad_guess.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/bad_roots.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/brent_minima.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/polynomials.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/rational.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/root_comparison.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/root_comparison/cbrt_comparison.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/root_comparison/elliptic_comparison.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/root_comparison/root_n_comparison.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/5th_root_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/cbrt_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/elliptic_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/lambda.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/multiprecision_root.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/nth_root.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/roots_deriv.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/TOMS748.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/bisect.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/bracket_solve.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/brent.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/implementation.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/root_termination.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/rounding.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/rounding/modf.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/rounding/round.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/rounding/trunc.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/run_time.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_beta.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_beta/beta_derivative.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_beta/beta_function.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_beta/ibeta_function.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_beta/ibeta_inv_function.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_erf.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_erf/error_function.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_erf/error_inv.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_gamma.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_gamma/digamma.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_gamma/gamma_derivatives.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_gamma/gamma_ratios.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_gamma/igamma.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_gamma/igamma_inv.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_gamma/lgamma.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_gamma/polygamma.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_gamma/tgamma.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_gamma/trigamma.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_implementation.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_poly.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_poly/hermite.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_poly/laguerre.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_poly/legendre.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sf_poly/sph_harm.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sign_functions.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sinc.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sinc/sinc_overview.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sinc/sinc_pi.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/sinc/sinhc_pi.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/spec.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/special_tut.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/special_tut/special_tut_impl.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/special_tut/special_tut_test.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/specified_typedefs.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/dist_params.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/overview.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/overview/complements.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/overview/generic.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/overview/headers.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/overview/objects.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/overview/parameters.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/overview/summary.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/variates.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binom_conf.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binom_size_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binomial_coinflip_example.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binomial_quiz_example.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/c_sharp.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_intervals.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_size.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_test.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/dist_construct_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/error_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/f_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_location_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_mean_and_sd_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_scale_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/geometric_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/inverse_chi_squared_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nag_library.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nccs_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nccs_eg/nccs_power_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_conf.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_size_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example1.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example2.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/normal_example.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/normal_example/normal_misc.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/paired_st.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_intervals.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_size.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_test.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/two_sample_students_t.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/synopsis.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/threads.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/tr1_ref.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/tradoffs.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/trans.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/tuning.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/tutorial.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/tutorial/non_templ.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/tutorial/templ.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/tutorial/user_def.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/value_op.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/zetas.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/zetas/zeta.html delete mode 100644 boost/libs/math/doc/html/octonions.html delete mode 100644 boost/libs/math/doc/html/overview.html delete mode 100644 boost/libs/math/doc/html/perf.html delete mode 100644 boost/libs/math/doc/html/policy.html delete mode 100644 boost/libs/math/doc/html/quaternions.html delete mode 100644 boost/libs/math/doc/html/rooting.html delete mode 100644 boost/libs/math/doc/html/special.html delete mode 100644 boost/libs/math/doc/html/standalone_HTML.manifest delete mode 100644 boost/libs/math/doc/html/status.html delete mode 100644 boost/libs/math/doc/html/using_udt.html delete mode 100644 boost/libs/math/doc/html/utils.html delete mode 100644 boost/libs/math/doc/html4_symbols.qbk delete mode 100644 boost/libs/math/doc/images/acos.png delete mode 100644 boost/libs/math/doc/images/acosh.png delete mode 100644 boost/libs/math/doc/images/asin.png delete mode 100644 boost/libs/math/doc/images/asinh.png delete mode 100644 boost/libs/math/doc/images/atan.png delete mode 100644 boost/libs/math/doc/images/atanh.png delete mode 100644 boost/libs/math/doc/images/hypot.png delete mode 100644 boost/libs/math/doc/images/hypot2.png delete mode 100644 boost/libs/math/doc/index.html delete mode 100644 boost/libs/math/doc/index.idx delete mode 100644 boost/libs/math/doc/internals/fraction.qbk delete mode 100644 boost/libs/math/doc/internals/internals_overview.qbk delete mode 100644 boost/libs/math/doc/internals/minimax.qbk delete mode 100644 boost/libs/math/doc/internals/polynomial.qbk delete mode 100644 boost/libs/math/doc/internals/rational.qbk delete mode 100644 boost/libs/math/doc/internals/relative_error.qbk delete mode 100644 boost/libs/math/doc/internals/series.qbk delete mode 100644 boost/libs/math/doc/internals/test_data.qbk delete mode 100644 boost/libs/math/doc/internals/tuple.qbk delete mode 100644 boost/libs/math/doc/math.css delete mode 100644 boost/libs/math/doc/math.pdf delete mode 100644 boost/libs/math/doc/math.qbk delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb1.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb10.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb11.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb12.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb13.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb14.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb15.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb16.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb17.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb18.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb19.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb2.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb20.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb21.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb3.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb4.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb5.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb6.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb7.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb8.jpeg delete mode 100644 boost/libs/math/doc/octonion/graphics/octonion_blurb9.jpeg delete mode 100644 boost/libs/math/doc/octonion/math-octonion.qbk delete mode 100644 boost/libs/math/doc/octonion/output.txt delete mode 100644 boost/libs/math/doc/octonion/output_more.txt delete mode 100644 boost/libs/math/doc/overview/building.qbk delete mode 100644 boost/libs/math/doc/overview/common_overviews.qbk delete mode 100644 boost/libs/math/doc/overview/config_macros.qbk delete mode 100644 boost/libs/math/doc/overview/contact_info.qbk delete mode 100644 boost/libs/math/doc/overview/credits.qbk delete mode 100644 boost/libs/math/doc/overview/error_handling.qbk delete mode 100644 boost/libs/math/doc/overview/faq.qbk delete mode 100644 boost/libs/math/doc/overview/issues.qbk delete mode 100644 boost/libs/math/doc/overview/overview.qbk delete mode 100644 boost/libs/math/doc/overview/result_type_calc.qbk delete mode 100644 boost/libs/math/doc/overview/roadmap.qbk delete mode 100644 boost/libs/math/doc/overview/structure.qbk delete mode 100644 boost/libs/math/doc/overview/thread_safety.qbk delete mode 100644 boost/libs/math/doc/overview/tr1.qbk delete mode 100644 boost/libs/math/doc/performance/performance.qbk delete mode 100644 boost/libs/math/doc/plot_owens_3d_xyp.png delete mode 100644 boost/libs/math/doc/plot_owens_t.png delete mode 100644 boost/libs/math/doc/policies/policy.qbk delete mode 100644 boost/libs/math/doc/policies/policy_tutorial.qbk delete mode 100644 boost/libs/math/doc/quaternion/TQE.pdf delete mode 100644 boost/libs/math/doc/quaternion/TQE_EA.pdf delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb1.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb10.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb11.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb12.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb13.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb14.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb15.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb16.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb17.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb18.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb19.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb2.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb20.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb21.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb22.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb23.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb3.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb4.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb5.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb6.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb7.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb8.jpeg delete mode 100644 boost/libs/math/doc/quaternion/graphics/quaternion_blurb9.jpeg delete mode 100644 boost/libs/math/doc/quaternion/math-quaternion.qbk delete mode 100644 boost/libs/math/doc/quaternion/output.txt delete mode 100644 boost/libs/math/doc/quaternion/output_more.txt delete mode 100644 boost/libs/math/doc/roots/bad_root_1.svg delete mode 100644 boost/libs/math/doc/roots/bad_root_2.svg delete mode 100644 boost/libs/math/doc/roots/bad_root_3.svg delete mode 100644 boost/libs/math/doc/roots/bad_root_4.svg delete mode 100644 boost/libs/math/doc/roots/elliptic_table_100_gcc_X64_SSE2.qbk delete mode 100644 boost/libs/math/doc/roots/elliptic_table_100_msvc_X64_AVX.qbk delete mode 100644 boost/libs/math/doc/roots/elliptic_table_100_msvc_X86_AVX.qbk delete mode 100644 boost/libs/math/doc/roots/elliptic_table_100_msvc_X86_SSE2.qbk delete mode 100644 boost/libs/math/doc/roots/minima.qbk delete mode 100644 boost/libs/math/doc/roots/root_comparison.qbk delete mode 100644 boost/libs/math/doc/roots/root_comparison_tables_gcc.qbk delete mode 100644 boost/libs/math/doc/roots/root_comparison_tables_gcc_075.qbk delete mode 100644 boost/libs/math/doc/roots/root_comparison_tables_msvc.qbk delete mode 100644 boost/libs/math/doc/roots/root_comparison_tables_msvc_075.qbk delete mode 100644 boost/libs/math/doc/roots/root_finding_examples.qbk delete mode 100644 boost/libs/math/doc/roots/root_n_comparison_tables.qbk delete mode 100644 boost/libs/math/doc/roots/roots.qbk delete mode 100644 boost/libs/math/doc/roots/roots_overview.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_100_gcc_SEE_SEE2_X64.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_100_gcc_X64_SSE2.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_100_msvc.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_100_msvc_AVX.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_100_msvc_X64_AVX.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_100_msvc_X86.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_100_msvc_X86_SSE2.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_75_gcc_SEE_SEE2_X64.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_75_gcc_X64_SSE2.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_75_msvc.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_75_msvc_AVX.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_75_msvc_X86.qbk delete mode 100644 boost/libs/math/doc/roots/roots_table_75_msvc_X86_SSE2.qbk delete mode 100644 boost/libs/math/doc/roots/roots_without_derivatives.qbk delete mode 100644 boost/libs/math/doc/roots/type_info_table_100_msvc.qbk delete mode 100644 boost/libs/math/doc/roots/type_info_table_75_msvc.qbk delete mode 100644 boost/libs/math/doc/sf/airy.qbk delete mode 100644 boost/libs/math/doc/sf/bernoulli_numbers.qbk delete mode 100644 boost/libs/math/doc/sf/bessel_ik.qbk delete mode 100644 boost/libs/math/doc/sf/bessel_introduction.qbk delete mode 100644 boost/libs/math/doc/sf/bessel_jy.qbk delete mode 100644 boost/libs/math/doc/sf/bessel_prime.qbk delete mode 100644 boost/libs/math/doc/sf/bessel_spherical.qbk delete mode 100644 boost/libs/math/doc/sf/beta.qbk delete mode 100644 boost/libs/math/doc/sf/beta_derivative.qbk delete mode 100644 boost/libs/math/doc/sf/digamma.qbk delete mode 100644 boost/libs/math/doc/sf/ellint_carlson.qbk delete mode 100644 boost/libs/math/doc/sf/ellint_introduction.qbk delete mode 100644 boost/libs/math/doc/sf/ellint_legendre.qbk delete mode 100644 boost/libs/math/doc/sf/erf.qbk delete mode 100644 boost/libs/math/doc/sf/erf_inv.qbk delete mode 100644 boost/libs/math/doc/sf/expint.qbk delete mode 100644 boost/libs/math/doc/sf/factorials.qbk delete mode 100644 boost/libs/math/doc/sf/gamma_derivatives.qbk delete mode 100644 boost/libs/math/doc/sf/gamma_ratios.qbk delete mode 100644 boost/libs/math/doc/sf/hankel.qbk delete mode 100644 boost/libs/math/doc/sf/hermite.qbk delete mode 100644 boost/libs/math/doc/sf/ibeta.qbk delete mode 100644 boost/libs/math/doc/sf/ibeta_inv.qbk delete mode 100644 boost/libs/math/doc/sf/igamma.qbk delete mode 100644 boost/libs/math/doc/sf/igamma_inv.qbk delete mode 100644 boost/libs/math/doc/sf/inv_hyper.qbk delete mode 100644 boost/libs/math/doc/sf/jacobi_elliptic.qbk delete mode 100644 boost/libs/math/doc/sf/laguerre.qbk delete mode 100644 boost/libs/math/doc/sf/latin1_symbols.qbk delete mode 100644 boost/libs/math/doc/sf/legendre.qbk delete mode 100644 boost/libs/math/doc/sf/lgamma.qbk delete mode 100644 boost/libs/math/doc/sf/license.qbk delete mode 100644 boost/libs/math/doc/sf/number_series.qbk delete mode 100644 boost/libs/math/doc/sf/owens_t.qbk delete mode 100644 boost/libs/math/doc/sf/poisson_optimisation.qbk delete mode 100644 boost/libs/math/doc/sf/polygamma.qbk delete mode 100644 boost/libs/math/doc/sf/pow.qbk delete mode 100644 boost/libs/math/doc/sf/powers.qbk delete mode 100644 boost/libs/math/doc/sf/sinc.qbk delete mode 100644 boost/libs/math/doc/sf/spherical_harmonic.qbk delete mode 100644 boost/libs/math/doc/sf/test_html4_symbols.qbk delete mode 100644 boost/libs/math/doc/sf/tgamma.qbk delete mode 100644 boost/libs/math/doc/sf/trigamma.qbk delete mode 100644 boost/libs/math/doc/sf/zeta.qbk delete mode 100644 boost/libs/math/doc/tr1/c99_ref.qbk delete mode 100644 boost/libs/math/doc/tr1/tr1_ref.qbk delete mode 100644 boost/libs/math/doc/win32_nmake.mak (limited to 'boost/libs/math/doc') diff --git a/boost/libs/math/doc/Jamfile.v2 b/boost/libs/math/doc/Jamfile.v2 deleted file mode 100644 index c8b24535..00000000 --- a/boost/libs/math/doc/Jamfile.v2 +++ /dev/null @@ -1,89 +0,0 @@ - -# Copyright John Maddock 2005. Use, modification, and distribution are -# subject to 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) - -using quickbook ; -using auto-index ; -import modules ; - -path-constant images_location : html ; -path-constant here : . ; - -xml math : math.qbk ; -boostbook standalone - : - math - : - # Path for links to Boost: - boost.root=../../../.. - html.stylesheet=math.css - - # Some general style settings: - table.footnote.number.format=1 - footnote.number.format=1 - - # HTML options first: - # Use graphics not text for navigation: - navig.graphics=1 - # How far down we chunk nested sections, basically all of them: - chunk.section.depth=10 - # Don't put the first section on the same page as the TOC: - chunk.first.sections=1 - # How far down sections get TOC's - toc.section.depth=10 - # Max depth in each TOC: - toc.max.depth=4 - # How far down we go with TOC's - generate.section.toc.level=10 - # Index on type: - index.on.type=1 - boost.noexpand.chapter.toc=1 - - #root.filename="sf_dist_and_tools" - #graphicsize.extension=1 - #use.extensions=1 - - # PDF Options: - # TOC Generation: this is needed for FOP-0.9 and later: - fop1.extensions=0 - pdf:xep.extensions=1 - # TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9! - pdf:fop.extensions=0 - pdf:fop1.extensions=0 - # No indent on body text: - pdf:body.start.indent=0pt - # Margin size: - pdf:page.margin.inner=0.5in - # Margin size: - pdf:page.margin.outer=0.5in - # Paper type = A4 - pdf:paper.type=A4 - # Yes, we want graphics for admonishments: - admon.graphics=1 - # Set this one for PDF generation *only*: - # default pnd graphics are awful in PDF form, - # better use SVG's instead: - pdf:admon.graphics.extension=".svg" - pdf:use.role.for.mediaobject=1 - pdf:preferred.mediaobject.role=print - pdf:img.src.path=$(images_location)/ - pdf:draft.mode="no" - pdf:boost.url.prefix=http://www.boost.org/doc/libs/release/libs/math/doc/html - on pdf:off - html:on - $(here)/index.idx - $(here)/../../.. - #on - enable_index - pdf:index.on.type=1 - ; - -install pdfinstall : standalone/pdf : . PDF math.pdf ; -explicit pdfinstall ; - -############################################################################### -alias boostdoc ; -explicit boostdoc ; -alias boostrelease : standalone ; -explicit boostrelease ; diff --git a/boost/libs/math/doc/background/error.qbk b/boost/libs/math/doc/background/error.qbk deleted file mode 100644 index a3a79b14..00000000 --- a/boost/libs/math/doc/background/error.qbk +++ /dev/null @@ -1,73 +0,0 @@ -[section:relative_error Relative Error] - -Given an actual value /a/ and a found value /v/ the relative error can be -calculated from: - -[equation error2] - -However the test programs in the library use the symmetrical form: - -[equation error1] - -which measures /relative difference/ and happens to be less error -prone in use since we don't have to worry which value is the "true" -result, and which is the experimental one. It guarantees to return a value -at least as large as the relative error. - -Special care needs to be taken when one value is zero: we could either take the -absolute error in this case (but that's cheating as the absolute error is likely -to be very small), or we could assign a value of either 1 or infinity to the -relative error in this special case. In the test cases for the special functions -in this library, everything below a threshold is regarded as "effectively zero", -otherwise the relative error is assigned the value of 1 if only one of the terms -is zero. The threshold is currently set at `std::numeric_limits<>::min()`: -in other words all denormalised numbers are regarded as a zero. - -All the test programs calculate /quantized relative error/, whereas the graphs -in this manual are produced with the /actual error/. The difference is as -follows: in the test programs, the test data is rounded to the target real type -under test when the program is compiled, -so the error observed will then be a whole number of /units in the last place/ -either rounded up from the actual error, or rounded down (possibly to zero). -In contrast the /true error/ is obtained by extending -the precision of the calculated value, and then comparing to the actual value: -in this case the calculated error may be some fraction of /units in the last place/. - -Note that throughout this manual and the test programs the relative error is -usually quoted in units of epsilon. However, remember that /units in the last place/ -more accurately reflect the number of contaminated digits, and that relative -error can /"wobble"/ by a factor of 2 compared to /units in the last place/. -In other words: two implementations of the same function, whose -maximum relative errors differ by a factor of 2, can actually be accurate -to the same number of binary digits. You have been warned! - -[h4:zero_error The Impossibility of Zero Error] - -For many of the functions in this library, it is assumed that the error is -"effectively zero" if the computation can be done with a number of guard -digits. However it should be remembered that if the result is a -/transcendental number/ -then as a point of principle we can never be sure that the result is accurate -to more than 1 ulp. This is an example of what -[@http://en.wikipedia.org/wiki/William_Kahan] called -[@http://en.wikipedia.org/wiki/Rounding#The_table-maker.27s_dilemma]: -consider what happens if the first guard digit is a one, and the remaining guard digits are all zero. -Do we have a tie or not? Since the only thing we can tell about a transcendental number -is that its digits have no particular pattern, we can never tell if we have a tie, -no matter how many guard digits we have. Therefore, we can never be completely sure -that the result has been rounded in the right direction. Of course, transcendental -numbers that just happen to be a tie - for however many guard digits we have - are -extremely rare, and get rarer the more guard digits we have, but even so.... - -Refer to the classic text -[@http://docs.sun.com/source/806-3568/ncg_goldberg.html What Every Computer Scientist Should Know About Floating-Point Arithmetic] -for more information. - -[endsect][/section:relative_error Relative Error] - -[/ - Copyright 2006, 2012 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/background/implementation.qbk b/boost/libs/math/doc/background/implementation.qbk deleted file mode 100644 index 377e7023..00000000 --- a/boost/libs/math/doc/background/implementation.qbk +++ /dev/null @@ -1,664 +0,0 @@ -[section:sf_implementation Additional Implementation Notes] - -The majority of the implementation notes are included with the documentation -of each function or distribution. The notes here are of a more general nature, -and reflect more the general implementation philosophy used. - -[h4 Implementation philosophy] - -"First be right, then be fast." - -There will always be potential compromises -to be made between speed and accuracy. -It may be possible to find faster methods, -particularly for certain limited ranges of arguments, -but for most applications of math functions and distributions, -we judge that speed is rarely as important as accuracy. - -So our priority is accuracy. - -To permit evaluation of accuracy of the special functions, -production of extremely accurate tables of test values -has received considerable effort. - -(It also required much CPU effort - -there was some danger of molten plastic dripping from the bottom of JM's laptop, -so instead, PAB's Dual-core desktop was kept 50% busy for [*days] -calculating some tables of test values!) - -For a specific RealType, say `float` or `double`, -it may be possible to find approximations for some functions -that are simpler and thus faster, but less accurate -(perhaps because there are no refining iterations, -for example, when calculating inverse functions). - -If these prove accurate enough to be "fit for his purpose", -then a user may substitute his custom specialization. - -For example, there are approximations dating back from times -when computation was a [*lot] more expensive: - -H Goldberg and H Levine, Approximate formulas for -percentage points and normalisation of t and chi squared, -Ann. Math. Stat., 17(4), 216 - 225 (Dec 1946). - -A H Carter, Approximations to percentage points of the z-distribution, -Biometrika 34(2), 352 - 358 (Dec 1947). - -These could still provide sufficient accuracy for some speed-critical applications. - -[h4 Accuracy and Representation of Test Values] - -In order to be accurate enough for as many as possible real types, -constant values are given to 50 decimal digits if available -(though many sources proved only accurate near to 64-bit double precision). -Values are specified as long double types by appending L, -unless they are exactly representable, for example integers, or binary fractions like 0.125. -This avoids the risk of loss of accuracy converting from double, the default type. -Values are used after `static_cast(1.2345L)` -to provide the appropriate RealType for spot tests. - -Functions that return constants values, like kurtosis for example, are written as - -`static_cast(-3) / 5;` - -to provide the most accurate value -that the compiler can compute for the real type. -(The denominator is an integer and so will be promoted exactly). - -So tests for one third, *not* exactly representable with radix two floating-point, -(should) use, for example: - -`static_cast(1) / 3;` - -If a function is very sensitive to changes in input, -specifying an inexact value as input (such as 0.1) can throw -the result off by a noticeable amount: 0.1f is "wrong" -by ~1e-7 for example (because 0.1 has no exact binary representation). -That is why exact binary values - halves, quarters, and eighths etc - -are used in test code along with the occasional fraction `a/b` with `b` -a power of two (in order to ensure that the result is an exactly -representable binary value). - -[h4 Tolerance of Tests] - -The tolerances need to be set to the maximum of: - -* Some epsilon value. -* The accuracy of the data (often only near 64-bit double). - -Otherwise when long double has more digits than the test data, then no -amount of tweaking an epsilon based tolerance will work. - -A common problem is when tolerances that are suitable for implementations -like Microsoft VS.NET where double and long double are the same size: -tests fail on other systems where long double is more accurate than double. -Check first that the suffix L is present, and then that the tolerance is big enough. - -[h4 Handling Unsuitable Arguments] - -In -[@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1665.pdf Errors in Mathematical Special Functions], J. Marraffino & M. Paterno -it is proposed that signalling a domain error is mandatory -when the argument would give an mathematically undefined result. - -*Guideline 1 - -[:A mathematical function is said to be defined at a point a = (a1, a2, . . .) -if the limits as x = (x1, x2, . . .) 'approaches a from all directions agree'. -The defined value may be any number, or +infinity, or -infinity.] - -Put crudely, if the function goes to + infinity -and then emerges 'round-the-back' with - infinity, -it is NOT defined. - -[:The library function which approximates a mathematical function shall signal a domain error -whenever evaluated with argument values for which the mathematical function is undefined.] - -*Guideline 2 - -[:The library function which approximates a mathematical function -shall signal a domain error whenever evaluated with argument values -for which the mathematical function obtains a non-real value.] - -This implementation is believed to follow these proposals and to assist compatibility with -['ISO/IEC 9899:1999 Programming languages - C] -and with the -[@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf Draft Technical Report on C++ Library Extensions, 2005-06-24, section 5.2.1, paragraph 5]. -[link math_toolkit.error_handling See also domain_error]. - -See __policy_ref for details of the error handling policies that should allow -a user to comply with any of these recommendations, as well as other behaviour. - -See [link math_toolkit.error_handling error handling] -for a detailed explanation of the mechanism, and -[link math_toolkit.stat_tut.weg.error_eg error_handling example] -and -[@../../example/error_handling_example.cpp error_handling_example.cpp] - -[caution If you enable throw but do NOT have try & catch block, -then the program will terminate with an uncaught exception and probably abort. -Therefore to get the benefit of helpful error messages, enabling *all* exceptions -*and* using try&catch is recommended for all applications. -However, for simplicity, this is not done for most examples.] - -[h4 Handling of Functions that are Not Mathematically defined] - -Functions that are not mathematically defined, -like the Cauchy mean, fail to compile by default. -A [link math_toolkit.pol_ref.assert_undefined policy] -allows control of this. - -If the policy is to permit undefined functions, then calling them -throws a domain error, by default. But the error policy can be set -to not throw, and to return NaN instead. For example, - -`#define BOOST_MATH_DOMAIN_ERROR_POLICY ignore_error` - -appears before the first Boost include, -then if the un-implemented function is called, -mean(cauchy<>()) will return std::numeric_limits::quiet_NaN(). - -[warning If `std::numeric_limits::has_quiet_NaN` is false -(for example, if T is a User-defined type without NaN support), -then an exception will always be thrown when a domain error occurs. -Catching exceptions is therefore strongly recommended.] - -[h4 Median of distributions] - -There are many distributions for which we have been unable to find an analytic formula, -and this has deterred us from implementing -[@http://en.wikipedia.org/wiki/Median median functions], the mid-point in a list of values. - -However a useful numerical approximation for distribution `dist` -is available as usual as an accessor non-member function median using `median(dist)`, -that may be evaluated (in the absence of an analytic formula) by calling - -`quantile(dist, 0.5)` (this is the /mathematical/ definition of course). - -[@http://www.amstat.org/publications/jse/v13n2/vonhippel.html Mean, Median, and Skew, Paul T von Hippel] - -[@http://documents.wolfram.co.jp/teachersedition/MathematicaBook/24.5.html Descriptive Statistics,] - -[@http://documents.wolfram.co.jp/v5/Add-onsLinks/StandardPackages/Statistics/DescriptiveStatistics.html and ] - -[@http://documents.wolfram.com/v5/TheMathematicaBook/AdvancedMathematicsInMathematica/NumericalOperationsOnData/3.8.1.html -Mathematica Basic Statistics.] give more detail, in particular for discrete distributions. - - -[h4 Handling of Floating-Point Infinity] - -Some functions and distributions are well defined with + or - infinity as -argument(s), but after some experiments with handling infinite arguments -as special cases, we concluded that it was generally more useful to forbid this, -and instead to return the result of __domain_error. - -Handling infinity as special cases is additionally complicated -because, unlike built-in types on most - but not all - platforms, -not all User-Defined Types are -specialized to provide `std::numeric_limits::infinity()` -and would return zero rather than any representation of infinity. - -The rationale is that non-finiteness may happen because of error -or overflow in the users code, and it will be more helpful for this -to be diagnosed promptly rather than just continuing. -The code also became much more complicated, more error-prone, -much more work to test, and much less readable. - -However in a few cases, for example normal, where we felt it obvious, -we have permitted argument(s) to be infinity, -provided infinity is implemented for the `RealType` on that implementation, -and it is supported and tested by the distribution. - -The range for these distributions is set to infinity if supported by the platform, -(by testing `std::numeric_limits::has_infinity`) -else the maximum value provided for the `RealType` by Boost.Math. - -Testing for has_infinity is obviously important for arbitrary precision types -where infinity makes much less sense than for IEEE754 floating-point. - -So far we have not set `support()` function (only range) -on the grounds that the PDF is uninteresting/zero for infinities. - -Users who require special handling of infinity (or other specific value) can, -of course, always intercept this before calling a distribution or function -and return their own choice of value, or other behavior. -This will often be simpler than trying to handle the aftermath of the error policy. - -Overflow, underflow, denorm can be handled using __error_policy. - -We have also tried to catch boundary cases where the mathematical specification -would result in divide by zero or overflow and signalling these similarly. -What happens at (and near), poles can be controlled through __error_policy. - -[h4 Scale, Shape and Location] - -We considered adding location and scale to the list of functions, for example: - - template - inline RealType scale(const triangular_distribution& dist) - { - 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)) - { - return result; - } - return (upper - lower); - } - -but found that these concepts are not defined (or their definition too contentious) -for too many distributions to be generally applicable. -Because they are non-member functions, they can be added if required. - -[h4 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 as a approximation for the normal distribution, -the most common usage, lower = -1, mode = 0 and upper = 1 would be more suitable. - -[h4 Rational Approximations Used] - -Some of the special functions in this library are implemented via -rational approximations. These are either taken from the literature, -or devised by John Maddock using -[link math_toolkit.internals.minimax our Remez code]. - -Rational rather than Polynomial approximations are used to ensure -accuracy: polynomial approximations are often wonderful up to -a certain level of accuracy, but then quite often fail to provide much greater -accuracy no matter how many more terms are added. - -Our own approximations were devised either for added accuracy -(to support 128-bit long doubles for example), or because -literature methods were unavailable or under non-BSL -compatible license. Our Remez code is known to produce good -agreement with literature results in fairly simple "toy" cases. -All approximations were checked -for convergence and to ensure that -they were not ill-conditioned (the coefficients can give a -theoretically good solution, but the resulting rational function -may be un-computable at fixed precision). - -Recomputing using different -Remez implementations may well produce differing coefficients: the -problem is well known to be ill conditioned in general, and our Remez implementation -often found a broad and ill-defined minima for many of these approximations -(of course for simple "toy" examples like approximating `exp` the minima -is well defined, and the coefficients should agree no matter whose Remez -implementation is used). This should not in general effect the validity -of the approximations: there's good literature supporting the idea that -coefficients can be "in error" without necessarily adversely effecting -the result. Note that "in error" has a special meaning in this context, -see [@http://front.math.ucdavis.edu/0101.5042 -"Approximate construction of rational approximations and the effect -of error autocorrection.", Grigori Litvinov, eprint arXiv:math/0101042]. -Therefore the coefficients still need to be accurately calculated, even if they can -be in error compared to the "true" minimax solution. - -[h4 Representation of Mathematical Constants] - -A macro BOOST_DEFINE_MATH_CONSTANT in constants.hpp is used -to provide high accuracy constants to mathematical functions and distributions, -since it is important to provide values uniformly for both built-in -float, double and long double types, -and for User Defined types in __multiprecision like __cpp_dec_float. -and others like NTL::quad_float and NTL::RR. - -To permit calculations in this Math ToolKit and its tests, (and elsewhere) -at about 100 decimal digits with NTL::RR type, -it is obviously necessary to define constants to this accuracy. - -However, some compilers do not accept decimal digits strings as long as this. -So the constant is split into two parts, with the 1st containing at least -long double precision, and the 2nd zero if not needed or known. -The 3rd part permits an exponent to be provided if necessary (use zero if none) - -the other two parameters may only contain decimal digits (and sign and decimal point), -and may NOT include an exponent like 1.234E99 (nor a trailing F or L). -The second digit string is only used if T is a User-Defined Type, -when the constant is converted to a long string literal and lexical_casted to type T. -(This is necessary because you can't use a numeric constant -since even a long double might not have enough digits). - -For example, pi is defined: - - BOOST_DEFINE_MATH_CONSTANT(pi, - 3.141592653589793238462643383279502884197169399375105820974944, - 5923078164062862089986280348253421170679821480865132823066470938446095505, - 0) - -And used thus: - - using namespace boost::math::constants; - - double diameter = 1.; - double radius = diameter * pi(); - - or boost::math::constants::pi() - -Note that it is necessary (if inconvenient) to specify the type explicitly. - -So you cannot write - - 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 - -[h4 Thread safety] - -Reporting of error by setting `errno` should be thread-safe already -(otherwise none of the std lib math functions would be thread safe?). -If you turn on reporting of errors via exceptions, `errno` gets left unused anyway. - -For normal C++ usage, the Boost.Math `static const` constants are now thread-safe so -for built-in real-number types: `float`, `double` and `long double` are all thread safe. - -For User_defined types, for example, __cpp_dec_float, -the Boost.Math should also be thread-safe, -(thought we are unsure how to rigorously prove this). - -(Thread safety has received attention in the C++11 Standard revision, -so hopefully all compilers will do the right thing here at some point.) - -[h4 Sources of Test Data] - -We found a large number of sources of test data. -We have assumed that these are /"known good"/ -if they agree with the results from our test -and only consulted other sources for their /'vote'/ -in the case of serious disagreement. -The accuracy, actual and claimed, vary very widely. -Only [@http://functions.wolfram.com/ Wolfram Mathematica functions] -provided a higher accuracy than -C++ double (64-bit floating-point) and was regarded as -the most-trusted source by far. -The __R provided the widest range of distributions, -but the usual Intel X86 distribution uses 64-but doubles, -so our use was limited to the 15 to 17 decimal digit accuracy. - -A useful index of sources is: -[@http://www.sal.hut.fi/Teaching/Resources/ProbStat/table.html -Web-oriented Teaching Resources in Probability and Statistics] - -[@http://espse.ed.psu.edu/edpsych/faculty/rhale/hale/507Mat/statlets/free/pdist.htm Statlet]: -Is a Javascript application that calculates and plots probability distributions, -and provides the most complete range of distributions: - -[:Bernoulli, Binomial, discrete uniform, geometric, hypergeometric, -negative binomial, Poisson, beta, Cauchy-Lorentz, chi-sequared, Erlang, -exponential, extreme value, Fisher, gamma, Laplace, logistic, -lognormal, normal, Parteo, Student's t, triangular, uniform, and Weibull.] - -It calculates pdf, cdf, survivor, log survivor, hazard, tail areas, -& critical values for 5 tail values. - -It is also the only independent source found for the Weibull distribution; -unfortunately it appears to suffer from very poor accuracy in areas where -the underlying special function is known to be difficult to implement. - -[h4 Testing for Invalid Parameters to Functions and Constructors] - -After finding that some 'bad' parameters (like NaN) were not throwing -a `domain_error` exception as they should, a function - -`check_out_of_range` (in `test_out_of_range.hpp`) -was devised by JM to check -(using Boost.Test's BOOST_CHECK_THROW macro) -that bad parameters passed to constructors and functions throw `domain_error` exceptions. - -Usage is `check_out_of_range< DistributionType >(list-of-params);` -Where list-of-params is a list of *valid* parameters from which the distribution can be constructed -- ie the same number of args are passed to the function, -as are passed to the distribution constructor. - -The values of the parameters are not important, but must be *valid* to pass the constructor checks; -the default values are suitable, but must be explicitly provided, for example: - - check_out_of_range >(1, 2); - -Checks made are: - -* Infinity or NaN (if available) passed in place of each of the valid params. -* Infinity or NaN (if available) as a random variable. -* Out-of-range random variable passed to pdf and cdf -(ie outside of "range(DistributionType)"). -* Out-of-range probability passed to quantile function and complement. - -but does *not* check finite but out-of-range parameters to the constructor -because these are specific to each distribution, for example: - - BOOST_CHECK_THROW(pdf(pareto_distribution(0, 1), 0), std::domain_error); - BOOST_CHECK_THROW(pdf(pareto_distribution(1, 0), 0), std::domain_error); - -checks `scale` and `shape` parameters are both > 0 -by checking that `domain_error` exception is thrown if either are == 0. - -(Use of `check_out_of_range` function may mean that some previous tests are now redundant). - -It was also noted that if more than one parameter is bad, -then only the first detected will be reported by the error message. - -[h4 Creating and Managing the Equations] - -Equations that fit on a single line can most easily be produced by inline Quickbook code -using templates for Unicode Greek and Unicode Math symbols. -All Greek letter and small set of Math symbols is available at -/boost-path/libs/math/doc/sf_and_dist/html4_symbols.qbk - -Where equations need to use more than one line, real Math editors were used. - -The primary source for the equations is now -[@http://www.w3.org/Math/ MathML]: see the -*.mml files in libs\/math\/doc\/sf_and_dist\/equations\/. - -These are most easily edited by a GUI editor such as -[@http://mathcast.sourceforge.net/home.html Mathcast], -please note that the equation editor supplied with Open Office -currently mangles these files and should not currently be used. - -Conversion to SVG was achieved using -[@https://sourceforge.net/projects/svgmath/ SVGMath] and a command line -such as: - -[pre -$for file in *.mml; do ->/cygdrive/c/Python25/python.exe 'C:\download\open\SVGMath-0.3.1\math2svg.py' \\ ->>$file > $(basename $file .mml).svg ->done -] - -See also the section on "Using Python to run Inkscape" and -"Using inkscape to convert scalable vector SVG files to Portable Network graphic PNG". - -Note that SVGMath requires that the mml files are *not* wrapped in an XHTML -XML wrapper - this is added by Mathcast by default - one workaround is to -copy an existing mml file and then edit it with Mathcast: the existing -format should then be preserved. This is a bug in the XML parser used by -SVGMath which the author is aware of. - -If necessary the XHTML wrapper can be removed with: - -[pre cat filename | tr -d "\\r\\n" \| sed -e 's\/.*\\(\]\*>.\*<\/math>\\).\*\/\\1\/' > newfile] - -Setting up fonts for SVGMath is currently rather tricky, on a Windows XP system -JM's font setup is the same as the sample config file provided with SVGMath -but with: - -[pre - - -] - -changed to: - -[pre - - -] - -Note that unlike the sample config file supplied with SVGMath, this does not -make use of the [@http://support.wolfram.com/technotes/fonts/windows/latestfonts.html Mathematica 7 font] -as this lacks sufficient Unicode information -for it to be used with either SVGMath or XEP "as is". - -Also note that the SVG files in the repository are almost certainly -Windows-specific since they reference various Windows Fonts. - -PNG files can be created from the SVGs using -[@http://xmlgraphics.apache.org/batik/tools/rasterizer.html Batik] -and a command such as: - -[pre java -jar 'C:\download\open\batik-1.7\batik-rasterizer.jar' -dpi 120 *.svg] - -Or using Inkscape (File, Export bitmap, Drawing tab, bitmap size (default size, 100 dpi), Filename (default). png) - -or Using Cygwin, a command such as: - -[pre for file in *.svg; do - /cygdrive/c/progra~1/Inkscape/inkscape -d 120 -e $(cygpath -a -w $(basename $file .svg).png) $(cygpath -a -w $file); -done] - -Using BASH - -[pre # Convert single SVG to PNG file. -# /c/progra~1/Inkscape/inkscape -d 120 -e a.png a.svg -] - -or to convert All files in folder SVG to PNG. - -[pre -for file in *.svg; do -/c/progra~1/Inkscape/inkscape -d 120 -e $(basename $file .svg).png $file -done -] - -Currently Inkscape seems to generate the better looking PNGs. - -The PDF is generated into \pdf\math.pdf -using a command from a shell or command window with current directory -\math_toolkit\libs\math\doc\sf_and_dist, typically: - -[pre bjam -a pdf >math_pdf.log] - -Note that XEP will have to be configured to *use and embed* -whatever fonts are used by the SVG equations -(almost certainly editing the sample xep.xml provided by the XEP installation). -If you fail to do this you will get XEP warnings in the log file like - -[pre \[warning\]could not find any font family matching "Times New Roman"; replaced by Helvetica] - -(html is the default so it is generated at libs\math\doc\html\index.html -using command line >bjam -a > math_toolkit.docs.log). - - -is provided in the xep.xml downloaded, but the Windows TrueType fonts are commented out. - -JM's XEP config file \xep\xep.xml has the following font configuration section added: - -[pre - - - <\/font> - <\/font> - <\/font> - <\/font> - <\/font\-family> - - - <\/font> - <\/font> - <\/font> - <\/font> - <\/font\-family> - - - <\/font> - <\/font> - <\/font> - <\/font> - <\/font\-family> - - - <\/font> - <\/font> - <\/font\-family> - - - <\/font> - <\/font> - <\/font> - <\/font> - <\/font\-family> - - - <\/font> - <\/font> - <\/font> - <\/font> - <\/font\-family> - - - - - - -] - -PAB had to alter his because the Lucida Sans Unicode font had a different name. -Other changes are very likely to be required if you are not using Windows. - -XZ authored his equations using the venerable Latex, JM converted these to -MathML using [@http://gentoo-wiki.com/HOWTO_Convert_LaTeX_to_HTML_with_MathML mxlatex]. -This process is currently unreliable and required some manual intervention: -consequently Latex source is not considered a viable route for the automatic -production of SVG versions of equations. - -Equations are embedded in the quickbook source using the /equation/ -template defined in math.qbk. This outputs Docbook XML that looks like: - -[pre - - - - - - - - -] - -MathML is not currently present in the Docbook output, or in the -generated HTML: this needs further investigation. - -[h4 Producing Graphs] - -Graphs were produced in SVG format and then converted to PNG's using the same -process as the equations. - -The programs -`/libs/math/doc/sf_and_dist/graphs/dist_graphs.cpp` -and `/libs/math/doc/sf_and_dist/graphs/sf_graphs.cpp` -generate the SVG's directly using the -[@http://code.google.com/soc/2007/boost/about.html Google Summer of Code 2007] -project of Jacob Voytko (whose work so far, -considerably enhanced and now reasonably mature and usable, by Paul A. Bristow, -is at .\boost-sandbox\SOC\2007\visualization). - -[endsect] [/section:sf_implementation Implementation Notes] - -[/ - Copyright 2006, 2007, 2010 John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/background/lanczos.qbk b/boost/libs/math/doc/background/lanczos.qbk deleted file mode 100644 index 0fa3bee2..00000000 --- a/boost/libs/math/doc/background/lanczos.qbk +++ /dev/null @@ -1,246 +0,0 @@ -[section:lanczos The Lanczos Approximation] - -[h4 Motivation] - -['Why base gamma and gamma-like functions on the Lanczos approximation?] - -First of all I should make clear that for the gamma function -over real numbers (as opposed to complex ones) -the Lanczos approximation (See [@http://en.wikipedia.org/wiki/Lanczos_approximation Wikipedia or ] -[@http://mathworld.wolfram.com/LanczosApproximation.html Mathworld]) -appears to offer no clear advantage over more traditional methods such as -[@http://en.wikipedia.org/wiki/Stirling_approximation Stirling's approximation]. -__pugh carried out an extensive comparison of the various methods available -and discovered that they were all very similar in terms of complexity -and relative error. However, the Lanczos approximation does have a couple of -properties that make it worthy of further consideration: - -* The approximation has an easy to compute truncation error that holds for -all /z > 0/. In practice that means we can use the same approximation for all -/z > 0/, and be certain that no matter how large or small /z/ is, the truncation -error will /at worst/ be bounded by some finite value. -* The approximation has a form that is particularly amenable to analytic -manipulation, in particular ratios of gamma or gamma-like functions -are particularly easy to compute without resorting to logarithms. - -It is the combination of these two properties that make the approximation -attractive: Stirling's approximation is highly accurate for large z, and -has some of the same analytic properties as the Lanczos approximation, but -can't easily be used across the whole range of z. - -As the simplest example, consider the ratio of two gamma functions: one could -compute the result via lgamma: - - exp(lgamma(a) - lgamma(b)); - -However, even if lgamma is uniformly accurate to 0.5ulp, the worst case -relative error in the above can easily be shown to be: - - Erel > a * log(a)/2 + b * log(b)/2 - -For small /a/ and /b/ that's not a problem, but to put the relationship another -way: ['each time a and b increase in magnitude by a factor of 10, at least one -decimal digit of precision will be lost.] - -In contrast, by analytically combining like power -terms in a ratio of Lanczos approximation's, these errors can be virtually eliminated -for small /a/ and /b/, and kept under control for very large (or very small -for that matter) /a/ and /b/. Of course, computing large powers is itself a -notoriously hard problem, but even so, analytic combinations of Lanczos -approximations can make the difference between obtaining a valid result, or -simply garbage. Refer to the implementation notes for the __beta function for -an example of this method in practice. The incomplete -[link math_toolkit.sf_gamma.igamma gamma_p gamma] and -[link math_toolkit.sf_beta.ibeta_function beta] functions -use similar analytic combinations of power terms, to combine gamma and beta -functions divided by large powers into single (simpler) expressions. - -[h4 The Approximation] - -The Lanczos Approximation to the Gamma Function is given by: - -[equation lanczos0] - -Where S[sub g](z) is an infinite sum, that is convergent for all z > 0, -and /g/ is an arbitrary parameter that controls the "shape" of the -terms in the sum which is given by: - -[equation lanczos0a] - -With individual coefficients defined in closed form by: - -[equation lanczos0b] - -However, evaluation of the sum in that form can lead to numerical instability -in the computation of the ratios of rising and falling factorials (effectively -we're multiplying by a series of numbers very close to 1, so roundoff errors -can accumulate quite rapidly). - -The Lanczos approximation is therefore often written in partial fraction form -with the leading constants absorbed by the coefficients in the sum: - -[equation lanczos1] - -where: - -[equation lanczos2] - -Again parameter /g/ is an arbitrarily chosen constant, and /N/ is an arbitrarily chosen -number of terms to evaluate in the "Lanczos sum" part. - -[note -Some authors -choose to define the sum from k=1 to N, and hence end up with N+1 coefficients. -This happens to confuse both the following discussion and the code (since C++ -deals with half open array ranges, rather than the closed range of the sum). -This convention is consistent with __godfrey, but not __pugh, so take care -when referring to the literature in this field.] - -[h4 Computing the Coefficients] - -The coefficients C0..CN-1 need to be computed from /N/ and /g/ -at high precision, and then stored as part of the program. -Calculation of the coefficients is performed via the method of __godfrey; -let the constants be contained in a column vector P, then: - -P = D B C F - -where B is an NxN matrix: - -[equation lanczos4] - -D is an NxN matrix: - -[equation lanczos3] - -C is an NxN matrix: - -[equation lanczos5] - -and F is an N element column vector: - -[equation lanczos6] - -Note than the matrices B, D and C contain all integer terms and depend -only on /N/, this product should be computed first, and then multiplied -by /F/ as the last step. - -[h4 Choosing the Right Parameters] - -The trick is to choose -/N/ and /g/ to give the desired level of accuracy: choosing a small value for -/g/ leads to a strictly convergent series, but one which converges only slowly. -Choosing a larger value of /g/ causes the terms in the series to be large -and\/or divergent for about the first /g-1/ terms, and to then suddenly converge -with a "crunch". - -__pugh has determined the optimal -value of /g/ for /N/ in the range /1 <= N <= 60/: unfortunately in practice choosing -these values leads to cancellation errors in the Lanczos sum as the largest -term in the (alternating) series is approximately 1000 times larger than the result. -These optimal values appear not to be useful in practice unless the evaluation -can be done with a number of guard digits /and/ the coefficients are stored -at higher precision than that desired in the result. These values are best -reserved for say, computing to float precision with double precision arithmetic. - -[table Optimal choices for N and g when computing with guard digits (source: Pugh) -[[Significand Size] [N] [g][Max Error]] -[[24] [6] [5.581][9.51e-12]] -[[53][13][13.144565][9.2213e-23]] -] - -The alternative described by __godfrey is to perform an exhaustive -search of the /N/ and /g/ parameter space to determine the optimal combination for -a given /p/ digit floating-point type. Repeating this work found a good -approximation for double precision arithmetic (close to the one __godfrey found), -but failed to find really -good approximations for 80 or 128-bit long doubles. Further it was observed -that the approximations obtained tended to optimised for the small values -of z (1 < z < 200) used to test the implementation against the factorials. -Computing ratios of gamma functions with large arguments were observed to -suffer from error resulting from the truncation of the Lancozos series. - -__pugh identified all the locations where the theoretical error of the -approximation were at a minimum, but unfortunately has published only the largest -of these minima. However, he makes the observation that the minima -coincide closely with the location where the first neglected term (a[sub N]) in the -Lanczos series S[sub g](z) changes sign. These locations are quite easy to -locate, albeit with considerable computer time. These "sweet spots" need -only be computed once, tabulated, and then searched when required for an -approximation that delivers the required precision for some fixed precision -type. - -Unfortunately, following this path failed to find a really good approximation -for 128-bit long doubles, and those found for 64 and 80-bit reals required an -excessive number of terms. There are two competing issues here: high precision -requires a large value of /g/, but avoiding cancellation errors in the evaluation -requires a small /g/. - -At this point note that the Lanczos sum can be converted into rational form -(a ratio of two polynomials, obtained from the partial-fraction form using -polynomial arithmetic), -and doing so changes the coefficients so that /they are all positive/. That -means that the sum in rational form can be evaluated without cancellation -error, albeit with double the number of coefficients for a given N. Repeating -the search of the "sweet spots", this time evaluating the Lanczos sum in -rational form, and testing only those "sweet spots" whose theoretical error -is less than the machine epsilon for the type being tested, yielded good -approximations for all the types tested. The optimal values found were quite -close to the best cases reported by __pugh (just slightly larger /N/ and slightly -smaller /g/ for a given precision than __pugh reports), and even though converting -to rational form doubles the number of stored coefficients, it should be -noted that half of them are integers (and therefore require less storage space) -and the approximations require a smaller /N/ than would otherwise be required, -so fewer floating point operations may be required overall. - -The following table shows the optimal values for /N/ and /g/ when computing -at fixed precision. These should be taken as work in progress: there are no -values for 106-bit significand machines (Darwin long doubles & NTL quad_float), -and further optimisation of the values of /g/ may be possible. -Errors given in the table -are estimates of the error due to truncation of the Lanczos infinite series -to /N/ terms. They are calculated from the sum of the first five neglected -terms - and are known to be rather pessimistic estimates - although it is noticeable -that the best combinations of /N/ and /g/ occurred when the estimated truncation error -almost exactly matches the machine epsilon for the type in question. - -[table Optimum value for N and g when computing at fixed precision -[[Significand Size][Platform/Compiler Used][N][g][Max Truncation Error]] -[[24][Win32, VC++ 7.1] [6] [1.428456135094165802001953125][9.41e-007]] -[[53][Win32, VC++ 7.1] [13] [6.024680040776729583740234375][3.23e-016]] -[[64][Suse Linux 9 IA64, gcc-3.3.3] [17] [12.2252227365970611572265625][2.34e-024]] -[[116][HP Tru64 Unix 5.1B \/ Alpha, Compaq C++ V7.1-006] [24] [20.3209821879863739013671875][4.75e-035]] -] - -Finally note that the Lanczos approximation can be written as follows -by removing a factor of exp(g) from the denominator, and then dividing -all the coefficients by exp(g): - -[equation lanczos7] - -This form is more convenient for calculating lgamma, but for the gamma -function the division by /e/ turns a possibly exact quality into an -inexact value: this reduces accuracy in the common case that -the input is exact, and so isn't used for the gamma function. - -[h4 References] - -# [#godfrey]Paul Godfrey, [@http://my.fit.edu/~gabdo/gamma.txt "A note on the computation of the convergent -Lanczos complex Gamma approximation"]. -# [#pugh]Glendon Ralph Pugh, -[@http://bh0.physics.ubc.ca/People/matt/Doc/ThesesOthers/Phd/pugh.pdf -"An Analysis of the Lanczos Gamma Approximation"], -PhD Thesis November 2004. -# Viktor T. Toth, -[@http://www.rskey.org/gamma.htm "Calculators and the Gamma Function"]. -# Mathworld, [@http://mathworld.wolfram.com/LanczosApproximation.html -The Lanczos Approximation]. - -[endsect][/section:lanczos The Lanczos Approximation] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/background/references.qbk b/boost/libs/math/doc/background/references.qbk deleted file mode 100644 index 86f1a5ea..00000000 --- a/boost/libs/math/doc/background/references.qbk +++ /dev/null @@ -1,115 +0,0 @@ -[section:refs References] - -[h4 General references] - -(Specific detailed sources for individual functions and distributions -are given at the end of each individual section). - -[@http://dlmf.nist.gov/ DLMF (NIST Digital Library of Mathematical Functions)] -is a replacement for the legendary -Abramowitz and Stegun's Handbook of Mathematical Functions (often called simply A&S), - -M. Abramowitz and I. A. Stegun (Eds.) (1964) -Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, -National Bureau of Standards Applied Mathematics Series, -U.S. Government Printing Office, Washington, D.C. -[/ __Abramowitz_Stegun] - -NIST Handbook of Mathematical Functions -Edited by: Frank W. J. Olver, University of Maryland and National Institute of Standards and Technology, Maryland, -Daniel W. Lozier, National Institute of Standards and Technology, Maryland, -Ronald F. Boisvert, National Institute of Standards and Technology, Maryland, -Charles W. Clark, National Institute of Standards and Technology, Maryland and University of Maryland. - -ISBN: 978-0521140638 (paperback), 9780521192255 (hardback), July 2010, Cambridge University Press. - -[@http://www.itl.nist.gov/div898/handbook/index.htm NIST/SEMATECH e-Handbook of Statistical Methods] - -[@http://documents.wolfram.com/mathematica/Add-onsLinks/StandardPackages/Statistics/DiscreteDistributions.html Mathematica Documentation: DiscreteDistributions] -The Wolfram Research Documentation Center is a collection of online reference materials about Mathematica, CalculationCenter, and other Wolfram Research products. - -[@http://documents.wolfram.com/mathematica/Add-onsLinks/StandardPackages/Statistics/ContinuousDistributions.html Mathematica Documentation: ContinuousDistributions] -The Wolfram Research Documentation Center is a collection of online reference materials about Mathematica, CalculationCenter, and other Wolfram Research products. - -Statistical Distributions (Wiley Series in Probability & Statistics) (Paperback) -by N.A.J. Hastings, Brian Peacock, Merran Evans, ISBN: 0471371246, Wiley 2000. - -[@http://www.worldscibooks.com/mathematics/p191.html Extreme Value Distributions, Theory and Applications] -Samuel Kotz & Saralees Nadarajah, ISBN 978-1-86094-224-2 & 1-86094-224-5 Oct 2000, -Chapter 1.2 discusses the various extreme value distributions. - -[@http://bh0.physics.ubc.ca/People/matt/Doc/ThesesOthers/Phd/pugh.pdf pugh.pdf (application/pdf Object)] -Pugh Msc Thesis on the Lanczos approximation to the gamma function. - -[@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003 N1514, 03-0097, A Proposal to Add Mathematical Special Functions to the C++ Standard Library (version 2), Walter E. Brown] - -[h4 Calculators] - -We found (and used to create cross-check spot values - as far as their accuracy allowed). - -[@http://functions.wolfram.com/ The Wolfram Functions Site] -The Wolfram Functions Site - Providing -the mathematical and scientific community with the world's largest -(and most authorititive) collection of formulas and graphics about mathematical functions. - -[@http://www.moshier.net/cephes28.zip 100-decimal digit calculator] provided some spot values. - -[@http://www.adsciengineering.com/bpdcalc/ http://www.adsciengineering.com/bpdcalc/] Binomial Probability Distribution Calculator. - - -[h4 Other Libraries] - -[@http://www.moshier.net/#Cephes Cephes library] by Shephen Moshier and his book: - -Methods and programs for mathematical functions, Stephen L B Moshier, Ellis Horwood (1989) ISBN 0745802893 0470216093 provided inspiration. - -[@http://lib.stat.cmu.edu/general/cdflib CDFLIB Library of Fortran Routines for Cumulative Distribution functions.] - -[@http://www.csit.fsu.edu/~burkardt/cpp_src/dcdflib/dcdflib.html DCFLIB C++ version]. - -[@http://www.csit.fsu.edu/~burkardt/f_src/dcdflib/dcdflib.html DCDFLIB C++ version] -DCDFLIB is a library of C++ routines, using double precision arithmetic, for evaluating cumulative probability density functions. - -[@http://www.softintegration.com/docs/package/chnagstat/ http://www.softintegration.com/docs/package/chnagstat/] - -[@http://www.nag.com/numeric/numerical_libraries.asp NAG] libraries. - -[@http://www.mathcad.com MathCAD] - -[@http://www.vni.com/products/imsl/jmsl/v30/api/com/imsl/stat/Cdf.html JMSL Numerical Library] (Java). - -John F Hart, Computer Approximations, (1978) ISBN 0 088275 642-7. - -William J Cody, Software Manual for the Elementary Functions, Prentice-Hall (1980) ISBN 0138220646. - -Nico Temme, Special Functions, An Introduction to the Classical Functions of Mathematical Physics, Wiley, ISBN: 0471-11313-1 (1996) who also gave valueable advice. - -[@http://www.cas.lancs.ac.uk/glossary_v1.1/prob.html#probdistn Statistics Glossary], Valerie Easton and John H. McColl. - -[__R] -R Development Core Team (2010). R: A language and environment for -statistical computing. R Foundation for Statistical Computing, -Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org. - -For use of R, see: - -Jim Albert, Bayesian Computation with R, ISBN 978-0-387-71384-7. - -[@http://www.quantnet.com/cplusplus-statistical-distributions-boost -C++ Statistical Distributions in Boost - QuantNetwork forum] -discusses using Boost.Math in finance. - -[@http://www.quantnet.com/boost-and-computational-finance/ Quantnet Boost and computational finance]. -Robert Demming & Daniel J. Duffy, Introduction to the C++ Boost Libraries - Volume I - Foundations -and Volume II ISBN 978-94-91028-01-4, Advanced Libraries and Applications, ISBN 978-94-91028-02-1 -(to be published in 2011). -discusses application of Boost.Math, especially in finance. - -[endsect] [/section:references References] -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/background/remez.qbk b/boost/libs/math/doc/background/remez.qbk deleted file mode 100644 index 6dd2718d..00000000 --- a/boost/libs/math/doc/background/remez.qbk +++ /dev/null @@ -1,377 +0,0 @@ -[section:remez The Remez Method] - -The [@http://en.wikipedia.org/wiki/Remez_algorithm Remez algorithm] -is a methodology for locating the minimax rational approximation -to a function. This short article gives a brief overview of the method, but -it should not be regarded as a thorough theoretical treatment, for that you -should consult your favorite textbook. - -Imagine that you want to approximate some function f(x) by way of a rational -function R(x), where R(x) may be either a polynomial P(x) or a ratio of two -polynomials P(x)/Q(x) (a rational function). Initially we'll concentrate on the -polynomial case, as it's by far the easier to deal with, later we'll extend -to the full rational function case. - -We want to find the "best" rational approximation, where -"best" is defined to be the approximation that has the least deviation -from f(x). We can measure the deviation by way of an error function: - -E[sub abs](x) = f(x) - R(x) - -which is expressed in terms of absolute error, but we can equally use -relative error: - -E[sub rel](x) = (f(x) - R(x)) / |f(x)| - -And indeed in general we can scale the error function in any way we want, it -makes no difference to the maths, although the two forms above cover almost -every practical case that you're likely to encounter. - -The minimax rational function R(x) is then defined to be the function that -yields the smallest maximal value of the error function. Chebyshev showed -that there is a unique minimax solution for R(x) that has the following -properties: - -* If R(x) is a polynomial of degree N, then there are N+2 unknowns: -the N+1 coefficients of the polynomial, and maximal value of the error -function. -* The error function has N+1 roots, and N+2 extrema (minima and maxima). -* The extrema alternate in sign, and all have the same magnitude. - -That means that if we know the location of the extrema of the error function -then we can write N+2 simultaneous equations: - -R(x[sub i]) + (-1)[super i]E = f(x[sub i]) - -where E is the maximal error term, and x[sub i] are the abscissa values of the -N+2 extrema of the error function. It is then trivial to solve the simultaneous -equations to obtain the polynomial coefficients and the error term. - -['Unfortunately we don't know where the extrema of the error function are located!] - -[h4 The Remez Method] - -The Remez method is an iterative technique which, given a broad range of -assumptions, will converge on the extrema of the error function, and therefore -the minimax solution. - -In the following discussion we'll use a concrete example to illustrate -the Remez method: an approximation to the function e[super x][space] over -the range \[-1, 1\]. - -Before we can begin the Remez method, we must obtain an initial value -for the location of the extrema of the error function. We could "guess" -these, but a much closer first approximation can be obtained by first -constructing an interpolated polynomial approximation to f(x). - -In order to obtain the N+1 coefficients of the interpolated polynomial -we need N+1 points (x[sub 0]...x[sub N]): with our interpolated form -passing through each of those points -that yields N+1 simultaneous equations: - -f(x[sub i]) = P(x[sub i]) = c[sub 0] + c[sub 1]x[sub i] ... + c[sub N]x[sub i][super N] - -Which can be solved for the coefficients c[sub 0]...c[sub N] in P(x). - -Obviously this is not a minimax solution, indeed our only guarantee is that f(x) and -P(x) touch at N+1 locations, away from those points the error may be arbitrarily -large. However, we would clearly like this initial approximation to be as close to -f(x) as possible, and it turns out that using the zeros of an orthogonal polynomial -as the initial interpolation points is a good choice. In our example we'll use the -zeros of a Chebyshev polynomial as these are particularly easy to calculate, -interpolating for a polynomial of degree 4, and measuring /relative error/ -we get the following error function: - -[$../graphs/remez-2.png] - -Which has a peak relative error of 1.2x10[super -3]. - -While this is a pretty good approximation already, judging by the -shape of the error function we can clearly do better. Before starting -on the Remez method propper, we have one more step to perform: locate -all the extrema of the error function, and store -these locations as our initial ['Chebyshev control points]. - -[note -In the simple case of a polynomial approximation, by interpolating through -the roots of a Chebyshev polynomial we have in fact created a ['Chebyshev -approximation] to the function: in terms of /absolute error/ -this is the best a priori choice for the interpolated form we can -achieve, and typically is very close to the minimax solution. - -However, if we want to optimise for /relative error/, or if the approximation -is a rational function, then the initial Chebyshev solution can be quite far -from the ideal minimax solution. - -A more technical discussion of the theory involved can be found in this -[@http://math.fullerton.edu/mathews/n2003/ChebyshevPolyMod.html online course].] - -[h4 Remez Step 1] - -The first step in the Remez method, given our current set of -N+2 Chebyshev control points x[sub i], is to solve the N+2 simultaneous -equations: - -P(x[sub i]) + (-1)[super i]E = f(x[sub i]) - -To obtain the error term E, and the coefficients of the polynomial P(x). - -This gives us a new approximation to f(x) that has the same error /E/ at -each of the control points, and whose error function ['alternates in sign] -at the control points. This is still not necessarily the minimax -solution though: since the control points may not be at the extrema of the error -function. After this first step here's what our approximation's error -function looks like: - -[$../graphs/remez-3.png] - -Clearly this is still not the minimax solution since the control points -are not located at the extrema, but the maximum relative error has now -dropped to 5.6x10[super -4]. - -[h4 Remez Step 2] - -The second step is to locate the extrema of the new approximation, which we do -in two stages: first, since the error function changes sign at each -control point, we must have N+1 roots of the error function located between -each pair of N+2 control points. Once these roots are found by standard root finding -techniques, we know that N extrema are bracketed between each pair of -roots, plus two more between the endpoints of the range and the first and last roots. -The N+2 extrema can then be found using standard function minimisation techniques. - -We now have a choice: multi-point exchange, or single point exchange. - -In single point exchange, we move the control point nearest to the largest extrema to -the absissa value of the extrema. - -In multi-point exchange we swap all the current control points, for the locations -of the extrema. - -In our example we perform multi-point exchange. - -[h4 Iteration] - -The Remez method then performs steps 1 and 2 above iteratively until the control -points are located at the extrema of the error function: this is then -the minimax solution. - -For our current example, two more iterations converges on a minimax -solution with a peak relative error of -5x10[super -4] and an error function that looks like: - -[$../graphs/remez-4.png] - -[h4 Rational Approximations] - -If we wish to extend the Remez method to a rational approximation of the form - -f(x) = R(x) = P(x) / Q(x) - -where P(x) and Q(x) are polynomials, then we proceed as before, except that now -we have N+M+2 unknowns if P(x) is of order N and Q(x) is of order M. This assumes -that Q(x) is normalised so that its leading coefficient is 1, giving -N+M+1 polynomial coefficients in total, plus the error term E. - -The simultaneous equations to be solved are now: - -P(x[sub i]) / Q(x[sub i]) + (-1)[super i]E = f(x[sub i]) - -Evaluated at the N+M+2 control points x[sub i]. - -Unfortunately these equations are non-linear in the error term E: we can only -solve them if we know E, and yet E is one of the unknowns! - -The method usually adopted to solve these equations is an iterative one: we guess the -value of E, solve the equations to obtain a new value for E (as well as the polynomial -coefficients), then use the new value of E as the next guess. The method is -repeated until E converges on a stable value. - -These complications extend the running time required for the development -of rational approximations quite considerably. It is often desirable -to obtain a rational rather than polynomial approximation none the less: -rational approximations will often match more difficult to approximate -functions, to greater accuracy, and with greater efficiency, than their -polynomial alternatives. For example, if we takes our previous example -of an approximation to e[super x], we obtained 5x10[super -4] accuracy -with an order 4 polynomial. If we move two of the unknowns into the denominator -to give a pair of order 2 polynomials, and re-minimise, then the peak relative error drops -to 8.7x10[super -5]. That's a 5 fold increase in accuracy, for the same number -of terms overall. - -[h4 Practical Considerations] - -Most treatises on approximation theory stop at this point. However, from -a practical point of view, most of the work involves finding the right -approximating form, and then persuading the Remez method to converge -on a solution. - -So far we have used a direct approximation: - -f(x) = R(x) - -But this will converge to a useful approximation only if f(x) is smooth. In -addition round-off errors when evaluating the rational form mean that this -will never get closer than within a few epsilon of machine precision. -Therefore this form of direct approximation is often reserved for situations -where we want efficiency, rather than accuracy. - -The first step in improving the situation is generally to split f(x) into -a dominant part that we can compute accurately by another method, and a -slowly changing remainder which can be approximated by a rational approximation. -We might be tempted to write: - -f(x) = g(x) + R(x) - -where g(x) is the dominant part of f(x), but if f(x)\/g(x) is approximately -constant over the interval of interest then: - -f(x) = g(x)(c + R(x)) - -Will yield a much better solution: here /c/ is a constant that is the approximate -value of f(x)\/g(x) and R(x) is typically tiny compared to /c/. In this situation -if R(x) is optimised for absolute error, then as long as its error is small compared -to the constant /c/, that error will effectively get wiped out when R(x) is added to -/c/. - -The difficult part is obviously finding the right g(x) to extract from your -function: often the asymptotic behaviour of the function will give a clue, so -for example the function __erfc becomes proportional to -e[super -x[super 2]]\/x as x becomes large. Therefore using: - -erfc(z) = (C + R(x)) e[super -x[super 2]]/x - -as the approximating form seems like an obvious thing to try, and does indeed -yield a useful approximation. - -However, the difficulty then becomes one of converging the minimax solution. -Unfortunately, it is known that for some functions the Remez method can lead -to divergent behaviour, even when the initial starting approximation is quite good. -Furthermore, it is not uncommon for the solution obtained in the first Remez step -above to be a bad one: the equations to be solved are generally "stiff", often -very close to being singular, and assuming a solution is found at all, round-off -errors and a rapidly changing error function, can lead to a situation where the -error function does not in fact change sign at each control point as required. -If this occurs, it is fatal to the Remez method. It is also possible to -obtain solutions that are perfectly valid mathematically, but which are -quite useless computationally: either because there is an unavoidable amount -of roundoff error in the computation of the rational function, or because -the denominator has one or more roots over the interval of the approximation. -In the latter case while the approximation may have the correct limiting value at -the roots, the approximation is nonetheless useless. - -Assuming that the approximation does not have any fatal errors, and that the only -issue is converging adequately on the minimax solution, the aim is to -get as close as possible to the minimax solution before beginning the Remez method. -Using the zeros of a Chebyshev polynomial for the initial interpolation is a -good start, but may not be ideal when dealing with relative errors and\/or -rational (rather than polynomial) approximations. One approach is to skew -the initial interpolation points to one end: for example if we raise the -roots of the Chebyshev polynomial to a positive power greater than 1 -then the roots will be skewed towards the middle of the \[-1,1\] interval, -while a positive power less than one -will skew them towards either end. More usefully, if we initially rescale the -points over \[0,1\] and then raise to a positive power, we can skew them to the left -or right. Returning to our example of e[super x][space] over \[-1,1\], the initial -interpolated form was some way from the minimax solution: - -[$../graphs/remez-2.png] - -However, if we first skew the interpolation points to the left (rescale them -to \[0, 1\], raise to the power 1.3, and then rescale back to \[-1,1\]) we -reduce the error from 1.3x10[super -3][space]to 6x10[super -4]: - -[$../graphs/remez-5.png] - -It's clearly still not ideal, but it is only a few percent away from -our desired minimax solution (5x10[super -4]). - -[h4 Remez Method Checklist] - -The following lists some of the things to check if the Remez method goes wrong, -it is by no means an exhaustive list, but is provided in the hopes that it will -prove useful. - -* Is the function smooth enough? Can it be better separated into -a rapidly changing part, and an asymptotic part? -* Does the function being approximated have any "blips" in it? Check -for problems as the function changes computation method, or -if a root, or an infinity has been divided out. The telltale -sign is if there is a narrow region where the Remez method will -not converge. -* Check you have enough accuracy in your calculations: remember that -the Remez method works on the difference between the approximation -and the function being approximated: so you must have more digits of -precision available than the precision of the approximation -being constructed. So for example at double precision, you -shouldn't expect to be able to get better than a float precision -approximation. -* Try skewing the initial interpolated approximation to minimise the -error before you begin the Remez steps. -* If the approximation won't converge or is ill-conditioned from one starting -location, try starting from a different location. -* If a rational function won't converge, one can minimise a polynomial -(which presents no problems), then rotate one term from the numerator to -the denominator and minimise again. In theory one can continue moving -terms one at a time from numerator to denominator, and then re-minimising, -retaining the last set of control points at each stage. -* Try using a smaller interval. It may also be possible to optimise over -one (small) interval, rescale the control points over a larger interval, -and then re-minimise. -* Keep absissa values small: use a change of variable to keep the abscissa -over, say \[0, b\], for some smallish value /b/. - -[h4 References] - -The original references for the Remez Method and it's extension -to rational functions are unfortunately in Russian: - -Remez, E.Ya., ['Fundamentals of numerical methods for Chebyshev approximations], -"Naukova Dumka", Kiev, 1969. - -Remez, E.Ya., Gavrilyuk, V.T., ['Computer development of certain approaches -to the approximate construction of solutions of Chebyshev problems -nonlinearly depending on parameters], Ukr. Mat. Zh. 12 (1960), 324-338. - -Gavrilyuk, V.T., ['Generalization of the first polynomial algorithm of -E.Ya.Remez for the problem of constructing rational-fractional -Chebyshev approximations], Ukr. Mat. Zh. 16 (1961), 575-585. - -Some English language sources include: - -Fraser, W., Hart, J.F., ['On the computation of rational approximations -to continuous functions], Comm. of the ACM 5 (1962), 401-403, 414. - -Ralston, A., ['Rational Chebyshev approximation by Remes' algorithms], -Numer.Math. 7 (1965), no. 4, 322-330. - -A. Ralston, ['Rational Chebyshev approximation, Mathematical -Methods for Digital Computers v. 2] (Ralston A., Wilf H., eds.), -Wiley, New York, 1967, pp. 264-284. - -Hart, J.F. e.a., ['Computer approximations], Wiley, New York a.o., 1968. - -Cody, W.J., Fraser, W., Hart, J.F., ['Rational Chebyshev approximation -using linear equations], Numer.Math. 12 (1968), 242-251. - -Cody, W.J., ['A survey of practical rational and polynomial -approximation of functions], SIAM Review 12 (1970), no. 3, 400-423. - -Barrar, R.B., Loeb, H.J., ['On the Remez algorithm for non-linear -families], Numer.Math. 15 (1970), 382-391. - -Dunham, Ch.B., ['Convergence of the Fraser-Hart algorithm for rational -Chebyshev approximation], Math. Comp. 29 (1975), no. 132, 1078-1082. - -G. L. Litvinov, ['Approximate construction of rational -approximations and the effect of error autocorrection], -Russian Journal of Mathematical Physics, vol.1, No. 3, 1994. - -[endsect][/section:remez The Remez Method] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/background/special_tut.qbk b/boost/libs/math/doc/background/special_tut.qbk deleted file mode 100644 index a57fac07..00000000 --- a/boost/libs/math/doc/background/special_tut.qbk +++ /dev/null @@ -1,508 +0,0 @@ -[section:special_tut Tutorial: How to Write a New Special Function] - -[section:special_tut_impl Implementation] - -In this section, we'll provide a "recipe" for adding a new special function to this library to make life easier for -future authors wishing to contribute. We'll assume the function returns a single floating-point result, and takes -two floating-point arguments. For the sake of exposition we'll give the function the name [~my_special]. - -Normally, the implementation of such a function is split into two layers - a public user layer, and an internal -implementation layer that does the actual work. -The implementation layer is declared inside a `detail` namespace and has a simple signature: - - namespace boost { namespace math { namespace detail { - - template - T my_special_imp(const T& a, const T&b, const Policy& pol) - { - /* Implementation goes here */ - } - - }}} // namespaces - -We'll come back to what can go inside the implementation later, but first lets look at the user layer. -This consists of two overloads of the function, with and without a __Policy argument: - - namespace boost{ namespace math{ - - template - typename tools::promote_args::type my_special(const T& a, const U& b); - - template - typename tools::promote_args::type my_special(const T& a, const U& b, const Policy& pol); - - }} // namespaces - -Note how each argument has a different template type - this allows for mixed type arguments - the return -type is computed from a traits class and is the "common type" of all the arguments after any integer -arguments have been promoted to type `double`. - -The implementation of the non-policy overload is trivial: - - namespace boost{ namespace math{ - - template - inline typename tools::promote_args::type my_special(const T& a, const U& b) - { - // Simply forward with a default policy: - return my_special(a, b, policies::policy<>(); - } - - }} // namespaces - -The implementation of the other overload is somewhat more complex, as there's some meta-programming to do, -but from a runtime perspective is still a one-line forwarding function. Here it is with comments explaining -what each line does: - - namespace boost{ namespace math{ - - template - inline typename tools::promote_args::type my_special(const T& a, const U& b, const Policy& pol) - { - // - // We've found some standard library functions to misbehave if any FPU exception flags - // are set prior to their call, this code will clear those flags, then reset them - // on exit: - // - BOOST_FPU_EXCEPTION_GUARD - // - // The type of the result - the common type of T and U after - // any integer types have been promoted to double: - // - typedef typename tools::promote_args::type result_type; - // - // The type used for the calculation. This may be a wider type than - // the result in order to ensure full precision: - // - typedef typename policies::evaluation::type value_type; - // - // The type of the policy to forward to the actual implementation. - // We disable promotion of float and double as that's [possibly] - // happened already in the line above. Also reset to the default - // any policies we don't use (reduces code bloat if we're called - // multiple times with differing policies we don't actually use). - // Also normalise the type, again to reduce code bloat in case we're - // called multiple times with functionally identical policies that happen - // to be different types. - // - typedef typename policies::normalise< - Policy, - policies::promote_float, - policies::promote_double, - policies::discrete_quantile<>, - policies::assert_undefined<> >::type forwarding_policy; - // - // Whew. Now we can make the actual call to the implementation. - // Arguments are explicitly cast to the evaluation type, and the result - // passed through checked_narrowing_cast which handles things like overflow - // according to the policy passed: - // - return policies::checked_narrowing_cast( - detail::my_special_imp( - static_cast(a), - static_cast(x), - forwarding_policy()), - "boost::math::my_special<%1%>(%1%, %1%)"); - } - - }} // namespaces - -We're now almost there, we just need to flesh out the details of the implementation layer: - - namespace boost { namespace math { namespace detail { - - template - T my_special_imp(const T& a, const T&b, const Policy& pol) - { - /* Implementation goes here */ - } - - }}} // namespaces - -The following guidelines indicate what (other than basic arithmetic) can go in the implementation: - -* Error conditions (for example bad arguments) should be handled by calling one of the -[link math_toolkit.error_handling.finding_more_information policy based error handlers]. -* Calls to standard library functions should be made unqualified (this allows argument -dependent lookup to find standard library functions for user-defined floating point -types such as those from __multiprecision). In addition, the macro `BOOST_MATH_STD_USING` -should appear at the start of the function (note no semi-colon afterwards!) so that -all the math functions in `namespace std` are visible in the current scope. -* Calls to other special functions should be made as fully qualified calls, and include the -policy parameter as the last argument, for example `boost::math::tgamma(a, pol)`. -* Where possible, evaluation of series, continued fractions, polynomials, or root -finding should use one of the [link math_toolkit.internals_overview boiler-plate functions]. In any case, after -any iterative method, you should verify that the number of iterations did not exceed the -maximum specified in the __Policy type, and if it did terminate as a result of exceeding the -maximum, then the appropriate error handler should be called (see existing code for examples). -* Numeric constants such as [pi] etc should be obtained via a call to the [link math_toolkit.constants appropriate function], -for example: `constants::pi()`. -* Where tables of coefficients are used (for example for rational approximations), care should be taken -to ensure these are initialized at program startup to ensure thread safety when using user-defined number types. -See for example the use of `erf_initializer` in [@../../include/boost/math/special_functions/erf.hpp erf.hpp]. - -Here are some other useful internal functions: - -[table -[[function][Meaning]] -[[`policies::digits()`][Returns number of binary digits in T (possible overridden by the policy).]] -[[`policies::get_max_series_iterations()`][Maximum number of iterations for series evaluation.]] -[[`policies::get_max_root_iterations()`][Maximum number of iterations for root finding.]] -[[`polices::get_epsilon()`][Epsilon for type T, possibly overridden by the Policy.]] -[[`tools::digits()`][Returns the number of binary digits in T.]] -[[`tools::max_value()`][Equivalent to `std::numeric_limits::max()`]] -[[`tools::min_value()`][Equivalent to `std::numeric_limits::min()`]] -[[`tools::log_max_value()`][Equivalent to the natural logarithm of `std::numeric_limits::max()`]] -[[`tools::log_min_value()`][Equivalent to the natural logarithm of `std::numeric_limits::min()`]] -[[`tools::epsilon()`][Equivalent to `std::numeric_limits::epsilon()`.]] -[[`tools::root_epsilon()`][Equivalent to the square root of `std::numeric_limits::epsilon()`.]] -[[`tools::forth_root_epsilon()`][Equivalent to the forth root of `std::numeric_limits::epsilon()`.]] -] - -[endsect] - -[section:special_tut_test Testing] - -We work under the assumption that untested code doesn't work, so some tests for your new special function are in order, -we'll divide these up in to 3 main categories: - -[h4 Spot Tests] - -Spot tests consist of checking that the expected exception is generated when the inputs are in error (or -otherwise generate undefined values), and checking any special values. We can check for expected exceptions -with `BOOST_CHECK_THROW`, so for example if it's a domain error for the last parameter to be outside the range -`[0,1]` then we might have: - - BOOST_CHECK_THROW(my_special(0, -0.1), std::domain_error); - BOOST_CHECK_THROW(my_special(0, 1.1), std::domain_error); - -When the function has known exact values (typically integer values) we can use `BOOST_CHECK_EQUAL`: - - BOOST_CHECK_EQUAL(my_special(1.0, 0.0), 0); - BOOST_CHECK_EQUAL(my_special(1.0, 1.0), 1); - -When the function has known values which are not exact (from a floating point perspective) then we can use -`BOOST_CHECK_CLOSE_FRACTION`: - - // Assumes 4 epsilon is as close as we can get to a true value of 2Pi: - BOOST_CHECK_CLOSE_FRACTION(my_special(0.5, 0.5), 2 * constants::pi(), std::numeric_limits::epsilon() * 4); - -[h4 Independent Test Values] - -If the function is implemented by some other known good source (for example Mathematica or it's online versions -[@http://functions.wolfram.com functions.wolfram.com] or [@http://www.wolframalpha.com www.wolframalpha.com] -then it's a good idea to sanity check our implementation by having at least one independendly generated value -for each code branch our implementation may take. To slot these in nicely with our testing framework it's best to -tabulate these like this: - - // function values calculated on http://functions.wolfram.com/ - static const boost::array, 10> my_special_data = {{ - {{ SC_(0), SC_(0), SC_(1) }}, - {{ SC_(0), SC_(1), SC_(1.26606587775200833559824462521471753760767031135496220680814) }}, - /* More values here... */ - }}; - -We'll see how to use this table and the meaning of the `SC_` macro later. One important point -is to make sure that the input values have exact binary representations: so choose values such as -1.5, 1.25, 1.125 etc. This ensures that if `my_special` is unusually sensitive in one area, that -we don't get apparently large errors just because the inputs are 0.5 ulp in error. - -[h4 Random Test Values] - -We can generate a large number of test values to check both for future regressions, and for -accumulated rounding or cancellation error in our implementation. Ideally we would use an -independent implementation for this (for example my_special may be defined in directly terms -of other special functions but not implemented that way for performance or accuracy reasons). -Alternatively we may use our own implementation directly, but with any special cases (asymptotic -expansions etc) disabled. We have a set of [link math_toolkit.internals.test_data tools] -to generate test data directly, here's a typical example: - -[import ../../example/special_data.cpp] -[special_data_example] - -Typically several sets of data will be generated this way, including random values in some "normal" -range, extreme values (very large or very small), and values close to any "interesting" behaviour -of the function (singularities etc). - -[h4 The Test File Header] - -We split the actual test file into 2 distinct parts: a header that contains the testing code -as a series of function templates, and the actual .cpp test driver that decides which types -are tested, and sets the "expected" error rates for those types. It's done this way because: - -* We want to test with both built in floating point types, and with multiprecision types. -However, both compile and runtimes with the latter can be too long for the folks who run -the tests to realistically cope with, so it makes sense to split the test into (at least) -2 parts. -* The definition of the SC_ macro used in our tables of data may differ depending on what type -we're testing (see below). Again this is largely a matter of managing compile times as large tables -of user-defined-types can take a crazy amount of time to compile with some compilers. - -The test header contains 2 functions: - - template - void do_test(const T& data, const char* type_name, const char* test_name); - - template - void test(T, const char* type_name); - -Before implementing those, we'll include the headers we'll need, and provide a default -definition for the SC_ macro: - - // A couple of Boost.Test headers in case we need any BOOST_CHECK_* macros: - #include - #include - // Our function to test: - #include - // We need boost::array for our test data, plus a few headers from - // libs/math/test that contain our testing machinary: - #include - #include "functor.hpp" - #include "handle_test_result.hpp" - #include "table_type.hpp" - - #ifndef SC_ - #define SC_(x) static_cast::type>(BOOST_JOIN(x, L)) - #endif - -The easiest function to implement is the "test" function which is what we'll be calling -from the test-driver program. It simply includes the files containing the tabular -test data and calls `do_test` function for each table, along with a description of what's -being tested: - - template - void test(T, const char* type_name) - { - // - // The actual test data is rather verbose, so it's in a separate file - // - // The contents are as follows, each row of data contains - // three items, input value a, input value b and my_special(a, b): - // - # include "my_special_1.ipp" - - do_test(my_special_1, name, "MySpecial Function: Mathematica Values"); - - # include "my_special_2.ipp" - - do_test(my_special_2, name, "MySpecial Function: Random Values"); - - # include "my_special_3.ipp" - - do_test(my_special_3, name, "MySpecial Function: Very Small Values"); - } - -The function `do_test` takes each table of data and calculates values for each row -of data, along with statistics for max and mean error etc, most of this is handled -by some boilerplate code: - - template - void do_test(const T& data, const char* type_name, const char* test_name) - { - // Get the type of each row and each element in the rows: - typedef typename T::value_type row_type; - typedef Real value_type; - - // Get a pointer to our function, we have to use a workaround here - // as some compilers require the template types to be explicitly - // specified, while others don't much like it if it is! - typedef value_type (*pg)(value_type, value_type); - #if defined(BOOST_MATH_NO_DEDUCED_FUNCTION_POINTERS) - pg funcp = boost::math::my_special; - #else - pg funcp = boost::math::my_special; - #endif - - // Somewhere to hold our results: - boost::math::tools::test_result result; - // And some pretty printing: - std::cout << "Testing " << test_name << " with type " << type_name - << "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"; - - // - // Test my_special against data: - // - result = boost::math::tools::test_hetero( - /* First argument is the table */ - data, - /* Next comes our function pointer, plus the indexes of it's arguments in the table */ - bind_func(funcp, 0, 1), - /* Then the index of the result in the table - potentially we can test several - related functions this way, each having the same input arguments, and different - output values in different indexes in the table */ - extract_result(2)); - // - // Finish off with some boilerplate to check the results were within the expected errors, - // and pretty print the results: - // - handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::my_special", test_name); - } - -Now we just need to write the test driver program, at it's most basic it looks something like this: - - #include - #include - #include - #include - #include - #include "functor.hpp" - - #include "handle_test_result.hpp" - #include "test_my_special.hpp" - - BOOST_AUTO_TEST_CASE( test_main ) - { - // - // Test each floating point type, plus real_concept. - // We specify the name of each type by hand as typeid(T).name() - // often gives an unreadable mangled name. - // - test(0.1F, "float"); - test(0.1, "double"); - // - // Testing of long double and real_concept is protected - // by some logic to disable these for unsupported - // or problem compilers. - // - #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS - test(0.1L, "long double"); - #ifndef BOOST_MATH_NO_REAL_CONCEPT_TESTS - #if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582)) - test(boost::math::concepts::real_concept(0.1), "real_concept"); - #endif - #endif - #else - std::cout << "The long double tests have been disabled on this platform " - "either because the long double overloads of the usual math functions are " - "not available at all, or because they are too inaccurate for these tests " - "to pass." << std::cout; - #endif - } - -That's almost all there is too it - except that if the above program is run it's very likely that -all the tests will fail as the default maximum allowable error is 1 epsilon. So we'll -define a function (don't forget to call it from the start of the `test_main` above) to -up the limits to something sensible, based both on the function we're calling and on -the particular tests plus the platform and compiler: - - void expected_results() - { - // - // Define the max and mean errors expected for - // various compilers and platforms. - // - const char* largest_type; - #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS - if(boost::math::policies::digits >() == boost::math::policies::digits >()) - { - largest_type = "(long\\s+)?double|real_concept"; - } - else - { - largest_type = "long double|real_concept"; - } - #else - largest_type = "(long\\s+)?double"; - #endif - // - // We call add_expected_result for each error rate we wish to adjust, these tell - // handle_test_result what level of error is acceptable. We can have as many calls - // to add_expected_result as we need, each one establishes a rule for acceptable error - // with rules set first given preference. - // - add_expected_result( - /* First argument is a regular expression to match against the name of the compiler - set in BOOST_COMPILER */ - ".*", - /* Second argument is a regular expression to match against the name of the - C++ standard library as set in BOOST_STDLIB */ - ".*", - /* Third argument is a regular expression to match against the name of the - platform as set in BOOST_PLATFORM */ - ".*", - /* Forth argument is the name of the type being tested, normally we will - only need to up the acceptable error rate for the widest floating - point type being tested */ - largest_real, - /* Fifth argument is a regular expression to match against - the name of the group of data being tested */ - "MySpecial Function:.*Small.*", - /* Sixth argument is a regular expression to match against the name - of the function being tested */ - "boost::math::my_special", - /* Seventh argument is the maximum allowable error expressed in units - of machine epsilon passed as a long integer value */ - 50, - /* Eighth argument is the maximum allowable mean error expressed in units - of machine epsilon passed as a long integer value */ - 20); - } - -[h4 Testing Multiprecision Types] - -Testing of multiprecision types is handled by the test drivers in libs/multiprecision/test/math, -please refer to these for examples. Note that these tests are run only occationally as they take -a lot of CPU cycles to build and run. - -[h4 Improving Compile Times] - -As noted above, these test programs can take a while to build as we're instantiating a lot of templates -for several different types, and our test runners are already stretched to the limit, and probably -using outdated "spare" hardware. There are two things we can do to speed things up: - -* Use a precompiled header. -* Use separate compilation of our special function templates. - -We can make these changes by changing the list of includes from: - - #include - #include - #include - #include - #include - #include "functor.hpp" - - #include "handle_test_result.hpp" - -To just: - - #include - -And changing - - #include - -To: - - #include - -The Jamfile target that builds the test program will need the targets - - test_instances//test_instances pch_light - -adding to it's list of source dependencies (see the Jamfile for examples). - -Finally the project in libs/math/test/test_instances will need modifying -to instantiate function `my_special`. - -These changes should be made last, when `my_special` is stable and the code is in Trunk. - -[h4 Concept Checks] - -Our concept checks verify that your function's implementation makes no assumptions that aren't -required by our [link math_toolkit.real_concepts Real number conceptual requirements]. They also -check for various common bugs and programming traps that we've fallen into over time. To -add your function to these tests, edit libs/math/test/compile_test/instantiate.hpp to add -calls to your function: there are 7 calls to each function, each with a different purpose. -Search for something like "ibeta" or "gamm_p" and follow their examples. - -[endsect] - -[endsect] - -[/ - Copyright 2013 John Maddock. - 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). -] diff --git a/boost/libs/math/doc/complex/complex-tr1.qbk b/boost/libs/math/doc/complex/complex-tr1.qbk deleted file mode 100644 index 86e67b43..00000000 --- a/boost/libs/math/doc/complex/complex-tr1.qbk +++ /dev/null @@ -1,149 +0,0 @@ -[def __effects [*Effects: ]] -[def __formula [*Formula: ]] -[def __exm1 '''ex - 1'''] -[def __ex '''ex'''] -[def __te '''2ε'''] - -[mathpart inverse_complex..Complex Number Functions] - -The following complex number algorithms are the inverses of trigonometric functions currently -present in the C++ standard. Equivalents to these functions are part of the C99 standard, and -are part of the [tr1]. - -[section:complex_implementation Implementation and Accuracy] - -Although there are deceptively simple formulae available for all of these functions, a naive -implementation that used these formulae would fail catastrophically for some input -values. The Boost versions of these functions have been implemented using the methodology -described in "Implementing the Complex Arcsine and Arccosine Functions Using Exception Handling" -by T. E. Hull Thomas F. Fairgrieve and Ping Tak Peter Tang, ACM Transactions on Mathematical Software, -Vol. 23, No. 3, September 1997. This means that the functions are well defined over the entire -complex number range, and produce accurate values even at the extremes of that range, where as a naive -formula would cause overflow or underflow to occur during the calculation, even though the result is -actually a representable value. The maximum theoretical relative error for all of these functions -is less than 9.5[epsilon] for every machine-representable point in the complex plane. Please refer to -comments in the header files themselves and to the above mentioned paper for more information -on the implementation methodology. - -[endsect] - -[section:asin asin] - -[h4 Header:] - - #include - -[h4 Synopsis:] - - template - std::complex asin(const std::complex& z); - -__effects returns the inverse sine of the complex number z. - -__formula [$../images/asin.png] - -[endsect] - -[section:acos acos] - -[h4 Header:] - - #include - -[h4 Synopsis:] - - template - std::complex acos(const std::complex& z); - -__effects returns the inverse cosine of the complex number z. - -__formula [$../images/acos.png] - -[endsect] - -[section:atan atan] - -[h4 Header:] - - #include - -[h4 Synopsis:] - - template - std::complex atan(const std::complex& z); - -__effects returns the inverse tangent of the complex number z. - -__formula [$../images/atan.png] - -[endsect] - -[section:asinh asinh] - -[h4 Header:] - - #include - -[h4 Synopsis:] - - template - std::complex asinh(const std::complex& z); - -__effects returns the inverse hyperbolic sine of the complex number z. - -__formula [$../images/asinh.png] - -[endsect] - -[section:acosh acosh] - -[h4 Header:] - - #include - -[h4 Synopsis:] - - template - std::complex acosh(const std::complex& z); - -__effects returns the inverse hyperbolic cosine of the complex number z. - -__formula [$../images/acosh.png] - -[endsect] - -[section:atanh atanh] - -[h4 Header:] - - #include - -[h4 Synopsis:] - - template - std::complex atanh(const std::complex& z); - -__effects returns the inverse hyperbolic tangent of the complex number z. - -__formula [$../images/atanh.png] - -[endsect] - -[section:complex_history History] - -* 2005/12/17: Added support for platforms with no meaningful numeric_limits<>::infinity(). -* 2005/12/01: Initial version, added as part of the TR1 library. - - -[endsect] - -[endmathpart] - -[/ - Copyright 2008, 2009 John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/concepts/concepts.qbk b/boost/libs/math/doc/concepts/concepts.qbk deleted file mode 100644 index 2723f071..00000000 --- a/boost/libs/math/doc/concepts/concepts.qbk +++ /dev/null @@ -1,636 +0,0 @@ -[section:high_precision Using Boost.Math with High-Precision Floating-Point Libraries] - -The special functions, distributions, constants and tools in this library -can be used with a number of high-precision libraries, including: - -* __multiprecision -* __e_float -* __NTL -* __GMP -* __MPFR -* __float128 - -The last four have some license restrictions; -only __multiprecision when using the `cpp_float` backend -can provide an unrestricted [@http://www.boost.org/LICENSE_1_0.txt Boost] license. - -At present, the price of a free license is slightly lower speed. - -Of course, the main cost of higher precision is very much decreased -(usually at least hundred-fold) computation speed, and big increases in memory use. - -Some libraries offer true -[@http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic arbitrary-precision arithmetic] -where the precision is limited only by available memory and compute time, but most are used -at some arbitrarily-fixed precision, say 100 decimal digits, like __multiprecision `cpp_dec_float_100`. - -__multiprecision can operate in both ways, but the most popular choice is likely to be about a hundred -decimal digits, though examples of computing about a million digits have been demonstrated. - -[section:why_high_precision Why use a high-precision library rather than built-in floating-point types?] - -For nearly all applications, the built-in floating-point types, `double` -(and `long double` if this offers higher precision than `double`) -offer enough precision, typically a dozen decimal digits. - -Some reasons why one would want to use a higher precision: - -* A much more precise result (many more digits) is just a requirement. -* The range of the computed value exceeds the range of the type: factorials are the textbook example. -* Using `double` is (or may be) too inaccurate. -* Using `long double` (or may be) is too inaccurate. -* Using an extended-precision type implemented in software as -[@http://en.wikipedia.org/wiki/Double-double_(arithmetic)#Double-double_arithmetic double-double] -([@http://en.wikipedia.org/wiki/Darwin_(operating_system) Darwin]) is sometimes unpredictably inaccurate. -* Loss of precision or inaccuracy caused by extreme arguments or cancellation error. -* An accuracy as good as possible for a chosen built-in floating-point type is required. -* As a reference value, for example, to determine the inaccuracy -of a value computed with a built-in floating point type, -(perhaps even using some quick'n'dirty algorithm). -The accuracy of many functions and distributions in Boost.Math has been measured in this way -from tables of very high precision (up to 1000 decimal digits). - -Many functions and distributions have differences from exact values -that are only a few least significant bits - computation noise. -Others, often those for which analytical solutions are not available, -require approximations and iteration: -these may lose several decimal digits of precision. - -Much larger loss of precision can occur for [@http://en.wikipedia.org/wiki/Boundary_case boundary] -or [@http://en.wikipedia.org/wiki/Corner_case corner cases], -often caused by [@http://en.wikipedia.org/wiki/Loss_of_significance cancellation errors]. - -(Some of the worst and most common examples of -[@http://en.wikipedia.org/wiki/Loss_of_significance cancellation error or loss of significance] -can be avoided by using __complements: see __why_complements). - -If you require a value which is as accurate as can be represented in the floating-point type, -and is thus the closest representable value and has an error less than 1/2 a -[@http://en.wikipedia.org/wiki/Least_significant_bit least significant bit] or -[@http://en.wikipedia.org/wiki/Unit_in_the_last_place ulp] -it may be useful to use a higher-precision type, -for example, `cpp_dec_float_50`, to generate this value. -Conversion of this value to a built-in floating-point type ('float', `double` or `long double`) -will not cause any further loss of precision. -A decimal digit string will also be 'read' precisely by the compiler -into a built-in floating-point type to the nearest representable value. - -[note In contrast, reading a value from an `std::istream` into a built-in floating-point type -is [*not guaranteed by the C++ Standard] to give the nearest representable value.] - -William Kahan coined the term -[@http://en.wikipedia.org/wiki/Rounding#The_table-maker.27s_dilemma Table-Maker's Dilemma] -for the problem of correctly rounding functions. -Using a much higher precision (50 or 100 decimal digits) -is a practical way of generating (almost always) correctly rounded values. - -[endsect] [/section:why_high_precision Why use a high-precision library rather than built-in floating-point types?] - -[section:use_multiprecision Using Boost.Multiprecision] - -[*All new projects are recommended to use __multiprecision.] - -[import ../../example/big_seventh.cpp] - -[big_seventh_example_1] - -[import ../../example/fft_sines_table.cpp] - -[fft_sines_table_example_1] - -The table output is: - -[fft_sines_table_example_output] - -[fft_sines_table_example_check] - - -[/TODO another example needed here] - -[/import ../../example/ibeta_mp_example.cpp] - -[/ibeta_mp_example_1] - -[/The program output is:] - -[/ibeta_mp_output_1] - -[endsect] [/section:use_multiprecision Using Boost.Multiprecision] - -[section:float128 Using with GCC's __float128 datatype] - -At present support for GCC's native `__float128` datatype is extremely limited: the numeric constants -will all work with that type, and that's about it. If you want to use the distributions or special -functions then you will need to provide your own wrapper header that: - -* Provides std::numeric_limits<__float128> support. -* Provides overloads of the standard library math function for type `__float128`and which forward to the libquadmath equivalents. - -Ultimately these facilities should be provided by GCC and `libstdc++`. - -[endsect] - -[section:use_mpfr Using With MPFR or GMP - High-Precision Floating-Point Library] - -The special functions and tools in this library can be used with -[@http://www.mpfr.org MPFR] (an arbitrary precision number type based on the __GMP), -either via the bindings in [@../../../../boost/math/bindings/mpfr.hpp boost/math/bindings/mpfr.hpp], -or via [@../../../../boost/math/bindings/mpfr.hpp boost/math/bindings/mpreal.hpp]. - -[*New projects are recommended to use __multiprecision with GMP/MPFR backend instead.] - -In order to use these bindings you will need to have installed [@http://www.mpfr.org MPFR] -plus its dependency the [@http://gmplib.org GMP library]. You will also need one of the -two supported C++ wrappers for MPFR: -[@http://math.berkeley.edu/~wilken/code/gmpfrxx/ gmpfrxx (or mpfr_class)], -or [@http://www.holoborodko.com/pavel/mpfr/ mpfr-C++ (mpreal)]. - -Unfortunately neither `mpfr_class` nor `mpreal` quite satisfy our conceptual requirements, -so there is a very thin set of additional interfaces and some helper traits defined in -[@../../../../boost/math/bindings/mpfr.hpp boost/math/bindings/mpfr.hpp] and -[@../../../../boost/math/bindings/mpreal.hpp boost/math/bindings/mpreal.hpp] -that you should use in place of including 'gmpfrxx.h' or 'mpreal.h' directly. -The classes `mpfr_class` or `mpreal` are -then usable unchanged once this header is included, so for example `mpfr_class`'s -performance-enhancing expression templates are preserved and fully supported by this library: - - #include - #include - - int main() - { - mpfr_class::set_dprec(500); // 500 bit precision - // - // Note that the argument to tgamma is - // an expression template - that's just fine here. - // - mpfr_class v = boost::math::tgamma(sqrt(mpfr_class(2))); - std::cout << std::setprecision(50) << v << std::endl; - } - -Alternatively use with `mpreal` would look like: - - #include - #include - - int main() - { - mpfr::mpreal::set_precision(500); // 500 bit precision - mpfr::mpreal v = boost::math::tgamma(sqrt(mpfr::mpreal(2))); - std::cout << std::setprecision(50) << v << std::endl; - } - -For those functions that are based upon the __lanczos, the bindings -defines a series of approximations with up to 61 terms and accuracy -up to approximately 3e-113. This therefore sets the upper limit for accuracy -to the majority of functions defined this library when used with either `mpfr_class` or `mpreal`. - -There is a concept checking test program for mpfr support -[@../../../../libs/math/test/mpfr_concept_check.cpp here] and -[@../../../../libs/math/test/mpreal_concept_check.cpp here]. - -[endsect] [/section:use_mpfr Using With MPFR / GMP - a High-Precision Floating-Point Library] - -[section:e_float Using e_float Library] - -__multiprecision was a development from the __e_float library by Christopher Kormanyos. - -e_float can still be used with Boost.Math library via the header: - - - -And the type `boost::math::ef::e_float`: -this type is a thin wrapper class around ::e_float which provides the necessary -syntactic sugar to make everything "just work". - -There is also a concept checking test program for e_float support -[@../../../../libs/math/test/e_float_concept_check.cpp here]. - -[*New projects are recommended to use __multiprecision with `cpp_float` backend instead.] - -[endsect] [/section:e_float Using e_float Library] - -[section:use_ntl Using NTL Library] - -[@http://shoup.net/ntl/doc/RR.txt NTL::RR] -(an arbitrarily-fixed precision floating-point number type), -can be used via the bindings in -[@../../../../boost/math/bindings/rr.hpp boost/math/bindings/rr.hpp]. -For details, see [@http://shoup.net/ntl/ NTL: A Library for doing Number Theory by -Victor Shoup]. - -[*New projects are recommended to use __multiprecision instead.] - -Unfortunately `NTL::RR` doesn't quite satisfy our conceptual requirements, -so there is a very thin wrapper class `boost::math::ntl::RR` defined in -[@../../../../boost/math/bindings/rr.hpp boost/math/bindings/rr.hpp] that you -should use in place of `NTL::RR`. The class is intended to be a drop-in -replacement for the "real" NTL::RR that adds some syntactic sugar to keep -this library happy, plus some of the standard library functions not implemented -in NTL. - -For those functions that are based upon the __lanczos, the bindings -defines a series of approximations with up to 61 terms and accuracy -up to approximately 3e-113. This therefore sets the upper limit for accuracy -to the majority of functions defined this library when used with `NTL::RR`. - -There is a concept checking test program for NTL support -[@../../../../libs/math/test/ntl_concept_check.cpp here]. - -[endsect] [/section:use_ntl Using With NTL - a High-Precision Floating-Point Library] - -[section:using_test Using without expression templates for Boost.Test and others] - -As noted in the __multiprecision documentation, certain program constructs will not compile -when using expression templates. One example that many users may encounter -is Boost.Test (1.54 and earlier) when using macro BOOST_CHECK_CLOSE and BOOST_CHECK_CLOSE_FRACTION. - -If, for example, you wish to use any multiprecision type like `cpp_dec_float_50` -in place of `double` to give more precision, -you will need to override the default `boost::multiprecision::et_on` with -`boost::multiprecision::et_off`. - -[import ../../example/test_cpp_float_close_fraction.cpp] - -[expression_template_1] - -A full example code is at [@../../example/test_cpp_float_close_fraction.cpp test_cpp_float_close_fraction.cpp] - -[endsect] [/section:using_test Using without expression templates for Boost.Test and others] -[endsect] [/section:high_precision Using With High-Precision Floating-Point Libraries] - -[section:real_concepts Conceptual Requirements for Real Number Types] - -The functions and statistical distributions in this library can be used with -any type ['RealType] that meets the conceptual requirements given below. All -the built-in floating-point types like `double` will meet these requirements. -(Built-in types are also called __fundamental_types). - -User-defined types that meet the conceptual requirements can also be used. -For example, with [link math_toolkit.high_precision.use_ntl a thin wrapper class] -one of the types provided with [@http://shoup.net/ntl/ NTL (RR)] can be used. -But now that __multiprecision library is available, -this has become the preferred real-number type, -typically __cpp_dec_float or __cpp_bin_float. - -Submissions of binding to other extended precision types would also still be welcome. - -The guiding principal behind these requirements is that a ['RealType] -behaves just like a built-in floating-point type. - -[h4 Basic Arithmetic Requirements] - -These requirements are common to all of the functions in this library. - -In the following table /r/ is an object of type `RealType`, /cr/ and -/cr2/ are objects -of type `const RealType`, and /ca/ is an object of type `const arithmetic-type` -(arithmetic types include all the built in integers and floating point types). - -[table -[[Expression][Result Type][Notes]] -[[`RealType(cr)`][RealType] - [RealType is copy constructible.]] -[[`RealType(ca)`][RealType] - [RealType is copy constructible from the arithmetic types.]] -[[`r = cr`][RealType&][Assignment operator.]] -[[`r = ca`][RealType&][Assignment operator from the arithmetic types.]] -[[`r += cr`][RealType&][Adds cr to r.]] -[[`r += ca`][RealType&][Adds ar to r.]] -[[`r -= cr`][RealType&][Subtracts cr from r.]] -[[`r -= ca`][RealType&][Subtracts ca from r.]] -[[`r *= cr`][RealType&][Multiplies r by cr.]] -[[`r *= ca`][RealType&][Multiplies r by ca.]] -[[`r /= cr`][RealType&][Divides r by cr.]] -[[`r /= ca`][RealType&][Divides r by ca.]] -[[`-r`][RealType][Unary Negation.]] -[[`+r`][RealType&][Identity Operation.]] -[[`cr + cr2`][RealType][Binary Addition]] -[[`cr + ca`][RealType][Binary Addition]] -[[`ca + cr`][RealType][Binary Addition]] -[[`cr - cr2`][RealType][Binary Subtraction]] -[[`cr - ca`][RealType][Binary Subtraction]] -[[`ca - cr`][RealType][Binary Subtraction]] -[[`cr * cr2`][RealType][Binary Multiplication]] -[[`cr * ca`][RealType][Binary Multiplication]] -[[`ca * cr`][RealType][Binary Multiplication]] -[[`cr / cr2`][RealType][Binary Subtraction]] -[[`cr / ca`][RealType][Binary Subtraction]] -[[`ca / cr`][RealType][Binary Subtraction]] -[[`cr == cr2`][bool][Equality Comparison]] -[[`cr == ca`][bool][Equality Comparison]] -[[`ca == cr`][bool][Equality Comparison]] -[[`cr != cr2`][bool][Inequality Comparison]] -[[`cr != ca`][bool][Inequality Comparison]] -[[`ca != cr`][bool][Inequality Comparison]] -[[`cr <= cr2`][bool][Less than equal to.]] -[[`cr <= ca`][bool][Less than equal to.]] -[[`ca <= cr`][bool][Less than equal to.]] -[[`cr >= cr2`][bool][Greater than equal to.]] -[[`cr >= ca`][bool][Greater than equal to.]] -[[`ca >= cr`][bool][Greater than equal to.]] -[[`cr < cr2`][bool][Less than comparison.]] -[[`cr < ca`][bool][Less than comparison.]] -[[`ca < cr`][bool][Less than comparison.]] -[[`cr > cr2`][bool][Greater than comparison.]] -[[`cr > ca`][bool][Greater than comparison.]] -[[`ca > cr`][bool][Greater than comparison.]] -[[`boost::math::tools::digits()`][int] - [The number of digits in the significand of RealType.]] -[[`boost::math::tools::max_value()`][RealType] - [The largest representable number by type RealType.]] -[[`boost::math::tools::min_value()`][RealType] - [The smallest representable number by type RealType.]] -[[`boost::math::tools::log_max_value()`][RealType] - [The natural logarithm of the largest representable number by type RealType.]] -[[`boost::math::tools::log_min_value()`][RealType] - [The natural logarithm of the smallest representable number by type RealType.]] -[[`boost::math::tools::epsilon()`][RealType] - [The machine epsilon of RealType.]] -] - -Note that: - -# The functions `log_max_value` and `log_min_value` can be -synthesised from the others, and so no explicit specialisation is required. -# The function `epsilon` can be synthesised from the others, so no -explicit specialisation is required provided the precision -of RealType does not vary at runtime (see the header -[@../../../../boost/math/bindings/rr.hpp boost/math/bindings/rr.hpp] -for an example where the precision does vary at runtime). -# The functions `digits`, `max_value` and `min_value`, all get synthesised -automatically from `std::numeric_limits`. However, if `numeric_limits` -is not specialised for type RealType, then you will get a compiler error -when code tries to use these functions, /unless/ you explicitly specialise them. -For example if the precision of RealType varies at runtime, then -`numeric_limits` support may not be appropriate, see -[@../../../../boost/math/bindings/rr.hpp boost/math/bindings/rr.hpp] for examples. - -[warning -If `std::numeric_limits<>` is *not specialized* -for type /RealType/ then the default float precision of 6 decimal digits -will be used by other Boost programs including: - -Boost.Test: giving misleading error messages like - -['"difference between {9.79796} and {9.79796} exceeds 5.42101e-19%".] - -Boost.LexicalCast and Boost.Serialization when converting the number -to a string, causing potentially serious loss of accuracy on output. - -Although it might seem obvious that RealType should require `std::numeric_limits` -to be specialized, this is not sensible for -`NTL::RR` and similar classes where the [*number of digits is a runtime parameter] -(whereas for `numeric_limits` everything has to be fixed at compile time). -] - -[h4 Standard Library Support Requirements] - -Many (though not all) of the functions in this library make calls -to standard library functions, the following table summarises the -requirements. Note that most of the functions in this library -will only call a small subset of the functions listed here, so if in -doubt whether a user-defined type has enough standard library -support to be useable the best advise is to try it and see! - -In the following table /r/ is an object of type `RealType`, -/cr1/ and /cr2/ are objects of type `const RealType`, and -/i/ is an object of type `int`. - -[table -[[Expression][Result Type]] -[[`fabs(cr1)`][RealType]] -[[`abs(cr1)`][RealType]] -[[`ceil(cr1)`][RealType]] -[[`floor(cr1)`][RealType]] -[[`exp(cr1)`][RealType]] -[[`pow(cr1, cr2)`][RealType]] -[[`sqrt(cr1)`][RealType]] -[[`log(cr1)`][RealType]] -[[`frexp(cr1, &i)`][RealType]] -[[`ldexp(cr1, i)`][RealType]] -[[`cos(cr1)`][RealType]] -[[`sin(cr1)`][RealType]] -[[`asin(cr1)`][RealType]] -[[`tan(cr1)`][RealType]] -[[`atan(cr1)`][RealType]] -[[`fmod(cr1)`][RealType]] -[[`round(cr1)`][RealType]] -[[`iround(cr1)`][int]] -[[`trunc(cr1)`][RealType]] -[[`itrunc(cr1)`][int]] -] - -Note that the table above lists only those standard library functions known to -be used (or likely to be used in the near future) by this library. -The following functions: `acos`, `atan2`, `fmod`, `cosh`, `sinh`, `tanh`, `log10`, -`lround`, `llround`, `ltrunc`, `lltrunc` and `modf` -are not currently used, but may be if further special functions are added. - -Note that the `round`, `trunc` and `modf` functions are not part of the -current C++ standard: they are part of the additions added to C99 which will -likely be in the next C++ standard. There are Boost versions of these provided -as a backup, and the functions are always called unqualified so that -argument-dependent-lookup can take place. - -In addition, for efficient and accurate results, a __lanczos is highly desirable. -You may be able to adapt an existing approximation from -[@../../../../boost/math/special_functions/lanczos.hpp -boost/math/special_functions/lanczos.hpp] or -[@../../../../boost/math/bindings/detail/big_lanczos.hpp -boost/math/bindings/detail/big_lanczos.hpp]: -in the former case you will need change -`static_cast`'s to `lexical_cast`'s, and the constants to /strings/ -(in order to ensure the coefficients aren't truncated to `long doubl`e) -and then specialise `lanczos_traits` for type T. Otherwise you may have to hack -[@../../tools/lanczos_generator.cpp -libs/math/tools/lanczos_generator.cpp] to find a suitable -approximation for your RealType. The code will still compile if you don't do -this, but both accuracy and efficiency will be greatly compromised in any -function that makes use of the gamma\/beta\/erf family of functions. - -[endsect] [/section:real_concepts Conceptual Requirements for Real Number Types] - -[section:dist_concept Conceptual Requirements for Distribution Types] - -A ['DistributionType] is a type that implements the following conceptual -requirements, and encapsulates a statistical distribution. - -Please note that this documentation should not be used as a substitute -for the -[link math_toolkit.dist_ref reference documentation], and -[link math_toolkit.stat_tut tutorial] of the statistical -distributions. - -In the following table, ['d] is an object of type `DistributionType`, -['cd] is an object of type `const DistributionType` and ['cr] is an -object of a type convertible to `RealType`. - -[table -[[Expression][Result Type][Notes]] -[[DistributionType::value_type][RealType] - [The real-number type /RealType/ upon which the distribution operates.]] -[[DistributionType::policy_type][RealType] - [The __Policy to use when evaluating functions that depend on this distribution.]] -[[d = cd][Distribution&][Distribution types are assignable.]] -[[Distribution(cd)][Distribution][Distribution types are copy constructible.]] -[[pdf(cd, cr)][RealType][Returns the PDF of the distribution.]] -[[cdf(cd, cr)][RealType][Returns the CDF of the distribution.]] -[[cdf(complement(cd, cr))][RealType] - [Returns the complement of the CDF of the distribution, - the same as: `1-cdf(cd, cr)`]] -[[quantile(cd, cr)][RealType][Returns the quantile (or percentile) of the distribution.]] -[[quantile(complement(cd, cr))][RealType] - [Returns the quantile (or percentile) of the distribution, starting from - the complement of the probability, the same as: `quantile(cd, 1-cr)`]] -[[chf(cd, cr)][RealType][Returns the cumulative hazard function of the distribution.]] -[[hazard(cd, cr)][RealType][Returns the hazard function of the distribution.]] -[[kurtosis(cd)][RealType][Returns the kurtosis of the distribution.]] -[[kurtosis_excess(cd)][RealType][Returns the kurtosis excess of the distribution.]] -[[mean(cd)][RealType][Returns the mean of the distribution.]] -[[mode(cd)][RealType][Returns the mode of the distribution.]] -[[skewness(cd)][RealType][Returns the skewness of the distribution.]] -[[standard_deviation(cd)][RealType][Returns the standard deviation of the distribution.]] -[[variance(cd)][RealType][Returns the variance of the distribution.]] -] - -[endsect] [/ section:dist_concept Conceptual Requirements for Distribution Types] - -[section:archetypes Conceptual Archetypes for Reals and Distributions] - -There are a few concept archetypes available: - -* Real concept for floating-point types. -* Distribution concept for statistical distributions. - -[h5:real_concept Real concept] - -`std_real_concept` is an archetype for theReal types, -including the built-in float, double, long double. - -``#include `` - - namespace boost{ - namespace math{ - namespace concepts - { - class std_real_concept; - } - }} // namespaces - - -The main purpose in providing this type is to verify -that standard library functions are found via a using declaration - -bringing those functions into the current scope - -and not just because they happen to be in global scope. - -In order to ensure that a call to say `pow` can be found -either via argument dependent lookup, or failing that then -in the std namespace: all calls to standard library functions -are unqualified, with the std:: versions found via a `using` declaration -to make them visible in the current scope. Unfortunately it's all -to easy to forget the `using` declaration, and call the double version of -the function that happens to be in the global scope by mistake. - -For example if the code calls ::pow rather than std::pow, -the code will cleanly compile, but truncation of long doubles to -double will cause a significant loss of precision. -In contrast a template instantiated with std_real_concept will *only* -compile if the all the standard library functions used have -been brought into the current scope with a using declaration. - -[h6 Testing the real concept] - -There is a test program -[@../../test/std_real_concept_check.cpp libs/math/test/std_real_concept_check.cpp] -that instantiates every template in this library with type -`std_real_concept` to verify its usage of standard library functions. - -``#include `` - - namespace boost{ - namespace math{ - namespace concepts{ - - class real_concept; - - }}} // namespaces - -`real_concept` is an archetype for -[link math_toolkit.real_concepts user defined real types], -it declares its standard library functions in its own -namespace: these will only be found if they are called unqualified -allowing argument dependent lookup to locate them. In addition -this type is useable at runtime: -this allows code that would not otherwise be exercised by the built-in -floating point types to be tested. There is no std::numeric_limits<> -support for this type, since numeric_limits is not a conceptual requirement -for [link math_toolkit.real_concepts RealType]s. - -NTL RR is an example of a type meeting the requirements that this type -models, but note that use of a thin wrapper class is required: refer to -[link math_toolkit.high_precision.use_ntl "Using With NTL - a High-Precision Floating-Point Library"]. - -There is no specific test case for type `real_concept`, instead, since this -type is usable at runtime, each individual test case as well as testing -`float`, `double` and `long double`, also tests `real_concept`. - -[h6:distribution_concept Distribution Concept] - -Distribution Concept models statistical distributions. - -``#include `` - - namespace boost{ - namespace math{ - namespace concepts - { - template - class distribution_archetype; - - template - struct DistributionConcept; - - }}} // namespaces - -The class template `distribution_archetype` is a model of the -[link math_toolkit.dist_concept Distribution concept]. - -The class template `DistributionConcept` is a -[@../../../../libs/concept_check/index.html concept checking class] -for distribution types. - -[h6 Testing the distribution concept] - -The test program -[@../../test/compile_test/distribution_concept_check.cpp distribution_concept_check.cpp] -is responsible for using `DistributionConcept` to verify that all the -distributions in this library conform to the -[link math_toolkit.dist_concept Distribution concept]. - -The class template `DistributionConcept` verifies the existence -(but not proper function) of the non-member accessors -required by the [link math_toolkit.dist_concept Distribution concept]. -These are checked by calls like - -v = pdf(dist, x); // (Result v is ignored). - -And in addition, those that accept two arguments do the right thing when the -arguments are of different types (the result type is always the same as the -distribution's value_type). (This is implemented by some additional -forwarding-functions in derived_accessors.hpp, so that there is no need for -any code changes. Likewise boilerplate versions of the -hazard\/chf\/coefficient_of_variation functions are implemented in -there too.) - -[endsect] [/section:archetypes Conceptual Archetypes for Reals and Distributions] -[/ - Copyright 2006, 2010, 2012 John Maddock and Paul A. Bristow. - 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). -] - - - - diff --git a/boost/libs/math/doc/constants/constants.qbk b/boost/libs/math/doc/constants/constants.qbk deleted file mode 100644 index 99db3365..00000000 --- a/boost/libs/math/doc/constants/constants.qbk +++ /dev/null @@ -1,746 +0,0 @@ -[mathpart constants..Mathematical Constants] - -[section:constants_intro Introduction] - -Boost.Math provides a collection of mathematical constants. - -[h4 Why use Boost.Math mathematical constants?] - -* Readable. For the very many jobs just using built-in like `double`, you can just write expressions like -``double area = pi * r * r;`` -(If that's all you want, jump direct to [link math_toolkit.tutorial.non_templ use in non-template code]!) -* Effortless - avoiding a search of reference sources. -* Usable with both builtin floating point types, and user-defined, possibly extended precision, types such as -NTL, MPFR/GMP, mp_float: in the latter case the constants are computed to the necessary precision and then cached. -* Accurate - ensuring that the values are as accurate as possible for the -chosen floating-point type - * No loss of accuracy from repeated rounding of intermediate computations. - * Result is computed with higher precision and only rounded once. - * Less risk of inaccurate result from functions pow, trig and log at [@http://en.wikipedia.org/wiki/Corner_case corner cases]. - * Less risk of [@http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html cancellation error]. -* Portable - as possible between different systems using different floating-point precisions: -see [link math_toolkit.tutorial.templ use in template code]. -* Tested - by comparison with other published sources, or separately computed at long double precision. -* Faster - can avoid (re-)calculation at runtime. - * If the value returned is a builtin type then it's returned by value as a `constexpr` (C++11 feature, if available). - * If the value is computed and cached (or constructed from a string representation and cached), then it's returned by constant reference.[br] -This can be significant if: - * Functions pow, trig or log are used. - * Inside an inner loop. - * Using a high-precision UDT like __multiprecision. - * Compiler optimizations possible with built-in types, especially `double`, are not available. - -[endsect] [/section:intro Introduction] - -[section:tutorial Tutorial] - -[section:non_templ Use in non-template code] - -When using the math constants at your chosen fixed precision in non-template code, -you can simply add a `using namespace` declaration, for example, -`using namespace boost::math::double_constants`, -to make the constants of the correct precision for your code -visible in the current scope, and then use each constant ['as a simple variable - sans brackets]: - - #include - - double area(double r) - { - using namespace boost::math::double_constants; - return pi * r * r; - } - -Had our function been written as taking a `float` rather than a `double`, -we could have written instead: - - #include - - float area(float r) - { - using namespace boost::math::float_constants; - return pi * r * r; - } - -Likewise, constants that are suitable for use at `long double` precision -are available in the namespace `boost::math::long_double_constants`. - -You can see the full list of available constants at [link math_toolkit.constants]. - -Some examples of using constants are at [@../../example/constants_eg1.cpp constants_eg1]. - -[endsect] [/section:non_templ Use in non-template code] - -[section:templ Use in template code] - -When using the constants inside a function template, we need to ensure that -we use a constant of the correct precision for our template parameters. -We can do this by calling the function-template versions, `pi()`, of the constants -like this: - - #include - - template - Real area(Real r) - { - using namespace boost::math::constants; - return pi() * r * r; - } - -Although this syntax is a little less "cute" than the non-template version, -the code is no less efficient -(at least for the built-in types `float`, `double` and `long double`) : -the function template versions of the constants are simple inline functions that -return a constant of the correct precision for the type used. In addition, these -functions are declared `constexp` for those compilers that support this, allowing -the result to be used in constant-expressions provided the template argument is a literal type. - -[tip Keep in mind the difference between the variable version, -just `pi`, and the template-function version: -the template-function requires both a <[~floating-point-type]> -and function call `()` brackets, for example: `pi()`. -You cannot write `double p = pi<>()`, nor `double p = pi()`.] - -[note You can always use [*both] variable and template-function versions -[*provided calls are fully qualified], for example: -`` -double my_pi1 = boost::math::constants::pi(); -double my_pi2 = boost::math::double_constants::pi; -`` -] - -[warning It may be tempting to simply define -`` -using namespace boost::math::double_constants; -using namespace boost::math::constants; -`` -but if you do define two namespaces, this will, of course, create ambiguity! -`` -double my_pi = pi(); // error C2872: 'pi' : ambiguous symbol -double my_pi2 = pi; // Context does not allow for disambiguation of overloaded function -`` -Although the mistake above is fairly obvious, -it is also not too difficult to do this accidentally, or worse, create it in someone elses code. - -Therefore is it prudent to avoid this risk by [*localising the scope of such definitions], as shown above.] - -[tip Be very careful with the type provided as parameter. -For example, providing an [*integer] instead of a floating-point type can be disastrous (a C++ feature). - -``cout << "Area = " << area(2) << endl; // Area = 12!!!`` - -You should get a compiler warning -[pre -warning : 'return' : conversion from 'double' to 'int', possible loss of data -] [/pre] -Failure to heed this warning can lead to very wrong answers! - -You can also avoid this by being explicit about the type of `Area`. -``cout << "Area = " << area(2) << endl; // Area = 12.566371`` -] - -[endsect] [/section:templ Use in template code] - -[section:user_def Use With User-Defined Types] - -The most common example of a high-precision user-defined type will probably be __multiprecision. - -The syntax for using the function-call constants with user-defined types is the same -as it is in the template class, which is to say we use: - - #include - - boost::math::constants::pi(); - -For example: - - boost::math::constants::pi(); - -giving [pi] with a precision of 50 decimal digits. - -However, since the precision of the user-defined type may be much greater than that -of the built-in floating point types, how the value returned is created is as follows: - -* If the precision of the type is known at compile time: - * If the precision is less than or equal to that of a `float` and the type is constructable from a `float` - then our code returns a `float` literal. If the user-defined type is a literal type - then the function call that returns the constant will be a `constexp`. - * If the precision is less than or equal to that of a `double` and the type is constructable from a `double` - then our code returns a `double` literal. If the user-defined type is a literal type - then the function call that returns the constant will be a `constexp`. - * If the precision is less than or equal to that of a `long double` and the type is constructable from a `long double` - then our code returns a `long double` literal. If the user-defined type is a literal type - then the function call that returns the constant will be a `constexp`. - * If the precision is less than or equal to that of a `__float128` (and the compiler supports such a type) - and the type is constructable from a `__float128` - then our code returns a `__float128` literal. If the user-defined type is a literal type - then the function call that returns the constant will be a `constexp`. - * If the precision is less than 100 decimal digits, then the constant will be constructed - (just the once, then cached in a thread-safe manner) from a string representation of the constant. - In this case the value is returned as a const reference to the cached value. - * Otherwise the value is computed (just once, then cached in a thread-safe manner). - In this case the value is returned as a const reference to the cached value. -* If the precision is unknown at compile time then: - * If the runtime precision (obtained from a call to `boost::math::tools::digits()`) is - less than 100 decimal digits, then the constant is constructed "on the fly" from the string - representation of the constant. - * Otherwise the value is constructed "on the fly" by calculating then value of the constant - using the current default precision of the type. Note that this can make use of the constants - rather expensive. - -In addition, it is possible to pass a `Policy` type as a second template argument, and use this to control -the precision: - - #include - - typedef boost::math::policies::policy > my_policy_type; - boost::math::constants::pi(); - -[note Boost.Math doesn't know how to control the internal precision of `MyType`, the policy -just controls how the selection process above is carried out, and the calculation precision -if the result is computed.] - -It is also possible to control which method is used to construct the constant by specialising -the traits class `construction_traits`: - - namespace boost{ namespace math{ namespace constant{ - - template - struct construction_traits - { - typedef mpl::int_ type; - }; - - }}} // namespaces - -Where ['N] takes one of the following values: - -[table -[[['N]][Meaning]] -[[0][The precision is unavailable at compile time; -either construct from a decimal digit string or calculate on the fly depending upon the runtime precision.]] -[[1][Return a float precision constant.]] -[[2][Return a double precision constant.]] -[[3][Return a long double precision constant.]] -[[4][Construct the result from the string representation, and cache the result.]] -[[Any other value ['N]][Sets the compile time precision to ['N] bits.]] -] - -[h5 Custom Specializing a constant] - -In addition, for user-defined types that need special handling, it's possible to partially-specialize -the internal structure used by each constant. For example, suppose we're using the C++ wrapper around MPFR -`mpfr_class`: this has its own representation of Pi which we may well wish to use in place of the above -mechanism. We can achieve this by specialising the class template `boost::math::constants::detail::constant_pi`: - - namespace boost{ namespace math{ namespace constants{ namespace detail{ - - template<> - struct constant_pi - { - template - static mpfr_class get(const mpl::int_&) - { - // The template param N is one of the values in the table above, - // we can either handle all cases in one as is the case here, - // or overload "get" for the different options. - mpfr_class result; - mpfr_const_pi(result.get_mpfr_t(), GMP_RNDN); - return result; - } - }; - - }}}} // namespaces - -[h5 Diagnosing what meta-programmed code is doing] - -Finally, since it can be tricky to diagnose what meta-programmed code is doing, there is a -diagnostic routine that prints information about how this library will handle a specific type, -it can be used like this: - - #include - - int main() - { - boost::math::constants::print_info_on_type(); - } - -If you wish, you can also pass an optional std::ostream argument to the `print_info_on_type` function. -Typical output for a user-defined type looks like this: - -[pre -Information on the Implementation and Handling of -Mathematical Constants for Type class boost::math::concepts::real_concept - -Checking for std::numeric_limits specialisation: no -boost::math::policies::precision -reports that there is no compile type precision available. -boost::math::tools::digits() -reports that the current runtime precision is -53 binary digits. -No compile time precision is available, the construction method -will be decided at runtime and results will not be cached -- this may lead to poor runtime performance. -Current runtime precision indicates that -the constant will be constructed from a string on each call. -] - -[endsect] [/section:user_def Use With User Defined Types] - -[endsect] [/section:tutorial Tutorial] - -[section:constants The Mathematical Constants] - -This section lists the mathematical constants, their use(s) (and sometimes rationale for their inclusion). -[table Mathematical Constants -[[name] [formula] [Value (6 decimals)] [Uses and Rationale]] -[[[*Rational fractions]] [] [] [] ] -[[half] [1/2] [0.5] [] ] -[[third] [1/3] [0.333333] [] ] -[[two_thirds] [2/3] [0.66667] [] ] -[[three_quarters] [3/4] [0.75] [] ] - -[[[*two and related]] [] [] [] ] -[[root_two] [[radic]2] [1.41421] [] ] -[[root_three] [[radic]3] [1.73205] [] ] -[[half_root_two] [[radic]2 /2] [0.707106] [] ] -[[ln_two] [ln(2)] [0.693147] [] ] -[[ln_ten] [ln(10)] [2.30258] [] ] -[[ln_ln_two] [ln(ln(2))] [-0.366512] [Gumbel distribution median] ] -[[root_ln_four] [[radic]ln(4)] [1.177410] [] ] -[[one_div_root_two] [1/[radic]2] [0.707106] [] ] - -[[[*[pi] and related]] [] [] [] ] -[[pi] [pi] [3.14159] [Ubiquitous. Archimedes constant [@http://en.wikipedia.org/wiki/Pi [pi]]]] -[[half_pi] [[pi]/2] [1.570796] [] ] -[[third_pi] [[pi]/3] [1.04719] [] ] -[[sixth_pi] [[pi]/6] [0.523598] [] ] -[[two_pi] [2[pi]] [6.28318] [Many uses, most simply, circumference of a circle]] -[[two_thirds_pi] [2/3 [pi]] [2.09439] [[@http://en.wikipedia.org/wiki/Sphere#Volume_of_a_sphere volume of a hemi-sphere] = 4/3 [pi] r[cubed]]] -[[three_quarters_pi] [3/4 [pi]] [2.35619] [ = 3/4 [pi] ]] -[[four_thirds_pi] [4/3 [pi]] [4.18879] [[@http://en.wikipedia.org/wiki/Sphere#Volume_of_a_sphere volume of a sphere] = 4/3 [pi] r[cubed]]] -[[one_div_two_pi] [1/(2[pi])] [1.59155] [Widely used]] -[[root_pi] [[radic][pi]][1.77245] [Widely used]] -[[root_half_pi] [[radic] [pi]/2] [1.25331] [Widely used]] -[[root_two_pi][[radic] [pi]*2] [2.50662] [Widely used]] -[[one_div_root_pi] [1/[radic][pi]] [0.564189] [] ] -[[one_div_root_two_pi] [1/[radic](2[pi])] [0.398942] [] ] -[[root_one_div_pi] [[radic](1/[pi]] [0.564189] [] ] -[[pi_minus_three] [[pi]-3] [0.141593] [] ] -[[four_minus_pi] [4 -[pi]] [0.858407] [] ] -[[pi_pow_e] [[pi][super e]] [22.4591] [] ] - -[[pi_sqr] [[pi][super 2]] [9.86960] [] ] -[[pi_sqr_div_six] [[pi][super 2]/6] [1.64493] [] ] -[[pi_cubed] [[pi][super 3]] [31.00627] [] ] -[[cbrt_pi] [[radic][super 3] [pi]] [1.46459] [] ] -[[one_div_cbrt_pi] [1/[radic][super 3] [pi]] [0.682784] [] ] - -[[[*Euler's e and related]] [] [] [] ] -[[e] [e] [2.71828] [[@http://en.wikipedia.org/wiki/E_(mathematical_constant) Euler's constant e]] ] -[[exp_minus_half] [e [super -1/2]] [0.606530] [] ] -[[e_pow_pi] [e [super [pi]]] [23.14069] [] ] -[[root_e] [[radic] e] [1.64872] [] ] -[[log10_e] [log10(e)] [0.434294] [] ] -[[one_div_log10_e] [1/log10(e)] [2.30258] [] ] - -[[[*Trigonometric]] [] [] [] ] -[[degree] [radians = [pi] / 180] [0.017453] [] ] -[[radian] [degrees = 180 / [pi]] [57.2957] [] ] -[[sin_one] [sin(1)] [0.841470] [] ] -[[cos_one] [cos(1)] [0.54030] [] ] -[[sinh_one] [sinh(1)] [1.17520] [] ] -[[cosh_one] [cosh(1)] [1.54308] [] ] - -[[[*Phi]] [ Phidias golden ratio] [[@http://en.wikipedia.org/wiki/Golden_ratio Phidias golden ratio]] [] ] -[[phi] [(1 + [radic]5) /2] [1.61803] [finance] ] -[[ln_phi] [ln([phi])] [0.48121] [] ] -[[one_div_ln_phi] [1/ln([phi])] [2.07808] [] ] - -[[[*Euler's Gamma]] [] [] [] ] -[[euler] [euler] [0.577215] [[@http://en.wikipedia.org/wiki/Euler%E2%80%93Mascheroni_constant Euler-Mascheroni gamma constant]] ] -[[one_div_euler] [1/euler] [1.73245] [] ] -[[euler_sqr] [euler[super 2]] [0.333177] [] ] - -[[[*Misc]] [] [] [] ] -[[zeta_two] [[zeta](2)] [1.64493] [[@http://en.wikipedia.org/wiki/Riemann_zeta_function Riemann zeta function]] ] -[[zeta_three] [[zeta](3)] [1.20205] [[@http://en.wikipedia.org/wiki/Riemann_zeta_function Riemann zeta function]] ] -[[catalan] [['K]] [0.915965] [[@http://mathworld.wolfram.com/CatalansConstant.html Catalan (or Glaisher) combinatorial constant] ]] -[[glaisher] [['A]] [1.28242] [[@https://oeis.org/A074962/constant Decimal expansion of Glaisher-Kinkelin constant] ]] -[[khinchin] [['k]] [2.685452] [[@https://oeis.org/A002210/constant Decimal expansion of Khinchin constant] ]] - -[[extreme_value_skewness] [12[radic]6 [zeta](3)/ [pi][super 3]] [1.139547] [Extreme value distribution] ] -[[rayleigh_skewness] [2[radic][pi]([pi]-3)/(4 - [pi])[super 3/2]] [0.631110] [Rayleigh distribution skewness] ] -[[rayleigh_kurtosis_excess] [-(6[pi][super 2]-24[pi]+16)/(4-[pi])[super 2]] [0.245089] [[@http://en.wikipedia.org/wiki/Rayleigh_distribution Rayleigh distribution kurtosis excess]] ] -[[rayleigh_kurtosis] [3+(6[pi][super 2]-24[pi]+16)/(4-[pi])[super 2]] [3.245089] [Rayleigh distribution kurtosis] ] - -] [/table] - - -[note Integer values are [*not included] in this list of math constants, however interesting, -because they can be so easily and exactly constructed, even for UDT, for example: `static_cast(42)`.] - -[tip If you know the approximate value of the constant, you can search for the value to find Boost.Math chosen name in this table.] -[tip Bernoulli numbers are available at __bernoulli_numbers.] -[tip Factorials are available at __factorial.] - -[endsect] [/section:constants The constants] - -[section:new_const Defining New Constants] - -The library provides some helper code to assist in defining new constants; -the process for defining a constant called `my_constant` goes like this: - -1. [*Define a function that calculates the value of the constant]. -This should be a template function, and be placed in `boost/math/constants/calculate_constants.hpp` -if the constant is to be added to this library, -or else defined at the top of your source file if not. - -The function should look like this: - - namespace boost{ namespace math{ namespace constants{ namespace detail{ - - template - template - Real constant_my_constant::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_)) - { - int required_precision = N ? N : tools::digits(); - Real result = /* value computed to required_precision bits */ ; - return result; - } - - }}}} // namespaces - -Then define a placeholder for the constant itself: - - namespace boost{ namespace math{ namespace constants{ - - BOOST_DEFINE_MATH_CONSTANT(my_constant, 0.0, "0"); - - }}} - - -For example, to calculate [pi]/2, add to `boost/math/constants/calculate_constants.hpp` - - template - template - inline T constant_half_pi::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_)) - { - BOOST_MATH_STD_USING - return pi > >() / static_cast(2); - } - -Then to `boost/math/constants/constants.hpp` add: - - BOOST_DEFINE_MATH_CONSTANT(half_pi, 0.0, "0"); // Actual values are temporary, we'll replace them later. - -[note Previously defined constants like pi and e can be used, but by *not simply calling* `pi()`; -specifying the precision via the policy -`pi > >()` -is essential to ensure full accuracy.] - -[warning Newly defined constants can only be used once they are included in -`boost/math/constants/constants.hpp`. So if you add -`template T constant_my_constant{...}`, -then you cannot define `constant_my_constant` -until you add the temporary `BOOST_DEFINE_MATH_CONSTANT(my_constant, 0.0, "0")`. -Failing to do this will result in surprising compile errors: -`` - error C2143: syntax error : missing ';' before '<' - error C2433: 'constant_root_two_div_pi' : 'inline' not permitted on data declarations - error C2888: 'T constant_root_two_div_pi' : symbol cannot be defined within namespace 'detail' - error C2988: unrecognizable template declaration/definition -`` -] - -2. [*You will need an arbitrary precision type to use to calculate the value]. This library -currently supports either `cpp_float`, `NTL::RR` or `mpfr_class` used via the bindings in `boost/math/bindings`. -The default is to use `NTL::RR` unless you define an alternate macro, for example, -`USE_MPFR` or `USE_CPP_FLOAT` at the start of your program. - -3. It is necessary to link to the Boost.Regex library, -and probably to your chosen arbitrary precision type library. - -4. You need to add `libs\math\include_private` to your compiler's include path as the needed -header is not installed in the usual places by default (this avoids a cyclic dependency between -the Math and Multiprecision library's headers). - -5. The complete program to generate the constant `half_pi` using function `calculate_half_pi` is then: - - #define USE_CPP_FLOAT // If required. - #include - - int main() - { - BOOST_CONSTANTS_GENERATE(half_pi); - } - -The output from the program is a snippet of C++ code -(actually a macro call) that can be cut and pasted -into `boost/math/constants/constants.hpp` or else into your own code, for example: - -[pre - BOOST_DEFINE_MATH_CONSTANT(half_pi, 1.570796326794896619231321691639751442e+00, "1.57079632679489661923132169163975144209858469968755291048747229615390820314310449931401741267105853399107404326e+00"); -] - -This macro BOOST_DEFINE_MATH_CONSTANT inserts a C++ struct code snippet that -declares the `float`, `double` and `long double` versions of the constant, -plus a decimal digit string representation correct to 100 decimal -digits, and all the meta-programming machinery needed to select between them. - -The result of an expanded macro for Pi is shown below. - -[import ./pp_pi.hpp] - -[preprocessed_pi] - - -[endsect] [/section:new_const Defining New Constants] - -[section:constants_faq FAQs] - -[h4 Why are ['these] Constants Chosen?] -It is, of course, impossible to please everyone with a list like this. - -Some of the criteria we have used are: - -* Used in Boost.Math. -* Commonly used. -* Expensive to compute. -* Requested by users. -* [@http://en.wikipedia.org/wiki/Mathematical_constant Used in science and mathematics.] -* No integer values (because so cheap to construct).[br] -(You can easily define your own if found convenient, for example: `FPT one =static_cast(42);`). - -[h4 How are constants named?] -* Not macros, so no upper case. -* All lower case (following C++ standard names). -* No CamelCase. -* Underscore as _ delimiter between words. -* Numbers spelt as words rather than decimal digits (except following pow). -* Abbreviation conventions: - * root for square root. - * cbrt for cube root. - * pow for pow function using decimal digits like pow23 for n[super 2/3]. - * div for divided by or operator /. - * minus for operator -, plus for operator +. - * sqr for squared. - * cubed for cubed n[super 3]. - * words for greek, like [pi], [zeta] and [Gamma]. - * words like half, third, three_quarters, sixth for fractions. (Digit(s) can get muddled). - * log10 for log[sub 10] - * ln for log[sub e] - -[h4 How are the constants derived?] - -The constants have all been calculated using high-precision software working -with up to 300-bit precision giving about 100 decimal digits. -(The precision can be arbitrarily chosen and is limited only by compute time). - -[h4 How Accurate are the constants?] -The minimum accuracy chosen (100 decimal digits) exceeds the -accuracy of reasonably-foreseeable floating-point hardware (256-bit) -and should meet most high-precision computations. - -[h4 How are the constants tested?] - -# Comparison using Boost.Test BOOST_CHECK_CLOSE_FRACTION using long double literals, -with at least 35 decimal digits, enough to be accurate for all long double implementations. -The tolerance is usually twice `long double epsilon`. - -# Comparison with calculation at long double precision. -This often requires a slightly higher tolerance than two epsilon -because of computational noise from round-off etc, -especially when trig and other functions are called. - -# Comparison with independent published values, -for example, using [@http://oeis.org/ The On-Line Encyclopedia of Integer Sequences (OEIS)] -again using at least 35 decimal digits strings. - -# Comparison with independely calculated values using arbitrary precision tools like -[@http://www.wolfram.com/mathematica/ Mathematica], again using at least 35 decimal digits literal strings. - -[warning We have not yet been able to [*check] that -[*all] constants are accurate at the full arbitrary precision, -at present 100 decimal digits. -But certain key values like `e` and `pi` appear to be accurate -and internal consistencies suggest that others are this accurate too. -] - -[h4 Why is Portability important?] - -Code written using math constants is easily portable even when using different -floating-point types with differing precision. - -It is a mistake to expect that results of computations will be [*identical], but -you can achieve the [*best accuracy possible for the floating-point type in use]. - -This has no extra cost to the user, but reduces irritating, -and often confusing and very hard-to-trace effects, -caused by the intrinsically limited precision of floating-point calculations. - -A harmless symptom of this limit is a spurious least-significant digit; -at worst, slightly inaccurate constants sometimes cause iterating algorithms -to diverge wildly because internal comparisons just fail. - -[h4 What is the Internal Format of the constants, and why?] - -See [link math_toolkit.tutorial tutorial] above for normal use, -but this FAQ explains the internal details used for the constants. - -Constants are stored as 100 decimal digit values. -However, some compilers do not accept decimal digits strings as long as this. -So the constant is split into two parts, with the first containing at least -128-bit long double precision (35 decimal digits), -and for consistency should be in scientific format with a signed exponent. - -The second part is the value of the constant expressed as a string literal, -accurate to at least 100 decimal digits (in practice that means at least 102 digits). -Again for consistency use scientific format with a signed exponent. - -For types with precision greater than a long double, -then if T is constructible `T `is constructible from a `const char*` -then it's directly constructed from the string, -otherwise we fall back on lexical_cast to convert to type `T`. -(Using a string is necessary because you can't use a numeric constant -since even a `long double` might not have enough digits). - -So, for example, a constant like pi is internally defined as - - BOOST_DEFINE_MATH_CONSTANT(pi, 3.141592653589793238462643383279502884e+00, "3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651e+00"); - -In this case the significand is 109 decimal digits, ensuring 100 decimal digits are exact, and exponent is zero. - -See [link math_toolkit.new_const defining new constants] to calculate new constants. - -A macro definition like this can be pasted into user code where convenient, -or into `boost/math/constants.hpp` if it is to be added to the Boost.Math library. - -[h4 What Floating-point Types could I use?] - -Apart from the built-in floating-point types `float`, `double`, `long double`, -there are several arbitrary precision floating-point classes available, -but most are not licensed for commercial use. - -[h5 Boost.Multiprecision by Christopher Kormanyos] - -This work is based on an earlier work called e-float: -Algorithm 910: A Portable C++ Multiple-Precision System for Special-Function Calculations, -in ACM TOMS, {VOL 37, ISSUE 4, (February 2011)} (C) ACM, 2011. -[@http://doi.acm.org/10.1145/1916461.1916469] -[@https://svn.boost.org/svn/boost/sandbox/e_float/ e_float] -but is now re-factored and available under the Boost license in the Boost-sandbox at -[@https://svn.boost.org/svn/boost/sandbox/multiprecision/ multiprecision] -where it is being refined and prepared for review. - -[h5 Boost.cpp_float by John Maddock using Expression Templates] - -[@https://svn.boost.org/svn/boost/sandbox/big_number/ Big Number] -which is a reworking of [@https://svn.boost.org/svn/boost/sandbox/e_float/ e_float] -by Christopher Kormanyos to use expression templates for faster execution. - -[h5 NTL class quad_float] - -[@http://shoup.net/ntl/ NTL] by Victor Shoup has fixed and arbitrary high precision fixed and floating-point types. -However none of these are licenced for commercial use. - - #include // quad precision 106-bit, about 32 decimal digits. - using NTL::to_quad_float; // Less precise than arbitrary precision NTL::RR. - -NTL class `quad_float`, which gives a form of quadruple precision, -106-bit significand (but without an extended exponent range.) -With an IEC559/IEEE 754 compatible processor, -for example Intel X86 family, with 64-bit double, and 53-bit significand, -using the significands of [*two] 64-bit doubles, -if `std::numeric_limits::digits10` is 16, -then we get about twice the precision, -so `std::numeric_limits::digits10()` should be 32. -(the default `std::numeric_limits::digits10()` should be about 40). -(which seems to agree with experiments). -We output constants (including some noisy bits, -an approximation to `std::numeric_limits::max_digits10()`) -by adding 2 or 3 extra decimal digits, so using `quad_float::SetOutputPrecision(32 + 3);` - -Apple Mac/Darwin uses a similar ['doubledouble] 106-bit for its built-in `long double` type. - -[note The precision of all `doubledouble` floating-point types is rather odd and values given are only approximate.] - -[*New projects should use __multiprecision.] - -[h5 NTL class RR] - -Arbitrary precision floating point with NTL class RR, -default is 150 bit (about 50 decimal digits) -used here with 300 bit to output 100 decimal digits, -enough for many practical non-'number-theoretic' C++ applications. - -__NTL is [*not licenced for commercial use]. - -This class is used in Boost.Math and is an option when using big_number projects to calculate new math constants. - -[*New projects should use __multiprecision.] - -[h5 GMP and MPFR] - -[@http://gmplib.org GMP] and [@http://www.mpfr.org/ MPFR] have also been used to compute constants, -but are licensed under the [@http://www.gnu.org/copyleft/lesser.html Lesser GPL license] -and are [*not licensed for commercial use]. - -[h4 What happened to a previous collection of constants proposed for Boost?] - -A review concluded that the way in which the constants were presented did not meet many peoples needs. -None of the methods proposed met many users' essential requirement to allow writing simply `pi` rather than `pi()`. -Many science and engineering equations look difficult to read when because function call brackets can be confused -with the many other brackets often needed. All the methods then proposed of avoiding the brackets failed to meet all needs, -often on grounds of complexity and lack of applicability to various realistic scenarios. - -So the simple namespace method, proposed on its own, but rejected at the first review, -has been added to allow users to have convenient access to float, double and long double values, -but combined with template struct and functions to allow simultaneous use -with other non-built-in floating-point types. - - -[h4 Why do the constants (internally) have a struct rather than a simple function?] - -A function mechanism was provided by in previous versions of Boost.Math. - -The new mechanism is to permit partial specialization. See Custom Specializing a constant above. -It should also allow use with other packages like [@http://www.ttmath.org/ ttmath Bignum C++ library.] - -[h4 Where can I find other high precision constants?] - -# Constants with very high precision and good accuracy (>40 decimal digits) -from Simon Plouffe's web based collection [@http://pi.lacim.uqam.ca/eng/]. -# [@https://oeis.org/ The On-Line Encyclopedia of Integer Sequences (OEIS)] -# Checks using printed text optically scanned values and converted from: -D. E. Knuth, Art of Computer Programming, Appendix A, Table 1, Vol 1, ISBN 0 201 89683 4 (1997) -# M. Abrahamovitz & I. E. Stegun, National Bureau of Standards, Handbook of Mathematical Functions, -a reference source for formulae now superceded by -# Frank W. Olver, Daniel W. Lozier, Ronald F. Boisvert, Charles W. Clark, NIST Handbook of Mathemetical Functions, Cambridge University Press, ISBN 978-0-521-14063-8, 2010. -# John F Hart, Computer Approximations, Kreiger (1978) ISBN 0 88275 642 7. -# Some values from Cephes Mathematical Library, Stephen L. Moshier -and CALC100 100 decimal digit Complex Variable Calculator Program, a DOS utility. -# Xavier Gourdon, Pascal Sebah, 50 decimal digits constants at [@http://numbers.computation.free.fr/Constants/constants.html Number, constants and computation]. - -[h4 Where are Physical Constants?] - -Not here in this Boost.Math collection, because physical constants: - -* Are measurements, not truely constants. -* Are not truly constant and keeping changing as mensuration technology improves. -* Have a instrinsic uncertainty. -* Mathematical constants are stored and represented at varying precision, but should never be inaccurate. - -Some physical constants may be available in Boost.Units. - -[endsect] [/section:FAQ FAQ] - -[endmathpart] [/section:constants Mathematical Constants] - -[/ - Copyright 2012 John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/constants/pp_pi.hpp b/boost/libs/math/doc/constants/pp_pi.hpp deleted file mode 100644 index db66d30c..00000000 --- a/boost/libs/math/doc/constants/pp_pi.hpp +++ /dev/null @@ -1,99 +0,0 @@ -//[preprocessed_pi - -// Preprocessed pi constant, annotated. - -namespace boost -{ - namespace math - { - namespace constants - { - namespace detail - { - template struct constant_pi - { - private: - // Default implementations from string of decimal digits: - static inline T get_from_string() - { - static const T result - = detail::convert_from_string("3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651e+00", - boost::is_convertible()); - return result; - } - template static T compute(); - - public: - // Default implementations from string of decimal digits: - static inline T get(const mpl::int_&) - { - constant_initializer::get_from_string >::do_nothing(); - return get_from_string(); - } - // Float, double and long double versions: - static inline T get(const mpl::int_) - { - return 3.141592653589793238462643383279502884e+00F; - } - static inline T get(const mpl::int_&) - { - return 3.141592653589793238462643383279502884e+00; - } - static inline T get(const mpl::int_&) - { - return 3.141592653589793238462643383279502884e+00L; - } - // For very high precision that is nonetheless can be calculated at compile time: - template static inline T get(const mpl::int_& n) - { - constant_initializer2::template compute >::do_nothing(); - return compute(); - } - //For true arbitrary precision, which may well vary at runtime. - static inline T get(const mpl::int_<0>&) - { - return tools::digits() > max_string_digits ? compute<0>() : get(mpl::int_()); - } - }; // template struct constant_pi - } // namespace detail - - // The actual forwarding function (including policy to control precision). - template inline T pi( ) - { - return detail:: constant_pi::get(typename construction_traits::type()); - } - // The actual forwarding function (using default policy to control precision). - template inline T pi() - { - return pi >() - } - } // namespace constants - - // Namespace specific versions, for the three built-in floats: - namespace float_constants - { - static const float pi = 3.141592653589793238462643383279502884e+00F; - } - namespace double_constants - { - static const double pi = 3.141592653589793238462643383279502884e+00; - } - namespace long_double_constants - { - static const long double pi = 3.141592653589793238462643383279502884e+00L; - } - namespace constants{; - } // namespace constants - } // namespace math -} // namespace boost - -//] [/preprocessed_pi] - -/* - Copyright 2012 John Maddock and Paul A. Bristow. - 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) -*/ - - diff --git a/boost/libs/math/doc/cstdfloat/cstdfloat.qbk b/boost/libs/math/doc/cstdfloat/cstdfloat.qbk deleted file mode 100644 index 0c90e619..00000000 --- a/boost/libs/math/doc/cstdfloat/cstdfloat.qbk +++ /dev/null @@ -1,551 +0,0 @@ -[/cstdfloat.qbk Specified-width floating-point typedefs] - -[def __IEEE754 [@http://en.wikipedia.org/wiki/IEEE_floating_point IEEE_floating_point]] -[def __N3626 [@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3626.pdf N3626]] -[def __N1703 [@http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1703.pdf N1703]] - -[import ../../example/cstdfloat_example.cpp] -[import ../../example/normal_tables.cpp] -[/Removed as unhelpful for C++ users, but might have use as a check that quadmath is available and linked OK.] -[/import ../../example/quadmath_snprintf.c] - -[section:specified_typedefs Overview] - -The header `` provides [*optional] -standardized floating-point `typedef`s having [*specified widths]. -These are useful for writing portable code because they -should behave identically on all platforms. -These `typedef`s are the floating-point analog of specified-width integers in `` and `stdint.h`. - -The `typedef`s are based on __N3626 -proposed for a new C++14 standard header `` and -__N1703 proposed for a new C language standard header ``. - -All `typedef`s are in `namespace boost` (would be in namespace `std` if eventually standardized). - -The `typedef`s include `float16_t, float32_t, float64_t, float80_t, float128_t`, -their corresponding least and fast types, -and the corresponding maximum-width type. -The `typedef`s are based on underlying built-in types -such as `float`, `double`, or `long double`, or the proposed __short_float, -or based on other compiler-specific non-standardized types such as `__float128`. -The underlying types of these `typedef`s must conform with -the corresponding specifications of binary16, binary32, binary64, -and binary128 in __IEEE754 floating-point format, and -`std::numeric_limits<>::is_iec559 == true`. - -The 128-bit floating-point type (of great interest in scientific and -numeric programming) is not required in the Boost header, -and may not be supplied for all platforms/compilers, because compiler -support for a 128-bit floating-point type is not mandated by either -the C standard or the C++ standard. - -If 128-bit floating-point is supported, then including `boost/cstdfloat.hpp` -provides a [*native] 128-bit type, and -includes other headers in folder `boost/math/cstdfloat` that provide C++ -quad support for __C_math in ``, ``, ``, ``, -and the available floating-point types. - -One can also, more robustly, include `boost/multiprecision/float128.hpp` -and this provides a thin wrapper selecting the appropriate 128-bit native type -from `cstdfloat` if available, or else a 128-bit multiprecision type. - -See [link math_toolkit.examples.je_lambda Jahnke-Emden-Lambda function example] -for an example using both a `` function and a Boost.Math function -to evaluate a moderately interesting function, the -[@http://mathworld.wolfram.com/LambdaFunction.html Jahnke-Emden-Lambda function] -and [link math_toolkit.examples.normal_table normal distribution] -as an example of a statistical distribution from Boost.Math. - -[endsect] [/section:specified_typedefs Overview] - -[section:rationale Rationale] - -The implementation of `` is designed to utilize ``, -defined in the 1989 C standard. The preprocessor is used to query certain -preprocessor definitions in `` such as FLT_MAX, DBL_MAX, etc. -Based on the results of these queries, an attempt is made to automatically -detect the presence of built-in floating-point types having specified widths. -An unequivocal test requiring conformance with __IEEE754 (IEC599) based on -[@ http://en.cppreference.com/w/cpp/types/numeric_limits/is_iec559 `std::numeric_limits<>::is_iec559`] -is performed with `BOOST_STATIC_ASSERT`. - -In addition, this Boost implementation `` -supports an 80-bit floating-point `typedef` if it can be detected, -and a 128-bit floating-point `typedef` if it can be detected, -provided that the underlying types conform with -[@http://en.wikipedia.org/wiki/Extended_precision IEEE-754 precision extension] -(provided `std::numeric_limits<>::is_iec559 == true` for this type). - -The header `` makes the standardized floating-point -`typedef`s safely available in `namespace boost` without placing any names -in `namespace std`. The intention is to complement rather than compete -with a potential future C/C++ Standard Library that may contain these `typedef`s. -Should some future C/C++ standard include `` and ``, -then `` will continue to function, but will become redundant -and may be safely deprecated. - -Because `` is a Boost header, its name conforms to the -boost header naming conventions, not the C++ Standard Library header -naming conventions. - -[note -`` [*cannot synthesize or create -a `typedef` if the underlying type is not provided by the compiler]. -For example, if a compiler does not have an underlying floating-point -type with 128 bits (highly sought-after in scientific and numeric programming), -then `float128_t` and its corresponding least and fast types are [*not] -provided by `.] - -[warning If `` uses a compiler-specific non-standardized type -([*not] derived from `float, double,` or `long double`) for one or more -of its floating-point `typedef`s, then there is no guarantee that -specializations of `numeric_limits<>` will be available for these types. -Typically, specializations of `numeric_limits<>` will only be available for these -types if the compiler itself supports corresponding specializations -for the underlying type(s), exceptions are GCC's `__float128` type and -Intel's `_Quad` type which are explicitly supported via our own code.] - -[warning -As an implementation artifact, certain C macro names from `` -may possibly be visible to users of ``. -Don't rely on using these macros; they are not part of any Boost-specified interface. -Use `std::numeric_limits<>` for floating-point ranges, etc. instead.] - -[tip For best results, `` should be `#include`d before -other headers that define generic code making use of standard library functions -defined in . - -This is because `` may define overloads of -standard library functions where a non-standard type (i.e. other than -`float`, `double`, or `long double`) is used for one of the specified -width types. If generic code (for example in another Boost.Math header) -calls a standard library function, then the correct overload will only be -found if these overloads are defined prior to the point of use. -See [link math_toolkit.float128.overloading overloading template functions with float128_t] -and the implementation of `cstdfloat.hpp` for more details. - -For this reason, making `#include ` the [*first -include] is usually best. -] -[endsect] [/section:rationale Rationale] - -[section:exact_typdefs Exact-Width Floating-Point `typedef`s] - -The `typedef float#_t`, with # replaced by the width, designates a -floating-point type of exactly # bits. For example `float32_t` denotes -a single-precision floating-point type with approximately -7 decimal digits of precision (equivalent to binary32 in __IEEE754). - -Floating-point types in C and C++ are specified to be allowed to have -(optionally) implementation-specific widths and formats. -However, if a platform supports underlying -floating-point types (conformant with __IEEE754) with widths of -16, 32, 64, 80, 128 bits, or any combination thereof, -then `` does provide the corresponding `typedef`s -`float16_t, float32_t, float64_t, float80_t, float128_t,` -their corresponding least and fast types, -and the corresponding maximum-width type. - -[h4 How to tell which widths are supported] - -The definition (or not) of a -[link math_toolkit.macros floating-point constant macro] -is a way to test if a [*specific width floating-point] is available on a platform. - - #if defined(BOOST_FLOAT16_C) - // Can use boost::float16_t, perhaps a proposed __short_float. - // P0192R1, Adding Fundamental Type for Short Float, - // Boris Fomitchev, Sergei Nikolaev, Olivier Giroux, Lawrence Crowl, 2016 Feb14 - // http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2016.pdf - #endif - - #if defined(BOOST_FLOAT32_C) - // Can use boost::float32_t, usually type `float`. - #endif - - #if defined(BOOST_FLOAT64_C) - // Can use boost::float64_t, usually type `double`, and sometimes also type `long double`. - #endif - - #if defined(BOOST_FLOAT80_C) - // Can use boost::float80_t, sometimes type `long double`. - #endif - - #if defined(BOOST_FLOAT128_C) - // Can use boost::float128_t. Sometimes type `__float128` or `_Quad`. - #endif - -This can be used to write code which will compile and run (albeit differently) on several platforms. -Without these tests, if a width, say `float128_t` is not supported, then compilation would fail. -(It is, of course, rare for `float64_t` or `float32_t` not to be supported). - -The number of bits in just the significand can be determined using: - - std::numeric_limits::digits - -and from this one can safely infer the total number of bits because the type must be IEEE754 format, -`std::numeric_limits::is_iec559 == true`, -so, for example, if `std::numeric_limits::digits == 113`, -then `floatmax_t` must be` float128_t`. - -The [*total] number of bits using `floatmax_t` can be found thus: - -[floatmax_1] - -and the number of 'guaranteed' decimal digits using - - std::numeric_limits::digits10 - -and the maximum number of possibly significant decimal digits using - - std::numeric_limits::max_digits10 - -[tip `max_digits10` is not always supported, -but can be calculated at compile-time using the Kahan formula, -`2 + binary_digits * 0.3010` which can be calculated [*at compile time] using -`2 + binary_digits * 3010/10000`. -] - -[note One could test that - - std::is_same::value == true - -but this would fail to compile on a platform where `boost::float128_t` is not defined. -So it is better to use the MACROs `BOOST_FLOATnnn_C`. ] - -[endsect] [/section:exact_typdefs Exact-Width Floating-Point `typedef`s] - -[section:minimum_typdefs Minimum-width floating-point `typedef`s] - -The `typedef float_least#_t`, with # replaced by the width, designates a -floating-point type with a [*width of at least # bits], such that no -floating-point type with lesser size has at least the specified width. -Thus, `float_least32_t` denotes the smallest floating-point type with -a width of at least 32 bits. - -Minimum-width floating-point types are provided for all existing -exact-width floating-point types on a given platform. - -For example, if a platform supports `float32_t` and `float64_t`, -then `float_least32_t` and `float_least64_t` will also be supported, etc. - -[endsect] [/section:minimum_typdefs Minimum-width floating-point `typedef`s] - -[section:fastest_typdefs Fastest floating-point `typedef`s] - -The `typedef float_fast#_t`, with # replaced by the width, designates -the [*fastest] floating-point type with a [*width of at least # bits]. - -There is no absolute guarantee that these types are the fastest for all purposes. -In any case, however, they satisfy the precision and width requirements. - -Fastest minimum-width floating-point types are provided for all existing -exact-width floating-point types on a given platform. - -For example, if a platform supports `float32_t` and `float64_t`, -then `float_fast32_t` and `float_fast64_t` will also be supported, etc. - -[endsect] [/section:fastest_typdefs Fastest floating-point `typedef`s] - -[section:greatest_typdefs Greatest-width floating-point typedef] - -The `typedef floatmax_t` designates a floating-point type capable of representing -any value of any floating-point type in a given platform most precisely. - -The greatest-width `typedef` is provided for all platforms, but, of course, the size may vary. - -To provide floating-point [*constants] most precisely representable for a `floatmax_t` type, -use the macro `BOOST_FLOATMAX_C`. - -For example, replace a constant `123.4567890123456789012345678901234567890` with - - BOOST_FLOATMAX_C(123.4567890123456789012345678901234567890) - -If, for example, `floatmax_t` is `float64_t` then the result will be equivalent to a `long double` suffixed with L, -but if `floatmax_t` is `float128_t` then the result will be equivalent to a `quad type` suffixed with Q -(assuming, of course, that `float128_t` (`__float128` or `Quad`) is supported). - -If we display with `max_digits10`, the maximum possibly significant decimal digits: - -[floatmax_widths_1] - -then on a 128-bit platform (GCC 4.8.1 or higher with quadmath): - -[floatmax_widths_2] - -[endsect] [/section:greatest_typdefs Greatest-width floating-point typedef] - -[section:macros Floating-Point Constant Macros] - -All macros of the type `BOOST_FLOAT16_C, BOOST_FLOAT32_C, BOOST_FLOAT64_C, -BOOST_FLOAT80_C, BOOST_FLOAT128_C, ` and `BOOST_FLOATMAX_C` -are always defined after inclusion of ``. - -[cstdfloat_constant_2] - -[tip Boost.Math provides many constants 'built-in', so always use Boost.Math constants if available, for example:] - -[cstdfloat_constant_1] - -from [@../../example/cstdfloat_example.cpp cstdfloat_example.cpp]. - -See the complete list of __constants. - -[endsect] [/section:macros Floating-Point Constant Macros] - -[section:examples Examples] - -[h3:je_lambda Jahnke-Emden-Lambda function] - -The following code uses `` in combination with -`` to compute a simplified -version of the -[@http://mathworld.wolfram.com/LambdaFunction.html Jahnke-Emden-Lambda function]. -Here, we specify a floating-point type with [*exactly 64 bits] (i.e., `float64_t`). -If we were to use, for instance, built-in `double`, -then there would be no guarantee that the code would -behave identically on all platforms. With `float64_t` from -``, however, it is very likely to be identical. - -Using `float64_t`, we know that -this code is as portable as possible and uses a floating-point type -with approximately 15 decimal digits of precision, -regardless of the compiler or version or operating system. - -[cstdfloat_example_1] -[cstdfloat_example_2] -[cstdfloat_example_3] - -For details, see [@../../example/cstdfloat_example.cpp cstdfloat_example.cpp] -- a extensive example program. - -[h3:normal_table Normal distribution table] - -This example shows printing tables of a normal distribution's PDF and CDF, -using `boost::math` implementation of normal distribution. - -A function templated on floating-point type prints a table for a range of standard variate z values. - -The example shows use of the specified-width typedefs to either use a specific width, -or to use the maximum available on the platform, perhaps a high as 128-bit. - -The number of digits displayed is controlled by the precision of the type, -so there are no spurious insignificant decimal digits: - - float_32_t 0 0.39894228 - float_128_t 0 0.398942280401432702863218082711682655 - -Some sample output for two different platforms is appended to the code at -[@../../example/normal_tables.cpp normal_tables.cpp]. - -[normal_table_1] - -[endsect] [/section:examples examples] - -[section:float128_hints Hints on using float128 (and __float128)] - -[h5:different_float128 __float128 versus float128] -* __float128 is the (optionally) compiler supplied hardware type, -it's an C-ish extension to C++ and there is only -minimal support for it in normal C++ -(no IO streams or `numeric_limits` support, -function names in libquadmath all have different names to the -`std::` ones etc.) -So you can program type `__float128` directly, but it's harder work. - -* Type `float128` uses __float128 and makes it C++ and generic code friendly, -with all the usual standard `iostream`, `numeric_limits`, `complex` in namspace `std::` available, -so strongly recommended for C++ use. - -[h5 Hints and tips] - -* Make sure you declare variables with the correct type, here `float128`. -* Make sure that if you pass a variable to a function then it is casted to `float128`. -* Make sure you declare literals with the correct suffix - otherwise -they'll be treated as type `double` with catastrophic loss of precision. -So make sure they have a Q suffix for 128-bit floating-point literals. -* All the std library functions, cmath functions, plus all the constants, and special -functions from Boost.Math should then just work. -* Make sure std lib functions are called [*unqualified] so that the correct -overload is found via __ADL. So write - sqrt(variable) -and not - std::sqrt(variable). -* In general, try not to reinvent stuff - using constants from -Boost.Math is probably less error prone than declaring your own, -likewise the special functions etc. - -Some examples of what can go horribly and silently wrong are at -[@../../example/float128_example.cpp float128_example.cpp]. - -[endsect] [/section:float128_hints Hints on using float128] - -[section:float128 Implementation of Float128 type] - -Since few compilers implement a true 128-bit floating-point, and language features like the suffix Q -(which may need an option `-fext-numeric-literals` to enable), -and C++ Standard library functions are as-yet missing or incomplete in C++11, -this Boost.Math implementation wraps `__float128` provided by the GCC compiler -[@https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html GCC floating-point types] -or the `_Quad` type provided by the Intel compiler. - -This is provided to in order to demonstrate, and users to evaluate, the feasibility and benefits of higher-precision floating-point, -especially to allow use of the full and Boost.Math library of functions and distributions at high precision. - -(It is also possible to use Boost.Math with Boost.Multiprecision decimal and binary, but since these are entirely software solutions, -allowing much higher precision or arbitrary precision, they are likely to be slower). - -We also provide (we believe full) support for `, `, I/O stream operations in ``, and ``. - -As a prototype for a future C++ standard, we place all these in `namespace std`. -This contravenes the existing C++ standard of course, so selecting any compiler that promises to check conformance will fail. - -[tip For GCC, compile with `-std=gnu++11` or `-std=gnu++03` and do not use `-std=stdc++11` or any 'strict' options, as -these turn off full support for `__float128`. These requirements also apply to the Intel compiler on Linux, for -Intel on Windows you need to compile with `-Qoption,cpp,--extended_float_type -DBOOST_MATH_USE_FLOAT128` in order to -activate 128-bit floating point support.] - -The `__float128` type is provided by the [@http://gcc.gnu.org/onlinedocs/libquadmath/ libquadmath library] on GCC or -by Intel's FORTRAN library with Intel C++. THey also provide a full set of `` functions in `namespace std`. - -[h4 Using C __float128 quadmath type] - -[quadmath_snprintf_1] - -The source code is at [@../../example/quadmath_snprintf.c quadmath_snprintf.c]. - -[h4 Using C++ `float128` quadmath type] - -For C++ programs, you will want to use the C++ type `float128` - -See example at [@../../example/cstdfloat_example.cpp cstdfloat_example.cpp]. - -A typical invocation of the compiler is - - g++ -O3 -std=gnu++11 test.cpp -I/c/modular-boost -lquadmath -o test.exe - -[tip If you are trying to use the develop branch of Boost.Math, then make `-I/c/modular-boost/libs/math/include` the [*first] include directory.] - - g++ -O3 -std=gnu++11 test.cpp -I/c/modular-boost/libs/math/include -I/c/modular-boost -lquadmath -o test.exe - -[note So far, the only missing detail that we had noted was in trying to use ``, -for example for `std::cout << typeid<__float_128>.name();`. -`` -Link fails: undefined reference to typeinfo for __float128. -`` -See [@http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43622 GCC Bug 43622 - no C++ typeinfo for __float128]. -But this is reported (Marc Glisse 2015-04-04 ) fixed in GCC 5 (and above). - -For example, with GCC6.1.1 this works as expected to a [*mangled] string name, and output (if possible - not always). -`` -const std::type_info& tifu128 = typeid(__float128); // OK. -//std::cout << tifu128.name() << std::endl; // On GCC, aborts (because not printable string). -//std::cout << typeid(__float128).name() << std::endl; // Aborts - string name cannot be output. - -const std::type_info& tif128 = typeid(float128); // OK. -std::cout << tif128.name() << std::endl; // OK. -std::cout << typeid(float128).name() << std::endl; // OK. - -const std::type_info& tpi = typeid(pi1); // OK GCC 6.1.1 (from GCC 5 according to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43622) -std::cout << tpi.name() << std::endl; // Output mangled name: - -// N5boost14multiprecision6numberINS0_8backends16float128_backendELNS0_26expression_template_optionE0EEE - -`` -] [/note] - -[section:overloading Overloading template functions with float128_t] - -An artifact of providing C++ standard library support for -quadmath may mandate the inclusion of `` -[*before] the inclusion of other headers. - -Consider a function that calls `fabs(x)` and has previously injected `std::fabs()` -into local scope via a `using` directive: - - template - bool unsigned_compare(T a, T b) - { - using std::fabs; - return fabs(a) == fabs(b); - } - -In this function, the correct overload of `fabs` may be found via -[@http://en.wikipedia.org/wiki/Argument-dependent_name_lookup argument-dependent-lookup (ADL)] -or by calling one of the `std::fabs` overloads. There is a key difference between them -however: an overload in the same namespace as T and found via ADL need ['[*not be defined at the -time the function is declared]]. However, all the types declared in `` are -fundamental types, so for these types we are relying on finding an overload declared in namespace `std`. -In that case however, ['[*all such overloads must be declared prior to the definition of function -`unsigned_compare` otherwise they are not considered]]. - -In the event that `` has been included [*after] the -definition of the above function, the correct overload of `fabs`, while present, is simply -not considered as part of the overload set. -So the compiler tries to downcast the `float128_t` argument first to -`long double`, then to `double`, then to `float`; -the compilation fails because the result is ambiguous. -However the compiler error message will appear cruelly inscrutable, -at an apparently irelevant line number and making no mention of `float128`: -the word ['ambiguous] is the clue to what is wrong. - -Provided you `#include ` [*before] the inclusion -of the any header containing generic floating point code (such as other -Boost.Math headers, then the compiler -will know about and use the `std::fabs(std::float128_t)` -that we provide in `#include `. - -[endsect] - -[section:exp_function Exponential function] - -There was a bug when using any quadmath `expq` function on GCC : -[@http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60349 GCC bug #60349] -caused by -[@http://sourceforge.net/p/mingw-w64/bugs/368/ mingw-64 bug #368]. - -To work round this defect, an alternative implementation of 128-bit exp -was temporarily provided by `boost/cstdfloat.hpp`. - -The mingw bug was fixed at 2014-03-12 and GCC 6.1.1 now works as expected. - -[tip It is essential to link to the quadmath library]. - -[endsect] [/section:exp_function exp function] - -[section:typeinfo `typeinfo`] - -For GCC 4.8.1 it was not yet possible to use `typeinfo` for `float_128` on GCC: -see [@http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43622 GCC 43622]. - -So this code (to display the mangled name) -failed to link `undefined reference to typeinfo for __float128` - - std::cout << typeid(boost::float128_t).name() << std::endl; - -This prevent using the existing tests for Boost.Math distributions, -(unless a few lines are commented out) -and if a MACRO BOOST_MATH_INSTRUMENT controlling them is defined -then some diagnostic displays in Boost.Math will not work. - -However this was only used for display purposes -and could be commented out until this was fixed in GCC 5. - -[tip Not all managed names can be [*displayed] using `std::cout`.] - -[endsect] [/section:typeinfo `typeinfo`] - - -[endsect] [/section:float128 Float128 type] - -[/ cstdfloat.qbk - Copyright 2014 Christopher Kormanyos, John Maddock and Paul A. Bristow. - 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). -] - - - - diff --git a/boost/libs/math/doc/cstdfloat/cstdfloat_header.qbk b/boost/libs/math/doc/cstdfloat/cstdfloat_header.qbk deleted file mode 100644 index 2a4d7e9f..00000000 --- a/boost/libs/math/doc/cstdfloat/cstdfloat_header.qbk +++ /dev/null @@ -1,29 +0,0 @@ -[article Standardized Floating-Point typedefs for C and C++ - [id float_t] - [quickbook 1.6] - [copyright 2014 Christopher Kormanyos, John Maddock, Paul A. Bristow] - [license - 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]) - ] - [authors [Kormanyos, Christopher], [Maddock, John], [Bristow, Paul A.] ] - [/last-revision $Date$] - [/version 1.8.3] -] - -[def __IEEE754 [@http://en.wikipedia.org/wiki/IEEE_floating_point IEEE_floating_point]] -[def __N3626 [@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3626.pdf N3626]] -[def __N1703 [@http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1703.pdf N1703]] - -[note A printer-friendly PDF version of this manual is also available.] - -[include cstdfloat.qbk] - -[/ cstdfloat_header.qbk - Copyright 2014 Christopher Kormanyos, John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/cstdfloat/jamfile.v2 b/boost/libs/math/doc/cstdfloat/jamfile.v2 deleted file mode 100644 index f0be5d80..00000000 --- a/boost/libs/math/doc/cstdfloat/jamfile.v2 +++ /dev/null @@ -1,109 +0,0 @@ -# Boost.cstdfloat documentation Jamfile.v2 -# -# Copyright Paul A. Bristow 2014. -# Use, modification and distribution is subject to -# 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) - -# boost-no-inspect - -# This builds a standalone version of the cstdfloat docs -# using the same cstdfloat.qbk called from cstdfloat_header.qbk -# The full math only uses cstdfloat.qbk. - -import modules ; - -path-constant images_location : html ; -path-constant nav_images : html/images ; -path-constant here : . ; -using quickbook ; - -xml cstdfloat : cstdfloat_header.qbk ; - -using boostbook ; - -boostbook standalone - : - cstdfloat - : - - # General settings - # ================= - # Path for links to Boost folder, for example: boost_1_55_0 or boost-trunk, relative to folder /doc/html. - boost.root=../../../../.. - # Path for libraries index: - boost.libraries=../../../../../../libs/libraries.htm - - - # Or a local custom stylesheet: - #html.stylesheet=boostbook.css - html.stylesheet=boostbook.css - - #nav.layout=none # No navigation bar (home, prev, next). - # Defining creates a runtime error: Global parameter nav.layout already defined. - nav.layout=horizontal # to get a horizontal navigation bar (you probably DO want this). - - # Path for links to Boost logo. - #boost.image=Boost # options are: none (no logo), Boost (for boost.png), or your own logo, for example, inspired_by_boost.png - #boost.image.src=boost.png # - #boost.image.w=180 # Width of logo in pixels. (JM has W = 162, h = 46) - #boost.image.h=90 # Height of logo in pixels. - - # Some general style settings: - table.footnote.number.format=1 - footnote.number.format=1 - - # HTML options first: - # Use graphics not text for navigation: - navig.graphics=1 - # How far down we chunk nested sections, basically all of them: - chunk.section.depth=10 - # Don't put the first section on the same page as the TOC: - chunk.first.sections=1 - # How far down sections get TOC's - toc.section.depth=10 - # Max depth in each TOC: - toc.max.depth=4 - # How far down we go with TOC's - generate.section.toc.level=10 - # Index on type: - index.on.type=1 - boost.noexpand.chapter.toc=1 - - #root.filename="sf_dist_and_tools" - #graphicsize.extension=1 - #use.extensions=1 - - # PDF Options: - # TOC Generation: this is needed for FOP-0.9 and later: - fop1.extensions=0 - pdf:xep.extensions=1 - # TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9! - pdf:fop.extensions=0 - pdf:fop1.extensions=0 - # No indent on body text: - pdf:body.start.indent=0pt - # Margin size: - pdf:page.margin.inner=0.5in - # Margin size: - pdf:page.margin.outer=0.5in - # Paper type = A4 - pdf:paper.type=A4 - # Yes, we want graphics for admonishments: - admon.graphics=1 - # Set this one for PDF generation *only*: - # default pnd graphics are awful in PDF form, - # better use SVG's instead: - pdf:admon.graphics.extension=".svg" - pdf:use.role.for.mediaobject=1 - pdf:preferred.mediaobject.role=print - pdf:img.src.path=$(images_location)/ - pdf:draft.mode="no" - pdf:boost.url.prefix=http://www.boost.org/doc/libs/release/libs/math/doc/html - pdf:index.on.type=1 - ; - - -install pdf-install : standalone : PDF . cstdfloat.pdf ; - diff --git a/boost/libs/math/doc/distexplorer/Jamfile.v2 b/boost/libs/math/doc/distexplorer/Jamfile.v2 deleted file mode 100644 index f3189258..00000000 --- a/boost/libs/math/doc/distexplorer/Jamfile.v2 +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright Paul A. Bristow 2008 -# Copyright John Maddock 2008 - -# 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) - -# Reminder: whitespace MUST terminate variable name! -# so space BEFORE ; and : - -# Distexplorer documentation as html from Quickbook. - -# project boost/doc ; - -using quickbook ; - -#path-constant images_location : html ; -# location of SVG images referenced by Quickbook. -# screenshots installed as recomended by Sourceforge. - -xml distexplorer - : - distexplorer.qbk - : -; - -# import boostbook : boostbook ; - -boostbook standalone - : - distexplorer - : - # Path for links to Boost: - boost.root=../../../../.. - - # Some general style settings: - table.footnote.number.format=1 - footnote.number.format=1 - - # HTML options first: - # Use graphics not text for navigation: - navig.graphics=1 - # How far down we chunk nested sections, basically all of them: - chunk.section.depth=10 - # Don't put the first section on the same page as the TOC: - chunk.first.sections=1 - # How far down sections get TOC's - toc.section.depth=10 - # Max depth in each TOC: - toc.max.depth=4 - # How far down we go with TOC's - generate.section.toc.level=10 - #root.filename="distexplorer" -; - - diff --git a/boost/libs/math/doc/distexplorer/distexplorer.qbk b/boost/libs/math/doc/distexplorer/distexplorer.qbk deleted file mode 100644 index 7dbe951b..00000000 --- a/boost/libs/math/doc/distexplorer/distexplorer.qbk +++ /dev/null @@ -1,105 +0,0 @@ -[article Statistical Distribution Explorer - [quickbook 1.4] - [copyright 2008 Paul A. Bristow, John Maddock] - [license - 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]) - ] - [authors [Bristow, Paul A.], [Maddock, John]] - [category math] - [purpose mathematics] - [/last-revision $Date$] -] - -A Windows utility to show the properties of statistical distributions -using parameters provided interactively by the user. - -The distributions provided are: - -*bernoulli -*beta_distribution -*binomial_distribution -*cauchy -*chi_squared -*exponential -*extreme_value -*fisher_f -*gamma_distribution -*lognormal_distribution -*negative_binomial_distribution -*normal_distribution -*pareto -*poisson -*rayleigh -*students_t -*triangular -*uniform -*weibull - -Properties of distributions computed are: - -*mean -*mode -*median -*variance -*standard deviation -*coefficient of variation, -*skewness -*kurtosis -*excess -*range supported - -Calculated, from values provided, are: - -*probability density (or mass) function (PDF) -*cumulative distribution function (CDF), and complement -*Quantiles (percentiles or fractiles) are calculated for typical risk (alpha) probabilities (0.001, 0.01, 0.5, 0.1, 0.333) -and for additional probabilities provided by the user. - -Results can be saved to text files using Save or SaveAs. -All the values on the four tabs are output to the file chosen, -and are tab separated to assist input to other programs, -for example, spreadsheets or text editors. - -Note: Excel (for example), only shows 10 decimal digits, by default: -to display the maximum possible precision (abotu 15 decimal digits), -it is necessary to format all cells to display this precision. -Although unusually accurate, not all values computed by Distexplorer will be as accurate as this. -Values shown as NaN cannot be calculated from the value(s) given, -most commonly because the value input is outside the range for the distribution. - -For more information, including downloads, see - -[@http://distexplorer.sourceforge.net/ Distexplorer at Sourceforge] - -This Microsoft Windows 32 package distribution.exe -was generated from a C# program -and uses a boost_math.dll generated using the -Boost.Math C++ source code from the Boost.Math Toolkit, compiled in CLI mode, -containing the underlying statistical distribution classes and functions. - -All source code is freely available for view and use under the -[@http://www.boost.org/LICENSE_1_0.txt Boost Open Source License]. - -[@https://svn.boost.org/svn/boost/sandbox\math_toolkit\libs\math\dot_net_example -Math Toolkit C++ source code] -to produce boost_math.dll is in the most recent [@http://www.boost.org Boost] release, initially 1.35.0. - -It is distributed as a single Windows Installer package Setupdistex.msi. -Unzip the distexplorer.zip to a temporary location of your choice and run setup.exe. - -(Note that .NET framework 2.0 and VCredist are requirements for this program. -Most recent and updated Windows environments will already have these, -but they are quickly, easily and safely installed from the Microsoft site if required.) - -(The package cannot be run on other platforms at present but it should be possible -to build an equivalent utility on any C/C++ platform if anyone would like to undertake this task.) - -[/ Distexplorer.qbk - Copyright 2008 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distexplorer/html/index.html b/boost/libs/math/doc/distexplorer/html/index.html deleted file mode 100644 index 3c537997..00000000 --- a/boost/libs/math/doc/distexplorer/html/index.html +++ /dev/null @@ -1,216 +0,0 @@ - - - -Statistical Distribution Explorer - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-
-
-
-

-Statistical Distribution Explorer

-
-

-Paul A. Bristow -

-

-John Maddock -

-
-
-
-

- 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) -

-
-
-
-
-

- A Windows utility to show the properties of statistical distributions using parameters - provided interactively by the user. -

-

- The distributions provided are: -

-
    -
  • - bernoulli -
  • -
  • - beta_distribution -
  • -
  • - binomial_distribution -
  • -
  • - cauchy -
  • -
  • - chi_squared -
  • -
  • - exponential -
  • -
  • - extreme_value -
  • -
  • - fisher_f -
  • -
  • - gamma_distribution -
  • -
  • - lognormal_distribution -
  • -
  • - negative_binomial_distribution -
  • -
  • - normal_distribution -
  • -
  • - pareto -
  • -
  • - poisson -
  • -
  • - rayleigh -
  • -
  • - students_t -
  • -
  • - triangular -
  • -
  • - uniform -
  • -
  • - weibull -
  • -
-

- Properties of distributions computed are: -

-
    -
  • - mean -
  • -
  • - mode -
  • -
  • - median -
  • -
  • - variance -
  • -
  • - standard deviation -
  • -
  • - coefficient of variation, -
  • -
  • - skewness -
  • -
  • - kurtosis -
  • -
  • - excess -
  • -
  • - range supported -
  • -
-

- Calculated, from values provided, are: -

-
    -
  • - probability density (or mass) function (PDF) -
  • -
  • - cumulative distribution function (CDF), and complement -
  • -
  • - Quantiles (percentiles) are calculated for typical risk (alpha) probabilities - (0.001, 0.01, 0.5, 0.1, 0.333) and for additional probabilities provided - by the user. -
  • -
-

- Results can be saved to text files using Save or SaveAs. All the values on the - four tabs are output to the file chosen, and are tab separated to assist input - to other programs, for example, spreadsheets or text editors. -

-

- Note: Excel (for example), only shows 10 decimal digits, by default: to display - the maximum possible precision (abotu 15 decimal digits), it is necessary to - format all cells to display this precision. Although unusually accurate, not - all values computed by Distexplorer will be as accurate as this. Values shown - as NaN cannot be calculated from the value(s) given, most commonly because the - value input is outside the range for the distribution. -

-

- For more information, including downloads, see -

-

- Distexplorer at Sourceforge -

-

- This Microsoft Windows 32 package distribution.exe was generated from a C# program - and uses a boost_math.dll generated using the Boost.Math C++ source code from - the Boost.Math Toolkit, compiled in CLI mode, containing the underlying statistical - distribution classes and functions. -

-

- All source code is freely available for view and use under the Boost - Open Source License. -

-

- Math - Toolkit C++ source code to produce boost_math.dll is in the most recent - Boost release, initially 1.35.0. -

-

- It is distributed as a single Windows Installer package Setupdistex.msi. Unzip - the distexplorer.zip to a temporary location of your choice and run setup.exe. -

-

- (Note that .NET framework 2.0 and VCredist are requirements for this program. - Most recent and updated Windows environments will already have these, but they - are quickly, easily and safely installed from the Microsoft site if required.) -

-

- (The package cannot be run on other platforms at present but it should be possible - to build an equivalent utility on any C/C++ platform if anyone would like to - undertake this task.) -

-
- - - -

Last revised: July 01, 2010 at 21:45:23 GMT

-
-
- - diff --git a/boost/libs/math/doc/distributions/arcsine.qbk b/boost/libs/math/doc/distributions/arcsine.qbk deleted file mode 100644 index 8dc731e7..00000000 --- a/boost/libs/math/doc/distributions/arcsine.qbk +++ /dev/null @@ -1,288 +0,0 @@ -[section:arcine_dist Arcsine Distribution] - -[import ../../example/arcsine_example.cpp] [/ for arcsine snips below] - - -``#include `` - - namespace boost{ namespace math{ - - template - class arcsine_distribution; - - typedef arcsine_distribution arcsine; // double precision standard arcsine distribution [0,1]. - - template - class arcsine_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - // Constructor from two range parameters, x_min and x_max: - arcsine_distribution(RealType x_min, RealType x_max); - - // Range Parameter accessors: - RealType x_min() const; - RealType x_max() const; - }; - }} // namespaces - -The class type `arcsine_distribution` represents an -[@http://en.wikipedia.org/wiki/arcsine_distribution arcsine] -[@http://en.wikipedia.org/wiki/Probability_distribution probability distribution function]. -The arcsine distribution is named because its CDF uses the inverse sin[super -1] or arcsine. - -This is implemented as a generalized version with support from ['x_min] to ['x_max] -providing the 'standard arcsine distribution' as default with ['x_min = 0] and ['x_max = 1]. -(A few make other choices for 'standard'). - -The arcsine distribution is generalized to include any bounded support ['a <= x <= b] by -[@http://reference.wolfram.com/language/ref/ArcSinDistribution.html Wolfram] and -[@http://en.wikipedia.org/wiki/arcsine_distribution Wikipedia], -but also using ['location] and ['scale] parameters by -[@http://www.math.uah.edu/stat/index.html Virtual Laboratories in Probability and Statistics] -[@http://www.math.uah.edu/stat/special/Arcsine.html Arcsine distribution]. -The end-point version is simpler and more obvious, so we implement that. -If desired, [@http://en.wikipedia.org/wiki/arcsine_distribution this] -outlines how the __beta_distrib can be used to add a shape factor. - -The [@http://en.wikipedia.org/wiki/Probability_density_function probability density function PDF] -for the [@http://en.wikipedia.org/wiki/arcsine_distribution arcsine distribution] -defined on the interval \[['x_min, x_max]\] is given by: - -[figspace] [figspace] f(x; x_min, x_max) = 1 /([pi][sdot][sqrt]((x - x_min)[sdot](x_max - x_min)) - -For example, __WolframAlpha arcsine distribution, from input of - - N[PDF[arcsinedistribution[0, 1], 0.5], 50] - -computes the PDF value - - 0.63661977236758134307553505349005744813783858296183 - -The Probability Density Functions (PDF) of generalized arcsine distributions are symmetric U-shaped curves, -centered on ['(x_max - x_min)/2], -highest (infinite) near the two extrema, and quite flat over the central region. - -If random variate ['x] is ['x_min] or ['x_max], then the PDF is infinity. -If random variate ['x] is ['x_min] then the CDF is zero. -If random variate ['x] is ['x_max] then the CDF is unity. - -The 'Standard' (0, 1) arcsine distribution is shown in blue -and some generalized examples with other ['x] ranges. - -[graph arcsine_pdf] - -The Cumulative Distribution Function CDF is defined as - -[figspace] [figspace] F(x) = 2[sdot]arcsin([sqrt]((x-x_min)/(x_max - x))) / [pi] - -[graph arcsine_cdf] - -[h5 Constructor] - - arcsine_distribution(RealType x_min, RealType x_max); - -constructs an arcsine distribution with range parameters ['x_min] and ['x_max]. - -Requires ['x_min < x_max], otherwise __domain_error is called. - -For example: - - arcsine_distribution<> myarcsine(-2, 4); - -constructs an arcsine distribution with ['x_min = -2] and ['x_max = 4]. - -Default values of ['x_min = 0] and ['x_max = 1] and a ` typedef arcsine_distribution arcsine;` mean that - - arcsine as; - -constructs a 'Standard 01' arcsine distribution. - -[h5 Parameter Accessors] - - RealType x_min() const; - RealType x_max() const; - -Return the parameter ['x_min] or ['x_max] from which this distribution was constructed. - -So, for example: - -[arcsine_snip_8] - -[h4 Non-member Accessor Functions] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The formulae for calculating these are shown in the table below, and at -[@http://mathworld.wolfram.com/arcsineDistribution.html Wolfram Mathworld]. - -[note There are always [*two] values for the [*mode], at ['x_min] and at ['x_max], default 0 and 1, -so instead we raise the exception __domain_error. -At these extrema, the PDFs are infinite, and the CDFs zero or unity.] - -[h4 Applications] - -The arcsine distribution is useful to describe -[@http://en.wikipedia.org/wiki/Random_walk Random walks], (including drunken walks) -[@http://en.wikipedia.org/wiki/Brownian_motion Brownian motion], -[@http://en.wikipedia.org/wiki/Wiener_process Weiner processes], -[@http://en.wikipedia.org/wiki/Bernoulli_trial Bernoulli trials], -and their appplication to solve stock market and other -[@http://en.wikipedia.org/wiki/Gambler%27s_ruin ruinous gambling games]. - -The random variate ['x] is constrained to ['x_min] and ['x_max], (for our 'standard' distribution, 0 and 1), -and is usually some fraction. For any other ['x_min] and ['x_max] a fraction can be obtained from ['x] using - -[sixemspace] fraction = (x - x_min) / (x_max - x_min) - -The simplest example is tossing heads and tails with a fair coin and modelling the risk of losing, or winning. -Walkers (molecules, drunks...) moving left or right of a centre line are another common example. - -The random variate ['x] is the fraction of time spent on the 'winning' side. -If half the time is spent on the 'winning' side (and so the other half on the 'losing' side) then ['x = 1/2]. - -For large numbers of tosses, this is modelled by the (standard \[0,1\]) arcsine distribution, -and the PDF can be calculated thus: - -[arcsine_snip_2] - -From the plot of PDF, it is clear that ['x] = [frac12] is the [*minimum] of the curve, -so this is the [*least likely] scenario. -(This is highly counter-intuitive, considering that fair tosses must [*eventually] become equal. -It turns out that ['eventually] is not just very long, but [*infinite]!). - -The [*most likely] scenarios are towards the extrema where ['x] = 0 or ['x] = 1. - -If fraction of time on the left is a [frac14], -it is only slightly more likely because the curve is quite flat bottomed. - -[arcsine_snip_3] - -If we consider fair coin-tossing games being played for 100 days -(hypothetically continuously to be 'at-limit') -the person winning after day 5 will not change in fraction 0.144 of the cases. - -We can easily compute this setting ['x] = 5./100 = 0.05 - -[arcsine_snip_4] - -Similarly, we can compute from a fraction of 0.05 /2 = 0.025 -(halved because we are considering both winners and losers) -corresponding to 1 - 0.025 or 97.5% of the gamblers, (walkers, particles...) on the [*same side] of the origin - -[arcsine_snip_5] - -(use of the complement gives a bit more clarity, -and avoids potential loss of accuracy when ['x] is close to unity, see __why_complements). - -[arcsine_snip_6] - -or we can reverse the calculation by assuming a fraction of time on one side, say fraction 0.2, - -[arcsine_snip_7] - -[*Summary]: Every time we toss, the odds are equal, -so on average we have the same change of winning and losing. - -But this is [*not true] for an an individual game where one will be [*mostly in a bad or good patch]. - -This is quite counter-intuitive to most people, but the mathematics is clear, -and gamblers continue to provide proof. - -[*Moral]: if you in a losing patch, leave the game. -(Because the odds to recover to a good patch are poor). - -[*Corollary]: Quit while you are ahead? - -A working example is at [@../../example/arcsine_example.cpp arcsine_example.cpp] -including sample output . - -[h4 Related distributions] - -The arcsine distribution with ['x_min = 0] and ['x_max = 1] is special case of the -__beta_distrib with [alpha] = 1/2 and [beta] = 1/2. - -[h4 Accuracy] - -This distribution is implemented using sqrt, sine, cos and arc sine and cos trigonometric functions -which are normally accurate to a few __epsilon. -But all values suffer from [@http://en.wikipedia.org/wiki/Loss_of_significance loss of significance or cancellation error] -for values of ['x] close to ['x_max]. -For example, for a standard [0, 1] arcsine distribution ['as], the pdf is symmetric about random variate ['x = 0.5] -so that one would expect `pdf(as, 0.01) == pdf(as, 0.99)`. But as ['x] nears unity, there is increasing -[@http://en.wikipedia.org/wiki/Loss_of_significance loss of significance]. -To counteract this, the complement versions of CDF and quantile -are implemented with alternative expressions using ['cos[super -1]] instead of ['sin[super -1]]. -Users should see __why_complements for guidance on when to avoid loss of accuracy by using complements. - -[h4 Testing] -The results were tested against a few accurate spot values computed by __WolframAlpha, for example: - - N[PDF[arcsinedistribution[0, 1], 0.5], 50] - 0.63661977236758134307553505349005744813783858296183 - -[h4 Implementation] - -In the following table ['a] and ['b] are the parameters ['x_min][space] and ['x_max], -['x] is the random variable, ['p] is the probability and its complement ['q = 1-p]. - -[table -[[Function][Implementation Notes]] -[[support] [x [isin] \[a, b\], default x [isin] \[0, 1\] ]] -[[pdf] [f(x; a, b) = 1/([pi][sdot][sqrt](x - a)[sdot](b - x))]] -[[cdf] [F(x) = 2/[pi][sdot]sin[super-1]([sqrt](x - a) / (b - a) ) ]] -[[cdf of complement] [2/([pi][sdot]cos[super-1]([sqrt](x - a) / (b - a)))]] -[[quantile] [-a[sdot]sin[super 2]([frac12][pi][sdot]p) + a + b[sdot]sin[super 2]([frac12][pi][sdot]p)]] -[[quantile from the complement] [-a[sdot]cos[super 2]([frac12][pi][sdot]p) + a + b[sdot]cos[super 2]([frac12][pi][sdot]q)]] -[[mean] [[frac12](a+b)]] -[[median] [[frac12](a+b)]] -[[mode] [ x [isin] \[a, b\], so raises domain_error (returning NaN).]] -[[variance] [(b - a)[super 2] / 8]] -[[skewness] [0]] -[[kurtosis excess] [ -3/2 ]] -[[kurtosis] [kurtosis_excess + 3]] -] - -The quantile was calculated using an expression obtained by using __WolframAlpha -to invert the formula for the CDF thus - - solve [p - 2/pi sin^-1(sqrt((x-a)/(b-a))) = 0, x] - -which was interpreted as - - Solve[p - (2 ArcSin[Sqrt[(-a + x)/(-a + b)]])/Pi == 0, x, MaxExtraConditions -> Automatic] - -and produced the resulting expression - - x = -a sin^2((pi p)/2)+a+b sin^2((pi p)/2) - -Thanks to Wolfram for providing this facility. - -[h4 References] - -* [@http://en.wikipedia.org/wiki/arcsine_distribution Wikipedia arcsine distribution] -* [@http://en.wikipedia.org/wiki/Beta_distribution Wikipedia Beta distribution] -* [@http://mathworld.wolfram.com/BetaDistribution.html Wolfram MathWorld] -* [@http://www.wolframalpha.com/ Wolfram Alpha] - -[h4 Sources] - -*[@http://estebanmoro.org/2009/04/the-probability-of-going-through-a-bad-patch The probability of going through a bad patch] Esteban Moro's Blog. -*[@http://www.gotohaggstrom.com/What%20do%20schmucks%20and%20the%20arc%20sine%20law%20have%20in%20common.pdf What soschumcks and the arc sine have in common] Peter Haggstrom. -*[@http://www.math.uah.edu/stat/special/Arcsine.html arcsine distribution]. -*[@http://reference.wolfram.com/language/ref/ArcSinDistribution.html Wolfram reference arcsine examples]. -*[@http://www.math.harvard.edu/library/sternberg/slides/1180908.pdf Shlomo Sternberg slides]. - - -[endsect] [/section:arcsine_dist arcsine] - -[/ arcsine.qbk - Copyright 2014 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/distributions/background.qbk b/boost/libs/math/doc/distributions/background.qbk deleted file mode 100644 index 09cb043b..00000000 --- a/boost/libs/math/doc/distributions/background.qbk +++ /dev/null @@ -1,84 +0,0 @@ -[section:variates Random Variates and Distribution Parameters] - -[@http://en.wikipedia.org/wiki/Random_variate Random variates] -and [@http://en.wikipedia.org/wiki/Parameter distribution parameters] -are conventionally distinguished (for example in Wikipedia and Wolfram MathWorld -by placing a semi-colon after the __random_variate (whose value you 'choose'), -to separate the variate from the parameter(s) that defines the shape of the distribution. - -For example, the binomial distribution has two parameters: -n (the number of trials) and p (the probability of success on one trial). -It also has the __random_variate /k/: the number of successes observed. -This means the probability density\/mass function (pdf) is written as ['f(k; n, p)]. - -Translating this into code the `binomial_distribution` constructor -therefore has two parameters: - - binomial_distribution(RealType n, RealType p); - -While the function `pdf` has one argument specifying the distribution type -(which includes its parameters, if any), -and a second argument for the __random_variate. So taking our binomial distribution -example, we would write: - - pdf(binomial_distribution(n, p), k); - -[endsect] - -[section:dist_params Discrete Probability Distributions] - -Note that the [@http://en.wikipedia.org/wiki/Discrete_probability_distribution -discrete distributions], including the binomial, negative binomial, Poisson & Bernoulli, -are all mathematically defined as discrete functions: -only integral values of the __random_variate are envisaged -and the functions are only defined at these integral values. -However because the method of calculation often uses continuous functions, -it is convenient to treat them as if they were continuous functions, -and permit non-integral values of their parameters. - -To enforce a strict mathematical model, -users may use floor or ceil functions on the __random_variate, -prior to calling the distribution function, to enforce integral values. - -For similar reasons, in continuous distributions, parameters like degrees of freedom -that might appear to be integral, are treated as real values -(and are promoted from integer to floating-point if necessary). -In this case however, that there are a small number of situations where non-integral -degrees of freedom do have a genuine meaning. - -Generally speaking there is no loss of performance from allowing real-values -parameters: the underlying special functions contain optimizations for -integer-valued arguments when applicable. - -[caution -The quantile function of a discrete distribution will by -default return an integer result that has been -/rounded outwards/. That is to say lower quantiles (where the probability is -less than 0.5) are rounded downward, and upper quantiles (where the probability -is greater than 0.5) are rounded upwards. This behaviour -ensures that if an X% quantile is requested, then /at least/ the requested -coverage will be present in the central region, and /no more than/ -the requested coverage will be present in the tails. - -This behaviour can be changed so that the quantile functions are rounded -differently, or even return a real-valued result using -[link math_toolkit.pol_overview Policies]. It is strongly -recommended that you read the tutorial -[link math_toolkit.pol_tutorial.understand_dis_quant -Understanding Quantiles of Discrete Distributions] before -using the quantile function on a discrete distribution. The -[link math_toolkit.pol_ref.discrete_quant_ref reference docs] -describe how to change the rounding policy -for these distributions. -] - -[endsect] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/distributions/bernoulli.qbk b/boost/libs/math/doc/distributions/bernoulli.qbk deleted file mode 100644 index ae9c577b..00000000 --- a/boost/libs/math/doc/distributions/bernoulli.qbk +++ /dev/null @@ -1,118 +0,0 @@ -[section:bernoulli_dist Bernoulli Distribution] - -``#include `` - - namespace boost{ namespace math{ - template - class bernoulli_distribution; - - typedef bernoulli_distribution<> bernoulli; - - template - class bernoulli_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - bernoulli_distribution(RealType p); // Constructor. - // Accessor function. - RealType success_fraction() const - // Probability of success (as a fraction). - }; - }} // namespaces - -The Bernoulli distribution is a discrete distribution of the outcome -of a single trial with only two results, 0 (failure) or 1 (success), -with a probability of success p. - -The Bernoulli distribution is the simplest building block -on which other discrete distributions of -sequences of independent Bernoulli trials can be based. - -The Bernoulli is the binomial distribution (k = 1, p) with only one trial. - -[@http://en.wikipedia.org/wiki/Probability_density_function probability density function pdf] -f(0) = 1 - p, f(1) = p. -[@http://en.wikipedia.org/wiki/Cumulative_Distribution_Function Cumulative distribution function] -D(k) = if (k == 0) 1 - p else 1. - -The following graph illustrates how the -[@http://en.wikipedia.org/wiki/Probability_density_function probability density function pdf] -varies with the outcome of the single trial: - -[graph bernoulli_pdf] - -and the [@http://en.wikipedia.org/wiki/Cumulative_Distribution_Function Cumulative distribution function] - -[graph bernoulli_cdf] - -[h4 Member Functions] - - bernoulli_distribution(RealType p); - -Constructs a [@http://en.wikipedia.org/wiki/bernoulli_distribution -bernoulli distribution] with success_fraction /p/. - - RealType success_fraction() const - -Returns the /success_fraction/ parameter of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain of the random variable is 0 and 1, -and the useful supported range is only 0 or 1. - -Outside this range, functions are undefined, or may throw domain_error exception -and make an error message available. - -[h4 Accuracy] - -The Bernoulli distribution is implemented with simple arithmetic operators -and so should have errors within an epsilon or two. - -[h4 Implementation] - -In the following table /p/ is the probability of success and /q = 1-p/. -/k/ is the random variate, either 0 or 1. - -[note The Bernoulli distribution is implemented here as a /strict discrete/ distribution. -If a generalised version, allowing k to be any real, is required then -the binomial distribution with a single trial should be used, for example: - -`binomial_distribution(1, 0.25)` -] - -[table -[[Function][Implementation Notes]] -[[Supported range][{0, 1}]] -[[pdf][Using the relation: pdf = 1 - p for k = 0, else p ]] -[[cdf][Using the relation: cdf = 1 - p for k = 0, else 1]] -[[cdf complement][q = 1 - p]] -[[quantile][if x <= (1-p) 0 else 1]] -[[quantile from the complement][if x <= (1-p) 1 else 0]] -[[mean][p]] -[[variance][p * (1 - p)]] -[[mode][if (p < 0.5) 0 else 1]] -[[skewness][(1 - 2 * p) / sqrt(p * q)]] -[[kurtosis][6 * p * p - 6 * p +1/ p * q]] -[[kurtosis excess][kurtosis -3]] -] - -[h4 References] -* [@http://en.wikipedia.org/wiki/Bernoulli_distribution Wikpedia Bernoulli distribution] -* [@http://mathworld.wolfram.com/BernoulliDistribution.html Weisstein, Eric W. "Bernoulli Distribution." From MathWorld--A Wolfram Web Resource.] - -[endsect] [/section:bernoulli_dist bernoulli] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/beta.qbk b/boost/libs/math/doc/distributions/beta.qbk deleted file mode 100644 index 97ca017f..00000000 --- a/boost/libs/math/doc/distributions/beta.qbk +++ /dev/null @@ -1,280 +0,0 @@ -[section:beta_dist Beta Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class beta_distribution; - - // typedef beta_distribution beta; - // Note that this is deliberately NOT provided, - // to avoid a clash with the function name beta. - - template - class beta_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - // Constructor from two shape parameters, alpha & beta: - beta_distribution(RealType a, RealType b); - - // Parameter accessors: - RealType alpha() const; - RealType beta() const; - - // Parameter estimators of alpha or beta from mean and variance. - static RealType find_alpha( - RealType mean, // Expected value of mean. - RealType variance); // Expected value of variance. - - static RealType find_beta( - RealType mean, // Expected value of mean. - RealType variance); // Expected value of variance. - - // Parameter estimators from - // either alpha or beta, and x and probability. - - static RealType find_alpha( - RealType beta, // from beta. - RealType x, // x. - RealType probability); // cdf - - static RealType find_beta( - RealType alpha, // alpha. - RealType x, // probability x. - RealType probability); // probability cdf. - }; - - }} // namespaces - -The class type `beta_distribution` represents a -[@http://en.wikipedia.org/wiki/Beta_distribution beta ] -[@http://en.wikipedia.org/wiki/Probability_distribution probability distribution function]. - -The [@http://mathworld.wolfram.com/BetaDistribution.htm beta distribution ] -is used as a [@http://en.wikipedia.org/wiki/Prior_distribution prior distribution] -for binomial proportions in -[@http://mathworld.wolfram.com/BayesianAnalysis.html Bayesian analysis]. - -See also: -[@http://documents.wolfram.com/calculationcenter/v2/Functions/ListsMatrices/Statistics/BetaDistribution.html beta distribution] -and [@http://en.wikipedia.org/wiki/Bayesian_statistics Bayesian statistics]. - -How the beta distribution is used for -[@http://home.uchicago.edu/~grynav/bayes/ABSLec5.ppt -Bayesian analysis of one parameter models] -is discussed by Jeff Grynaviski. - -The [@http://en.wikipedia.org/wiki/Probability_density_function probability density function PDF] -for the [@http://en.wikipedia.org/wiki/Beta_distribution beta distribution] -defined on the interval \[0,1\] is given by: - -f(x;[alpha],[beta]) = x[super[alpha] - 1] (1 - x)[super[beta] -1] / B([alpha], [beta]) - -where B([alpha], [beta]) is the -[@http://en.wikipedia.org/wiki/Beta_function beta function], -implemented in this library as __beta. Division by the beta function -ensures that the pdf is normalized to the range zero to unity. - -The following graph illustrates examples of the pdf for various values -of the shape parameters. Note the [alpha] = [beta] = 2 (blue line) -is dome-shaped, and might be approximated by a symmetrical triangular -distribution. - -[graph beta_pdf] - -If [alpha] = [beta] = 1, then it is a __space -[@http://en.wikipedia.org/wiki/Uniform_distribution_%28continuous%29 uniform distribution], -equal to unity in the entire interval x = 0 to 1. -If [alpha] __space and [beta] __space are < 1, then the pdf is U-shaped. -If [alpha] != [beta], then the shape is asymmetric -and could be approximated by a triangle -whose apex is away from the centre (where x = half). - -[h4 Member Functions] - -[h5 Constructor] - - beta_distribution(RealType alpha, RealType beta); - -Constructs a beta distribution with shape parameters /alpha/ and /beta/. - -Requires alpha,beta > 0,otherwise __domain_error is called. Note that -technically the beta distribution is defined for alpha,beta >= 0, but -it's not clear whether any program can actually make use of that latitude -or how many of the non-member functions can be usefully defined in that case. -Therefore for now, we regard it as an error if alpha or beta is zero. - -For example: - - beta_distribution<> mybeta(2, 5); - -Constructs a the beta distribution with alpha=2 and beta=5 (shown in yellow -in the graph above). - -[h5 Parameter Accessors] - - RealType alpha() const; - -Returns the parameter /alpha/ from which this distribution was constructed. - - RealType beta() const; - -Returns the parameter /beta/ from which this distribution was constructed. - -So for example: - - beta_distribution<> mybeta(2, 5); - assert(mybeta.alpha() == 2.); // mybeta.alpha() returns 2 - assert(mybeta.beta() == 5.); // mybeta.beta() returns 5 - -[h4 Parameter Estimators] - -Two pairs of parameter estimators are provided. - -One estimates either [alpha] __space or [beta] __space -from presumed-known mean and variance. - -The other pair estimates either [alpha] __space or [beta] __space from -the cdf and x. - -It is also possible to estimate [alpha] __space and [beta] __space from -'known' mode & quantile. For example, calculators are provided by the -[@http://www.ausvet.com.au/pprev/content.php?page=PPscript -Pooled Prevalence Calculator] and -[@http://www.epi.ucdavis.edu/diagnostictests/betabuster.html Beta Buster] -but this is not yet implemented here. - - static RealType find_alpha( - RealType mean, // Expected value of mean. - RealType variance); // Expected value of variance. - -Returns the unique value of [alpha][space] that corresponds to a -beta distribution with mean /mean/ and variance /variance/. - - static RealType find_beta( - RealType mean, // Expected value of mean. - RealType variance); // Expected value of variance. - -Returns the unique value of [beta][space] that corresponds to a -beta distribution with mean /mean/ and variance /variance/. - - static RealType find_alpha( - RealType beta, // from beta. - RealType x, // x. - RealType probability); // probability cdf - -Returns the value of [alpha][space] that gives: -`cdf(beta_distribution(alpha, beta), x) == probability`. - - static RealType find_beta( - RealType alpha, // alpha. - RealType x, // probability x. - RealType probability); // probability cdf. - -Returns the value of [beta][space] that gives: -`cdf(beta_distribution(alpha, beta), x) == probability`. - -[h4 Non-member Accessor Functions] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The formulae for calculating these are shown in the table below, and at -[@http://mathworld.wolfram.com/BetaDistribution.html Wolfram Mathworld]. - -[h4 Applications] - -The beta distribution can be used to model events constrained -to take place within an interval defined by a minimum and maximum value: -so it is used in project management systems. - -It is also widely used in [@http://en.wikipedia.org/wiki/Bayesian_inference Bayesian statistical inference]. - -[h4 Related distributions] - -The beta distribution with both [alpha] __space and [beta] = 1 follows a -[@http://en.wikipedia.org/wiki/Uniform_distribution_%28continuous%29 uniform distribution]. - -The [@http://en.wikipedia.org/wiki/Triangular_distribution triangular] -is used when less precise information is available. - -The [@http://en.wikipedia.org/wiki/Binomial_distribution binomial distribution] -is closely related when [alpha] __space and [beta] __space are integers. - -With integer values of [alpha] __space and [beta] __space the distribution B(i, j) is -that of the j-th highest of a sample of i + j + 1 independent random variables -uniformly distributed between 0 and 1. -The cumulative probability from 0 to x is thus -the probability that the j-th highest value is less than x. -Or it is the probability that at least i of the random variables are less than x, -a probability given by summing over the __binomial_distrib -with its p parameter set to x. - -[h4 Accuracy] - -This distribution is implemented using the -[link math_toolkit.sf_beta.beta_function beta functions] __beta and -[link math_toolkit.sf_beta.ibeta_function incomplete beta functions] __ibeta and __ibetac; -please refer to these functions for information on accuracy. - -[h4 Implementation] - -In the following table /a/ and /b/ are the parameters [alpha][space] and [beta], -/x/ is the random variable, /p/ is the probability and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf] - [f(x;[alpha],[beta]) = x[super[alpha] - 1] (1 - x)[super[beta] -1] / B([alpha], [beta]) - - Implemented using __ibeta_derivative(a, b, x).]] - -[[cdf][Using the incomplete beta function __ibeta(a, b, x)]] -[[cdf complement][__ibetac(a, b, x)]] -[[quantile][Using the inverse incomplete beta function __ibeta_inv(a, b, p)]] -[[quantile from the complement][__ibetac_inv(a, b, q)]] -[[mean][`a/(a+b)`]] -[[variance][`a * b / (a+b)^2 * (a + b + 1)`]] -[[mode][`(a-1) / (a + b - 2)`]] -[[skewness][`2 (b-a) sqrt(a+b+1)/(a+b+2) * sqrt(a * b)`]] -[[kurtosis excess][ [equation beta_dist_kurtosis] ]] -[[kurtosis][`kurtosis + 3`]] -[[parameter estimation][ ]] -[[alpha - - from mean and variance][`mean * (( (mean * (1 - mean)) / variance)- 1)`]] -[[beta - - from mean and variance][`(1 - mean) * (((mean * (1 - mean)) /variance)-1)`]] -[[The member functions `find_alpha` and `find_beta` - - from cdf and probability x - - and *either* `alpha` or `beta`] - [Implemented in terms of the inverse incomplete beta functions - -__ibeta_inva, and __ibeta_invb respectively.]] -[[`find_alpha`][`ibeta_inva(beta, x, probability)`]] -[[`find_beta`][`ibeta_invb(alpha, x, probability)`]] -] - -[h4 References] - -[@http://en.wikipedia.org/wiki/Beta_distribution Wikipedia Beta distribution] - -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda366h.htm NIST Exploratory Data Analysis] - -[@http://mathworld.wolfram.com/BetaDistribution.html Wolfram MathWorld] - -[endsect][/section:beta_dist beta] - -[/ beta.qbk - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/distributions/binomial.qbk b/boost/libs/math/doc/distributions/binomial.qbk deleted file mode 100644 index eae3e831..00000000 --- a/boost/libs/math/doc/distributions/binomial.qbk +++ /dev/null @@ -1,404 +0,0 @@ -[section:binomial_dist Binomial Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class binomial_distribution; - - typedef binomial_distribution<> binomial; - - template - class binomial_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - static const ``['unspecified-type]`` clopper_pearson_exact_interval; - static const ``['unspecified-type]`` jeffreys_prior_interval; - - // construct: - binomial_distribution(RealType n, RealType p); - - // parameter access:: - RealType success_fraction() const; - RealType trials() const; - - // Bounds on success fraction: - static RealType find_lower_bound_on_p( - RealType trials, - RealType successes, - RealType probability, - ``['unspecified-type]`` method = clopper_pearson_exact_interval); - static RealType find_upper_bound_on_p( - RealType trials, - RealType successes, - RealType probability, - ``['unspecified-type]`` method = clopper_pearson_exact_interval); - - // estimate min/max number of trials: - static RealType find_minimum_number_of_trials( - RealType k, // number of events - RealType p, // success fraction - RealType alpha); // risk level - - static RealType find_maximum_number_of_trials( - RealType k, // number of events - RealType p, // success fraction - RealType alpha); // risk level - }; - - }} // namespaces - -The class type `binomial_distribution` represents a -[@http://mathworld.wolfram.com/BinomialDistribution.html binomial distribution]: -it is used when there are exactly two mutually -exclusive outcomes of a trial. These outcomes are labelled -"success" and "failure". The -__binomial_distrib is used to obtain -the probability of observing k successes in N trials, with the -probability of success on a single trial denoted by p. The -binomial distribution assumes that p is fixed for all trials. - -[note The random variable for the binomial distribution is the number of successes, -(the number of trials is a fixed property of the distribution) -whereas for the negative binomial, -the random variable is the number of trials, for a fixed number of successes.] - -The PDF for the binomial distribution is given by: - -[equation binomial_ref2] - -The following two graphs illustrate how the PDF changes depending -upon the distributions parameters, first we'll keep the success -fraction /p/ fixed at 0.5, and vary the sample size: - -[graph binomial_pdf_1] - -Alternatively, we can keep the sample size fixed at N=20 and -vary the success fraction /p/: - -[graph binomial_pdf_2] - -[discrete_quantile_warning Binomial] - -[h4 Member Functions] - -[h5 Construct] - - binomial_distribution(RealType n, RealType p); - -Constructor: /n/ is the total number of trials, /p/ is the -probability of success of a single trial. - -Requires `0 <= p <= 1`, and `n >= 0`, otherwise calls __domain_error. - -[h5 Accessors] - - RealType success_fraction() const; - -Returns the parameter /p/ from which this distribution was constructed. - - RealType trials() const; - -Returns the parameter /n/ from which this distribution was constructed. - -[h5 Lower Bound on the Success Fraction] - - static RealType find_lower_bound_on_p( - RealType trials, - RealType successes, - RealType alpha, - ``['unspecified-type]`` method = clopper_pearson_exact_interval); - -Returns a lower bound on the success fraction: - -[variablelist -[[trials][The total number of trials conducted.]] -[[successes][The number of successes that occurred.]] -[[alpha][The largest acceptable probability that the true value of - the success fraction is [*less than] the value returned.]] -[[method][An optional parameter that specifies the method to be used - to compute the interval (See below).]] -] - -For example, if you observe /k/ successes from /n/ trials the -best estimate for the success fraction is simply ['k/n], but if you -want to be 95% sure that the true value is [*greater than] some value, -['p[sub min]], then: - - p``[sub min]`` = binomial_distribution::find_lower_bound_on_p( - n, k, 0.05); - -[link math_toolkit.stat_tut.weg.binom_eg.binom_conf See worked example.] - -There are currently two possible values available for the /method/ -optional parameter: /clopper_pearson_exact_interval/ -or /jeffreys_prior_interval/. These constants are both members of -class template `binomial_distribution`, so usage is for example: - - p = binomial_distribution::find_lower_bound_on_p( - n, k, 0.05, binomial_distribution::jeffreys_prior_interval); - -The default method if this parameter is not specified is the Clopper Pearson -"exact" interval. This produces an interval that guarantees at least -`100(1-alpha)%` coverage, but which is known to be overly conservative, -sometimes producing intervals with much greater than the requested coverage. - -The alternative calculation method produces a non-informative -Jeffreys Prior interval. It produces `100(1-alpha)%` coverage only -['in the average case], though is typically very close to the requested -coverage level. It is one of the main methods of calculation recommended -in the review by Brown, Cai and DasGupta. - -Please note that the "textbook" calculation method using -a normal approximation (the Wald interval) is deliberately -not provided: it is known to produce consistently poor results, -even when the sample size is surprisingly large. -Refer to Brown, Cai and DasGupta for a full explanation. Many other methods -of calculation are available, and may be more appropriate for specific -situations. Unfortunately there appears to be no consensus amongst -statisticians as to which is "best": refer to the discussion at the end of -Brown, Cai and DasGupta for examples. - -The two methods provided here were chosen principally because they -can be used for both one and two sided intervals. -See also: - -Lawrence D. Brown, T. Tony Cai and Anirban DasGupta (2001), -Interval Estimation for a Binomial Proportion, -Statistical Science, Vol. 16, No. 2, 101-133. - -T. Tony Cai (2005), -One-sided confidence intervals in discrete distributions, -Journal of Statistical Planning and Inference 131, 63-88. - -Agresti, A. and Coull, B. A. (1998). Approximate is better than -"exact" for interval estimation of binomial proportions. Amer. -Statist. 52 119-126. - -Clopper, C. J. and Pearson, E. S. (1934). The use of confidence -or fiducial limits illustrated in the case of the binomial. -Biometrika 26 404-413. - -[h5 Upper Bound on the Success Fraction] - - static RealType find_upper_bound_on_p( - RealType trials, - RealType successes, - RealType alpha, - ``['unspecified-type]`` method = clopper_pearson_exact_interval); - -Returns an upper bound on the success fraction: - -[variablelist -[[trials][The total number of trials conducted.]] -[[successes][The number of successes that occurred.]] -[[alpha][The largest acceptable probability that the true value of - the success fraction is [*greater than] the value returned.]] -[[method][An optional parameter that specifies the method to be used - to compute the interval. Refer to the documentation for - `find_upper_bound_on_p` above for the meaning of the - method options.]] -] - -For example, if you observe /k/ successes from /n/ trials the -best estimate for the success fraction is simply ['k/n], but if you -want to be 95% sure that the true value is [*less than] some value, -['p[sub max]], then: - - p``[sub max]`` = binomial_distribution::find_upper_bound_on_p( - n, k, 0.05); - -[link math_toolkit.stat_tut.weg.binom_eg.binom_conf See worked example.] - -[note -In order to obtain a two sided bound on the success fraction, you -call both `find_lower_bound_on_p` *and* `find_upper_bound_on_p` -each with the same arguments. - -If the desired risk level -that the true success fraction lies outside the bounds is [alpha], -then you pass [alpha]/2 to these functions. - -So for example a two sided 95% confidence interval would be obtained -by passing [alpha] = 0.025 to each of the functions. - -[link math_toolkit.stat_tut.weg.binom_eg.binom_conf See worked example.] -] - - -[h5 Estimating the Number of Trials Required for a Certain Number of Successes] - - static RealType find_minimum_number_of_trials( - RealType k, // number of events - RealType p, // success fraction - RealType alpha); // probability threshold - -This function estimates the minimum number of trials required to ensure that -more than k events is observed with a level of risk /alpha/ that k or -fewer events occur. - -[variablelist -[[k][The number of success observed.]] -[[p][The probability of success for each trial.]] -[[alpha][The maximum acceptable probability that k events or fewer will be observed.]] -] - -For example: - - binomial_distribution::find_number_of_trials(10, 0.5, 0.05); - -Returns the smallest number of trials we must conduct to be 95% sure -of seeing 10 events that occur with frequency one half. - -[h5 Estimating the Maximum Number of Trials to Ensure no more than a Certain Number of Successes] - - static RealType find_maximum_number_of_trials( - RealType k, // number of events - RealType p, // success fraction - RealType alpha); // probability threshold - -This function estimates the maximum number of trials we can conduct -to ensure that k successes or fewer are observed, with a risk /alpha/ -that more than k occur. - -[variablelist -[[k][The number of success observed.]] -[[p][The probability of success for each trial.]] -[[alpha][The maximum acceptable probability that more than k events will be observed.]] -] - -For example: - - binomial_distribution::find_maximum_number_of_trials(0, 1e-6, 0.05); - -Returns the largest number of trials we can conduct and still be 95% certain -of not observing any events that occur with one in a million frequency. -This is typically used in failure analysis. - -[link math_toolkit.stat_tut.weg.binom_eg.binom_size_eg See Worked Example.] - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain for the random variable /k/ is `0 <= k <= N`, otherwise a -__domain_error is returned. - -It's worth taking a moment to define what these accessors actually mean in -the context of this distribution: - -[table Meaning of the non-member accessors -[[Function][Meaning]] -[[__pdf] - [The probability of obtaining [*exactly k successes] from n trials - with success fraction p. For example: - -`pdf(binomial(n, p), k)`]] -[[__cdf] - [The probability of obtaining [*k successes or fewer] from n trials - with success fraction p. For example: - -`cdf(binomial(n, p), k)`]] -[[__ccdf] - [The probability of obtaining [*more than k successes] from n trials - with success fraction p. For example: - -`cdf(complement(binomial(n, p), k))`]] -[[__quantile] - [The [*greatest] number of successes that may be observed from n trials - with success fraction p, at probability P. Note that the value returned - is a real-number, and not an integer. Depending on the use case you may - want to take either the floor or ceiling of the result. For example: - -`quantile(binomial(n, p), P)`]] -[[__quantile_c] - [The [*smallest] number of successes that may be observed from n trials - with success fraction p, at probability P. Note that the value returned - is a real-number, and not an integer. Depending on the use case you may - want to take either the floor or ceiling of the result. For example: - -`quantile(complement(binomial(n, p), P))`]] -] - -[h4 Examples] - -Various [link math_toolkit.stat_tut.weg.binom_eg worked examples] -are available illustrating the use of the binomial distribution. - -[h4 Accuracy] - -This distribution is implemented using the -incomplete beta functions __ibeta and __ibetac, -please refer to these functions for information on accuracy. - -[h4 Implementation] - -In the following table /p/ is the probability that one trial will -be successful (the success fraction), /n/ is the number of trials, -/k/ is the number of successes, /p/ is the probability and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Implementation is in terms of __ibeta_derivative: if [sub n]C[sub k ] is the binomial - coefficient of a and b, then we have: - -[equation binomial_ref1] - -Which can be evaluated as `ibeta_derivative(k+1, n-k+1, p) / (n+1)` - -The function __ibeta_derivative is used here, since it has already - been optimised for the lowest possible error - indeed this is really - just a thin wrapper around part of the internals of the incomplete - beta function. - -There are also various special cases: refer to the code for details. - ]] -[[cdf][Using the relation: - -`` -p = I[sub 1-p](n - k, k + 1) - = 1 - I[sub p](k + 1, n - k) - = __ibetac(k + 1, n - k, p)`` - -There are also various special cases: refer to the code for details. -]] -[[cdf complement][Using the relation: q = __ibeta(k + 1, n - k, p) - -There are also various special cases: refer to the code for details. ]] -[[quantile][Since the cdf is non-linear in variate /k/ none of the inverse - incomplete beta functions can be used here. Instead the quantile - is found numerically using a derivative free method - (__root_finding_TOMS748).]] -[[quantile from the complement][Found numerically as above.]] -[[mean][ `p * n` ]] -[[variance][ `p * n * (1-p)` ]] -[[mode][`floor(p * (n + 1))`]] -[[skewness][`(1 - 2 * p) / sqrt(n * p * (1 - p))`]] -[[kurtosis][`3 - (6 / n) + (1 / (n * p * (1 - p)))`]] -[[kurtosis excess][`(1 - 6 * p * q) / (n * p * q)`]] -[[parameter estimation][The member functions `find_upper_bound_on_p` - `find_lower_bound_on_p` and `find_number_of_trials` are - implemented in terms of the inverse incomplete beta functions - __ibetac_inv, __ibeta_inv, and __ibetac_invb respectively]] -] - -[h4 References] - -* [@http://mathworld.wolfram.com/BinomialDistribution.html Weisstein, Eric W. "Binomial Distribution." From MathWorld--A Wolfram Web Resource]. -* [@http://en.wikipedia.org/wiki/Beta_distribution Wikipedia binomial distribution]. -* [@http://www.itl.nist.gov/div898/handbook/eda/section3/eda366i.htm NIST Explorary Data Analysis]. - -[endsect] [/section:binomial_dist Binomial] - -[/ binomial.qbk - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/distributions/binomial_example.qbk b/boost/libs/math/doc/distributions/binomial_example.qbk deleted file mode 100644 index 7f03e518..00000000 --- a/boost/libs/math/doc/distributions/binomial_example.qbk +++ /dev/null @@ -1,332 +0,0 @@ -[section:binom_eg Binomial Distribution Examples] - -See also the reference documentation for the __binomial_distrib. - -[section:binomial_coinflip_example Binomial Coin-Flipping Example] - -[import ../../example/binomial_coinflip_example.cpp] -[binomial_coinflip_example1] - -See [@../../example/binomial_coinflip_example.cpp binomial_coinflip_example.cpp] -for full source code, the program output looks like this: - -[binomial_coinflip_example_output] - -[endsect] [/section:binomial_coinflip_example Binomial coinflip example] - -[section:binomial_quiz_example Binomial Quiz Example] - -[import ../../example/binomial_quiz_example.cpp] -[binomial_quiz_example1] -[binomial_quiz_example2] -[discrete_quantile_real] - -See [@../../example/binomial_quiz_example.cpp binomial_quiz_example.cpp] -for full source code and output. - -[endsect] [/section:binomial_coinflip_quiz Binomial Coin-Flipping example] - -[section:binom_conf Calculating Confidence Limits on the Frequency of Occurrence for a Binomial Distribution] - -Imagine you have a process that follows a binomial distribution: for each -trial conducted, an event either occurs or does it does not, referred -to as "successes" and "failures". If, by experiment, you want to measure the -frequency with which successes occur, the best estimate is given simply -by /k/ \/ /N/, for /k/ successes out of /N/ trials. However our confidence in that -estimate will be shaped by how many trials were conducted, and how many successes -were observed. The static member functions -`binomial_distribution<>::find_lower_bound_on_p` and -`binomial_distribution<>::find_upper_bound_on_p` allow you to calculate -the confidence intervals for your estimate of the occurrence frequency. - -The sample program [@../../example/binomial_confidence_limits.cpp -binomial_confidence_limits.cpp] illustrates their use. It begins by defining -a procedure that will print a table of confidence limits for various degrees -of certainty: - - #include - #include - #include - - void confidence_limits_on_frequency(unsigned trials, unsigned successes) - { - // - // trials = Total number of trials. - // successes = Total number of observed successes. - // - // Calculate confidence limits for an observed - // frequency of occurrence that follows a binomial - // distribution. - // - using namespace std; - using namespace boost::math; - - // Print out general info: - cout << - "___________________________________________\n" - "2-Sided Confidence Limits For Success Ratio\n" - "___________________________________________\n\n"; - cout << setprecision(7); - cout << setw(40) << left << "Number of Observations" << "= " << trials << "\n"; - cout << setw(40) << left << "Number of successes" << "= " << successes << "\n"; - cout << setw(40) << left << "Sample frequency of occurrence" << "= " << double(successes) / trials << "\n"; - -The procedure now defines a table of significance levels: these are the -probabilities that the true occurrence frequency lies outside the calculated -interval: - - double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 }; - -Some pretty printing of the table header follows: - - cout << "\n\n" - "_______________________________________________________________________\n" - "Confidence Lower CP Upper CP Lower JP Upper JP\n" - " Value (%) Limit Limit Limit Limit\n" - "_______________________________________________________________________\n"; - - -And now for the important part - the intervals themselves - for each -value of /alpha/, we call `find_lower_bound_on_p` and -`find_lower_upper_on_p` to obtain lower and upper bounds -respectively. Note that since we are calculating a two-sided interval, -we must divide the value of alpha in two. - -Please note that calculating two separate /single sided bounds/, each with risk -level [alpha][space]is not the same thing as calculating a two sided interval. -Had we calculate two single-sided intervals each with a risk -that the true value is outside the interval of [alpha], then: - -* The risk that it is less than the lower bound is [alpha]. - -and - -* The risk that it is greater than the upper bound is also [alpha]. - -So the risk it is outside *upper or lower bound*, is *twice* alpha, and the -probability that it is inside the bounds is therefore not nearly as high as -one might have thought. This is why [alpha]/2 must be used in -the calculations below. - -In contrast, had we been calculating a -single-sided interval, for example: ['"Calculate a lower bound so that we are P% -sure that the true occurrence frequency is greater than some value"] -then we would *not* have divided by two. - -Finally note that `binomial_distribution` provides a choice of two -methods for the calculation, we print out the results from both -methods in this example: - - for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i) - { - // Confidence value: - cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]); - // Calculate Clopper Pearson bounds: - double l = binomial_distribution<>::find_lower_bound_on_p( - trials, successes, alpha[i]/2); - double u = binomial_distribution<>::find_upper_bound_on_p( - trials, successes, alpha[i]/2); - // Print Clopper Pearson Limits: - cout << fixed << setprecision(5) << setw(15) << right << l; - cout << fixed << setprecision(5) << setw(15) << right << u; - // Calculate Jeffreys Prior Bounds: - l = binomial_distribution<>::find_lower_bound_on_p( - trials, successes, alpha[i]/2, - binomial_distribution<>::jeffreys_prior_interval); - u = binomial_distribution<>::find_upper_bound_on_p( - trials, successes, alpha[i]/2, - binomial_distribution<>::jeffreys_prior_interval); - // Print Jeffreys Prior Limits: - cout << fixed << setprecision(5) << setw(15) << right << l; - cout << fixed << setprecision(5) << setw(15) << right << u << std::endl; - } - cout << endl; - } - -And that's all there is to it. Let's see some sample output for a 2 in 10 -success ratio, first for 20 trials: - -[pre'''___________________________________________ -2-Sided Confidence Limits For Success Ratio -___________________________________________ - -Number of Observations = 20 -Number of successes = 4 -Sample frequency of occurrence = 0.2 - - -_______________________________________________________________________ -Confidence Lower CP Upper CP Lower JP Upper JP - Value (%) Limit Limit Limit Limit -_______________________________________________________________________ - 50.000 0.12840 0.29588 0.14974 0.26916 - 75.000 0.09775 0.34633 0.11653 0.31861 - 90.000 0.07135 0.40103 0.08734 0.37274 - 95.000 0.05733 0.43661 0.07152 0.40823 - 99.000 0.03576 0.50661 0.04655 0.47859 - 99.900 0.01905 0.58632 0.02634 0.55960 - 99.990 0.01042 0.64997 0.01530 0.62495 - 99.999 0.00577 0.70216 0.00901 0.67897 -'''] - -As you can see, even at the 95% confidence level the bounds are -really quite wide (this example is chosen to be easily compared to the one -in the __handbook -[@http://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm -here]). Note also that the Clopper-Pearson calculation method (CP above) -produces quite noticeably more pessimistic estimates than the Jeffreys Prior -method (JP above). - - -Compare that with the program output for -2000 trials: - -[pre'''___________________________________________ -2-Sided Confidence Limits For Success Ratio -___________________________________________ - -Number of Observations = 2000 -Number of successes = 400 -Sample frequency of occurrence = 0.2000000 - - -_______________________________________________________________________ -Confidence Lower CP Upper CP Lower JP Upper JP - Value (%) Limit Limit Limit Limit -_______________________________________________________________________ - 50.000 0.19382 0.20638 0.19406 0.20613 - 75.000 0.18965 0.21072 0.18990 0.21047 - 90.000 0.18537 0.21528 0.18561 0.21503 - 95.000 0.18267 0.21821 0.18291 0.21796 - 99.000 0.17745 0.22400 0.17769 0.22374 - 99.900 0.17150 0.23079 0.17173 0.23053 - 99.990 0.16658 0.23657 0.16681 0.23631 - 99.999 0.16233 0.24169 0.16256 0.24143 -'''] - -Now even when the confidence level is very high, the limits are really -quite close to the experimentally calculated value of 0.2. Furthermore -the difference between the two calculation methods is now really quite small. - -[endsect] - -[section:binom_size_eg Estimating Sample Sizes for a Binomial Distribution.] - -Imagine you have a critical component that you know will fail in 1 in -N "uses" (for some suitable definition of "use"). You may want to schedule -routine replacement of the component so that its chance of failure between -routine replacements is less than P%. If the failures follow a binomial -distribution (each time the component is "used" it either fails or does not) -then the static member function `binomial_distibution<>::find_maximum_number_of_trials` -can be used to estimate the maximum number of "uses" of that component for some -acceptable risk level /alpha/. - -The example program -[@../../example/binomial_sample_sizes.cpp binomial_sample_sizes.cpp] -demonstrates its usage. It centres on a routine that prints out -a table of maximum sample sizes for various probability thresholds: - - void find_max_sample_size( - double p, // success ratio. - unsigned successes) // Total number of observed successes permitted. - { - -The routine then declares a table of probability thresholds: these are the -maximum acceptable probability that /successes/ or fewer events will be -observed. In our example, /successes/ will be always zero, since we want -no component failures, but in other situations non-zero values may well -make sense. - - double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 }; - -Much of the rest of the program is pretty-printing, the important part -is in the calculation of maximum number of permitted trials for each -value of alpha: - - for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i) - { - // Confidence value: - cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]); - // calculate trials: - double t = binomial::find_maximum_number_of_trials( - successes, p, alpha[i]); - t = floor(t); - // Print Trials: - cout << fixed << setprecision(5) << setw(15) << right << t << endl; - } - -Note that since we're -calculating the maximum number of trials permitted, we'll err on the safe -side and take the floor of the result. Had we been calculating the -/minimum/ number of trials required to observe a certain number of /successes/ -using `find_minimum_number_of_trials` we would have taken the ceiling instead. - -We'll finish off by looking at some sample output, firstly for -a 1 in 1000 chance of component failure with each use: - -[pre -'''________________________ -Maximum Number of Trials -________________________ - -Success ratio = 0.001 -Maximum Number of "successes" permitted = 0 - - -____________________________ -Confidence Max Number - Value (%) Of Trials -____________________________ - 50.000 692 - 75.000 287 - 90.000 105 - 95.000 51 - 99.000 10 - 99.900 0 - 99.990 0 - 99.999 0''' -] - -So 51 "uses" of the component would yield a 95% chance that no -component failures would be observed. - -Compare that with a 1 in 1 million chance of component failure: - -[pre''' -________________________ -Maximum Number of Trials -________________________ - -Success ratio = 0.0000010 -Maximum Number of "successes" permitted = 0 - - -____________________________ -Confidence Max Number - Value (%) Of Trials -____________________________ - 50.000 693146 - 75.000 287681 - 90.000 105360 - 95.000 51293 - 99.000 10050 - 99.900 1000 - 99.990 100 - 99.999 10''' -] - -In this case, even 1000 uses of the component would still yield a -less than 1 in 1000 chance of observing a component failure -(i.e. a 99.9% chance of no failure). - -[endsect] [/section:binom_size_eg Estimating Sample Sizes for a Binomial Distribution.] - -[endsect][/section:binom_eg Binomial Distribution] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/c_sharp.qbk b/boost/libs/math/doc/distributions/c_sharp.qbk deleted file mode 100644 index 6764f251..00000000 --- a/boost/libs/math/doc/distributions/c_sharp.qbk +++ /dev/null @@ -1,20 +0,0 @@ -[section:c_sharp Using the Distributions from Within C#] - -The distributions in this library can be used from the C# programming language -when they are built using Microsoft's Common Language Runtime (CLR) option. - -An example of this kind of usage is given in the -[@../distexplorer/html/index.html Distribution Explorer] -example. See =boost-root/libs/math/dot_net_example= -for the source code: the application consists of a C++ .dll that contains the -actual distributions, and a C# GUI that allows you to explore their properties. - -[endsect] [/section:c_sharp] - -[/ - Copyright 2006, 2013 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/cauchy.qbk b/boost/libs/math/doc/distributions/cauchy.qbk deleted file mode 100644 index e91ebe2d..00000000 --- a/boost/libs/math/doc/distributions/cauchy.qbk +++ /dev/null @@ -1,154 +0,0 @@ -[section:cauchy_dist Cauchy-Lorentz Distribution] - -``#include `` - - template - class cauchy_distribution; - - typedef cauchy_distribution<> cauchy; - - template - class cauchy_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - cauchy_distribution(RealType location = 0, RealType scale = 1); - - RealType location()const; - RealType scale()const; - }; - -The [@http://en.wikipedia.org/wiki/Cauchy_distribution Cauchy-Lorentz distribution] -is named after Augustin Cauchy and Hendrik Lorentz. -It is a [@http://en.wikipedia.org/wiki/Probability_distribution continuous probability distribution] -with [@http://en.wikipedia.org/wiki/Probability_distribution probability distribution function PDF] -given by: - -[equation cauchy_ref1] - -The location parameter x[sub 0][space] is the location of the -peak of the distribution (the mode of the distribution), -while the scale parameter [gamma][space] specifies half the width -of the PDF at half the maximum height. If the location is -zero, and the scale 1, then the result is a standard Cauchy -distribution. - -The distribution is important in physics as it is the solution -to the differential equation describing forced resonance, -while in spectroscopy it is the description of the line shape -of spectral lines. - -The following graph shows how the distributions moves as the -location parameter changes: - -[graph cauchy_pdf1] - -While the following graph shows how the shape (scale) parameter alters -the distribution: - -[graph cauchy_pdf2] - -[h4 Member Functions] - - cauchy_distribution(RealType location = 0, RealType scale = 1); - -Constructs a Cauchy distribution, with location parameter /location/ -and scale parameter /scale/. When these parameters take their default -values (location = 0, scale = 1) -then the result is a Standard Cauchy Distribution. - -Requires scale > 0, otherwise calls __domain_error. - - RealType location()const; - -Returns the location parameter of the distribution. - - RealType scale()const; - -Returns the scale parameter of the distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -Note however that the Cauchy distribution does not have a mean, -standard deviation, etc. See __math_undefined -[/link math_toolkit.pol_ref.assert_undefined mathematically undefined function] -to control whether these should fail to compile with a BOOST_STATIC_ASSERTION_FAILURE, -which is the default. - -Alternately, the functions __mean, __sd, -__variance, __skewness, __kurtosis and __kurtosis_excess will all -return a __domain_error if called. - -The domain of the random variable is \[-[max_value], +[min_value]\]. - -[h4 Accuracy] - -The Cauchy distribution is implemented in terms of the -standard library `tan` and `atan` functions, -and as such should have very low error rates. - -[h4 Implementation] - -[def __x0 x[sub 0 ]] - -In the following table __x0 is the location parameter of the distribution, -[gamma][space] is its scale parameter, -/x/ is the random variate, /p/ is the probability and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = 1 / ([pi] * [gamma] * (1 + ((x - __x0) / [gamma])[super 2]) ]] -[[cdf and its complement][ -The cdf is normally given by: - -p = 0.5 + atan(x)/[pi] - -But that suffers from cancellation error as x -> -[infin]. -So recall that for `x < 0`: - -atan(x) = -[pi]/2 - atan(1/x) - -Substituting into the above we get: - -p = -atan(1/x) ; x < 0 - -So the procedure is to calculate the cdf for -fabs(x) -using the above formula. Note that to factor in the location and scale -parameters you must substitute (x - __x0) / [gamma][space] for x in the above. - -This procedure yields the smaller of /p/ and /q/, so the result -may need subtracting from 1 depending on whether we want the complement -or not, and whether /x/ is less than __x0 or not. -]] -[[quantile][The same procedure is used irrespective of whether we're starting - from the probability or its complement. First the argument /p/ is - reduced to the range \[-0.5, 0.5\], then the relation - -x = __x0 [plusminus] [gamma][space] / tan([pi] * p) - -is used to obtain the result. Whether we're adding - or subtracting from __x0 is determined by whether we're - starting from the complement or not.]] -[[mode][The location parameter.]] -] - -[h4 References] - -* [@http://en.wikipedia.org/wiki/Cauchy_distribution Cauchy-Lorentz distribution] -* [@http://www.itl.nist.gov/div898/handbook/eda/section3/eda3663.htm NIST Exploratory Data Analysis] -* [@http://mathworld.wolfram.com/CauchyDistribution.html Weisstein, Eric W. "Cauchy Distribution." From MathWorld--A Wolfram Web Resource.] - -[endsect][/section:cauchy_dist Cauchi] - -[/ cauchy.qbk - Copyright 2006, 2007 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/distributions/chi_squared.qbk b/boost/libs/math/doc/distributions/chi_squared.qbk deleted file mode 100644 index 77237e04..00000000 --- a/boost/libs/math/doc/distributions/chi_squared.qbk +++ /dev/null @@ -1,161 +0,0 @@ -[section:chi_squared_dist Chi Squared Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class chi_squared_distribution; - - typedef chi_squared_distribution<> chi_squared; - - template - class chi_squared_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - // Constructor: - chi_squared_distribution(RealType i); - - // Accessor to parameter: - RealType degrees_of_freedom()const; - - // Parameter estimation: - static RealType find_degrees_of_freedom( - RealType difference_from_mean, - RealType alpha, - RealType beta, - RealType sd, - RealType hint = 100); - }; - - }} // namespaces - -The Chi-Squared distribution is one of the most widely used distributions -in statistical tests. If [chi][sub i][space] are [nu][space] -independent, normally distributed -random variables with means [mu][sub i][space] and variances [sigma][sub i][super 2], -then the random variable: - -[equation chi_squ_ref1] - -is distributed according to the Chi-Squared distribution. - -The Chi-Squared distribution is a special case of the gamma distribution -and has a single parameter [nu][space] that specifies the number of degrees of -freedom. The following graph illustrates how the distribution changes -for different values of [nu]: - -[graph chi_squared_pdf] - -[h4 Member Functions] - - chi_squared_distribution(RealType v); - -Constructs a Chi-Squared distribution with /v/ degrees of freedom. - -Requires v > 0, otherwise calls __domain_error. - - RealType degrees_of_freedom()const; - -Returns the parameter /v/ from which this object was constructed. - - static RealType find_degrees_of_freedom( - RealType difference_from_variance, - RealType alpha, - RealType beta, - RealType variance, - RealType hint = 100); - -Estimates the sample size required to detect a difference from a nominal -variance in a Chi-Squared test for equal standard deviations. - -[variablelist -[[difference_from_variance][The difference from the assumed nominal variance - that is to be detected: Note that the sign of this value is critical, see below.]] -[[alpha][The maximum acceptable risk of rejecting the null hypothesis when it is - in fact true.]] -[[beta][The maximum acceptable risk of falsely failing to reject the null hypothesis.]] -[[variance][The nominal variance being tested against.]] -[[hint][An optional hint on where to start looking for a result: the current sample - size would be a good choice.]] -] - -Note that this calculation works with /variances/ and not /standard deviations/. - -The sign of the parameter /difference_from_variance/ is important: the Chi -Squared distribution is asymmetric, and the caller must decide in advance -whether they are testing for a variance greater than a nominal value (positive -/difference_from_variance/) or testing for a variance less than a nominal value -(negative /difference_from_variance/). If the latter, then obviously it is -a requirement that `variance + difference_from_variance > 0`, since no sample -can have a negative variance! - -This procedure uses the method in Diamond, W. J. (1989). -Practical Experiment Designs, Van-Nostrand Reinhold, New York. - -See also section on Sample sizes required in -[@http://www.itl.nist.gov/div898/handbook/prc/section2/prc232.htm the NIST Engineering Statistics Handbook, Section 7.2.3.2]. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -(We have followed the usual restriction of the mode to degrees of freedom >= 2, -but note that the maximum of the pdf is actually zero for degrees of freedom from 2 down to 0, -and provide an extended definition that would avoid a discontinuity in the mode -as alternative code in a comment). - -The domain of the random variable is \[0, +[infin]\]. - -[h4 Examples] - -Various [link math_toolkit.stat_tut.weg.cs_eg worked examples] -are available illustrating the use of the Chi Squared Distribution. - -[h4 Accuracy] - -The Chi-Squared distribution is implemented in terms of the -[link math_toolkit.sf_gamma.igamma incomplete gamma functions]: -please refer to the accuracy data for those functions. - -[h4 Implementation] - -In the following table /v/ is the number of degrees of freedom of the distribution, -/x/ is the random variate, /p/ is the probability, and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = __gamma_p_derivative(v / 2, x / 2) / 2 ]] -[[cdf][Using the relation: p = __gamma_p(v / 2, x / 2) ]] -[[cdf complement][Using the relation: q = __gamma_q(v / 2, x / 2) ]] -[[quantile][Using the relation: x = 2 * __gamma_p_inv(v / 2, p) ]] -[[quantile from the complement][Using the relation: x = 2 * __gamma_q_inv(v / 2, p) ]] -[[mean][v]] -[[variance][2v]] -[[mode][v - 2 (if v >= 2)]] -[[skewness][2 * sqrt(2 / v) == sqrt(8 / v)]] -[[kurtosis][3 + 12 / v]] -[[kurtosis excess][12 / v]] -] - -[h4 References] - -* [@http://www.itl.nist.gov/div898/handbook/eda/section3/eda3666.htm NIST Exploratory Data Analysis] -* [@http://en.wikipedia.org/wiki/Chi-square_distribution Chi-square distribution] -* [@http://mathworld.wolfram.com/Chi-SquaredDistribution.html Weisstein, Eric W. "Chi-Squared Distribution." From MathWorld--A Wolfram Web Resource.] - - -[endsect][/section:chi_squared_dist Chi Squared] - -[/ chi_squared.qbk - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/chi_squared_examples.qbk b/boost/libs/math/doc/distributions/chi_squared_examples.qbk deleted file mode 100644 index 8f01585f..00000000 --- a/boost/libs/math/doc/distributions/chi_squared_examples.qbk +++ /dev/null @@ -1,500 +0,0 @@ - -[section:cs_eg Chi Squared Distribution Examples] - -[section:chi_sq_intervals Confidence Intervals on the Standard Deviation] - -Once you have calculated the standard deviation for your data, a legitimate -question to ask is "How reliable is the calculated standard deviation?". -For this situation the Chi Squared distribution can be used to calculate -confidence intervals for the standard deviation. - -The full example code & sample output is in -[@../../example/chi_square_std_dev_test.cpp chi_square_std_dev_test.cpp]. - -We'll begin by defining the procedure that will calculate and print out the -confidence intervals: - - void confidence_limits_on_std_deviation( - double Sd, // Sample Standard Deviation - unsigned N) // Sample size - { - -We'll begin by printing out some general information: - - cout << - "________________________________________________\n" - "2-Sided Confidence Limits For Standard Deviation\n" - "________________________________________________\n\n"; - cout << setprecision(7); - cout << setw(40) << left << "Number of Observations" << "= " << N << "\n"; - cout << setw(40) << left << "Standard Deviation" << "= " << Sd << "\n"; - -and then define a table of significance levels for which we'll calculate -intervals: - - double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 }; - -The distribution we'll need to calculate the confidence intervals is a -Chi Squared distribution, with N-1 degrees of freedom: - - chi_squared dist(N - 1); - -For each value of alpha, the formula for the confidence interval is given by: - -[equation chi_squ_tut1] - -Where [equation chi_squ_tut2] is the upper critical value, and -[equation chi_squ_tut3] is the lower critical value of the -Chi Squared distribution. - -In code we begin by printing out a table header: - - cout << "\n\n" - "_____________________________________________\n" - "Confidence Lower Upper\n" - " Value (%) Limit Limit\n" - "_____________________________________________\n"; - -and then loop over the values of alpha and calculate the intervals -for each: remember that the lower critical value is the same as the -quantile, and the upper critical value is the same as the quantile -from the complement of the probability: - - for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i) - { - // Confidence value: - cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]); - // Calculate limits: - double lower_limit = sqrt((N - 1) * Sd * Sd / quantile(complement(dist, alpha[i] / 2))); - double upper_limit = sqrt((N - 1) * Sd * Sd / quantile(dist, alpha[i] / 2)); - // Print Limits: - cout << fixed << setprecision(5) << setw(15) << right << lower_limit; - cout << fixed << setprecision(5) << setw(15) << right << upper_limit << endl; - } - cout << endl; - -To see some example output we'll use the -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda3581.htm -gear data] from the __handbook. -The data represents measurements of gear diameter from a manufacturing -process. - -[pre''' -________________________________________________ -2-Sided Confidence Limits For Standard Deviation -________________________________________________ - -Number of Observations = 100 -Standard Deviation = 0.006278908 - - -_____________________________________________ -Confidence Lower Upper - Value (%) Limit Limit -_____________________________________________ - 50.000 0.00601 0.00662 - 75.000 0.00582 0.00685 - 90.000 0.00563 0.00712 - 95.000 0.00551 0.00729 - 99.000 0.00530 0.00766 - 99.900 0.00507 0.00812 - 99.990 0.00489 0.00855 - 99.999 0.00474 0.00895 -'''] - -So at the 95% confidence level we conclude that the standard deviation -is between 0.00551 and 0.00729. - -[h4 Confidence intervals as a function of the number of observations] - -Similarly, we can also list the confidence intervals for the standard deviation -for the common confidence levels 95%, for increasing numbers of observations. - -The standard deviation used to compute these values is unity, -so the limits listed are *multipliers* for any particular standard deviation. -For example, given a standard deviation of 0.0062789 as in the example -above; for 100 observations the multiplier is 0.8780 -giving the lower confidence limit of 0.8780 * 0.006728 = 0.00551. - -[pre''' -____________________________________________________ -Confidence level (two-sided) = 0.0500000 -Standard Deviation = 1.0000000 -________________________________________ -Observations Lower Upper - Limit Limit -________________________________________ - 2 0.4461 31.9102 - 3 0.5207 6.2847 - 4 0.5665 3.7285 - 5 0.5991 2.8736 - 6 0.6242 2.4526 - 7 0.6444 2.2021 - 8 0.6612 2.0353 - 9 0.6755 1.9158 - 10 0.6878 1.8256 - 15 0.7321 1.5771 - 20 0.7605 1.4606 - 30 0.7964 1.3443 - 40 0.8192 1.2840 - 50 0.8353 1.2461 - 60 0.8476 1.2197 - 100 0.8780 1.1617 - 120 0.8875 1.1454 - 1000 0.9580 1.0459 - 10000 0.9863 1.0141 - 50000 0.9938 1.0062 - 100000 0.9956 1.0044 - 1000000 0.9986 1.0014 -'''] - -With just 2 observations the limits are from *0.445* up to to *31.9*, -so the standard deviation might be about *half* -the observed value up to [*30 times] the observed value! - -Estimating a standard deviation with just a handful of values leaves a very great uncertainty, -especially the upper limit. -Note especially how far the upper limit is skewed from the most likely standard deviation. - -Even for 10 observations, normally considered a reasonable number, -the range is still from 0.69 to 1.8, about a range of 0.7 to 2, -and is still highly skewed with an upper limit *twice* the median. - -When we have 1000 observations, the estimate of the standard deviation is starting to look convincing, -with a range from 0.95 to 1.05 - now near symmetrical, but still about + or - 5%. - -Only when we have 10000 or more repeated observations can we start to be reasonably confident -(provided we are sure that other factors like drift are not creeping in). - -For 10000 observations, the interval is 0.99 to 1.1 - finally a really convincing + or -1% confidence. - -[endsect] [/section:chi_sq_intervals Confidence Intervals on the Standard Deviation] - -[section:chi_sq_test Chi-Square Test for the Standard Deviation] - -We use this test to determine whether the standard deviation of a sample -differs from a specified value. Typically this occurs in process change -situations where we wish to compare the standard deviation of a new -process to an established one. - -The code for this example is contained in -[@../../example/chi_square_std_dev_test.cpp chi_square_std_dev_test.cpp], and -we'll begin by defining the procedure that will print out the test -statistics: - - void chi_squared_test( - double Sd, // Sample std deviation - double D, // True std deviation - unsigned N, // Sample size - double alpha) // Significance level - { - -The procedure begins by printing a summary of the input data: - - using namespace std; - using namespace boost::math; - - // Print header: - cout << - "______________________________________________\n" - "Chi Squared test for sample standard deviation\n" - "______________________________________________\n\n"; - cout << setprecision(5); - cout << setw(55) << left << "Number of Observations" << "= " << N << "\n"; - cout << setw(55) << left << "Sample Standard Deviation" << "= " << Sd << "\n"; - cout << setw(55) << left << "Expected True Standard Deviation" << "= " << D << "\n\n"; - -The test statistic (T) is simply the ratio of the sample and "true" standard -deviations squared, multiplied by the number of degrees of freedom (the -sample size less one): - - double t_stat = (N - 1) * (Sd / D) * (Sd / D); - cout << setw(55) << left << "Test Statistic" << "= " << t_stat << "\n"; - -The distribution we need to use, is a Chi Squared distribution with N-1 -degrees of freedom: - - chi_squared dist(N - 1); - -The various hypothesis that can be tested are summarised in the following table: - -[table -[[Hypothesis][Test]] -[[The null-hypothesis: there is no difference in standard deviation from the specified value] - [ Reject if T < [chi][super 2][sub (1-alpha/2; N-1)] or T > [chi][super 2][sub (alpha/2; N-1)] ]] -[[The alternative hypothesis: there is a difference in standard deviation from the specified value] - [ Reject if [chi][super 2][sub (1-alpha/2; N-1)] >= T >= [chi][super 2][sub (alpha/2; N-1)] ]] -[[The alternative hypothesis: the standard deviation is less than the specified value] - [ Reject if [chi][super 2][sub (1-alpha; N-1)] <= T ]] -[[The alternative hypothesis: the standard deviation is greater than the specified value] - [ Reject if [chi][super 2][sub (alpha; N-1)] >= T ]] -] - -Where [chi][super 2][sub (alpha; N-1)] is the upper critical value of the -Chi Squared distribution, and [chi][super 2][sub (1-alpha; N-1)] is the -lower critical value. - -Recall that the lower critical value is the same -as the quantile, and the upper critical value is the same as the quantile -from the complement of the probability, that gives us the following code -to calculate the critical values: - - double ucv = quantile(complement(dist, alpha)); - double ucv2 = quantile(complement(dist, alpha / 2)); - double lcv = quantile(dist, alpha); - double lcv2 = quantile(dist, alpha / 2); - cout << setw(55) << left << "Upper Critical Value at alpha: " << "= " - << setprecision(3) << scientific << ucv << "\n"; - cout << setw(55) << left << "Upper Critical Value at alpha/2: " << "= " - << setprecision(3) << scientific << ucv2 << "\n"; - cout << setw(55) << left << "Lower Critical Value at alpha: " << "= " - << setprecision(3) << scientific << lcv << "\n"; - cout << setw(55) << left << "Lower Critical Value at alpha/2: " << "= " - << setprecision(3) << scientific << lcv2 << "\n\n"; - -Now that we have the critical values, we can compare these to our test -statistic, and print out the result of each hypothesis and test: - - cout << setw(55) << left << - "Results for Alternative Hypothesis and alpha" << "= " - << setprecision(4) << fixed << alpha << "\n\n"; - cout << "Alternative Hypothesis Conclusion\n"; - - cout << "Standard Deviation != " << setprecision(3) << fixed << D << " "; - if((ucv2 < t_stat) || (lcv2 > t_stat)) - cout << "ACCEPTED\n"; - else - cout << "REJECTED\n"; - - cout << "Standard Deviation < " << setprecision(3) << fixed << D << " "; - if(lcv > t_stat) - cout << "ACCEPTED\n"; - else - cout << "REJECTED\n"; - - cout << "Standard Deviation > " << setprecision(3) << fixed << D << " "; - if(ucv < t_stat) - cout << "ACCEPTED\n"; - else - cout << "REJECTED\n"; - cout << endl << endl; - -To see some example output we'll use the -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda3581.htm -gear data] from the __handbook. -The data represents measurements of gear diameter from a manufacturing -process. The program output is deliberately designed to mirror -the DATAPLOT output shown in the -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda358.htm -NIST Handbook Example]. - -[pre''' -______________________________________________ -Chi Squared test for sample standard deviation -______________________________________________ - -Number of Observations = 100 -Sample Standard Deviation = 0.00628 -Expected True Standard Deviation = 0.10000 - -Test Statistic = 0.39030 -CDF of test statistic: = 1.438e-099 -Upper Critical Value at alpha: = 1.232e+002 -Upper Critical Value at alpha/2: = 1.284e+002 -Lower Critical Value at alpha: = 7.705e+001 -Lower Critical Value at alpha/2: = 7.336e+001 - -Results for Alternative Hypothesis and alpha = 0.0500 - -Alternative Hypothesis Conclusion''' -Standard Deviation != 0.100 ACCEPTED -Standard Deviation < 0.100 ACCEPTED -Standard Deviation > 0.100 REJECTED -] - -In this case we are testing whether the sample standard deviation is 0.1, -and the null-hypothesis is rejected, so we conclude that the standard -deviation ['is not] 0.1. - -For an alternative example, consider the -[@http://www.itl.nist.gov/div898/handbook/prc/section2/prc23.htm -silicon wafer data] again from the __handbook. -In this scenario a supplier of 100 ohm.cm silicon wafers claims -that his fabrication process can produce wafers with sufficient -consistency so that the standard deviation of resistivity for -the lot does not exceed 10 ohm.cm. A sample of N = 10 wafers taken -from the lot has a standard deviation of 13.97 ohm.cm, and the question -we ask ourselves is "Is the suppliers claim correct?". - -The program output now looks like this: - -[pre''' -______________________________________________ -Chi Squared test for sample standard deviation -______________________________________________ - -Number of Observations = 10 -Sample Standard Deviation = 13.97000 -Expected True Standard Deviation = 10.00000 - -Test Statistic = 17.56448 -CDF of test statistic: = 9.594e-001 -Upper Critical Value at alpha: = 1.692e+001 -Upper Critical Value at alpha/2: = 1.902e+001 -Lower Critical Value at alpha: = 3.325e+000 -Lower Critical Value at alpha/2: = 2.700e+000 - -Results for Alternative Hypothesis and alpha = 0.0500 - -Alternative Hypothesis Conclusion''' -Standard Deviation != 10.000 REJECTED -Standard Deviation < 10.000 REJECTED -Standard Deviation > 10.000 ACCEPTED -] - -In this case, our null-hypothesis is that the standard deviation of -the sample is less than 10: this hypothesis is rejected in the analysis -above, and so we reject the manufacturers claim. - -[endsect] [/section:chi_sq_test Chi-Square Test for the Standard Deviation] - -[section:chi_sq_size Estimating the Required Sample Sizes for a Chi-Square Test for the Standard Deviation] - -Suppose we conduct a Chi Squared test for standard deviation and the result -is borderline, a legitimate question to ask is "How large would the sample size -have to be in order to produce a definitive result?" - -The class template [link math_toolkit.dist_ref.dists.chi_squared_dist -chi_squared_distribution] has a static method -`find_degrees_of_freedom` that will calculate this value for -some acceptable risk of type I failure /alpha/, type II failure -/beta/, and difference from the standard deviation /diff/. Please -note that the method used works on variance, and not standard deviation -as is usual for the Chi Squared Test. - -The code for this example is located in -[@../../example/chi_square_std_dev_test.cpp chi_square_std_dev_test.cpp]. - -We begin by defining a procedure to print out the sample sizes required -for various risk levels: - - void chi_squared_sample_sized( - double diff, // difference from variance to detect - double variance) // true variance - { - -The procedure begins by printing out the input data: - - using namespace std; - using namespace boost::math; - - // Print out general info: - cout << - "_____________________________________________________________\n" - "Estimated sample sizes required for various confidence levels\n" - "_____________________________________________________________\n\n"; - cout << setprecision(5); - cout << setw(40) << left << "True Variance" << "= " << variance << "\n"; - cout << setw(40) << left << "Difference to detect" << "= " << diff << "\n"; - -And defines a table of significance levels for which we'll calculate sample sizes: - - double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 }; - -For each value of alpha we can calculate two sample sizes: one where the -sample variance is less than the true value by /diff/ and one -where it is greater than the true value by /diff/. Thanks to the -asymmetric nature of the Chi Squared distribution these two values will -not be the same, the difference in their calculation differs only in the -sign of /diff/ that's passed to `find_degrees_of_freedom`. Finally -in this example we'll simply things, and let risk level /beta/ be the -same as /alpha/: - - cout << "\n\n" - "_______________________________________________________________\n" - "Confidence Estimated Estimated\n" - " Value (%) Sample Size Sample Size\n" - " (lower one (upper one\n" - " sided test) sided test)\n" - "_______________________________________________________________\n"; - // - // Now print out the data for the table rows. - // - for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i) - { - // Confidence value: - cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]); - // calculate df for a lower single sided test: - double df = chi_squared::find_degrees_of_freedom( - -diff, alpha[i], alpha[i], variance); - // convert to sample size: - double size = ceil(df) + 1; - // Print size: - cout << fixed << setprecision(0) << setw(16) << right << size; - // calculate df for an upper single sided test: - df = chi_squared::find_degrees_of_freedom( - diff, alpha[i], alpha[i], variance); - // convert to sample size: - size = ceil(df) + 1; - // Print size: - cout << fixed << setprecision(0) << setw(16) << right << size << endl; - } - cout << endl; - -For some example output, consider the -[@http://www.itl.nist.gov/div898/handbook/prc/section2/prc23.htm -silicon wafer data] from the __handbook. -In this scenario a supplier of 100 ohm.cm silicon wafers claims -that his fabrication process can produce wafers with sufficient -consistency so that the standard deviation of resistivity for -the lot does not exceed 10 ohm.cm. A sample of N = 10 wafers taken -from the lot has a standard deviation of 13.97 ohm.cm, and the question -we ask ourselves is "How large would our sample have to be to reliably -detect this difference?". - -To use our procedure above, we have to convert the -standard deviations to variance (square them), -after which the program output looks like this: - -[pre''' -_____________________________________________________________ -Estimated sample sizes required for various confidence levels -_____________________________________________________________ - -True Variance = 100.00000 -Difference to detect = 95.16090 - - -_______________________________________________________________ -Confidence Estimated Estimated - Value (%) Sample Size Sample Size - (lower one (upper one - sided test) sided test) -_______________________________________________________________ - 50.000 2 2 - 75.000 2 10 - 90.000 4 32 - 95.000 5 51 - 99.000 7 99 - 99.900 11 174 - 99.990 15 251 - 99.999 20 330''' -] - -In this case we are interested in a upper single sided test. -So for example, if the maximum acceptable risk of falsely rejecting -the null-hypothesis is 0.05 (Type I error), and the maximum acceptable -risk of failing to reject the null-hypothesis is also 0.05 -(Type II error), we estimate that we would need a sample size of 51. - -[endsect] [/section:chi_sq_size Estimating the Required Sample Sizes for a Chi-Square Test for the Standard Deviation] - -[endsect] [/section:cs_eg Chi Squared Distribution] - -[/ - Copyright 2006, 2013 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/dist_algorithms.qbk b/boost/libs/math/doc/distributions/dist_algorithms.qbk deleted file mode 100644 index a29daeeb..00000000 --- a/boost/libs/math/doc/distributions/dist_algorithms.qbk +++ /dev/null @@ -1,78 +0,0 @@ -[section:dist_algorithms Distribution Algorithms] - -[h4 Finding the Location and Scale for Normal and similar distributions] - -Two functions aid finding location and scale of random variable z -to give probability p (given a scale or location). -Only applies to distributions like normal, lognormal, extreme value, Cauchy, (and symmetrical triangular), -that have scale and location properties. - -These functions are useful to predict the mean and/or standard deviation that will be needed to meet a specified minimum weight or maximum dose. - -Complement versions are also provided, both with explicit and implicit (default) policy. - - using boost::math::policies::policy; // May be needed by users defining their own policies. - using boost::math::complement; // Will be needed by users who want to use complements. - -[h4 find_location function] - -``#include `` - - namespace boost{ namespace math{ - - template // explicit error handling policy - typename Dist::value_type find_location( // For example, normal mean. - typename Dist::value_type z, // location of random variable z to give probability, P(X > z) == p. - // For example, a nominal minimum acceptable z, so that p * 100 % are > z - typename Dist::value_type p, // probability value desired at x, say 0.95 for 95% > z. - typename Dist::value_type scale, // scale parameter, for example, normal standard deviation. - const ``__Policy``& pol); - - template // with default policy. - typename Dist::value_type find_location( // For example, normal mean. - typename Dist::value_type z, // location of random variable z to give probability, P(X > z) == p. - // For example, a nominal minimum acceptable z, so that p * 100 % are > z - typename Dist::value_type p, // probability value desired at x, say 0.95 for 95% > z. - typename Dist::value_type scale); // scale parameter, for example, normal standard deviation. - - }} // namespaces - -[h4 find_scale function] - -``#include `` - - namespace boost{ namespace math{ - - template - typename Dist::value_type find_scale( // For example, normal mean. - typename Dist::value_type z, // location of random variable z to give probability, P(X > z) == p. - // For example, a nominal minimum acceptable weight z, so that p * 100 % are > z - typename Dist::value_type p, // probability value desired at x, say 0.95 for 95% > z. - typename Dist::value_type location, // location parameter, for example, normal distribution mean. - const ``__Policy``& pol); - - template // with default policy. - typename Dist::value_type find_scale( // For example, normal mean. - typename Dist::value_type z, // location of random variable z to give probability, P(X > z) == p. - // For example, a nominal minimum acceptable z, so that p * 100 % are > z - typename Dist::value_type p, // probability value desired at x, say 0.95 for 95% > z. - typename Dist::value_type location) // location parameter, for example, normal distribution mean. - }} // namespaces - -All argument must be finite, otherwise __domain_error is called. - -Probability arguments must be [0, 1], otherwise __domain_error is called. - -If the choice of arguments would give a negative scale, __domain_error is called, unless the policy is to ignore, when the negative (impossible) value of scale is returned. - -[link math_toolkit.stat_tut.weg.find_eg Find Mean and standard deviation examples] -gives simple examples of use of both find_scale and find_location, and a longer example finding means and standard deviations of normally distributed weights to meet a specification. - -[endsect] [/section:dist_algorithms dist_algorithms] - -[/ dist_algorithms.qbk - Copyright 2007 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/distributions/dist_reference.qbk b/boost/libs/math/doc/distributions/dist_reference.qbk deleted file mode 100644 index 3d5d82fe..00000000 --- a/boost/libs/math/doc/distributions/dist_reference.qbk +++ /dev/null @@ -1,147 +0,0 @@ -[section:dist_ref Statistical Distributions Reference] - -[include non_members.qbk] - -[section:dists Distributions] - -[include arcsine.qbk] -[include bernoulli.qbk] -[include beta.qbk] -[include binomial.qbk] -[include cauchy.qbk] -[include chi_squared.qbk] -[include exponential.qbk] -[include extreme_value.qbk] -[include fisher.qbk] -[include gamma.qbk] -[include geometric.qbk] -[include hyperexponential.qbk] -[include hypergeometric.qbk] -[include inverse_chi_squared.qbk] -[include inverse_gamma.qbk] -[include inverse_gaussian.qbk] -[include laplace.qbk] -[include logistic.qbk] -[include lognormal.qbk] -[include negative_binomial.qbk] -[include nc_beta.qbk] -[include nc_chi_squared.qbk] -[include nc_f.qbk] -[include nc_t.qbk] -[include normal.qbk] -[include pareto.qbk] -[include poisson.qbk] -[include rayleigh.qbk] -[include skew_normal.qbk] -[include students_t.qbk] -[include triangular.qbk] -[include uniform.qbk] -[include weibull.qbk] - -[endsect] [/section:dists Distributions] - -[include dist_algorithms.qbk] - -[endsect] [/section:dist_ref Statistical Distributions and Functions Reference] - - -[section:future Extras/Future Directions] - -[h4 Adding Additional Location and Scale Parameters] - -In some modelling applications we require a distribution -with a specific location and scale: -often this equates to a specific mean and standard deviation, although for many -distributions the relationship between these properties and the location and -scale parameters are non-trivial. See -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda364.htm http://www.itl.nist.gov/div898/handbook/eda/section3/eda364.htm] -for more information. - -The obvious way to handle this is via an adapter template: - - template - class scaled_distribution - { - scaled_distribution( - const Dist dist, - typename Dist::value_type location, - typename Dist::value_type scale = 0); - }; - -Which would then have its own set of overloads for the non-member accessor functions. - -[h4 An "any_distribution" class] - -It is easy to add a distribution object that virtualises -the actual type of the distribution, and can therefore hold "any" object -that conforms to the conceptual requirements of a distribution: - - template - class any_distribution - { - public: - template - any_distribution(const Distribution& d); - }; - - // Get the cdf of the underlying distribution: - template - RealType cdf(const any_distribution& d, RealType x); - // etc.... - -Such a class would facilitate the writing of non-template code that can -function with any distribution type. - -The [@http://sourceforge.net/projects/distexplorer/ Statistical Distribution Explorer] -utility for Windows is a usage example. - -It's not clear yet whether there is a compelling use case though. -Possibly tests for goodness of fit might -provide such a use case: this needs more investigation. - -[h4 Higher Level Hypothesis Tests] - -Higher-level tests roughly corresponding to the -[@http://documents.wolfram.com/mathematica/Add-onsLinks/StandardPackages/Statistics/HypothesisTests.html Mathematica Hypothesis Tests] -package could be added reasonably easily, for example: - - template - typename std::iterator_traits::value_type - test_equal_mean( - InputIterator a, - InputIterator b, - typename std::iterator_traits::value_type expected_mean); - -Returns the probability that the data in the sequence \[a,b) has the mean -/expected_mean/. - -[h4 Integration With Statistical Accumulators] - -[@http://boost-sandbox.sourceforge.net/libs/accumulators/doc/html/index.html -Eric Niebler's accumulator framework] - also work in progress - provides the means -to calculate various statistical properties from experimental data. There is an -opportunity to integrate the statistical tests with this framework at some later date: - - // Define an accumulator, all required statistics to calculate the test - // are calculated automatically: - accumulator_set > acc(expected_mean=4); - // Pass our data to the accumulator: - acc = std::for_each(mydata.begin(), mydata.end(), acc); - // Extract the result: - double p = probability(acc); - -[endsect] [/section:future Extras Future Directions] - -[/ dist_reference.qbk - Copyright 2006, 2010 John Maddock and Paul A. Bristow. - 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). -] - - - - - - - diff --git a/boost/libs/math/doc/distributions/dist_tutorial.qbk b/boost/libs/math/doc/distributions/dist_tutorial.qbk deleted file mode 100644 index 0d0e0dfd..00000000 --- a/boost/libs/math/doc/distributions/dist_tutorial.qbk +++ /dev/null @@ -1,459 +0,0 @@ -[/ def names all end in distrib to avoid clashes with names of functions] - -[def __binomial_distrib [link math_toolkit.dist_ref.dists.binomial_dist Binomial Distribution]] -[def __chi_squared_distrib [link math_toolkit.dist_ref.dists.chi_squared_dist Chi Squared Distribution]] -[def __normal_distrib [link math_toolkit.dist_ref.dists.normal_dist Normal Distribution]] -[def __F_distrib [link math_toolkit.dist_ref.dists.f_dist Fisher F Distribution]] -[def __students_t_distrib [link math_toolkit.dist_ref.dists.students_t_dist Students t Distribution]] - -[def __handbook [@http://www.itl.nist.gov/div898/handbook/ -NIST/SEMATECH e-Handbook of Statistical Methods.]] - -[section:stat_tut Statistical Distributions Tutorial] -This library is centred around statistical distributions, this tutorial -will give you an overview of what they are, how they can be used, and -provides a few worked examples of applying the library to statistical tests. - -[section:overview Overview of Distributions] - -[section:headers Headers and Namespaces] - -All the code in this library is inside namespace boost::math. - -In order to use a distribution /my_distribution/ you will need to include -either the header or -the "include all the distributions" header: . - -For example, to use the Students-t distribution include either - or - - -You also need to bring distribution names into scope, -perhaps with a `using namespace boost::math;` declaration, - -or specific `using` declarations like `using boost::math::normal;` (*recommended*). - -[caution Some math function names are also used in namespace std so including could cause ambiguity!] - -[endsect] [/ section:headers Headers and Namespaces] - -[section:objects Distributions are Objects] - -Each kind of distribution in this library is a class type - an object. - -[link policy Policies] provide fine-grained control -of the behaviour of these classes, allowing the user to customise -behaviour such as how errors are handled, or how the quantiles -of discrete distribtions behave. - -[tip If you are familiar with statistics libraries using functions, -and 'Distributions as Objects' seem alien, see -[link math_toolkit.stat_tut.weg.nag_library the comparison to -other statistics libraries.] -] [/tip] - -Making distributions class types does two things: - -* It encapsulates the kind of distribution in the C++ type system; -so, for example, Students-t distributions are always a different C++ type from -Chi-Squared distributions. -* The distribution objects store any parameters associated with the -distribution: for example, the Students-t distribution has a -['degrees of freedom] parameter that controls the shape of the distribution. -This ['degrees of freedom] parameter has to be provided -to the Students-t object when it is constructed. - -Although the distribution classes in this library are templates, there -are typedefs on type /double/ that mostly take the usual name of the -distribution -(except where there is a clash with a function of the same name: beta and gamma, -in which case using the default template arguments - `RealType = double` - -is nearly as convenient). -Probably 95% of uses are covered by these typedefs: - - // using namespace boost::math; // Avoid potential ambiguity with names in std - // Safer to declare specific functions with using statement(s): - - using boost::math::beta_distribution; - using boost::math::binomial_distribution; - using boost::math::students_t; - - // Construct a students_t distribution with 4 degrees of freedom: - students_t d1(4); - - // Construct a double-precision beta distribution - // with parameters a = 10, b = 20 - beta_distribution<> d2(10, 20); // Note: _distribution<> suffix ! - -If you need to use the distributions with a type other than `double`, -then you can instantiate the template directly: the names of the -templates are the same as the `double` typedef but with `_distribution` -appended, for example: __students_t_distrib or __binomial_distrib: - - // Construct a students_t distribution, of float type, - // with 4 degrees of freedom: - students_t_distribution d3(4); - - // Construct a binomial distribution, of long double type, - // with probability of success 0.3 - // and 20 trials in total: - binomial_distribution d4(20, 0.3); - -The parameters passed to the distributions can be accessed via getter member -functions: - - d1.degrees_of_freedom(); // returns 4.0 - -This is all well and good, but not very useful so far. What we often want -is to be able to calculate the /cumulative distribution functions/ and -/quantiles/ etc for these distributions. - -[endsect] [/section:objects Distributions are Objects] - - -[section:generic Generic operations common to all distributions are non-member functions] - -Want to calculate the PDF (Probability Density Function) of a distribution? -No problem, just use: - - pdf(my_dist, x); // Returns PDF (density) at point x of distribution my_dist. - -Or how about the CDF (Cumulative Distribution Function): - - cdf(my_dist, x); // Returns CDF (integral from -infinity to point x) - // of distribution my_dist. - -And quantiles are just the same: - - quantile(my_dist, p); // Returns the value of the random variable x - // such that cdf(my_dist, x) == p. - -If you're wondering why these aren't member functions, it's to -make the library more easily extensible: if you want to add additional -generic operations - let's say the /n'th moment/ - then all you have to -do is add the appropriate non-member functions, overloaded for each -implemented distribution type. - -[tip - -[*Random numbers that approximate Quantiles of Distributions] - -If you want random numbers that are distributed in a specific way, -for example in a uniform, normal or triangular, -see [@http://www.boost.org/libs/random/ Boost.Random]. - -Whilst in principal there's nothing to prevent you from using the -quantile function to convert a uniformly distributed random -number to another distribution, in practice there are much more -efficient algorithms available that are specific to random number generation. -] [/tip Random numbers that approximate Quantiles of Distributions] - -For example, the binomial distribution has two parameters: -n (the number of trials) and p (the probability of success on any one trial). - -The `binomial_distribution` constructor therefore has two parameters: - -`binomial_distribution(RealType n, RealType p);` - -For this distribution the __random_variate is k: the number of successes observed. -The probability density\/mass function (pdf) is therefore written as ['f(k; n, p)]. - -[note - -[*Random Variates and Distribution Parameters] - -The concept of a __random_variable is closely linked to the term __random_variate: -a random variate is a particular value (outcome) of a random variable. -and [@http://en.wikipedia.org/wiki/Parameter distribution parameters] -are conventionally distinguished (for example in Wikipedia and Wolfram MathWorld) -by placing a semi-colon or vertical bar) -/after/ the __random_variable (whose value you 'choose'), -to separate the variate from the parameter(s) that defines the shape of the distribution.[br] -For example, the binomial distribution probability distribution function (PDF) is written as -['f(k| n, p)] = Pr(K = k|n, p) = probability of observing k successes out of n trials. -K is the __random_variable, k is the __random_variate, -the parameters are n (trials) and p (probability). -] [/tip Random Variates and Distribution Parameters] - -[note By convention, __random_variate are lower case, usually k is integral, x if real, and -__random_variable are upper case, K if integral, X if real. But this implementation treats -all as floating point values `RealType`, so if you really want an integral result, -you must round: see note on Discrete Probability Distributions below for details.] - -As noted above the non-member function `pdf` has one parameter for the distribution object, -and a second for the random variate. So taking our binomial distribution -example, we would write: - -`pdf(binomial_distribution(n, p), k);` - -The ranges of __random_variate values that are permitted and are supported can be -tested by using two functions `range` and `support`. - -The distribution (effectively the __random_variate) is said to be 'supported' -over a range that is -[@http://en.wikipedia.org/wiki/Probability_distribution - "the smallest closed set whose complement has probability zero"]. -MathWorld uses the word 'defined' for this range. -Non-mathematicians might say it means the 'interesting' smallest range -of random variate x that has the cdf going from zero to unity. -Outside are uninteresting zones where the pdf is zero, and the cdf zero or unity. - -For most distributions, with probability distribution functions one might describe -as 'well-behaved', we have decided that it is most useful for the supported range -to *exclude* random variate values like exact zero *if the end point is discontinuous*. -For example, the Weibull (scale 1, shape 1) distribution smoothly heads for unity -as the random variate x declines towards zero. -But at x = zero, the value of the pdf is suddenly exactly zero, by definition. -If you are plotting the PDF, or otherwise calculating, -zero is not the most useful value for the lower limit of supported, as we discovered. -So for this, and similar distributions, -we have decided it is most numerically useful to use -the closest value to zero, min_value, for the limit of the supported range. -(The `range` remains from zero, so you will still get `pdf(weibull, 0) == 0`). -(Exponential and gamma distributions have similarly discontinuous functions). - -Mathematically, the functions may make sense with an (+ or -) infinite value, -but except for a few special cases (in the Normal and Cauchy distributions) -this implementation limits random variates to finite values from the `max` -to `min` for the `RealType`. -(See [link math_toolkit.sf_implementation.handling_of_floating_point_infin -Handling of Floating-Point Infinity] for rationale). - - -[note - -[*Discrete Probability Distributions] - -Note that the [@http://en.wikipedia.org/wiki/Discrete_probability_distribution -discrete distributions], including the binomial, negative binomial, Poisson & Bernoulli, -are all mathematically defined as discrete functions: -that is to say the functions `cdf` and `pdf` are only defined for integral values -of the random variate. - -However, because the method of calculation often uses continuous functions -it is convenient to treat them as if they were continuous functions, -and permit non-integral values of their parameters. - -Users wanting to enforce a strict mathematical model may use `floor` -or `ceil` functions on the random variate prior to calling the distribution -function. - -The quantile functions for these distributions are hard to specify -in a manner that will satisfy everyone all of the time. The default -behaviour is to return an integer result, that has been rounded -/outwards/: that is to say, lower quantiles - where the probablity -is less than 0.5 are rounded down, while upper quantiles - where -the probability is greater than 0.5 - are rounded up. This behaviour -ensures that if an X% quantile is requested, then /at least/ the requested -coverage will be present in the central region, and /no more than/ -the requested coverage will be present in the tails. - -This behaviour can be changed so that the quantile functions are rounded -differently, or return a real-valued result using -[link math_toolkit.pol_overview Policies]. It is strongly -recommended that you read the tutorial -[link math_toolkit.pol_tutorial.understand_dis_quant -Understanding Quantiles of Discrete Distributions] before -using the quantile function on a discrete distribtion. The -[link math_toolkit.pol_ref.discrete_quant_ref reference docs] -describe how to change the rounding policy -for these distributions. - -For similar reasons continuous distributions with parameters like -"degrees of freedom" -that might appear to be integral, are treated as real values -(and are promoted from integer to floating-point if necessary). -In this case however, there are a small number of situations where non-integral -degrees of freedom do have a genuine meaning. -] - -[endsect] [/ section:generic Generic operations common to all distributions are non-member functions] - -[section:complements Complements are supported too - and when to use them] - -Often you don't want the value of the CDF, but its complement, which is -to say `1-p` rather than `p`. It is tempting to calculate the CDF and subtract -it from `1`, but if `p` is very close to `1` then cancellation error -will cause you to lose accuracy, perhaps totally. - -[link why_complements See below ['"Why and when to use complements?"]] - -In this library, whenever you want to receive a complement, just wrap -all the function arguments in a call to `complement(...)`, for example: - - students_t dist(5); - cout << "CDF at t = 1 is " << cdf(dist, 1.0) << endl; - cout << "Complement of CDF at t = 1 is " << cdf(complement(dist, 1.0)) << endl; - -But wait, now that we have a complement, we have to be able to use it as well. -Any function that accepts a probability as an argument can also accept a complement -by wrapping all of its arguments in a call to `complement(...)`, for example: - - students_t dist(5); - - for(double i = 10; i < 1e10; i *= 10) - { - // Calculate the quantile for a 1 in i chance: - double t = quantile(complement(dist, 1/i)); - // Print it out: - cout << "Quantile of students-t with 5 degrees of freedom\n" - "for a 1 in " << i << " chance is " << t << endl; - } - -[tip - -[*Critical values are just quantiles] - -Some texts talk about quantiles, or percentiles or fractiles, -others about critical values, the basic rule is: - -['Lower critical values] are the same as the quantile. - -['Upper critical values] are the same as the quantile from the complement -of the probability. - -For example, suppose we have a Bernoulli process, giving rise to a binomial -distribution with success ratio 0.1 and 100 trials in total. The -['lower critical value] for a probability of 0.05 is given by: - -`quantile(binomial(100, 0.1), 0.05)` - -and the ['upper critical value] is given by: - -`quantile(complement(binomial(100, 0.1), 0.05))` - -which return 4.82 and 14.63 respectively. -] - -[#why_complements] -[tip - -[*Why bother with complements anyway?] - -It's very tempting to dispense with complements, and simply subtract -the probability from 1 when required. However, consider what happens when -the probability is very close to 1: let's say the probability expressed at -float precision is `0.999999940f`, then `1 - 0.999999940f = 5.96046448e-008`, -but the result is actually accurate to just ['one single bit]: the only -bit that didn't cancel out! - -Or to look at this another way: consider that we want the risk of falsely -rejecting the null-hypothesis in the Student's t test to be 1 in 1 billion, -for a sample size of 10,000. -This gives a probability of 1 - 10[super -9], which is exactly 1 when -calculated at float precision. In this case calculating the quantile from -the complement neatly solves the problem, so for example: - -`quantile(complement(students_t(10000), 1e-9))` - -returns the expected t-statistic `6.00336`, where as: - -`quantile(students_t(10000), 1-1e-9f)` - -raises an overflow error, since it is the same as: - -`quantile(students_t(10000), 1)` - -Which has no finite result. - -With all distributions, even for more reasonable probability -(unless the value of p can be represented exactly in the floating-point type) -the loss of accuracy quickly becomes significant if you simply calculate probability from 1 - p -(because it will be mostly garbage digits for p ~ 1). - -So always avoid, for example, using a probability near to unity like 0.99999 - -`quantile(my_distribution, 0.99999)` - -and instead use - -`quantile(complement(my_distribution, 0.00001))` - -since 1 - 0.99999 is not exactly equal to 0.00001 when using floating-point arithmetic. - -This assumes that the 0.00001 value is either a constant, -or can be computed by some manner other than subtracting 0.99999 from 1. - -] [/ tip *Why bother with complements anyway?] - -[endsect] [/ section:complements Complements are supported too - and why] - -[section:parameters Parameters can be calculated] - -Sometimes it's the parameters that define the distribution that you -need to find. Suppose, for example, you have conducted a Students-t test -for equal means and the result is borderline. Maybe your two samples -differ from each other, or maybe they don't; based on the result -of the test you can't be sure. A legitimate question to ask then is -"How many more measurements would I have to take before I would get -an X% probability that the difference is real?" Parameter finders -can answer questions like this, and are necessarily different for -each distribution. They are implemented as static member functions -of the distributions, for example: - - students_t::find_degrees_of_freedom( - 1.3, // difference from true mean to detect - 0.05, // maximum risk of falsely rejecting the null-hypothesis. - 0.1, // maximum risk of falsely failing to reject the null-hypothesis. - 0.13); // sample standard deviation - -Returns the number of degrees of freedom required to obtain a 95% -probability that the observed differences in means is not down to -chance alone. In the case that a borderline Students-t test result -was previously obtained, this can be used to estimate how large the sample size -would have to become before the observed difference was considered -significant. It assumes, of course, that the sample mean and standard -deviation are invariant with sample size. - -[endsect] [/ section:parameters Parameters can be calculated] - -[section:summary Summary] - -* Distributions are objects, which are constructed from whatever -parameters the distribution may have. -* Member functions allow you to retrieve the parameters of a distribution. -* Generic non-member functions provide access to the properties that -are common to all the distributions (PDF, CDF, quantile etc). -* Complements of probabilities are calculated by wrapping the function's -arguments in a call to `complement(...)`. -* Functions that accept a probability can accept a complement of the -probability as well, by wrapping the function's -arguments in a call to `complement(...)`. -* Static member functions allow the parameters of a distribution -to be found from other information. - -Now that you have the basics, the next section looks at some worked examples. - -[endsect] [/section:summary Summary] -[endsect] [/section:overview Overview] - -[section:weg Worked Examples] -[include distribution_construction.qbk] -[include students_t_examples.qbk] -[include chi_squared_examples.qbk] -[include f_dist_example.qbk] -[include binomial_example.qbk] -[include geometric_example.qbk] -[include negative_binomial_example.qbk] -[include normal_example.qbk] -[/include inverse_gamma_example.qbk] -[/include inverse_gaussian_example.qbk] -[include inverse_chi_squared_eg.qbk] -[include nc_chi_squared_example.qbk] -[include error_handling_example.qbk] -[include find_location_and_scale.qbk] -[include nag_library.qbk] -[include c_sharp.qbk] -[endsect] [/section:weg Worked Examples] - -[include background.qbk] - -[endsect] [/ section:stat_tut Statistical Distributions Tutorial] - -[/ dist_tutorial.qbk - Copyright 2006, 2010, 2011 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/distribution_construction.qbk b/boost/libs/math/doc/distributions/distribution_construction.qbk deleted file mode 100644 index 169af6bb..00000000 --- a/boost/libs/math/doc/distributions/distribution_construction.qbk +++ /dev/null @@ -1,17 +0,0 @@ -[section:dist_construct_eg Distribution Construction Examples] - -[import ../../example/distribution_construction.cpp] -[distribution_construction_1] -[distribution_construction_2] - -See [@../../example/distribution_construction.cpp distribution_construction.cpp] for full source code. - -[endsect] [/section:dist_construct_eg Distribution Construction Examples] - -[/ - Copyright 2006, 2012 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/error_handling_example.qbk b/boost/libs/math/doc/distributions/error_handling_example.qbk deleted file mode 100644 index 0a68607f..00000000 --- a/boost/libs/math/doc/distributions/error_handling_example.qbk +++ /dev/null @@ -1,35 +0,0 @@ -[section:error_eg Error Handling Example] - -See [link math_toolkit.error_handling error handling documentation] -for a detailed explanation of the mechanism of handling errors, -including the common "bad" arguments to distributions and functions, -and how to use __policy_section to control it. - -But, by default, *exceptions will be raised*, for domain errors, -pole errors, numeric overflow, and internal evaluation errors. -To avoid the exceptions from getting thrown and instead get -an appropriate value returned, usually a NaN (domain errors -pole errors or internal errors), or infinity (from overflow), -you need to change the policy. - -[import ../../example/error_handling_example.cpp] - -[error_handling_example] - -[caution If throwing of exceptions is enabled (the default) but -you do *not* have try & catch block, -then the program will terminate with an uncaught exception and probably abort. - -Therefore to get the benefit of helpful error messages, enabling *all exceptions -and using try & catch* is recommended for most applications. - -However, for simplicity, the is not done for most examples.] - -[endsect] [/section:error_eg Error Handling Example] -[/ - Copyright 2007 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/exponential.qbk b/boost/libs/math/doc/distributions/exponential.qbk deleted file mode 100644 index af83a297..00000000 --- a/boost/libs/math/doc/distributions/exponential.qbk +++ /dev/null @@ -1,108 +0,0 @@ -[section:exp_dist Exponential Distribution] - -``#include `` - - template - class exponential_distribution; - - typedef exponential_distribution<> exponential; - - template - class exponential_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - exponential_distribution(RealType lambda = 1); - - RealType lambda()const; - }; - - -The [@http://en.wikipedia.org/wiki/Exponential_distribution exponential distribution] -is a [@http://en.wikipedia.org/wiki/Probability_distribution continuous probability distribution] -with PDF: - -[equation exponential_dist_ref1] - -It is often used to model the time between independent -events that happen at a constant average rate. - -The following graph shows how the distribution changes for different -values of the rate parameter lambda: - -[graph exponential_pdf] - -[h4 Member Functions] - - exponential_distribution(RealType lambda = 1); - -Constructs an -[@http://en.wikipedia.org/wiki/Exponential_distribution Exponential distribution] -with parameter /lambda/. -Lambda is defined as the reciprocal of the scale parameter. - -Requires lambda > 0, otherwise calls __domain_error. - - RealType lambda()const; - -Accessor function returns the lambda parameter of the distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain of the random variable is \[0, +[infin]\]. - -[h4 Accuracy] - -The exponential distribution is implemented in terms of the -standard library functions `exp`, `log`, `log1p` and `expm1` -and as such should have very low error rates. - -[h4 Implementation] - -In the following table [lambda] is the parameter lambda of the distribution, -/x/ is the random variate, /p/ is the probability and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = [lambda] * exp(-[lambda] * x) ]] -[[cdf][Using the relation: p = 1 - exp(-x * [lambda]) = -expm1(-x * [lambda]) ]] -[[cdf complement][Using the relation: q = exp(-x * [lambda]) ]] -[[quantile][Using the relation: x = -log(1-p) / [lambda] = -log1p(-p) / [lambda]]] -[[quantile from the complement][Using the relation: x = -log(q) / [lambda]]] -[[mean][1/[lambda]]] -[[standard deviation][1/[lambda]]] -[[mode][0]] -[[skewness][2]] -[[kurtosis][9]] -[[kurtosis excess][6]] -] - -[h4 references] - -* [@http://mathworld.wolfram.com/ExponentialDistribution.html Weisstein, Eric W. "Exponential Distribution." From MathWorld--A Wolfram Web Resource] -* [@http://documents.wolfram.com/calccenter/Functions/ListsMatrices/Statistics/ExponentialDistribution.html Wolfram Mathematica calculator] -* [@http://www.itl.nist.gov/div898/handbook/eda/section3/eda3667.htm NIST Exploratory Data Analysis] -* [@http://en.wikipedia.org/wiki/Exponential_distribution Wikipedia Exponential distribution] - -(See also the reference documentation for the related __extreme_distrib.) - -* -[@http://www.worldscibooks.com/mathematics/p191.html Extreme Value Distributions, Theory and Applications -Samuel Kotz & Saralees Nadarajah] -discuss the relationship of the types of extreme value distributions. - -[endsect][/section:exp_dist Exponential] - -[/ exponential.qbk - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/extreme_value.qbk b/boost/libs/math/doc/distributions/extreme_value.qbk deleted file mode 100644 index affc509f..00000000 --- a/boost/libs/math/doc/distributions/extreme_value.qbk +++ /dev/null @@ -1,119 +0,0 @@ -[section:extreme_dist Extreme Value Distribution] - -``#include `` - - template - class extreme_value_distribution; - - typedef extreme_value_distribution<> extreme_value; - - template - class extreme_value_distribution - { - public: - typedef RealType value_type; - - extreme_value_distribution(RealType location = 0, RealType scale = 1); - - RealType scale()const; - RealType location()const; - }; - -There are various -[@http://mathworld.wolfram.com/ExtremeValueDistribution.html extreme value distributions] -: this implementation represents the maximum case, -and is variously known as a Fisher-Tippett distribution, -a log-Weibull distribution or a Gumbel distribution. - -Extreme value theory is important for assessing risk for highly unusual events, -such as 100-year floods. - -More information can be found on the -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda366g.htm NIST], -[@http://en.wikipedia.org/wiki/Extreme_value_distribution Wikipedia], -[@http://mathworld.wolfram.com/ExtremeValueDistribution.html Mathworld], -and [@http://en.wikipedia.org/wiki/Extreme_value_theory Extreme value theory] -websites. - -The relationship of the types of extreme value distributions, of which this is but one, is -discussed by -[@http://www.worldscibooks.com/mathematics/p191.html Extreme Value Distributions, Theory and Applications -Samuel Kotz & Saralees Nadarajah]. - -The distribution has a PDF given by: - -f(x) = (1/scale) e[super -(x-location)/scale] e[super -e[super -(x-location)/scale]] - -Which in the standard case (scale = 1, location = 0) reduces to: - -f(x) = e[super -x]e[super -e[super -x]] - -The following graph illustrates how the PDF varies with the location parameter: - -[graph extreme_value_pdf1] - -And this graph illustrates how the PDF varies with the shape parameter: - -[graph extreme_value_pdf2] - -[h4 Member Functions] - - extreme_value_distribution(RealType location = 0, RealType scale = 1); - -Constructs an Extreme Value distribution with the specified location and scale -parameters. - -Requires `scale > 0`, otherwise calls __domain_error. - - RealType location()const; - -Returns the location parameter of the distribution. - - RealType scale()const; - -Returns the scale parameter of the distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain of the random parameter is \[-[infin], +[infin]\]. - -[h4 Accuracy] - -The extreme value distribution is implemented in terms of the -standard library `exp` and `log` functions and as such should have very low -error rates. - -[h4 Implementation] - -In the following table: -/a/ is the location parameter, /b/ is the scale parameter, -/x/ is the random variate, /p/ is the probability and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = exp((a-x)/b) * exp(-exp((a-x)/b)) / b ]] -[[cdf][Using the relation: p = exp(-exp((a-x)/b)) ]] -[[cdf complement][Using the relation: q = -expm1(-exp((a-x)/b)) ]] -[[quantile][Using the relation: a - log(-log(p)) * b]] -[[quantile from the complement][Using the relation: a - log(-log1p(-q)) * b]] -[[mean][a + [@http://en.wikipedia.org/wiki/Euler-Mascheroni_constant Euler-Mascheroni-constant] * b]] -[[standard deviation][pi * b / sqrt(6)]] -[[mode][The same as the location parameter /a/.]] -[[skewness][12 * sqrt(6) * zeta(3) / pi[super 3] ]] -[[kurtosis][27 / 5]] -[[kurtosis excess][kurtosis - 3 or 12 / 5]] -] - -[endsect][/section:extreme_dist Extreme Value] - -[/ extreme_value.qbk - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/f_dist_example.qbk b/boost/libs/math/doc/distributions/f_dist_example.qbk deleted file mode 100644 index 1601199b..00000000 --- a/boost/libs/math/doc/distributions/f_dist_example.qbk +++ /dev/null @@ -1,220 +0,0 @@ -[section:f_eg F Distribution Examples] - -Imagine that you want to compare the standard deviations of two -sample to determine if they differ in any significant way, in this -situation you use the F distribution and perform an F-test. This -situation commonly occurs when conducting a process change comparison: -"is a new process more consistent that the old one?". - -In this example we'll be using the data for ceramic strength from -[@http://www.itl.nist.gov/div898/handbook/eda/section4/eda42a1.htm -http://www.itl.nist.gov/div898/handbook/eda/section4/eda42a1.htm]. -The data for this case study were collected by Said Jahanmir of the -NIST Ceramics Division in 1996 in connection with a NIST/industry -ceramics consortium for strength optimization of ceramic strength. - -The example program is [@../../example/f_test.cpp f_test.cpp], -program output has been deliberately made as similar as possible -to the DATAPLOT output in the corresponding -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda359.htm -NIST EngineeringStatistics Handbook example]. - -We'll begin by defining the procedure to conduct the test: - - void f_test( - double sd1, // Sample 1 std deviation - double sd2, // Sample 2 std deviation - double N1, // Sample 1 size - double N2, // Sample 2 size - double alpha) // Significance level - { - -The procedure begins by printing out a summary of our input data: - - using namespace std; - using namespace boost::math; - - // Print header: - cout << - "____________________________________\n" - "F test for equal standard deviations\n" - "____________________________________\n\n"; - cout << setprecision(5); - cout << "Sample 1:\n"; - cout << setw(55) << left << "Number of Observations" << "= " << N1 << "\n"; - cout << setw(55) << left << "Sample Standard Deviation" << "= " << sd1 << "\n\n"; - cout << "Sample 2:\n"; - cout << setw(55) << left << "Number of Observations" << "= " << N2 << "\n"; - cout << setw(55) << left << "Sample Standard Deviation" << "= " << sd2 << "\n\n"; - -The test statistic for an F-test is simply the ratio of the square of -the two standard deviations: - -F = s[sub 1][super 2] / s[sub 2][super 2] - -where s[sub 1] is the standard deviation of the first sample and s[sub 2] -is the standard deviation of the second sample. Or in code: - - double F = (sd1 / sd2); - F *= F; - cout << setw(55) << left << "Test Statistic" << "= " << F << "\n\n"; - -At this point a word of caution: the F distribution is asymmetric, -so we have to be careful how we compute the tests, the following table -summarises the options available: - -[table -[[Hypothesis][Test]] -[[The null-hypothesis: there is no difference in standard deviations (two sided test)] - [Reject if F <= F[sub (1-alpha/2; N1-1, N2-1)] or F >= F[sub (alpha/2; N1-1, N2-1)] ]] -[[The alternative hypothesis: there is a difference in means (two sided test)] - [Reject if F[sub (1-alpha/2; N1-1, N2-1)] <= F <= F[sub (alpha/2; N1-1, N2-1)] ]] -[[The alternative hypothesis: Standard deviation of sample 1 is greater -than that of sample 2] - [Reject if F < F[sub (alpha; N1-1, N2-1)] ]] -[[The alternative hypothesis: Standard deviation of sample 1 is less -than that of sample 2] - [Reject if F > F[sub (1-alpha; N1-1, N2-1)] ]] -] - -Where F[sub (1-alpha; N1-1, N2-1)] is the lower critical value of the F distribution -with degrees of freedom N1-1 and N2-1, and F[sub (alpha; N1-1, N2-1)] is the upper -critical value of the F distribution with degrees of freedom N1-1 and N2-1. - -The upper and lower critical values can be computed using the quantile function: - -F[sub (1-alpha; N1-1, N2-1)] = `quantile(fisher_f(N1-1, N2-1), alpha)` - -F[sub (alpha; N1-1, N2-1)] = `quantile(complement(fisher_f(N1-1, N2-1), alpha))` - -In our example program we need both upper and lower critical values for alpha -and for alpha/2: - - double ucv = quantile(complement(dist, alpha)); - double ucv2 = quantile(complement(dist, alpha / 2)); - double lcv = quantile(dist, alpha); - double lcv2 = quantile(dist, alpha / 2); - cout << setw(55) << left << "Upper Critical Value at alpha: " << "= " - << setprecision(3) << scientific << ucv << "\n"; - cout << setw(55) << left << "Upper Critical Value at alpha/2: " << "= " - << setprecision(3) << scientific << ucv2 << "\n"; - cout << setw(55) << left << "Lower Critical Value at alpha: " << "= " - << setprecision(3) << scientific << lcv << "\n"; - cout << setw(55) << left << "Lower Critical Value at alpha/2: " << "= " - << setprecision(3) << scientific << lcv2 << "\n\n"; - -The final step is to perform the comparisons given above, and print -out whether the hypothesis is rejected or not: - - cout << setw(55) << left << - "Results for Alternative Hypothesis and alpha" << "= " - << setprecision(4) << fixed << alpha << "\n\n"; - cout << "Alternative Hypothesis Conclusion\n"; - - cout << "Standard deviations are unequal (two sided test) "; - if((ucv2 < F) || (lcv2 > F)) - cout << "ACCEPTED\n"; - else - cout << "REJECTED\n"; - - cout << "Standard deviation 1 is less than standard deviation 2 "; - if(lcv > F) - cout << "ACCEPTED\n"; - else - cout << "REJECTED\n"; - - cout << "Standard deviation 1 is greater than standard deviation 2 "; - if(ucv < F) - cout << "ACCEPTED\n"; - else - cout << "REJECTED\n"; - cout << endl << endl; - -Using the ceramic strength data as an example we get the following -output: - -[pre -'''F test for equal standard deviations -____________________________________ - -Sample 1: -Number of Observations = 240 -Sample Standard Deviation = 65.549 - -Sample 2: -Number of Observations = 240 -Sample Standard Deviation = 61.854 - -Test Statistic = 1.123 - -CDF of test statistic: = 8.148e-001 -Upper Critical Value at alpha: = 1.238e+000 -Upper Critical Value at alpha/2: = 1.289e+000 -Lower Critical Value at alpha: = 8.080e-001 -Lower Critical Value at alpha/2: = 7.756e-001 - -Results for Alternative Hypothesis and alpha = 0.0500 - -Alternative Hypothesis Conclusion -Standard deviations are unequal (two sided test) REJECTED -Standard deviation 1 is less than standard deviation 2 REJECTED -Standard deviation 1 is greater than standard deviation 2 REJECTED''' -] - -In this case we are unable to reject the null-hypothesis, and must instead -reject the alternative hypothesis. - -By contrast let's see what happens when we use some different -[@http://www.itl.nist.gov/div898/handbook/prc/section3/prc32.htm -sample data]:, once again from the NIST Engineering Statistics Handbook: -A new procedure to assemble a device is introduced and tested for -possible improvement in time of assembly. The question being addressed -is whether the standard deviation of the new assembly process (sample 2) is -better (i.e., smaller) than the standard deviation for the old assembly -process (sample 1). - -[pre -'''____________________________________ -F test for equal standard deviations -____________________________________ - -Sample 1: -Number of Observations = 11.00000 -Sample Standard Deviation = 4.90820 - -Sample 2: -Number of Observations = 9.00000 -Sample Standard Deviation = 2.58740 - -Test Statistic = 3.59847 - -CDF of test statistic: = 9.589e-001 -Upper Critical Value at alpha: = 3.347e+000 -Upper Critical Value at alpha/2: = 4.295e+000 -Lower Critical Value at alpha: = 3.256e-001 -Lower Critical Value at alpha/2: = 2.594e-001 - -Results for Alternative Hypothesis and alpha = 0.0500 - -Alternative Hypothesis Conclusion -Standard deviations are unequal (two sided test) REJECTED -Standard deviation 1 is less than standard deviation 2 REJECTED -Standard deviation 1 is greater than standard deviation 2 ACCEPTED''' -] - -In this case we take our null hypothesis as "standard deviation 1 is -less than or equal to standard deviation 2", since this represents the "no change" -situation. So we want to compare the upper critical value at /alpha/ -(a one sided test) with the test statistic, and since 3.35 < 3.6 this -hypothesis must be rejected. We therefore conclude that there is a change -for the better in our standard deviation. - -[endsect][/section:f_eg F Distribution] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/find_location_and_scale.qbk b/boost/libs/math/doc/distributions/find_location_and_scale.qbk deleted file mode 100644 index b722aec1..00000000 --- a/boost/libs/math/doc/distributions/find_location_and_scale.qbk +++ /dev/null @@ -1,39 +0,0 @@ -[section:find_eg Find Location and Scale Examples] - -[section:find_location_eg Find Location (Mean) Example] -[import ../../example/find_location_example.cpp] -[find_location1] -[find_location2] -See [@../../example/find_location_example.cpp find_location_example.cpp] -for full source code: the program output looks like this: -[find_location_example_output] -[endsect] [/section:find_location_eg Find Location (Mean) Example] - -[section:find_scale_eg Find Scale (Standard Deviation) Example] -[import ../../example/find_scale_example.cpp] -[find_scale1] -[find_scale2] -See [@../../example/find_scale_example.cpp find_scale_example.cpp] -for full source code: the program output looks like this: -[find_scale_example_output] -[endsect] [/section:find_scale_eg Scale (Standard Deviation) Example] -[section:find_mean_and_sd_eg Find mean and standard deviation example] - -[import ../../example/find_mean_and_sd_normal.cpp] -[normal_std] -[normal_find_location_and_scale_eg] -See [@../../example/find_mean_and_sd_normal.cpp find_mean_and_sd_normal.cpp] -for full source code & appended program output. -[endsect] [/find_mean_and_sd_eg Find mean and standard deviation example] - -[endsect] [/section:find_eg Find Location and Scale Examples] - - - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/fisher.qbk b/boost/libs/math/doc/distributions/fisher.qbk deleted file mode 100644 index f09388d2..00000000 --- a/boost/libs/math/doc/distributions/fisher.qbk +++ /dev/null @@ -1,190 +0,0 @@ -[section:f_dist F Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class fisher_f_distribution; - - typedef fisher_f_distribution<> fisher_f; - - template - class fisher_f_distribution - { - public: - typedef RealType value_type; - - // Construct: - fisher_f_distribution(const RealType& i, const RealType& j); - - // Accessors: - RealType degrees_of_freedom1()const; - RealType degrees_of_freedom2()const; - }; - - }} //namespaces - -The F distribution is a continuous distribution that arises when testing -whether two samples have the same variance. If [chi][super 2][sub m][space] and -[chi][super 2][sub n][space] are independent variates each distributed as -Chi-Squared with /m/ and /n/ degrees of freedom, then the test statistic: - -F[sub n,m][space] = ([chi][super 2][sub n][space] / n) / ([chi][super 2][sub m][space] / m) - -Is distributed over the range \[0, [infin]\] with an F distribution, and -has the PDF: - -[equation fisher_pdf] - -The following graph illustrates how the PDF varies depending on the -two degrees of freedom parameters. - -[graph fisher_f_pdf] - - -[h4 Member Functions] - - fisher_f_distribution(const RealType& df1, const RealType& df2); - -Constructs an F-distribution with numerator degrees of freedom /df1/ -and denominator degrees of freedom /df2/. - -Requires that /df1/ and /df2/ are both greater than zero, otherwise __domain_error -is called. - - RealType degrees_of_freedom1()const; - -Returns the numerator degrees of freedom parameter of the distribution. - - RealType degrees_of_freedom2()const; - -Returns the denominator degrees of freedom parameter of the distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain of the random variable is \[0, +[infin]\]. - -[h4 Examples] - -Various [link math_toolkit.stat_tut.weg.f_eg worked examples] are -available illustrating the use of the F Distribution. - -[h4 Accuracy] - -The normal distribution is implemented in terms of the -[link math_toolkit.sf_beta.ibeta_function incomplete beta function] -and its [link math_toolkit.sf_beta.ibeta_inv_function inverses], -refer to those functions for accuracy data. - -[h4 Implementation] - -In the following table /v1/ and /v2/ are the first and second -degrees of freedom parameters of the distribution, -/x/ is the random variate, /p/ is the probability, and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][The usual form of the PDF is given by: - -[equation fisher_pdf] - -However, that form is hard to evaluate directly without incurring problems with -either accuracy or numeric overflow. - -Direct differentiation of the CDF expressed in terms of the incomplete beta function - -led to the following two formulas: - -f[sub v1,v2](x) = y * __ibeta_derivative(v2 \/ 2, v1 \/ 2, v2 \/ (v2 + v1 * x)) - -with y = (v2 * v1) \/ ((v2 + v1 * x) * (v2 + v1 * x)) - -and - -f[sub v1,v2](x) = y * __ibeta_derivative(v1 \/ 2, v2 \/ 2, v1 * x \/ (v2 + v1 * x)) - -with y = (z * v1 - x * v1 * v1) \/ z[super 2] - -and z = v2 + v1 * x - -The first of these is used for v1 * x > v2, otherwise the second is used. - -The aim is to keep the /x/ argument to __ibeta_derivative away from 1 to avoid -rounding error. ]] -[[cdf][Using the relations: - -p = __ibeta(v1 \/ 2, v2 \/ 2, v1 * x \/ (v2 + v1 * x)) - -and - -p = __ibetac(v2 \/ 2, v1 \/ 2, v2 \/ (v2 + v1 * x)) - -The first is used for v1 * x > v2, otherwise the second is used. - -The aim is to keep the /x/ argument to __ibeta well away from 1 to -avoid rounding error. ]] - -[[cdf complement][Using the relations: - -p = __ibetac(v1 \/ 2, v2 \/ 2, v1 * x \/ (v2 + v1 * x)) - -and - -p = __ibeta(v2 \/ 2, v1 \/ 2, v2 \/ (v2 + v1 * x)) - -The first is used for v1 * x < v2, otherwise the second is used. - -The aim is to keep the /x/ argument to __ibeta well away from 1 to -avoid rounding error. ]] -[[quantile][Using the relation: - -x = v2 * a \/ (v1 * b) - -where: - -a = __ibeta_inv(v1 \/ 2, v2 \/ 2, p) - -and - -b = 1 - a - -Quantities /a/ and /b/ are both computed by __ibeta_inv without the -subtraction implied above.]] -[[quantile - -from the complement][Using the relation: - -x = v2 * a \/ (v1 * b) - -where - -a = __ibetac_inv(v1 \/ 2, v2 \/ 2, p) - -and - -b = 1 - a - -Quantities /a/ and /b/ are both computed by __ibetac_inv without the -subtraction implied above.]] -[[mean][v2 \/ (v2 - 2)]] -[[variance][2 * v2[super 2 ] * (v1 + v2 - 2) \/ (v1 * (v2 - 2) * (v2 - 2) * (v2 - 4))]] -[[mode][v2 * (v1 - 2) \/ (v1 * (v2 + 2))]] -[[skewness][2 * (v2 + 2 * v1 - 2) * sqrt((2 * v2 - 8) \/ (v1 * (v2 + v1 - 2))) \/ (v2 - 6)]] -[[kurtosis and kurtosis excess] - [Refer to, [@http://mathworld.wolfram.com/F-Distribution.html - Weisstein, Eric W. "F-Distribution." From MathWorld--A Wolfram Web Resource.] ]] -] - -[endsect][/section:f_dist F distribution] - -[/ fisher.qbk - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/distributions/gamma.qbk b/boost/libs/math/doc/distributions/gamma.qbk deleted file mode 100644 index 11b2be3e..00000000 --- a/boost/libs/math/doc/distributions/gamma.qbk +++ /dev/null @@ -1,139 +0,0 @@ -[section:gamma_dist Gamma (and Erlang) Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class gamma_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - gamma_distribution(RealType shape, RealType scale = 1) - - RealType shape()const; - RealType scale()const; - }; - - }} // namespaces - -The gamma distribution is a continuous probability distribution. -When the shape parameter is an integer then it is known as the -Erlang Distribution. It is also closely related to the Poisson -and Chi Squared Distributions. - -When the shape parameter has an integer value, the distribution is the -[@http://en.wikipedia.org/wiki/Erlang_distribution Erlang distribution]. -Since this can be produced by ensuring that the shape parameter has an -integer value > 0, the Erlang distribution is not separately implemented. - -[note -To avoid potential confusion with the gamma functions, this -distribution does not provide the typedef: - -``typedef gamma_distribution gamma;`` - -Instead if you want a double precision gamma distribution you can write - -``boost::math::gamma_distribution<> my_gamma(1, 1);`` -] - -For shape parameter /k/ and scale parameter [theta][space] it is defined by the -probability density function: - -[equation gamma_dist_ref1] - -Sometimes an alternative formulation is used: given parameters -[alpha][space]= k and [beta][space]= 1 / [theta], then the -distribution can be defined by the PDF: - -[equation gamma_dist_ref2] - -In this form the inverse scale parameter is called a /rate parameter/. - -Both forms are in common usage: this library uses the first definition -throughout. Therefore to construct a Gamma Distribution from a ['rate -parameter], you should pass the reciprocal of the rate as the scale parameter. - -The following two graphs illustrate how the PDF of the gamma distribution -varies as the parameters vary: - -[graph gamma1_pdf] - -[graph gamma2_pdf] - -The [*Erlang Distribution] is the same as the Gamma, but with the shape parameter -an integer. It is often expressed using a /rate/ rather than a /scale/ as the -second parameter (remember that the rate is the reciprocal of the scale). - -Internally the functions used to implement the Gamma Distribution are -already optimised for small-integer arguments, so in general there should -be no great loss of performance from using a Gamma Distribution rather than -a dedicated Erlang Distribution. - -[h4 Member Functions] - - gamma_distribution(RealType shape, RealType scale = 1); - -Constructs a gamma distribution with shape /shape/ and -scale /scale/. - -Requires that the shape and scale parameters are greater than zero, otherwise calls -__domain_error. - - RealType shape()const; - -Returns the /shape/ parameter of this distribution. - - RealType scale()const; - -Returns the /scale/ parameter of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variable is \[0,+[infin]\]. - -[h4 Accuracy] - -The lognormal distribution is implemented in terms of the -incomplete gamma functions __gamma_p and __gamma_q and their -inverses __gamma_p_inv and __gamma_q_inv: refer to the accuracy -data for those functions for more information. - -[h4 Implementation] - -In the following table /k/ is the shape parameter of the distribution, -[theta][space] is its scale parameter, /x/ is the random variate, /p/ is the probability -and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = __gamma_p_derivative(k, x / [theta]) / [theta] ]] -[[cdf][Using the relation: p = __gamma_p(k, x / [theta]) ]] -[[cdf complement][Using the relation: q = __gamma_q(k, x / [theta]) ]] -[[quantile][Using the relation: x = [theta][space]* __gamma_p_inv(k, p) ]] -[[quantile from the complement][Using the relation: x = [theta][space]* __gamma_q_inv(k, p) ]] -[[mean][k[theta] ]] -[[variance][k[theta][super 2] ]] -[[mode][(k-1)[theta][space] for ['k>1] otherwise a __domain_error ]] -[[skewness][2 / sqrt(k) ]] -[[kurtosis][3 + 6 / k]] -[[kurtosis excess][6 / k ]] -] - -[endsect][/section:gamma_dist Gamma (and Erlang) Distribution] - - -[/ - Copyright 2006, 2010 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/geometric.qbk b/boost/libs/math/doc/distributions/geometric.qbk deleted file mode 100644 index 5129b451..00000000 --- a/boost/libs/math/doc/distributions/geometric.qbk +++ /dev/null @@ -1,350 +0,0 @@ -[section:geometric_dist Geometric Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class geometric_distribution; - - typedef geometric_distribution<> geometric; - - template - class geometric_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - // Constructor from success_fraction: - geometric_distribution(RealType p); - - // Parameter accessors: - RealType success_fraction() const; - RealType successes() const; - - // Bounds on success fraction: - static RealType find_lower_bound_on_p( - RealType trials, - RealType successes, - RealType probability); // alpha - static RealType find_upper_bound_on_p( - RealType trials, - RealType successes, - RealType probability); // alpha - - // Estimate min/max number of trials: - static RealType find_minimum_number_of_trials( - RealType k, // Number of failures. - RealType p, // Success fraction. - RealType probability); // Probability threshold alpha. - static RealType find_maximum_number_of_trials( - RealType k, // Number of failures. - RealType p, // Success fraction. - RealType probability); // Probability threshold alpha. - }; - - }} // namespaces - -The class type `geometric_distribution` represents a -[@http://en.wikipedia.org/wiki/geometric_distribution geometric distribution]: -it is used when there are exactly two mutually exclusive outcomes of a -[@http://en.wikipedia.org/wiki/Bernoulli_trial Bernoulli trial]: -these outcomes are labelled "success" and "failure". - -For [@http://en.wikipedia.org/wiki/Bernoulli_trial Bernoulli trials] -each with success fraction /p/, the geometric distribution gives -the probability of observing /k/ trials (failures, events, occurrences, or arrivals) -before the first success. - -[note For this implementation, the set of trials *includes zero* -(unlike another definition where the set of trials starts at one, sometimes named /shifted/).] -The geometric distribution assumes that success_fraction /p/ is fixed for all /k/ trials. - -The probability that there are /k/ failures before the first success is - -__spaces Pr(Y=/k/) = (1-/p/)[super /k/]/p/ - -For example, when throwing a 6-face dice the success probability /p/ = 1/6 = 0.1666[recur][space]. -Throwing repeatedly until a /three/ appears, -the probability distribution of the number of times /not-a-three/ is thrown -is geometric. - -Geometric distribution has the Probability Density Function PDF: - -__spaces (1-/p/)[super /k/]/p/ - -The following graph illustrates how the PDF and CDF vary for three examples -of the success fraction /p/, -(when considering the geometric distribution as a continuous function), - -[graph geometric_pdf_2] - -[graph geometric_cdf_2] - -and as discrete. - -[graph geometric_pdf_discrete] - -[graph geometric_cdf_discrete] - - -[h4 Related Distributions] - -The geometric distribution is a special case of -the __negative_binomial_distrib with successes parameter /r/ = 1, -so only one first and only success is required : thus by definition -__spaces `geometric(p) == negative_binomial(1, p)` - - negative_binomial_distribution(RealType r, RealType success_fraction); - negative_binomial nb(1, success_fraction); - geometric g(success_fraction); - ASSERT(pdf(nb, 1) == pdf(g, 1)); - -This implementation uses real numbers for the computation throughout -(because it uses the *real-valued* power and exponential functions). -So to obtain a conventional strictly-discrete geometric distribution -you must ensure that an integer value is provided for the number of trials -(random variable) /k/, -and take integer values (floor or ceil functions) from functions that return -a number of successes. - -[discrete_quantile_warning geometric] - -[h4 Member Functions] - -[h5 Constructor] - - geometric_distribution(RealType p); - -Constructor: /p/ or success_fraction is the probability of success of a single trial. - -Requires: `0 <= p <= 1`. - -[h5 Accessors] - - RealType success_fraction() const; // successes / trials (0 <= p <= 1) - -Returns the success_fraction parameter /p/ from which this distribution was constructed. - - RealType successes() const; // required successes always one, - // included for compatibility with negative binomial distribution - // with successes r == 1. - -Returns unity. - -The following functions are equivalent to those provided for the negative binomial, -with successes = 1, but are provided here for completeness. - -The best method of calculation for the following functions is disputed: -see __binomial_distrib and __negative_binomial_distrib for more discussion. - -[h5 Lower Bound on success_fraction Parameter ['p]] - - static RealType find_lower_bound_on_p( - RealType failures, - RealType probability) // (0 <= alpha <= 1), 0.05 equivalent to 95% confidence. - -Returns a *lower bound* on the success fraction: - -[variablelist -[[failures][The total number of failures before the 1st success.]] -[[alpha][The largest acceptable probability that the true value of - the success fraction is [*less than] the value returned.]] -] - -For example, if you observe /k/ failures from /n/ trials -the best estimate for the success fraction is simply 1/['n], but if you -want to be 95% sure that the true value is [*greater than] some value, -['p[sub min]], then: - - p``[sub min]`` = geometric_distribution:: - find_lower_bound_on_p(failures, 0.05); - -[link math_toolkit.stat_tut.weg.neg_binom_eg.neg_binom_conf See negative_binomial confidence interval example.] - -This function uses the Clopper-Pearson method of computing the lower bound on the -success fraction, whilst many texts refer to this method as giving an "exact" -result in practice it produces an interval that guarantees ['at least] the -coverage required, and may produce pessimistic estimates for some combinations -of /failures/ and /successes/. See: - -[@http://www.ucs.louisiana.edu/~kxk4695/Discrete_new.pdf -Yong Cai and K. Krishnamoorthy, A Simple Improved Inferential Method for Some Discrete Distributions. -Computational statistics and data analysis, 2005, vol. 48, no3, 605-621]. - -[h5 Upper Bound on success_fraction Parameter p] - - static RealType find_upper_bound_on_p( - RealType trials, - RealType alpha); // (0 <= alpha <= 1), 0.05 equivalent to 95% confidence. - -Returns an *upper bound* on the success fraction: - -[variablelist -[[trials][The total number of trials conducted.]] -[[alpha][The largest acceptable probability that the true value of - the success fraction is [*greater than] the value returned.]] -] - -For example, if you observe /k/ successes from /n/ trials the -best estimate for the success fraction is simply ['k/n], but if you -want to be 95% sure that the true value is [*less than] some value, -['p[sub max]], then: - - p``[sub max]`` = geometric_distribution::find_upper_bound_on_p( - k, 0.05); - -[link math_toolkit.stat_tut.weg.neg_binom_eg.neg_binom_conf See negative binomial confidence interval example.] - -This function uses the Clopper-Pearson method of computing the lower bound on the -success fraction, whilst many texts refer to this method as giving an "exact" -result in practice it produces an interval that guarantees ['at least] the -coverage required, and may produce pessimistic estimates for some combinations -of /failures/ and /successes/. See: - -[@http://www.ucs.louisiana.edu/~kxk4695/Discrete_new.pdf -Yong Cai and K. Krishnamoorthy, A Simple Improved Inferential Method for Some Discrete Distributions. -Computational statistics and data analysis, 2005, vol. 48, no3, 605-621]. - -[h5 Estimating Number of Trials to Ensure at Least a Certain Number of Failures] - - static RealType find_minimum_number_of_trials( - RealType k, // number of failures. - RealType p, // success fraction. - RealType alpha); // probability threshold (0.05 equivalent to 95%). - -This functions estimates the number of trials required to achieve a certain -probability that [*more than ['k] failures will be observed]. - -[variablelist -[[k][The target number of failures to be observed.]] -[[p][The probability of ['success] for each trial.]] -[[alpha][The maximum acceptable ['risk] that only ['k] failures or fewer will be observed.]] -] - -For example: - - geometric_distribution::find_minimum_number_of_trials(10, 0.5, 0.05); - -Returns the smallest number of trials we must conduct to be 95% (1-0.05) sure -of seeing 10 failures that occur with frequency one half. - -[link math_toolkit.stat_tut.weg.neg_binom_eg.neg_binom_size_eg Worked Example.] - -This function uses numeric inversion of the geometric distribution -to obtain the result: another interpretation of the result is that it finds -the number of trials (failures) that will lead to an /alpha/ probability -of observing /k/ failures or fewer. - -[h5 Estimating Number of Trials to Ensure a Maximum Number of Failures or Less] - - static RealType find_maximum_number_of_trials( - RealType k, // number of failures. - RealType p, // success fraction. - RealType alpha); // probability threshold (0.05 equivalent to 95%). - -This functions estimates the maximum number of trials we can conduct and achieve -a certain probability that [*k failures or fewer will be observed]. - -[variablelist -[[k][The maximum number of failures to be observed.]] -[[p][The probability of ['success] for each trial.]] -[[alpha][The maximum acceptable ['risk] that more than ['k] failures will be observed.]] -] - -For example: - - geometric_distribution::find_maximum_number_of_trials(0, 1.0-1.0/1000000, 0.05); - -Returns the largest number of trials we can conduct and still be 95% sure -of seeing no failures that occur with frequency one in one million. - -This function uses numeric inversion of the geometric distribution -to obtain the result: another interpretation of the result, is that it finds -the number of trials that will lead to an /alpha/ probability -of observing more than k failures. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -However it's worth taking a moment to define what these actually mean in -the context of this distribution: - -[table Meaning of the non-member accessors. -[[Function][Meaning]] -[[__pdf] - [The probability of obtaining [*exactly k failures] from /k/ trials - with success fraction p. For example: - -``pdf(geometric(p), k)``]] -[[__cdf] - [The probability of obtaining [*k failures or fewer] from /k/ trials - with success fraction p and success on the last trial. For example: - -``cdf(geometric(p), k)``]] -[[__ccdf] - [The probability of obtaining [*more than k failures] from /k/ trials - with success fraction p and success on the last trial. For example: - -``cdf(complement(geometric(p), k))``]] -[[__quantile] - [The [*greatest] number of failures /k/ expected to be observed from /k/ trials - with success fraction /p/, at probability /P/. Note that the value returned - is a real-number, and not an integer. Depending on the use case you may - want to take either the floor or ceiling of the real result. For example: -``quantile(geometric(p), P)``]] -[[__quantile_c] - [The [*smallest] number of failures /k/ expected to be observed from /k/ trials - with success fraction /p/, at probability /P/. Note that the value returned - is a real-number, and not an integer. Depending on the use case you may - want to take either the floor or ceiling of the real result. For example: - ``quantile(complement(geometric(p), P))``]] -] - -[h4 Accuracy] - -This distribution is implemented using the pow and exp functions, so most results -are accurate within a few epsilon for the RealType. -For extreme values of `double` /p/, for example 0.9999999999, -accuracy can fall significantly, for example to 10 decimal digits (from 16). - -[h4 Implementation] - -In the following table, /p/ is the probability that any one trial will -be successful (the success fraction), /k/ is the number of failures, -/p/ is the probability and /q = 1-p/, -/x/ is the given probability to estimate -the expected number of failures using the quantile. - -[table -[[Function][Implementation Notes]] -[[pdf][pdf = p * pow(q, k)]] -[[cdf][cdf = 1 - q[super k=1]]] -[[cdf complement][exp(log1p(-p) * (k+1))]] -[[quantile][k = log1p(-x) / log1p(-p) -1]] -[[quantile from the complement][k = log(x) / log1p(-p) -1]] -[[mean][(1-p)/p]] -[[variance][(1-p)/p[sup2]]] -[[mode][0]] -[[skewness][(2-p)/[sqrt]q]] -[[kurtosis][9+p[sup2]/q]] -[[kurtosis excess][6 +p[sup2]/q]] -[[parameter estimation member functions][See __negative_binomial_distrib]] -[[`find_lower_bound_on_p`][See __negative_binomial_distrib]] -[[`find_upper_bound_on_p`][See __negative_binomial_distrib]] -[[`find_minimum_number_of_trials`][See __negative_binomial_distrib]] -[[`find_maximum_number_of_trials`][See __negative_binomial_distrib]] -] - -[endsect][/section:geometric_dist geometric] - -[/ geometric.qbk - Copyright 2010 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/geometric_example.qbk b/boost/libs/math/doc/distributions/geometric_example.qbk deleted file mode 100644 index 94056480..00000000 --- a/boost/libs/math/doc/distributions/geometric_example.qbk +++ /dev/null @@ -1,20 +0,0 @@ -[section:geometric_eg Geometric Distribution Examples] - -[import ../../example/geometric_examples.cpp] -[geometric_eg1_1] -[geometric_eg1_2] - -See full source C++ of this example at -[@../../example/geometric_examples.cpp geometric_examples.cpp] - -[link math_toolkit.stat_tut.weg.neg_binom_eg.neg_binom_conf See negative_binomial confidence interval example.] - -[endsect] [/section:geometric_eg Geometric Distribution Examples] - -[/ geometric.qbk - Copyright 2010 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/hyperexponential.qbk b/boost/libs/math/doc/distributions/hyperexponential.qbk deleted file mode 100644 index d2b2a1d4..00000000 --- a/boost/libs/math/doc/distributions/hyperexponential.qbk +++ /dev/null @@ -1,506 +0,0 @@ -[section:hyperexponential_dist Hyperexponential Distribution] - -[import ../../example/hyperexponential_snips.cpp] -[import ../../example/hyperexponential_more_snips.cpp] - -``#include `` - - namespace boost{ namespace math{ - - template - class hyperexponential_distribution; - - typedef hyperexponential_distribution<> hyperexponential; - - template - class hyperexponential_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - // Constructors: - hyperexponential_distribution(); // Default. - - template - hyperexponential_distribution( // Default equal probabilities. - RateIterT const& rate_first, - RateIterT2 const& rate_last); // Rates using Iterators. - - template - hyperexponential_distribution(ProbIterT prob_first, ProbIterT prob_last, - RateIterT rate_first, RateIterT rate_last); // Iterators. - - template - hyperexponential_distribution(ProbRangeT const& prob_range, - RateRangeT const& rate_range); // Ranges. - - template - hyperexponential_distribution(RateRangeT const& rate_range); - - #if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST) // C++11 initializer lists supported. - hyperexponential_distribution(std::initializer_list l1, std::initializer_list l2); - hyperexponential_distribution(std::initializer_list l1); - #endif - - // Accessors: - std::size_t num_phases() const; - std::vector probabilities() const; - std::vector rates() const; - }; - - }} // namespaces - -[note An implementation-defined mechanism is provided to avoid -ambiguity between constructors accepting ranges, iterators and constants as parameters. -This should be transparent to the user. -See below and the header file hyperexponential.hpp for details and explanatory comments.] - -The class type `hyperexponential_distribution` represents a [@http://en.wikipedia.org/wiki/Hyperexponential_distribution hyperexponential distribution]. - -A /k/-phase hyperexponential distribution is a [@http://en.wikipedia.org/wiki/Continuous_probability_distribution continuous probability distribution] obtained as a mixture of /k/ [link math_toolkit.dist_ref.dists.exp_dist Exponential Distribution]s. -It is also referred to as /mixed exponential distribution/ or parallel /k-phase exponential distribution/. - -A /k/-phase hyperexponential distribution is characterized by two parameters, namely a /phase probability vector/ ['[*[alpha]]=([alpha][sub 1],...,[alpha][sub k])] and a /rate vector/ ['[*[lambda]]=([lambda][sub 1],...,[lambda][sub k])]. - -The [@http://en.wikipedia.org/wiki/Probability_density_function probability density function] for random variate /x/ in a hyperexponential distribution is given by: - -[equation hyperexponential_pdf] - -The following graph illustrates the PDF of the hyperexponential distribution with five different parameters, namely: - -# ['[*[alpha]]=(1.0)] and ['[*[lambda]]=(1.0)] (which degenerates to a simple exponential distribution), -# ['[*[alpha]]=(0.1, 0.9)] and ['[*[lambda]]=(0.5, 1.5)], -# ['[*[alpha]]=(0.9, 0.1)] and ['[*[lambda]]=(0.5, 1.5)], -# ['[*[alpha]]=(0.2, 0.3, 0.5)] and ['[*[lambda]]=(0.5, 1.0, 1.5)], -# ['[*[alpha]]=(0.5, 0.3, 0.2)] and ['[*[lambda]]=(0.5, 1.0, 1.5)]. - -[graph hyperexponential_pdf] - -Also, the following graph illustrates the PDF of the hyperexponential distribution (solid lines) where only the /phase probability vector/ changes together with the PDF of the two limiting exponential distributions (dashed lines): - -# ['[*[alpha]]=(0.1, 0.9)] and ['[*[lambda]]=(0.5, 1.5)], -# ['[*[alpha]]=(0.6, 0.4)] and ['[*[lambda]]=(0.5, 1.5)], -# ['[*[alpha]]=(0.9, 0.1)] and ['[*[lambda]]=(0.5, 1.5)], -# Exponential distribution with parameter ['[lambda]=0.5], -# Exponential distribution with parameter ['[lambda]=1.5]. - -As expected, as the first element ['[alpha][sub 1]] of the /phase probability vector/ approaches to /1/ (or, equivalently, ['[alpha][sub 2]] approaches to /0/), the resulting hyperexponential distribution nears the exponential distribution with parameter ['[lambda]=0.5]. -Conversely, as the first element ['[alpha][sub 2]] of the /phase probability vector/ approaches to /1/ (or, equivalently, ['[alpha][sub 1]] approaches to /0/), the resulting hyperexponential distribution nears the exponential distribution with parameter ['[lambda]=1.5]. - -[graph hyperexponential_pdf_samerate] - -Finally, the following graph compares the PDF of the hyperexponential distribution with different number of phases but with the same mean value equal to /2/: - -# ['[*[alpha]]=(1.0)] and ['[*[lambda]]=(2.0)] (which degenerates to a simple exponential distribution), -# ['[*[alpha]]=(0.5, 0.5)] and ['[*[lambda]]=(0.3, 1.5)], -# ['[*[alpha]]=(1.0/3.0, 1.0/3.0, 1.0/3.0)] and ['[*[lambda]]=(0.2, 1.5, 3.0)], - -[graph hyperexponential_pdf_samemean] - -As can be noted, even if the three distributions have the same mean value, the two hyperexponential distributions have a /longer/ tail with respect to the one of the exponential distribution. -Indeed, the hyperexponential distribution has a larger variability than the exponential distribution, thus resulting in a [@http://en.wikipedia.org/wiki/Coefficient_of_variation Coefficient of Variation] greater than /1/ (as opposed to the one of the exponential distribution which is exactly /1/). - -[h3 Applications] - -A /k/-phase hyperexponential distribution is frequently used in [@http://en.wikipedia.org/wiki/Queueing_theory queueing theory] to model the distribution of the superposition of /k/ independent events, like, for instance, the service time distribution of a queueing station with /k/ servers in parallel where the /i/-th server is chosen with probability ['[alpha][sub i]] and its service time distribution is an exponential distribution with rate ['[lambda][sub i]] (Allen,1990; Papadopolous et al.,1993; Trivedi,2002). - -For instance, CPUs service-time distribution in a computing system has often been observed to possess such a distribution (Rosin,1965). -Also, the arrival of different types of customer to a single queueing station is often modeled as a hyperexponential distribution (Papadopolous et al.,1993). -Similarly, if a product manufactured in several parallel assembly lines and the outputs are merged, the failure density of the overall product is likely to be hyperexponential (Trivedi,2002). - -Finally, since the hyperexponential distribution exhibits a high Coefficient of Variation (CoV), that is a CoV > 1, it is especially suited to fit empirical data with large CoV (Feitelson,2014; Wolski et al.,2013) and to approximate [@http://en.wikipedia.org/wiki/Long_tail long-tail probability distributions] (Feldmann et al.,1998). - -[/ Another possible example (work in progress): -For instance, suppose that at the airport the company Foobar Airlines has a help desk with 3 different windows (servers) such that window A is for regional flights, window B is for international flights and window C is general customer care. -From previous studies, it has been observed that each window is able to serve requests with the following timings: -- window W1: 20 minutes, on average, -- window W2: 30 minutes, on average, and -- window W3: 10 minutes, on average. - -Furthermore, another airline company has a help desk with a single window. -It has been observed that to the window can arrive three types of customers: -- customer C1 (e.g., premium customer): -- customer C2 (e.g., business customer): -- customer C3 (e.g., regular customer): -] - -[h3 Related distributions] - -* When the number of phases /k/ is equal to `1`, the hyperexponential distribution is simply an __exp_distrib. -* When the /k/ rates are all equal to ['[lambda]], the hyperexponential distribution is simple an __exp_distrib with rate ['[lambda]]. - -[h3 Examples] - -[h4 Lifetime of Appliances] - -Suppose a customer is buying an appliance and is choosing at random between an appliance with average lifetime of 10 years and an appliance with average lifetime of 12 years. -Assuming the lifetime of this appliance follows an exponential distribution, the lifetime distribution of the purchased appliance can be modeled as a hyperexponential distribution with -phase probability vector ['[*[alpha]]=(1/2,1/2)] and rate vector ['[*[lambda]]=(1/10,1/12)] (Wolfram,2014). - -In the rest of this section, we provide an example C++ implementation for computing the average lifetime and the probability that the appliance will work for more than 15 years. - -[hyperexponential_snip1] - -The resulting output is: - - Average lifetime: 11 years - Probability that the appliance will work for more than 15 years: 0.254817 - - -[h4 Workloads of Private Cloud Computing Systems] - -[@http://en.wikipedia.org/wiki/Cloud_computing Cloud computing] has become a popular metaphor for dynamic and secure self-service access to computational and storage capabilities. -In (Wolski et al.,2013), the authors analyze and model workloads gathered from enterprise-operated commercial [@http://en.wikipedia.org/wiki/Cloud_computing#Private_cloud private clouds] and show that 3-phase hyperexponential distributions (fitted using the [@http://en.wikipedia.org/wiki/Expectation%E2%80%93maximization_algorithm Expectation Maximization algorithm]) capture workload attributes accurately. - -In this type of computing system, user requests consist in demanding the provisioning of one or more [@http://en.wikipedia.org/wiki/Virtual_machine Virtual Machines] (VMs). -In particular, in (Wolski et al.,2013) the workload experienced by each cloud system is a function of four distributions, one for each of the following workload attributes: - -* /Request Interarrival Time/: the amount of time until the next request, -* /VM Lifetime/: the time duration over which a VM is provisioned to a physical machine, -* /Request Size/: the number of VMs in the request, and -* /Core Count/: the CPU core count requested for each VM. - -The authors assume that all VMs in a request have the same core count, but request sizes and core counts can vary from request to request. -Moreover, all VMs within a request are assumed to have the same lifetime. -Given these assumptions, the authors build a statistical model for the request interarrival time and VM lifetime attributes by fitting their respective data to a 3-phase hyperexponential distribution. - -In the following table, we show the sample mean and standard deviation (SD), in seconds, of the request interarrival time and of the VM lifetime distributions of the three datasets collected by authors: - -[table -[[Dataset][Mean Request Interarrival Time (SD)][Mean Multi-core VM Lifetime (SD)][Mean Single-core VM Lifetime (SD)]] -[[DS1][2202.1 (2.2e+04)][257173 (4.6e+05)][28754.4 (1.6e+05)]] -[[DS2][41285.7 (1.1e+05)][144669.0 (7.9e+05)][599815.0 (1.7e+06)]] -[[DS3][11238.8 (3.0e+04)][30739.2 (1.6e+05)][44447.8 (2.2e+05)]] -] - -Whereas in the following table we show the hyperexponential distribution parameters resulting from the fit: - -[table -[[Dataset][Request Interarrival Time][Multi-core VM Lifetime][Single-core VM Lifetime]] -[[DS1][['[*[alpha]]=(0.34561,0.08648,0.56791), [*[lambda]]=(0.008,0.00005,0.02894)]][['[*[alpha]]=(0.24667,0.37948,0.37385), [*[lambda]]=(0.00004,0.000002,0.00059)]][['[*[alpha]]=(0.09325,0.22251,0.68424), [*[lambda]]=(0.000003,0.00109,0.00109)]]] -[[DS2][['[*[alpha]]=(0.38881,0.18227,0.42892), [*[lambda]]=(0.000006,0.05228,0.00081)]][['[*[alpha]]=(0.42093,0.43960,0.13947), [*[lambda]]=(0.00186,0.00008,0.0000008)]][['[*[alpha]]=(0.44885,0.30675,0.2444), [*[lambda]]=(0.00143,0.00005,0.0000004)]]] -[[DS3][['[*[alpha]]=(0.39442,0.24644,0.35914), [*[lambda]]=(0.00030,0.00003,0.00257)]][['[*[alpha]]=(0.37621,0.14838,0.47541), [*[lambda]]=(0.00498,0.000005,0.00022)]][['[*[alpha]]=(0.34131,0.12544,0.53325), [*[lambda]]=(0.000297,0.000003,0.00410)]]] -] - -In the rest of this section, we provide an example C++ implementation for computing some statistical properties of the fitted distributions for each of the analyzed dataset. - -[hyperexponential_more_snip1] - -The resulting output (with floating-point precision set to 2) is: - - ### DS1 - * Fitted Request Interarrival Time - - Mean (SD): 2.2e+03 (8.1e+03) seconds. - - 99th Percentile: 4.3e+04 seconds. - - Probability that a VM will arrive within 30 minutes: 0.84 - - Probability that a VM will arrive after 1 hour: 0.092 - * Fitted Multi-core VM Lifetime - - Mean (SD): 2e+05 (3.9e+05) seconds. - - 99th Percentile: 1.8e+06 seconds. - - Probability that a VM will last for less than 1 month: 1 - - Probability that a VM will last for more than 3 months: 6.7e-08 - * Fitted Single-core VM Lifetime - - Mean (SD): 3.2e+04 (1.4e+05) seconds. - - 99th Percentile: 7.4e+05 seconds. - - Probability that a VM will last for less than 1 month: 1 - - Probability that a VM will last for more than 3 months: 6.9e-12 - ### DS2 - * Fitted Request Interarrival Time - - Mean (SD): 6.5e+04 (1.3e+05) seconds. - - 99th Percentile: 6.1e+05 seconds. - - Probability that a VM will arrive within 30 minutes: 0.52 - - Probability that a VM will arrive after 1 hour: 0.4 - * Fitted Multi-core VM Lifetime - - Mean (SD): 1.8e+05 (6.4e+05) seconds. - - 99th Percentile: 3.3e+06 seconds. - - Probability that a VM will last for less than 1 month: 0.98 - - Probability that a VM will last for more than 3 months: 0.00028 - * Fitted Single-core VM Lifetime - - Mean (SD): 6.2e+05 (1.6e+06) seconds. - - 99th Percentile: 8e+06 seconds. - - Probability that a VM will last for less than 1 month: 0.91 - - Probability that a VM will last for more than 3 months: 0.011 - ### DS3 - * Fitted Request Interarrival Time - - Mean (SD): 9.7e+03 (2.2e+04) seconds. - - 99th Percentile: 1.1e+05 seconds. - - Probability that a VM will arrive within 30 minutes: 0.53 - - Probability that a VM will arrive after 1 hour: 0.36 - * Fitted Multi-core VM Lifetime - - Mean (SD): 3.2e+04 (1e+05) seconds. - - 99th Percentile: 5.4e+05 seconds. - - Probability that a VM will last for less than 1 month: 1 - - Probability that a VM will last for more than 3 months: 1.9e-18 - * Fitted Single-core VM Lifetime - - Mean (SD): 4.3e+04 (1.6e+05) seconds. - - 99th Percentile: 8.4e+05 seconds. - - Probability that a VM will last for less than 1 month: 1 - - Probability that a VM will last for more than 3 months: 9.3e-12 - -[note The above results differ from the ones shown in Tables III, V, and VII of (Wolski et al.,2013). -We carefully double-checked them with Wolfram Mathematica 10, which confirmed our results.] - - -[h3 Member Functions] - -[h4 Default Constructor] - - hyperexponential_distribution(); - -Constructs a /1/-phase hyperexponential distribution (i.e., an exponential distribution) with rate `1`. - - -[h4 Constructor from Iterators] - - template - hyperexponential_distribution(ProbIterT prob_first, ProbIterT prob_last, - RateIterT rate_first, RateIterT rate_last); - -Constructs a hyperexponential distribution with /phase probability vector/ parameter given -by the range defined by \[`prob_first`, `prob_last`) iterator pair, and /rate vector/ parameter -given by the range defined by the \[`rate_first`, `rate_last`) iterator pair. - -[h5 Parameters] - -* `prob_first`, `prob_last`: the range of non-negative real elements representing the phase probabilities; elements are normalized to sum to unity. -* `rate_first`, `rate_last`: the range of positive elements representing the rates. - -[h5 Type Requirements] - -[itemized_list [`ProbIterT`, `RateIterT`: must meet the requirements of the [@http://en.cppreference.com/w/cpp/concept/InputIterator InputIterator] concept.]] - -[h5 Example] - -[hyperexponential_snip2] - -[h4 Construction from Ranges/Containers] - - template - hyperexponential_distribution(ProbRangeT const& prob_range, - RateRangeT const& rate_range); - -Constructs a hyperexponential distribution with /phase probability vector/ parameter -given by the range defined by `prob_range`, and /rate vector/ parameter given by the range defined by `rate_range`. - -[note As an implementation detail, this constructor uses Boost's -[@http://www.boost.org/doc/libs/release/libs/core/doc/html/core/enable_if.html enable_if/disable_if mechanism] to -disambiguate between this and other 2-argument constructors. Refer to the source code for more details.] - -[h5 Parameters] - -* `prob_range`: the range of non-negative real elements representing the phase probabilities; elements are normalized to sum to unity. -* `rate_range`: the range of positive real elements representing the rates. - -[h5 Type Requirements] - -[itemized_list [`ProbRangeT`, `RateRangeT`: must meet the requirements of the [@http://www.boost.org/doc/libs/release/libs/range/doc/html/range/concepts.html Range] concept: -that includes native C++ arrays, standard library containers, or a std::pair or iterators.]] - -[h5 Examples] - -[hyperexponential_snip3] - -[h4 Construction with rates-iterators (and all phase probabilities equal)] - - template - hyperexponential_distribution(RateIterT const& rate_first, - RateIterT2 const& rate_last); - -Constructs a hyperexponential distribution with /rate vector/ parameter given by the range defined by the -\[`rate_first`, `rate_last`) iterator pair, and /phase probability vector/ set to the equal phase -probabilities (i.e., to a vector of the same length `n` of the /rate vector/ and with each element set to `1.0/n`). - -[note As an implementation detail, this constructor uses Boost's -[@http://www.boost.org/doc/libs/release/libs/core/doc/html/core/enable_if.html enable_if/disable_if mechanism] to -disambiguate between this and other 2-argument constructors. Refer to the source code for more details.] - -[h5 Parameters] - -* `rate_first`, `rate_last`: the range of positive elements representing the rates. - -[h5 Type Requirements] - -[itemized_list [`RateIterT`, `RateIterT2`: must meet the requirements of the [@http://en.cppreference.com/w/cpp/concept/InputIterator InputIterator] concept.]] - -[h5 Example] - -[hyperexponential_snip4] - -[h4 Construction from a single range of rates (all phase probabilities will be equal)] - - template - hyperexponential_distribution(RateRangeT const& rate_range); - -Constructs a hyperexponential distribution with /rate vector/ parameter given by the range defined by `rate_range`, -and /phase probability vector/ set to the equal phase probabilities (i.e., to a vector of the same length -`n` of the /rate vector/ and with each element set to `1.0/n`). - -[h5 Parameters] - -* `rate_range`: the range of positive real elements representing the rates. - -[h5 Type Requirements] - -[itemized_list [`RateRangeT`: must meet the requirements of the [@http://www.boost.org/doc/libs/release/libs/range/doc/html/range/concepts.html Range] concept: this includes -native C++ array, standard library containers, and a `std::pair` of iterators.]] - -[h5 Examples] - -[hyperexponential_snip5] - -[h4 Construction from Initializer lists] - - hyperexponential_distribution(std::initializer_list l1, std::initializer_list l2); - -Constructs a hyperexponential distribution with /phase probability vector/ parameter -given by the [@http://en.cppreference.com/w/cpp/language/list_initialization brace-init-list] defined by `l1`, -and /rate vector/ parameter given by the [@http://en.cppreference.com/w/cpp/language/list_initialization brace-init-list] -defined by `l2`. - -[h5 Parameters] - -* `l1`: the brace-init-list of non-negative real elements representing the phase probabilities; -elements are normalized to sum to unity. -* `l2`: the brace-init-list of positive real elements representing the rates. - -The number of elements of the phase probabilities list and the rates list must be the same. - -[h5 Example] - -[hyperexponential_snip6] - -[h4 Construction from a single initializer list (all phase probabilities will be equal)] - - hyperexponential_distribution(std::initializer_list l1); - -Constructs a hyperexponential distribution with /rate vector/ parameter given by the -[@http://en.cppreference.com/w/cpp/language/list_initialization brace-init-list] defined by `l1`, and -/phase probability vector/ set to the equal phase probabilities (i.e., to a vector of the same length -`n` of the /rate vector/ and with each element set to `1.0/n`). - -[h5 Parameters] - -* `l1`: the brace-init-list of non-negative real elements representing the phase probabilities; they are normalized to ensure that they sum to unity. - -[h5 Example] - -[hyperexponential_snip7] - -[h4 Accessors] - - std::size_t num_phases() const; - -Gets the number of phases of this distribution (the size of both the rate and probability vectors). - -[h5 Return Value] An non-negative integer number representing the number of phases of this distribution. - - - std::vector probabilities() const; - -Gets the /phase probability vector/ parameter of this distribution. - -[note The returned probabilities are the [*normalized] versions of the probability parameter values passed at construction time.] - -[h5 Return Value] A vector of non-negative real numbers representing the /phase probability vector/ parameter of this distribution. - - - std::vector rates() const; - -Gets the /rate vector/ parameter of this distribution. - -[h5 Return Value] A vector of positive real numbers representing the /rate vector/ parameter of this distribution. - -[warning The return type of these functions is a vector-by-value. This is deliberate as we wish to hide the actual container -used internally which may be subject to future changes (for example to facilitate vectorization of the cdf code etc). -Users should note that some code that might otherwise have been expected to work does not. -For example, an attempt to output the (normalized) probabilities: - -`` -std::copy(he.probabilities().begin(), he.probabilities().end(), std::ostream_iterator(std::cout, " ")); -`` - -fails at compile or runtime because iterator types are incompatible, but, for example, - -`` -std::cout << he.probabilities()[0] << ' ' << he.probabilities()[1] << std::endl; -`` - -outputs the expected values. - -In general if you want to access a member of the returned container, then assign to a variable first, and then access those -members: - -`` -std::vector t = he.probabilities(); -std::copy(t.begin(), t.end(), std::ostream_iterator(std::cout, " ")); -`` -] - -[h3 Non-member Accessor Functions] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all distributions are supported: __usual_accessors. - -The formulae for calculating these are shown in the table below. - - -[h3 Accuracy] - -The hyperexponential distribution is implemented in terms of the __exp_distrib and as such should have very small errors, usually an -[@http://en.wikipedia.org/wiki/Machine_epsilon epsilon] or few. - - -[h3 Implementation] - -In the following table: - -* ['[*[alpha]]=([alpha][sub 1],...,[alpha][sub k])] is the /phase probability vector/ parameter of the /k/-phase hyperexponential distribution, -* ['[*[lambda]]=([lambda][sub 1],...,[lambda][sub k])] is the /rate vector/ parameter of the /k/-phase hyperexponential distribution, -* /x/ is the random variate. - -[table -[[Function][Implementation Notes]] -[[support][['x] [isin] \[0,[infin])]] -[[pdf][[equation hyperexponential_pdf]]] -[[cdf][[equation hyperexponential_cdf]]] -[[cdf complement][[equation hyperexponential_ccdf]]] -[[quantile][No closed form available. Computed numerically.]] -[[quantile from the complement][No closed form available. Computed numerically.]] -[[mean][[equation hyperexponential_mean]]] -[[variance][[equation hyperexponential_variance]]] -[[mode][`0`]] -[[skewness][[equation hyperexponential_skewness]]] -[[kurtosis][[equation hyperexponential_kurtosis]]] -[[kurtosis excess][kurtosis `- 3`]] -] - - -[h3 References] - -* A.O. Allen, /Probability, Statistics, and Queuing Theory with Computer Science Applications, Second Edition/, Academic Press, 1990. - -* D.G. Feitelson, /Workload Modeling for Computer Systems Performance Evaluation/, Cambridge University Press, 2014 - -* A. Feldmann and W. Whitt, /Fitting mixtures of exponentials to long-tail distributions to analyze network performance models/, Performance Evaluation 31(3-4):245, doi:10.1016/S0166-5316(97)00003-5, 1998. - -* H.T. Papadopolous, C. Heavey and J. Browne, /Queueing Theory in Manufacturing Systems Analysis and Design/, Chapman & Hall/CRC, 1993, p. 35. - -* R.F. Rosin, /Determining a computing center environment/, Communications of the ACM 8(7):463-468, 1965. - -* K.S. Trivedi, /Probability and Statistics with Reliability, Queueing, and Computer Science Applications/, John Wiley & Sons, Inc., 2002. - -* Wikipedia, /Hyperexponential Distribution/, Online: [@http://en.wikipedia.org/wiki/Hyperexponential_distribution], 2014 - -* R. Wolski and J. Brevik, /Using Parametric Models to Represent Private Cloud Workloads/, IEEE TSC, PrePrint, DOI: [@http://doi.ieeecomputersociety.org/10.1109/TSC.2013.48 10.1109/TSC.2013.48], 2013. - -* Wolfram Mathematica, /Hyperexponential Distribution/, Online: [@http://reference.wolfram.com/language/ref/HyperexponentialDistribution.html], 2014. - -[endsect][/section:hyperexponential_dist hyperexponential] - -[/ hyperexponential.qbk - Copyright 2014 Marco Guazzone (marco.guazzone@gmail.com) - 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). -] diff --git a/boost/libs/math/doc/distributions/hypergeometric.qbk b/boost/libs/math/doc/distributions/hypergeometric.qbk deleted file mode 100644 index f8941899..00000000 --- a/boost/libs/math/doc/distributions/hypergeometric.qbk +++ /dev/null @@ -1,229 +0,0 @@ -[section:hypergeometric_dist Hypergeometric Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class hypergeometric_distribution; - - template - class hypergeometric_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - // Construct: - hypergeometric_distribution(unsigned r, unsigned n, unsigned N); - // Accessors: - unsigned total()const; - unsigned defective()const; - unsigned sample_count()const; - }; - - typedef hypergeometric_distribution<> hypergeometric; - - }} // namespaces - -The hypergeometric distribution describes the number of "events" /k/ -from a sample /n/ drawn from a total population /N/ ['without replacement]. - -Imagine we have a sample of /N/ objects of which /r/ are "defective" -and N-r are "not defective" -(the terms "success\/failure" or "red\/blue" are also used). If we sample /n/ -items /without replacement/ then what is the probability that exactly -/k/ items in the sample are defective? The answer is given by the pdf of the -hypergeometric distribution `f(k; r, n, N)`, whilst the probability of -/k/ defectives or fewer is given by F(k; r, n, N), where F(k) is the -CDF of the hypergeometric distribution. - -[note Unlike almost all of the other distributions in this library, -the hypergeometric distribution is strictly discrete: it can not be -extended to real valued arguments of its parameters or random variable.] - -The following graph shows how the distribution changes as the proportion -of "defective" items changes, while keeping the population and sample sizes -constant: - -[graph hypergeometric_pdf_1] - -Note that since the distribution is symmetrical in parameters /n/ and /r/, if we -change the sample size and keep the population and proportion "defective" the same -then we obtain basically the same graphs: - -[graph hypergeometric_pdf_2] - -[h4 Member Functions] - - hypergeometric_distribution(unsigned r, unsigned n, unsigned N); - -Constructs a hypergeometric distribution with a population of /N/ objects, -of which /r/ are defective, and from which /n/ are sampled. - - unsigned total()const; - -Returns the total number of objects /N/. - - unsigned defective()const; - -Returns the number of objects /r/ in population /N/ which are defective. - - unsigned sample_count()const; - -Returns the number of objects /n/ which are sampled from the population /N/. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain of the random variable is the unsigned integers in the range -\[max(0, n + r - N), min(n, r)\]. A __domain_error is raised if the -random variable is outside this range, or is not an integral value. - -[caution -The quantile function will by default return an integer result that has been -/rounded outwards/. That is to say lower quantiles (where the probability is -less than 0.5) are rounded downward, and upper quantiles (where the probability -is greater than 0.5) are rounded upwards. This behaviour -ensures that if an X% quantile is requested, then /at least/ the requested -coverage will be present in the central region, and /no more than/ -the requested coverage will be present in the tails. - -This behaviour can be changed so that the quantile functions are rounded -differently using -[link math_toolkit.pol_overview Policies]. It is strongly -recommended that you read the tutorial -[link math_toolkit.pol_tutorial.understand_dis_quant -Understanding Quantiles of Discrete Distributions] before -using the quantile function on the Hypergeometric distribution. The -[link math_toolkit.pol_ref.discrete_quant_ref reference docs] -describe how to change the rounding policy -for these distributions. - -However, note that the implementation method of the quantile function -always returns an integral value, therefore attempting to use a __Policy -that requires (or produces) a real valued result will result in a -compile time error. -] [/ caution] - - -[h4 Accuracy] - -For small N such that -`N < boost::math::max_factorial::value` then table based -lookup of the results gives an accuracy to a few epsilon. -`boost::math::max_factorial::value` is 170 at double or long double -precision. - -For larger N such that `N < boost::math::prime(boost::math::max_prime)` -then only basic arithmetic is required for the calculation -and the accuracy is typically < 20 epsilon. This takes care of N -up to 104729. - -For `N > boost::math::prime(boost::math::max_prime)` then accuracy quickly -degrades, with 5 or 6 decimal digits being lost for N = 110000. - -In general for very large N, the user should expect to lose log[sub 10]N -decimal digits of precision during the calculation, with the results -becoming meaningless for N >= 10[super 15]. - -[h4 Testing] - -There are three sets of tests: our implementation is tested against a table of values -produced by Mathematica's implementation of this distribution. We also sanity check -our implementation against some spot values computed using the online calculator -here [@http://stattrek.com/Tables/Hypergeometric.aspx http://stattrek.com/Tables/Hypergeometric.aspx]. -Finally we test accuracy against some high precision test data using -this implementation and NTL::RR. - -[h4 Implementation] - -The PDF can be calculated directly using the formula: - -[equation hypergeometric1] - -However, this can only be used directly when the largest of the factorials -is guaranteed not to overflow the floating point representation used. -This formula is used directly when `N < max_factorial::value` -in which case table lookup of the factorials gives a rapid and accurate -implementation method. - -For larger /N/ the method described in -"An Accurate Computation of the Hypergeometric Distribution Function", -Trong Wu, ACM Transactions on Mathematical Software, Vol. 19, No. 1, -March 1993, Pages 33-43 is used. The method relies on the fact that -there is an easy method for factorising a factorial into the product -of prime numbers: - -[equation hypergeometric2] - -Where p[sub i] is the i'th prime number, and e[sub i] is a small -positive integer or zero, which can be calculated via: - -[equation hypergeometric3] - -Further we can combine the factorials in the expression for the PDF -to yield the PDF directly as the product of prime numbers: - -[equation hypergeometric4] - -With this time the exponents e[sub i] being either positive, negative -or zero. Indeed such a degree of cancellation occurs in the calculation -of the e[sub i] that many are zero, and typically most have a magnitude -or no more than 1 or 2. - -Calculation of the product of the primes requires some care to prevent -numerical overflow, we use a novel recursive method which splits the -calculation into a series of sub-products, with a new sub-product -started each time the next multiplication would cause either overflow -or underflow. The sub-products are stored in a linked list on the -program stack, and combined in an order that will guarantee no overflow -or unnecessary-underflow once the last sub-product has been calculated. - -This method can be used as long as N is smaller than the largest prime -number we have stored in our table of primes (currently 104729). The method -is relatively slow (calculating the exponents requires the most time), but -requires only a small number of arithmetic operations to -calculate the result (indeed there is no shorter method involving only basic -arithmetic once the exponents have been found), the method is therefore -much more accurate than the alternatives. - -For much larger N, we can calculate the PDF from the factorials using -either lgamma, or by directly combining lanczos approximations to avoid -calculating via logarithms. We use the latter method, as it is usually -1 or 2 decimal digits more accurate than computing via logarithms with -lgamma. However, in this area where N > 104729, the user should expect -to lose around log[sub 10]N decimal digits during the calculation in -the worst case. - -The CDF and its complement is calculated by directly summing the PDF's. -We start by deciding whether the CDF, or its complement, is likely to be -the smaller of the two and then calculate the PDF at /k/ (or /k+1/ if we're -calculating the complement) and calculate successive PDF values via the -recurrence relations: - -[equation hypergeometric5] - -Until we either reach the end of the distributions domain, or the next -PDF value to be summed would be too small to affect the result. - -The quantile is calculated in a similar manner to the CDF: we first guess -which end of the distribution we're nearer to, and then sum PDFs starting -from the end of the distribution this time, until we have some value /k/ that -gives the required CDF. - -The median is simply the quantile at 0.5, and the remaining properties are -calculated via: - -[equation hypergeometric6] - -[endsect] - -[/ hypergeometric.qbk - Copyright 2008 John Maddock. - 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). -] diff --git a/boost/libs/math/doc/distributions/inverse_chi_squared.qbk b/boost/libs/math/doc/distributions/inverse_chi_squared.qbk deleted file mode 100644 index 4c1f9f98..00000000 --- a/boost/libs/math/doc/distributions/inverse_chi_squared.qbk +++ /dev/null @@ -1,176 +0,0 @@ -[section:inverse_chi_squared_dist Inverse Chi Squared Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class inverse_chi_squared_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - inverse_chi_squared_distribution(RealType df = 1); // Not explicitly scaled, default 1/df. - inverse_chi_squared_distribution(RealType df, RealType scale = 1/df); // Scaled. - - RealType degrees_of_freedom()const; // Default 1. - RealType scale()const; // Optional scale [xi] (variance), default 1/degrees_of_freedom. - }; - - }} // namespace boost // namespace math - -The inverse chi squared distribution is a continuous probability distribution -of the *reciprocal* of a variable distributed according to the chi squared distribution. - -The sources below give confusingly different formulae -using different symbols for the distribution pdf, -but they are all the same, or related by a change of variable, or choice of scale. - -Two constructors are available to implement both the scaled and (implicitly) unscaled versions. - -The main version has an explicit scale parameter which implements the -[@http://en.wikipedia.org/wiki/Scaled-inverse-chi-square_distribution scaled inverse chi_squared distribution]. - -A second version has an implicit scale = 1/degrees of freedom and gives the 1st definition in the -[@http://en.wikipedia.org/wiki/Inverse-chi-square_distribution Wikipedia inverse chi_squared distribution]. -The 2nd Wikipedia inverse chi_squared distribution definition can be implemented -by explicitly specifying a scale = 1. - -Both definitions are also available in Wolfram Mathematica and in __R (geoR) with default scale = 1/degrees of freedom. - -See - -* Inverse chi_squared distribution [@http://en.wikipedia.org/wiki/Inverse-chi-square_distribution] -* Scaled inverse chi_squared distribution[@http://en.wikipedia.org/wiki/Scaled-inverse-chi-square_distribution] -* R inverse chi_squared distribution functions [@http://hosho.ees.hokudai.ac.jp/~kubo/Rdoc/library/geoR/html/InvChisquare.html R ] -* Inverse chi_squared distribution functions [@http://mathworld.wolfram.com/InverseChi-SquaredDistribution.html Weisstein, Eric W. "Inverse Chi-Squared Distribution." From MathWorld--A Wolfram Web Resource.] -* Inverse chi_squared distribution reference [@http://reference.wolfram.com/mathematica/ref/InverseChiSquareDistribution.html Weisstein, Eric W. "Inverse Chi-Squared Distribution reference." From Wolfram Mathematica.] - -The inverse_chi_squared distribution is used in -[@http://en.wikipedia.org/wiki/Bayesian_statistics Bayesian statistics]: -the scaled inverse chi-square is conjugate prior for the normal distribution -with known mean, model parameter [sigma][pow2] (variance). - -See [@http://en.wikipedia.org/wiki/Conjugate_prior conjugate priors including a table of distributions and their priors.] - -See also __inverse_gamma_distrib and __chi_squared_distrib. - -The inverse_chi_squared distribution is a special case of a inverse_gamma distribution -with [nu] (degrees_of_freedom) shape ([alpha]) and scale ([beta]) where - -__spaces [alpha]= [nu] /2 and [beta] = [frac12]. - -[note This distribution *does* provide the typedef: - -``typedef inverse_chi_squared_distribution inverse_chi_squared;`` - -If you want a `double` precision inverse_chi_squared distribution you can use - -``boost::math::inverse_chi_squared_distribution<>`` - -or you can write `inverse_chi_squared my_invchisqr(2, 3);`] - -For degrees of freedom parameter [nu], -the (*unscaled*) inverse chi_squared distribution is defined by the probability density function (PDF): - -__spaces f(x;[nu]) = 2[super -[nu]/2] x[super -[nu]/2-1] e[super -1/2x] / [Gamma]([nu]/2) - -and Cumulative Density Function (CDF) - -__spaces F(x;[nu]) = [Gamma]([nu]/2, 1/2x) / [Gamma]([nu]/2) - -For degrees of freedom parameter [nu] and scale parameter [xi], -the *scaled* inverse chi_squared distribution is defined by the probability density function (PDF): - -__spaces f(x;[nu], [xi]) = ([xi][nu]/2)[super [nu]/2] e[super -[nu][xi]/2x] x[super -1-[nu]/2] / [Gamma]([nu]/2) - -and Cumulative Density Function (CDF) - -__spaces F(x;[nu], [xi]) = [Gamma]([nu]/2, [nu][xi]/2x) / [Gamma]([nu]/2) - -The following graphs illustrate how the PDF and CDF of the inverse chi_squared distribution -varies for a few values of parameters [nu] and [xi]: - -[graph inverse_chi_squared_pdf] [/.png or .svg] - -[graph inverse_chi_squared_cdf] - -[h4 Member Functions] - - inverse_chi_squared_distribution(RealType df = 1); // Implicitly scaled 1/df. - inverse_chi_squared_distribution(RealType df = 1, RealType scale); // Explicitly scaled. - -Constructs an inverse chi_squared distribution with [nu] degrees of freedom ['df], -and scale ['scale] with default value 1\/df. - -Requires that the degrees of freedom [nu] parameter is greater than zero, otherwise calls -__domain_error. - - RealType degrees_of_freedom()const; - -Returns the degrees_of_freedom [nu] parameter of this distribution. - - RealType scale()const; - -Returns the scale [xi] parameter of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variate is \[0,+[infin]\]. -[note Unlike some definitions, this implementation supports a random variate -equal to zero as a special case, returning zero for both pdf and cdf.] - -[h4 Accuracy] - -The inverse gamma distribution is implemented in terms of the -incomplete gamma functions like the __inverse_gamma_distrib that use -__gamma_p and __gamma_q and their inverses __gamma_p_inv and __gamma_q_inv: -refer to the accuracy data for those functions for more information. -But in general, gamma (and thus inverse gamma) results are often accurate to a few epsilon, ->14 decimal digits accuracy for 64-bit double. -unless iteration is involved, as for the estimation of degrees of freedom. - -[h4 Implementation] - -In the following table [nu] is the degrees of freedom parameter and -[xi] is the scale parameter of the distribution, -/x/ is the random variate, /p/ is the probability and /q = 1-p/ its complement. -Parameters [alpha] for shape and [beta] for scale -are used for the inverse gamma function: [alpha] = [nu]/2 and [beta] = [nu] * [xi]/2. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = __gamma_p_derivative([alpha], [beta]/ x, [beta]) / x * x ]] -[[cdf][Using the relation: p = __gamma_q([alpha], [beta] / x) ]] -[[cdf complement][Using the relation: q = __gamma_p([alpha], [beta] / x) ]] -[[quantile][Using the relation: x = [beta][space]/ __gamma_q_inv([alpha], p) ]] -[[quantile from the complement][Using the relation: x = [alpha][space]/ __gamma_p_inv([alpha], q) ]] -[[mode][[nu] * [xi] / ([nu] + 2) ]] -[[median][no closed form analytic equation is known, but is evaluated as quantile(0.5)]] -[[mean][[nu][xi] / ([nu] - 2) for [nu] > 2, else a __domain_error]] -[[variance][2 [nu][pow2] [xi][pow2] / (([nu] -2)[pow2] ([nu] -4)) for [nu] >4, else a __domain_error]] -[[skewness][4 [sqrt]2 [sqrt]([nu]-4) /([nu]-6) for [nu] >6, else a __domain_error ]] -[[kurtosis_excess][12 * (5[nu] - 22) / (([nu] - 6) * ([nu] - 8)) for [nu] >8, else a __domain_error]] -[[kurtosis][3 + 12 * (5[nu] - 22) / (([nu] - 6) * ([nu]-8)) for [nu] >8, else a __domain_error]] -] [/table] - -[h4 References] - -# Bayesian Data Analysis, Andrew Gelman, John B. Carlin, Hal S. Stern, Donald B. Rubin, -ISBN-13: 978-1584883883, Chapman & Hall; 2 edition (29 July 2003). - -# Bayesian Computation with R, Jim Albert, ISBN-13: 978-0387922973, Springer; 2nd ed. edition (10 Jun 2009) - -[endsect] [/section:inverse_chi_squared_dist Inverse chi_squared Distribution] - -[/ - Copyright 2010 John Maddock and Paul A. Bristow. - 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). -] \ No newline at end of file diff --git a/boost/libs/math/doc/distributions/inverse_chi_squared_eg.qbk b/boost/libs/math/doc/distributions/inverse_chi_squared_eg.qbk deleted file mode 100644 index 067c746c..00000000 --- a/boost/libs/math/doc/distributions/inverse_chi_squared_eg.qbk +++ /dev/null @@ -1,32 +0,0 @@ - -[section:inverse_chi_squared_eg Inverse Chi-Squared Distribution Bayes Example] - -[import ../../example/inverse_chi_squared_bayes_eg.cpp] -[inverse_chi_squared_bayes_eg_1] -[inverse_chi_squared_bayes_eg_output_1] -[inverse_chi_squared_bayes_eg_2] -[inverse_chi_squared_bayes_eg_output_2] -[inverse_chi_squared_bayes_eg_3] -[inverse_chi_squared_bayes_eg_output_3] -[inverse_chi_squared_bayes_eg_4] -[inverse_chi_squared_bayes_eg_output_4] - -[inverse_chi_squared_bayes_eg_5] - -A full sample output is: -[inverse_chi_squared_bayes_eg_output] - -(See also the reference documentation for the __inverse_chi_squared_distrib.) - -See the full source C++ of this example at -[@../../example/inverse_chi_squared_bayes_eg.cpp] - -[endsect] [/section:inverse_chi_squared_eg Inverse Chi-Squared Distribution Bayes Example] - -[/ - Copyright 2011 Paul A. Bristow and Thomas Mang. - 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). -] - diff --git a/boost/libs/math/doc/distributions/inverse_gamma.qbk b/boost/libs/math/doc/distributions/inverse_gamma.qbk deleted file mode 100644 index 0f8afea4..00000000 --- a/boost/libs/math/doc/distributions/inverse_gamma.qbk +++ /dev/null @@ -1,129 +0,0 @@ -[section:inverse_gamma_dist Inverse Gamma Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class inverse_gamma_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - inverse_gamma_distribution(RealType shape, RealType scale = 1) - - RealType shape()const; - RealType scale()const; - }; - - }} // namespaces - -The inverse_gamma distribution is a continuous probability distribution -of the reciprocal of a variable distributed according to the gamma distribution. - -The inverse_gamma distribution is used in Bayesian statistics. - -See [@http://en.wikipedia.org/wiki/Inverse-gamma_distribution inverse gamma distribution]. - -[@http://rss.acs.unt.edu/Rdoc/library/pscl/html/igamma.html R inverse gamma distribution functions]. - -[@http://reference.wolfram.com/mathematica/ref/InverseGammaDistribution.html Wolfram inverse gamma distribution]. - -See also __gamma_distrib. - - -[note -In spite of potential confusion with the inverse gamma function, this -distribution *does* provide the typedef: - -``typedef inverse_gamma_distribution gamma;`` - -If you want a `double` precision gamma distribution you can use - -``boost::math::inverse_gamma_distribution<>`` - -or you can write `inverse_gamma my_ig(2, 3);`] - -For shape parameter [alpha] and scale parameter [beta], it is defined -by the probability density function (PDF): - -__spaces f(x;[alpha], [beta]) = [beta][super [alpha]] * (1/x) [super [alpha]+1] exp(-[beta]/x) / [Gamma]([alpha]) - -and cumulative density function (CDF) - -__spaces F(x;[alpha], [beta]) = [Gamma]([alpha], [beta]/x) / [Gamma]([alpha]) - -The following graphs illustrate how the PDF and CDF of the inverse gamma distribution -varies as the parameters vary: - -[graph inverse_gamma_pdf] [/png or svg] - -[graph inverse_gamma_cdf] - -[h4 Member Functions] - - inverse_gamma_distribution(RealType shape = 1, RealType scale = 1); - -Constructs an inverse gamma distribution with shape [alpha] and scale [beta]. - -Requires that the shape and scale parameters are greater than zero, otherwise calls -__domain_error. - - RealType shape()const; - -Returns the [alpha] shape parameter of this inverse gamma distribution. - - RealType scale()const; - -Returns the [beta] scale parameter of this inverse gamma distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variate is \[0,+[infin]\]. -[note Unlike some definitions, this implementation supports a random variate -equal to zero as a special case, returning zero for pdf and cdf.] - -[h4 Accuracy] - -The inverse gamma distribution is implemented in terms of the -incomplete gamma functions __gamma_p and __gamma_q and their -inverses __gamma_p_inv and __gamma_q_inv: refer to the accuracy -data for those functions for more information. -But in general, inverse_gamma results are accurate to a few epsilon, ->14 decimal digits accuracy for 64-bit double. - -[h4 Implementation] - -In the following table [alpha] is the shape parameter of the distribution, -[alpha][space] is its scale parameter, /x/ is the random variate, /p/ is the probability -and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = __gamma_p_derivative([alpha], [beta]/ x, [beta]) / x * x ]] -[[cdf][Using the relation: p = __gamma_q([alpha], [beta] / x) ]] -[[cdf complement][Using the relation: q = __gamma_p([alpha], [beta] / x) ]] -[[quantile][Using the relation: x = [beta][space]/ __gamma_q_inv([alpha], p) ]] -[[quantile from the complement][Using the relation: x = [alpha][space]/ __gamma_p_inv([alpha], q) ]] -[[mode][[beta] / ([alpha] + 1) ]] -[[median][no analytic equation is known, but is evaluated as quantile(0.5)]] -[[mean][[beta] / ([alpha] - 1) for [alpha] > 1, else a __domain_error]] -[[variance][([beta] * [beta]) / (([alpha] - 1) * ([alpha] - 1) * ([alpha] - 2)) for [alpha] >2, else a __domain_error]] -[[skewness][4 * sqrt ([alpha] -2) / ([alpha] -3) for [alpha] >3, else a __domain_error]] -[[kurtosis_excess][(30 * [alpha] - 66) / (([alpha]-3)*([alpha] - 4)) for [alpha] >4, else a __domain_error]] -] [/table] - -[endsect][/section:inverse_gamma_dist Inverse Gamma Distribution] - -[/ - Copyright 2010 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/inverse_gamma_example.qbk b/boost/libs/math/doc/distributions/inverse_gamma_example.qbk deleted file mode 100644 index 3feaa26e..00000000 --- a/boost/libs/math/doc/distributions/inverse_gamma_example.qbk +++ /dev/null @@ -1,15 +0,0 @@ - -[section:inverse_gamma_eg Inverse Gamma Distribution Bayes Example] - -TODO - -[endsect] [/section:inverse_gamma_eg Inverse Gamma Distribution Bayes Example] - - -[/ - Copyright 2006, 2010 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/inverse_gaussian.qbk b/boost/libs/math/doc/distributions/inverse_gaussian.qbk deleted file mode 100644 index 612801fe..00000000 --- a/boost/libs/math/doc/distributions/inverse_gaussian.qbk +++ /dev/null @@ -1,171 +0,0 @@ -[section:inverse_gaussian_dist Inverse Gaussian (or Inverse Normal) Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class inverse_gaussian_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - inverse_gaussian_distribution(RealType mean = 1, RealType scale = 1); - - RealType mean()const; // mean default 1. - RealType scale()const; // Optional scale, default 1 (unscaled). - RealType shape()const; // Shape = scale/mean. - }; - typedef inverse_gaussian_distribution inverse_gaussian; - - }} // namespace boost // namespace math - -The Inverse Gaussian distribution distribution is a continuous probability distribution. - -The distribution is also called 'normal-inverse Gaussian distribution', -and 'normal Inverse' distribution. - -It is also convenient to provide unity as default for both mean and scale. -This is the Standard form for all distributions. -The Inverse Gaussian distribution was first studied in relation to Brownian motion. -In 1956 M.C.K. Tweedie used the name Inverse Gaussian because there is an inverse relationship -between the time to cover a unit distance and distance covered in unit time. -The inverse Gaussian is one of family of distributions that have been called the -[@http://en.wikipedia.org/wiki/Tweedie_distributions Tweedie distributions]. - -(So ['inverse] in the name may mislead: it does [*not] relate to the inverse of a distribution). - -The tails of the distribution decrease more slowly than the normal distribution. -It is therefore suitable to model phenomena -where numerically large values are more probable than is the case for the normal distribution. -For stock market returns and prices, a key characteristic is that it models -that extremely large variations from typical (crashes) can occur -even when almost all (normal) variations are small. - -Examples are returns from financial assets and turbulent wind speeds. - -The normal-inverse Gaussian distributions form -a subclass of the generalised hyperbolic distributions. - -See -[@http://en.wikipedia.org/wiki/Normal-inverse_Gaussian_distribution distribution]. -[@http://mathworld.wolfram.com/InverseGaussianDistribution.html - Weisstein, Eric W. "Inverse Gaussian Distribution." From MathWorld--A Wolfram Web Resource.] - -If you want a `double` precision inverse_gaussian distribution you can use - -``boost::math::inverse_gaussian_distribution<>`` - -or, more conveniently, you can write - - using boost::math::inverse_gaussian; - inverse_gaussian my_ig(2, 3); - -For mean parameters [mu] and scale (also called precision) parameter [lambda], -and random variate x, -the inverse_gaussian distribution is defined by the probability density function (PDF): - -__spaces f(x;[mu], [lambda]) = [sqrt]([lambda]/2[pi]x[super 3]) e[super -[lambda](x-[mu])[sup2]/2[mu][sup2]x] - -and Cumulative Density Function (CDF): - -__spaces F(x;[mu], [lambda]) = [Phi]{[sqrt]([lambda]/x) (x/[mu]-1)} + e[super 2[mu]/[lambda]] [Phi]{-[sqrt]([lambda]/[mu]) (1+x/[mu])} - -where [Phi] is the standard normal distribution CDF. - -The following graphs illustrate how the PDF and CDF of the inverse_gaussian distribution -varies for a few values of parameters [mu] and [lambda]: - -[graph inverse_gaussian_pdf] [/.png or .svg] - -[graph inverse_gaussian_cdf] - -Tweedie also provided 3 other parameterisations where ([mu] and [lambda]) -are replaced by their ratio [phi] = [lambda]/[mu] and by 1/[mu]: -these forms may be more suitable for Bayesian applications. -These can be found on Seshadri, page 2 and are also discussed by Chhikara and Folks on page 105. -Another related parameterisation, the __wald_distrib (where mean [mu] is unity) is also provided. - -[h4 Member Functions] - - inverse_gaussian_distribution(RealType df = 1, RealType scale = 1); // optionally scaled. - -Constructs an inverse_gaussian distribution with [mu] mean, -and scale [lambda], with both default values 1. - -Requires that both the mean [mu] parameter and scale [lambda] are greater than zero, -otherwise calls __domain_error. - - RealType mean()const; - -Returns the mean [mu] parameter of this distribution. - - RealType scale()const; - -Returns the scale [lambda] parameter of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variate is \[0,+[infin]). -[note Unlike some definitions, this implementation supports a random variate -equal to zero as a special case, returning zero for both pdf and cdf.] - -[h4 Accuracy] - -The inverse_gaussian distribution is implemented in terms of the -exponential function and standard normal distribution ['N]0,1 [Phi] : -refer to the accuracy data for those functions for more information. -But in general, gamma (and thus inverse gamma) results are often accurate to a few epsilon, ->14 decimal digits accuracy for 64-bit double. - -[h4 Implementation] - -In the following table [mu] is the mean parameter and -[lambda] is the scale parameter of the inverse_gaussian distribution, -/x/ is the random variate, /p/ is the probability and /q = 1-p/ its complement. -Parameters [mu] for shape and [lambda] for scale -are used for the inverse gaussian function. - -[table -[[Function] [Implementation Notes] ] -[[pdf] [ [sqrt]([lambda]/ 2[pi]x[super 3]) e[super -[lambda](x - [mu])[sup2]/ 2[mu][sup2]x]]] -[[cdf][ [Phi]{[sqrt]([lambda]/x) (x/[mu]-1)} + e[super 2[mu]/[lambda]] [Phi]{-[sqrt]([lambda]/[mu]) (1+x/[mu])} ]] -[[cdf complement] [using complement of [Phi] above.] ] -[[quantile][No closed form known. Estimated using a guess refined by Newton-Raphson iteration.]] -[[quantile from the complement][No closed form known. Estimated using a guess refined by Newton-Raphson iteration.]] -[[mode][[mu] {[sqrt](1+9[mu][sup2]/4[lambda][sup2])[sup2] - 3[mu]/2[lambda]} ]] -[[median][No closed form analytic equation is known, but is evaluated as quantile(0.5)]] -[[mean][[mu]] ] -[[variance][[mu][cubed]/[lambda]] ] -[[skewness][3 [sqrt] ([mu]/[lambda])] ] -[[kurtosis_excess][15[mu]/[lambda]] ] -[[kurtosis][12[mu]/[lambda]] ] -] [/table] - -[h4 References] - -#Wald, A. (1947). Sequential analysis. Wiley, NY. -#The Inverse Gaussian distribution : theory, methodology, and applications, Raj S. Chhikara, J. Leroy Folks. ISBN 0824779975 (1989). -#The Inverse Gaussian distribution : statistical theory and applications, Seshadri, V , ISBN - 0387986189 (pbk) (Dewey 519.2) (1998). -#[@http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.wald.html Numpy and Scipy Documentation]. -#[@http://bm2.genes.nig.ac.jp/RGM2/R_current/library/statmod/man/invgauss.html R statmod invgauss functions]. -#[@http://cran.r-project.org/web/packages/SuppDists/index.html R SuppDists invGauss functions]. -(Note that these R implementations names differ in case). -#[@http://www.statsci.org/s/invgauss.html StatSci.org invgauss help]. -#[@http://www.statsci.org/s/invgauss.statSci.org invgauss R source]. -#[@http://www.biostat.wustl.edu/archives/html/s-news/2001-12/msg00144.html pwald, qwald]. -#[@http://www.brighton-webs.co.uk/distributions/wald.asp Brighton Webs wald]. - -[endsect] [/section:inverse_gaussian_dist Inverse Gaussiann Distribution] - -[/ - Copyright 2010 John Maddock and Paul A. Bristow. - 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). -] \ No newline at end of file diff --git a/boost/libs/math/doc/distributions/laplace.qbk b/boost/libs/math/doc/distributions/laplace.qbk deleted file mode 100644 index e62cc21c..00000000 --- a/boost/libs/math/doc/distributions/laplace.qbk +++ /dev/null @@ -1,141 +0,0 @@ -[section:laplace_dist Laplace Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class laplace_distribution; - - typedef laplace_distribution<> laplace; - - template - class laplace_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - // Construct: - laplace_distribution(RealType location = 0, RealType scale = 1); - // Accessors: - RealType location()const; - RealType scale()const; - }; - - }} // namespaces - -Laplace distribution is the distribution of differences between two independent variates -with identical exponential distributions (Abramowitz and Stegun 1972, p. 930). -It is also called the double exponential distribution. - -[/ Wikipedia definition is The difference between two independent identically distributed -exponential random variables is governed by a Laplace distribution.] - -For location parameter [mu][space] and scale parameter [sigma][space], it is defined by the -probability density function: - -[equation laplace_pdf] - -The location and scale parameters are equivalent to the mean and -standard deviation of the normal or Gaussian distribution. - -The following graph illustrates the effect of the -parameters [mu][space] and [sigma][space] on the PDF. -Note that the domain of the random variable remains -\[-[infin],+[infin]\] irrespective of the value of the location parameter: - -[graph laplace_pdf] - -[h4 Member Functions] - - laplace_distribution(RealType location = 0, RealType scale = 1); - -Constructs a laplace distribution with location /location/ and -scale /scale/. - -The location parameter is the same as the mean of the random variate. - -The scale parameter is proportional to the standard deviation of the random variate. - -Requires that the scale parameter is greater than zero, otherwise calls -__domain_error. - - RealType location()const; - -Returns the /location/ parameter of this distribution. - - RealType scale()const; - -Returns the /scale/ parameter of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variable is \[-[infin],+[infin]\]. - -[h4 Accuracy] - -The laplace distribution is implemented in terms of the -standard library log and exp functions and as such should have very small errors. - -[h4 Implementation] - -In the following table [mu] is the location parameter of the distribution, -[sigma] is its scale parameter, /x/ is the random variate, /p/ is the probability -and its complement /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = e[super -abs(x-[mu]) \/ [sigma]] \/ (2 * [sigma]) ]] -[[cdf][Using the relations: - -x < [mu] : p = e[super (x-[mu])/[sigma] ] \/ [sigma] - -x >= [mu] : p = 1 - e[super ([mu]-x)/[sigma] ] \/ [sigma] -]] -[[cdf complement][Using the relation: - --x < [mu] : q = e[super (-x-[mu])/[sigma] ] \/ [sigma] - --x >= [mu] : q = 1 - e[super ([mu]+x)/[sigma] ] \/ [sigma] -]] -[[quantile][Using the relations: - -p < 0.5 : x = [mu] + [sigma] * log(2*p) - -p >= 0.5 : x = [mu] - [sigma] * log(2-2*p) -]] -[[quantile from the complement][Using the relation: - -q > 0.5: x = [mu] + [sigma]*log(2-2*q) - -q <=0.5: x = [mu] - [sigma]*log( 2*q ) -]] -[[mean][[mu]]] -[[variance][2 * [sigma][super 2] ]] -[[mode][[mu]]] -[[skewness][0]] -[[kurtosis][6]] -[[kurtosis excess][3]] -] - -[h4 References] - -* [@http://mathworld.wolfram.com/LaplaceDistribution.html Weisstein, Eric W. "Laplace Distribution."] From MathWorld--A Wolfram Web Resource. - -* [@http://en.wikipedia.org/wiki/Laplace_distribution Laplace Distribution] - -* M. Abramowitz and I. A. Stegun, Handbook of Mathematical Functions, 1972, p. 930. - -[endsect][/section:laplace_dist laplace] - -[/ - Copyright 2008, 2009 John Maddock, Paul A. Bristow and M.A. (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). -] - diff --git a/boost/libs/math/doc/distributions/logistic.qbk b/boost/libs/math/doc/distributions/logistic.qbk deleted file mode 100644 index c2d04a8d..00000000 --- a/boost/libs/math/doc/distributions/logistic.qbk +++ /dev/null @@ -1,103 +0,0 @@ -[section:logistic_dist Logistic Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class logistic_distribution; - - template - class logistic_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - // Construct: - logistic_distribution(RealType location = 0, RealType scale = 1); - // Accessors: - RealType location()const; // location. - RealType scale()const; // scale. - - }; - - typedef logistic_distribution<> logistic; - - }} // namespaces - -The logistic distribution is a continous probability distribution. -It has two parameters - location and scale. The cumulative distribution -function of the logistic distribution appears in logistic regression -and feedforward neural networks. Among other applications, -United State Chess Federation and FIDE use it to calculate chess ratings. - -The following graph shows how the distribution changes as the -parameters change: - -[graph logistic_pdf] - -[h4 Member Functions] - - logistic_distribution(RealType u = 0, RealType s = 1); - -Constructs a logistic distribution with location /u/ and scale /s/. - -Requires `scale > 0`, otherwise a __domain_error is raised. - - RealType location()const; - -Returns the location of this distribution. - - RealType scale()const; - -Returns the scale of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain of the random variable is \[-\[max_value\], +\[min_value\]\]. -However, the pdf and cdf support inputs of +[infin] and -[infin] -as special cases if RealType permits. - -At `p=1` and `p=0`, the quantile function returns the result of -+__overflow_error and -__overflow_error, while the complement -quantile function returns the result of -__overflow_error and -+__overflow_error respectively. - -[h4 Accuracy] - -The logistic distribution is implemented in terms of the `std::exp` -and the `std::log` functions, so its accuracy is related to the -accurate implementations of those functions on a given platform. -When calculating the quantile with a non-zero /position/ parameter -catastrophic cancellation errors can occur: -in such cases, only a low /absolute error/ can be guaranteed. - -[h4 Implementation] - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = e[super -(x-u)/s] / (s*(1+e[super -(x-u)/s])[super 2])]] -[[cdf][Using the relation: p = 1/(1+e[super -(x-u)/s])]] -[[cdf complement][Using the relation: q = 1/(1+e[super (x-u)/s])]] -[[quantile][Using the relation: x = u - s*log(1/p-1)]] -[[quantile from the complement][Using the relation: x = u + s*log(p/1-p)]] -[[mean][u]] -[[mode][The same as the mean.]] -[[skewness][0]] -[[kurtosis excess][6/5]] -[[variance][ ([pi]*s)[super 2] / 3]] -] - -[endsect] - -[/ logistic.qbk - Copyright 2006, 2007 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/lognormal.qbk b/boost/libs/math/doc/distributions/lognormal.qbk deleted file mode 100644 index 5f19ed5e..00000000 --- a/boost/libs/math/doc/distributions/lognormal.qbk +++ /dev/null @@ -1,119 +0,0 @@ -[section:lognormal_dist Log Normal Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class lognormal_distribution; - - typedef lognormal_distribution<> lognormal; - - template - class lognormal_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - // Construct: - lognormal_distribution(RealType location = 0, RealType scale = 1); - // Accessors: - RealType location()const; - RealType scale()const; - }; - - }} // namespaces - -The lognormal distribution is the distribution that arises -when the logarithm of the random variable is normally distributed. -A lognormal distribution results when the variable is the product -of a large number of independent, identically-distributed variables. - -For location and scale parameters /m/ and /s/ it is defined by the -probability density function: - -[equation lognormal_ref] - -The location and scale parameters are equivalent to the mean and -standard deviation of the logarithm of the random variable. - -The following graph illustrates the effect of the location -parameter on the PDF, note that the range of the random -variable remains \[0,+[infin]\] irrespective of the value of the -location parameter: - -[graph lognormal_pdf1] - -The next graph illustrates the effect of the scale parameter on the PDF: - -[graph lognormal_pdf2] - -[h4 Member Functions] - - lognormal_distribution(RealType location = 0, RealType scale = 1); - -Constructs a lognormal distribution with location /location/ and -scale /scale/. - -The location parameter is the same as the mean of the logarithm of the -random variate. - -The scale parameter is the same as the standard deviation of the -logarithm of the random variate. - -Requires that the scale parameter is greater than zero, otherwise calls -__domain_error. - - RealType location()const; - -Returns the /location/ parameter of this distribution. - - RealType scale()const; - -Returns the /scale/ parameter of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variable is \[0,+[infin]\]. - -[h4 Accuracy] - -The lognormal distribution is implemented in terms of the -standard library log and exp functions, plus the -[link math_toolkit.sf_erf.error_function error function], -and as such should have very low error rates. - -[h4 Implementation] - -In the following table /m/ is the location parameter of the distribution, -/s/ is its scale parameter, /x/ is the random variate, /p/ is the probability -and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = e[super -(ln(x) - m)[super 2 ] \/ 2s[super 2 ] ] \/ (x * s * sqrt(2pi)) ]] -[[cdf][Using the relation: p = cdf(normal_distribtion(m, s), log(x)) ]] -[[cdf complement][Using the relation: q = cdf(complement(normal_distribtion(m, s), log(x))) ]] -[[quantile][Using the relation: x = exp(quantile(normal_distribtion(m, s), p))]] -[[quantile from the complement][Using the relation: x = exp(quantile(complement(normal_distribtion(m, s), q)))]] -[[mean][e[super m + s[super 2 ] / 2 ] ]] -[[variance][(e[super s[super 2] ] - 1) * e[super 2m + s[super 2 ] ] ]] -[[mode][e[super m - s[super 2 ] ] ]] -[[skewness][sqrt(e[super s[super 2] ] - 1) * (2 + e[super s[super 2] ]) ]] -[[kurtosis][e[super 4s[super 2] ] + 2e[super 3s[super 2] ] + 3e[super 2s[super 2] ] - 3]] -[[kurtosis excess][e[super 4s[super 2] ] + 2e[super 3s[super 2] ] + 3e[super 2s[super 2] ] - 6 ]] -] - -[endsect][/section:normal_dist Normal] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/nag_library.qbk b/boost/libs/math/doc/distributions/nag_library.qbk deleted file mode 100644 index 4f728a1f..00000000 --- a/boost/libs/math/doc/distributions/nag_library.qbk +++ /dev/null @@ -1,60 +0,0 @@ -[section:nag_library Comparison with C, R, FORTRAN-style Free Functions] - -You are probably familiar with a statistics library that has free functions, -for example the classic [@http://nag.com/numeric/CL/CLdescription.asp NAG C library] -and matching [@http://nag.com/numeric/FL/FLdescription.asp NAG FORTRAN Library], -[@http://office.microsoft.com/en-us/excel/HP052090051033.aspx Microsoft Excel BINOMDIST(number_s,trials,probability_s,cumulative)], -[@http://www.r-project.org/ R], [@http://www.ptc.com/products/mathcad/mathcad14/mathcad_func_chart.htm MathCAD pbinom] -and many others. - -If so, you may find 'Distributions as Objects' unfamiliar, if not alien. - -However, *do not panic*, both definition and usage are not really very different. - -A very simple example of generating the same values as the -[@http://nag.com/numeric/CL/CLdescription.asp NAG C library] -for the binomial distribution follows. -(If you find slightly different values, the Boost C++ version, using double or better, -is very likely to be the more accurate. -Of course, accuracy is not usually a concern for most applications of this function). - -The [@http://www.nag.co.uk/numeric/cl/manual/pdf/G01/g01bjc.pdf NAG function specification] is - - void nag_binomial_dist(Integer n, double p, Integer k, - double *plek, double *pgtk, double *peqk, NagError *fail) - -and is called - - g01bjc(n, p, k, &plek, &pgtk, &peqk, NAGERR_DEFAULT); - -The equivalent using this Boost C++ library is: - - using namespace boost::math; // Using declaration avoids very long names. - binomial my_dist(4, 0.5); // c.f. NAG n = 4, p = 0.5 - -and values can be output thus: - - cout - << my_dist.trials() << " " // Echo the NAG input n = 4 trials. - << my_dist.success_fraction() << " " // Echo the NAG input p = 0.5 - << cdf(my_dist, 2) << " " // NAG plek with k = 2 - << cdf(complement(my_dist, 2)) << " " // NAG pgtk with k = 2 - << pdf(my_dist, 2) << endl; // NAG peqk with k = 2 - -`cdf(dist, k)` is equivalent to NAG library `plek`, lower tail probability of <= k - -`cdf(complement(dist, k))` is equivalent to NAG library `pgtk`, upper tail probability of > k - -`pdf(dist, k)` is equivalent to NAG library `peqk`, point probability of == k - -See [@../../example/binomial_example_nag.cpp binomial_example_nag.cpp] for details. - -[endsect] [/section:nag_library Comparison with C, R, FORTRAN-style Free Functions] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/nc_beta.qbk b/boost/libs/math/doc/distributions/nc_beta.qbk deleted file mode 100644 index d74b7167..00000000 --- a/boost/libs/math/doc/distributions/nc_beta.qbk +++ /dev/null @@ -1,204 +0,0 @@ -[section:nc_beta_dist Noncentral Beta Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class non_central_beta_distribution; - - typedef non_central_beta_distribution<> non_central_beta; - - template - class non_central_beta_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - // Constructor: - non_central_beta_distribution(RealType alpha, RealType beta, RealType lambda); - - // Accessor to shape parameters: - RealType alpha()const; - RealType beta()const; - - // Accessor to non-centrality parameter lambda: - RealType non_centrality()const; - }; - - }} // namespaces - -The noncentral beta distribution is a generalization of the __beta_distrib. - -It is defined as the ratio -X = [chi][sub m][super 2]([lambda]) \/ ([chi][sub m][super 2]([lambda]) -+ [chi][sub n][super 2]) -where [chi][sub m][super 2]([lambda]) is a noncentral [chi][super 2] -random variable with /m/ degrees of freedom, and [chi][sub n][super 2] -is a central [chi][super 2] random variable with /n/ degrees of freedom. - -This gives a PDF that can be expressed as a Poisson mixture -of beta distribution PDFs: - -[equation nc_beta_ref1] - -where P(i;[lambda]\/2) is the discrete Poisson probablity at /i/, with mean -[lambda]\/2, and I[sub x][super ']([alpha], [beta]) is the derivative of -the incomplete beta function. This leads to the usual form of the CDF -as: - -[equation nc_beta_ref2] - -The following graph illustrates how the distribution changes -for different values of [lambda]: - -[graph nc_beta_pdf] - -[h4 Member Functions] - - non_central_beta_distribution(RealType a, RealType b, RealType lambda); - -Constructs a noncentral beta distribution with shape parameters /a/ and /b/ -and non-centrality parameter /lambda/. - -Requires a > 0, b > 0 and lambda >= 0, otherwise calls __domain_error. - - RealType alpha()const; - -Returns the parameter /a/ from which this object was constructed. - - RealType beta()const; - -Returns the parameter /b/ from which this object was constructed. - - RealType non_centrality()const; - -Returns the parameter /lambda/ from which this object was constructed. - -[h4 Non-member Accessors] - -Most of the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -are supported: __cdf, __pdf, __quantile, __mean, __variance, __sd, -__median, __mode, __hazard, __chf, __range and __support. - -Mean and variance are implemented using hypergeometric pfq functions and relations given in -[@http://reference.wolfram.com/mathematica/ref/NoncentralBetaDistribution.html Wolfram Noncentral Beta Distribution]. - -However, the following are not currently implemented: - __skewness, __kurtosis and __kurtosis_excess. - -The domain of the random variable is \[0, 1\]. - -[h4 Accuracy] - -The following table shows the peak errors -(in units of [@http://en.wikipedia.org/wiki/Machine_epsilon epsilon]) -found on various platforms with various floating point types. -The failures in the comparison to the [@http://www.r-project.org/ R Math library], -seem to be mostly in the corner cases when the probablity would be very small. -Unless otherwise specified any floating-point type that is narrower -than the one shown will have __zero_error. - -[table_non_central_beta_CDF] - -[table_non_central_beta_CDF_complement] - -Error rates for the PDF, the complement of the CDF and for the quantile -functions are broadly similar. - -[h4 Tests] - -There are two sets of test data used to verify this implementation: -firstly we can compare with a few sample values generated by the -[@http://www.r-project.org/ R library]. -Secondly, we have tables of test data, computed with this -implementation and using interval arithmetic - this data should -be accurate to at least 50 decimal digits - and is the used for -our accuracy tests. - -[h4 Implementation] - -The CDF and its complement are evaluated as follows: - -First we determine which of the two values (the CDF or its -complement) is likely to be the smaller, the crossover point -is taken to be the mean of the distribution: for this we use the -approximation due to: R. Chattamvelli and R. Shanmugam, -"Algorithm AS 310: Computing the Non-Central Beta Distribution Function", -Applied Statistics, Vol. 46, No. 1. (1997), pp. 146-156. - -[equation nc_beta_ref3] - -Then either the CDF or its complement is computed using the -relations: - -[equation nc_beta_ref4] - -The summation is performed by starting at i = [lambda]/2, and then recursing -in both directions, using the usual recurrence relations for the Poisson -PDF and incomplete beta functions. This is the "Method 2" described -by: - -Denise Benton and K. Krishnamoorthy, -"Computing discrete mixtures of continuous -distributions: noncentral chisquare, noncentral t -and the distribution of the square of the sample -multiple correlation coefficient", -Computational Statistics & Data Analysis 43 (2003) 249-267. - -Specific applications of the above formulae to the noncentral -beta distribution can be found in: - -Russell V. Lenth, -"Algorithm AS 226: Computing Noncentral Beta Probabilities", -Applied Statistics, Vol. 36, No. 2. (1987), pp. 241-244. - -H. Frick, -"Algorithm AS R84: A Remark on Algorithm AS 226: Computing Non-Central Beta -Probabilities", Applied Statistics, Vol. 39, No. 2. (1990), pp. 311-312. - -Ming Long Lam, -"Remark AS R95: A Remark on Algorithm AS 226: Computing Non-Central Beta -Probabilities", Applied Statistics, Vol. 44, No. 4. (1995), pp. 551-552. - -Harry O. Posten, -"An Effective Algorithm for the Noncentral Beta Distribution Function", -The American Statistician, Vol. 47, No. 2. (May, 1993), pp. 129-131. - -R. Chattamvelli, -"A Note on the Noncentral Beta Distribution Function", -The American Statistician, Vol. 49, No. 2. (May, 1995), pp. 231-234. - -Of these, the Posten reference provides the most complete overview, -and includes the modification starting iteration at [lambda]/2. - -The main difference between this implementation and the above -references is the direct computation of the complement when most -efficient to do so, and the accumulation of the sum to -1 rather -than subtracting the result from 1 at the end: this can substantially -reduce the number of iterations required when the result is near 1. - -The PDF is computed using the methodology of Benton and Krishnamoorthy -and the relation: - -[equation nc_beta_ref1] - -Quantiles are computed using a specially modified version of -__bracket_solve, -starting the search for the root at the mean of the distribution. -(A Cornish-Fisher type expansion was also tried, but while this gets -quite close to the root in many cases, when it is wrong it tends to -introduce quite pathological behaviour: more investigation in this -area is probably warranted). - -[endsect] [/section:nc_beta_dist] - -[/ nc_beta.qbk - Copyright 2008 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/nc_chi_squared.qbk b/boost/libs/math/doc/distributions/nc_chi_squared.qbk deleted file mode 100644 index a1c2a32d..00000000 --- a/boost/libs/math/doc/distributions/nc_chi_squared.qbk +++ /dev/null @@ -1,273 +0,0 @@ -[section:nc_chi_squared_dist Noncentral Chi-Squared Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class non_central_chi_squared_distribution; - - typedef non_central_chi_squared_distribution<> non_central_chi_squared; - - template - class non_central_chi_squared_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - // Constructor: - non_central_chi_squared_distribution(RealType v, RealType lambda); - - // Accessor to degrees of freedom parameter v: - RealType degrees_of_freedom()const; - - // Accessor to non centrality parameter lambda: - RealType non_centrality()const; - - // Parameter finders: - static RealType find_degrees_of_freedom(RealType lambda, RealType x, RealType p); - template - static RealType find_degrees_of_freedom(const complemented3_type& c); - - static RealType find_non_centrality(RealType v, RealType x, RealType p); - template - static RealType find_non_centrality(const complemented3_type& c); - }; - - }} // namespaces - -The noncentral chi-squared distribution is a generalization of the -__chi_squared_distrib. If X[sub i] are [nu] independent, normally -distributed random variables with means [mu][sub i] and variances -[sigma][sub i][super 2], then the random variable - -[equation nc_chi_squ_ref1] - -is distributed according to the noncentral chi-squared distribution. - -The noncentral chi-squared distribution has two parameters: -[nu] which specifies the number of degrees of freedom -(i.e. the number of X[sub i]), and [lambda] which is related to the -mean of the random variables X[sub i] by: - -[equation nc_chi_squ_ref2] - -(Note that some references define [lambda] as one half of the above sum). - -This leads to a PDF of: - -[equation nc_chi_squ_ref3] - -where ['f(x;k)] is the central chi-squared distribution PDF, and -['I[sub v](x)] is a modified Bessel function of the first kind. - -The following graph illustrates how the distribution changes -for different values of [lambda]: - -[graph nccs_pdf] - -[h4 Member Functions] - - non_central_chi_squared_distribution(RealType v, RealType lambda); - -Constructs a Chi-Squared distribution with /v/ degrees of freedom -and non-centrality parameter /lambda/. - -Requires v > 0 and lambda >= 0, otherwise calls __domain_error. - - RealType degrees_of_freedom()const; - -Returns the parameter /v/ from which this object was constructed. - - RealType non_centrality()const; - -Returns the parameter /lambda/ from which this object was constructed. - - - static RealType find_degrees_of_freedom(RealType lambda, RealType x, RealType p); - -This function returns the number of degrees of freedom /v/ such that: -`cdf(non_central_chi_squared(v, lambda), x) == p` - - template - static RealType find_degrees_of_freedom(const complemented3_type& c); - -When called with argument `boost::math::complement(lambda, x, q)` -this function returns the number of degrees of freedom /v/ such that: - -`cdf(complement(non_central_chi_squared(v, lambda), x)) == q`. - - static RealType find_non_centrality(RealType v, RealType x, RealType p); - -This function returns the non centrality parameter /lambda/ such that: - -`cdf(non_central_chi_squared(v, lambda), x) == p` - - template - static RealType find_non_centrality(const complemented3_type& c); - -When called with argument `boost::math::complement(v, x, q)` -this function returns the non centrality parameter /lambda/ such that: - -`cdf(complement(non_central_chi_squared(v, lambda), x)) == q`. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain of the random variable is \[0, +[infin]\]. - -[h4 Examples] - -There is a -[link math_toolkit.stat_tut.weg.nccs_eg worked example] -for the noncentral chi-squared distribution. - -[h4 Accuracy] - -The following table shows the peak errors -(in units of [@http://en.wikipedia.org/wiki/Machine_epsilon epsilon]) -found on various platforms with various floating point types. -The failures in the comparison to the [@http://www.r-project.org/ R Math library], -seem to be mostly in the corner cases when the probablity would be very small. -Unless otherwise specified any floating-point type that is narrower -than the one shown will have __zero_error. - -[table_non_central_chi_squared_CDF] - -[table_non_central_chi_squared_CDF_complement] - -Error rates for the quantile -functions are broadly similar. Special mention should go to -the `mode` function: there is no closed form for this function, -so it is evaluated numerically by finding the maxima of the PDF: -in principal this can not produce an accuracy greater than the -square root of the machine epsilon. - -[h4 Tests] - -There are two sets of test data used to verify this implementation: -firstly we can compare with published data, for example with -Table 6 of "Self-Validating Computations of Probabilities for -Selected Central and Noncentral Univariate Probability Functions", -Morgan C. Wang and William J. Kennedy, -Journal of the American Statistical Association, -Vol. 89, No. 427. (Sep., 1994), pp. 878-887. -Secondly, we have tables of test data, computed with this -implementation and using interval arithmetic - this data should -be accurate to at least 50 decimal digits - and is the used for -our accuracy tests. - -[h4 Implementation] - -The CDF and its complement are evaluated as follows: - -First we determine which of the two values (the CDF or its -complement) is likely to be the smaller: for this we can use the -relation due to Temme (see "Asymptotic and Numerical Aspects of the -Noncentral Chi-Square Distribution", N. M. Temme, Computers Math. Applic. -Vol 25, No. 5, 55-63, 1993) that: - -F([nu],[lambda];[nu]+[lambda]) [asymp] 0.5 - -and so compute the CDF when the random variable is less than -[nu]+[lambda], and its complement when the random variable is -greater than [nu]+[lambda]. If necessary the computed result -is then subtracted from 1 to give the desired result (the CDF or its -complement). - -For small values of the non centrality parameter, the CDF is computed -using the method of Ding (see "Algorithm AS 275: Computing the Non-Central -#2 Distribution Function", Cherng G. Ding, Applied Statistics, Vol. 41, -No. 2. (1992), pp. 478-482). This uses the following series representation: - -[equation nc_chi_squ_ref4] - -which requires just one call to __gamma_p_derivative with the subsequent -terms being computed by recursion as shown above. - -For larger values of the non-centrality parameter, Ding's method can take -an unreasonable number of terms before convergence is achieved. Furthermore, -the largest term is not the first term, so in extreme cases the first term may -be zero, leading to a zero result, even though the true value may be non-zero. - -Therefore, when the non-centrality parameter is greater than 200, the method due -to Krishnamoorthy (see "Computing discrete mixtures of continuous distributions: -noncentral chisquare, noncentral t and the distribution of the -square of the sample multiple correlation coefficient", -Denise Benton and K. Krishnamoorthy, Computational Statistics & -Data Analysis, 43, (2003), 249-267) is used. - -This method uses the well known sum: - -[equation nc_chi_squ_ref5] - -Where P[sub a](x) is the incomplete gamma function. - -The method starts at the [lambda]th term, which is where the Poisson weighting -function achieves its maximum value, although this is not necessarily -the largest overall term. Subsequent terms are calculated via the normal -recurrence relations for the incomplete gamma function, and iteration proceeds -both forwards and backwards until sufficient precision has been achieved. It -should be noted that recurrence in the forwards direction of P[sub a](x) is -numerically unstable. However, since we always start /after/ the largest -term in the series, numeric instability is introduced more slowly than the -series converges. - -Computation of the complement of the CDF uses an extension of Krishnamoorthy's -method, given that: - -[equation nc_chi_squ_ref6] - -we can again start at the [lambda]'th term and proceed in both directions from -there until the required precision is achieved. This time it is backwards -recursion on the incomplete gamma function Q[sub a](x) which is unstable. -However, as long as we start well /before/ the largest term, this is not an -issue in practice. - -The PDF is computed directly using the relation: - -[equation nc_chi_squ_ref3] - -Where ['f(x; v)] is the PDF of the central __chi_squared_distrib and -['I[sub v](x)] is a modified Bessel function, see __cyl_bessel_i. -For small values of the -non-centrality parameter the relation in terms of __cyl_bessel_i -is used. However, this method fails for large values of the -non-centrality parameter, so in that case the infinite sum is -evaluated using the method of Benton and Krishnamoorthy, and -the usual recurrence relations for successive terms. - -The quantile functions are computed by numeric inversion of the CDF. -An improve starting quess is from -Thomas Luu, -[@http://discovery.ucl.ac.uk/1482128/, Fast and accurate parallel computation of quantile functions for random number generation, Doctorial Thesis, 2016]. - -There is no [@http://en.wikipedia.org/wiki/Closed_form closed form] -for the mode of the noncentral chi-squared -distribution: it is computed numerically by finding the maximum -of the PDF. Likewise, the median is computed numerically via -the quantile. - -The remaining non-member functions use the following formulas: - -[equation nc_chi_squ_ref7] - -Some analytic properties of noncentral distributions -(particularly unimodality, and monotonicity of their modes) -are surveyed and summarized by: - -Andrea van Aubel & Wolfgang Gawronski, Applied Mathematics and Computation, 141 (2003) 3-12. - -[endsect] [/section:nc_chi_squared_dist] - -[/ nc_chi_squared.qbk - Copyright 2008 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/nc_chi_squared_example.qbk b/boost/libs/math/doc/distributions/nc_chi_squared_example.qbk deleted file mode 100644 index 38f45b01..00000000 --- a/boost/libs/math/doc/distributions/nc_chi_squared_example.qbk +++ /dev/null @@ -1,20 +0,0 @@ -[section:nccs_eg Non Central Chi Squared Example] - -(See also the reference documentation for the __non_central_chi_squared_distrib.) - -[section:nccs_power_eg Tables of the power function of the chi[super 2] test.] -[/chi super 2 failed to show the chi in pdf why??? (OK in html) so use words.] - -[import ../../example/nc_chi_sq_example.cpp] -[nccs_eg] - -[endsect] [/nccs_power_eg Tables of the power function of the chi-squared [chi][super 2] test.] - -[endsect] [/section:nccs_eg Non Central Chi Squared Example] - -[/ - Copyright 2006, 2011 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/distributions/nc_f.qbk b/boost/libs/math/doc/distributions/nc_f.qbk deleted file mode 100644 index 535a5da4..00000000 --- a/boost/libs/math/doc/distributions/nc_f.qbk +++ /dev/null @@ -1,193 +0,0 @@ -[section:nc_f_dist Noncentral F Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class non_central_f_distribution; - - typedef non_central_f_distribution<> non_central_f; - - template - class non_central_f_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - // Constructor: - non_central_f_distribution(RealType v1, RealType v2, RealType lambda); - - // Accessor to degrees_of_freedom parameters v1 & v2: - RealType degrees_of_freedom1()const; - RealType degrees_of_freedom2()const; - - // Accessor to non-centrality parameter lambda: - RealType non_centrality()const; - }; - - }} // namespaces - -The noncentral F distribution is a generalization of the __F_distrib. -It is defined as the ratio - - F = (X/v1) / (Y/v2) - -where X is a noncentral [chi][super 2] -random variable with /v1/ degrees of freedom and non-centrality parameter [lambda], -and Y is a central [chi][super 2] random variable with /v2/ degrees of freedom. - -This gives the following PDF: - -[equation nc_f_ref1] - -where L[sub a][super b](c) is a generalised Laguerre polynomial and B(a,b) is the -__beta function, or - -[equation nc_f_ref2] - -The following graph illustrates how the distribution changes -for different values of [lambda]: - -[graph nc_f_pdf] - -[h4 Member Functions] - - non_central_f_distribution(RealType v1, RealType v2, RealType lambda); - -Constructs a non-central beta distribution with parameters /v1/ and /v2/ -and non-centrality parameter /lambda/. - -Requires v1 > 0, v2 > 0 and lambda >= 0, otherwise calls __domain_error. - - RealType degrees_of_freedom1()const; - -Returns the parameter /v1/ from which this object was constructed. - - RealType degrees_of_freedom2()const; - -Returns the parameter /v2/ from which this object was constructed. - - RealType non_centrality()const; - -Returns the non-centrality parameter /lambda/ from which this object was constructed. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain of the random variable is \[0, +[infin]\]. - -[h4 Accuracy] - -This distribution is implemented in terms of the -__non_central_beta_distrib: refer to that distribution for accuracy data. - -[h4 Tests] - -Since this distribution is implemented by adapting another distribution, -the tests consist of basic sanity checks computed by the -[@http://www.r-project.org/ R-2.5.1 Math library statistical -package] and its pbeta and dbeta functions. - -[h4 Implementation] - -In the following table /v1/ and /v2/ are the first and second -degrees of freedom parameters of the distribution, [lambda] -is the non-centrality parameter, -/x/ is the random variate, /p/ is the probability, and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Implemented in terms of the non-central beta PDF using the relation: - -f(x;v1,v2;[lambda]) = (v1\/v2) / ((1+y)*(1+y)) * g(y\/(1+y);v1\/2,v2\/2;[lambda]) - -where g(x; a, b; [lambda]) is the non central beta PDF, and: - -y = x * v1 \/ v2 -]] -[[cdf][Using the relation: - -p = B[sub y](v1\/2, v2\/2; [lambda]) - -where B[sub x](a, b; [lambda]) is the noncentral beta distribution CDF and - -y = x * v1 \/ v2 - -]] - -[[cdf complement][Using the relation: - -q = 1 - B[sub y](v1\/2, v2\/2; [lambda]) - -where 1 - B[sub x](a, b; [lambda]) is the complement of the -noncentral beta distribution CDF and - -y = x * v1 \/ v2 - -]] -[[quantile][Using the relation: - -x = (bx \/ (1-bx)) * (v1 \/ v2) - -where - -bx = Q[sub p][super -1](v1\/2, v2\/2; [lambda]) - -and - -Q[sub p][super -1](v1\/2, v2\/2; [lambda]) - -is the noncentral beta quantile. - -]] -[[quantile - -from the complement][ -Using the relation: - -x = (bx \/ (1-bx)) * (v1 \/ v2) - -where - -bx = QC[sub q][super -1](v1\/2, v2\/2; [lambda]) - -and - -QC[sub q][super -1](v1\/2, v2\/2; [lambda]) - -is the noncentral beta quantile from the complement.]] -[[mean][v2 * (v1 + l) \/ (v1 * (v2 - 2))]] -[[mode][By numeric maximalisation of the PDF.]] -[[variance][Refer to, [@http://mathworld.wolfram.com/NoncentralF-Distribution.html - Weisstein, Eric W. "Noncentral F-Distribution." From MathWorld--A Wolfram Web Resource.] ]] -[[skewness][Refer to, [@http://mathworld.wolfram.com/NoncentralF-Distribution.html - Weisstein, Eric W. "Noncentral F-Distribution." From MathWorld--A Wolfram Web Resource.], - and to the [@http://reference.wolfram.com/mathematica/ref/NoncentralFRatioDistribution.html - Mathematica documentation] ]] -[[kurtosis and kurtosis excess] - [Refer to, [@http://mathworld.wolfram.com/NoncentralF-Distribution.html - Weisstein, Eric W. "Noncentral F-Distribution." From MathWorld--A Wolfram Web Resource.], - and to the [@http://reference.wolfram.com/mathematica/ref/NoncentralFRatioDistribution.html - Mathematica documentation] ]] -] - -Some analytic properties of noncentral distributions -(particularly unimodality, and monotonicity of their modes) -are surveyed and summarized by: - -Andrea van Aubel & Wolfgang Gawronski, Applied Mathematics and Computation, 141 (2003) 3-12. - -[endsect] [/section:nc_f_dist] - -[/ nc_f.qbk - Copyright 2008 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/nc_t.qbk b/boost/libs/math/doc/distributions/nc_t.qbk deleted file mode 100644 index 5318d1a3..00000000 --- a/boost/libs/math/doc/distributions/nc_t.qbk +++ /dev/null @@ -1,224 +0,0 @@ -[section:nc_t_dist Noncentral T Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class non_central_t_distribution; - - typedef non_central_t_distribution<> non_central_t; - - template - class non_central_t_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - // Constructor: - non_central_t_distribution(RealType v, RealType delta); - - // Accessor to degrees_of_freedom parameter v: - RealType degrees_of_freedom()const; - - // Accessor to non-centrality parameter delta: - RealType non_centrality()const; - }; - - }} // namespaces - -The noncentral T distribution is a generalization of the __students_t_distrib. -Let X have a normal distribution with mean [delta] and variance 1, and let -[nu] S[super 2] have -a chi-squared distribution with degrees of freedom [nu]. Assume that -X and S[super 2] are independent. The -distribution of t[sub [nu]]([delta])=X/S is called a -noncentral t distribution with degrees of freedom [nu] and noncentrality -parameter [delta]. - -This gives the following PDF: - -[equation nc_t_ref1] - -where [sub 1]F[sub 1](a;b;x) is a confluent hypergeometric function. - -The following graph illustrates how the distribution changes -for different values of [nu] and [delta]: - -[graph nc_t_pdf] -[graph nc_t_cdf] - -[h4 Member Functions] - - non_central_t_distribution(RealType v, RealType delta); - -Constructs a non-central t distribution with degrees of freedom -parameter /v/ and non-centrality parameter /delta/. - -Requires /v/ > 0 (including positive infinity) and finite /delta/, otherwise calls __domain_error. - - RealType degrees_of_freedom()const; - -Returns the parameter /v/ from which this object was constructed. - - RealType non_centrality()const; - -Returns the non-centrality parameter /delta/ from which this object was constructed. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain of the random variable is \[-[infin], +[infin]\]. - -[h4 Accuracy] - -The following table shows the peak errors -(in units of [@http://en.wikipedia.org/wiki/Machine_epsilon epsilon]) -found on various platforms with various floating-point types. -Unless otherwise specified, any floating-point type that is narrower -than the one shown will have __zero_error. - -[table_non_central_t_CDF] - -[table_non_central_t_CDF_complement] - -[caution The complexity of the current algorithm is dependent upon -[delta][super 2]: consequently the time taken to evaluate the CDF -increases rapidly for [delta] > 500, likewise the accuracy decreases -rapidly for very large [delta].] - -Accuracy for the quantile and PDF functions should be broadly similar. -The /mode/ is determined numerically and cannot -in principal be more accurate than the square root of -floating-point type FPT epsilon, accessed using `boost::math::tools::epsilon()`. -For 64-bit `double`, epsilon is about 1e-16, so the fractional accuracy is limited to 1e-8. - -[h4 Tests] - -There are two sets of tests of this distribution: - -Basic sanity checks compare this implementation to the test values given in -"Computing discrete mixtures of continuous -distributions: noncentral chisquare, noncentral t -and the distribution of the square of the sample -multiple correlation coefficient." -Denise Benton, K. Krishnamoorthy, -Computational Statistics & Data Analysis 43 (2003) 249-267. - -Accuracy checks use test data computed with this -implementation and arbitary precision interval arithmetic: -this test data is believed to be accurate to at least 50 -decimal places. - -The cases of large (or infinite) [nu] and/or large [delta] has received special -treatment to avoid catastrophic loss of accuracy. -New tests have been added to confirm the improvement achieved. - -From Boost 1.52, degrees of freedom [nu] can be +[infin] -when the normal distribution located at [delta] -(equivalent to the central Student's t distribution) -is used in place for accuracy and speed. - -[h4 Implementation] - -The CDF is computed using a modification of the method -described in -"Computing discrete mixtures of continuous -distributions: noncentral chisquare, noncentral t -and the distribution of the square of the sample -multiple correlation coefficient." -Denise Benton, K. Krishnamoorthy, -Computational Statistics & Data Analysis 43 (2003) 249-267. - -This uses the following formula for the CDF: - -[equation nc_t_ref2] - -Where I[sub x](a,b) is the incomplete beta function, and -[Phi](x) is the normal CDF at x. - -Iteration starts at the largest of the Poisson weighting terms -(at i = [delta][super 2] / 2) and then proceeds in both directions -as per Benton and Krishnamoorthy's paper. - -Alternatively, by considering what happens when t = [infin], we have -x = 1, and therefore I[sub x](a,b) = 1 and: - -[equation nc_t_ref3] - -From this we can easily show that: - -[equation nc_t_ref4] - -and therefore we have a means to compute either the probability or its -complement directly without the risk of cancellation error. The -crossover criterion for choosing whether to calculate the CDF or -its complement is the same as for the -__non_central_beta_distrib. - -The PDF can be computed by a very similar method using: - -[equation nc_t_ref5] - -Where I[sub x][super '](a,b) is the derivative of the incomplete beta function. - -For both the PDF and CDF we switch to approximating the distribution by a -Student's t distribution centred on [delta] when [nu] is very large. -The crossover location appears to be when [delta]/(4[nu]) < [epsilon], -this location was estimated by inspection of equation 2.6 in -"A Comparison of Approximations To Percentiles of the -Noncentral t-Distribution". H. Sahai and M. M. Ojeda, -Revista Investigacion Operacional Vol 21, No 2, 2000, page 123. - -Equation 2.6 is a Fisher-Cornish expansion by Eeden and Johnson. -The second term includes the ratio [delta]/(4[nu]), -so when this term become negligible, this and following terms can be ignored, -leaving just Student's t distribution centred on [delta]. - -This was also confirmed by experimental testing. - -See also - -* "Some Approximations to the Percentage Points of the Noncentral -t-Distribution". C. van Eeden. International Statistical Review, 29, 4-31. - -* "Continuous Univariate Distributions". N.L. Johnson, S. Kotz and -N. Balkrishnan. 1995. John Wiley and Sons New York. - -The quantile is calculated via the usual -__root_finding_without_derivatives method -with the initial guess taken as the quantile of a normal approximation -to the noncentral T. - -There is no closed form for the mode, so this is computed via -functional maximisation of the PDF. - -The remaining functions (mean, variance etc) are implemented -using the formulas given in -Weisstein, Eric W. "Noncentral Student's t-Distribution." -From MathWorld--A Wolfram Web Resource. -[@http://mathworld.wolfram.com/NoncentralStudentst-Distribution.html -http://mathworld.wolfram.com/NoncentralStudentst-Distribution.html] -and in the -[@http://reference.wolfram.com/mathematica/ref/NoncentralStudentTDistribution.html -Mathematica documentation]. - -Some analytic properties of noncentral distributions -(particularly unimodality, and monotonicity of their modes) -are surveyed and summarized by: - -Andrea van Aubel & Wolfgang Gawronski, Applied Mathematics and Computation, 141 (2003) 3-12. - -[endsect] [/section:nc_t_dist] - -[/ nc_t.qbk - Copyright 2008, 2012 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/negative_binomial.qbk b/boost/libs/math/doc/distributions/negative_binomial.qbk deleted file mode 100644 index 0c5a4be1..00000000 --- a/boost/libs/math/doc/distributions/negative_binomial.qbk +++ /dev/null @@ -1,373 +0,0 @@ -[section:negative_binomial_dist Negative Binomial Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class negative_binomial_distribution; - - typedef negative_binomial_distribution<> negative_binomial; - - template - class negative_binomial_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - // Constructor from successes and success_fraction: - negative_binomial_distribution(RealType r, RealType p); - - // Parameter accessors: - RealType success_fraction() const; - RealType successes() const; - - // Bounds on success fraction: - static RealType find_lower_bound_on_p( - RealType trials, - RealType successes, - RealType probability); // alpha - static RealType find_upper_bound_on_p( - RealType trials, - RealType successes, - RealType probability); // alpha - - // Estimate min/max number of trials: - static RealType find_minimum_number_of_trials( - RealType k, // Number of failures. - RealType p, // Success fraction. - RealType probability); // Probability threshold alpha. - static RealType find_maximum_number_of_trials( - RealType k, // Number of failures. - RealType p, // Success fraction. - RealType probability); // Probability threshold alpha. - }; - - }} // namespaces - -The class type `negative_binomial_distribution` represents a -[@http://en.wikipedia.org/wiki/Negative_binomial_distribution negative_binomial distribution]: -it is used when there are exactly two mutually exclusive outcomes of a -[@http://en.wikipedia.org/wiki/Bernoulli_trial Bernoulli trial]: -these outcomes are labelled "success" and "failure". - -For k + r Bernoulli trials each with success fraction p, the -negative_binomial distribution gives the probability of observing -k failures and r successes with success on the last trial. -The negative_binomial distribution -assumes that success_fraction p is fixed for all (k + r) trials. - -[note The random variable for the negative binomial distribution is the number of trials, -(the number of successes is a fixed property of the distribution) -whereas for the binomial, -the random variable is the number of successes, for a fixed number of trials.] - -It has the PDF: - -[equation neg_binomial_ref] - -The following graph illustrate how the PDF varies as the success fraction -/p/ changes: - -[graph negative_binomial_pdf_1] - -Alternatively, this graph shows how the shape of the PDF varies as -the number of successes changes: - -[graph negative_binomial_pdf_2] - -[h4 Related Distributions] - -The name negative binomial distribution is reserved by some to the -case where the successes parameter r is an integer. -This integer version is also called the -[@http://mathworld.wolfram.com/PascalDistribution.html Pascal distribution]. - -This implementation uses real numbers for the computation throughout -(because it uses the *real-valued* incomplete beta function family of functions). -This real-valued version is also called the Polya Distribution. - -The Poisson distribution is a generalization of the Pascal distribution, -where the success parameter r is an integer: to obtain the Pascal -distribution you must ensure that an integer value is provided for r, -and take integer values (floor or ceiling) from functions that return -a number of successes. - -For large values of r (successes), the negative binomial distribution -converges to the Poisson distribution. - -The geometric distribution is a special case -where the successes parameter r = 1, -so only a first and only success is required. -geometric(p) = negative_binomial(1, p). - -The Poisson distribution is a special case for large successes - -poisson([lambda]) = lim [sub r [rarr] [infin]] [space] negative_binomial(r, r / ([lambda] + r))) - -[discrete_quantile_warning Negative Binomial] - -[h4 Member Functions] - -[h5 Construct] - - negative_binomial_distribution(RealType r, RealType p); - -Constructor: /r/ is the total number of successes, /p/ is the -probability of success of a single trial. - -Requires: `r > 0` and `0 <= p <= 1`. - -[h5 Accessors] - - RealType success_fraction() const; // successes / trials (0 <= p <= 1) - -Returns the parameter /p/ from which this distribution was constructed. - - RealType successes() const; // required successes (r > 0) - -Returns the parameter /r/ from which this distribution was constructed. - -The best method of calculation for the following functions is disputed: -see __binomial_distrib for more discussion. - -[h5 Lower Bound on Parameter p] - - static RealType find_lower_bound_on_p( - RealType failures, - RealType successes, - RealType probability) // (0 <= alpha <= 1), 0.05 equivalent to 95% confidence. - -Returns a *lower bound* on the success fraction: - -[variablelist -[[failures][The total number of failures before the ['r]th success.]] -[[successes][The number of successes required.]] -[[alpha][The largest acceptable probability that the true value of - the success fraction is [*less than] the value returned.]] -] - -For example, if you observe /k/ failures and /r/ successes from /n/ = k + r trials -the best estimate for the success fraction is simply ['r/n], but if you -want to be 95% sure that the true value is [*greater than] some value, -['p[sub min]], then: - - p``[sub min]`` = negative_binomial_distribution::find_lower_bound_on_p( - failures, successes, 0.05); - -[link math_toolkit.stat_tut.weg.neg_binom_eg.neg_binom_conf See negative binomial confidence interval example.] - -This function uses the Clopper-Pearson method of computing the lower bound on the -success fraction, whilst many texts refer to this method as giving an "exact" -result in practice it produces an interval that guarantees ['at least] the -coverage required, and may produce pessimistic estimates for some combinations -of /failures/ and /successes/. See: - -[@http://www.ucs.louisiana.edu/~kxk4695/Discrete_new.pdf -Yong Cai and K. Krishnamoorthy, A Simple Improved Inferential Method for Some Discrete Distributions. -Computational statistics and data analysis, 2005, vol. 48, no3, 605-621]. - -[h5 Upper Bound on Parameter p] - - static RealType find_upper_bound_on_p( - RealType trials, - RealType successes, - RealType alpha); // (0 <= alpha <= 1), 0.05 equivalent to 95% confidence. - -Returns an *upper bound* on the success fraction: - -[variablelist -[[trials][The total number of trials conducted.]] -[[successes][The number of successes that occurred.]] -[[alpha][The largest acceptable probability that the true value of - the success fraction is [*greater than] the value returned.]] -] - -For example, if you observe /k/ successes from /n/ trials the -best estimate for the success fraction is simply ['k/n], but if you -want to be 95% sure that the true value is [*less than] some value, -['p[sub max]], then: - - p``[sub max]`` = negative_binomial_distribution::find_upper_bound_on_p( - r, k, 0.05); - -[link math_toolkit.stat_tut.weg.neg_binom_eg.neg_binom_conf See negative binomial confidence interval example.] - -This function uses the Clopper-Pearson method of computing the lower bound on the -success fraction, whilst many texts refer to this method as giving an "exact" -result in practice it produces an interval that guarantees ['at least] the -coverage required, and may produce pessimistic estimates for some combinations -of /failures/ and /successes/. See: - -[@http://www.ucs.louisiana.edu/~kxk4695/Discrete_new.pdf -Yong Cai and K. Krishnamoorthy, A Simple Improved Inferential Method for Some Discrete Distributions. -Computational statistics and data analysis, 2005, vol. 48, no3, 605-621]. - -[h5 Estimating Number of Trials to Ensure at Least a Certain Number of Failures] - - static RealType find_minimum_number_of_trials( - RealType k, // number of failures. - RealType p, // success fraction. - RealType alpha); // probability threshold (0.05 equivalent to 95%). - -This functions estimates the number of trials required to achieve a certain -probability that [*more than k failures will be observed]. - -[variablelist -[[k][The target number of failures to be observed.]] -[[p][The probability of ['success] for each trial.]] -[[alpha][The maximum acceptable risk that only k failures or fewer will be observed.]] -] - -For example: - - negative_binomial_distribution::find_minimum_number_of_trials(10, 0.5, 0.05); - -Returns the smallest number of trials we must conduct to be 95% sure -of seeing 10 failures that occur with frequency one half. - -[link math_toolkit.stat_tut.weg.neg_binom_eg.neg_binom_size_eg Worked Example.] - -This function uses numeric inversion of the negative binomial distribution -to obtain the result: another interpretation of the result, is that it finds -the number of trials (success+failures) that will lead to an /alpha/ probability -of observing k failures or fewer. - -[h5 Estimating Number of Trials to Ensure a Maximum Number of Failures or Less] - - static RealType find_maximum_number_of_trials( - RealType k, // number of failures. - RealType p, // success fraction. - RealType alpha); // probability threshold (0.05 equivalent to 95%). - -This functions estimates the maximum number of trials we can conduct and achieve -a certain probability that [*k failures or fewer will be observed]. - -[variablelist -[[k][The maximum number of failures to be observed.]] -[[p][The probability of ['success] for each trial.]] -[[alpha][The maximum acceptable ['risk] that more than k failures will be observed.]] -] - -For example: - - negative_binomial_distribution::find_maximum_number_of_trials(0, 1.0-1.0/1000000, 0.05); - -Returns the largest number of trials we can conduct and still be 95% sure -of seeing no failures that occur with frequency one in one million. - -This function uses numeric inversion of the negative binomial distribution -to obtain the result: another interpretation of the result, is that it finds -the number of trials (success+failures) that will lead to an /alpha/ probability -of observing more than k failures. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -However it's worth taking a moment to define what these actually mean in -the context of this distribution: - -[table Meaning of the non-member accessors. -[[Function][Meaning]] -[[__pdf] - [The probability of obtaining [*exactly k failures] from k+r trials - with success fraction p. For example: - -``pdf(negative_binomial(r, p), k)``]] -[[__cdf] - [The probability of obtaining [*k failures or fewer] from k+r trials - with success fraction p and success on the last trial. For example: - -``cdf(negative_binomial(r, p), k)``]] -[[__ccdf] - [The probability of obtaining [*more than k failures] from k+r trials - with success fraction p and success on the last trial. For example: - -``cdf(complement(negative_binomial(r, p), k))``]] -[[__quantile] - [The [*greatest] number of failures k expected to be observed from k+r trials - with success fraction p, at probability P. Note that the value returned - is a real-number, and not an integer. Depending on the use case you may - want to take either the floor or ceiling of the real result. For example: - -``quantile(negative_binomial(r, p), P)``]] -[[__quantile_c] - [The [*smallest] number of failures k expected to be observed from k+r trials - with success fraction p, at probability P. Note that the value returned - is a real-number, and not an integer. Depending on the use case you may - want to take either the floor or ceiling of the real result. For example: - ``quantile(complement(negative_binomial(r, p), P))``]] -] - -[h4 Accuracy] - -This distribution is implemented using the -incomplete beta functions __ibeta and __ibetac: -please refer to these functions for information on accuracy. - -[h4 Implementation] - -In the following table, /p/ is the probability that any one trial will -be successful (the success fraction), /r/ is the number of successes, -/k/ is the number of failures, /p/ is the probability and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][pdf = exp(lgamma(r + k) - lgamma(r) - lgamma(k+1)) * pow(p, r) * pow((1-p), k) - -Implementation is in terms of __ibeta_derivative: - -(p/(r + k)) * ibeta_derivative(r, static_cast(k+1), p) -The function __ibeta_derivative is used here, since it has already -been optimised for the lowest possible error - indeed this is really -just a thin wrapper around part of the internals of the incomplete -beta function. -]] -[[cdf][Using the relation: - -cdf = I[sub p](r, k+1) = ibeta(r, k+1, p) - -= ibeta(r, static_cast(k+1), p)]] -[[cdf complement][Using the relation: - -1 - cdf = I[sub p](k+1, r) - -= ibetac(r, static_cast(k+1), p) -]] -[[quantile][ibeta_invb(r, p, P) - 1]] -[[quantile from the complement][ibetac_invb(r, p, Q) -1)]] -[[mean][ `r(1-p)/p` ]] -[[variance][ `r (1-p) / p * p` ]] -[[mode][`floor((r-1) * (1 - p)/p)`]] -[[skewness][`(2 - p) / sqrt(r * (1 - p))`]] -[[kurtosis][`6 / r + (p * p) / r * (1 - p )`]] -[[kurtosis excess][`6 / r + (p * p) / r * (1 - p ) -3`]] -[[parameter estimation member functions][]] -[[`find_lower_bound_on_p`][ibeta_inv(successes, failures + 1, alpha)]] -[[`find_upper_bound_on_p`][ibetac_inv(successes, failures, alpha) plus see comments in code.]] -[[`find_minimum_number_of_trials`][ibeta_inva(k + 1, p, alpha)]] -[[`find_maximum_number_of_trials`][ibetac_inva(k + 1, p, alpha)]] -] - -Implementation notes: - -* The real concept type (that deliberately lacks the Lanczos approximation), -was found to take several minutes to evaluate some extreme test values, -so the test has been disabled for this type. - -* Much greater speed, and perhaps greater accuracy, -might be achieved for extreme values by using a normal approximation. -This is NOT been tested or implemented. - -[endsect][/section:negative_binomial_dist Negative Binomial] - -[/ negative_binomial.qbk - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/negative_binomial_example.qbk b/boost/libs/math/doc/distributions/negative_binomial_example.qbk deleted file mode 100644 index 4c992bd5..00000000 --- a/boost/libs/math/doc/distributions/negative_binomial_example.qbk +++ /dev/null @@ -1,192 +0,0 @@ -[section:neg_binom_eg Negative Binomial Distribution Examples] - -(See also the reference documentation for the __negative_binomial_distrib.) - -[section:neg_binom_conf Calculating Confidence Limits on the Frequency of Occurrence for the Negative Binomial Distribution] - -Imagine you have a process that follows a negative binomial distribution: -for each trial conducted, an event either occurs or does it does not, referred -to as "successes" and "failures". The frequency with which successes occur -is variously referred to as the -success fraction, success ratio, success percentage, occurrence frequency, or probability of occurrence. - -If, by experiment, you want to measure the - the best estimate of success fraction is given simply -by /k/ \/ /N/, for /k/ successes out of /N/ trials. - -However our confidence in that estimate will be shaped by how many trials were conducted, -and how many successes were observed. The static member functions -`negative_binomial_distribution<>::find_lower_bound_on_p` and -`negative_binomial_distribution<>::find_upper_bound_on_p` -allow you to calculate the confidence intervals for your estimate of the success fraction. - -The sample program [@../../example/neg_binom_confidence_limits.cpp -neg_binom_confidence_limits.cpp] illustrates their use. - -[import ../../example/neg_binom_confidence_limits.cpp] - -[neg_binomial_confidence_limits] -Let's see some sample output for a 1 in 10 -success ratio, first for a mere 20 trials: - -[pre'''______________________________________________ -2-Sided Confidence Limits For Success Fraction -______________________________________________ -Number of trials = 20 -Number of successes = 2 -Number of failures = 18 -Observed frequency of occurrence = 0.1 -___________________________________________ -Confidence Lower Upper - Value (%) Limit Limit -___________________________________________ - 50.000 0.04812 0.13554 - 75.000 0.03078 0.17727 - 90.000 0.01807 0.22637 - 95.000 0.01235 0.26028 - 99.000 0.00530 0.33111 - 99.900 0.00164 0.41802 - 99.990 0.00051 0.49202 - 99.999 0.00016 0.55574 -'''] - -As you can see, even at the 95% confidence level the bounds (0.012 to 0.26) are -really very wide, and very asymmetric about the observed value 0.1. - -Compare that with the program output for a mass -2000 trials: - -[pre'''______________________________________________ -2-Sided Confidence Limits For Success Fraction -______________________________________________ -Number of trials = 2000 -Number of successes = 200 -Number of failures = 1800 -Observed frequency of occurrence = 0.1 -___________________________________________ -Confidence Lower Upper - Value (%) Limit Limit -___________________________________________ - 50.000 0.09536 0.10445 - 75.000 0.09228 0.10776 - 90.000 0.08916 0.11125 - 95.000 0.08720 0.11352 - 99.000 0.08344 0.11802 - 99.900 0.07921 0.12336 - 99.990 0.07577 0.12795 - 99.999 0.07282 0.13206 -'''] - -Now even when the confidence level is very high, the limits (at 99.999%, 0.07 to 0.13) are really -quite close and nearly symmetric to the observed value of 0.1. - -[endsect][/section:neg_binom_conf Calculating Confidence Limits on the Frequency of Occurrence] - -[section:neg_binom_size_eg Estimating Sample Sizes for the Negative Binomial.] - -Imagine you have an event -(let's call it a "failure" - though we could equally well call it a success if we felt it was a 'good' event) -that you know will occur in 1 in N trials. You may want to know how many trials you need to -conduct to be P% sure of observing at least k such failures. -If the failure events follow a negative binomial -distribution (each trial either succeeds or fails) -then the static member function `negative_binomial_distibution<>::find_minimum_number_of_trials` -can be used to estimate the minimum number of trials required to be P% sure -of observing the desired number of failures. - -The example program -[@../../example/neg_binomial_sample_sizes.cpp neg_binomial_sample_sizes.cpp] -demonstrates its usage. - -[import ../../example/neg_binomial_sample_sizes.cpp] -[neg_binomial_sample_sizes] - -[note Since we're calculating the /minimum/ number of trials required, -we'll err on the safe side and take the ceiling of the result. -Had we been calculating the -/maximum/ number of trials permitted to observe less than a certain -number of /failures/ then we would have taken the floor instead. We -would also have called `find_minimum_number_of_trials` like this: -`` - floor(negative_binomial::find_minimum_number_of_trials(failures, p, alpha[i])) -`` -which would give us the largest number of trials we could conduct and -still be P% sure of observing /failures or less/ failure events, when the -probability of success is /p/.] - -We'll finish off by looking at some sample output, firstly suppose -we wish to observe at least 5 "failures" with a 50/50 (0.5) chance of -success or failure: - -[pre -'''Target number of failures = 5, Success fraction = 50% - -____________________________ -Confidence Min Number - Value (%) Of Trials -____________________________ - 50.000 11 - 75.000 14 - 90.000 17 - 95.000 18 - 99.000 22 - 99.900 27 - 99.990 31 - 99.999 36 -''' -] - -So 18 trials or more would yield a 95% chance that at least our 5 -required failures would be observed. - -Compare that to what happens if the success ratio is 90%: - -[pre'''Target number of failures = 5.000, Success fraction = 90.000% - -____________________________ -Confidence Min Number - Value (%) Of Trials -____________________________ - 50.000 57 - 75.000 73 - 90.000 91 - 95.000 103 - 99.000 127 - 99.900 159 - 99.990 189 - 99.999 217 -'''] - -So now 103 trials are required to observe at least 5 failures with -95% certainty. - -[endsect] [/section:neg_binom_size_eg Estimating Sample Sizes.] - -[section:negative_binomial_example1 Negative Binomial Sales Quota Example.] - -This example program -[@../../example/negative_binomial_example1.cpp negative_binomial_example1.cpp (full source code)] -demonstrates a simple use to find the probability of meeting a sales quota. - -[import ../../example/negative_binomial_example1.cpp] -[negative_binomial_eg1_1] -[negative_binomial_eg1_2] - -[endsect] [/section:negative_binomial_example1] - -[section:negative_binomial_example2 Negative Binomial Table Printing Example.] -Example program showing output of a table of values of cdf and pdf for various k failures. -[import ../../example/negative_binomial_example2.cpp] -[neg_binomial_example2] -[neg_binomial_example2_1] -[endsect] [/section:negative_binomial_example1 Negative Binomial example 2.] - -[endsect] [/section:neg_binom_eg Negative Binomial Distribution Examples] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/non_members.qbk b/boost/libs/math/doc/distributions/non_members.qbk deleted file mode 100644 index 653d2497..00000000 --- a/boost/libs/math/doc/distributions/non_members.qbk +++ /dev/null @@ -1,406 +0,0 @@ -[section:nmp Non-Member Properties] - -Properties that are common to all distributions are accessed via non-member -getter functions: non-membership allows more of these functions to be added over time, -as the need arises. Unfortunately the literature uses many different and -confusing names to refer to a rather small number of actual concepts; refer -to the [link math_toolkit.dist_ref.nmp.concept_index concept index] to find the property you -want by the name you are most familiar with. -Or use the [link math_toolkit.dist_ref.nmp.function_index function index] -to go straight to the function you want if you already know its name. - -[h4:function_index Function Index] - -* __cdf. -* __ccdf. -* __chf. -* __hazard. -* __kurtosis. -* __kurtosis_excess -* __mean. -* __median. -* __mode. -* __pdf. -* __range. -* __quantile. -* __quantile_c. -* __skewness. -* __sd. -* __support. -* __variance. - -[h4:concept_index Conceptual Index] - -* __ccdf. -* __cdf. -* __chf. -* [link math_toolkit.dist_ref.nmp.cdf_inv Inverse Cumulative Distribution Function]. -* [link math_toolkit.dist_ref.nmp.survival_inv Inverse Survival Function]. -* __hazard -* [link math_toolkit.dist_ref.nmp.lower_critical Lower Critical Value]. -* __kurtosis. -* __kurtosis_excess -* __mean. -* __median. -* __mode. -* [link math_toolkit.dist_ref.nmp.cdfPQ P]. -* [link math_toolkit.dist_ref.nmp.percent Percent Point Function]. -* __pdf. -* [link math_toolkit.dist_ref.nmp.pmf Probability Mass Function]. -* __range. -* [link math_toolkit.dist_ref.nmp.cdfPQ Q]. -* __quantile. -* [link math_toolkit.dist_ref.nmp.quantile_c Quantile from the complement of the probability]. -* __skewness. -* __sd -* [link math_toolkit.dist_ref.nmp.survival Survival Function]. -* [link math_toolkit.dist_ref.nmp.support support]. -* [link math_toolkit.dist_ref.nmp.upper_critical Upper Critical Value]. -* __variance. - -[h4:cdf Cumulative Distribution Function] - - template - RealType cdf(const ``['Distribution-Type]``& dist, const RealType& x); - -The __cdf is the probability that -the variable takes a value less than or equal to x. It is equivalent -to the integral from -infinity to x of the __pdf. - -This function may return a __domain_error if the random variable is outside -the defined range for the distribution. - -For example, the following graph shows the cdf for the -normal distribution: - -[$../graphs/cdf.png] - -[h4:ccdf Complement of the Cumulative Distribution Function] - - template - RealType cdf(const ``['Unspecified-Complement-Type]``& comp); - -The complement of the __cdf -is the probability that -the variable takes a value greater than x. It is equivalent -to the integral from x to infinity of the __pdf, or 1 minus the __cdf of x. - -This is also known as the survival function. - -This function may return a __domain_error if the random variable is outside -the defined range for the distribution. - -In this library, it is obtained by wrapping the arguments to the `cdf` -function in a call to `complement`, for example: - - // standard normal distribution object: - boost::math::normal norm; - // print survival function for x=2.0: - std::cout << cdf(complement(norm, 2.0)) << std::endl; - -For example, the following graph shows the __complement of the cdf for the -normal distribution: - -[$../graphs/survival.png] - -See __why_complements for why the complement is useful and when it should be used. - -[h4:hazard Hazard Function] - - template - RealType hazard(const ``['Distribution-Type]``& dist, const RealType& x); - -Returns the __hazard of /x/ and distibution /dist/. - -This function may return a __domain_error if the random variable is outside -the defined range for the distribution. - -[equation hazard] - -[caution -Some authors refer to this as the conditional failure -density function rather than the hazard function.] - -[h4:chf Cumulative Hazard Function] - - template - RealType chf(const ``['Distribution-Type]``& dist, const RealType& x); - -Returns the __chf of /x/ and distibution /dist/. - -This function may return a __domain_error if the random variable is outside -the defined range for the distribution. - -[equation chf] - -[caution -Some authors refer to this as simply the "Hazard Function".] - -[h4:mean mean] - - template - RealType mean(const ``['Distribution-Type]``& dist); - -Returns the mean of the distribution /dist/. - -This function may return a __domain_error if the distribution does not have -a defined mean (for example the Cauchy distribution). - -[h4:median median] - - template - RealType median(const ``['Distribution-Type]``& dist); - -Returns the median of the distribution /dist/. - -[h4:mode mode] - - template - RealType mode(const ``['Distribution-Type]``& dist); - -Returns the mode of the distribution /dist/. - -This function may return a __domain_error if the distribution does not have -a defined mode. - -[h4:pdf Probability Density Function] - - template - RealType pdf(const ``['Distribution-Type]``& dist, const RealType& x); - -For a continuous function, the probability density function (pdf) returns -the probability that the variate has the value x. -Since for continuous distributions the probability at a single point is actually zero, -the probability is better expressed as the integral of the pdf between two points: -see the __cdf. - -For a discrete distribution, the pdf is the probability that the -variate takes the value x. - -This function may return a __domain_error if the random variable is outside -the defined range for the distribution. - -For example, for a standard normal distribution the pdf looks like this: - -[$../graphs/pdf.png] - -[h4:range Range] - - template - std::pair range(const ``['Distribution-Type]``& dist); - -Returns the valid range of the random variable over distribution /dist/. - -[h4:quantile Quantile] - - template - RealType quantile(const ``['Distribution-Type]``& dist, const RealType& p); - -The quantile is best viewed as the inverse of the __cdf, it returns -a value /x/ such that `cdf(dist, x) == p`. - -This is also known as the /percent point function/, or /percentile/, or /fractile/, -it is also the same as calculating the ['lower critical value] of a distribution. - -This function returns a __domain_error if the probability lies outside [0,1]. -The function may return an __overflow_error if there is no finite value -that has the specified probability. - -The following graph shows the quantile function for a standard normal -distribution: - -[$../graphs/quantile.png] - -[h4:quantile_c Quantile from the complement of the probability.] -See also [link math_toolkit.stat_tut.overview.complements complements]. - - - template - RealType quantile(const ``['Unspecified-Complement-Type]``& comp); - -This is the inverse of the __ccdf. It is calculated by wrapping -the arguments in a call to the quantile function in a call to -/complement/. For example: - - // define a standard normal distribution: - boost::math::normal norm; - // print the value of x for which the complement - // of the probability is 0.05: - std::cout << quantile(complement(norm, 0.05)) << std::endl; - -The function computes a value /x/ such that -`cdf(complement(dist, x)) == q` where /q/ is complement of the -probability. - -[link why_complements Why complements?] - -This function is also called the inverse survival function, and is the -same as calculating the ['upper critical value] of a distribution. - -This function returns a __domain_error if the probablity lies outside [0,1]. -The function may return an __overflow_error if there is no finite value -that has the specified probability. - -The following graph show the inverse survival function for the normal -distribution: - -[$../graphs/survival_inv.png] - -[h4:sd Standard Deviation] - - template - RealType standard_deviation(const ``['Distribution-Type]``& dist); - -Returns the standard deviation of distribution /dist/. - -This function may return a __domain_error if the distribution does not have -a defined standard deviation. - -[h4:support support] - - template - std::pair support(const ``['Distribution-Type]``& dist); - -Returns the supported range of random variable over the distribution /dist/. - -The distribution is said to be 'supported' over a range that is -[@http://en.wikipedia.org/wiki/Probability_distribution - "the smallest closed set whose complement has probability zero"]. -Non-mathematicians might say it means the 'interesting' smallest range -of random variate x that has the cdf going from zero to unity. -Outside are uninteresting zones where the pdf is zero, and the cdf zero or unity. - -[h4:variance Variance] - - template - RealType variance(const ``['Distribution-Type]``& dist); - -Returns the variance of the distribution /dist/. - -This function may return a __domain_error if the distribution does not have -a defined variance. - -[h4:skewness Skewness] - - template - RealType skewness(const ``['Distribution-Type]``& dist); - -Returns the skewness of the distribution /dist/. - -This function may return a __domain_error if the distribution does not have -a defined skewness. - -[h4:kurtosis Kurtosis] - - template - RealType kurtosis(const ``['Distribution-Type]``& dist); - -Returns the 'proper' kurtosis (normalized fourth moment) of the distribution /dist/. - -kertosis = [beta][sub 2][space]= [mu][sub 4][space] / [mu][sub 2][super 2] - -Where [mu][sub i][space] is the i'th central moment of the distribution, and -in particular [mu][sub 2][space] is the variance of the distribution. - -The kurtosis is a measure of the "peakedness" of a distribution. - -Note that the literature definition of kurtosis is confusing. -The definition used here is that used by for example -[@http://mathworld.wolfram.com/Kurtosis.html Wolfram MathWorld] -(that includes a table of formulae for kurtosis excess for various distributions) -but NOT the definition of -[@http://en.wikipedia.org/wiki/Kurtosis kurtosis used by Wikipedia] -which treats "kurtosis" and "kurtosis excess" as the same quantity. - - kurtosis_excess = 'proper' kurtosis - 3 - -This subtraction of 3 is convenient so that the ['kurtosis excess] -of a normal distribution is zero. - -This function may return a __domain_error if the distribution does not have -a defined kurtosis. - -'Proper' kurtosis can have a value from zero to + infinity. - -[h4:kurtosis_excess Kurtosis excess] - - template - RealType kurtosis_excess(const ``['Distribution-Type]``& dist); - -Returns the kurtosis excess of the distribution /dist/. - -kurtosis excess = [gamma][sub 2][space]= [mu][sub 4][space] / [mu][sub 2][super 2][space]- 3 = kurtosis - 3 - -Where [mu][sub i][space] is the i'th central moment of the distribution, and -in particular [mu][sub 2][space] is the variance of the distribution. - -The kurtosis excess is a measure of the "peakedness" of a distribution, and -is more widely used than the "kurtosis proper". It is defined so that -the kurtosis excess of a normal distribution is zero. - -This function may return a __domain_error if the distribution does not have -a defined kurtosis excess. - -Kurtosis excess can have a value from -2 to + infinity. - - kurtosis = kurtosis_excess +3; - -The kurtosis excess of a normal distribution is zero. - -[h4:cdfPQ P and Q] - -The terms P and Q are sometimes used to refer to the __cdf -and its [link math_toolkit.dist_ref.nmp.ccdf complement] respectively. -Lowercase p and q are sometimes used to refer to the values returned -by these functions. - -[h4:percent Percent Point Function or Percentile] - -The percent point function, also known as the percentile, is the same as -the __quantile. - -[h4:cdf_inv Inverse CDF Function.] - -The inverse of the cumulative distribution function, is the same as the -__quantile. - -[h4:survival_inv Inverse Survival Function.] - -The inverse of the survival function, is the same as computing the -[link math_toolkit.dist_ref.nmp.quantile_c quantile -from the complement of the probability]. - -[h4:pmf Probability Mass Function] - -The Probability Mass Function is the same as the __pdf. - -The term Mass Function is usually applied to discrete distributions, -while the term __pdf applies to continuous distributions. - -[h4:lower_critical Lower Critical Value.] - -The lower critical value calculates the value of the random variable -given the area under the left tail of the distribution. -It is equivalent to calculating the __quantile. - -[h4: upper_critical Upper Critical Value.] - -The upper critical value calculates the value of the random variable -given the area under the right tail of the distribution. It is equivalent to -calculating the [link math_toolkit.dist_ref.nmp.quantile_c quantile from the complement of the -probability]. - -[h4:survival Survival Function] - -Refer to the __ccdf. - -[endsect][/section:nmp Non-Member Properties] - - -[/ non_members.qbk - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/normal.qbk b/boost/libs/math/doc/distributions/normal.qbk deleted file mode 100644 index a3db989a..00000000 --- a/boost/libs/math/doc/distributions/normal.qbk +++ /dev/null @@ -1,120 +0,0 @@ -[section:normal_dist Normal (Gaussian) Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class normal_distribution; - - typedef normal_distribution<> normal; - - template - class normal_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - // Construct: - normal_distribution(RealType mean = 0, RealType sd = 1); - // Accessors: - RealType mean()const; // location. - RealType standard_deviation()const; // scale. - // Synonyms, provided to allow generic use of find_location and find_scale. - RealType location()const; - RealType scale()const; - }; - - }} // namespaces - -The normal distribution is probably the most well known statistical -distribution: it is also known as the Gaussian Distribution. -A normal distribution with mean zero and standard deviation one -is known as the ['Standard Normal Distribution]. - -Given mean [mu][space]and standard deviation [sigma][space]it has the PDF: - -[space] [equation normal_ref1] - -The variation the PDF with its parameters is illustrated -in the following graph: - -[graph normal_pdf] - -The cumulative distribution function is given by - -[space] [equation normal_cdf] - -and illustrated by this graph - -[graph normal_cdf] - - -[h4 Member Functions] - - normal_distribution(RealType mean = 0, RealType sd = 1); - -Constructs a normal distribution with mean /mean/ and -standard deviation /sd/. - -Requires sd > 0, otherwise __domain_error is called. - - RealType mean()const; - RealType location()const; - -both return the /mean/ of this distribution. - - RealType standard_deviation()const; - RealType scale()const; - -both return the /standard deviation/ of this distribution. -(Redundant location and scale function are provided to match other similar distributions, -allowing the functions find_location and find_scale to be used generically). - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variable is \[-[max_value], +[min_value]\]. -However, the pdf of +[infin] and -[infin] = 0 is also supported, -and cdf at -[infin] = 0, cdf at +[infin] = 1, -and complement cdf -[infin] = 1 and +[infin] = 0, -if RealType permits. - -[h4 Accuracy] - -The normal distribution is implemented in terms of the -[link math_toolkit.sf_erf.error_function error function], -and as such should have very low error rates. - -[h4 Implementation] - -In the following table /m/ is the mean of the distribution, -and /s/ is its standard deviation. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = e[super -(x-m)[super 2]\/(2s[super 2])] \/ (s * sqrt(2*pi)) ]] -[[cdf][Using the relation: p = 0.5 * __erfc(-(x-m)/(s*sqrt(2))) ]] -[[cdf complement][Using the relation: q = 0.5 * __erfc((x-m)/(s*sqrt(2))) ]] -[[quantile][Using the relation: x = m - s * sqrt(2) * __erfc_inv(2*p)]] -[[quantile from the complement][Using the relation: x = m + s * sqrt(2) * __erfc_inv(2*p)]] -[[mean and standard deviation][The same as `dist.mean()` and `dist.standard_deviation()`]] -[[mode][The same as the mean.]] -[[median][The same as the mean.]] -[[skewness][0]] -[[kurtosis][3]] -[[kurtosis excess][0]] -] - -[endsect] [/section:normal_dist Normal] - -[/ normal.qbk - Copyright 2006, 2007, 2012 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/normal_example.qbk b/boost/libs/math/doc/distributions/normal_example.qbk deleted file mode 100644 index c8dc4a0c..00000000 --- a/boost/libs/math/doc/distributions/normal_example.qbk +++ /dev/null @@ -1,36 +0,0 @@ -[section:normal_example Normal Distribution Examples] - -(See also the reference documentation for the __normal_distrib.) - -[section:normal_misc Some Miscellaneous Examples of the Normal (Gaussian) Distribution] - -The sample program [@../../example/normal_misc_examples.cpp -normal_misc_examples.cpp] illustrates their use. - -[import ../../example/normal_misc_examples.cpp] - -[h4 Traditional Tables] -[normal_basic1] - -[h4 Standard deviations either side of the Mean] -[normal_basic2] -[h4 Some simple examples] -[h4 Life of light bulbs] -[normal_bulbs_example1] -[h4 How many onions?] -[normal_bulbs_example3] -[h4 Packing beef] -[normal_bulbs_example4] -[h4 Length of bolts] -[normal_bulbs_example5] - -[endsect] [/section:normal_misc Some Miscellaneous Examples of the Normal Distribution] -[endsect] [/section:normal_example Normal Distribution Examples] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/pareto.qbk b/boost/libs/math/doc/distributions/pareto.qbk deleted file mode 100644 index 7584d53e..00000000 --- a/boost/libs/math/doc/distributions/pareto.qbk +++ /dev/null @@ -1,121 +0,0 @@ -[section:pareto Pareto Distribution] - - -``#include `` - - namespace boost{ namespace math{ - - template - class pareto_distribution; - - typedef pareto_distribution<> pareto; - - template - class pareto_distribution - { - public: - typedef RealType value_type; - // Constructor: - pareto_distribution(RealType scale = 1, RealType shape = 1) - // Accessors: - RealType scale()const; - RealType shape()const; - }; - - }} // namespaces - -The [@http://en.wikipedia.org/wiki/pareto_distribution Pareto distribution] -is a continuous distribution with the -[@http://en.wikipedia.org/wiki/Probability_density_function probability density function (pdf)]: - -f(x; [alpha], [beta]) = [alpha][beta][super [alpha]] / x[super [alpha]+ 1] - -For shape parameter [alpha][space] > 0, and scale parameter [beta][space] > 0. -If x < [beta][space], the pdf is zero. - -The [@http://mathworld.wolfram.com/ParetoDistribution.html Pareto distribution] -often describes the larger compared to the smaller. -A classic example is that 80% of the wealth is owned by 20% of the population. - -The following graph illustrates how the PDF varies with the scale parameter [beta]: - -[graph pareto_pdf1] - -And this graph illustrates how the PDF varies with the shape parameter [alpha]: - -[graph pareto_pdf2] - - -[h4 Related distributions] - - -[h4 Member Functions] - - pareto_distribution(RealType scale = 1, RealType shape = 1); - -Constructs a [@http://en.wikipedia.org/wiki/pareto_distribution -pareto distribution] with shape /shape/ and scale /scale/. - -Requires that the /shape/ and /scale/ parameters are both greater than zero, -otherwise calls __domain_error. - - RealType scale()const; - -Returns the /scale/ parameter of this distribution. - - RealType shape()const; - -Returns the /shape/ parameter of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The supported domain of the random variable is \[scale, [infin]\]. - -[h4 Accuracy] - -The Pareto distribution is implemented in terms of the -standard library `exp` functions plus __expm1 -and so should have very small errors, usually only a few epsilon. - -If probability is near to unity (or the complement of a probability near zero) see also __why_complements. - -[h4 Implementation] - -In the following table [alpha][space] is the shape parameter of the distribution, and -[beta][space] is its scale parameter, /x/ is the random variate, /p/ is the probability -and its complement /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf p = [alpha][beta][super [alpha]]/x[super [alpha] +1] ]] -[[cdf][Using the relation: cdf p = 1 - ([beta][space] / x)[super [alpha]] ]] -[[cdf complement][Using the relation: q = 1 - p = -([beta][space] / x)[super [alpha]] ]] -[[quantile][Using the relation: x = [beta] / (1 - p)[super 1/[alpha]] ]] -[[quantile from the complement][Using the relation: x = [beta] / (q)[super 1/[alpha]] ]] -[[mean][[alpha][beta] / ([beta] - 1) ]] -[[variance][[beta][alpha][super 2] / ([beta] - 1)[super 2] ([beta] - 2) ]] -[[mode][[alpha]]] -[[skewness][Refer to [@http://mathworld.wolfram.com/ParetoDistribution.html Weisstein, Eric W. "Pareto Distribution." From MathWorld--A Wolfram Web Resource.] ]] -[[kurtosis][Refer to [@http://mathworld.wolfram.com/ParetoDistribution.html Weisstein, Eric W. "Pareto Distribution." From MathWorld--A Wolfram Web Resource.] ]] -[[kurtosis excess][Refer to [@http://mathworld.wolfram.com/ParetoDistribution.html Weisstein, Eric W. "pareto Distribution." From MathWorld--A Wolfram Web Resource.] ]] -] - -[h4 References] -* [@http://en.wikipedia.org/wiki/pareto_distribution Pareto Distribution] -* [@http://mathworld.wolfram.com/paretoDistribution.html Weisstein, Eric W. "Pareto Distribution." From MathWorld--A Wolfram Web Resource.] -* Handbook of Statistical Distributions with Applications, K Krishnamoorthy, ISBN 1-58488-635-8, Chapter 23, pp 257 - 267. -(Note the meaning of a and b is reversed in Wolfram and Krishnamoorthy). - -[endsect][/section:pareto pareto] - -[/ - Copyright 2006, 2009 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/poisson.qbk b/boost/libs/math/doc/distributions/poisson.qbk deleted file mode 100644 index 432862ed..00000000 --- a/boost/libs/math/doc/distributions/poisson.qbk +++ /dev/null @@ -1,103 +0,0 @@ -[section:poisson_dist Poisson Distribution] - -``#include `` - - namespace boost { namespace math { - - template - class poisson_distribution; - - typedef poisson_distribution<> poisson; - - template - class poisson_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - poisson_distribution(RealType mean = 1); // Constructor. - RealType mean()const; // Accessor. - } - - }} // namespaces boost::math - -The [@http://en.wikipedia.org/wiki/Poisson_distribution Poisson distribution] -is a well-known statistical discrete distribution. -It expresses the probability of a number of events -(or failures, arrivals, occurrences ...) -occurring in a fixed period of time, -provided these events occur with a known mean rate [lambda][space] -(events/time), and are independent of the time since the last event. - -The distribution was discovered by Sim__eacute on-Denis Poisson (1781 to 1840). - -It has the Probability Mass Function: - -[equation poisson_ref1] - -for k events, with an expected number of events [lambda]. - -The following graph illustrates how the PDF varies with the parameter [lambda]: - -[graph poisson_pdf_1] - -[discrete_quantile_warning Poisson] - -[h4 Member Functions] - - poisson_distribution(RealType mean = 1); - -Constructs a poisson distribution with mean /mean/. - - RealType mean()const; - -Returns the /mean/ of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variable is \[0, [infin]\]. - -[h4 Accuracy] - -The Poisson distribution is implemented in terms of the -incomplete gamma functions __gamma_p and __gamma_q -and as such should have low error rates: but refer to the documentation -of those functions for more information. -The quantile and its complement use the inverse gamma functions -and are therefore probably slightly less accurate: this is because the -inverse gamma functions are implemented using an iterative method with a -lower tolerance to avoid excessive computation. - -[h4 Implementation] - -In the following table [lambda][space] is the mean of the distribution, -/k/ is the random variable, /p/ is the probability and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = e[super -[lambda]] [lambda][super k] \/ k! ]] -[[cdf][Using the relation: p = [Gamma](k+1, [lambda]) \/ k! = __gamma_q(k+1, [lambda])]] -[[cdf complement][Using the relation: q = __gamma_p(k+1, [lambda]) ]] -[[quantile][Using the relation: k = __gamma_q_inva([lambda], p) - 1]] -[[quantile from the complement][Using the relation: k = __gamma_p_inva([lambda], q) - 1]] -[[mean][[lambda]]] -[[mode][ floor ([lambda]) or [floorlr[lambda]] ]] -[[skewness][1/[radic][lambda]]] -[[kurtosis][3 + 1/[lambda]]] -[[kurtosis excess][1/[lambda]]] -] - -[/ poisson.qbk - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - -[endsect][/section:poisson_dist Poisson] - diff --git a/boost/libs/math/doc/distributions/rayleigh.qbk b/boost/libs/math/doc/distributions/rayleigh.qbk deleted file mode 100644 index 910c2b7d..00000000 --- a/boost/libs/math/doc/distributions/rayleigh.qbk +++ /dev/null @@ -1,119 +0,0 @@ -[section:rayleigh Rayleigh Distribution] - - -``#include `` - - namespace boost{ namespace math{ - - template - class rayleigh_distribution; - - typedef rayleigh_distribution<> rayleigh; - - template - class rayleigh_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - // Construct: - rayleigh_distribution(RealType sigma = 1) - // Accessors: - RealType sigma()const; - }; - - }} // namespaces - -The [@http://en.wikipedia.org/wiki/Rayleigh_distribution Rayleigh distribution] -is a continuous distribution with the -[@http://en.wikipedia.org/wiki/Probability_density_function probability density function]: - -f(x; sigma) = x * exp(-x[super 2]/2 [sigma][super 2]) / [sigma][super 2] - -For sigma parameter [sigma][space] > 0, and x > 0. - -The Rayleigh distribution is often used where two orthogonal components -have an absolute value, -for example, wind velocity and direction may be combined to yield a wind speed, -or real and imaginary components may have absolute values that are Rayleigh distributed. - -The following graph illustrates how the Probability density Function(pdf) varies with the shape parameter [sigma]: - -[graph rayleigh_pdf] - -and the Cumulative Distribution Function (cdf) - -[graph rayleigh_cdf] - -[h4 Related distributions] - -The absolute value of two independent normal distributions X and Y, [radic] (X[super 2] + Y[super 2]) -is a Rayleigh distribution. - -The [@http://en.wikipedia.org/wiki/Chi_distribution Chi], -[@http://en.wikipedia.org/wiki/Rice_distribution Rice] -and [@http://en.wikipedia.org/wiki/Weibull_distribution Weibull] distributions are generalizations of the -[@http://en.wikipedia.org/wiki/Rayleigh_distribution Rayleigh distribution]. - -[h4 Member Functions] - - rayleigh_distribution(RealType sigma = 1); - -Constructs a [@http://en.wikipedia.org/wiki/Rayleigh_distribution -Rayleigh distribution] with [sigma] /sigma/. - -Requires that the [sigma] parameter is greater than zero, -otherwise calls __domain_error. - - RealType sigma()const; - -Returns the /sigma/ parameter of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variable is \[0, max_value\]. - -[h4 Accuracy] - -The Rayleigh distribution is implemented in terms of the -standard library `sqrt` and `exp` and as such should have very low error rates. -Some constants such as skewness and kurtosis were calculated using -NTL RR type with 150-bit accuracy, about 50 decimal digits. - -[h4 Implementation] - -In the following table [sigma][space] is the sigma parameter of the distribution, -/x/ is the random variate, /p/ is the probability and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = x * exp(-x[super 2])/2 [sigma][super 2] ]] -[[cdf][Using the relation: p = 1 - exp(-x[super 2]/2) [sigma][super 2][space] = -__expm1(-x[super 2]/2) [sigma][super 2]]] -[[cdf complement][Using the relation: q = exp(-x[super 2]/ 2) * [sigma][super 2] ]] -[[quantile][Using the relation: x = sqrt(-2 * [sigma] [super 2]) * log(1 - p)) = sqrt(-2 * [sigma] [super 2]) * __log1p(-p))]] -[[quantile from the complement][Using the relation: x = sqrt(-2 * [sigma] [super 2]) * log(q)) ]] -[[mean][[sigma] * sqrt([pi]/2) ]] -[[variance][[sigma][super 2] * (4 - [pi]/2) ]] -[[mode][[sigma] ]] -[[skewness][Constant from [@http://mathworld.wolfram.com/RayleighDistribution.html Weisstein, Eric W. "Weibull Distribution." From MathWorld--A Wolfram Web Resource.] ]] -[[kurtosis][Constant from [@http://mathworld.wolfram.com/RayleighDistribution.html Weisstein, Eric W. "Weibull Distribution." From MathWorld--A Wolfram Web Resource.] ]] -[[kurtosis excess][Constant from [@http://mathworld.wolfram.com/RayleighDistribution.html Weisstein, Eric W. "Weibull Distribution." From MathWorld--A Wolfram Web Resource.] ]] -] - -[h4 References] -* [@http://en.wikipedia.org/wiki/Rayleigh_distribution ] -* [@http://mathworld.wolfram.com/RayleighDistribution.html Weisstein, Eric W. "Rayleigh Distribution." From MathWorld--A Wolfram Web Resource.] - -[endsect] [/section:Rayleigh Rayleigh] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/skew_normal.qbk b/boost/libs/math/doc/distributions/skew_normal.qbk deleted file mode 100644 index ca126755..00000000 --- a/boost/libs/math/doc/distributions/skew_normal.qbk +++ /dev/null @@ -1,193 +0,0 @@ -[section:skew_normal_dist Skew Normal Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class skew_normal_distribution; - - typedef skew_normal_distribution<> normal; - - template - class skew_normal_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - // Constructor: - skew_normal_distribution(RealType location = 0, RealType scale = 1, RealType shape = 0); - // Accessors: - RealType location()const; // mean if normal. - RealType scale()const; // width, standard deviation if normal. - RealType shape()const; // The distribution is right skewed if shape > 0 and is left skewed if shape < 0. - // The distribution is normal if shape is zero. - }; - - }} // namespaces - -The skew normal distribution is a variant of the most well known -Gaussian statistical distribution. - -The skew normal distribution with shape zero resembles the -[@http://en.wikipedia.org/wiki/Normal_distribution Normal Distribution], -hence the latter can be regarded as a special case of the more generic skew normal distribution. - -If the standard (mean = 0, scale = 1) normal distribution probability density function is - -[space][space][equation normal01_pdf] - -and the cumulative distribution function - -[space][space][equation normal01_cdf] - -then the [@http://en.wikipedia.org/wiki/Probability_density_function PDF] -of the [@http://en.wikipedia.org/wiki/Skew_normal_distribution skew normal distribution] -with shape parameter [alpha], defined by O'Hagan and Leonhard (1976) is - -[space][space][equation skew_normal_pdf0] - -Given [@http://en.wikipedia.org/wiki/Location_parameter location] [xi], -[@http://en.wikipedia.org/wiki/Scale_parameter scale] [omega], -and [@http://en.wikipedia.org/wiki/Shape_parameter shape] [alpha], -it can be -[@http://en.wikipedia.org/wiki/Skew_normal_distribution transformed], -to the form: - -[space][space][equation skew_normal_pdf] - -and [@http://en.wikipedia.org/wiki/Cumulative_distribution_function CDF]: - -[space][space][equation skew_normal_cdf] - -where ['T(h,a)] is Owen's T function, and ['[Phi](x)] is the normal distribution. - -The variation the PDF and CDF with its parameters is illustrated -in the following graphs: - -[graph skew_normal_pdf] -[graph skew_normal_cdf] - -[h4 Member Functions] - - skew_normal_distribution(RealType location = 0, RealType scale = 1, RealType shape = 0); - -Constructs a skew_normal distribution with location [xi], -scale [omega] and shape [alpha]. - -Requires scale > 0, otherwise __domain_error is called. - - RealType location()const; - -returns the location [xi] of this distribution, - - RealType scale()const; - -returns the scale [omega] of this distribution, - - RealType shape()const; - -returns the shape [alpha] of this distribution. - -(Location and scale function match other similar distributions, -allowing the functions `find_location` and `find_scale` to be used generically). - -[note While the shape parameter may be chosen arbitrarily (finite), -the resulting [*skewness] of the distribution is in fact limited to about (-1, 1); -strictly, the interval is (-0.9952717, 0.9952717). - -A parameter [delta] is related to the shape [alpha] by -[delta] = [alpha] / (1 + [alpha][pow2]), -and used in the expression for skewness -[equation skew_normal_skewness] -] [/note] - -[h4 References] - -* [@http://azzalini.stat.unipd.it/SN/ Skew-Normal Probability Distribution] for many links and bibliography. -* [@http://azzalini.stat.unipd.it/SN/Intro/intro.html A very brief introduction to the skew-normal distribution] -by Adelchi Azzalini (2005-11-2). -* See a [@http://www.tri.org.au/azzalini.html skew-normal function animation]. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain of the random variable is ['-[max_value], +[min_value]]. -Infinite values are not supported. - -There are no [@http://en.wikipedia.org/wiki/Closed-form_expression closed-form expression] -known for the mode and median, but these are computed for the - -* mode - by finding the maximum of the PDF. -* median - by computing `quantile(1/2)`. - -The maximum of the PDF is sought through searching the root of f'(x)=0. - -Both involve iterative methods that will have lower accuracy than other estimates. - -[h4 Testing] - -__R using library(sn) described at -[@http://azzalini.stat.unipd.it/SN/ Skew-Normal Probability Distribution], -and at [@http://cran.r-project.org/web/packages/sn/sn.pd R skew-normal(sn) package]. - -Package sn provides functions related to the skew-normal (SN) -and the skew-t (ST) probability distributions, -both for the univariate and for the the multivariate case, -including regression models. - -__Mathematica was also used to generate some more accurate spot test data. - -[h4 Accuracy] - -The skew_normal distribution with shape = zero is implemented as a special case, -equivalent to the normal distribution in terms of the -[link math_toolkit.sf_erf.error_function error function], -and therefore should have excellent accuracy. - -The PDF and mean, variance, skewness and kurtosis are also accurately evaluated using -[@http://en.wikipedia.org/wiki/Analytical_expression analytical expressions]. -The CDF requires [@http://en.wikipedia.org/wiki/Owen%27s_T_function Owen's T function] -that is evaluated using a Boost C++ __owens_t implementation of the algorithms of -M. Patefield and D. Tandy, Journal of Statistical Software, 5(5), 1-25 (2000); -the complicated accuracy of this function is discussed in detail at __owens_t. - -The median and mode are calculated by iterative root finding, and both will be less accurate. - -[h4 Implementation] - -In the following table, [xi] is the location of the distribution, -and [omega] is its scale, and [alpha] is its shape. - -[table -[[Function][Implementation Notes]] -[[pdf][Using:[equation skew_normal_pdf] ]] -[[cdf][Using: [equation skew_normal_cdf][br] -where ['T(h,a)] is Owen's T function, and ['[Phi](x)] is the normal distribution. ]] -[[cdf complement][Using: complement of normal distribution + 2 * Owens_t]] -[[quantile][Maximum of the pdf is sought through searching the root of f'(x)=0]] -[[quantile from the complement][-quantile(SN(-location [xi], scale [omega], -shape[alpha]), p)]] -[[location][location [xi]]] -[[scale][scale [omega]]] -[[shape][shape [alpha]]] -[[median][quantile(1/2)]] -[[mean][[equation skew_normal_mean]]] -[[mode][Maximum of the pdf is sought through searching the root of f'(x)=0]] -[[variance][[equation skew_normal_variance] ]] -[[skewness][[equation skew_normal_skewness] ]] -[[kurtosis][kurtosis excess-3]] -[[kurtosis excess] [ [equation skew_normal_kurt_ex] ]] -] [/table] - -[endsect] [/section:skew_normal_dist skew_Normal] - -[/ skew_normal.qbk - Copyright 2012 Bejamin Sobotta, John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/students_t.qbk b/boost/libs/math/doc/distributions/students_t.qbk deleted file mode 100644 index 157ba0fb..00000000 --- a/boost/libs/math/doc/distributions/students_t.qbk +++ /dev/null @@ -1,180 +0,0 @@ -[section:students_t_dist Students t Distribution] - -``#include `` - - namespace boost{ namespace math{ - - template - class students_t_distribution; - - typedef students_t_distribution<> students_t; - - template - class students_t_distribution - { - typedef RealType value_type; - typedef Policy policy_type; - - // Construct: - students_t_distribution(const RealType& v); - - // Accessor: - RealType degrees_of_freedom()const; - - // degrees of freedom estimation: - static RealType find_degrees_of_freedom( - RealType difference_from_mean, - RealType alpha, - RealType beta, - RealType sd, - RealType hint = 100); - }; - - }} // namespaces - -A statistical distribution published by William Gosset in 1908. -His employer, Guinness Breweries, required him to publish under a -pseudonym (possibly to hide that they were using statistics), -so he chose "Student". Given N independent measurements, let - -[equation students_t_dist] - -where /M/ is the population mean,[' ''' μ '''] is the sample mean, and /s/ is the -sample variance. - -Student's t-distribution is defined as the distribution of the random -variable t which is - very loosely - the "best" that we can do not -knowing the true standard deviation of the sample. It has the PDF: - -[equation students_t_ref1] - -The Student's t-distribution takes a single parameter: the number of -degrees of freedom of the sample. When the degrees of freedom is -/one/ then this distribution is the same as the Cauchy-distribution. -As the number of degrees of freedom tends towards infinity, then this -distribution approaches the normal-distribution. The following graph -illustrates how the PDF varies with the degrees of freedom [nu]: - -[graph students_t_pdf] - -[h4 Member Functions] - - students_t_distribution(const RealType& v); - -Constructs a Student's t-distribution with /v/ degrees of freedom. - -Requires /v/ > 0, otherwise calls __domain_error. Note that -non-integral degrees of freedom are supported, -and are meaningful under certain circumstances. - - RealType degrees_of_freedom()const; - -Returns the number of degrees of freedom of this distribution. - - static RealType find_degrees_of_freedom( - RealType difference_from_mean, - RealType alpha, - RealType beta, - RealType sd, - RealType hint = 100); - -Returns the number of degrees of freedom required to observe a significant -result in the Student's t test when the mean differs from the "true" -mean by /difference_from_mean/. - -[variablelist -[[difference_from_mean][The difference between the true mean and the sample mean - that we wish to show is significant.]] -[[alpha][The maximum acceptable probability of rejecting the null hypothesis - when it is in fact true.]] -[[beta][The maximum acceptable probability of failing to reject the null hypothesis - when it is in fact false.]] -[[sd][The sample standard deviation.]] -[[hint][A hint for the location to start looking for the result, a good choice for this - would be the sample size of a previous borderline Student's t test.]] -] - -[note -Remember that for a two-sided test, you must divide alpha by two -before calling this function.] - -For more information on this function see the -[@http://www.itl.nist.gov/div898/handbook/prc/section2/prc222.htm -NIST Engineering Statistics Handbook]. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variable is \[-[infin], +[infin]\]. - -[h4 Examples] - -Various [link math_toolkit.stat_tut.weg.st_eg worked examples] are available illustrating the use of the Student's t -distribution. - -[h4 Accuracy] - -The normal distribution is implemented in terms of the -[link math_toolkit.sf_beta.ibeta_function incomplete beta function] -and [link math_toolkit.sf_beta.ibeta_inv_function its inverses], -refer to accuracy data on those functions for more information. - -[h4 Implementation] - -In the following table /v/ is the degrees of freedom of the distribution, -/t/ is the random variate, /p/ is the probability and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = (v \/ (v + t[super 2]))[super (1+v)\/2 ] / (sqrt(v) * __beta(v\/2, 0.5)) ]] -[[cdf][Using the relations: - -p = 1 - z /iff t > 0/ - -p = z /otherwise/ - -where z is given by: - -__ibeta(v \/ 2, 0.5, v \/ (v + t[super 2])) \/ 2 ['iff v < 2t[super 2]] - -__ibetac(0.5, v \/ 2, t[super 2 ] / (v + t[super 2]) \/ 2 /otherwise/]] -[[cdf complement][Using the relation: q = cdf(-t) ]] -[[quantile][Using the relation: t = sign(p - 0.5) * sqrt(v * y \/ x) - -where: - -x = __ibeta_inv(v \/ 2, 0.5, 2 * min(p, q)) - -y = 1 - x - -The quantities /x/ and /y/ are both returned by __ibeta_inv -without the subtraction implied above.]] -[[quantile from the complement][Using the relation: t = -quantile(q)]] -[[mode][0]] -[[mean][0]] -[[variance][if (v > 2) v \/ (v - 2) else NaN]] -[[skewness][if (v > 3) 0 else NaN ]] -[[kurtosis][if (v > 4) 3 * (v - 2) \/ (v - 4) else NaN]] -[[kurtosis excess][if (v > 4) 6 \/ (df - 4) else NaN]] -] - -If the moment index /k/ is less than /v/, then the moment is undefined. -Evaluating the moment will throw a __domain_error unless ignored by a policy, -when it will return `std::numeric_limits<>::quiet_NaN();` - -(For simplicity, we have not implemented the return of infinity in some cases -as suggested by [@http://en.wikipedia.org/wiki/Student%27s_t-distribution Wikipedia Student's t]. -See also [@https://svn.boost.org/trac/boost/ticket/7177].) - -[endsect] [/section:students_t_dist Students t] - -[/ students_t.qbk - Copyright 2006, 2012 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/students_t_examples.qbk b/boost/libs/math/doc/distributions/students_t_examples.qbk deleted file mode 100644 index 483631ec..00000000 --- a/boost/libs/math/doc/distributions/students_t_examples.qbk +++ /dev/null @@ -1,781 +0,0 @@ - -[section:st_eg Student's t Distribution Examples] - -[section:tut_mean_intervals Calculating confidence intervals on the mean with the Students-t distribution] - -Let's say you have a sample mean, you may wish to know what confidence intervals -you can place on that mean. Colloquially: "I want an interval that I can be -P% sure contains the true mean". (On a technical point, note that -the interval either contains the true mean or it does not: the -meaning of the confidence level is subtly -different from this colloquialism. More background information can be found on the -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm NIST site]). - -The formula for the interval can be expressed as: - -[equation dist_tutorial4] - -Where, ['Y[sub s]] is the sample mean, /s/ is the sample standard deviation, -/N/ is the sample size, /[alpha]/ is the desired significance level and -['t[sub ([alpha]/2,N-1)]] is the upper critical value of the Students-t -distribution with /N-1/ degrees of freedom. - -[note -The quantity [alpha][space] is the maximum acceptable risk of falsely rejecting -the null-hypothesis. The smaller the value of [alpha] the greater the -strength of the test. - -The confidence level of the test is defined as 1 - [alpha], and often expressed -as a percentage. So for example a significance level of 0.05, is equivalent -to a 95% confidence level. Refer to -[@http://www.itl.nist.gov/div898/handbook/prc/section1/prc14.htm -"What are confidence intervals?"] in __handbook for more information. -] [/ Note] - -[note -The usual assumptions of -[@http://en.wikipedia.org/wiki/Independent_and_identically-distributed_random_variables independent and identically distributed (i.i.d.)] -variables and [@http://en.wikipedia.org/wiki/Normal_distribution normal distribution] -of course apply here, as they do in other examples. -] - -From the formula, it should be clear that: - -* The width of the confidence interval decreases as the sample size increases. -* The width increases as the standard deviation increases. -* The width increases as the ['confidence level increases] (0.5 towards 0.99999 - stronger). -* The width increases as the ['significance level decreases] (0.5 towards 0.00000...01 - stronger). - -The following example code is taken from the example program -[@../../example/students_t_single_sample.cpp students_t_single_sample.cpp]. - -We'll begin by defining a procedure to calculate intervals for -various confidence levels; the procedure will print these out -as a table: - - // Needed includes: - #include - #include - #include - // Bring everything into global namespace for ease of use: - using namespace boost::math; - using namespace std; - - void confidence_limits_on_mean( - double Sm, // Sm = Sample Mean. - double Sd, // Sd = Sample Standard Deviation. - unsigned Sn) // Sn = Sample Size. - { - using namespace std; - using namespace boost::math; - - // Print out general info: - cout << - "__________________________________\n" - "2-Sided Confidence Limits For Mean\n" - "__________________________________\n\n"; - cout << setprecision(7); - cout << setw(40) << left << "Number of Observations" << "= " << Sn << "\n"; - cout << setw(40) << left << "Mean" << "= " << Sm << "\n"; - cout << setw(40) << left << "Standard Deviation" << "= " << Sd << "\n"; - -We'll define a table of significance/risk levels for which we'll compute intervals: - - double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 }; - -Note that these are the complements of the confidence/probability levels: 0.5, 0.75, 0.9 .. 0.99999). - -Next we'll declare the distribution object we'll need, note that -the /degrees of freedom/ parameter is the sample size less one: - - students_t dist(Sn - 1); - -Most of what follows in the program is pretty printing, so let's focus -on the calculation of the interval. First we need the t-statistic, -computed using the /quantile/ function and our significance level. Note -that since the significance levels are the complement of the probability, -we have to wrap the arguments in a call to /complement(...)/: - - double T = quantile(complement(dist, alpha[i] / 2)); - -Note that alpha was divided by two, since we'll be calculating -both the upper and lower bounds: had we been interested in a single -sided interval then we would have omitted this step. - -Now to complete the picture, we'll get the (one-sided) width of the -interval from the t-statistic -by multiplying by the standard deviation, and dividing by the square -root of the sample size: - - double w = T * Sd / sqrt(double(Sn)); - -The two-sided interval is then the sample mean plus and minus this width. - -And apart from some more pretty-printing that completes the procedure. - -Let's take a look at some sample output, first using the -[@http://www.itl.nist.gov/div898/handbook/eda/section4/eda428.htm -Heat flow data] from the NIST site. The data set was collected -by Bob Zarr of NIST in January, 1990 from a heat flow meter -calibration and stability analysis. -The corresponding dataplot -output for this test can be found in -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm -section 3.5.2] of the __handbook. - -[pre''' - __________________________________ - 2-Sided Confidence Limits For Mean - __________________________________ - - Number of Observations = 195 - Mean = 9.26146 - Standard Deviation = 0.02278881 - - - ___________________________________________________________________ - Confidence T Interval Lower Upper - Value (%) Value Width Limit Limit - ___________________________________________________________________ - 50.000 0.676 1.103e-003 9.26036 9.26256 - 75.000 1.154 1.883e-003 9.25958 9.26334 - 90.000 1.653 2.697e-003 9.25876 9.26416 - 95.000 1.972 3.219e-003 9.25824 9.26468 - 99.000 2.601 4.245e-003 9.25721 9.26571 - 99.900 3.341 5.453e-003 9.25601 9.26691 - 99.990 3.973 6.484e-003 9.25498 9.26794 - 99.999 4.537 7.404e-003 9.25406 9.26886 -'''] - -As you can see the large sample size (195) and small standard deviation (0.023) -have combined to give very small intervals, indeed we can be -very confident that the true mean is 9.2. - -For comparison the next example data output is taken from -['P.K.Hou, O. W. Lau & M.C. Wong, Analyst (1983) vol. 108, p 64. -and from Statistics for Analytical Chemistry, 3rd ed. (1994), pp 54-55 -J. C. Miller and J. N. Miller, Ellis Horwood ISBN 0 13 0309907.] -The values result from the determination of mercury by cold-vapour -atomic absorption. - -[pre''' - __________________________________ - 2-Sided Confidence Limits For Mean - __________________________________ - - Number of Observations = 3 - Mean = 37.8000000 - Standard Deviation = 0.9643650 - - - ___________________________________________________________________ - Confidence T Interval Lower Upper - Value (%) Value Width Limit Limit - ___________________________________________________________________ - 50.000 0.816 0.455 37.34539 38.25461 - 75.000 1.604 0.893 36.90717 38.69283 - 90.000 2.920 1.626 36.17422 39.42578 - 95.000 4.303 2.396 35.40438 40.19562 - 99.000 9.925 5.526 32.27408 43.32592 - 99.900 31.599 17.594 20.20639 55.39361 - 99.990 99.992 55.673 -17.87346 93.47346 - 99.999 316.225 176.067 -138.26683 213.86683 -'''] - -This time the fact that there are only three measurements leads to -much wider intervals, indeed such large intervals that it's hard -to be very confident in the location of the mean. - -[endsect] - -[section:tut_mean_test Testing a sample mean for difference from a "true" mean] - -When calibrating or comparing a scientific instrument or measurement method of some kind, -we want to be answer the question "Does an observed sample mean differ from the -"true" mean in any significant way?". If it does, then we have evidence of -a systematic difference. This question can be answered with a Students-t test: -more information can be found -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm -on the NIST site]. - -Of course, the assignment of "true" to one mean may be quite arbitrary, -often this is simply a "traditional" method of measurement. - -The following example code is taken from the example program -[@../../example/students_t_single_sample.cpp students_t_single_sample.cpp]. - -We'll begin by defining a procedure to determine which of the -possible hypothesis are rejected or not-rejected -at a given significance level: - -[note -Non-statisticians might say 'not-rejected' means 'accepted', -(often of the null-hypothesis) implying, wrongly, that there really *IS* no difference, -but statisticans eschew this to avoid implying that there is positive evidence of 'no difference'. -'Not-rejected' here means there is *no evidence* of difference, but there still might well be a difference. -For example, see [@http://en.wikipedia.org/wiki/Argument_from_ignorance argument from ignorance] and -[@http://www.bmj.com/cgi/content/full/311/7003/485 Absence of evidence does not constitute evidence of absence.] -] [/ note] - - - // Needed includes: - #include - #include - #include - // Bring everything into global namespace for ease of use: - using namespace boost::math; - using namespace std; - - void single_sample_t_test(double M, double Sm, double Sd, unsigned Sn, double alpha) - { - // - // M = true mean. - // Sm = Sample Mean. - // Sd = Sample Standard Deviation. - // Sn = Sample Size. - // alpha = Significance Level. - -Most of the procedure is pretty-printing, so let's just focus on the -calculation, we begin by calculating the t-statistic: - - // Difference in means: - double diff = Sm - M; - // Degrees of freedom: - unsigned v = Sn - 1; - // t-statistic: - double t_stat = diff * sqrt(double(Sn)) / Sd; - -Finally calculate the probability from the t-statistic. If we're interested -in simply whether there is a difference (either less or greater) or not, -we don't care about the sign of the t-statistic, -and we take the complement of the probability for comparison -to the significance level: - - students_t dist(v); - double q = cdf(complement(dist, fabs(t_stat))); - -The procedure then prints out the results of the various tests -that can be done, these -can be summarised in the following table: - -[table -[[Hypothesis][Test]] -[[The Null-hypothesis: there is -*no difference* in means] -[Reject if complement of CDF for |t| < significance level / 2: - -`cdf(complement(dist, fabs(t))) < alpha / 2`]] - -[[The Alternative-hypothesis: there -*is difference* in means] -[Reject if complement of CDF for |t| > significance level / 2: - -`cdf(complement(dist, fabs(t))) > alpha / 2`]] - -[[The Alternative-hypothesis: the sample mean *is less* than -the true mean.] -[Reject if CDF of t > 1 - significance level: - -`cdf(complement(dist, t)) < alpha`]] - -[[The Alternative-hypothesis: the sample mean *is greater* than -the true mean.] -[Reject if complement of CDF of t < significance level: - -`cdf(dist, t) < alpha`]] -] - -[note -Notice that the comparisons are against `alpha / 2` for a two-sided test -and against `alpha` for a one-sided test] - -Now that we have all the parts in place, let's take a look at some -sample output, first using the -[@http://www.itl.nist.gov/div898/handbook/eda/section4/eda428.htm -Heat flow data] from the NIST site. The data set was collected -by Bob Zarr of NIST in January, 1990 from a heat flow meter -calibration and stability analysis. The corresponding dataplot -output for this test can be found in -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm -section 3.5.2] of the __handbook. - -[pre -__________________________________ -Student t test for a single sample -__________________________________ - -Number of Observations = 195 -Sample Mean = 9.26146 -Sample Standard Deviation = 0.02279 -Expected True Mean = 5.00000 - -Sample Mean - Expected Test Mean = 4.26146 -Degrees of Freedom = 194 -T Statistic = 2611.28380 -Probability that difference is due to chance = 0.000e+000 - -Results for Alternative Hypothesis and alpha = 0.0500 - -Alternative Hypothesis Conclusion -Mean != 5.000 NOT REJECTED -Mean < 5.000 REJECTED -Mean > 5.000 NOT REJECTED -] - -You will note the line that says the probability that the difference is -due to chance is zero. From a philosophical point of view, of course, -the probability can never reach zero. However, in this case the calculated -probability is smaller than the smallest representable double precision number, -hence the appearance of a zero here. Whatever its "true" value is, we know it -must be extraordinarily small, so the alternative hypothesis - that there is -a difference in means - is not rejected. - -For comparison the next example data output is taken from -['P.K.Hou, O. W. Lau & M.C. Wong, Analyst (1983) vol. 108, p 64. -and from Statistics for Analytical Chemistry, 3rd ed. (1994), pp 54-55 -J. C. Miller and J. N. Miller, Ellis Horwood ISBN 0 13 0309907.] -The values result from the determination of mercury by cold-vapour -atomic absorption. - -[pre -__________________________________ -Student t test for a single sample -__________________________________ - -Number of Observations = 3 -Sample Mean = 37.80000 -Sample Standard Deviation = 0.96437 -Expected True Mean = 38.90000 - -Sample Mean - Expected Test Mean = -1.10000 -Degrees of Freedom = 2 -T Statistic = -1.97566 -Probability that difference is due to chance = 1.869e-001 - -Results for Alternative Hypothesis and alpha = 0.0500 - -Alternative Hypothesis Conclusion -Mean != 38.900 REJECTED -Mean < 38.900 NOT REJECTED -Mean > 38.900 NOT REJECTED -] - -As you can see the small number of measurements (3) has led to a large uncertainty -in the location of the true mean. So even though there appears to be a difference -between the sample mean and the expected true mean, we conclude that there -is no significant difference, and are unable to reject the null hypothesis. -However, if we were to lower the bar for acceptance down to alpha = 0.1 -(a 90% confidence level) we see a different output: - -[pre -__________________________________ -Student t test for a single sample -__________________________________ - -Number of Observations = 3 -Sample Mean = 37.80000 -Sample Standard Deviation = 0.96437 -Expected True Mean = 38.90000 - -Sample Mean - Expected Test Mean = -1.10000 -Degrees of Freedom = 2 -T Statistic = -1.97566 -Probability that difference is due to chance = 1.869e-001 - -Results for Alternative Hypothesis and alpha = 0.1000 - -Alternative Hypothesis Conclusion -Mean != 38.900 REJECTED -Mean < 38.900 NOT REJECTED -Mean > 38.900 REJECTED -] - -In this case, we really have a borderline result, -and more data (and/or more accurate data), -is needed for a more convincing conclusion. - -[endsect] - -[section:tut_mean_size Estimating how large a sample size would have to become -in order to give a significant Students-t test result with a single sample test] - -Imagine you have conducted a Students-t test on a single sample in order -to check for systematic errors in your measurements. Imagine that the -result is borderline. At this point one might go off and collect more data, -but it might be prudent to first ask the question "How much more?". -The parameter estimators of the students_t_distribution class -can provide this information. - -This section is based on the example code in -[@../../example/students_t_single_sample.cpp students_t_single_sample.cpp] -and we begin by defining a procedure that will print out a table of -estimated sample sizes for various confidence levels: - - // Needed includes: - #include - #include - #include - // Bring everything into global namespace for ease of use: - using namespace boost::math; - using namespace std; - - void single_sample_find_df( - double M, // M = true mean. - double Sm, // Sm = Sample Mean. - double Sd) // Sd = Sample Standard Deviation. - { - -Next we define a table of significance levels: - - double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 }; - -Printing out the table of sample sizes required for various confidence levels -begins with the table header: - - cout << "\n\n" - "_______________________________________________________________\n" - "Confidence Estimated Estimated\n" - " Value (%) Sample Size Sample Size\n" - " (one sided test) (two sided test)\n" - "_______________________________________________________________\n"; - - -And now the important part: the sample sizes required. Class -`students_t_distribution` has a static member function -`find_degrees_of_freedom` that will calculate how large -a sample size needs to be in order to give a definitive result. - -The first argument is the difference between the means that you -wish to be able to detect, here it's the absolute value of the -difference between the sample mean, and the true mean. - -Then come two probability values: alpha and beta. Alpha is the -maximum acceptable risk of rejecting the null-hypothesis when it is -in fact true. Beta is the maximum acceptable risk of failing to reject -the null-hypothesis when in fact it is false. -Also note that for a two-sided test, alpha must be divided by 2. - -The final parameter of the function is the standard deviation of the sample. - -In this example, we assume that alpha and beta are the same, and call -`find_degrees_of_freedom` twice: once with alpha for a one-sided test, -and once with alpha/2 for a two-sided test. - - for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i) - { - // Confidence value: - cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]); - // calculate df for single sided test: - double df = students_t::find_degrees_of_freedom( - fabs(M - Sm), alpha[i], alpha[i], Sd); - // convert to sample size: - double size = ceil(df) + 1; - // Print size: - cout << fixed << setprecision(0) << setw(16) << right << size; - // calculate df for two sided test: - df = students_t::find_degrees_of_freedom( - fabs(M - Sm), alpha[i]/2, alpha[i], Sd); - // convert to sample size: - size = ceil(df) + 1; - // Print size: - cout << fixed << setprecision(0) << setw(16) << right << size << endl; - } - cout << endl; - } - -Let's now look at some sample output using data taken from -['P.K.Hou, O. W. Lau & M.C. Wong, Analyst (1983) vol. 108, p 64. -and from Statistics for Analytical Chemistry, 3rd ed. (1994), pp 54-55 -J. C. Miller and J. N. Miller, Ellis Horwood ISBN 0 13 0309907.] -The values result from the determination of mercury by cold-vapour -atomic absorption. - -Only three measurements were made, and the Students-t test above -gave a borderline result, so this example -will show us how many samples would need to be collected: - -[pre''' -_____________________________________________________________ -Estimated sample sizes required for various confidence levels -_____________________________________________________________ - -True Mean = 38.90000 -Sample Mean = 37.80000 -Sample Standard Deviation = 0.96437 - - -_______________________________________________________________ -Confidence Estimated Estimated - Value (%) Sample Size Sample Size - (one sided test) (two sided test) -_______________________________________________________________ - 75.000 3 4 - 90.000 7 9 - 95.000 11 13 - 99.000 20 22 - 99.900 35 37 - 99.990 50 53 - 99.999 66 68 -'''] - -So in this case, many more measurements would have had to be made, -for example at the 95% level, 14 measurements in total for a two-sided test. - -[endsect] -[section:two_sample_students_t Comparing the means of two samples with the Students-t test] - -Imagine that we have two samples, and we wish to determine whether -their means are different or not. This situation often arises when -determining whether a new process or treatment is better than an old one. - -In this example, we'll be using the -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda3531.htm -Car Mileage sample data] from the -[@http://www.itl.nist.gov NIST website]. The data compares -miles per gallon of US cars with miles per gallon of Japanese cars. - -The sample code is in -[@../../example/students_t_two_samples.cpp students_t_two_samples.cpp]. - -There are two ways in which this test can be conducted: we can assume -that the true standard deviations of the two samples are equal or not. -If the standard deviations are assumed to be equal, then the calculation -of the t-statistic is greatly simplified, so we'll examine that case first. -In real life we should verify whether this assumption is valid with a -Chi-Squared test for equal variances. - -We begin by defining a procedure that will conduct our test assuming equal -variances: - - // Needed headers: - #include - #include - #include - // Simplify usage: - using namespace boost::math; - using namespace std; - - void two_samples_t_test_equal_sd( - double Sm1, // Sm1 = Sample 1 Mean. - double Sd1, // Sd1 = Sample 1 Standard Deviation. - unsigned Sn1, // Sn1 = Sample 1 Size. - double Sm2, // Sm2 = Sample 2 Mean. - double Sd2, // Sd2 = Sample 2 Standard Deviation. - unsigned Sn2, // Sn2 = Sample 2 Size. - double alpha) // alpha = Significance Level. - { - - -Our procedure will begin by calculating the t-statistic, assuming -equal variances the needed formulae are: - -[equation dist_tutorial1] - -where Sp is the "pooled" standard deviation of the two samples, -and /v/ is the number of degrees of freedom of the two combined -samples. We can now write the code to calculate the t-statistic: - - // Degrees of freedom: - double v = Sn1 + Sn2 - 2; - cout << setw(55) << left << "Degrees of Freedom" << "= " << v << "\n"; - // Pooled variance: - double sp = sqrt(((Sn1-1) * Sd1 * Sd1 + (Sn2-1) * Sd2 * Sd2) / v); - cout << setw(55) << left << "Pooled Standard Deviation" << "= " << sp << "\n"; - // t-statistic: - double t_stat = (Sm1 - Sm2) / (sp * sqrt(1.0 / Sn1 + 1.0 / Sn2)); - cout << setw(55) << left << "T Statistic" << "= " << t_stat << "\n"; - -The next step is to define our distribution object, and calculate the -complement of the probability: - - students_t dist(v); - double q = cdf(complement(dist, fabs(t_stat))); - cout << setw(55) << left << "Probability that difference is due to chance" << "= " - << setprecision(3) << scientific << 2 * q << "\n\n"; - -Here we've used the absolute value of the t-statistic, because we initially -want to know simply whether there is a difference or not (a two-sided test). -However, we can also test whether the mean of the second sample is greater -or is less (one-sided test) than that of the first: -all the possible tests are summed up in the following table: - -[table -[[Hypothesis][Test]] -[[The Null-hypothesis: there is -*no difference* in means] -[Reject if complement of CDF for |t| < significance level / 2: - -`cdf(complement(dist, fabs(t))) < alpha / 2`]] - -[[The Alternative-hypothesis: there is a -*difference* in means] -[Reject if complement of CDF for |t| > significance level / 2: - -`cdf(complement(dist, fabs(t))) < alpha / 2`]] - -[[The Alternative-hypothesis: Sample 1 Mean is *less* than -Sample 2 Mean.] -[Reject if CDF of t > significance level: - -`cdf(dist, t) > alpha`]] - -[[The Alternative-hypothesis: Sample 1 Mean is *greater* than -Sample 2 Mean.] - -[Reject if complement of CDF of t > significance level: - -`cdf(complement(dist, t)) > alpha`]] -] - -[note -For a two-sided test we must compare against alpha / 2 and not alpha.] - -Most of the rest of the sample program is pretty-printing, so we'll -skip over that, and take a look at the sample output for alpha=0.05 -(a 95% probability level). For comparison the dataplot output -for the same data is in -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm -section 1.3.5.3] of the __handbook. - -[pre''' - ________________________________________________ - Student t test for two samples (equal variances) - ________________________________________________ - - Number of Observations (Sample 1) = 249 - Sample 1 Mean = 20.145 - Sample 1 Standard Deviation = 6.4147 - Number of Observations (Sample 2) = 79 - Sample 2 Mean = 30.481 - Sample 2 Standard Deviation = 6.1077 - Degrees of Freedom = 326 - Pooled Standard Deviation = 6.3426 - T Statistic = -12.621 - Probability that difference is due to chance = 5.273e-030 - - Results for Alternative Hypothesis and alpha = 0.0500''' - - Alternative Hypothesis Conclusion - Sample 1 Mean != Sample 2 Mean NOT REJECTED - Sample 1 Mean < Sample 2 Mean NOT REJECTED - Sample 1 Mean > Sample 2 Mean REJECTED -] - -So with a probability that the difference is due to chance of just -5.273e-030, we can safely conclude that there is indeed a difference. - -The tests on the alternative hypothesis show that we must -also reject the hypothesis that Sample 1 Mean is -greater than that for Sample 2: in this case Sample 1 represents the -miles per gallon for Japanese cars, and Sample 2 the miles per gallon for -US cars, so we conclude that Japanese cars are on average more -fuel efficient. - -Now that we have the simple case out of the way, let's look for a moment -at the more complex one: that the standard deviations of the two samples -are not equal. In this case the formula for the t-statistic becomes: - -[equation dist_tutorial2] - -And for the combined degrees of freedom we use the -[@http://en.wikipedia.org/wiki/Welch-Satterthwaite_equation Welch-Satterthwaite] -approximation: - -[equation dist_tutorial3] - -Note that this is one of the rare situations where the degrees-of-freedom -parameter to the Student's t distribution is a real number, and not an -integer value. - -[note -Some statistical packages truncate the effective degrees of freedom to -an integer value: this may be necessary if you are relying on lookup tables, -but since our code fully supports non-integer degrees of freedom there is no -need to truncate in this case. Also note that when the degrees of freedom -is small then the Welch-Satterthwaite approximation may be a significant -source of error.] - -Putting these formulae into code we get: - - // Degrees of freedom: - double v = Sd1 * Sd1 / Sn1 + Sd2 * Sd2 / Sn2; - v *= v; - double t1 = Sd1 * Sd1 / Sn1; - t1 *= t1; - t1 /= (Sn1 - 1); - double t2 = Sd2 * Sd2 / Sn2; - t2 *= t2; - t2 /= (Sn2 - 1); - v /= (t1 + t2); - cout << setw(55) << left << "Degrees of Freedom" << "= " << v << "\n"; - // t-statistic: - double t_stat = (Sm1 - Sm2) / sqrt(Sd1 * Sd1 / Sn1 + Sd2 * Sd2 / Sn2); - cout << setw(55) << left << "T Statistic" << "= " << t_stat << "\n"; - -Thereafter the code and the tests are performed the same as before. Using -are car mileage data again, here's what the output looks like: - -[pre''' - __________________________________________________ - Student t test for two samples (unequal variances) - __________________________________________________ - - Number of Observations (Sample 1) = 249 - Sample 1 Mean = 20.145 - Sample 1 Standard Deviation = 6.4147 - Number of Observations (Sample 2) = 79 - Sample 2 Mean = 30.481 - Sample 2 Standard Deviation = 6.1077 - Degrees of Freedom = 136.87 - T Statistic = -12.946 - Probability that difference is due to chance = 1.571e-025 - - Results for Alternative Hypothesis and alpha = 0.0500''' - - Alternative Hypothesis Conclusion - Sample 1 Mean != Sample 2 Mean NOT REJECTED - Sample 1 Mean < Sample 2 Mean NOT REJECTED - Sample 1 Mean > Sample 2 Mean REJECTED -] - -This time allowing the variances in the two samples to differ has yielded -a higher likelihood that the observed difference is down to chance alone -(1.571e-025 compared to 5.273e-030 when equal variances were assumed). -However, the conclusion remains the same: US cars are less fuel efficient -than Japanese models. - -[endsect] -[section:paired_st Comparing two paired samples with the Student's t distribution] - -Imagine that we have a before and after reading for each item in the sample: -for example we might have measured blood pressure before and after administration -of a new drug. We can't pool the results and compare the means before and after -the change, because each patient will have a different baseline reading. -Instead we calculate the difference between before and after measurements -in each patient, and calculate the mean and standard deviation of the differences. -To test whether a significant change has taken place, we can then test -the null-hypothesis that the true mean is zero using the same procedure -we used in the single sample cases previously discussed. - -That means we can: - -* [link math_toolkit.stat_tut.weg.st_eg.tut_mean_intervals Calculate confidence intervals of the mean]. -If the endpoints of the interval differ in sign then we are unable to reject -the null-hypothesis that there is no change. -* [link math_toolkit.stat_tut.weg.st_eg.tut_mean_test Test whether the true mean is zero]. If the -result is consistent with a true mean of zero, then we are unable to reject the -null-hypothesis that there is no change. -* [link math_toolkit.stat_tut.weg.st_eg.tut_mean_size Calculate how many pairs of readings we would need -in order to obtain a significant result]. - -[endsect] - -[endsect][/section:st_eg Student's t] - -[/ - Copyright 2006, 2012 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/triangular.qbk b/boost/libs/math/doc/distributions/triangular.qbk deleted file mode 100644 index 59c63292..00000000 --- a/boost/libs/math/doc/distributions/triangular.qbk +++ /dev/null @@ -1,179 +0,0 @@ -[section:triangular_dist Triangular Distribution] - - -``#include `` - - namespace boost{ namespace math{ - template - class triangular_distribution; - - typedef triangular_distribution<> triangular; - - template - class triangular_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - - triangular_distribution(RealType lower = -1, RealType mode = 0) RealType upper = 1); // Constructor. - : m_lower(lower), m_mode(mode), m_upper(upper) // Default is -1, 0, +1 symmetric triangular distribution. - // Accessor functions. - RealType lower()const; - RealType mode()const; - RealType upper()const; - }; // class triangular_distribution - - }} // namespaces - -The [@http://en.wikipedia.org/wiki/Triangular_distribution triangular distribution] -is a [@http://en.wikipedia.org/wiki/Continuous_distribution continuous] -[@http://en.wikipedia.org/wiki/Probability_distribution probability distribution] -with a lower limit a, -[@http://en.wikipedia.org/wiki/Mode_%28statistics%29 mode c], -and upper limit b. - -The triangular distribution is often used where the distribution is only vaguely known, -but, like the [@http://en.wikipedia.org/wiki/Uniform_distribution_%28continuous%29 uniform distribution], -upper and limits are 'known', but a 'best guess', the mode or center point, is also added. -It has been recommended as a -[@http://www.worldscibooks.com/mathematics/etextbook/5720/5720_chap1.pdf proxy for the beta distribution.] -The distribution is used in business decision making and project planning. - -The [@http://en.wikipedia.org/wiki/Triangular_distribution triangular distribution] -is a distribution with the -[@http://en.wikipedia.org/wiki/Probability_density_function probability density function]: - -__spaces f(x) = - -* 2(x-a)/(b-a) (c-a) for a <= x <= c - -* 2(b-x)/(b-a)(b-c) for c < x <= b - -Parameter ['a] (lower) can be any finite value. -Parameter ['b] (upper) can be any finite value > a (lower). -Parameter ['c] (mode) a <= c <= b. This is the most probable value. - -The [@http://en.wikipedia.org/wiki/Random_variate random variate] x must also be finite, and is supported lower <= x <= upper. - -The triangular distribution may be appropriate when an assumption of a normal distribution -is unjustified because uncertainty is caused by rounding and quantization from analog to digital conversion. -Upper and lower limits are known, and the most probable value lies midway. - -The distribution simplifies when the 'best guess' is either the lower or upper limit - a 90 degree angle triangle. -The 001 triangular distribution which expresses an estimate that the lowest value is the most likely; -for example, you believe that the next-day quoted delivery date is most likely -(knowing that a quicker delivery is impossible - the postman only comes once a day), -and that longer delays are decreasingly likely, -and delivery is assumed to never take more than your upper limit. - -The following graph illustrates how the -[@http://en.wikipedia.org/wiki/Probability_density_function probability density function PDF] -varies with the various parameters: - -[graph triangular_pdf] - -and cumulative distribution function - -[graph triangular_cdf] - -[h4 Member Functions] - - triangular_distribution(RealType lower = 0, RealType mode = 0 RealType upper = 1); - -Constructs a [@http://en.wikipedia.org/wiki/triangular_distribution triangular distribution] -with lower /lower/ (a) and upper /upper/ (b). - -Requires that the /lower/, /mode/ and /upper/ parameters are all finite, -otherwise calls __domain_error. - -[warning These constructors are slightly different from the analogs provided by __Mathworld -[@http://reference.wolfram.com/language/ref/TriangularDistribution.html Triangular distribution], -where - -[^TriangularDistribution\[{min, max}\]] represents a [*symmetric] triangular statistical distribution giving values between min and max.[br] -[^TriangularDistribution\[\]] represents a [*symmetric] triangular statistical distribution giving values between 0 and 1.[br] -[^TriangularDistribution\[{min, max}, c\]] represents a triangular distribution with mode at c (usually [*asymmetric]).[br] - -So, for example, to compute a variance using __WolframAlpha, use -[^N\[variance\[TriangularDistribution{1, +2}\], 50\]] -] - -The parameters of a distribution can be obtained using these member functions: - - RealType lower()const; - -Returns the ['lower] parameter of this distribution (default -1). - - RealType mode()const; - -Returns the ['mode] parameter of this distribution (default 0). - - RealType upper()const; - -Returns the ['upper] parameter of this distribution (default+1). - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variable is \lower\ to \upper\, -and the supported range is lower <= x <= upper. - -[h4 Accuracy] - -The triangular distribution is implemented with simple arithmetic operators and so should have errors within an epsilon or two, -except quantiles with arguments nearing the extremes of zero and unity. - -[h4 Implementation] - -In the following table, a is the /lower/ parameter of the distribution, -c is the /mode/ parameter, -b is the /upper/ parameter, -/x/ is the random variate, /p/ is the probability and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = 0 for x < mode, 2(x-a)\/(b-a)(c-a) else 2*(b-x)\/((b-a)(b-c))]] -[[cdf][Using the relation: cdf = 0 for x < mode (x-a)[super 2]\/((b-a)(c-a)) else 1 - (b-x)[super 2]\/((b-a)(b-c))]] -[[cdf complement][Using the relation: q = 1 - p ]] -[[quantile][let p0 = (c-a)\/(b-a) the point of inflection on the cdf, -then given probability p and q = 1-p: - -x = sqrt((b-a)(c-a)p) + a ; for p < p0 - -x = c ; for p == p0 - -x = b - sqrt((b-a)(b-c)q) ; for p > p0 - -(See [@../../../../boost/math/distributions/triangular.hpp /boost/math/distributions/triangular.hpp] for details.)]] -[[quantile from the complement][As quantile (See [@../../../../boost/math/distributions/triangular.hpp /boost/math/distributions/triangular.hpp] for details.)]] -[[mean][(a + b + 3) \/ 3 ]] -[[variance][(a[super 2]+b[super 2]+c[super 2] - ab - ac - bc)\/18]] -[[mode][c]] -[[skewness][(See [@../../../../boost/math/distributions/triangular.hpp /boost/math/distributions/triangular.hpp] for details). ]] -[[kurtosis][12\/5]] -[[kurtosis excess][-3\/5]] -] - -Some 'known good' test values were obtained using __WolframAlpha. - -[h4 References] - -* [@http://en.wikipedia.org/wiki/Triangular_distribution Wikpedia triangular distribution] -* [@http://mathworld.wolfram.com/TriangularDistribution.html Weisstein, Eric W. "Triangular Distribution." From MathWorld--A Wolfram Web Resource.] -* Evans, M.; Hastings, N.; and Peacock, B. "Triangular Distribution." Ch. 40 in Statistical Distributions, 3rd ed. New York: Wiley, pp. 187-188, 2000, ISBN - 0471371246. -* [@http://www.measurement.sk/2002/S1/Wimmer2.pdf Gejza Wimmer, Viktor Witkovsky and Tomas Duby, -Measurement Science Review, Volume 2, Section 1, 2002, Proper Rounding Of The Measurement Results Under The Assumption Of Triangular Distribution.] - -[endsect][/section:triangular_dist triangular] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/uniform.qbk b/boost/libs/math/doc/distributions/uniform.qbk deleted file mode 100644 index 04e1e791..00000000 --- a/boost/libs/math/doc/distributions/uniform.qbk +++ /dev/null @@ -1,134 +0,0 @@ -[section:uniform_dist Uniform Distribution] - - -``#include `` - - namespace boost{ namespace math{ - template - class uniform_distribution; - - typedef uniform_distribution<> uniform; - - template - class uniform_distribution - { - public: - typedef RealType value_type; - - uniform_distribution(RealType lower = 0, RealType upper = 1); // Constructor. - : m_lower(lower), m_upper(upper) // Default is standard uniform distribution. - // Accessor functions. - RealType lower()const; - RealType upper()const; - }; // class uniform_distribution - - }} // namespaces - -The uniform distribution, also known as a rectangular distribution, -is a probability distribution that has constant probability. - -The [@http://en.wikipedia.org/wiki/Uniform_distribution_%28continuous%29 continuous uniform distribution] -is a distribution with the -[@http://en.wikipedia.org/wiki/Probability_density_function probability density function]: - -f(x) = - -* 1 / (upper - lower) for lower < x < upper - -* zero for x < lower or x > upper - -and in this implementation: - -* 1 / (upper - lower) for x = lower or x = upper - -The choice of x = lower or x = upper is made because statistical use of this distribution judged is most likely: -the method of maximum likelihood uses this definition. - -There is also a [@http://en.wikipedia.org/wiki/Discrete_uniform_distribution *discrete* uniform distribution]. - -Parameters lower and upper can be any finite value. - -The [@http://en.wikipedia.org/wiki/Random_variate random variate] -x must also be finite, and is supported lower <= x <= upper. - -The lower parameter is also called the -[@http://www.itl.nist.gov/div898/handbook/eda/section3/eda364.htm location parameter], -[@http://en.wikipedia.org/wiki/Location_parameter that is where the origin of a plot will lie], -and (upper - lower) is also called the [@http://en.wikipedia.org/wiki/Scale_parameter scale parameter]. - -The following graph illustrates how the -[@http://en.wikipedia.org/wiki/Probability_density_function probability density function PDF] -varies with the shape parameter: - -[graph uniform_pdf] - -Likewise for the CDF: - -[graph uniform_cdf] - -[h4 Member Functions] - - uniform_distribution(RealType lower = 0, RealType upper = 1); - -Constructs a [@http://en.wikipedia.org/wiki/uniform_distribution -uniform distribution] with lower /lower/ (a) and upper /upper/ (b). - -Requires that the /lower/ and /upper/ parameters are both finite; -otherwise if infinity or NaN then calls __domain_error. - - RealType lower()const; - -Returns the /lower/ parameter of this distribution. - - RealType upper()const; - -Returns the /upper/ parameter of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] -that are generic to all distributions are supported: __usual_accessors. - -The domain of the random variable is any finite value, -but the supported range is only /lower/ <= x <= /upper/. - -[h4 Accuracy] - -The uniform distribution is implemented with simple arithmetic operators and so should have errors within an epsilon or two. - -[h4 Implementation] - -In the following table a is the /lower/ parameter of the distribution, -b is the /upper/ parameter, -/x/ is the random variate, /p/ is the probability and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = 0 for x < a, 1 / (b - a) for a <= x <= b, 0 for x > b ]] -[[cdf][Using the relation: cdf = 0 for x < a, (x - a) / (b - a) for a <= x <= b, 1 for x > b]] -[[cdf complement][Using the relation: q = 1 - p, (b - x) / (b - a) ]] -[[quantile][Using the relation: x = p * (b - a) + a; ]] -[[quantile from the complement][x = -q * (b - a) + b ]] -[[mean][(a + b) / 2 ]] -[[variance][(b - a) [super 2] / 12 ]] -[[mode][any value in \[a, b\] but a is chosen. (Would NaN be better?) ]] -[[skewness][0]] -[[kurtosis excess][-6/5 = -1.2 exactly. (kurtosis - 3)]] -[[kurtosis][9/5]] -] - -[h4 References] -* [@http://en.wikipedia.org/wiki/Uniform_distribution_%28continuous%29 Wikpedia continuous uniform distribution] -* [@http://mathworld.wolfram.com/UniformDistribution.html Weisstein, Weisstein, Eric W. "Uniform Distribution." From MathWorld--A Wolfram Web Resource.] -* [@http://www.itl.nist.gov/div898/handbook/eda/section3/eda3662.htm] - -[endsect][/section:uniform_dist Uniform] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/distributions/weibull.qbk b/boost/libs/math/doc/distributions/weibull.qbk deleted file mode 100644 index 0d57776d..00000000 --- a/boost/libs/math/doc/distributions/weibull.qbk +++ /dev/null @@ -1,132 +0,0 @@ -[section:weibull_dist Weibull Distribution] - - -``#include `` - - namespace boost{ namespace math{ - - template - class weibull_distribution; - - typedef weibull_distribution<> weibull; - - template - class weibull_distribution - { - public: - typedef RealType value_type; - typedef Policy policy_type; - // Construct: - weibull_distribution(RealType shape, RealType scale = 1) - // Accessors: - RealType shape()const; - RealType scale()const; - }; - - }} // namespaces - -The [@http://en.wikipedia.org/wiki/Weibull_distribution Weibull distribution] -is a continuous distribution -with the -[@http://en.wikipedia.org/wiki/Probability_density_function probability density function]: - -f(x; [alpha], [beta]) = ([alpha]\/[beta]) * (x \/ [beta])[super [alpha] - 1] * e[super -(x\/[beta])[super [alpha]]] - -For shape parameter [alpha][space] > 0, and scale parameter [beta][space] > 0, and x > 0. - -The Weibull distribution is often used in the field of failure analysis; -in particular it can mimic distributions where the failure rate varies over time. -If the failure rate is: - -* constant over time, then [alpha][space] = 1, suggests that items are failing from random events. -* decreases over time, then [alpha][space] < 1, suggesting "infant mortality". -* increases over time, then [alpha][space] > 1, suggesting "wear out" - more likely to fail as time goes by. - -The following graph illustrates how the PDF varies with the shape parameter [alpha]: - -[graph weibull_pdf1] - -While this graph illustrates how the PDF varies with the scale parameter [beta]: - -[graph weibull_pdf2] - -[h4 Related distributions] - -When [alpha][space] = 3, the -[@http://en.wikipedia.org/wiki/Weibull_distribution Weibull distribution] appears similar to the -[@http://en.wikipedia.org/wiki/Normal_distribution normal distribution]. -When [alpha][space] = 1, the Weibull distribution reduces to the -[@http://en.wikipedia.org/wiki/Exponential_distribution exponential distribution]. -The relationship of the types of extreme value distributions, of which the Weibull is but one, is -discussed by -[@http://www.worldscibooks.com/mathematics/p191.html Extreme Value Distributions, Theory and Applications -Samuel Kotz & Saralees Nadarajah]. - - -[h4 Member Functions] - - weibull_distribution(RealType shape, RealType scale = 1); - -Constructs a [@http://en.wikipedia.org/wiki/Weibull_distribution -Weibull distribution] with shape /shape/ and scale /scale/. - -Requires that the /shape/ and /scale/ parameters are both greater than zero, -otherwise calls __domain_error. - - RealType shape()const; - -Returns the /shape/ parameter of this distribution. - - RealType scale()const; - -Returns the /scale/ parameter of this distribution. - -[h4 Non-member Accessors] - -All the [link math_toolkit.dist_ref.nmp usual non-member accessor functions] that are generic to all -distributions are supported: __usual_accessors. - -The domain of the random variable is \[0, [infin]\]. - -[h4 Accuracy] - -The Weibull distribution is implemented in terms of the -standard library `log` and `exp` functions plus __expm1 and __log1p -and as such should have very low error rates. - -[h4 Implementation] - - -In the following table [alpha][space] is the shape parameter of the distribution, -[beta][space] is its scale parameter, /x/ is the random variate, /p/ is the probability -and /q = 1-p/. - -[table -[[Function][Implementation Notes]] -[[pdf][Using the relation: pdf = [alpha][beta][super -[alpha] ]x[super [alpha] - 1] e[super -(x/beta)[super alpha]] ]] -[[cdf][Using the relation: p = -__expm1(-(x\/[beta])[super [alpha]]) ]] -[[cdf complement][Using the relation: q = e[super -(x\/[beta])[super [alpha]]] ]] -[[quantile][Using the relation: x = [beta] * (-__log1p(-p))[super 1\/[alpha]] ]] -[[quantile from the complement][Using the relation: x = [beta] * (-log(q))[super 1\/[alpha]] ]] -[[mean][[beta] * [Gamma](1 + 1\/[alpha]) ]] -[[variance][[beta][super 2]([Gamma](1 + 2\/[alpha]) - [Gamma][super 2](1 + 1\/[alpha])) ]] -[[mode][[beta](([alpha] - 1) \/ [alpha])[super 1\/[alpha]] ]] -[[skewness][Refer to [@http://mathworld.wolfram.com/WeibullDistribution.html Weisstein, Eric W. "Weibull Distribution." From MathWorld--A Wolfram Web Resource.] ]] -[[kurtosis][Refer to [@http://mathworld.wolfram.com/WeibullDistribution.html Weisstein, Eric W. "Weibull Distribution." From MathWorld--A Wolfram Web Resource.] ]] -[[kurtosis excess][Refer to [@http://mathworld.wolfram.com/WeibullDistribution.html Weisstein, Eric W. "Weibull Distribution." From MathWorld--A Wolfram Web Resource.] ]] -] - -[h4 References] -* [@http://en.wikipedia.org/wiki/Weibull_distribution ] -* [@http://mathworld.wolfram.com/WeibullDistribution.html Weisstein, Eric W. "Weibull Distribution." From MathWorld--A Wolfram Web Resource.] -* [@http://www.itl.nist.gov/div898/handbook/eda/section3/eda3668.htm Weibull in NIST Exploratory Data Analysis] - -[endsect][/section:weibull Weibull] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/equations/acosh1.mml b/boost/libs/math/doc/equations/acosh1.mml deleted file mode 100644 index 0d420a03..00000000 --- a/boost/libs/math/doc/equations/acosh1.mml +++ /dev/null @@ -1,39 +0,0 @@ - -]> - -acosh1 - - - - - - acosh - - - x - - - = - ln - - - x - + - - - - x - 2 - - − - 1 - - - - - - - - diff --git a/boost/libs/math/doc/equations/acosh1.png b/boost/libs/math/doc/equations/acosh1.png deleted file mode 100644 index 71d7627d..00000000 Binary files a/boost/libs/math/doc/equations/acosh1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/acosh1.svg b/boost/libs/math/doc/equations/acosh1.svg deleted file mode 100644 index 4d1eba0f..00000000 --- a/boost/libs/math/doc/equations/acosh1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -acosh(x)=ln(x+x2−1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/acosh2.mml b/boost/libs/math/doc/equations/acosh2.mml deleted file mode 100644 index 72ceb001..00000000 --- a/boost/libs/math/doc/equations/acosh2.mml +++ /dev/null @@ -1,40 +0,0 @@ - -]> - -acosh2 - - - - - - acosh - - - x - - - ≈ - ln - - - 2 - x - - - - ; - - x - > - - 1 - - ε - - - - - - diff --git a/boost/libs/math/doc/equations/acosh2.png b/boost/libs/math/doc/equations/acosh2.png deleted file mode 100644 index 0f5c7655..00000000 Binary files a/boost/libs/math/doc/equations/acosh2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/acosh2.svg b/boost/libs/math/doc/equations/acosh2.svg deleted file mode 100644 index cf0c6581..00000000 --- a/boost/libs/math/doc/equations/acosh2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -acosh(x)≈ln(2x);x>1ε \ No newline at end of file diff --git a/boost/libs/math/doc/equations/acosh3.mml b/boost/libs/math/doc/equations/acosh3.mml deleted file mode 100644 index bd0d479c..00000000 --- a/boost/libs/math/doc/equations/acosh3.mml +++ /dev/null @@ -1,48 +0,0 @@ - -]> - -acosh3 - - - - - - acosh - - - x - - - = - log1p - - - y - + - - - - y - 2 - - + - 2 - y - - - - - - ; - - y - = - x - − - 1 - - - - diff --git a/boost/libs/math/doc/equations/acosh3.png b/boost/libs/math/doc/equations/acosh3.png deleted file mode 100644 index c49727d4..00000000 Binary files a/boost/libs/math/doc/equations/acosh3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/acosh3.svg b/boost/libs/math/doc/equations/acosh3.svg deleted file mode 100644 index 0edf76f5..00000000 --- a/boost/libs/math/doc/equations/acosh3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -acosh(x)=log1p(y+y2+2y);y=x−1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/acosh4.mml b/boost/libs/math/doc/equations/acosh4.mml deleted file mode 100644 index 22cbd340..00000000 --- a/boost/libs/math/doc/equations/acosh4.mml +++ /dev/null @@ -1,65 +0,0 @@ - -]> - -acosh4 - - - - - - acosh - - - x - - - ≈ - - - 2 - y - - - - - 1 - - - - y - 12 - - + - - - 3 - - y - 2 - - - 160 - - - - - ; - - y - = - x - − - 1 - - ∧ - - y - < - - ε - - - - - diff --git a/boost/libs/math/doc/equations/acosh4.png b/boost/libs/math/doc/equations/acosh4.png deleted file mode 100644 index 6f59fd0b..00000000 Binary files a/boost/libs/math/doc/equations/acosh4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/acosh4.svg b/boost/libs/math/doc/equations/acosh4.svg deleted file mode 100644 index 7e9af177..00000000 --- a/boost/libs/math/doc/equations/acosh4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -acosh(x)≈2y(1−y12+3y2160);y=x−1∧y<ε \ No newline at end of file diff --git a/boost/libs/math/doc/equations/airy.mml b/boost/libs/math/doc/equations/airy.mml deleted file mode 100644 index 0b1550e8..00000000 --- a/boost/libs/math/doc/equations/airy.mml +++ /dev/null @@ -1,76 +0,0 @@ - -]> - -airy - - - - - - - - - ⅆ - 2 - - w - - - ⅆ - - z - 2 - - - - = - z - w - - ; - - w - = - A - i - - - z - - - , - B - i - - - z - - - , - A - i - - - z - - ⅇ - - ± - - - 2 - π - ⅈ - - 3 - - - - - - - - - diff --git a/boost/libs/math/doc/equations/airy.png b/boost/libs/math/doc/equations/airy.png deleted file mode 100644 index 7dbdb201..00000000 Binary files a/boost/libs/math/doc/equations/airy.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/airy.svg b/boost/libs/math/doc/equations/airy.svg deleted file mode 100644 index ca3e246f..00000000 --- a/boost/libs/math/doc/equations/airy.svg +++ /dev/null @@ -1,2 +0,0 @@ - -d2wdz2=zw;w=Ai(z),Bi(z),Ai(ze±2πi3) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/airy_ai.mml b/boost/libs/math/doc/equations/airy_ai.mml deleted file mode 100644 index b21be8a2..00000000 --- a/boost/libs/math/doc/equations/airy_ai.mml +++ /dev/null @@ -1,188 +0,0 @@ - -]> - -airy_ai - - - - - - - - - A - i - - - 0 - - - - - = - - - - 1 - - - 3 - - - 2 - 3 - - - - Γ - - - - 2 - 3 - - - - - - - - - - A - i - - - z - - - - - = - - - - π - - − - 1 - - - - - - z - 3 - - - - - K - - ± - - - 1 - 3 - - - - - - - ζ - - - - - ; - - - ζ - = - - 2 - 3 - - - z - - - 2 - 3 - - - - - - - - A - i - - - − - z - - - - - = - - - - - - - - z - - - 3 - - - - - - - J - - - 1 - 3 - - - - - - ζ - - - + - - J - - − - - 1 - 3 - - - - - - ζ - - - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/airy_ai.png b/boost/libs/math/doc/equations/airy_ai.png deleted file mode 100644 index 5aa88fd2..00000000 Binary files a/boost/libs/math/doc/equations/airy_ai.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/airy_ai.svg b/boost/libs/math/doc/equations/airy_ai.svg deleted file mode 100644 index afab71f3..00000000 --- a/boost/libs/math/doc/equations/airy_ai.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ai(0)=1323Γ(23)Ai(z)=π−1z3K±13(ζ);ζ=23z23Ai(−z)=(z3)(J13(ζ)+J−13(ζ)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/airy_aip.mml b/boost/libs/math/doc/equations/airy_aip.mml deleted file mode 100644 index 60f3a1db..00000000 --- a/boost/libs/math/doc/equations/airy_aip.mml +++ /dev/null @@ -1,179 +0,0 @@ - -]> - -airy_aip - - - - - - - - - A - i - ′ - - - 0 - - - - - = - - - − - - - 1 - - - 3 - - - 1 - 3 - - - - Γ - - - - 1 - 3 - - - - - - - - - - - A - i - ′ - - - z - - - - - = - - - - z - - π - - 3 - - - - - K - - - ± - - 2 - 3 - - - - - - - ζ - - - - - ; - - - ζ - = - - 2 - 3 - - - z - - - 2 - 3 - - - - - - - - A - i - ′ - - - − - z - - - - - = - - - - z - 3 - - - - - J - - - 2 - 3 - - - - - - ζ - - - − - - J - - − - - 2 - 3 - - - - - - ζ - - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/airy_aip.png b/boost/libs/math/doc/equations/airy_aip.png deleted file mode 100644 index cf0e8f1b..00000000 Binary files a/boost/libs/math/doc/equations/airy_aip.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/airy_aip.svg b/boost/libs/math/doc/equations/airy_aip.svg deleted file mode 100644 index 3a66f049..00000000 --- a/boost/libs/math/doc/equations/airy_aip.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ai′(0)=−1313Γ(13)Ai′(z)=zπ3K±23(ζ);ζ=23z23Ai′(−z)=z3(J23(ζ)−J−23(ζ)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/airy_bi.mml b/boost/libs/math/doc/equations/airy_bi.mml deleted file mode 100644 index b3982b38..00000000 --- a/boost/libs/math/doc/equations/airy_bi.mml +++ /dev/null @@ -1,195 +0,0 @@ - -]> - -airy_bi - - - - - - - - - B - i - - - 0 - - - - - = - - - - 1 - - - 3 - - - 1 - 6 - - - - Γ - - - - 2 - 3 - - - - - - - - - - B - i - - - z - - - - - = - - - - - - z - 3 - - - - - - - I - - - - 1 - 3 - - - - - - - ζ - - - + - - I - - − - - 1 - 3 - - - - - - ζ - - - - - - - ; - - - ζ - = - - 2 - 3 - - - z - - - 2 - 3 - - - - - - - - B - i - - - − - z - - - - - = - - - - - - z - 3 - - - - - - - J - - − - - 1 - 3 - - - - - - ζ - - - − - - J - - - 1 - 3 - - - - - - ζ - - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/airy_bi.png b/boost/libs/math/doc/equations/airy_bi.png deleted file mode 100644 index 72094f0b..00000000 Binary files a/boost/libs/math/doc/equations/airy_bi.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/airy_bi.svg b/boost/libs/math/doc/equations/airy_bi.svg deleted file mode 100644 index f52b68cb..00000000 --- a/boost/libs/math/doc/equations/airy_bi.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Bi(0)=1316Γ(23)Bi(z)=z3(I13(ζ)+I−13(ζ));ζ=23z23Bi(−z)=z3(J−13(ζ)−J13(ζ)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/airy_bip.mml b/boost/libs/math/doc/equations/airy_bip.mml deleted file mode 100644 index 00f9768d..00000000 --- a/boost/libs/math/doc/equations/airy_bip.mml +++ /dev/null @@ -1,195 +0,0 @@ - -]> - -airy_bip - - - - - - - - - B - i - ′ - - - 0 - - - - - = - - - - - - 3 - - - 1 - 6 - - - - - Γ - - - - 1 - 3 - - - - - - - - - - - B - i - ′ - - - z - - - - - = - - - - z - - 3 - - - - - - I - - - - 2 - 3 - - - - - - - ζ - - - + - - I - - − - - 2 - 3 - - - - - - ζ - - - - - - - ; - - - ζ - = - - 2 - 3 - - - z - - - 2 - 3 - - - - - - - - B - i - ′ - - - − - z - - - - - = - - - - z - - 3 - - - - - - J - - − - - 2 - 3 - - - - - - ζ - - - + - - J - - - 2 - 3 - - - - - - ζ - - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/airy_bip.png b/boost/libs/math/doc/equations/airy_bip.png deleted file mode 100644 index 2f865c81..00000000 Binary files a/boost/libs/math/doc/equations/airy_bip.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/airy_bip.svg b/boost/libs/math/doc/equations/airy_bip.svg deleted file mode 100644 index dd81032a..00000000 --- a/boost/libs/math/doc/equations/airy_bip.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Bi′(0)=316Γ(13)Bi′(z)=z3(I23(ζ)+I−23(ζ));ζ=23z23Bi′(−z)=z3(J−23(ζ)+J23(ζ)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/airy_zero_1.mml b/boost/libs/math/doc/equations/airy_zero_1.mml deleted file mode 100644 index 7948fd77..00000000 --- a/boost/libs/math/doc/equations/airy_zero_1.mml +++ /dev/null @@ -1,90 +0,0 @@ - -]> - -airy_zero_1 - - - - - - f - - - z - - - = - - z - - - 2 - 3 - - - - - - 1 - + - - 5 - - 48 - - z - 2 - - - - − - - 5 - - 36 - - z - 4 - - - - + - - 77125 - - 82944 - - z - 6 - - - - − - - 108056875 - - 6967296 - - z - 8 - - - - + - - 162375596875 - - 334430208 - - z - - 10 - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/airy_zero_1.svg b/boost/libs/math/doc/equations/airy_zero_1.svg deleted file mode 100644 index 5ff49496..00000000 --- a/boost/libs/math/doc/equations/airy_zero_1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(z)=z23(1+548z2−536z4+7712582944z6−1080568756967296z8+162375596875334430208z10) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/airy_zero_2.mml b/boost/libs/math/doc/equations/airy_zero_2.mml deleted file mode 100644 index 3d1b446c..00000000 --- a/boost/libs/math/doc/equations/airy_zero_2.mml +++ /dev/null @@ -1,36 +0,0 @@ - -]> - -airy_zero_2 - - - - - - - a - n - - = - − - f - - - 3 - π - - - - 4 - n - − - 1 - - - 8 - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/airy_zero_2.svg b/boost/libs/math/doc/equations/airy_zero_2.svg deleted file mode 100644 index 741833c1..00000000 --- a/boost/libs/math/doc/equations/airy_zero_2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -an=−f(3π(4n−1)8) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/airy_zero_3.mml b/boost/libs/math/doc/equations/airy_zero_3.mml deleted file mode 100644 index dca37cbd..00000000 --- a/boost/libs/math/doc/equations/airy_zero_3.mml +++ /dev/null @@ -1,36 +0,0 @@ - -]> - -airy_zero_3 - - - - - - - b - n - - = - − - f - - - 3 - π - - - - 4 - n - − - 3 - - - 8 - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/airy_zero_3.svg b/boost/libs/math/doc/equations/airy_zero_3.svg deleted file mode 100644 index adfc44ac..00000000 --- a/boost/libs/math/doc/equations/airy_zero_3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -bn=−f(3π(4n−3)8) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/asinh1.mml b/boost/libs/math/doc/equations/asinh1.mml deleted file mode 100644 index 17463c61..00000000 --- a/boost/libs/math/doc/equations/asinh1.mml +++ /dev/null @@ -1,39 +0,0 @@ - -]> - -asinh1 - - - - - - asinh - - - x - - - = - ln - - - x - + - - - - x - 2 - - + - 1 - - - - - - - - diff --git a/boost/libs/math/doc/equations/asinh1.png b/boost/libs/math/doc/equations/asinh1.png deleted file mode 100644 index 69442140..00000000 Binary files a/boost/libs/math/doc/equations/asinh1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/asinh1.svg b/boost/libs/math/doc/equations/asinh1.svg deleted file mode 100644 index 96b8b9d5..00000000 --- a/boost/libs/math/doc/equations/asinh1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -asinh(x)=ln(x+x2+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/asinh2.mml b/boost/libs/math/doc/equations/asinh2.mml deleted file mode 100644 index c27843db..00000000 --- a/boost/libs/math/doc/equations/asinh2.mml +++ /dev/null @@ -1,51 +0,0 @@ - -]> - -asinh2 - - - - - - asinh - - - x - - - ≈ - ln - - - 2 - x - - - + - - 1 - - 4 - - x - 2 - - - - - ; - - x - > - - 1 - - ε - - - - - - diff --git a/boost/libs/math/doc/equations/asinh2.png b/boost/libs/math/doc/equations/asinh2.png deleted file mode 100644 index a5ec5ab0..00000000 Binary files a/boost/libs/math/doc/equations/asinh2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/asinh2.svg b/boost/libs/math/doc/equations/asinh2.svg deleted file mode 100644 index 5f708472..00000000 --- a/boost/libs/math/doc/equations/asinh2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -asinh(x)≈ln(2x)+14x2;x>1ε \ No newline at end of file diff --git a/boost/libs/math/doc/equations/asinh3.mml b/boost/libs/math/doc/equations/asinh3.mml deleted file mode 100644 index e5dc329c..00000000 --- a/boost/libs/math/doc/equations/asinh3.mml +++ /dev/null @@ -1,41 +0,0 @@ - -]> - -asinh3 - - - - - - asinh - - - x - - - ≈ - x - − - - - - x - 3 - - - 6 - - - ; - - x - < - - ε - - - - - diff --git a/boost/libs/math/doc/equations/asinh3.png b/boost/libs/math/doc/equations/asinh3.png deleted file mode 100644 index 3d2d41ae..00000000 Binary files a/boost/libs/math/doc/equations/asinh3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/asinh3.svg b/boost/libs/math/doc/equations/asinh3.svg deleted file mode 100644 index bfc3cc11..00000000 --- a/boost/libs/math/doc/equations/asinh3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -asinh(x)≈x−x36;x<ε \ No newline at end of file diff --git a/boost/libs/math/doc/equations/asinh4.mml b/boost/libs/math/doc/equations/asinh4.mml deleted file mode 100644 index a6a72d29..00000000 --- a/boost/libs/math/doc/equations/asinh4.mml +++ /dev/null @@ -1,38 +0,0 @@ - -]> - -asinh4 - - - - - - asinh - - - x - - - = - log1p - - - x - + - sqrtp1m1 - - - - x - 2 - - - - - - - - - diff --git a/boost/libs/math/doc/equations/asinh4.png b/boost/libs/math/doc/equations/asinh4.png deleted file mode 100644 index 86c88dd7..00000000 Binary files a/boost/libs/math/doc/equations/asinh4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/asinh4.svg b/boost/libs/math/doc/equations/asinh4.svg deleted file mode 100644 index 9376b284..00000000 --- a/boost/libs/math/doc/equations/asinh4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -asinh(x)=log1p(x+sqrtp1m1(x2)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/atanh1.mml b/boost/libs/math/doc/equations/atanh1.mml deleted file mode 100644 index 0561c1a1..00000000 --- a/boost/libs/math/doc/equations/atanh1.mml +++ /dev/null @@ -1,44 +0,0 @@ - -]> - -atanh1 - - - - - - atanh - - - x - - - = - - - ln - - - - - 1 - + - x - - - 1 - − - x - - - - - - 2 - - - - - diff --git a/boost/libs/math/doc/equations/atanh1.png b/boost/libs/math/doc/equations/atanh1.png deleted file mode 100644 index 8e51451a..00000000 Binary files a/boost/libs/math/doc/equations/atanh1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/atanh1.svg b/boost/libs/math/doc/equations/atanh1.svg deleted file mode 100644 index ce5f9e64..00000000 --- a/boost/libs/math/doc/equations/atanh1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -atanh(x)=ln(1+x1−x)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/atanh2.mml b/boost/libs/math/doc/equations/atanh2.mml deleted file mode 100644 index 735fd86b..00000000 --- a/boost/libs/math/doc/equations/atanh2.mml +++ /dev/null @@ -1,40 +0,0 @@ - -]> - -atanh2 - - - - - - atanh - - - x - - - ≈ - x - + - - - x - 3 - - 3 - - - ; - - x - < - - ε - - - - - - diff --git a/boost/libs/math/doc/equations/atanh2.png b/boost/libs/math/doc/equations/atanh2.png deleted file mode 100644 index 4b5545e1..00000000 Binary files a/boost/libs/math/doc/equations/atanh2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/atanh2.svg b/boost/libs/math/doc/equations/atanh2.svg deleted file mode 100644 index e6727044..00000000 --- a/boost/libs/math/doc/equations/atanh2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -atanh(x)≈x+x33;x<ε \ No newline at end of file diff --git a/boost/libs/math/doc/equations/atanh3.mml b/boost/libs/math/doc/equations/atanh3.mml deleted file mode 100644 index 1d839acf..00000000 --- a/boost/libs/math/doc/equations/atanh3.mml +++ /dev/null @@ -1,41 +0,0 @@ - -]> - -atanh3 - - - - - - atanh - - - x - - - = - - - log1p - - - x - - - − - log1p - - - − - x - - - - 2 - - - - - diff --git a/boost/libs/math/doc/equations/atanh3.png b/boost/libs/math/doc/equations/atanh3.png deleted file mode 100644 index 36e3df0c..00000000 Binary files a/boost/libs/math/doc/equations/atanh3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/atanh3.svg b/boost/libs/math/doc/equations/atanh3.svg deleted file mode 100644 index e259e4c7..00000000 --- a/boost/libs/math/doc/equations/atanh3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -atanh(x)=log1p(x)−log1p(−x)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bernoulli_numbers.mml b/boost/libs/math/doc/equations/bernoulli_numbers.mml deleted file mode 100644 index e250e076..00000000 --- a/boost/libs/math/doc/equations/bernoulli_numbers.mml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - B - j - - = - - - - − - 1 - - - - - j - 2 - - − - 1 - - - - - j - - T - - j - / - 2 - - - - - - - 4 - j - - − - - 2 - j - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bernoulli_numbers.png b/boost/libs/math/doc/equations/bernoulli_numbers.png deleted file mode 100644 index f8de0ef3..00000000 Binary files a/boost/libs/math/doc/equations/bernoulli_numbers.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bernoulli_numbers.svg b/boost/libs/math/doc/equations/bernoulli_numbers.svg deleted file mode 100644 index dec5eb1d..00000000 --- a/boost/libs/math/doc/equations/bernoulli_numbers.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Bj=(−1)j2−1jTj/2(4j−2j) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bernoulli_numbers2.mml b/boost/libs/math/doc/equations/bernoulli_numbers2.mml deleted file mode 100644 index 81a24cd3..00000000 --- a/boost/libs/math/doc/equations/bernoulli_numbers2.mml +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - ln - - ( - - - B - n - - - ) - - - - - - = - - - - - - ( - - - - - 1 - - - 2 - - - + - n - - - ) - - ln - - - ( - - n - - ) - - + - - ( - - - - - 1 - - - 2 - - - − - n - - - ) - - - ln - - - ( - - π - - - ) - - + - - ( - - - - - 3 - - - 2 - - - − - n - - - ) - - - ln - - - ( - - 2 - - ) - - − - R - - - ( - - n - - ) - - - - - - - - R - - ( - - n - - ) - - - - - - = - - - - - n - - ( - - - 1 - − - - - 1 - - 12 - - - - ( - - - 1 - − - - 1 - 30 - - - - ( - - - 1 - − - - 2 - 7 - - - - n - - - − - 2 - - - - - ) - - - n - - - − - 2 - - - - - ) - - - n - - - − - 2 - - - - - ) - - - - - - - diff --git a/boost/libs/math/doc/equations/bernoulli_numbers2.png b/boost/libs/math/doc/equations/bernoulli_numbers2.png deleted file mode 100644 index e64acf1d..00000000 Binary files a/boost/libs/math/doc/equations/bernoulli_numbers2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bernoulli_numbers2.svg b/boost/libs/math/doc/equations/bernoulli_numbers2.svg deleted file mode 100644 index 558c6a8e..00000000 --- a/boost/libs/math/doc/equations/bernoulli_numbers2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ln(Bn)=(12+n)ln(n)+(12−n)ln(π)+(32−n)ln(2)−R(n)R(n)=n(1−112(1−130(1−27n−2)n−2)n−2) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel1.mml b/boost/libs/math/doc/equations/bessel1.mml deleted file mode 100644 index 63b562d2..00000000 --- a/boost/libs/math/doc/equations/bessel1.mml +++ /dev/null @@ -1 +0,0 @@ - z2d2u dz2 + zdu dz + (z2 − ν2)u = 0 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel1.png b/boost/libs/math/doc/equations/bessel1.png deleted file mode 100644 index 26888c79..00000000 Binary files a/boost/libs/math/doc/equations/bessel1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel1.svg b/boost/libs/math/doc/equations/bessel1.svg deleted file mode 100644 index 9e864632..00000000 --- a/boost/libs/math/doc/equations/bessel1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -z2d2udz2+zdudz+(z2−ν2)u=0 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel10.mml b/boost/libs/math/doc/equations/bessel10.mml deleted file mode 100644 index c8f45955..00000000 --- a/boost/libs/math/doc/equations/bessel10.mml +++ /dev/null @@ -1 +0,0 @@ - Y −ν(z) = sin(νπ)Jν(z) + cos(νπ)Y ν(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel10.png b/boost/libs/math/doc/equations/bessel10.png deleted file mode 100644 index 295a60fc..00000000 Binary files a/boost/libs/math/doc/equations/bessel10.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel10.svg b/boost/libs/math/doc/equations/bessel10.svg deleted file mode 100644 index 9c9ebe52..00000000 --- a/boost/libs/math/doc/equations/bessel10.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Y−ν(z)=sin(νπ)Jν(z)+cos(νπ)Yν(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel11.mml b/boost/libs/math/doc/equations/bessel11.mml deleted file mode 100644 index aa834419..00000000 --- a/boost/libs/math/doc/equations/bessel11.mml +++ /dev/null @@ -1 +0,0 @@ -  CF1 : fν = Jν+1 Jν = 1 2(ν+1) x − 1 2(ν+2) x −⋅⋅⋅ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel11.png b/boost/libs/math/doc/equations/bessel11.png deleted file mode 100644 index 39974438..00000000 Binary files a/boost/libs/math/doc/equations/bessel11.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel11.svg b/boost/libs/math/doc/equations/bessel11.svg deleted file mode 100644 index 60069bde..00000000 --- a/boost/libs/math/doc/equations/bessel11.svg +++ /dev/null @@ -1,2 +0,0 @@ - -CF1:fν=Jν+1Jν=12(ν+1)x−12(ν+2)x−⋅⋅⋅ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel12.mml b/boost/libs/math/doc/equations/bessel12.mml deleted file mode 100644 index 19e88aa0..00000000 --- a/boost/libs/math/doc/equations/bessel12.mml +++ /dev/null @@ -1 +0,0 @@ -  CF2 : p + iq = Jν′ + iY ν′ Jν + iY ν = i − 1 2x + i x 12 2 − ν22(x + i) + 32 2 − ν2 2(x + 2i) + ⋅⋅⋅ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel12.png b/boost/libs/math/doc/equations/bessel12.png deleted file mode 100644 index e6dba8ab..00000000 Binary files a/boost/libs/math/doc/equations/bessel12.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel12.svg b/boost/libs/math/doc/equations/bessel12.svg deleted file mode 100644 index 2afbc996..00000000 --- a/boost/libs/math/doc/equations/bessel12.svg +++ /dev/null @@ -1,2 +0,0 @@ - -CF2:p+iq=Jν′+iYν′Jν+iYν=(i−12x)+ix[(12)2−ν22(x+i)+(32)2−ν22(x+2i)+⋅⋅⋅] \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel13.mml b/boost/libs/math/doc/equations/bessel13.mml deleted file mode 100644 index 3aed65b9..00000000 --- a/boost/libs/math/doc/equations/bessel13.mml +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - - J - μ - - - - = - - - ± - - - - - W - - q - + - γ - - - p - − - - f - μ - - - - - - - - - - 1 - 2 - - - - - - - - - J - - μ - + - 1 - - - - - = - - - - J - μ - - - - - μ - x - - − - - f - μ - - - - - - - - - Y - μ - - - - = - - - γ - - J - μ - - - - - - - Y - - μ - + - 1 - - - - - = - - - - Y - μ - - - - - μ - x - - − - p - − - - q - γ - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/bessel13.png b/boost/libs/math/doc/equations/bessel13.png deleted file mode 100644 index ac0c28a2..00000000 Binary files a/boost/libs/math/doc/equations/bessel13.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel13.svg b/boost/libs/math/doc/equations/bessel13.svg deleted file mode 100644 index 5155a0c2..00000000 --- a/boost/libs/math/doc/equations/bessel13.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Jμ=±(Wq+γ(p−fμ))12Jμ+1=Jμ(μx−fμ)Yμ=γJμYμ+1=Yμ(μx−p−qγ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel14.mml b/boost/libs/math/doc/equations/bessel14.mml deleted file mode 100644 index 0b62c0f6..00000000 --- a/boost/libs/math/doc/equations/bessel14.mml +++ /dev/null @@ -1 +0,0 @@ - γ = p − fμ q \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel14.png b/boost/libs/math/doc/equations/bessel14.png deleted file mode 100644 index deefce2d..00000000 Binary files a/boost/libs/math/doc/equations/bessel14.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel14.svg b/boost/libs/math/doc/equations/bessel14.svg deleted file mode 100644 index 96b066e2..00000000 --- a/boost/libs/math/doc/equations/bessel14.svg +++ /dev/null @@ -1,2 +0,0 @@ - -γ=p−fμq \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel15.mml b/boost/libs/math/doc/equations/bessel15.mml deleted file mode 100644 index c2ed527e..00000000 --- a/boost/libs/math/doc/equations/bessel15.mml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - Y - - - μ - - - - - = - − - - - ∑ - - - k - = - 0 - - - ∞ - - - - - c - - - k - - - - - g - - - k - - - - - - - - - - - - - - Y - - - μ - + - 1 - - - - - = - − - - - 2 - - - x - - - - - ∑ - - - k - = - 0 - - - ∞ - - - - - c - - - k - - - - - h - - - k - - - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel15.png b/boost/libs/math/doc/equations/bessel15.png deleted file mode 100644 index fcb118a4..00000000 Binary files a/boost/libs/math/doc/equations/bessel15.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel15.svg b/boost/libs/math/doc/equations/bessel15.svg deleted file mode 100644 index a69f57e9..00000000 --- a/boost/libs/math/doc/equations/bessel15.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Yμ=−∑k=0∞ckgkYμ+1=−2x∑k=0∞ckhk \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel16.mml b/boost/libs/math/doc/equations/bessel16.mml deleted file mode 100644 index b324fb23..00000000 --- a/boost/libs/math/doc/equations/bessel16.mml +++ /dev/null @@ -1 +0,0 @@ - ck = 1 k! −x2 4 k \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel16.png b/boost/libs/math/doc/equations/bessel16.png deleted file mode 100644 index eb204a55..00000000 Binary files a/boost/libs/math/doc/equations/bessel16.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel16.svg b/boost/libs/math/doc/equations/bessel16.svg deleted file mode 100644 index bd5f3644..00000000 --- a/boost/libs/math/doc/equations/bessel16.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ck=1k!(−x24)k \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel2.mml b/boost/libs/math/doc/equations/bessel2.mml deleted file mode 100644 index 07563a97..00000000 --- a/boost/libs/math/doc/equations/bessel2.mml +++ /dev/null @@ -1 +0,0 @@ - Jν(z) = 12zν ∑k=0∞ (−14z2)kk!Γ(ν + k + 1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel2.png b/boost/libs/math/doc/equations/bessel2.png deleted file mode 100644 index 4676a822..00000000 Binary files a/boost/libs/math/doc/equations/bessel2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel2.svg b/boost/libs/math/doc/equations/bessel2.svg deleted file mode 100644 index 85b07320..00000000 --- a/boost/libs/math/doc/equations/bessel2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Jν(z)=(12z)ν∑k=0∞(−14z2)kk!Γ(ν+k+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel3.mml b/boost/libs/math/doc/equations/bessel3.mml deleted file mode 100644 index aaf2b997..00000000 --- a/boost/libs/math/doc/equations/bessel3.mml +++ /dev/null @@ -1 +0,0 @@ - Y ν(z) = Jν(z) cos(νπ) − J−ν(z) sin(νπ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel3.png b/boost/libs/math/doc/equations/bessel3.png deleted file mode 100644 index 40233a31..00000000 Binary files a/boost/libs/math/doc/equations/bessel3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel3.svg b/boost/libs/math/doc/equations/bessel3.svg deleted file mode 100644 index 35f57a2b..00000000 --- a/boost/libs/math/doc/equations/bessel3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Yν(z)=Jν(z)cos(νπ)−J−ν(z)sin(νπ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel4.mml b/boost/libs/math/doc/equations/bessel4.mml deleted file mode 100644 index 5236dd3d..00000000 --- a/boost/libs/math/doc/equations/bessel4.mml +++ /dev/null @@ -1 +0,0 @@ - Jν+1(z) = 2ν z Jν(z) − Jν−1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel4.png b/boost/libs/math/doc/equations/bessel4.png deleted file mode 100644 index 80c65985..00000000 Binary files a/boost/libs/math/doc/equations/bessel4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel4.svg b/boost/libs/math/doc/equations/bessel4.svg deleted file mode 100644 index 42d1c272..00000000 --- a/boost/libs/math/doc/equations/bessel4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Jν+1(z)=2νzJν(z)−Jν−1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel5.mml b/boost/libs/math/doc/equations/bessel5.mml deleted file mode 100644 index d6356f07..00000000 --- a/boost/libs/math/doc/equations/bessel5.mml +++ /dev/null @@ -1 +0,0 @@ - Y ν+1(z) = 2ν z Y ν(z) − Y ν−1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel5.png b/boost/libs/math/doc/equations/bessel5.png deleted file mode 100644 index ee232d5b..00000000 Binary files a/boost/libs/math/doc/equations/bessel5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel5.svg b/boost/libs/math/doc/equations/bessel5.svg deleted file mode 100644 index 0c5d2017..00000000 --- a/boost/libs/math/doc/equations/bessel5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Yν+1(z)=2νzYν(z)−Yν−1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel6.mml b/boost/libs/math/doc/equations/bessel6.mml deleted file mode 100644 index 62aedf9e..00000000 --- a/boost/libs/math/doc/equations/bessel6.mml +++ /dev/null @@ -1 +0,0 @@ - Jν′(z) = ν zJν(z) − Jν+1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel6.png b/boost/libs/math/doc/equations/bessel6.png deleted file mode 100644 index 090b4204..00000000 Binary files a/boost/libs/math/doc/equations/bessel6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel6.svg b/boost/libs/math/doc/equations/bessel6.svg deleted file mode 100644 index 88a05a78..00000000 --- a/boost/libs/math/doc/equations/bessel6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Jν′(z)=νzJν(z)−Jν+1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel7.mml b/boost/libs/math/doc/equations/bessel7.mml deleted file mode 100644 index 484ad820..00000000 --- a/boost/libs/math/doc/equations/bessel7.mml +++ /dev/null @@ -1 +0,0 @@ - Y ν′(z) = ν zY ν(z) − Y ν+1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel7.png b/boost/libs/math/doc/equations/bessel7.png deleted file mode 100644 index baba46af..00000000 Binary files a/boost/libs/math/doc/equations/bessel7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel7.svg b/boost/libs/math/doc/equations/bessel7.svg deleted file mode 100644 index 0acb6f9c..00000000 --- a/boost/libs/math/doc/equations/bessel7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Yν′(z)=νzYν(z)−Yν+1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel8.mml b/boost/libs/math/doc/equations/bessel8.mml deleted file mode 100644 index 861350f5..00000000 --- a/boost/libs/math/doc/equations/bessel8.mml +++ /dev/null @@ -1 +0,0 @@ - W = Jν(z)Y ν′(z) − Y ν(z)Jν′(z) = Y ν(z)Jν+1(z) − Jν(z)Y ν+1(z) = 2 πz \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel8.png b/boost/libs/math/doc/equations/bessel8.png deleted file mode 100644 index 9f028ff3..00000000 Binary files a/boost/libs/math/doc/equations/bessel8.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel8.svg b/boost/libs/math/doc/equations/bessel8.svg deleted file mode 100644 index ffa660c9..00000000 --- a/boost/libs/math/doc/equations/bessel8.svg +++ /dev/null @@ -1,2 +0,0 @@ - -W=Jν(z)Yν′(z)−Yν(z)Jν′(z)=Yν(z)Jν+1(z)−Jν(z)Yν+1(z)=2πz \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel9.mml b/boost/libs/math/doc/equations/bessel9.mml deleted file mode 100644 index 06aef5b8..00000000 --- a/boost/libs/math/doc/equations/bessel9.mml +++ /dev/null @@ -1 +0,0 @@ - J−ν(z) = cos(νπ)Jν(z) − sin(νπ)Y ν(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel9.png b/boost/libs/math/doc/equations/bessel9.png deleted file mode 100644 index b06d1760..00000000 Binary files a/boost/libs/math/doc/equations/bessel9.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel9.svg b/boost/libs/math/doc/equations/bessel9.svg deleted file mode 100644 index 9049ce43..00000000 --- a/boost/libs/math/doc/equations/bessel9.svg +++ /dev/null @@ -1,2 +0,0 @@ - -J−ν(z)=cos(νπ)Jν(z)−sin(νπ)Yν(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel_derivatives1.mml b/boost/libs/math/doc/equations/bessel_derivatives1.mml deleted file mode 100644 index 0e093941..00000000 --- a/boost/libs/math/doc/equations/bessel_derivatives1.mml +++ /dev/null @@ -1,442 +0,0 @@ - - - - - - - - J - - ' - v - - - ( - - x - - ) - - - - - - - - = - - - - - - - - - - J - - - v - − - 1 - - - - - - ( - - x - - ) - - − - - J - - - v - + - 1 - - - - - - ( - - x - - ) - - - 2 - - - - - - - - - Y - - ' - v - - - ( - - x - - ) - - - - - - - - - = - - - - - - - - - - Y - - - v - − - 1 - - - - - - ( - - x - - ) - - − - - Y - - - v - + - 1 - - - - - - ( - - x - - ) - - - 2 - - - - - - - - - I - - ' - v - - - ( - - x - - ) - - - - - - - - - = - - - - - - - - - - I - - - v - − - 1 - - - - - - ( - - x - - ) - - + - - I - - - v - + - 1 - - - - - - ( - - x - - ) - - - 2 - - - - - - - - - K - - ' - v - - - ( - - x - - ) - - - - - - - - - = - - - - - - - - - - K - - - v - − - 1 - - - - - - ( - - x - - ) - - + - - K - - - v - + - 1 - - - - - - ( - - x - - ) - - - - − - 2 - - - - - - - - - - j - - ' - n - - - - - - - - - = - - - - - - - - - - - n - x - - - - - j - n - - - - ( - - x - - ) - - − - - j - - - n - + - 1 - - - - - - ( - - x - - ) - - - - - - - - - - y - - ' - n - - - - - - - - - = - - - - - - - - - - - n - x - - - - - y - n - - - - ( - - x - - ) - - − - - y - - - n - + - 1 - - - - - - ( - - x - - ) - - - - - - - - diff --git a/boost/libs/math/doc/equations/bessel_derivatives1.png b/boost/libs/math/doc/equations/bessel_derivatives1.png deleted file mode 100644 index 39f831bd..00000000 Binary files a/boost/libs/math/doc/equations/bessel_derivatives1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel_derivatives1.svg b/boost/libs/math/doc/equations/bessel_derivatives1.svg deleted file mode 100644 index 28838917..00000000 --- a/boost/libs/math/doc/equations/bessel_derivatives1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -J'v(x)=Jv−1(x)−Jv+1(x)2Y'v(x)=Yv−1(x)−Yv+1(x)2I'v(x)=Iv−1(x)+Iv+1(x)2K'v(x)=Kv−1(x)+Kv+1(x)−2j'n=(nx)jn(x)−jn+1(x)y'n=(nx)yn(x)−yn+1(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel_derivatives2.mml b/boost/libs/math/doc/equations/bessel_derivatives2.mml deleted file mode 100644 index 33efa3a0..00000000 --- a/boost/libs/math/doc/equations/bessel_derivatives2.mml +++ /dev/null @@ -1,69 +0,0 @@ - - - - ξ - - ' - v - - - - ( - - x - - ) - - = - - - 1 - 2 - - - - - ( - - - ξ - - - v - − - 1 - - - - - - ( - - x - - ) - - − - - ξ - - - v - + - 1 - - - - - - ( - - x - - ) - - - ) - - - diff --git a/boost/libs/math/doc/equations/bessel_derivatives2.png b/boost/libs/math/doc/equations/bessel_derivatives2.png deleted file mode 100644 index 248a1d3a..00000000 Binary files a/boost/libs/math/doc/equations/bessel_derivatives2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel_derivatives2.svg b/boost/libs/math/doc/equations/bessel_derivatives2.svg deleted file mode 100644 index c80743e2..00000000 --- a/boost/libs/math/doc/equations/bessel_derivatives2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ξ'v(x)=12(ξv−1(x)−ξv+1(x)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel_derivatives3.mml b/boost/libs/math/doc/equations/bessel_derivatives3.mml deleted file mode 100644 index 33efa3a0..00000000 --- a/boost/libs/math/doc/equations/bessel_derivatives3.mml +++ /dev/null @@ -1,69 +0,0 @@ - - - - ξ - - ' - v - - - - ( - - x - - ) - - = - - - 1 - 2 - - - - - ( - - - ξ - - - v - − - 1 - - - - - - ( - - x - - ) - - − - - ξ - - - v - + - 1 - - - - - - ( - - x - - ) - - - ) - - - diff --git a/boost/libs/math/doc/equations/bessel_derivatives3.png b/boost/libs/math/doc/equations/bessel_derivatives3.png deleted file mode 100644 index 248a1d3a..00000000 Binary files a/boost/libs/math/doc/equations/bessel_derivatives3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel_derivatives3.svg b/boost/libs/math/doc/equations/bessel_derivatives3.svg deleted file mode 100644 index c80743e2..00000000 --- a/boost/libs/math/doc/equations/bessel_derivatives3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ξ'v(x)=12(ξv−1(x)−ξv+1(x)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel_derivatives4.mml b/boost/libs/math/doc/equations/bessel_derivatives4.mml deleted file mode 100644 index d899f9fc..00000000 --- a/boost/libs/math/doc/equations/bessel_derivatives4.mml +++ /dev/null @@ -1,370 +0,0 @@ - - - - - - - - J - - ' - v - - - ( - - x - - ) - - - - - - = - - - - - - N - v - - cos - - ϕ - v - - - - - - - - Y - - ' - v - - - ( - - x - - ) - - - - - - = - - - - - - N - v - - sin - - ϕ - v - - - - - - - - - N - v - 2 - - - - - - - - ≈ - - - - - - - - - 2 - - π - x - - - - - - - 1 - − - - - 1 - 2 - - - - - - - - μ - − - 3 - - - - - - ( - - 2x - - ) - - 2 - - - - − - - - 1 - 8 - - - - - - - ( - - - μ - − - 1 - - - ) - - - ( - - - μ - − - 45 - - - ) - - - - - - - ( - - 2x - - ) - - 4 - - - - - - - - - - - - - - - ϕ - v - - - - - - - - - ≈ - - - - - - - - - x - − - - ( - - - 1 - 2 - - - v - − - - 1 - 4 - - - - ) - - - - - - π - + - - - - μ - + - 3 - - - - 2 - - ( - - 4x - - ) - - - - - + - - - - - μ - 2 - - + - 46 - - - μ - − - 63 - - - - 6 - - - ( - - 4x - - ) - - 3 - - - - - + - - - - - μ - 3 - - + - 185 - - - - μ - 2 - - − - 2053 - - - μ - + - 1899 - - - - 5 - - - ( - - 4x - - ) - - 5 - - - - - - - - - - - - - μ - - - - - - - - = - - - - - - - - - 4v - 2 - - - - - - - - diff --git a/boost/libs/math/doc/equations/bessel_derivatives4.png b/boost/libs/math/doc/equations/bessel_derivatives4.png deleted file mode 100644 index c00be4a2..00000000 Binary files a/boost/libs/math/doc/equations/bessel_derivatives4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel_derivatives4.svg b/boost/libs/math/doc/equations/bessel_derivatives4.svg deleted file mode 100644 index 882aa4d5..00000000 --- a/boost/libs/math/doc/equations/bessel_derivatives4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -J'v(x)=NvcosϕvY'v(x)=NvsinϕvNv2≈2πx{1−12μ−3(2x)2−18(μ−1)(μ−45)(2x)4}ϕv≈x−(12v−14)π+μ+32(4x)+μ2+46μ−636(4x)3+μ3+185μ2−2053μ+18995(4x)5μ=4v2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel_derivatives5.mml b/boost/libs/math/doc/equations/bessel_derivatives5.mml deleted file mode 100644 index 3e5a64de..00000000 --- a/boost/libs/math/doc/equations/bessel_derivatives5.mml +++ /dev/null @@ -1,396 +0,0 @@ - - - - - - - - J - - ' - v - - - ( - - z - - ) - - - - - - - - = - - - - - - - - - z - - - v - − - 1 - - - - - - 2 - v - - - - - - ∑ - - - k - = - 0 - - - - ∞ - - - - - - - - - - − - - - - z - 2 - - 4 - - - - - - k - - - ( - - - v - + - 2k - - - ) - - - - k - ! - Γ - - ( - - - - 1 - + - k - - + - v - - - ) - - - - - - - - - - - - - Y - - ' - v - - - ( - - x - - ) - - - - - - - - - = - - - - - - - - - - - - − - - - - Γ - - ( - - - − - v - - - ) - - cos - - ( - - v - π - - ) - - - π - - - - × - - - - z - - - v - − - 1 - - - - - 2 - v - - - - - × - - - ∑ - - - k - = - 0 - - - - ∞ - - - - - - - - - - − - - - - z - 2 - - 4 - - - - - - k - - - ( - - - v - + - 2k - - - ) - - - - - - ( - - - v - + - 1 - - - ) - - k - - k - ! - - - - - - − - - - - - Γ - - ( - - v - - ) - - - π - - × - - - - 2 - v - - - - z - - - v - + - 1 - - - - - - - - × - - - ∑ - - - k - = - 0 - - - - ∞ - - - - - - - - - - − - - - - z - 2 - - 4 - - - - - - k - - - ( - - - 2k - − - v - - - ) - - - - - - ( - - - 1 - − - v - - - ) - - k - - k - ! - - - - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/bessel_derivatives5.png b/boost/libs/math/doc/equations/bessel_derivatives5.png deleted file mode 100644 index b24bbc82..00000000 Binary files a/boost/libs/math/doc/equations/bessel_derivatives5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel_derivatives5.svg b/boost/libs/math/doc/equations/bessel_derivatives5.svg deleted file mode 100644 index 5451e900..00000000 --- a/boost/libs/math/doc/equations/bessel_derivatives5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -J'v(z)=zv−12v∑k=0∞(−z24)k(v+2k)k!Γ(1+k+v)Y'v(x)=−Γ(−v)cos(vπ)π×zv−12v×∑k=0∞(−z24)k(v+2k)(v+1)kk!−Γ(v)π×2vzv+1×∑k=0∞(−z24)k(2k−v)(1−v)kk! \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel_y0_small_z.mml b/boost/libs/math/doc/equations/bessel_y0_small_z.mml deleted file mode 100644 index 95668e42..00000000 --- a/boost/libs/math/doc/equations/bessel_y0_small_z.mml +++ /dev/null @@ -1,52 +0,0 @@ - -]> - -bessel_y0_small_z - - - - - - - Y - 0 - - - - z - - - - = - - - 2 - π - - - - log - - - - z - 2 - - - - + - γ - - - - ; - - z - < - ε - - - - diff --git a/boost/libs/math/doc/equations/bessel_y0_small_z.png b/boost/libs/math/doc/equations/bessel_y0_small_z.png deleted file mode 100644 index 0d369754..00000000 Binary files a/boost/libs/math/doc/equations/bessel_y0_small_z.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel_y0_small_z.svg b/boost/libs/math/doc/equations/bessel_y0_small_z.svg deleted file mode 100644 index 62fe97a6..00000000 --- a/boost/libs/math/doc/equations/bessel_y0_small_z.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Y0(z)=2π(log(z2)+γ);z<ε \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel_y1_small_z.mml b/boost/libs/math/doc/equations/bessel_y1_small_z.mml deleted file mode 100644 index 36fb4378..00000000 --- a/boost/libs/math/doc/equations/bessel_y1_small_z.mml +++ /dev/null @@ -1,70 +0,0 @@ - -]> - -bessel_y1_small_z - - - - - - - Y - 1 - - - - z - - - - = - - - z - π - - log - - - - z - 2 - - - - − - - 2 - - π - z - - - − - - z - - 2 - π - - - - - 1 - − - 2 - γ - - - - ; - - z - < - ε - - - - diff --git a/boost/libs/math/doc/equations/bessel_y1_small_z.png b/boost/libs/math/doc/equations/bessel_y1_small_z.png deleted file mode 100644 index 27003a01..00000000 Binary files a/boost/libs/math/doc/equations/bessel_y1_small_z.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel_y1_small_z.svg b/boost/libs/math/doc/equations/bessel_y1_small_z.svg deleted file mode 100644 index 8647e557..00000000 --- a/boost/libs/math/doc/equations/bessel_y1_small_z.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Y1(z)=zπlog(z2)−2πz−z2π(1−2γ);z<ε \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel_y2_small_z.mml b/boost/libs/math/doc/equations/bessel_y2_small_z.mml deleted file mode 100644 index 6e1fae14..00000000 --- a/boost/libs/math/doc/equations/bessel_y2_small_z.mml +++ /dev/null @@ -1,81 +0,0 @@ - -]> - -bessel_y2_small_z - - - - - - - Y - 2 - - - = - - − - - - z - 2 - - - 8 - π - - - - - - 3 - 2 - - − - 2 - γ - - - − - - 4 - - π - - z - 2 - - - - + - - - z - 2 - - - 4 - π - - - log - - - - z - 2 - - - - - ; - - z - < - ε - - - - diff --git a/boost/libs/math/doc/equations/bessel_y2_small_z.png b/boost/libs/math/doc/equations/bessel_y2_small_z.png deleted file mode 100644 index c14d6b2a..00000000 Binary files a/boost/libs/math/doc/equations/bessel_y2_small_z.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel_y2_small_z.svg b/boost/libs/math/doc/equations/bessel_y2_small_z.svg deleted file mode 100644 index 5f78563c..00000000 --- a/boost/libs/math/doc/equations/bessel_y2_small_z.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Y2=−z28π(32−2γ)−4πz2+z24πlog(z2);z<ε \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel_yn_small_z.mml b/boost/libs/math/doc/equations/bessel_yn_small_z.mml deleted file mode 100644 index 6d9aeea7..00000000 --- a/boost/libs/math/doc/equations/bessel_yn_small_z.mml +++ /dev/null @@ -1,64 +0,0 @@ - -]> - -bessel_yn_small_z - - - - - - - Y - n - - - - z - - - - = - - − - - - n - − - 1 - - - - ! - π - - - - - - z - 2 - - - - - − - n - - - - ; - z - < - ε - - ∧ - - n - > - 2 - - - - diff --git a/boost/libs/math/doc/equations/bessel_yn_small_z.png b/boost/libs/math/doc/equations/bessel_yn_small_z.png deleted file mode 100644 index f07b74e8..00000000 Binary files a/boost/libs/math/doc/equations/bessel_yn_small_z.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel_yn_small_z.svg b/boost/libs/math/doc/equations/bessel_yn_small_z.svg deleted file mode 100644 index 2174a1db..00000000 --- a/boost/libs/math/doc/equations/bessel_yn_small_z.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Yn(z)=−(n−1)!π(z2)−n;z<ε∧n>2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/bessel_yv_small_z.mml b/boost/libs/math/doc/equations/bessel_yv_small_z.mml deleted file mode 100644 index 8ac38b12..00000000 --- a/boost/libs/math/doc/equations/bessel_yv_small_z.mml +++ /dev/null @@ -1,171 +0,0 @@ - -]> - -bessel_yv_small_z - - - - - - - Y - v - - - - z - - - - = - - − - - - Γ - - - v - - - - π - - - ∑ - - k - = - 0 - - ∞ - - - - - - - − - 1 - - - k - - - - - - z - 2 - - - - - 2 - k - − - v - - - - - - - - 1 - − - v - - - k - - k - ! - - - - − - - - - Γ - - - − - v - - - cos - - - v - π - - - - π - - - ∑ - - k - = - 0 - - ∞ - - - - - - - − - 1 - - - k - - - - - - z - 2 - - - - - 2 - k - + - v - - - - - - - - v - + - 1 - - - k - - k - ! - - - - ; - - v - ∉ - ℤ - - - - diff --git a/boost/libs/math/doc/equations/bessel_yv_small_z.png b/boost/libs/math/doc/equations/bessel_yv_small_z.png deleted file mode 100644 index 3e17e397..00000000 Binary files a/boost/libs/math/doc/equations/bessel_yv_small_z.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/bessel_yv_small_z.svg b/boost/libs/math/doc/equations/bessel_yv_small_z.svg deleted file mode 100644 index 310a4e2b..00000000 --- a/boost/libs/math/doc/equations/bessel_yv_small_z.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Yv(z)=−Γ(v)π∑k=0∞(−1)k(z2)2k−v(1−v)kk!−Γ(−v)cos(vπ)π∑k=0∞(−1)k(z2)2k+v(v+1)kk!;v∉ℤ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/beta1.mml b/boost/libs/math/doc/equations/beta1.mml deleted file mode 100644 index ca8c9c5d..00000000 --- a/boost/libs/math/doc/equations/beta1.mml +++ /dev/null @@ -1,49 +0,0 @@ - - - beta - - - a - , - b - - - = - B - - - a - , - b - - - = - - - Γ - - - a - - - Γ - - - b - - - - - Γ - - - a - + - b - - - - - - - diff --git a/boost/libs/math/doc/equations/beta1.png b/boost/libs/math/doc/equations/beta1.png deleted file mode 100644 index 67a26b1b..00000000 Binary files a/boost/libs/math/doc/equations/beta1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/beta1.svg b/boost/libs/math/doc/equations/beta1.svg deleted file mode 100644 index 888512b0..00000000 --- a/boost/libs/math/doc/equations/beta1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -beta(a,b)=B(a,b)=Γ(a)Γ(b)Γ(a+b) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/beta1.svg.svg b/boost/libs/math/doc/equations/beta1.svg.svg deleted file mode 100644 index 877ea89c..00000000 --- a/boost/libs/math/doc/equations/beta1.svg.svg +++ /dev/null @@ -1,2 +0,0 @@ - -beta(a,b)=B(a,b)=Γ(a)Γ(b)Γ(a+b) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/beta2.mml b/boost/libs/math/doc/equations/beta2.mml deleted file mode 100644 index 553dc793..00000000 --- a/boost/libs/math/doc/equations/beta2.mml +++ /dev/null @@ -1,106 +0,0 @@ - - - beta - - - a - , - b - - - = - - - - - - a - + - g - − - 0.5 - - - a - + - b - + - g - − - 0.5 - - - - - - a - − - 0.5 - - - - - - - - b - + - g - − - 0.5 - - - a - + - b - + - g - − - 0.5 - - - - - b - - - - - e - - b - + - g - − - 0.5 - - - - - - - L - - - a - - - L - - - b - - - - - L - - - c - - - - - - - diff --git a/boost/libs/math/doc/equations/beta2.png b/boost/libs/math/doc/equations/beta2.png deleted file mode 100644 index a5bb3a4e..00000000 Binary files a/boost/libs/math/doc/equations/beta2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/beta2.svg b/boost/libs/math/doc/equations/beta2.svg deleted file mode 100644 index 5a4de968..00000000 --- a/boost/libs/math/doc/equations/beta2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -beta(a,b)=(a+g−0.5a+b+g−0.5)a−0.5(b+g−0.5a+b+g−0.5)beb+g−0.5L(a)L(b)L(c) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/beta3.mml b/boost/libs/math/doc/equations/beta3.mml deleted file mode 100644 index 30b7935c..00000000 --- a/boost/libs/math/doc/equations/beta3.mml +++ /dev/null @@ -1,128 +0,0 @@ - - - beta - - - a - , - b - - - = - - - - - - a - + - g - − - 0.5 - - - a - + - b - + - g - − - 0.5 - - - - - - a - − - b - − - 0.5 - - - - - - - - - - a - + - g - − - 0.5 - - - - - b - + - g - − - 0.5 - - - - - - - - a - + - b - + - g - − - 0.5 - - - 2 - - - - - - b - - - - - e - - b - + - g - − - 0.5 - - - - - - - L - - - a - - - L - - - b - - - - - L - - - c - - - - - - - diff --git a/boost/libs/math/doc/equations/beta3.png b/boost/libs/math/doc/equations/beta3.png deleted file mode 100644 index d9303c35..00000000 Binary files a/boost/libs/math/doc/equations/beta3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/beta3.svg b/boost/libs/math/doc/equations/beta3.svg deleted file mode 100644 index a8a3a68a..00000000 --- a/boost/libs/math/doc/equations/beta3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -beta(a,b)=(a+g−0.5a+b+g−0.5)a−b−0.5((a+g−0.5)(b+g−0.5)(a+b+g−0.5)2)beb+g−0.5L(a)L(b)L(c) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/beta4.mml b/boost/libs/math/doc/equations/beta4.mml deleted file mode 100644 index d3fe984f..00000000 --- a/boost/libs/math/doc/equations/beta4.mml +++ /dev/null @@ -1,34 +0,0 @@ - - - beta - - - a - , - b - - - = - - - - a - + - b - - - b - - beta - - - a - , - b - + - 1 - - - - - diff --git a/boost/libs/math/doc/equations/beta4.png b/boost/libs/math/doc/equations/beta4.png deleted file mode 100644 index 345e5534..00000000 Binary files a/boost/libs/math/doc/equations/beta4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/beta4.svg b/boost/libs/math/doc/equations/beta4.svg deleted file mode 100644 index 1b9b960c..00000000 --- a/boost/libs/math/doc/equations/beta4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -beta(a,b)=(a+b)bbeta(a,b+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/beta5.mml b/boost/libs/math/doc/equations/beta5.mml deleted file mode 100644 index bf290a38..00000000 --- a/boost/libs/math/doc/equations/beta5.mml +++ /dev/null @@ -1,49 +0,0 @@ - - - beta - - - a - , - b - - - = - - - - - a - + - b - - - - - a - + - b - + - 1 - - - - - a - b - - - beta - - - a - + - 1, - b - + - 1 - - - - - diff --git a/boost/libs/math/doc/equations/beta5.png b/boost/libs/math/doc/equations/beta5.png deleted file mode 100644 index 2cf092e7..00000000 Binary files a/boost/libs/math/doc/equations/beta5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/beta5.svg b/boost/libs/math/doc/equations/beta5.svg deleted file mode 100644 index 26958f9a..00000000 --- a/boost/libs/math/doc/equations/beta5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -beta(a,b)=(a+b)(a+b+1)abbeta(a+1,b+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/beta6.mml b/boost/libs/math/doc/equations/beta6.mml deleted file mode 100644 index f1a7c27e..00000000 --- a/boost/libs/math/doc/equations/beta6.mml +++ /dev/null @@ -1,48 +0,0 @@ - - - i - f - - a - ≫ - b - - a - n - d - - a - + - b - = - a - - - t - h - e - n - : - - - b - e - t - a - - - a - , - b - - - = - Γ - - - b - - - - - diff --git a/boost/libs/math/doc/equations/beta6.png b/boost/libs/math/doc/equations/beta6.png deleted file mode 100644 index 615ff006..00000000 Binary files a/boost/libs/math/doc/equations/beta6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/beta6.svg b/boost/libs/math/doc/equations/beta6.svg deleted file mode 100644 index 92dfd791..00000000 --- a/boost/libs/math/doc/equations/beta6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ifa≫banda+b=athen:beta(a,b)=Γ(b) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/beta7.mml b/boost/libs/math/doc/equations/beta7.mml deleted file mode 100644 index 854360c3..00000000 --- a/boost/libs/math/doc/equations/beta7.mml +++ /dev/null @@ -1,28 +0,0 @@ - - - if - - a - = - 1 - - - then: - - - beta - - - a - , - b - - - = - - 1 - b - - - - diff --git a/boost/libs/math/doc/equations/beta7.png b/boost/libs/math/doc/equations/beta7.png deleted file mode 100644 index 63a07061..00000000 Binary files a/boost/libs/math/doc/equations/beta7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/beta7.svg b/boost/libs/math/doc/equations/beta7.svg deleted file mode 100644 index 1ee0c758..00000000 --- a/boost/libs/math/doc/equations/beta7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ifa=1then:beta(a,b)=1b \ No newline at end of file diff --git a/boost/libs/math/doc/equations/beta8.mml b/boost/libs/math/doc/equations/beta8.mml deleted file mode 100644 index 288ef124..00000000 --- a/boost/libs/math/doc/equations/beta8.mml +++ /dev/null @@ -1,52 +0,0 @@ - - - - e - - l - c - − - l - a - − - l - b - - - - - - - - l - a - - - l - c - - - - - a - - - - - - - l - b - - - l - c - - - - - b - - - - diff --git a/boost/libs/math/doc/equations/beta8.png b/boost/libs/math/doc/equations/beta8.png deleted file mode 100644 index ca8e0fd3..00000000 Binary files a/boost/libs/math/doc/equations/beta8.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/beta8.svg b/boost/libs/math/doc/equations/beta8.svg deleted file mode 100644 index 2f78d20f..00000000 --- a/boost/libs/math/doc/equations/beta8.svg +++ /dev/null @@ -1,2 +0,0 @@ - -elc−la−lb(lalc)a(lblc)b \ No newline at end of file diff --git a/boost/libs/math/doc/equations/beta_dist_kurtosis.mml b/boost/libs/math/doc/equations/beta_dist_kurtosis.mml deleted file mode 100644 index 42e2a32b..00000000 --- a/boost/libs/math/doc/equations/beta_dist_kurtosis.mml +++ /dev/null @@ -1,72 +0,0 @@ - - - 6 - - - - α - 3 - - − - - α - 2 - - - - 2 - β - − - 1 - - - + - - β - 2 - - - - β - − - 1 - - - − - 2 - α - β - - - β - + - 2 - - - - - α - β - - - α - + - β - + - 2 - - - - - α - + - β - + - 3 - - - - - - - diff --git a/boost/libs/math/doc/equations/beta_dist_kurtosis.png b/boost/libs/math/doc/equations/beta_dist_kurtosis.png deleted file mode 100644 index 0e83cdd3..00000000 Binary files a/boost/libs/math/doc/equations/beta_dist_kurtosis.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/beta_dist_kurtosis.svg b/boost/libs/math/doc/equations/beta_dist_kurtosis.svg deleted file mode 100644 index 2cb783ed..00000000 --- a/boost/libs/math/doc/equations/beta_dist_kurtosis.svg +++ /dev/null @@ -1,2 +0,0 @@ - -6α3−α2(2β−1)+β2(β−1)−2αβ(β+2)αβ(α+β+2)(α+β+3) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/binomial_ref1.mml b/boost/libs/math/doc/equations/binomial_ref1.mml deleted file mode 100644 index e4798f0b..00000000 --- a/boost/libs/math/doc/equations/binomial_ref1.mml +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - f - - - k - ; - n - , - p - - - - - = - - - - - n - - - C - k - - - p - k - - - - - 1 - − - p - - - - n - − - k - - - - - - - - - - = - - - - - n - ! - - - k - ! - - - n - − - k - - - ! - - - - p - k - - - - - 1 - − - p - - - - n - − - k - - - - - - - - - - = - - - - - Γ - - - n - + - 1 - - - - - Γ - - - k - + - 1 - - - Γ - - - n - − - k - + - 1 - - - - - - p - k - - - - - 1 - − - p - - - - n - − - k - - - - - - - - - - = - - - - - - p - k - - - - - 1 - − - p - - - - n - − - k - - - - - B - - - k - + - 1, - n - − - k - + - 1 - - - - - n - + - 1 - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/binomial_ref1.png b/boost/libs/math/doc/equations/binomial_ref1.png deleted file mode 100644 index 78130bd4..00000000 Binary files a/boost/libs/math/doc/equations/binomial_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/binomial_ref1.svg b/boost/libs/math/doc/equations/binomial_ref1.svg deleted file mode 100644 index ee348ae6..00000000 --- a/boost/libs/math/doc/equations/binomial_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(k;n,p)=nCkpk(1−p)n−k=n!k!(n−k)!pk(1−p)n−k=Γ(n+1)Γ(k+1)Γ(n−k+1)pk(1−p)n−k=pk(1−p)n−kB(k+1,n−k+1)(n+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/binomial_ref2.mml b/boost/libs/math/doc/equations/binomial_ref2.mml deleted file mode 100644 index fce986c6..00000000 --- a/boost/libs/math/doc/equations/binomial_ref2.mml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - f - - - k - ; - n - , - p - - - - - = - - - - - n - - - C - k - - - p - k - - - - - 1 - − - p - - - - n - − - k - - - - - - - - - - = - - - - - n - ! - - - k - ! - - - n - − - k - - - ! - - - - p - k - - - - - 1 - − - p - - - - n - − - k - - - - - - - - diff --git a/boost/libs/math/doc/equations/binomial_ref2.png b/boost/libs/math/doc/equations/binomial_ref2.png deleted file mode 100644 index 78b85735..00000000 Binary files a/boost/libs/math/doc/equations/binomial_ref2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/binomial_ref2.svg b/boost/libs/math/doc/equations/binomial_ref2.svg deleted file mode 100644 index aed0cd17..00000000 --- a/boost/libs/math/doc/equations/binomial_ref2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(k;n,p)=nCkpk(1−p)n−k=n!k!(n−k)!pk(1−p)n−k \ No newline at end of file diff --git a/boost/libs/math/doc/equations/cauchy_ref1.mml b/boost/libs/math/doc/equations/cauchy_ref1.mml deleted file mode 100644 index a8c68ca7..00000000 --- a/boost/libs/math/doc/equations/cauchy_ref1.mml +++ /dev/null @@ -1,51 +0,0 @@ - - - f - - - x - ; - - x - 0, - - γ - - - - = - - - 1 - π - - - - - γ - - - - - x - − - - x - 0 - - - - 2 - - + - - γ - 2 - - - - - - - - diff --git a/boost/libs/math/doc/equations/cauchy_ref1.png b/boost/libs/math/doc/equations/cauchy_ref1.png deleted file mode 100644 index 8f19e176..00000000 Binary files a/boost/libs/math/doc/equations/cauchy_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/cauchy_ref1.svg b/boost/libs/math/doc/equations/cauchy_ref1.svg deleted file mode 100644 index 6bf7cf8a..00000000 --- a/boost/libs/math/doc/equations/cauchy_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x;x0,γ)=1π(γ(x−x0)2+γ2) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/chf.mml b/boost/libs/math/doc/equations/chf.mml deleted file mode 100644 index b848bbe9..00000000 --- a/boost/libs/math/doc/equations/chf.mml +++ /dev/null @@ -1,44 +0,0 @@ - - - chf - - - d - i - s - t - , - x - - - - = - - H - - - x - - - - = - - - ∫ - - − - ∞ - - x - - h - - - μ - - - d - μ - - - diff --git a/boost/libs/math/doc/equations/chf.png b/boost/libs/math/doc/equations/chf.png deleted file mode 100644 index f2c2b0ae..00000000 Binary files a/boost/libs/math/doc/equations/chf.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/chf.svg b/boost/libs/math/doc/equations/chf.svg deleted file mode 100644 index 8bb1c5c3..00000000 --- a/boost/libs/math/doc/equations/chf.svg +++ /dev/null @@ -1,2 +0,0 @@ - -chf(dist,x)=H(x)=∫−∞xh(μ)dμ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/chi_squ_ref1.mml b/boost/libs/math/doc/equations/chi_squ_ref1.mml deleted file mode 100644 index d10a98cf..00000000 --- a/boost/libs/math/doc/equations/chi_squ_ref1.mml +++ /dev/null @@ -1,44 +0,0 @@ - - - Q - - = - - - ∑ - - i - = - 1 - - ν - - - - - - - - χ - i - - − - - ν - i - - - - - σ - i - - - - - - 2 - - - - diff --git a/boost/libs/math/doc/equations/chi_squ_ref1.png b/boost/libs/math/doc/equations/chi_squ_ref1.png deleted file mode 100644 index a6ae4933..00000000 Binary files a/boost/libs/math/doc/equations/chi_squ_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/chi_squ_ref1.svg b/boost/libs/math/doc/equations/chi_squ_ref1.svg deleted file mode 100644 index b335afe3..00000000 --- a/boost/libs/math/doc/equations/chi_squ_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Q=∑i=1ν(χi−νiσi)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/chi_squ_tut1.mml b/boost/libs/math/doc/equations/chi_squ_tut1.mml deleted file mode 100644 index 2c379083..00000000 --- a/boost/libs/math/doc/equations/chi_squ_tut1.mml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - N - − - 1 - - - - s - 2 - - - - - χ - - - - - α - 2, - - N - − - 1 - - - - 2 - - - - - - - ≤ - - σ - - ≤ - - - - - - - - N - − - 1 - - - - s - 2 - - - - - χ - - - - 1 - − - - α - 2, - - N - − - 1 - - - - 2 - - - - - - - - diff --git a/boost/libs/math/doc/equations/chi_squ_tut1.png b/boost/libs/math/doc/equations/chi_squ_tut1.png deleted file mode 100644 index 0d3793d8..00000000 Binary files a/boost/libs/math/doc/equations/chi_squ_tut1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/chi_squ_tut1.svg b/boost/libs/math/doc/equations/chi_squ_tut1.svg deleted file mode 100644 index 388ec4d6..00000000 --- a/boost/libs/math/doc/equations/chi_squ_tut1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -(N−1)s2χ(α2,N−1)2≤σ≤(N−1)s2χ(1−α2,N−1)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/chi_squ_tut2.mml b/boost/libs/math/doc/equations/chi_squ_tut2.mml deleted file mode 100644 index 166e6f83..00000000 --- a/boost/libs/math/doc/equations/chi_squ_tut2.mml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - χ - - - - - α - 2, - - N - − - 1 - - - - 2 - - - - - diff --git a/boost/libs/math/doc/equations/chi_squ_tut2.png b/boost/libs/math/doc/equations/chi_squ_tut2.png deleted file mode 100644 index 2e058420..00000000 Binary files a/boost/libs/math/doc/equations/chi_squ_tut2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/chi_squ_tut2.svg b/boost/libs/math/doc/equations/chi_squ_tut2.svg deleted file mode 100644 index 6786e446..00000000 --- a/boost/libs/math/doc/equations/chi_squ_tut2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -χ(α2,N−1)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/chi_squ_tut3.mml b/boost/libs/math/doc/equations/chi_squ_tut3.mml deleted file mode 100644 index 562d7a25..00000000 --- a/boost/libs/math/doc/equations/chi_squ_tut3.mml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - χ - - - - 1 - − - - α - 2, - - N - − - 1 - - - - 2 - - - - - diff --git a/boost/libs/math/doc/equations/chi_squ_tut3.png b/boost/libs/math/doc/equations/chi_squ_tut3.png deleted file mode 100644 index 62a3275d..00000000 Binary files a/boost/libs/math/doc/equations/chi_squ_tut3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/chi_squ_tut3.svg b/boost/libs/math/doc/equations/chi_squ_tut3.svg deleted file mode 100644 index 9077391b..00000000 --- a/boost/libs/math/doc/equations/chi_squ_tut3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -χ(1−α2,N−1)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/derivative1.mml b/boost/libs/math/doc/equations/derivative1.mml deleted file mode 100644 index d07677fd..00000000 --- a/boost/libs/math/doc/equations/derivative1.mml +++ /dev/null @@ -1,61 +0,0 @@ - - - gamma_p_derivative - - - a - , - x - - - - = - - - ∂ - - ∂ - x - - - P - - - a - , - x - - - - = - - - - - e - - − - x - - - - x - - a - − - 1 - - - - - Γ - - - a - - - - - - - diff --git a/boost/libs/math/doc/equations/derivative1.png b/boost/libs/math/doc/equations/derivative1.png deleted file mode 100644 index 486c43d4..00000000 Binary files a/boost/libs/math/doc/equations/derivative1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/derivative1.svg b/boost/libs/math/doc/equations/derivative1.svg deleted file mode 100644 index 6581972a..00000000 --- a/boost/libs/math/doc/equations/derivative1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -gamma_p_derivative(a,x)=∂∂xP(a,x)=e−xxa−1Γ(a) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/derivative2.mml b/boost/libs/math/doc/equations/derivative2.mml deleted file mode 100644 index 40f0f44d..00000000 --- a/boost/libs/math/doc/equations/derivative2.mml +++ /dev/null @@ -1,75 +0,0 @@ - - - ibeta_derivative - - - a - , - b - , - x - - - - = - - - ∂ - - ∂ - x - - - - I - x - - - - a - , - b - - - - = - - - - - - - 1 - − - x - - - - b - − - 1 - - - - x - - a - − - 1 - - - - - B - - - a - , - b - - - - - - - diff --git a/boost/libs/math/doc/equations/derivative2.png b/boost/libs/math/doc/equations/derivative2.png deleted file mode 100644 index d38e271f..00000000 Binary files a/boost/libs/math/doc/equations/derivative2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/derivative2.svg b/boost/libs/math/doc/equations/derivative2.svg deleted file mode 100644 index 336059f4..00000000 --- a/boost/libs/math/doc/equations/derivative2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ibeta_derivative(a,b,x)=∂∂xIx(a,b)=(1−x)b−1xa−1B(a,b) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/digamma1.mml b/boost/libs/math/doc/equations/digamma1.mml deleted file mode 100644 index 13c3ef69..00000000 --- a/boost/libs/math/doc/equations/digamma1.mml +++ /dev/null @@ -1,56 +0,0 @@ - - - ψ - - - x - - - - = - - - d - - d - x - - - ln - - - Γ - - - x - - - - - - = - - - - - Γ - ′ - - - - x - - - - - Γ - - - x - - - - - - - diff --git a/boost/libs/math/doc/equations/digamma1.png b/boost/libs/math/doc/equations/digamma1.png deleted file mode 100644 index 408c17be..00000000 Binary files a/boost/libs/math/doc/equations/digamma1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/digamma1.svg b/boost/libs/math/doc/equations/digamma1.svg deleted file mode 100644 index 5feb7f95..00000000 --- a/boost/libs/math/doc/equations/digamma1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(x)=ddxln(Γ(x))=Γ′(x)Γ(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/digamma2.mml b/boost/libs/math/doc/equations/digamma2.mml deleted file mode 100644 index f764615d..00000000 --- a/boost/libs/math/doc/equations/digamma2.mml +++ /dev/null @@ -1,60 +0,0 @@ - - - ψ - - - x - - - - = - - ln - - - x - - - + - - 1 - - 2 - x - - - − - - ∑ - - n - = - 1 - - ∞ - - - - - B - - 2 - n - - - - - 2 - n - - x - - 2 - n - - - - - - - diff --git a/boost/libs/math/doc/equations/digamma2.png b/boost/libs/math/doc/equations/digamma2.png deleted file mode 100644 index dd9b64a4..00000000 Binary files a/boost/libs/math/doc/equations/digamma2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/digamma2.svg b/boost/libs/math/doc/equations/digamma2.svg deleted file mode 100644 index 9b7ea8fd..00000000 --- a/boost/libs/math/doc/equations/digamma2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(x)=ln(x)+12x−∑n=1∞B2n2nx2n \ No newline at end of file diff --git a/boost/libs/math/doc/equations/digamma3.mml b/boost/libs/math/doc/equations/digamma3.mml deleted file mode 100644 index a1ca3802..00000000 --- a/boost/libs/math/doc/equations/digamma3.mml +++ /dev/null @@ -1,94 +0,0 @@ - - - ψ - - - x - - - - = - - - - z - − - - 1 - 2 - - - - x - + - g - − - - 1 - 2 - - - - + - ln - - - x - + - g - − - - 1 - 2 - - - - + - - - - P - ′ - - - - x - - - - - P - - - x - - - - - − - - - - Q - ′ - - - - x - - - - - Q - - - x - - - - - − - 1 - - - diff --git a/boost/libs/math/doc/equations/digamma3.png b/boost/libs/math/doc/equations/digamma3.png deleted file mode 100644 index 789e1021..00000000 Binary files a/boost/libs/math/doc/equations/digamma3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/digamma3.svg b/boost/libs/math/doc/equations/digamma3.svg deleted file mode 100644 index 0200e649..00000000 --- a/boost/libs/math/doc/equations/digamma3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(x)=z−12x+g−12+ln(x+g−12)+P′(x)P(x)−Q′(x)Q(x)−1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/digamma4.mml b/boost/libs/math/doc/equations/digamma4.mml deleted file mode 100644 index 16e22746..00000000 --- a/boost/libs/math/doc/equations/digamma4.mml +++ /dev/null @@ -1,47 +0,0 @@ - -]> - -digamma4 - - - - - - ψ - - - n - - - = - - ∑ - - k - = - 1 - - - n - − - 1 - - - - 1 - k - - − - γ - - ; - - n - ∈ - ℕ - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/digamma4.png b/boost/libs/math/doc/equations/digamma4.png deleted file mode 100644 index 5de4146f..00000000 Binary files a/boost/libs/math/doc/equations/digamma4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/digamma4.svg b/boost/libs/math/doc/equations/digamma4.svg deleted file mode 100644 index 05fac0af..00000000 --- a/boost/libs/math/doc/equations/digamma4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(n)=∑k=1n−11k−γ;n∈ℕ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/digamma5.mml b/boost/libs/math/doc/equations/digamma5.mml deleted file mode 100644 index ad6c9b31..00000000 --- a/boost/libs/math/doc/equations/digamma5.mml +++ /dev/null @@ -1,78 +0,0 @@ - -]> - -digamma5 - - - - - - ψ - - - - 1 - 2 - - − - n - - - = - - ∑ - - k - = - 1 - - - n - − - 1 - - - - 1 - k - - + - - ∑ - - k - = - n - - - 2 - n - − - 1 - - - - 2 - k - - − - log - - - 4 - - - − - γ - - ; - - n - ∈ - ℕ - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/digamma5.png b/boost/libs/math/doc/equations/digamma5.png deleted file mode 100644 index 79c42400..00000000 Binary files a/boost/libs/math/doc/equations/digamma5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/digamma5.svg b/boost/libs/math/doc/equations/digamma5.svg deleted file mode 100644 index 8509f882..00000000 --- a/boost/libs/math/doc/equations/digamma5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(12−n)=∑k=1n−11k+∑k=n2n−12k−log(4)−γ;n∈ℕ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/dist_tutorial1.mml b/boost/libs/math/doc/equations/dist_tutorial1.mml deleted file mode 100644 index 7145560e..00000000 --- a/boost/libs/math/doc/equations/dist_tutorial1.mml +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - t - - = - - - - Sm - - - 1 - - − - - Sm - 2 - - - - - s - p - - - - - 1 - - S n - 1 - - - + - - 1 - - S n - 2 - - - - - - - - - - - - s - p - - - = - - - - - - - - - Sn - 1 - - − - 1 - - - - Sd - - 1 - - 2 - - + - - - - Sn - 2 - - − - 1 - - - - Sd - - 2 - - 2 - - - - - Sn - 1 - - + - - Sn - 2 - - − - 2 - - - - - - - - - ν - - = - - - Sn - 1 - - + - - Sn - 2 - - − - 2 - - - - - - diff --git a/boost/libs/math/doc/equations/dist_tutorial1.png b/boost/libs/math/doc/equations/dist_tutorial1.png deleted file mode 100644 index b5b4fe3e..00000000 Binary files a/boost/libs/math/doc/equations/dist_tutorial1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/dist_tutorial1.svg b/boost/libs/math/doc/equations/dist_tutorial1.svg deleted file mode 100644 index 4c13d7b3..00000000 --- a/boost/libs/math/doc/equations/dist_tutorial1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -t=Sm1−Sm2sp1S n1+1S n2sp=(Sn1−1)Sd12+(Sn2−1)Sd22Sn1+Sn2−2ν=Sn1+Sn2−2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/dist_tutorial2.mml b/boost/libs/math/doc/equations/dist_tutorial2.mml deleted file mode 100644 index e7e3fef0..00000000 --- a/boost/libs/math/doc/equations/dist_tutorial2.mml +++ /dev/null @@ -1,55 +0,0 @@ - - - t - - = - - - - - Sm - 1 - - − - - Sm - 2 - - - - - - - - Sd - - 1 - - 2 - - - Sn - 1 - - - + - - - Sd - - 2 - - 2 - - - Sn - 2 - - - - - - - - - diff --git a/boost/libs/math/doc/equations/dist_tutorial2.png b/boost/libs/math/doc/equations/dist_tutorial2.png deleted file mode 100644 index 3266332b..00000000 Binary files a/boost/libs/math/doc/equations/dist_tutorial2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/dist_tutorial2.svg b/boost/libs/math/doc/equations/dist_tutorial2.svg deleted file mode 100644 index a3b2cd49..00000000 --- a/boost/libs/math/doc/equations/dist_tutorial2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -t=Sm1−Sm2Sd12Sn1+Sd22Sn2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/dist_tutorial3.mml b/boost/libs/math/doc/equations/dist_tutorial3.mml deleted file mode 100644 index 1a5efa23..00000000 --- a/boost/libs/math/doc/equations/dist_tutorial3.mml +++ /dev/null @@ -1,114 +0,0 @@ - - - ν - - = - - - - - - - - - Sd - - 1 - - 2 - - - Sn - 1 - - - + - - - Sd - - 2 - - 2 - - - Sn - 2 - - - - - 2 - - - - - - - - - - Sd - - 1 - - 2 - - - Sn - 1 - - - - - 2 - - - - - Sn - 1 - - − - 1 - - - - + - - - - - - - Sd - - 2 - - 2 - - - Sn - 2 - - - - - 2 - - - - - Sn - 2 - - − - 1 - - - - - - - - diff --git a/boost/libs/math/doc/equations/dist_tutorial3.png b/boost/libs/math/doc/equations/dist_tutorial3.png deleted file mode 100644 index 71b66171..00000000 Binary files a/boost/libs/math/doc/equations/dist_tutorial3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/dist_tutorial3.svg b/boost/libs/math/doc/equations/dist_tutorial3.svg deleted file mode 100644 index 6067e09e..00000000 --- a/boost/libs/math/doc/equations/dist_tutorial3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ν=(Sd12Sn1+Sd22Sn2)2(Sd12Sn1)2(Sn1−1)+(Sd22Sn2)2(Sn2−1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/dist_tutorial4.mml b/boost/libs/math/doc/equations/dist_tutorial4.mml deleted file mode 100644 index dce751d1..00000000 --- a/boost/libs/math/doc/equations/dist_tutorial4.mml +++ /dev/null @@ -1,32 +0,0 @@ - - - - Y - s - - ± - - t - - - - - α - 2, - - N - − - 1 - - - - - - s - - N - - - - - diff --git a/boost/libs/math/doc/equations/dist_tutorial4.png b/boost/libs/math/doc/equations/dist_tutorial4.png deleted file mode 100644 index 56ed38f4..00000000 Binary files a/boost/libs/math/doc/equations/dist_tutorial4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/dist_tutorial4.svg b/boost/libs/math/doc/equations/dist_tutorial4.svg deleted file mode 100644 index cdd9bafe..00000000 --- a/boost/libs/math/doc/equations/dist_tutorial4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ys±t(α2,N−1)sN \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint1.mml b/boost/libs/math/doc/equations/ellint1.mml deleted file mode 100644 index 386f8de6..00000000 --- a/boost/libs/math/doc/equations/ellint1.mml +++ /dev/null @@ -1 +0,0 @@ - ∫ R(t,s) dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint1.png b/boost/libs/math/doc/equations/ellint1.png deleted file mode 100644 index d64bb80c..00000000 Binary files a/boost/libs/math/doc/equations/ellint1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint1.svg b/boost/libs/math/doc/equations/ellint1.svg deleted file mode 100644 index 93ef606c..00000000 --- a/boost/libs/math/doc/equations/ellint1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -∫R(t,s)dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint10.mml b/boost/libs/math/doc/equations/ellint10.mml deleted file mode 100644 index 41a7061f..00000000 --- a/boost/libs/math/doc/equations/ellint10.mml +++ /dev/null @@ -1 +0,0 @@ - RD(x,y,z) = 3 2 ∫ 0∞[(t + x)(t + y)]−12 (t + z)−32 dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint10.png b/boost/libs/math/doc/equations/ellint10.png deleted file mode 100644 index b1d1a726..00000000 Binary files a/boost/libs/math/doc/equations/ellint10.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint10.svg b/boost/libs/math/doc/equations/ellint10.svg deleted file mode 100644 index 8c9141ac..00000000 --- a/boost/libs/math/doc/equations/ellint10.svg +++ /dev/null @@ -1,2 +0,0 @@ - -RD(x,y,z)=32∫0∞[(t+x)(t+y)]−12(t+z)−32dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint11.mml b/boost/libs/math/doc/equations/ellint11.mml deleted file mode 100644 index 1f665796..00000000 --- a/boost/libs/math/doc/equations/ellint11.mml +++ /dev/null @@ -1 +0,0 @@ - RJ(x,y,z,p) = 3 2 ∫ 0∞(t + p)−1[(t + x)(t + y)(t + z)]−12 dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint11.png b/boost/libs/math/doc/equations/ellint11.png deleted file mode 100644 index 429a6c1a..00000000 Binary files a/boost/libs/math/doc/equations/ellint11.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint11.svg b/boost/libs/math/doc/equations/ellint11.svg deleted file mode 100644 index 0864b1e1..00000000 --- a/boost/libs/math/doc/equations/ellint11.svg +++ /dev/null @@ -1,2 +0,0 @@ - -RJ(x,y,z,p)=32∫0∞(t+p)−1[(t+x)(t+y)(t+z)]−12dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint12.mml b/boost/libs/math/doc/equations/ellint12.mml deleted file mode 100644 index 07f9929c..00000000 --- a/boost/libs/math/doc/equations/ellint12.mml +++ /dev/null @@ -1 +0,0 @@ - RC(x,y) = 1 2 ∫ 0∞(t + x)−12 (t + y)−1dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint12.png b/boost/libs/math/doc/equations/ellint12.png deleted file mode 100644 index 41fec8ba..00000000 Binary files a/boost/libs/math/doc/equations/ellint12.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint12.svg b/boost/libs/math/doc/equations/ellint12.svg deleted file mode 100644 index efc69fcd..00000000 --- a/boost/libs/math/doc/equations/ellint12.svg +++ /dev/null @@ -1,2 +0,0 @@ - -RC(x,y)=12∫0∞(t+x)−12(t+y)−1dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint13.mml b/boost/libs/math/doc/equations/ellint13.mml deleted file mode 100644 index 0c14fb42..00000000 --- a/boost/libs/math/doc/equations/ellint13.mml +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - R - - - F - - - - ( - - x - , - y - , - z - - ) - - - - = - 2 - - - R - - - F - - - - ( - - x - + - λ - , - y - + - λ - , - z - + - λ - - ) - - - - - - - - - - - - = - - - R - - - F - - - - - - - x - + - λ - - - 4 - - - , - - - y - + - λ - - - 4 - - - , - - - z - + - λ - - - 4 - - - - - - - - - - - - - - λ - - - = - - - x - y - - - + - - - y - z - - - + - - - z - x - - - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint13.png b/boost/libs/math/doc/equations/ellint13.png deleted file mode 100644 index 4709f11d..00000000 Binary files a/boost/libs/math/doc/equations/ellint13.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint13.svg b/boost/libs/math/doc/equations/ellint13.svg deleted file mode 100644 index 6af1824a..00000000 --- a/boost/libs/math/doc/equations/ellint13.svg +++ /dev/null @@ -1,2 +0,0 @@ - -RF(x,y,z)=2RF(x+λ,y+λ,z+λ)=RF(x+λ4,y+λ4,z+λ4)λ=xy+yz+zx \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint14.mml b/boost/libs/math/doc/equations/ellint14.mml deleted file mode 100644 index 13ad3d9a..00000000 --- a/boost/libs/math/doc/equations/ellint14.mml +++ /dev/null @@ -1 +0,0 @@ -F(φ,k) = sin φRF (cos 2φ, 1 − k2 sin 2φ, 1) E(φ,k) = sin φRF (cos 2φ, 1 − k2 sin 2φ, 1) −1 3k2 sin 3φRD(cos 2φ, 1 − k2 sin 2φ, 1) Π(n,φ,k) = sin φRF (cos 2φ, 1 − k2 sin 2φ, 1) + 1 3n sin 3φRJ(cos 2φ, 1 − k2 sin 2φ, 1, 1 − n sin 2φ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint14.png b/boost/libs/math/doc/equations/ellint14.png deleted file mode 100644 index cc0c2a77..00000000 Binary files a/boost/libs/math/doc/equations/ellint14.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint14.svg b/boost/libs/math/doc/equations/ellint14.svg deleted file mode 100644 index c582d9ee..00000000 --- a/boost/libs/math/doc/equations/ellint14.svg +++ /dev/null @@ -1,2 +0,0 @@ - -F(φ,k)=sinφRF(cos2φ,1−k2sin2φ,1)E(φ,k)=sinφRF(cos2φ,1−k2sin2φ,1)−13k2sin3φRD(cos2φ,1−k2sin2φ,1)Π(n,φ,k)=sinφRF(cos2φ,1−k2sin2φ,1)+13nsin3φRJ(cos2φ,1−k2sin2φ,1,1−nsin2φ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint15.mml b/boost/libs/math/doc/equations/ellint15.mml deleted file mode 100644 index f860af1f..00000000 --- a/boost/libs/math/doc/equations/ellint15.mml +++ /dev/null @@ -1 +0,0 @@ - K(k) = RF (0, 1 − k2, 1) E(k) = RF (0, 1 − k2, 1) −1 3k2RD(0, 1 − k2, 1) Π(n,k) = RF (0, 1 − k2, 1) + 1 3nRJ(0, 1 − k2, 1, 1 − n) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint15.png b/boost/libs/math/doc/equations/ellint15.png deleted file mode 100644 index 1501ee14..00000000 Binary files a/boost/libs/math/doc/equations/ellint15.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint15.svg b/boost/libs/math/doc/equations/ellint15.svg deleted file mode 100644 index 00ce49f7..00000000 --- a/boost/libs/math/doc/equations/ellint15.svg +++ /dev/null @@ -1,2 +0,0 @@ - -K(k)=RF(0,1−k2,1)E(k)=RF(0,1−k2,1)−13k2RD(0,1−k2,1)Π(n,k)=RF(0,1−k2,1)+13nRJ(0,1−k2,1,1−n) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint16.mml b/boost/libs/math/doc/equations/ellint16.mml deleted file mode 100644 index 38516451..00000000 --- a/boost/libs/math/doc/equations/ellint16.mml +++ /dev/null @@ -1 +0,0 @@ - RF (x,x,x) = 1 x \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint16.png b/boost/libs/math/doc/equations/ellint16.png deleted file mode 100644 index 6ad10e6a..00000000 Binary files a/boost/libs/math/doc/equations/ellint16.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint16.svg b/boost/libs/math/doc/equations/ellint16.svg deleted file mode 100644 index d05ef262..00000000 --- a/boost/libs/math/doc/equations/ellint16.svg +++ /dev/null @@ -1,2 +0,0 @@ - -RF(x,x,x)=1x \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint17.mml b/boost/libs/math/doc/equations/ellint17.mml deleted file mode 100644 index 5dfe4776..00000000 --- a/boost/libs/math/doc/equations/ellint17.mml +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - - y - + - q - - - - R - J - - - - x - , - y - , - z - , - − - q - - - - = - - - - - - - - p - − - y - - - - R - J - - - - x - , - y - , - z - , - p - - - − - 3 - - R - F - - - - x - , - y - , - z - - - - - - - - - - - - + - 3 - - - - - - x - y - z - - - x - z - + - p - q - - - - - - - 1 - 2 - - - - - R - C - - - - x - z - + - p - q - , - p - q - - - - - - - - with: - q - > - 0 - - - and: - p - = - y - + - - - - - z - − - y - - - - - y - − - x - - - - - - y - + - q - - - - - - - - - diff --git a/boost/libs/math/doc/equations/ellint17.png b/boost/libs/math/doc/equations/ellint17.png deleted file mode 100644 index b82f3301..00000000 Binary files a/boost/libs/math/doc/equations/ellint17.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint17.svg b/boost/libs/math/doc/equations/ellint17.svg deleted file mode 100644 index 81279ce8..00000000 --- a/boost/libs/math/doc/equations/ellint17.svg +++ /dev/null @@ -1,2 +0,0 @@ - -(y+q)RJ(x,y,z,−q)=(p−y)RJ(x,y,z,p)−3RF(x,y,z)+3(xyzxz+pq)12RC(xz+pq,pq)with:q>0and:p=y+(z−y)(y−x)(y+q) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint18.mml b/boost/libs/math/doc/equations/ellint18.mml deleted file mode 100644 index d0092376..00000000 --- a/boost/libs/math/doc/equations/ellint18.mml +++ /dev/null @@ -1,53 +0,0 @@ - - - - R - C - - - - x - , - − - y - - - - = - - - - - - x - - x - + - y - - - - - - - 1 - 2 - - - - - R - C - - - - x - + - y - , - y - - - - - diff --git a/boost/libs/math/doc/equations/ellint18.png b/boost/libs/math/doc/equations/ellint18.png deleted file mode 100644 index f253144b..00000000 Binary files a/boost/libs/math/doc/equations/ellint18.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint18.svg b/boost/libs/math/doc/equations/ellint18.svg deleted file mode 100644 index 63e90f5b..00000000 --- a/boost/libs/math/doc/equations/ellint18.svg +++ /dev/null @@ -1,2 +0,0 @@ - -RC(x,−y)=(xx+y)12RC(x+y,y) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint19.mml b/boost/libs/math/doc/equations/ellint19.mml deleted file mode 100644 index a109ab48..00000000 --- a/boost/libs/math/doc/equations/ellint19.mml +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - F - - - − - φ - , - k - - - - - = - - - − - F - - - φ - , - k - - - - - - - F - - - φ - + - m - π - , - k - - - - - = - - - F - - - φ - , - k - - - + - 2 - m - K - - - k - - - - - - - F - - - φ - , - k - - - - - = - - - sin - φ - - R - F - - - - cos - - - 2 - - φ - , - 1 - − - - k - 2 - - sin - - - 2 - - φ - , - 1 - - - - - - - - diff --git a/boost/libs/math/doc/equations/ellint19.png b/boost/libs/math/doc/equations/ellint19.png deleted file mode 100644 index b32c4467..00000000 Binary files a/boost/libs/math/doc/equations/ellint19.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint19.svg b/boost/libs/math/doc/equations/ellint19.svg deleted file mode 100644 index 8e072877..00000000 --- a/boost/libs/math/doc/equations/ellint19.svg +++ /dev/null @@ -1,2 +0,0 @@ - -F(−φ,k)=−F(φ,k)F(φ+mπ,k)=F(φ,k)+2mK(k)F(φ,k)=sinφRF(cos2φ,1−k2sin2φ,1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint2.mml b/boost/libs/math/doc/equations/ellint2.mml deleted file mode 100644 index 61e7f747..00000000 --- a/boost/libs/math/doc/equations/ellint2.mml +++ /dev/null @@ -1 +0,0 @@ - F(φ,k) = ∫ 0φ dθ1 − k2 sin 2 θ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint2.png b/boost/libs/math/doc/equations/ellint2.png deleted file mode 100644 index cc06a066..00000000 Binary files a/boost/libs/math/doc/equations/ellint2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint2.svg b/boost/libs/math/doc/equations/ellint2.svg deleted file mode 100644 index 506401bd..00000000 --- a/boost/libs/math/doc/equations/ellint2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -F(φ,k)=∫0φdθ1−k2sin2θ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint20.mml b/boost/libs/math/doc/equations/ellint20.mml deleted file mode 100644 index fcbe7fb3..00000000 --- a/boost/libs/math/doc/equations/ellint20.mml +++ /dev/null @@ -1,30 +0,0 @@ - - - K - - - k - - - - = - - - R - F - - - - 0,1 - − - - k - 2 - - , - 1 - - - - - diff --git a/boost/libs/math/doc/equations/ellint20.png b/boost/libs/math/doc/equations/ellint20.png deleted file mode 100644 index 53f15bbb..00000000 Binary files a/boost/libs/math/doc/equations/ellint20.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint20.svg b/boost/libs/math/doc/equations/ellint20.svg deleted file mode 100644 index e82fcd73..00000000 --- a/boost/libs/math/doc/equations/ellint20.svg +++ /dev/null @@ -1,2 +0,0 @@ - -K(k)=RF(0,1−k2,1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint21.mml b/boost/libs/math/doc/equations/ellint21.mml deleted file mode 100644 index 07970299..00000000 --- a/boost/libs/math/doc/equations/ellint21.mml +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - E - - - − - φ - , - k - - - - - = - - - − - E - - - φ - , - k - - - - - - - E - - - φ - + - m - π - , - k - - - - - = - - - E - - - φ - , - k - - - + - 2 - m - E - - - k - - - - ; - - φ - ∉ - [ - 0, - - π - 2 - - ] - - - - - E - - - φ - , - k - - - - - = - - - sin - φ - - R - F - - - - - cos - 2 - - φ - , - 1 - − - - k - 2 - - - sin - 2 - - φ - , - 1 - - - − - - - 1 - 3 - - - - k - 2 - - sin - - - 3 - - φ - - R - D - - - - cos - - - 2 - - φ - , - 1 - − - - k - 2 - - sin - - - 2 - - φ - , - 1 - - - - - - - - diff --git a/boost/libs/math/doc/equations/ellint21.png b/boost/libs/math/doc/equations/ellint21.png deleted file mode 100644 index 67885558..00000000 Binary files a/boost/libs/math/doc/equations/ellint21.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint21.svg b/boost/libs/math/doc/equations/ellint21.svg deleted file mode 100644 index dccb40cd..00000000 --- a/boost/libs/math/doc/equations/ellint21.svg +++ /dev/null @@ -1,2 +0,0 @@ - -E(−φ,k)=−E(φ,k)E(φ+mπ,k)=E(φ,k)+2mE(k);φ∉[0,π2]E(φ,k)=sinφRF(cos2φ,1−k2sin2φ,1)−13k2sin3φRD(cos2φ,1−k2sin2φ,1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint22.mml b/boost/libs/math/doc/equations/ellint22.mml deleted file mode 100644 index fcb3704d..00000000 --- a/boost/libs/math/doc/equations/ellint22.mml +++ /dev/null @@ -1,57 +0,0 @@ - - - E - - - k - - - - = - - - R - F - - - - 0,1 - − - - k - 2 - - , - 1 - - - − - - - 1 - 3 - - - - k - 2 - - - R - D - - - - 0,1 - − - - k - 2 - - , - 1 - - - - - diff --git a/boost/libs/math/doc/equations/ellint22.png b/boost/libs/math/doc/equations/ellint22.png deleted file mode 100644 index 15fd6f9c..00000000 Binary files a/boost/libs/math/doc/equations/ellint22.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint22.svg b/boost/libs/math/doc/equations/ellint22.svg deleted file mode 100644 index c70931c9..00000000 --- a/boost/libs/math/doc/equations/ellint22.svg +++ /dev/null @@ -1,2 +0,0 @@ - -E(k)=RF(0,1−k2,1)−13k2RD(0,1−k2,1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint23.mml b/boost/libs/math/doc/equations/ellint23.mml deleted file mode 100644 index 051ea4b8..00000000 --- a/boost/libs/math/doc/equations/ellint23.mml +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - ∏ - - - n - , - φ - , - 0 - - - - - = - - - - - - 1 - - 1 - − - n - - - - - - tan - - − - 1 - - - - - - - 1 - − - n - - - tan - φ - - - - - ; - n - < - 1 - - - - - - - - = - - - - - - 1 - - n - − - 1 - - - - - - tanh - - − - 1 - - - - - - - n - − - 1 - - - tan - φ - - - - - ; - n - > - 1 - - - - - - - - = - - - tan - φ - - - ; - n - = - 1 - - - - - - diff --git a/boost/libs/math/doc/equations/ellint23.png b/boost/libs/math/doc/equations/ellint23.png deleted file mode 100644 index 7db29ce4..00000000 Binary files a/boost/libs/math/doc/equations/ellint23.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint23.svg b/boost/libs/math/doc/equations/ellint23.svg deleted file mode 100644 index 81c01535..00000000 --- a/boost/libs/math/doc/equations/ellint23.svg +++ /dev/null @@ -1,2 +0,0 @@ - -∏(n,φ,0)=11−ntan−1(1−ntanφ);n<1=1n−1tanh−1(n−1tanφ);n>1=tanφ;n=1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint24.mml b/boost/libs/math/doc/equations/ellint24.mml deleted file mode 100644 index 33657933..00000000 --- a/boost/libs/math/doc/equations/ellint24.mml +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - - - 1 - − - n - - - - - 1 - − - - - k - 2 - - n - - - - - - - ∏ - - - n - , - φ - , - k - - - - - - = - - - - - - - 1 - − - N - - - - - 1 - − - - - k - 2 - - N - - - - - - - ∏ - - - N - , - φ - , - k - - - - - - - - - - - + - - - - - k - 2 - - - - p - 2 - - - - F - - - φ - , - k - - - - - - - - - - + - - - - tan - - − - 1 - - - - - - - p - 2 - - 2 - - - - sin - - 2 - φ - - - - ? - - - φ - - - - - - - - - - - N - - - = - - - - - - - k - 2 - - − - n - - - - - 1 - − - n - - - - - - - - - p - 2 - - - - = - - - - - − - - n - - 1 - − - n - - - - - - k - 2 - - − - n - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/ellint24.png b/boost/libs/math/doc/equations/ellint24.png deleted file mode 100644 index a188781c..00000000 Binary files a/boost/libs/math/doc/equations/ellint24.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint24.svg b/boost/libs/math/doc/equations/ellint24.svg deleted file mode 100644 index 75bda0ce..00000000 --- a/boost/libs/math/doc/equations/ellint24.svg +++ /dev/null @@ -1,2 +0,0 @@ - -(1−n)(1−k2n)∏(n,φ,k)=(1−N)(1−k2N)∏(N,φ,k)+k2p2F(φ,k)+tan−1(p22sin2φ?(φ))N=(k2−n)(1−n)p2=−n1−n(k2−n) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint25.mml b/boost/libs/math/doc/equations/ellint25.mml deleted file mode 100644 index eadfab32..00000000 --- a/boost/libs/math/doc/equations/ellint25.mml +++ /dev/null @@ -1,97 +0,0 @@ - - - - ∏ - - - n - , - φ - , - k - - - - - = - - sin - φ - - R - F - - - - - cos - 2 - - φ - , - 1 - − - - k - 2 - - - sin - 2 - - φ - , - 1 - - - + - - n - 3 - - sin - - - 3 - - φ - - R - J - - - - cos - - - 2 - - φ - , - 1 - − - - k - 2 - - sin - - - 2 - - φ - , - 1,1 - − - n - sin - - - 2 - - φ - - - - - diff --git a/boost/libs/math/doc/equations/ellint25.png b/boost/libs/math/doc/equations/ellint25.png deleted file mode 100644 index b8ff9e70..00000000 Binary files a/boost/libs/math/doc/equations/ellint25.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint25.svg b/boost/libs/math/doc/equations/ellint25.svg deleted file mode 100644 index 69548a50..00000000 --- a/boost/libs/math/doc/equations/ellint25.svg +++ /dev/null @@ -1,2 +0,0 @@ - -∏(n,φ,k)=sinφRF(cos2φ,1−k2sin2φ,1)+n3sin3φRJ(cos2φ,1−k2sin2φ,1,1−nsin2φ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint26.mml b/boost/libs/math/doc/equations/ellint26.mml deleted file mode 100644 index 194e3fa3..00000000 --- a/boost/libs/math/doc/equations/ellint26.mml +++ /dev/null @@ -1,57 +0,0 @@ - - - - ∏ - - - n - , - k - - - - - = - - - R - F - - - - 0,1 - − - - k - 2 - - , - 1 - - - + - - n - 3 - - - R - J - - - - 0,1 - − - - k - 2 - - , - 1,1 - − - n - - - - - diff --git a/boost/libs/math/doc/equations/ellint26.png b/boost/libs/math/doc/equations/ellint26.png deleted file mode 100644 index b7aac882..00000000 Binary files a/boost/libs/math/doc/equations/ellint26.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint26.svg b/boost/libs/math/doc/equations/ellint26.svg deleted file mode 100644 index 2371edb4..00000000 --- a/boost/libs/math/doc/equations/ellint26.svg +++ /dev/null @@ -1,2 +0,0 @@ - -∏(n,k)=RF(0,1−k2,1)+n3RJ(0,1−k2,1,1−n) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint27.mml b/boost/libs/math/doc/equations/ellint27.mml deleted file mode 100644 index 2670e6e3..00000000 --- a/boost/libs/math/doc/equations/ellint27.mml +++ /dev/null @@ -1,98 +0,0 @@ - -]> - -ellint27 - - - - - - - R - G - - - - x - , - y - , - z - - - = - - 1 - - 4 - π - - - - ∫ - - 0 - - - 2 - π - - - - ∫ - - 0 - - π - - - - - x - - sin - 2 - - θ - - cos - 2 - - φ - + - y - - sin - 2 - - θ - - sin - 2 - - φ - + - z - - cos - 2 - - θ - - - - - sin - θ - - - ⅆ - θ - - - ⅆ - φ - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint27.png b/boost/libs/math/doc/equations/ellint27.png deleted file mode 100644 index 54eef5e9..00000000 Binary files a/boost/libs/math/doc/equations/ellint27.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint27.svg b/boost/libs/math/doc/equations/ellint27.svg deleted file mode 100644 index fa2c7779..00000000 --- a/boost/libs/math/doc/equations/ellint27.svg +++ /dev/null @@ -1,2 +0,0 @@ - -RG(x,y,z)=14π∫02π∫0π(xsin2θcos2φ+ysin2θsin2φ+zcos2θ)sinθdθdφ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint3.mml b/boost/libs/math/doc/equations/ellint3.mml deleted file mode 100644 index a105ea17..00000000 --- a/boost/libs/math/doc/equations/ellint3.mml +++ /dev/null @@ -1 +0,0 @@ - E(φ,k) = ∫ 0φ1 − k2 sin 2 θ dθ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint3.png b/boost/libs/math/doc/equations/ellint3.png deleted file mode 100644 index 6d21293e..00000000 Binary files a/boost/libs/math/doc/equations/ellint3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint3.svg b/boost/libs/math/doc/equations/ellint3.svg deleted file mode 100644 index de38f44b..00000000 --- a/boost/libs/math/doc/equations/ellint3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -E(φ,k)=∫0φ1−k2sin2θdθ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint4.mml b/boost/libs/math/doc/equations/ellint4.mml deleted file mode 100644 index 38584f4c..00000000 --- a/boost/libs/math/doc/equations/ellint4.mml +++ /dev/null @@ -1 +0,0 @@ - Π(n,φ,k) = ∫ 0φ dθ(1 − n sin 2θ)1 − k2 sin 2 θ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint4.png b/boost/libs/math/doc/equations/ellint4.png deleted file mode 100644 index 49dd9093..00000000 Binary files a/boost/libs/math/doc/equations/ellint4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint4.svg b/boost/libs/math/doc/equations/ellint4.svg deleted file mode 100644 index e3a195f8..00000000 --- a/boost/libs/math/doc/equations/ellint4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Π(n,φ,k)=∫0φdθ(1−nsin2θ)1−k2sin2θ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint5.mml b/boost/libs/math/doc/equations/ellint5.mml deleted file mode 100644 index ab0ab38a..00000000 --- a/boost/libs/math/doc/equations/ellint5.mml +++ /dev/null @@ -1 +0,0 @@ - k = sin α, |k|≤ 1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint5.png b/boost/libs/math/doc/equations/ellint5.png deleted file mode 100644 index 2729fca7..00000000 Binary files a/boost/libs/math/doc/equations/ellint5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint5.svg b/boost/libs/math/doc/equations/ellint5.svg deleted file mode 100644 index e9cece46..00000000 --- a/boost/libs/math/doc/equations/ellint5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -k=sinα,|k|≤1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint6.mml b/boost/libs/math/doc/equations/ellint6.mml deleted file mode 100644 index 427a6a1c..00000000 --- a/boost/libs/math/doc/equations/ellint6.mml +++ /dev/null @@ -1,62 +0,0 @@ - - - K - - - k - - - = - F - - - - - π - 2 - - - , - k - - - = - - ∫ - - 0 - - - - π - 2 - - - - - - d - θ - - - - - 1 - − - - k - 2 - - - sin - 2 - - θ - - - - - - - - diff --git a/boost/libs/math/doc/equations/ellint6.png b/boost/libs/math/doc/equations/ellint6.png deleted file mode 100644 index 53b7e472..00000000 Binary files a/boost/libs/math/doc/equations/ellint6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint6.svg b/boost/libs/math/doc/equations/ellint6.svg deleted file mode 100644 index 402635aa..00000000 --- a/boost/libs/math/doc/equations/ellint6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -K(k)=F(π2,k)=∫0π2dθ1−k2sin2θ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint7.mml b/boost/libs/math/doc/equations/ellint7.mml deleted file mode 100644 index 12026cd7..00000000 --- a/boost/libs/math/doc/equations/ellint7.mml +++ /dev/null @@ -1,61 +0,0 @@ - - - E - - - k - - - = - E - - - - - π - 2 - - - , - k - - - = - - ∫ - - 0 - - - - π - 2 - - - - - - 1 - − - - k - 2 - - - sin - - - 2 - - θ - - - - - d - θ - - - - - diff --git a/boost/libs/math/doc/equations/ellint7.png b/boost/libs/math/doc/equations/ellint7.png deleted file mode 100644 index 55c7c5eb..00000000 Binary files a/boost/libs/math/doc/equations/ellint7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint7.svg b/boost/libs/math/doc/equations/ellint7.svg deleted file mode 100644 index 29f78b6d..00000000 --- a/boost/libs/math/doc/equations/ellint7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -E(k)=E(π2,k)=∫0π21−k2sin2θdθ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint8.mml b/boost/libs/math/doc/equations/ellint8.mml deleted file mode 100644 index cae7eb2e..00000000 --- a/boost/libs/math/doc/equations/ellint8.mml +++ /dev/null @@ -1,82 +0,0 @@ - - - - ∏ - - - n - , - k - - - - = - - ∏ - - - n - , - - - π - 2 - - - , - k - - - - = - - ∫ - - 0 - - - - π - 2 - - - - - - d - θ - - - - - 1 - − - n - - sin - 2 - - θ - - - - - 1 - − - - k - 2 - - - sin - 2 - - θ - - - - - - - - diff --git a/boost/libs/math/doc/equations/ellint8.png b/boost/libs/math/doc/equations/ellint8.png deleted file mode 100644 index e18ab221..00000000 Binary files a/boost/libs/math/doc/equations/ellint8.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint8.svg b/boost/libs/math/doc/equations/ellint8.svg deleted file mode 100644 index 978be26e..00000000 --- a/boost/libs/math/doc/equations/ellint8.svg +++ /dev/null @@ -1,2 +0,0 @@ - -∏(n,k)=∏(n,π2,k)=∫0π2dθ(1−nsin2θ)1−k2sin2θ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint9.mml b/boost/libs/math/doc/equations/ellint9.mml deleted file mode 100644 index 117c9322..00000000 --- a/boost/libs/math/doc/equations/ellint9.mml +++ /dev/null @@ -1 +0,0 @@ - RF (x,y,z) = 1 2 ∫ 0∞[(t + x)(t + y)(t + z)]−12 dt diff --git a/boost/libs/math/doc/equations/ellint9.png b/boost/libs/math/doc/equations/ellint9.png deleted file mode 100644 index 556b5adf..00000000 Binary files a/boost/libs/math/doc/equations/ellint9.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint9.svg b/boost/libs/math/doc/equations/ellint9.svg deleted file mode 100644 index 92738a87..00000000 --- a/boost/libs/math/doc/equations/ellint9.svg +++ /dev/null @@ -1,2 +0,0 @@ - -RF(x,y,z)=12∫0∞[(t+x)(t+y)(t+z)]−12dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint_d.mml b/boost/libs/math/doc/equations/ellint_d.mml deleted file mode 100644 index 761a534d..00000000 --- a/boost/libs/math/doc/equations/ellint_d.mml +++ /dev/null @@ -1,210 +0,0 @@ - -]> - -ellint_d - - - - - - - - - D - - - φ - , - k - - - - - = - - - - ∫ - - 0 - - φ - - - - - sin - 2 - - θ - - - - - - 1 - − - - k - 2 - - - sin - 2 - - θ - - - - - - d - θ - - - - - - - - = - - - - ∫ - - 0 - - - sin - φ - - - - - - t - 2 - - - - - - 1 - − - - t - 2 - - - - - - 1 - − - - k - 2 - - - t - 2 - - - - - - d - t - - - - - - - - = - - - - - - - F - - - φ - , - k - - - − - E - - - φ - , - k - - - - - - - k - 2 - - - - - - - - - - = - - - - 1 - 3 - - - R - D - - - - c - − - 1, - c - − - - k - 2, - - c - - - - ; - - c - = - - 1 - - - sin - 2 - - φ - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint_d.png b/boost/libs/math/doc/equations/ellint_d.png deleted file mode 100644 index 90d8d00a..00000000 Binary files a/boost/libs/math/doc/equations/ellint_d.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ellint_d.svg b/boost/libs/math/doc/equations/ellint_d.svg deleted file mode 100644 index 2953813a..00000000 --- a/boost/libs/math/doc/equations/ellint_d.svg +++ /dev/null @@ -1,2 +0,0 @@ - -D(φ,k)=∫0φsin2θ(1−k2sin2θ)dθ=∫0sinφt21−t21−k2t2dt=(F(φ,k)−E(φ,k))k2=13RD(c−1,c−k2,c);c=1sin2φ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ellint_rg.svg b/boost/libs/math/doc/equations/ellint_rg.svg deleted file mode 100644 index 3353bfc2..00000000 --- a/boost/libs/math/doc/equations/ellint_rg.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Error parsing input file temp.mml: no element found diff --git a/boost/libs/math/doc/equations/erf1.mml b/boost/libs/math/doc/equations/erf1.mml deleted file mode 100644 index 6568f68b..00000000 --- a/boost/libs/math/doc/equations/erf1.mml +++ /dev/null @@ -1,41 +0,0 @@ - - - erf - - - z - - - - = - - - 2 - - - π - - - - - ∫ - - 0 - - z - - - e - - − - - t - 2 - - - - d - t - - - diff --git a/boost/libs/math/doc/equations/erf1.png b/boost/libs/math/doc/equations/erf1.png deleted file mode 100644 index db404940..00000000 Binary files a/boost/libs/math/doc/equations/erf1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/erf1.svg b/boost/libs/math/doc/equations/erf1.svg deleted file mode 100644 index d860f36c..00000000 --- a/boost/libs/math/doc/equations/erf1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -erf(z)=2π∫0ze−t2dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/erf2.mml b/boost/libs/math/doc/equations/erf2.mml deleted file mode 100644 index 8b81fe4e..00000000 --- a/boost/libs/math/doc/equations/erf2.mml +++ /dev/null @@ -1,22 +0,0 @@ - - - erfc - - - z - - - - = - - 1 - − - erf - - - z - - - - - diff --git a/boost/libs/math/doc/equations/erf2.png b/boost/libs/math/doc/equations/erf2.png deleted file mode 100644 index 78068a3f..00000000 Binary files a/boost/libs/math/doc/equations/erf2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/erf2.svg b/boost/libs/math/doc/equations/erf2.svg deleted file mode 100644 index 2183a2f8..00000000 --- a/boost/libs/math/doc/equations/erf2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -erfc(z)=1−erf(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/error1.mml b/boost/libs/math/doc/equations/error1.mml deleted file mode 100644 index b5424500..00000000 --- a/boost/libs/math/doc/equations/error1.mml +++ /dev/null @@ -1,31 +0,0 @@ - - - max - - - | - - - a - − - v - - a - - | - , - | - - - a - − - v - - v - - | - - - - - diff --git a/boost/libs/math/doc/equations/error1.png b/boost/libs/math/doc/equations/error1.png deleted file mode 100644 index 4f26c4ac..00000000 Binary files a/boost/libs/math/doc/equations/error1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/error1.svg b/boost/libs/math/doc/equations/error1.svg deleted file mode 100644 index 82d601ad..00000000 --- a/boost/libs/math/doc/equations/error1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -max(|a−va|,|a−vv|) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/error2.mml b/boost/libs/math/doc/equations/error2.mml deleted file mode 100644 index 9d134546..00000000 --- a/boost/libs/math/doc/equations/error2.mml +++ /dev/null @@ -1,15 +0,0 @@ - - - | - - - a - − - v - - a - - | - - - diff --git a/boost/libs/math/doc/equations/error2.png b/boost/libs/math/doc/equations/error2.png deleted file mode 100644 index 0f9710a0..00000000 Binary files a/boost/libs/math/doc/equations/error2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/error2.svg b/boost/libs/math/doc/equations/error2.svg deleted file mode 100644 index ae03b39f..00000000 --- a/boost/libs/math/doc/equations/error2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -|a−va| \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_i_1.mml b/boost/libs/math/doc/equations/expint_i_1.mml deleted file mode 100644 index f42d338c..00000000 --- a/boost/libs/math/doc/equations/expint_i_1.mml +++ /dev/null @@ -1,46 +0,0 @@ - - - E - i - - - x - - - = - − - - E - 1 - - - - − - x - - - = - - ∫ - - − - x - - ∞ - - - - - e - - − - t - - - d - t - - t - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_i_1.png b/boost/libs/math/doc/equations/expint_i_1.png deleted file mode 100644 index d7c2a69a..00000000 Binary files a/boost/libs/math/doc/equations/expint_i_1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/expint_i_1.svg b/boost/libs/math/doc/equations/expint_i_1.svg deleted file mode 100644 index 6121ede2..00000000 --- a/boost/libs/math/doc/equations/expint_i_1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ei(x)=−E1(−x)=∫−x∞e−tdtt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_i_2.mml b/boost/libs/math/doc/equations/expint_i_2.mml deleted file mode 100644 index 87a16f1f..00000000 --- a/boost/libs/math/doc/equations/expint_i_2.mml +++ /dev/null @@ -1,42 +0,0 @@ - - - Ei - - - z - - - = - log - - - z - - - + - γ - + - - ∑ - - k - = - 0 - - ∞ - - - - - z - k - - - - k - k - ! - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_i_2.png b/boost/libs/math/doc/equations/expint_i_2.png deleted file mode 100644 index 52d776c2..00000000 Binary files a/boost/libs/math/doc/equations/expint_i_2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/expint_i_2.svg b/boost/libs/math/doc/equations/expint_i_2.svg deleted file mode 100644 index b1868a5f..00000000 --- a/boost/libs/math/doc/equations/expint_i_2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ei(z)=log(z)+γ+∑k=0∞zkkk! \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_i_3.mml b/boost/libs/math/doc/equations/expint_i_3.mml deleted file mode 100644 index 42fce62b..00000000 --- a/boost/libs/math/doc/equations/expint_i_3.mml +++ /dev/null @@ -1,45 +0,0 @@ - - - Ei - - - z - - - = - log - - - - z - - z - 0 - - - - - + - - - z - − - - z - 0 - - - - R - - - - z - 3 - - − - 1 - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_i_3.png b/boost/libs/math/doc/equations/expint_i_3.png deleted file mode 100644 index 3074a949..00000000 Binary files a/boost/libs/math/doc/equations/expint_i_3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/expint_i_3.svg b/boost/libs/math/doc/equations/expint_i_3.svg deleted file mode 100644 index a296a99e..00000000 --- a/boost/libs/math/doc/equations/expint_i_3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ei(z)=log(zz0)+(z−z0)R(z3−1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_i_4.mml b/boost/libs/math/doc/equations/expint_i_4.mml deleted file mode 100644 index c2d777b5..00000000 --- a/boost/libs/math/doc/equations/expint_i_4.mml +++ /dev/null @@ -1,32 +0,0 @@ - - - Ei - - - z - - - = - z - + - - - e - z - - z - - - - c - + - R - - - t - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_i_4.png b/boost/libs/math/doc/equations/expint_i_4.png deleted file mode 100644 index ae5c58b5..00000000 Binary files a/boost/libs/math/doc/equations/expint_i_4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/expint_i_4.svg b/boost/libs/math/doc/equations/expint_i_4.svg deleted file mode 100644 index 9d26331e..00000000 --- a/boost/libs/math/doc/equations/expint_i_4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ei(z)=z+ezz(c+R(t)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_n_1.mml b/boost/libs/math/doc/equations/expint_n_1.mml deleted file mode 100644 index b636c81e..00000000 --- a/boost/libs/math/doc/equations/expint_n_1.mml +++ /dev/null @@ -1,41 +0,0 @@ - - - - E - n - - - - x - - - = - - ∫ - - 1 - - ∞ - - - - - e - - − - x - t - - - d - t - - - - t - n - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_n_1.png b/boost/libs/math/doc/equations/expint_n_1.png deleted file mode 100644 index a757f89d..00000000 Binary files a/boost/libs/math/doc/equations/expint_n_1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/expint_n_1.svg b/boost/libs/math/doc/equations/expint_n_1.svg deleted file mode 100644 index ee5ff288..00000000 --- a/boost/libs/math/doc/equations/expint_n_1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -En(x)=∫1∞e−xtdttn \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_n_2.mml b/boost/libs/math/doc/equations/expint_n_2.mml deleted file mode 100644 index 37643d49..00000000 --- a/boost/libs/math/doc/equations/expint_n_2.mml +++ /dev/null @@ -1,101 +0,0 @@ - - - - E - n - - - - x - - - = - - - - - − - z - - - - n - − - 1 - - - - - - n - − - 1 - - - ! - - - - - ψ - - - n - - - − - log - - - z - - - - - − - - ∑ - - k - = - 0, - k - ≠ - n - − - 1 - - ∞ - - - - - - - − - 1 - - - k - - - z - k - - - - - - k - − - n - + - 1 - - - k - ! - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_n_2.png b/boost/libs/math/doc/equations/expint_n_2.png deleted file mode 100644 index 0776a656..00000000 Binary files a/boost/libs/math/doc/equations/expint_n_2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/expint_n_2.svg b/boost/libs/math/doc/equations/expint_n_2.svg deleted file mode 100644 index 10fdf84f..00000000 --- a/boost/libs/math/doc/equations/expint_n_2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -En(x)=(−z)n−1(n−1)!(ψ(n)−log(z))−∑k=0,k≠n−1∞(−1)kzk(k−n+1)k! \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_n_3.mml b/boost/libs/math/doc/equations/expint_n_3.mml deleted file mode 100644 index a07a53b5..00000000 --- a/boost/libs/math/doc/equations/expint_n_3.mml +++ /dev/null @@ -1,101 +0,0 @@ - - - - E - n - - - - x - - - = - - - e - - − - x - - - - n - + - x - − - - n - - 2 - + - n - + - x - − - - - 2 - - - n - + - 1 - - - - - 4 - + - n - + - x - − - - - 3 - - - n - + - 2 - - - - - 6 - + - n - + - x - − - - - 4 - - - n - + - 3 - - - - - 8 - + - n - + - x - − - … - - - - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_n_3.png b/boost/libs/math/doc/equations/expint_n_3.png deleted file mode 100644 index 98c4efb6..00000000 Binary files a/boost/libs/math/doc/equations/expint_n_3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/expint_n_3.svg b/boost/libs/math/doc/equations/expint_n_3.svg deleted file mode 100644 index d24dfb40..00000000 --- a/boost/libs/math/doc/equations/expint_n_3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -En(x)=e−xn+x−n2+n+x−2(n+1)4+n+x−3(n+2)6+n+x−4(n+3)8+n+x−… \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_n_4.mml b/boost/libs/math/doc/equations/expint_n_4.mml deleted file mode 100644 index 54bda19e..00000000 --- a/boost/libs/math/doc/equations/expint_n_4.mml +++ /dev/null @@ -1,31 +0,0 @@ - - - - E - 1 - - - - x - - - = - x - + - log - - - x - - - + - c - + - R - - - x - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_n_4.png b/boost/libs/math/doc/equations/expint_n_4.png deleted file mode 100644 index f65927b2..00000000 Binary files a/boost/libs/math/doc/equations/expint_n_4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/expint_n_4.svg b/boost/libs/math/doc/equations/expint_n_4.svg deleted file mode 100644 index 694ae746..00000000 --- a/boost/libs/math/doc/equations/expint_n_4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -E1(x)=x+log(x)+c+R(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_n_5.mml b/boost/libs/math/doc/equations/expint_n_5.mml deleted file mode 100644 index a888144a..00000000 --- a/boost/libs/math/doc/equations/expint_n_5.mml +++ /dev/null @@ -1,39 +0,0 @@ - - - - E - 1 - - - - x - - - = - - - e - - − - x - - - x - - - - 1 - + - R - - - - 1 - x - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/expint_n_5.png b/boost/libs/math/doc/equations/expint_n_5.png deleted file mode 100644 index 02d48899..00000000 Binary files a/boost/libs/math/doc/equations/expint_n_5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/expint_n_5.svg b/boost/libs/math/doc/equations/expint_n_5.svg deleted file mode 100644 index bc1a7efa..00000000 --- a/boost/libs/math/doc/equations/expint_n_5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -E1(x)=e−xx(1+R(1x)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/exponential_dist_ref1.mml b/boost/libs/math/doc/equations/exponential_dist_ref1.mml deleted file mode 100644 index 74578c83..00000000 --- a/boost/libs/math/doc/equations/exponential_dist_ref1.mml +++ /dev/null @@ -1,23 +0,0 @@ - - - f - - - x - - - - = - - λ - - e - - − - λ - x - - - - - diff --git a/boost/libs/math/doc/equations/exponential_dist_ref1.png b/boost/libs/math/doc/equations/exponential_dist_ref1.png deleted file mode 100644 index aa303d20..00000000 Binary files a/boost/libs/math/doc/equations/exponential_dist_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/exponential_dist_ref1.svg b/boost/libs/math/doc/equations/exponential_dist_ref1.svg deleted file mode 100644 index e559d1ae..00000000 --- a/boost/libs/math/doc/equations/exponential_dist_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x)=λe−λx \ No newline at end of file diff --git a/boost/libs/math/doc/equations/fisher_pdf.mml b/boost/libs/math/doc/equations/fisher_pdf.mml deleted file mode 100644 index 05a9a8a1..00000000 --- a/boost/libs/math/doc/equations/fisher_pdf.mml +++ /dev/null @@ -1,91 +0,0 @@ - - - - f - - n - , - m - - - - - x - - - - = - - - - - m - - - m - 2 - - - - - n - - - n - 2 - - - - - x - - - n - 2 - - − - 1 - - - - - - - - m - + - n - x - - - - - - - n - + - m - - - 2 - - - - B - - - - n - 2, - - - m - 2 - - - - - - - - diff --git a/boost/libs/math/doc/equations/fisher_pdf.png b/boost/libs/math/doc/equations/fisher_pdf.png deleted file mode 100644 index d348548d..00000000 Binary files a/boost/libs/math/doc/equations/fisher_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/fisher_pdf.svg b/boost/libs/math/doc/equations/fisher_pdf.svg deleted file mode 100644 index e649c9cc..00000000 --- a/boost/libs/math/doc/equations/fisher_pdf.svg +++ /dev/null @@ -1,2 +0,0 @@ - -fn,m(x)=mm2nn2xn2−1(m+nx)(n+m)2B(n2,m2) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/fraction1.mml b/boost/libs/math/doc/equations/fraction1.mml deleted file mode 100644 index 666587ca..00000000 --- a/boost/libs/math/doc/equations/fraction1.mml +++ /dev/null @@ -1,61 +0,0 @@ - - - - b - 0 - - + - - - a - 1 - - - - b - 1 - - + - - - a - 2 - - - - b - 2 - - + - - - a - 3 - - - - b - 3 - - + - - - a - 4 - - - b - 4 - - - + - … - - - - - - - - - diff --git a/boost/libs/math/doc/equations/fraction1.png b/boost/libs/math/doc/equations/fraction1.png deleted file mode 100644 index 4ddcbfe3..00000000 Binary files a/boost/libs/math/doc/equations/fraction1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/fraction1.svg b/boost/libs/math/doc/equations/fraction1.svg deleted file mode 100644 index 7770ddeb..00000000 --- a/boost/libs/math/doc/equations/fraction1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -b0+a1b1+a2b2+a3b3+a4b4+… \ No newline at end of file diff --git a/boost/libs/math/doc/equations/fraction2.mml b/boost/libs/math/doc/equations/fraction2.mml deleted file mode 100644 index 4932943b..00000000 --- a/boost/libs/math/doc/equations/fraction2.mml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - a - 1 - - - - b - 1 - - + - - - a - 2 - - - - b - 2 - - + - - - a - 3 - - - - b - 3 - - + - - - a - 4 - - - b - 4 - - - + - … - - - - - - - - - diff --git a/boost/libs/math/doc/equations/fraction2.png b/boost/libs/math/doc/equations/fraction2.png deleted file mode 100644 index a04dadc4..00000000 Binary files a/boost/libs/math/doc/equations/fraction2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/fraction2.svg b/boost/libs/math/doc/equations/fraction2.svg deleted file mode 100644 index a475abe1..00000000 --- a/boost/libs/math/doc/equations/fraction2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -a1b1+a2b2+a3b3+a4b4+… \ No newline at end of file diff --git a/boost/libs/math/doc/equations/fraction3.mml b/boost/libs/math/doc/equations/fraction3.mml deleted file mode 100644 index cf716943..00000000 --- a/boost/libs/math/doc/equations/fraction3.mml +++ /dev/null @@ -1,38 +0,0 @@ - - - Golden Ratio - - = - - - 1 - - 1 - + - - 1 - - 1 - + - - 1 - - 1 - + - - 1 - - 1 - + - … - - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/fraction3.png b/boost/libs/math/doc/equations/fraction3.png deleted file mode 100644 index 56550d9a..00000000 Binary files a/boost/libs/math/doc/equations/fraction3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/fraction3.svg b/boost/libs/math/doc/equations/fraction3.svg deleted file mode 100644 index fecd64e9..00000000 --- a/boost/libs/math/doc/equations/fraction3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Golden Ratio=11+11+11+11+… \ No newline at end of file diff --git a/boost/libs/math/doc/equations/fraction4.mml b/boost/libs/math/doc/equations/fraction4.mml deleted file mode 100644 index eaed0f22..00000000 --- a/boost/libs/math/doc/equations/fraction4.mml +++ /dev/null @@ -1,62 +0,0 @@ - - - tan - - - z - - - - = - - - z - - 1 - − - - - z - 2 - - - 3 - − - - - z - 2 - - - 5 - − - - - z - 2 - - - 7 - − - - - z - 2 - - - 9 - − - … - - - - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/fraction4.png b/boost/libs/math/doc/equations/fraction4.png deleted file mode 100644 index c5300a3f..00000000 Binary files a/boost/libs/math/doc/equations/fraction4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/fraction4.svg b/boost/libs/math/doc/equations/fraction4.svg deleted file mode 100644 index effb5310..00000000 --- a/boost/libs/math/doc/equations/fraction4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -tan(z)=z1−z23−z25−z27−z29−… \ No newline at end of file diff --git a/boost/libs/math/doc/equations/gamm1.mml b/boost/libs/math/doc/equations/gamm1.mml deleted file mode 100644 index d2a6842c..00000000 --- a/boost/libs/math/doc/equations/gamm1.mml +++ /dev/null @@ -1,43 +0,0 @@ - - - tgamma - - - z - - - = - Γ - - - z - - - = - - ∫ - - 0 - - ∞ - - - t - - z - − - 1 - - - - e - - − - t - - - d - t - - - diff --git a/boost/libs/math/doc/equations/gamm1.png b/boost/libs/math/doc/equations/gamm1.png deleted file mode 100644 index fc6a5d58..00000000 Binary files a/boost/libs/math/doc/equations/gamm1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/gamm1.svg b/boost/libs/math/doc/equations/gamm1.svg deleted file mode 100644 index 7dcdc3d2..00000000 --- a/boost/libs/math/doc/equations/gamm1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -tgamma(z)=Γ(z)=∫0∞tz−1e−tdt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/gamm2.mml b/boost/libs/math/doc/equations/gamm2.mml deleted file mode 100644 index 3ef37594..00000000 --- a/boost/libs/math/doc/equations/gamm2.mml +++ /dev/null @@ -1,148 +0,0 @@ - - - Γ - - - a - - - = - - - - l - a - - - e - - − - l - - - - - - - - - ∑ - - k - = - 0 - - ∞ - - - - - l - n - - - a - - - - k - + - 1 - - − - - - - - - - + - - 1 - - l - − - a - + - 1 - + - - - c - 1 - - - - d - 1 - - + - - - c - 2 - - - - d - 2 - - + - - - c - 3 - - - - d - 3 - - + - … - - - - - - - - - - - ; - - - c - k - - = - k - - - a - − - k - - - - ∧ - - - d - k - - = - l - − - a - + - 2 - k - + - 1 - - - - - diff --git a/boost/libs/math/doc/equations/gamm2.png b/boost/libs/math/doc/equations/gamm2.png deleted file mode 100644 index ff34caf0..00000000 Binary files a/boost/libs/math/doc/equations/gamm2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/gamm2.svg b/boost/libs/math/doc/equations/gamm2.svg deleted file mode 100644 index 1e0c28c3..00000000 --- a/boost/libs/math/doc/equations/gamm2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Γ(a)=(lae−l)(∑k=0∞lnak+1−+1l−a+1+c1d1+c2d2+c3d3+…);ck=k(a−k)∧dk=l−a+2k+1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/gamm3.mml b/boost/libs/math/doc/equations/gamm3.mml deleted file mode 100644 index 9d5178d5..00000000 --- a/boost/libs/math/doc/equations/gamm3.mml +++ /dev/null @@ -1,25 +0,0 @@ - - - Γ - - - z - - - = - - - Γ - - - z - + - 1 - - - - z - - - - diff --git a/boost/libs/math/doc/equations/gamm3.png b/boost/libs/math/doc/equations/gamm3.png deleted file mode 100644 index d09452ee..00000000 Binary files a/boost/libs/math/doc/equations/gamm3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/gamm3.svg b/boost/libs/math/doc/equations/gamm3.svg deleted file mode 100644 index 953be1c2..00000000 --- a/boost/libs/math/doc/equations/gamm3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Γ(z)=Γ(z+1)z \ No newline at end of file diff --git a/boost/libs/math/doc/equations/gamm4.mml b/boost/libs/math/doc/equations/gamm4.mml deleted file mode 100644 index 84b52984..00000000 --- a/boost/libs/math/doc/equations/gamm4.mml +++ /dev/null @@ -1,28 +0,0 @@ - - - - lim - - z - → - 0 - - - - - Γ - - - z - - - - - = - - 1 - z - - - - diff --git a/boost/libs/math/doc/equations/gamm4.png b/boost/libs/math/doc/equations/gamm4.png deleted file mode 100644 index 632255da..00000000 Binary files a/boost/libs/math/doc/equations/gamm4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/gamm4.svg b/boost/libs/math/doc/equations/gamm4.svg deleted file mode 100644 index 48cbb112..00000000 --- a/boost/libs/math/doc/equations/gamm4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -limz→0(Γ(z))=1z \ No newline at end of file diff --git a/boost/libs/math/doc/equations/gamm5.mml b/boost/libs/math/doc/equations/gamm5.mml deleted file mode 100644 index 1d3a8de9..00000000 --- a/boost/libs/math/doc/equations/gamm5.mml +++ /dev/null @@ -1,33 +0,0 @@ - - - Γ - - - − - z - - - = - − - - π - - Γ - - - z - - - sin - - - π - z - - - z - - - - - diff --git a/boost/libs/math/doc/equations/gamm5.png b/boost/libs/math/doc/equations/gamm5.png deleted file mode 100644 index d4151ec4..00000000 Binary files a/boost/libs/math/doc/equations/gamm5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/gamm5.svg b/boost/libs/math/doc/equations/gamm5.svg deleted file mode 100644 index 7893a9b6..00000000 --- a/boost/libs/math/doc/equations/gamm5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Γ(−z)=−πΓ(z)sin(πz)z \ No newline at end of file diff --git a/boost/libs/math/doc/equations/gamma6.mml b/boost/libs/math/doc/equations/gamma6.mml deleted file mode 100644 index f1c84217..00000000 --- a/boost/libs/math/doc/equations/gamma6.mml +++ /dev/null @@ -1,113 +0,0 @@ - - - - ln - Γ - - - ( - - z - - ) - - ≈ - - ( - - - z - − - - 1 - 2 - - - - ) - - - ln - - - - ( - - z - - ) - - − - z - - + - - - 1 - 2 - - - - ln - - - ( - - 2 - π - - ) - - + - - - ∑ - - - k - = - 1 - - - - ∞ - - - - - - B - - 2k - - - - 2k - - ( - - - 2k - − - 1 - - - ) - - - z - - - 2k - − - 1 - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/gamma6.png b/boost/libs/math/doc/equations/gamma6.png deleted file mode 100644 index 8987d6d0..00000000 Binary files a/boost/libs/math/doc/equations/gamma6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/gamma6.svg b/boost/libs/math/doc/equations/gamma6.svg deleted file mode 100644 index e0d4cef8..00000000 --- a/boost/libs/math/doc/equations/gamma6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -lnΓ(z)≈(z−12)ln(z)−z+12ln(2π)+∑k=1∞B2k2k(2k−1)z2k−1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/gamma_dist_ref1.mml b/boost/libs/math/doc/equations/gamma_dist_ref1.mml deleted file mode 100644 index f67ba1ff..00000000 --- a/boost/libs/math/doc/equations/gamma_dist_ref1.mml +++ /dev/null @@ -1,50 +0,0 @@ - - - f - - - x - ; - k - , - θ - - - - = - - - x - - k - − - 1 - - - - - e - - − - - x - θ - - - - - - θ - k - - Γ - - - k - - - - - - - diff --git a/boost/libs/math/doc/equations/gamma_dist_ref1.png b/boost/libs/math/doc/equations/gamma_dist_ref1.png deleted file mode 100644 index 8a010abd..00000000 Binary files a/boost/libs/math/doc/equations/gamma_dist_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/gamma_dist_ref1.svg b/boost/libs/math/doc/equations/gamma_dist_ref1.svg deleted file mode 100644 index 634f368e..00000000 --- a/boost/libs/math/doc/equations/gamma_dist_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x;k,θ)=xk−1e−xθθkΓ(k) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/gamma_dist_ref2.mml b/boost/libs/math/doc/equations/gamma_dist_ref2.mml deleted file mode 100644 index d01a24ea..00000000 --- a/boost/libs/math/doc/equations/gamma_dist_ref2.mml +++ /dev/null @@ -1,50 +0,0 @@ - - - f - - - x - ; - α - , - β - - - - = - - - x - - α - − - 1 - - - - - - β - α - - - e - - − - β - x - - - - - Γ - - - α - - - - - - - diff --git a/boost/libs/math/doc/equations/gamma_dist_ref2.png b/boost/libs/math/doc/equations/gamma_dist_ref2.png deleted file mode 100644 index b26b9602..00000000 Binary files a/boost/libs/math/doc/equations/gamma_dist_ref2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/gamma_dist_ref2.svg b/boost/libs/math/doc/equations/gamma_dist_ref2.svg deleted file mode 100644 index e4a59573..00000000 --- a/boost/libs/math/doc/equations/gamma_dist_ref2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x;α,β)=xα−1βαe−βxΓ(α) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/gamma_ratio0.mml b/boost/libs/math/doc/equations/gamma_ratio0.mml deleted file mode 100644 index 2a04b16f..00000000 --- a/boost/libs/math/doc/equations/gamma_ratio0.mml +++ /dev/null @@ -1,28 +0,0 @@ - - - tgamma_ratio(a,b) - - = - - - - Γ - - - a - - - - - Γ - - - b - - - - - - - - diff --git a/boost/libs/math/doc/equations/gamma_ratio0.png b/boost/libs/math/doc/equations/gamma_ratio0.png deleted file mode 100644 index 137f4f3a..00000000 Binary files a/boost/libs/math/doc/equations/gamma_ratio0.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/gamma_ratio0.svg b/boost/libs/math/doc/equations/gamma_ratio0.svg deleted file mode 100644 index a31e30d6..00000000 --- a/boost/libs/math/doc/equations/gamma_ratio0.svg +++ /dev/null @@ -1,2 +0,0 @@ - -tgamma_ratio(a,b)=Γ(a)Γ(b) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/gamma_ratio1.mml b/boost/libs/math/doc/equations/gamma_ratio1.mml deleted file mode 100644 index ba864566..00000000 --- a/boost/libs/math/doc/equations/gamma_ratio1.mml +++ /dev/null @@ -1,34 +0,0 @@ - - - tgamma_delta_ratio(a,delta) - - = - - - - Γ - - - a - - - - - Γ - - - a - + - d - e - l - t - a - - - - - - - - diff --git a/boost/libs/math/doc/equations/gamma_ratio1.png b/boost/libs/math/doc/equations/gamma_ratio1.png deleted file mode 100644 index cf6c5ac5..00000000 Binary files a/boost/libs/math/doc/equations/gamma_ratio1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/gamma_ratio1.svg b/boost/libs/math/doc/equations/gamma_ratio1.svg deleted file mode 100644 index e8b0acd7..00000000 --- a/boost/libs/math/doc/equations/gamma_ratio1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -tgamma_delta_ratio(a,delta)=Γ(a)Γ(a+delta) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/generate.sh b/boost/libs/math/doc/equations/generate.sh deleted file mode 100644 index 27be784d..00000000 --- a/boost/libs/math/doc/equations/generate.sh +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright John Maddock 2008. -# Use, modification and distribution are subject to 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) -# -# Generates SVG and PNG files from the MML masters. -# -# Paths to tools come first, change these to match your system: -# -math2svg='m:\download\open\SVGMath-0.3.1\math2svg.py' -python='/cygdrive/c/Python27/python.exe' -inkscape='/cygdrive/c/Program Files/Inkscape/inkscape.exe' -# Image DPI: -dpi=120 - -for mmlfile in $*; do - svgfile=$(basename $mmlfile .mml).svg - pngfile=$(basename $svgfile .svg).png - tempfile=temp.mml - # strip html wrappers put in by MathCast: - cat $mmlfile | tr -d "\r\n" | sed -e 's/.*\(]*>.*<\/math>\).*/\1/' -e 's///g' -e 's/<\/semantics>//g' > $tempfile - - echo Generating $svgfile - "$python" $math2svg $tempfile > $svgfile - echo Generating $pngfile - "$inkscape" -d $dpi -e $(cygpath -a -w $pngfile) $(cygpath -a -w $svgfile) - rm $tempfile -done - - - - diff --git a/boost/libs/math/doc/equations/hankel1.mml b/boost/libs/math/doc/equations/hankel1.mml deleted file mode 100644 index d10ee157..00000000 --- a/boost/libs/math/doc/equations/hankel1.mml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - J - ν - - - - - - - z - - - - - - = - - - - - - - - - - z - - - - - ν - - ⁢ - - z - - - - ν - - - ⁢ - - - J - ν - - - - z - - - - - - - diff --git a/boost/libs/math/doc/equations/hankel1.png b/boost/libs/math/doc/equations/hankel1.png deleted file mode 100644 index 7ec65d9b..00000000 Binary files a/boost/libs/math/doc/equations/hankel1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hankel1.svg b/boost/libs/math/doc/equations/hankel1.svg deleted file mode 100644 index e2921668..00000000 --- a/boost/libs/math/doc/equations/hankel1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Jν(−z)=(−z)νz−νJν(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hankel2.mml b/boost/libs/math/doc/equations/hankel2.mml deleted file mode 100644 index 1b46c4f6..00000000 --- a/boost/libs/math/doc/equations/hankel2.mml +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - Y - ν - - - - - - - z - - - - - - = - - - - - z - ν - - ⁢ - - - Y - ν - - - - z - - - - ⁢ - - - - - - - - z - - - - - - - - ν - - - - + - - - - - - - - - - - - - - z - - - - - ν - - ⁢ - - z - - - - ν - - - - - - - - - - - - - - z - - - - - - - - ν - - - ⁢ - - z - ν - - - - - - - ⁢ - - - J - ν - - - - z - - - - ⁢ - - cot - - - - π - ⁢ - ν - - - - - - - - - ; - - - ν - ∉ - ℤ - - - - diff --git a/boost/libs/math/doc/equations/hankel2.png b/boost/libs/math/doc/equations/hankel2.png deleted file mode 100644 index 614f7efb..00000000 Binary files a/boost/libs/math/doc/equations/hankel2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hankel2.svg b/boost/libs/math/doc/equations/hankel2.svg deleted file mode 100644 index 70f70ab6..00000000 --- a/boost/libs/math/doc/equations/hankel2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Yν(−z)=zνYν(z)(−z)−ν+((−z)νz−ν−(−z)−νzν)Jν(z)cot(πν);ν∉ℤ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hankel3.mml b/boost/libs/math/doc/equations/hankel3.mml deleted file mode 100644 index 8b23d8f6..00000000 --- a/boost/libs/math/doc/equations/hankel3.mml +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - Y - ν - - - - - - - z - - - - - - = - - - - - - - - - - 1 - - - - - ν - - ⁢ - - - - - - - Y - ν - - - - z - - - - - - - - 2 - π - - ⁢ - - - - - - log - - - z - - - - - - - log - - - - - - z - - - - - - - - - ⁢ - - - J - ν - - - - z - - - - - - - - - - - - ; - - - ν - ∈ - ℤ - - - - diff --git a/boost/libs/math/doc/equations/hankel3.png b/boost/libs/math/doc/equations/hankel3.png deleted file mode 100644 index af2605a4..00000000 Binary files a/boost/libs/math/doc/equations/hankel3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hankel3.svg b/boost/libs/math/doc/equations/hankel3.svg deleted file mode 100644 index a8b4eca2..00000000 --- a/boost/libs/math/doc/equations/hankel3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Yν(−z)=(−1)ν(Yν(z)−2π(log(z)−log(−z))Jν(z));ν∈ℤ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hankel4.mml b/boost/libs/math/doc/equations/hankel4.mml deleted file mode 100644 index 43bb18bd..00000000 --- a/boost/libs/math/doc/equations/hankel4.mml +++ /dev/null @@ -1,69 +0,0 @@ - -]> - -hankel4 - - - - - - - h - - v - - - - 1 - - - - - - x - - - - = - - - - - π - 2 - - - - - 1 - - x - - - - H - - v - + - - 1 - 2 - - - - - 1 - - - - - - x - - - - - - diff --git a/boost/libs/math/doc/equations/hankel4.png b/boost/libs/math/doc/equations/hankel4.png deleted file mode 100644 index f1ba66f4..00000000 Binary files a/boost/libs/math/doc/equations/hankel4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hankel4.svg b/boost/libs/math/doc/equations/hankel4.svg deleted file mode 100644 index 24c7d986..00000000 --- a/boost/libs/math/doc/equations/hankel4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -hv(1)(x)=π21xHv+12(1)(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hankel5.mml b/boost/libs/math/doc/equations/hankel5.mml deleted file mode 100644 index 70935cb0..00000000 --- a/boost/libs/math/doc/equations/hankel5.mml +++ /dev/null @@ -1,69 +0,0 @@ - -]> - -hankel5 - - - - - - - h - - v - - - - 2 - - - - - - x - - - - = - - - - - π - 2 - - - - - 1 - - x - - - - H - - v - + - - 1 - 2 - - - - - 2 - - - - - - x - - - - - - diff --git a/boost/libs/math/doc/equations/hankel5.png b/boost/libs/math/doc/equations/hankel5.png deleted file mode 100644 index 822dac13..00000000 Binary files a/boost/libs/math/doc/equations/hankel5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hankel5.svg b/boost/libs/math/doc/equations/hankel5.svg deleted file mode 100644 index 06d05e60..00000000 --- a/boost/libs/math/doc/equations/hankel5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -hv(2)(x)=π21xHv+12(2)(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hazard.mml b/boost/libs/math/doc/equations/hazard.mml deleted file mode 100644 index 0b0502cb..00000000 --- a/boost/libs/math/doc/equations/hazard.mml +++ /dev/null @@ -1,43 +0,0 @@ - - - hazard - - - x - - - - = - - h - - - x - - - - = - - - - pdf - - - x - - - - - 1 - − - cdf - - - x - - - - - - - diff --git a/boost/libs/math/doc/equations/hazard.png b/boost/libs/math/doc/equations/hazard.png deleted file mode 100644 index b30dc8e6..00000000 Binary files a/boost/libs/math/doc/equations/hazard.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hazard.svg b/boost/libs/math/doc/equations/hazard.svg deleted file mode 100644 index 6145b431..00000000 --- a/boost/libs/math/doc/equations/hazard.svg +++ /dev/null @@ -1,2 +0,0 @@ - -hazard(x)=h(x)=pdf(x)1−cdf(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hermite_0.mml b/boost/libs/math/doc/equations/hermite_0.mml deleted file mode 100644 index abc2439e..00000000 --- a/boost/libs/math/doc/equations/hermite_0.mml +++ /dev/null @@ -1,67 +0,0 @@ - - - hermite - - - x - - - - = - - - H - n - - - - x - - - - = - - - - - − - 1 - - - n - - - e - - x - 2 - - - - - - d - 2 - - - - d - - x - 2 - - - - - e - - − - - x - 2 - - - - - - diff --git a/boost/libs/math/doc/equations/hermite_0.png b/boost/libs/math/doc/equations/hermite_0.png deleted file mode 100644 index ccc022ef..00000000 Binary files a/boost/libs/math/doc/equations/hermite_0.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hermite_0.svg b/boost/libs/math/doc/equations/hermite_0.svg deleted file mode 100644 index 00b1f7b1..00000000 --- a/boost/libs/math/doc/equations/hermite_0.svg +++ /dev/null @@ -1,2 +0,0 @@ - -hermite(x)=Hn(x)=(−1)nex2d2dx2e−x2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hermite_1.mml b/boost/libs/math/doc/equations/hermite_1.mml deleted file mode 100644 index 4ef3e8c6..00000000 --- a/boost/libs/math/doc/equations/hermite_1.mml +++ /dev/null @@ -1,48 +0,0 @@ - - - - H - - n - + - 1 - - - - - x - - - - = - - 2 - x - - H - n - - - - x - - - − - 2 - n - - H - - n - − - 1 - - - - - x - - - - - diff --git a/boost/libs/math/doc/equations/hermite_1.png b/boost/libs/math/doc/equations/hermite_1.png deleted file mode 100644 index ce444202..00000000 Binary files a/boost/libs/math/doc/equations/hermite_1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hermite_1.svg b/boost/libs/math/doc/equations/hermite_1.svg deleted file mode 100644 index 4f8aa84e..00000000 --- a/boost/libs/math/doc/equations/hermite_1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Hn+1(x)=2xHn(x)−2nHn−1(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/heuman_lambda.mml b/boost/libs/math/doc/equations/heuman_lambda.mml deleted file mode 100644 index abeb4114..00000000 --- a/boost/libs/math/doc/equations/heuman_lambda.mml +++ /dev/null @@ -1,224 +0,0 @@ - -]> - -heuman_lambda - - - - - - - - - - Λ - 0 - - - - φ - , - k - - - - - = - - - - - F - - - φ - , - - - 1 - − - - k - 2 - - - - - - - - K - - - - - 1 - − - - k - 2 - - - - - - - - + - - 2 - π - - K - - - k - - - Z - - - φ - , - - - 1 - − - - k - 2 - - - - - - - - - - - - - = - - - - 2 - π - - - - - - 1 - − - - k - 2 - - - - sin - φ - cos - φ - - Δ - - - - - R - F - - - - 0,1 - − - - k - 2 - - , - 1 - - - + - - - - k - 2 - - - - 3 - - Δ - 2 - - - - - R - J - - - - 0,1 - − - - k - 2 - - , - 1,1 - − - - - - k - 2 - - - - - Δ - 2 - - - - - - - - - ; - - Δ - 2 - - = - 1 - − - - - 1 - − - - k - 2 - - - - - sin - 2 - - φ - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/heuman_lambda.png b/boost/libs/math/doc/equations/heuman_lambda.png deleted file mode 100644 index 2d1cad42..00000000 Binary files a/boost/libs/math/doc/equations/heuman_lambda.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/heuman_lambda.svg b/boost/libs/math/doc/equations/heuman_lambda.svg deleted file mode 100644 index 80e63c90..00000000 --- a/boost/libs/math/doc/equations/heuman_lambda.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Λ0(φ,k)=F(φ,1−k2)K(1−k2)+2πK(k)Z(φ,1−k2)=2π(1−k2)sinφcosφΔ(RF(0,1−k2,1)+k23Δ2RJ(0,1−k2,1,1−k2Δ2));Δ2=1−(1−k2)sin2φ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hyperexponential_ccdf.mml b/boost/libs/math/doc/equations/hyperexponential_ccdf.mml deleted file mode 100644 index 0931a49c..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_ccdf.mml +++ /dev/null @@ -1,27 +0,0 @@ - - - - ∑ - - i - = - 1 - - k - - - α - i - - - e - - − - - λ - i - - x - - - diff --git a/boost/libs/math/doc/equations/hyperexponential_ccdf.png b/boost/libs/math/doc/equations/hyperexponential_ccdf.png deleted file mode 100644 index d748afd2..00000000 Binary files a/boost/libs/math/doc/equations/hyperexponential_ccdf.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hyperexponential_ccdf.svg b/boost/libs/math/doc/equations/hyperexponential_ccdf.svg deleted file mode 100644 index ddbcd8cc..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_ccdf.svg +++ /dev/null @@ -1,2 +0,0 @@ - -∑i=1kαie−λix \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hyperexponential_cdf.mml b/boost/libs/math/doc/equations/hyperexponential_cdf.mml deleted file mode 100644 index 5bbd2205..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_cdf.mml +++ /dev/null @@ -1,29 +0,0 @@ - - - 1 - − - - ∑ - - i - = - 1 - - k - - - α - i - - - e - - − - - λ - i - - x - - - diff --git a/boost/libs/math/doc/equations/hyperexponential_cdf.png b/boost/libs/math/doc/equations/hyperexponential_cdf.png deleted file mode 100644 index f2f846c6..00000000 Binary files a/boost/libs/math/doc/equations/hyperexponential_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hyperexponential_cdf.svg b/boost/libs/math/doc/equations/hyperexponential_cdf.svg deleted file mode 100644 index b2ecea59..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_cdf.svg +++ /dev/null @@ -1,2 +0,0 @@ - -1−∑i=1kαie−λix \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hyperexponential_kurtosis.mml b/boost/libs/math/doc/equations/hyperexponential_kurtosis.mml deleted file mode 100644 index 7878b819..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_kurtosis.mml +++ /dev/null @@ -1,282 +0,0 @@ - - - - - 24 - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - 4 - - - - ) - - − - 24 - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - 3 - - - - ) - - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - - - - ) - - + - 3 - - ( - - 2 - - ( - - 2 - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - 2 - - - - ) - - − - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - - - - - ) - - 2 - - - ) - - + - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - - - - - ) - - 2 - - - ) - - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - - - - - ) - - 2 - - - - - ( - - 2 - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - 2 - - - - ) - - − - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - - - - - ) - - 2 - - - - ) - - 2 - - - - diff --git a/boost/libs/math/doc/equations/hyperexponential_kurtosis.png b/boost/libs/math/doc/equations/hyperexponential_kurtosis.png deleted file mode 100644 index 767db322..00000000 Binary files a/boost/libs/math/doc/equations/hyperexponential_kurtosis.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hyperexponential_kurtosis.svg b/boost/libs/math/doc/equations/hyperexponential_kurtosis.svg deleted file mode 100644 index 9d71d065..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_kurtosis.svg +++ /dev/null @@ -1,2 +0,0 @@ - -24(∑i=1kαiλi4)−24(∑i=1kαiλi3)(∑i=1kαiλi)+3(2(2(∑i=1kαiλi2)−(∑i=1kαiλi)2)+(∑i=1kαiλi)2)(∑i=1kαiλi)2(2(∑i=1kαiλi2)−(∑i=1kαiλi)2)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hyperexponential_mean.mml b/boost/libs/math/doc/equations/hyperexponential_mean.mml deleted file mode 100644 index 4b338384..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_mean.mml +++ /dev/null @@ -1,22 +0,0 @@ - - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - - - diff --git a/boost/libs/math/doc/equations/hyperexponential_mean.png b/boost/libs/math/doc/equations/hyperexponential_mean.png deleted file mode 100644 index 020243dc..00000000 Binary files a/boost/libs/math/doc/equations/hyperexponential_mean.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hyperexponential_mean.svg b/boost/libs/math/doc/equations/hyperexponential_mean.svg deleted file mode 100644 index 3ff5ac2a..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_mean.svg +++ /dev/null @@ -1,2 +0,0 @@ - -∑i=1kαiλi \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hyperexponential_pdf.mml b/boost/libs/math/doc/equations/hyperexponential_pdf.mml deleted file mode 100644 index b67dad36..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_pdf.mml +++ /dev/null @@ -1,31 +0,0 @@ - - - - ∑ - - i - = - 1 - - k - - - α - i - - - λ - i - - - e - - − - - λ - i - - x - - - diff --git a/boost/libs/math/doc/equations/hyperexponential_pdf.png b/boost/libs/math/doc/equations/hyperexponential_pdf.png deleted file mode 100644 index a3df3202..00000000 Binary files a/boost/libs/math/doc/equations/hyperexponential_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hyperexponential_pdf.svg b/boost/libs/math/doc/equations/hyperexponential_pdf.svg deleted file mode 100644 index f15ba79d..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_pdf.svg +++ /dev/null @@ -1,2 +0,0 @@ - -∑i=1kαiλie−λix \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hyperexponential_skewness.mml b/boost/libs/math/doc/equations/hyperexponential_skewness.mml deleted file mode 100644 index 3a55d36f..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_skewness.mml +++ /dev/null @@ -1,230 +0,0 @@ - - - - - 6 - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - 3 - - - - ) - - − - - ( - - 3 - - ( - - 2 - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - 2 - - - - ) - - − - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - - - - - ) - - 2 - - - ) - - + - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - - - - - ) - - 2 - - - ) - - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - - - - ) - - - - - ( - - 2 - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - 2 - - - - ) - - − - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - - - - - ) - - 2 - - - - ) - - - - 3 - 2 - - - - - - diff --git a/boost/libs/math/doc/equations/hyperexponential_skewness.png b/boost/libs/math/doc/equations/hyperexponential_skewness.png deleted file mode 100644 index 8ac6463f..00000000 Binary files a/boost/libs/math/doc/equations/hyperexponential_skewness.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hyperexponential_skewness.svg b/boost/libs/math/doc/equations/hyperexponential_skewness.svg deleted file mode 100644 index 8e16b628..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_skewness.svg +++ /dev/null @@ -1,2 +0,0 @@ - -6(∑i=1kαiλi3)−(3(2(∑i=1kαiλi2)−(∑i=1kαiλi)2)+(∑i=1kαiλi)2)(∑i=1kαiλi)(2(∑i=1kαiλi2)−(∑i=1kαiλi)2)32 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hyperexponential_variance.mml b/boost/libs/math/doc/equations/hyperexponential_variance.mml deleted file mode 100644 index 6443129a..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_variance.mml +++ /dev/null @@ -1,59 +0,0 @@ - - - 2 - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - 2 - - - - ) - - − - - ( - - - ∑ - - i - = - 1 - - k - - - - α - i - - - λ - i - - - - - ) - - 2 - - diff --git a/boost/libs/math/doc/equations/hyperexponential_variance.png b/boost/libs/math/doc/equations/hyperexponential_variance.png deleted file mode 100644 index d06f0714..00000000 Binary files a/boost/libs/math/doc/equations/hyperexponential_variance.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hyperexponential_variance.svg b/boost/libs/math/doc/equations/hyperexponential_variance.svg deleted file mode 100644 index 88b2a377..00000000 --- a/boost/libs/math/doc/equations/hyperexponential_variance.svg +++ /dev/null @@ -1,2 +0,0 @@ - -2(∑i=1kαiλi2)−(∑i=1kαiλi)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hypergeometric1.mml b/boost/libs/math/doc/equations/hypergeometric1.mml deleted file mode 100644 index 91605ca2..00000000 --- a/boost/libs/math/doc/equations/hypergeometric1.mml +++ /dev/null @@ -1,117 +0,0 @@ - -]> - -hypergeometric1 - - - - - - f - - - k - ; - r - , - n - , - N - - - - = - - - - n - ! - r - ! - - - N - − - n - - - ! - - - N - − - r - - - ! - - - N - ! - k - ! - - - n - − - k - - - ! - - - r - − - k - - - ! - - - N - − - n - − - r - + - k - - - ! - - - - ; - - max - - - 0, - N - − - r - − - n - + - k - - - < - = - k - < - = - min - - - r - , - n - - - - - - diff --git a/boost/libs/math/doc/equations/hypergeometric1.png b/boost/libs/math/doc/equations/hypergeometric1.png deleted file mode 100644 index 8d40b1f5..00000000 Binary files a/boost/libs/math/doc/equations/hypergeometric1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hypergeometric1.svg b/boost/libs/math/doc/equations/hypergeometric1.svg deleted file mode 100644 index 584345b9..00000000 --- a/boost/libs/math/doc/equations/hypergeometric1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(k;r,n,N)=n!r!(N−n)!(N−r)!N!k!(n−k)!(r−k)!(N−n−r+k)!;max(0,N−r−n+k)<=k<=min(r,n) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hypergeometric2.mml b/boost/libs/math/doc/equations/hypergeometric2.mml deleted file mode 100644 index 6af01b75..00000000 --- a/boost/libs/math/doc/equations/hypergeometric2.mml +++ /dev/null @@ -1,50 +0,0 @@ - -]> - -hypergeometric2 - - - - - - N - ! - - = - - - ∏ - - i - = - 0 - - - - p - i - - < - N - - - - - - p - i - - - - - e - i - - - - - - - diff --git a/boost/libs/math/doc/equations/hypergeometric2.png b/boost/libs/math/doc/equations/hypergeometric2.png deleted file mode 100644 index 3629a13e..00000000 Binary files a/boost/libs/math/doc/equations/hypergeometric2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hypergeometric2.svg b/boost/libs/math/doc/equations/hypergeometric2.svg deleted file mode 100644 index 319fc666..00000000 --- a/boost/libs/math/doc/equations/hypergeometric2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -N!=∏i=0pi<Npiei \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hypergeometric3.mml b/boost/libs/math/doc/equations/hypergeometric3.mml deleted file mode 100644 index b8142468..00000000 --- a/boost/libs/math/doc/equations/hypergeometric3.mml +++ /dev/null @@ -1,60 +0,0 @@ - -]> - -hypergeometric3 - - - - - - - - e - i - - - - = - - - ∑ - - j - = - 1 - - - - p - - i - - j - - ≤ - N - - - flοor - - - - N - - - p - - i - - j - - - - - - - - - diff --git a/boost/libs/math/doc/equations/hypergeometric3.png b/boost/libs/math/doc/equations/hypergeometric3.png deleted file mode 100644 index b9f76aea..00000000 Binary files a/boost/libs/math/doc/equations/hypergeometric3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hypergeometric3.svg b/boost/libs/math/doc/equations/hypergeometric3.svg deleted file mode 100644 index 5b909c52..00000000 --- a/boost/libs/math/doc/equations/hypergeometric3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ei=∑j=1pij≤Nflοor(Npij) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hypergeometric4.mml b/boost/libs/math/doc/equations/hypergeometric4.mml deleted file mode 100644 index 6da4a437..00000000 --- a/boost/libs/math/doc/equations/hypergeometric4.mml +++ /dev/null @@ -1,60 +0,0 @@ - -]> - -hypergeometric4 - - - - - - f - - - k - ; - r - , - n - , - N - - - - = - - - ∏ - - i - = - 0 - - - - p - i - - < - N - - - - - - p - i - - - - - e - i - - - - - - - diff --git a/boost/libs/math/doc/equations/hypergeometric4.png b/boost/libs/math/doc/equations/hypergeometric4.png deleted file mode 100644 index a3e219b9..00000000 Binary files a/boost/libs/math/doc/equations/hypergeometric4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hypergeometric4.svg b/boost/libs/math/doc/equations/hypergeometric4.svg deleted file mode 100644 index f24e2257..00000000 --- a/boost/libs/math/doc/equations/hypergeometric4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(k;r,n,N)=∏i=0pi<Npiei \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hypergeometric5.mml b/boost/libs/math/doc/equations/hypergeometric5.mml deleted file mode 100644 index 4213309b..00000000 --- a/boost/libs/math/doc/equations/hypergeometric5.mml +++ /dev/null @@ -1,161 +0,0 @@ - -]> - -hypergeometric5 - - - - - - - - - f - - - k - + - 1 - ; - r - , - n - , - N - - - - - = - - - - - - - n - − - k - - - - - r - − - k - - - - - - - k - + - 1 - - - - - N - − - n - − - r - + - k - + - 1 - - - - - f - - - k - ; - r - , - n - , - N - - - - - - - f - - - k - − - 1 - ; - r - , - n - , - N - - - - - = - - - - - x - - - N - − - n - − - r - + - k - - - - - - - n - − - k - + - 1 - - - - - r - − - k - + - 1 - - - - - f - - - k - ; - r - , - n - , - N - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hypergeometric5.png b/boost/libs/math/doc/equations/hypergeometric5.png deleted file mode 100644 index 7e51d19c..00000000 Binary files a/boost/libs/math/doc/equations/hypergeometric5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hypergeometric5.svg b/boost/libs/math/doc/equations/hypergeometric5.svg deleted file mode 100644 index a41d2c70..00000000 --- a/boost/libs/math/doc/equations/hypergeometric5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(k+1;r,n,N)=(n−k)(r−k)(k+1)(N−n−r+k+1)f(k;r,n,N)f(k−1;r,n,N)=x(N−n−r+k)(n−k+1)(r−k+1)f(k;r,n,N) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hypergeometric6.mml b/boost/libs/math/doc/equations/hypergeometric6.mml deleted file mode 100644 index ad01d0ce..00000000 --- a/boost/libs/math/doc/equations/hypergeometric6.mml +++ /dev/null @@ -1,303 +0,0 @@ - -]> - -hypergeometric6 - - - - - - - - - mean - - - = - - - - - r - n - - N - - - - - - mode - - - = - - - floor - - - - - - - r - + - 1 - - - - - n - + - 1 - - - - - N - + - 2 - - - - - - - - - variance - - - = - - - - - r - - - - n - N - - - - - - 1 - − - - n - N - - - - - - N - − - r - - - - - - N - − - 1 - - - - - - - - skewness - - - = - - - - - - - N - − - 2 - n - - - - - - N - − - 1 - - - - - - N - − - 2 - r - - - - - - - r - n - - - N - − - n - - - - - N - − - r - - - - - - - N - − - 2 - - - - - - - - - kurtosis excess - - - = - - - - - - - - N - 2 - - - - N - − - 1 - - - - - r - - - N - − - 2 - - - - - N - − - 3 - - - - - N - − - r - - - - - - - - - - - N - - - N - + - 1 - - - − - 6 - N - - - N - − - r - - - - - n - - - N - − - n - - - - - + - - - 3 - r - - - N - − - r - - - - - N - + - 6 - - - - - - N - 2 - - - - − - 6 - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hypergeometric6.png b/boost/libs/math/doc/equations/hypergeometric6.png deleted file mode 100644 index 8c46a3f6..00000000 Binary files a/boost/libs/math/doc/equations/hypergeometric6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hypergeometric6.svg b/boost/libs/math/doc/equations/hypergeometric6.svg deleted file mode 100644 index d53504b3..00000000 --- a/boost/libs/math/doc/equations/hypergeometric6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -mean=rnNmode=floor((r+1)(n+1)N+2)variance=r(nN)(1−nN)(N−r)(N−1)skewness=(N−2n)(N−1)(N−2r)rn(N−n)(N−r)(N−2)kurtosis excess=(N2(N−1)r(N−2)(N−3)(N−r))(N(N+1)−6N(N−r)n(N−n)+3r(N−r)(N+6)N2−6) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hypot.mml b/boost/libs/math/doc/equations/hypot.mml deleted file mode 100644 index fea0cc06..00000000 --- a/boost/libs/math/doc/equations/hypot.mml +++ /dev/null @@ -1,29 +0,0 @@ - - - hypot - - - x - , - y - - - - = - - - - - x - 2 - - + - - y - 2 - - - - - - diff --git a/boost/libs/math/doc/equations/hypot.png b/boost/libs/math/doc/equations/hypot.png deleted file mode 100644 index 6937b930..00000000 Binary files a/boost/libs/math/doc/equations/hypot.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hypot.svg b/boost/libs/math/doc/equations/hypot.svg deleted file mode 100644 index a040d632..00000000 --- a/boost/libs/math/doc/equations/hypot.svg +++ /dev/null @@ -1,2 +0,0 @@ - -hypot(x,y)=x2+y2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/hypot2.mml b/boost/libs/math/doc/equations/hypot2.mml deleted file mode 100644 index d31f1c5d..00000000 --- a/boost/libs/math/doc/equations/hypot2.mml +++ /dev/null @@ -1,34 +0,0 @@ - - - hypot - - - x - , - y - - - - = - - x - - - 1 - + - - - - - y - x - - - - 2 - - - - - - diff --git a/boost/libs/math/doc/equations/hypot2.png b/boost/libs/math/doc/equations/hypot2.png deleted file mode 100644 index 38ae49da..00000000 Binary files a/boost/libs/math/doc/equations/hypot2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/hypot2.svg b/boost/libs/math/doc/equations/hypot2.svg deleted file mode 100644 index 0cdd3943..00000000 --- a/boost/libs/math/doc/equations/hypot2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -hypot(x,y)=x1+(yx)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta1.mml b/boost/libs/math/doc/equations/ibeta1.mml deleted file mode 100644 index fc98174d..00000000 --- a/boost/libs/math/doc/equations/ibeta1.mml +++ /dev/null @@ -1,63 +0,0 @@ - - - beta - - - a - , - b - , - x - - - - = - - - B - x - - - - a - , - b - - - - = - - - ∫ - - 0 - - x - - - t - - a - − - 1 - - - - - - 1 - − - t - - - - b - − - 1 - - - d - t - - - diff --git a/boost/libs/math/doc/equations/ibeta1.png b/boost/libs/math/doc/equations/ibeta1.png deleted file mode 100644 index 9be44f34..00000000 Binary files a/boost/libs/math/doc/equations/ibeta1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta1.svg b/boost/libs/math/doc/equations/ibeta1.svg deleted file mode 100644 index 7fd152bf..00000000 --- a/boost/libs/math/doc/equations/ibeta1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -beta(a,b,x)=Bx(a,b)=∫0xta−1(1−t)b−1dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta10.mml b/boost/libs/math/doc/equations/ibeta10.mml deleted file mode 100644 index 50e864e4..00000000 --- a/boost/libs/math/doc/equations/ibeta10.mml +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - I - x - - - - a - , - b - - - - - - = - - - - - I - x - - - - a - + - n - , - b - - - + - - x - a - - - - - 1 - − - x - - - b - - - ∑ - - j - = - 1 - - n - - - - Γ - - - a - + - b - + - j - − - 1 - - - - - Γ - - - b - - - Γ - - - a - + - j - - - - - - x - - j - − - 1 - - - - - - - - - = - - - - - I - x - - - - a - + - n - , - b - - - + - - - - x - a - - - - - 1 - − - x - - - b - - - a - - - ∑ - - j - = - 0 - - - n - − - 1 - - - - - - - - a - + - b - - - - - j - − - - - - - - - - - a - + - 1 - - - - - j - − - - - - - - - x - j - - - - - - - diff --git a/boost/libs/math/doc/equations/ibeta10.png b/boost/libs/math/doc/equations/ibeta10.png deleted file mode 100644 index 0585e1f8..00000000 Binary files a/boost/libs/math/doc/equations/ibeta10.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta10.svg b/boost/libs/math/doc/equations/ibeta10.svg deleted file mode 100644 index 977bc873..00000000 --- a/boost/libs/math/doc/equations/ibeta10.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ix(a,b)=Ix(a+n,b)+xa(1−x)b∑j=1nΓ(a+b+j−1)Γ(b)Γ(a+j)xj−1=Ix(a+n,b)+xa(1−x)ba∑j=0n−1(a+b)j−(a+1)j−xj \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta11.mml b/boost/libs/math/doc/equations/ibeta11.mml deleted file mode 100644 index c14b6c27..00000000 --- a/boost/libs/math/doc/equations/ibeta11.mml +++ /dev/null @@ -1,135 +0,0 @@ - - - - B - x - - - - a - , - b - - - - = - - - - - - - a - + - b - - - - - n - − - - - - - - - a - - - n - − - - - - - - - B - x - - - - a - + - n - , - b - - - + - - - - x - a - - - - - 1 - − - x - - - b - - - a - - - ∑ - - j - = - 0 - - - n - − - 1 - - - - - - - - a - + - b - - - - - j - − - - - - - - - - - a - + - 1 - - - - - j - − - - - - - - - x - j - - - - diff --git a/boost/libs/math/doc/equations/ibeta11.png b/boost/libs/math/doc/equations/ibeta11.png deleted file mode 100644 index 113650ed..00000000 Binary files a/boost/libs/math/doc/equations/ibeta11.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta11.svg b/boost/libs/math/doc/equations/ibeta11.svg deleted file mode 100644 index 7efa9e0d..00000000 --- a/boost/libs/math/doc/equations/ibeta11.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Bx(a,b)=(a+b)n−an−Bx(a+n,b)+xa(1−x)ba∑j=0n−1(a+b)j−(a+1)j−xj \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta12.mml b/boost/libs/math/doc/equations/ibeta12.mml deleted file mode 100644 index a080245a..00000000 --- a/boost/libs/math/doc/equations/ibeta12.mml +++ /dev/null @@ -1,77 +0,0 @@ - - - - I - x - - - - a - , - b - - - - = - - - ∑ - - i - = - k - + - 1 - - N - - - - N - ! - - - i - ! - - - N - − - i - - - ! - - - - x - i - - - y - - - N - − - i - - - - - ; - - k - = - a - − - 1, - N - = - a - + - b - − - 1 - - - diff --git a/boost/libs/math/doc/equations/ibeta12.png b/boost/libs/math/doc/equations/ibeta12.png deleted file mode 100644 index 757904be..00000000 Binary files a/boost/libs/math/doc/equations/ibeta12.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta12.svg b/boost/libs/math/doc/equations/ibeta12.svg deleted file mode 100644 index e5aed334..00000000 --- a/boost/libs/math/doc/equations/ibeta12.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ix(a,b)=∑i=k+1NN!i!(N−i)!xiy(N−i);k=a−1,N=a+b−1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta2.mml b/boost/libs/math/doc/equations/ibeta2.mml deleted file mode 100644 index bc4124b5..00000000 --- a/boost/libs/math/doc/equations/ibeta2.mml +++ /dev/null @@ -1,49 +0,0 @@ - - - betac - - - a - , - b - , - x - - - - = - - 1 - − - - B - x - - - - a - , - b - - - - = - - - B - - 1 - − - x - - - - - b - , - a - - - - - diff --git a/boost/libs/math/doc/equations/ibeta2.png b/boost/libs/math/doc/equations/ibeta2.png deleted file mode 100644 index 9fbfacaa..00000000 Binary files a/boost/libs/math/doc/equations/ibeta2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta2.svg b/boost/libs/math/doc/equations/ibeta2.svg deleted file mode 100644 index 850b55f0..00000000 --- a/boost/libs/math/doc/equations/ibeta2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -betac(a,b,x)=1−Bx(a,b)=B1−x(b,a) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta3.mml b/boost/libs/math/doc/equations/ibeta3.mml deleted file mode 100644 index dc7519b5..00000000 --- a/boost/libs/math/doc/equations/ibeta3.mml +++ /dev/null @@ -1,76 +0,0 @@ - - - ibeta - - - a - , - b - , - x - - - - = - - - I - x - - - - a - , - b - - - - = - - - 1 - - beta - - - a - , - b - - - - - - ∫ - - 0 - - x - - - t - - a - − - 1 - - - - - - 1 - − - t - - - - b - − - 1 - - - d - t - - - diff --git a/boost/libs/math/doc/equations/ibeta3.png b/boost/libs/math/doc/equations/ibeta3.png deleted file mode 100644 index 84a3bd89..00000000 Binary files a/boost/libs/math/doc/equations/ibeta3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta3.svg b/boost/libs/math/doc/equations/ibeta3.svg deleted file mode 100644 index a09e80a8..00000000 --- a/boost/libs/math/doc/equations/ibeta3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ibeta(a,b,x)=Ix(a,b)=1beta(a,b)∫0xta−1(1−t)b−1dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta4.mml b/boost/libs/math/doc/equations/ibeta4.mml deleted file mode 100644 index 0c21c5d3..00000000 --- a/boost/libs/math/doc/equations/ibeta4.mml +++ /dev/null @@ -1,49 +0,0 @@ - - - ibetac - - - a - , - b - , - x - - - - = - - 1 - − - - I - x - - - - a - , - b - - - - = - - - I - - 1 - − - x - - - - - b - , - a - - - - - diff --git a/boost/libs/math/doc/equations/ibeta4.png b/boost/libs/math/doc/equations/ibeta4.png deleted file mode 100644 index 7b137146..00000000 Binary files a/boost/libs/math/doc/equations/ibeta4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta4.svg b/boost/libs/math/doc/equations/ibeta4.svg deleted file mode 100644 index c47df905..00000000 --- a/boost/libs/math/doc/equations/ibeta4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ibetac(a,b,x)=1−Ix(a,b)=I1−x(b,a) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta5.mml b/boost/libs/math/doc/equations/ibeta5.mml deleted file mode 100644 index 281dbec5..00000000 --- a/boost/libs/math/doc/equations/ibeta5.mml +++ /dev/null @@ -1,198 +0,0 @@ - -]> - -ibeta5 - - - - - - - - - - I - x - - - - a - , - b - - - - - = - - - - - - x - a - - - y - b - - - - a - B - - - a - , - b - - - - - - - - 1 - - 1 - + - - - d - 1 - - - 1 - + - - - d - 2 - - - 1 - + - … - - - - - - - - - - - - - - d - - 2 - m - + - 1 - - - - - = - - - - - − - - - a - + - m - - - - - a - + - b - + - m - - - x - - - - - a - + - 2 - m - - - - - a - + - 2 - m - + - 1 - - - - - - - - - - d - - 2 - m - - - - - = - - - - - m - - - b - − - m - - - x - - - - - a - + - 2 - m - − - 1 - - - - - a - + - 2 - m - - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta5.png b/boost/libs/math/doc/equations/ibeta5.png deleted file mode 100644 index 37bde149..00000000 Binary files a/boost/libs/math/doc/equations/ibeta5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta5.svg b/boost/libs/math/doc/equations/ibeta5.svg deleted file mode 100644 index 13c0d203..00000000 --- a/boost/libs/math/doc/equations/ibeta5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ix(a,b)=xaybaB(a,b)(11+d11+d21+…)d2m+1=−(a+m)(a+b+m)x(a+2m)(a+2m+1)d2m=m(b−m)x(a+2m−1)(a+2m) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta6.mml b/boost/libs/math/doc/equations/ibeta6.mml deleted file mode 100644 index c7dc94c8..00000000 --- a/boost/libs/math/doc/equations/ibeta6.mml +++ /dev/null @@ -1,265 +0,0 @@ - -]> - -ibeta6 - - - - - - - - - - I - x - - - - a - , - b - - - - - = - - - - - - x - a - - - y - b - - - - B - - - - a - , - b - - - - - - - - - - α - 1 - - - - β - 1 - - + - - - α - 2 - - - - β - 2 - - + - - - α - 3 - - - - β - 3 - - + - … - - - - - - - - - - - - - - α - 1 - - = - 1 - - , - - - α - - m - + - 1 - - - - - - = - - - - - - - a - + - m - − - 1 - - - - - a - + - b - + - m - − - 1 - - - m - - - b - − - m - - - - x - 2 - - - - - - - a - + - 2 - m - − - 1 - - - 2 - - - - - - - - - β - - m - + - 1 - - - - - = - - - m - + - - - m - - - b - − - m - - - x - - - a - + - 2 - m - − - 1 - - - + - - - - - a - + - m - - - - - a - − - - - a - + - b - - - x - + - 1 - + - m - - - 2 - − - x - - - - - - - a - + - 2 - m - + - 1 - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta6.png b/boost/libs/math/doc/equations/ibeta6.png deleted file mode 100644 index dcd225bb..00000000 Binary files a/boost/libs/math/doc/equations/ibeta6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta6.svg b/boost/libs/math/doc/equations/ibeta6.svg deleted file mode 100644 index bcf9dacc..00000000 --- a/boost/libs/math/doc/equations/ibeta6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ix(a,b)=xaybB(a,b)(α1β1+α2β2+α3β3+…)α1=1,αm+1=(a+m−1)(a+b+m−1)m(b−m)x2(a+2m−1)2βm+1=m+m(b−m)xa+2m−1+(a+m)(a−(a+b)x+1+m(2−x))a+2m+1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta7.mml b/boost/libs/math/doc/equations/ibeta7.mml deleted file mode 100644 index edde6496..00000000 --- a/boost/libs/math/doc/equations/ibeta7.mml +++ /dev/null @@ -1,80 +0,0 @@ - - - - I - x - - - - a - , - b - - - - = - - - - - x - a - - - - B - - - a - , - b - - - - - - ∑ - - n - = - 1 - - ∞ - - - - - - - 1 - − - b - - - - - n - − - - - - - x - n - - - - - - a - + - n - - - n - ! - - - - - diff --git a/boost/libs/math/doc/equations/ibeta7.png b/boost/libs/math/doc/equations/ibeta7.png deleted file mode 100644 index 3cccef2f..00000000 Binary files a/boost/libs/math/doc/equations/ibeta7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta7.svg b/boost/libs/math/doc/equations/ibeta7.svg deleted file mode 100644 index 4bdc191d..00000000 --- a/boost/libs/math/doc/equations/ibeta7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ix(a,b)=xaB(a,b)∑n=1∞(1−b)n−xn(a+n)n! \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta8.mml b/boost/libs/math/doc/equations/ibeta8.mml deleted file mode 100644 index dbf25cc7..00000000 --- a/boost/libs/math/doc/equations/ibeta8.mml +++ /dev/null @@ -1,281 +0,0 @@ - -]> - -ibeta8 - - - - - - - - - - I - x - - - - a - , - b - - - - - ≈ - - - M - - ∑ - - n - = - 0 - - ∞ - - - p - n - - - J - n - - - - b - , - u - - - - ; - - a - > - b - - - - - M - - - = - - - - - H - - - b - , - u - - - Γ - - - a - + - b - - - - - Γ - - - a - - - - T - b - - - - - - - - H - - - c - , - u - - - - - = - - - - - - e - - − - u - - - - u - c - - - - Γ - - - a - - - - - - - - - T - - - = - - - a - + - - - b - − - 1 - - 2 - - - - - - u - - - = - - - − - T - ln - - - x - - - - - - - - p - 0 - - - - = - - - 1 - - - - - - p - n - - - - = - - - - - - - b - − - 1 - - - - - - - 2 - n - − - 1 - - - ! - - - + - - 1 - n - - - ∑ - - m - = - 1 - - - n - − - 1 - - - - - - m - b - − - n - - - - - - 2 - m - + - 1 - - - ! - - - - p - - n - − - m - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta8.png b/boost/libs/math/doc/equations/ibeta8.png deleted file mode 100644 index 26d36678..00000000 Binary files a/boost/libs/math/doc/equations/ibeta8.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta8.svg b/boost/libs/math/doc/equations/ibeta8.svg deleted file mode 100644 index a1a4f8d8..00000000 --- a/boost/libs/math/doc/equations/ibeta8.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ix(a,b)≈M∑n=0∞pnJn(b,u);a>bM=H(b,u)Γ(a+b)Γ(a)TbH(c,u)=e−uucΓ(a)T=a+b−12u=−Tln(x)p0=1pn=(b−1)(2n−1)!+1n∑m=1n−1(mb−n)(2m+1)!pn−m \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta9.mml b/boost/libs/math/doc/equations/ibeta9.mml deleted file mode 100644 index 43efb4ba..00000000 --- a/boost/libs/math/doc/equations/ibeta9.mml +++ /dev/null @@ -1,109 +0,0 @@ - - - - J - n - - - - b - , - u - - - = - - - - - u - - 2 - T - - - - - - 2 - n - - - - - Q - - - b - + - 2 - n - , - u - - - - - H - - - b - + - 2 - n - , - u - - - - - = - - - - - - − - ln - x - - 2 - - - - - 2 - n - - - - - Q - - - b - + - 2 - n - , - u - - - - - H - - - b - + - 2 - n - , - u - - - - - - - diff --git a/boost/libs/math/doc/equations/ibeta9.png b/boost/libs/math/doc/equations/ibeta9.png deleted file mode 100644 index 384e97c9..00000000 Binary files a/boost/libs/math/doc/equations/ibeta9.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta9.svg b/boost/libs/math/doc/equations/ibeta9.svg deleted file mode 100644 index 82f39ce8..00000000 --- a/boost/libs/math/doc/equations/ibeta9.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Jn(b,u)=(u2T)2nQ(b+2n,u)H(b+2n,u)=(−lnx2)2nQ(b+2n,u)H(b+2n,u) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta_inv1.mml b/boost/libs/math/doc/equations/ibeta_inv1.mml deleted file mode 100644 index c21f6d1e..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv1.mml +++ /dev/null @@ -1,155 +0,0 @@ - - - - I - - x - - - − - 1 - - - - - a - , - b - - - - ≈ - - - - - a - p - B - - - a - , - b - - - - - - - 1 - a - - - - + - - - b - − - 1 - - - a - + - 1 - - - - - - a - p - B - - - a - , - b - - - - - - - 2 - a - - - - + - - - - - b - − - 1 - - - - - - a - 2 - - + - 3 - b - a - − - a - + - 5 - b - − - 4 - - - - - 2 - - - - a - + - 1 - - - 2 - - - - a - + - 2 - - - - - - - - a - p - B - - - a - , - b - - - - - - - 3 - a - - - - - - diff --git a/boost/libs/math/doc/equations/ibeta_inv1.png b/boost/libs/math/doc/equations/ibeta_inv1.png deleted file mode 100644 index cb6a5b18..00000000 Binary files a/boost/libs/math/doc/equations/ibeta_inv1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta_inv1.svg b/boost/libs/math/doc/equations/ibeta_inv1.svg deleted file mode 100644 index abc7b86b..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ix−1(a,b)≈(apB(a,b))1a+b−1a+1(apB(a,b))2a+(b−1)(a2+3ba−a+5b−4)2(a+1)2(a+2)(apB(a,b))3a \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta_inv2.mml b/boost/libs/math/doc/equations/ibeta_inv2.mml deleted file mode 100644 index 0408ace8..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv2.mml +++ /dev/null @@ -1,28 +0,0 @@ - - - - I - x - - - - a - , - a - + - β - - - - - ; - - - β - < - - a - - - - diff --git a/boost/libs/math/doc/equations/ibeta_inv2.png b/boost/libs/math/doc/equations/ibeta_inv2.png deleted file mode 100644 index 48264349..00000000 Binary files a/boost/libs/math/doc/equations/ibeta_inv2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta_inv2.svg b/boost/libs/math/doc/equations/ibeta_inv2.svg deleted file mode 100644 index 8d92aa73..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ix(a,a+β);β<a \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta_inv3.mml b/boost/libs/math/doc/equations/ibeta_inv3.mml deleted file mode 100644 index 639a456e..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv3.mml +++ /dev/null @@ -1,33 +0,0 @@ - - - - I - x - - - - a - , - b - - - - - ; - - - 0.2 - ≤ - - a - - a - + - b - - - ≤ - 0.8 - - - diff --git a/boost/libs/math/doc/equations/ibeta_inv3.png b/boost/libs/math/doc/equations/ibeta_inv3.png deleted file mode 100644 index 2c620f17..00000000 Binary files a/boost/libs/math/doc/equations/ibeta_inv3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta_inv3.svg b/boost/libs/math/doc/equations/ibeta_inv3.svg deleted file mode 100644 index c4a5a673..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ix(a,b);0.2≤aa+b≤0.8 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta_inv4.mml b/boost/libs/math/doc/equations/ibeta_inv4.mml deleted file mode 100644 index 55936838..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv4.mml +++ /dev/null @@ -1,47 +0,0 @@ - - - - I - - x - - - − - 1 - - - - - a - , - b - - - - ≈ - - - - - a - p - B - - - a - , - b - - - - - - - 1 - a - - - - - - diff --git a/boost/libs/math/doc/equations/ibeta_inv4.png b/boost/libs/math/doc/equations/ibeta_inv4.png deleted file mode 100644 index 2cb9b7b2..00000000 Binary files a/boost/libs/math/doc/equations/ibeta_inv4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta_inv4.svg b/boost/libs/math/doc/equations/ibeta_inv4.svg deleted file mode 100644 index dae1fd68..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ix−1(a,b)≈(apB(a,b))1a \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta_inv5.mml b/boost/libs/math/doc/equations/ibeta_inv5.mml deleted file mode 100644 index 2833b1fd..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv5.mml +++ /dev/null @@ -1,50 +0,0 @@ - - - p - - = - - 1 - − - q - - = - - - I - x - - - - a - , - b - - - - = - - 1 - − - - I - y - - - - b - , - a - - - - ; - - y - = - 1 - − - x - - - diff --git a/boost/libs/math/doc/equations/ibeta_inv5.png b/boost/libs/math/doc/equations/ibeta_inv5.png deleted file mode 100644 index cbb03a92..00000000 Binary files a/boost/libs/math/doc/equations/ibeta_inv5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta_inv5.svg b/boost/libs/math/doc/equations/ibeta_inv5.svg deleted file mode 100644 index 4f908c54..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -p=1−q=Ix(a,b)=1−Iy(b,a);y=1−x \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta_inv6.mml b/boost/libs/math/doc/equations/ibeta_inv6.mml deleted file mode 100644 index edc01bf1..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv6.mml +++ /dev/null @@ -1,53 +0,0 @@ - - - y - - = - - 1 - − - - I - - x - - - − - 1 - - - - - a - , - b - - - - ≈ - - - - - b - q - B - - - a - , - b - - - - - - - 1 - b - - - - - - diff --git a/boost/libs/math/doc/equations/ibeta_inv6.png b/boost/libs/math/doc/equations/ibeta_inv6.png deleted file mode 100644 index 95d77fc3..00000000 Binary files a/boost/libs/math/doc/equations/ibeta_inv6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta_inv6.svg b/boost/libs/math/doc/equations/ibeta_inv6.svg deleted file mode 100644 index d4119d27..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -y=1−Ix−1(a,b)≈(bqB(a,b))1b \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta_inv7.mml b/boost/libs/math/doc/equations/ibeta_inv7.mml deleted file mode 100644 index 8a2512be..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv7.mml +++ /dev/null @@ -1,59 +0,0 @@ - - - - x - 0 - - - = - - - - x - g - - - 1 - + - - x - g - - - - - - ; - - - x - g - - - = - - - - - a - p - B - - - a - , - b - - - - - - - 1 - a - - - - - - diff --git a/boost/libs/math/doc/equations/ibeta_inv7.png b/boost/libs/math/doc/equations/ibeta_inv7.png deleted file mode 100644 index 868a5067..00000000 Binary files a/boost/libs/math/doc/equations/ibeta_inv7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta_inv7.svg b/boost/libs/math/doc/equations/ibeta_inv7.svg deleted file mode 100644 index 6ecfa883..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -x0=xg1+xg;xg=(apB(a,b))1a \ No newline at end of file diff --git a/boost/libs/math/doc/equations/ibeta_inv8.mml b/boost/libs/math/doc/equations/ibeta_inv8.mml deleted file mode 100644 index 77c50d6e..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv8.mml +++ /dev/null @@ -1,37 +0,0 @@ - - - y - - = - - - - - 1 - − - - p - - b - B - - - a - , - b - - - - - - - - - 1 - b - - - - - - diff --git a/boost/libs/math/doc/equations/ibeta_inv8.png b/boost/libs/math/doc/equations/ibeta_inv8.png deleted file mode 100644 index 6ffc2f04..00000000 Binary files a/boost/libs/math/doc/equations/ibeta_inv8.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/ibeta_inv8.svg b/boost/libs/math/doc/equations/ibeta_inv8.svg deleted file mode 100644 index ea845d8b..00000000 --- a/boost/libs/math/doc/equations/ibeta_inv8.svg +++ /dev/null @@ -1,2 +0,0 @@ - -y=(1−pbB(a,b))1b \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma1.mml b/boost/libs/math/doc/equations/igamma1.mml deleted file mode 100644 index 14851a4b..00000000 --- a/boost/libs/math/doc/equations/igamma1.mml +++ /dev/null @@ -1,51 +0,0 @@ - - - tgamma - - - a - , - z - - - - = - - Γ - - - a - , - z - - - - = - - - ∫ - - z - - ∞ - - - t - - a - − - 1 - - - - e - - − - t - - - d - t - - - diff --git a/boost/libs/math/doc/equations/igamma1.png b/boost/libs/math/doc/equations/igamma1.png deleted file mode 100644 index cbfef0e5..00000000 Binary files a/boost/libs/math/doc/equations/igamma1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma1.svg b/boost/libs/math/doc/equations/igamma1.svg deleted file mode 100644 index 74a50a12..00000000 --- a/boost/libs/math/doc/equations/igamma1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -tgamma(a,z)=Γ(a,z)=∫z∞ta−1e−tdt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma10.mml b/boost/libs/math/doc/equations/igamma10.mml deleted file mode 100644 index 39dda6d3..00000000 --- a/boost/libs/math/doc/equations/igamma10.mml +++ /dev/null @@ -1,57 +0,0 @@ - - - γ - - - a - , - x - - - - = - - - x - a - - - ∑ - - k - = - 0 - - ∞ - - - - - - - − - 1 - - - k - - - x - k - - - - - - a - + - k - - - k - ! - - - - - diff --git a/boost/libs/math/doc/equations/igamma10.png b/boost/libs/math/doc/equations/igamma10.png deleted file mode 100644 index d5d4ac76..00000000 Binary files a/boost/libs/math/doc/equations/igamma10.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma10.svg b/boost/libs/math/doc/equations/igamma10.svg deleted file mode 100644 index 10ef0623..00000000 --- a/boost/libs/math/doc/equations/igamma10.svg +++ /dev/null @@ -1,2 +0,0 @@ - -γ(a,x)=xa∑k=0∞(−1)kxk(a+k)k! \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma11.mml b/boost/libs/math/doc/equations/igamma11.mml deleted file mode 100644 index 00c9bf8d..00000000 --- a/boost/libs/math/doc/equations/igamma11.mml +++ /dev/null @@ -1,141 +0,0 @@ - -]> - -igamma11 - - - - - - - - - Γ - - - a - , - x - - - - - = - - - - - tgamma1pm1 - - - a - - - − - powm1 - - - x - , - a - - - - a - - + - - x - a - - - ∑ - - k - = - 1 - - ∞ - - - - - - - − - 1 - - - k - - - x - k - - - - - - a - + - k - - - k - ! - - - - - - - tgamma1pm1 - - - a - - - - - = - - - Γ - - - a - + - 1 - - - − - 1 - - - - - powm1 - - - x - , - a - - - - - = - - - - x - a - - − - 1 - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma11.png b/boost/libs/math/doc/equations/igamma11.png deleted file mode 100644 index eddf7b94..00000000 Binary files a/boost/libs/math/doc/equations/igamma11.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma11.svg b/boost/libs/math/doc/equations/igamma11.svg deleted file mode 100644 index 51d64213..00000000 --- a/boost/libs/math/doc/equations/igamma11.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Γ(a,x)=tgamma1pm1(a)−powm1(x,a)a+xa∑k=1∞(−1)kxk(a+k)k!tgamma1pm1(a)=Γ(a+1)−1powm1(x,a)=xa−1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma11b.mml b/boost/libs/math/doc/equations/igamma11b.mml deleted file mode 100644 index 369538b9..00000000 --- a/boost/libs/math/doc/equations/igamma11b.mml +++ /dev/null @@ -1,104 +0,0 @@ - - - gp1m1 - - - z - - - - = - - - - 1 - + - - - z - - g - + - 0.5 - - - - - - - - [ - - - - - - z - + - g - − - 0.5 - - e - - - - z - - − - 1 - ] - + - [ - L - - - z - - - − - 1 - ] - - - - - - z - + - g - − - 0.5 - - e - - - - z - - - - + - [ - - - 1 - + - - - z - - g - + - 0.5 - - - - - - − - 1 - ] - - - diff --git a/boost/libs/math/doc/equations/igamma11b.png b/boost/libs/math/doc/equations/igamma11b.png deleted file mode 100644 index 464be57c..00000000 Binary files a/boost/libs/math/doc/equations/igamma11b.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma11b.svg b/boost/libs/math/doc/equations/igamma11b.svg deleted file mode 100644 index 447ef00b..00000000 --- a/boost/libs/math/doc/equations/igamma11b.svg +++ /dev/null @@ -1,2 +0,0 @@ - -gp1m1(z)=1+zg+0.5([(z+g−0.5e)z−1]+[L(z)−1](z+g−0.5e)z)+[1+zg+0.5−1] \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma12.mml b/boost/libs/math/doc/equations/igamma12.mml deleted file mode 100644 index 058caaf6..00000000 --- a/boost/libs/math/doc/equations/igamma12.mml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - x - a - - - e - - − - x - - - - - Γ - - - a - - - - - - = - - - e - - x - − - a - - - - - - - x - - a - + - g - − - 0.5 - - - - - a - - - - - - a - + - g - − - 0.5 - - e - - - - - 1 - - L - - - a - - - - - - - diff --git a/boost/libs/math/doc/equations/igamma12.png b/boost/libs/math/doc/equations/igamma12.png deleted file mode 100644 index 653bb9cf..00000000 Binary files a/boost/libs/math/doc/equations/igamma12.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma12.svg b/boost/libs/math/doc/equations/igamma12.svg deleted file mode 100644 index 4b8e4b75..00000000 --- a/boost/libs/math/doc/equations/igamma12.svg +++ /dev/null @@ -1,2 +0,0 @@ - -xae−xΓ(a)=ex−a(xa+g−0.5)aa+g−0.5e1L(a) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma13.mml b/boost/libs/math/doc/equations/igamma13.mml deleted file mode 100644 index 4f3b51f1..00000000 --- a/boost/libs/math/doc/equations/igamma13.mml +++ /dev/null @@ -1,104 +0,0 @@ - - - - e - - x - − - a - - - - - - - x - - a - + - g - − - 0.5 - - - - - a - - - = - - - e - - - a - log1pmx - - - - - x - − - a - − - g - + - 0.5 - - - a - + - g - − - 0.5 - - - - - + - - - x - - - 0.5 - − - g - - - - - a - + - g - − - 0.5 - - - - - - - ; - - log1pmx - - - z - - - = - ln - - - 1 - + - z - - - − - z - - - diff --git a/boost/libs/math/doc/equations/igamma13.png b/boost/libs/math/doc/equations/igamma13.png deleted file mode 100644 index dc6baf3c..00000000 Binary files a/boost/libs/math/doc/equations/igamma13.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma13.svg b/boost/libs/math/doc/equations/igamma13.svg deleted file mode 100644 index ae792a78..00000000 --- a/boost/libs/math/doc/equations/igamma13.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ex−a(xa+g−0.5)a=e(alog1pmx(x−a−g+0.5a+g−0.5)+x(0.5−g)a+g−0.5);log1pmx(z)=ln(1+z)−z \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma16.mml b/boost/libs/math/doc/equations/igamma16.mml deleted file mode 100644 index 3ba06dfd..00000000 --- a/boost/libs/math/doc/equations/igamma16.mml +++ /dev/null @@ -1,61 +0,0 @@ - - - P - - - a - , - x - - - - = - - - 1 - 2 - - erfc - - - - y - - - - − - - - e - - − - y - - - - - - 2 - π - a - - - - - T - - - a - , - λ - - - - ; - - λ - ≤ - 1 - - - diff --git a/boost/libs/math/doc/equations/igamma16.png b/boost/libs/math/doc/equations/igamma16.png deleted file mode 100644 index 2408c51f..00000000 Binary files a/boost/libs/math/doc/equations/igamma16.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma16.svg b/boost/libs/math/doc/equations/igamma16.svg deleted file mode 100644 index 77a2a0e9..00000000 --- a/boost/libs/math/doc/equations/igamma16.svg +++ /dev/null @@ -1,2 +0,0 @@ - -P(a,x)=12erfc(y)−e−y2πaT(a,λ);λ≤1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma17.mml b/boost/libs/math/doc/equations/igamma17.mml deleted file mode 100644 index 8309cced..00000000 --- a/boost/libs/math/doc/equations/igamma17.mml +++ /dev/null @@ -1,61 +0,0 @@ - - - Q - - - a - , - x - - - - = - - - 1 - 2 - - erfc - - - - y - - - - + - - - e - - − - y - - - - - - 2 - π - a - - - - - T - - - a - , - λ - - - - ; - - λ - > - 1 - - - diff --git a/boost/libs/math/doc/equations/igamma17.png b/boost/libs/math/doc/equations/igamma17.png deleted file mode 100644 index 17e2aff3..00000000 Binary files a/boost/libs/math/doc/equations/igamma17.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma17.svg b/boost/libs/math/doc/equations/igamma17.svg deleted file mode 100644 index f1676bcf..00000000 --- a/boost/libs/math/doc/equations/igamma17.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Q(a,x)=12erfc(y)+e−y2πaT(a,λ);λ>1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma18.mml b/boost/libs/math/doc/equations/igamma18.mml deleted file mode 100644 index 929f54f6..00000000 --- a/boost/libs/math/doc/equations/igamma18.mml +++ /dev/null @@ -1,57 +0,0 @@ - - - λ - = - - x - a - - - , - - y - = - a - - - λ - − - 1 - − - ln - λ - - - = - − - a - - - ln - - - 1 - + - σ - - - − - σ - - - - ; - - σ - = - - - x - − - a - - a - - - - diff --git a/boost/libs/math/doc/equations/igamma18.png b/boost/libs/math/doc/equations/igamma18.png deleted file mode 100644 index cb175859..00000000 Binary files a/boost/libs/math/doc/equations/igamma18.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma18.svg b/boost/libs/math/doc/equations/igamma18.svg deleted file mode 100644 index 83fe5d57..00000000 --- a/boost/libs/math/doc/equations/igamma18.svg +++ /dev/null @@ -1,2 +0,0 @@ - -λ=xa,y=a(λ−1−lnλ)=−a(ln(1+σ)−σ);σ=x−aa \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma19.mml b/boost/libs/math/doc/equations/igamma19.mml deleted file mode 100644 index 433cfdb8..00000000 --- a/boost/libs/math/doc/equations/igamma19.mml +++ /dev/null @@ -1,75 +0,0 @@ - - - T - - - a - , - λ - - - - = - - - ∑ - - k - = - 0 - - N - - - - - ∑ - - n - = - 0 - - M - - - C - - k - - n - - - z - n - - - - - a - - − - k - - - - ; - - z - = - sign - - - λ - − - 1 - - - - - 2 - σ - - - - - diff --git a/boost/libs/math/doc/equations/igamma19.png b/boost/libs/math/doc/equations/igamma19.png deleted file mode 100644 index ffee42de..00000000 Binary files a/boost/libs/math/doc/equations/igamma19.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma19.svg b/boost/libs/math/doc/equations/igamma19.svg deleted file mode 100644 index 86edf9ef..00000000 --- a/boost/libs/math/doc/equations/igamma19.svg +++ /dev/null @@ -1,2 +0,0 @@ - -T(a,λ)=∑k=0N(∑n=0MCknzn)a−k;z=sign(λ−1)2σ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma1f.mml b/boost/libs/math/doc/equations/igamma1f.mml deleted file mode 100644 index 860a586c..00000000 --- a/boost/libs/math/doc/equations/igamma1f.mml +++ /dev/null @@ -1,57 +0,0 @@ - - - Q - - - a - , - x - - - - = - - - e - - − - x - - - - ∑ - - n - = - 0 - - - a - − - 1 - - - - - - x - n - - - - n - ! - - - - ; - - a - ∈ - - ℕ - + - - - - diff --git a/boost/libs/math/doc/equations/igamma1f.png b/boost/libs/math/doc/equations/igamma1f.png deleted file mode 100644 index 982cf3b9..00000000 Binary files a/boost/libs/math/doc/equations/igamma1f.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma1f.svg b/boost/libs/math/doc/equations/igamma1f.svg deleted file mode 100644 index 87ae3ae0..00000000 --- a/boost/libs/math/doc/equations/igamma1f.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Q(a,x)=e−x∑n=0a−1xnn!;a∈ℕ+ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma2.mml b/boost/libs/math/doc/equations/igamma2.mml deleted file mode 100644 index 03afa311..00000000 --- a/boost/libs/math/doc/equations/igamma2.mml +++ /dev/null @@ -1,51 +0,0 @@ - - - tgamma_lower - - - a - , - z - - - - = - - γ - - - a - , - z - - - - = - - - ∫ - - 0 - - z - - - t - - a - − - 1 - - - - e - - − - t - - - d - t - - - diff --git a/boost/libs/math/doc/equations/igamma2.png b/boost/libs/math/doc/equations/igamma2.png deleted file mode 100644 index b32a9e33..00000000 Binary files a/boost/libs/math/doc/equations/igamma2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma2.svg b/boost/libs/math/doc/equations/igamma2.svg deleted file mode 100644 index 1c2b976e..00000000 --- a/boost/libs/math/doc/equations/igamma2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -tgamma_lower(a,z)=γ(a,z)=∫0zta−1e−tdt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma2f.mml b/boost/libs/math/doc/equations/igamma2f.mml deleted file mode 100644 index ca8da887..00000000 --- a/boost/libs/math/doc/equations/igamma2f.mml +++ /dev/null @@ -1,98 +0,0 @@ - - - Q - - - a - , - x - - - - = - - erfc - - - - x - - - - + - - - e - - − - x - - - - - π - x - - - - - ∑ - - n - = - 1 - - i - - - - x - n - - - - - 1 - − - - 1 - 2 - - - - … - - - n - − - - 1 - 2 - - - - - - - ; - - a - = - i - + - - 1 - 2 - - - ; - - i - ∈ - - ℕ - + - - - - diff --git a/boost/libs/math/doc/equations/igamma2f.png b/boost/libs/math/doc/equations/igamma2f.png deleted file mode 100644 index a3a99441..00000000 Binary files a/boost/libs/math/doc/equations/igamma2f.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma2f.svg b/boost/libs/math/doc/equations/igamma2f.svg deleted file mode 100644 index 80f927af..00000000 --- a/boost/libs/math/doc/equations/igamma2f.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Q(a,x)=erfc(x)+e−xπx∑n=1ixn(1−12)…(n−12);a=i+12;i∈ℕ+ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma3.mml b/boost/libs/math/doc/equations/igamma3.mml deleted file mode 100644 index 6824ac5b..00000000 --- a/boost/libs/math/doc/equations/igamma3.mml +++ /dev/null @@ -1,85 +0,0 @@ - - - gamma_q - - - a - , - z - - - - = - - Q - - - a - , - z - - - - = - - - - Γ - - - a - , - z - - - - - Γ - - - a - - - - - - = - - - 1 - - Γ - - - a - - - - - - ∫ - - z - - ∞ - - - t - - a - − - 1 - - - - e - - − - t - - - d - t - - - diff --git a/boost/libs/math/doc/equations/igamma3.png b/boost/libs/math/doc/equations/igamma3.png deleted file mode 100644 index dda32ae2..00000000 Binary files a/boost/libs/math/doc/equations/igamma3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma3.svg b/boost/libs/math/doc/equations/igamma3.svg deleted file mode 100644 index 6cf72944..00000000 --- a/boost/libs/math/doc/equations/igamma3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -gamma_q(a,z)=Q(a,z)=Γ(a,z)Γ(a)=1Γ(a)∫z∞ta−1e−tdt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma4.mml b/boost/libs/math/doc/equations/igamma4.mml deleted file mode 100644 index 11a32394..00000000 --- a/boost/libs/math/doc/equations/igamma4.mml +++ /dev/null @@ -1,85 +0,0 @@ - - - gamma_p - - - a - , - z - - - - = - - P - - - a - , - z - - - - = - - - - γ - - - a - , - z - - - - - Γ - - - a - - - - - - = - - - 1 - - Γ - - - a - - - - - - ∫ - - 0 - - z - - - t - - a - − - 1 - - - - e - - − - t - - - d - t - - - diff --git a/boost/libs/math/doc/equations/igamma4.png b/boost/libs/math/doc/equations/igamma4.png deleted file mode 100644 index e593a2a3..00000000 Binary files a/boost/libs/math/doc/equations/igamma4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma4.svg b/boost/libs/math/doc/equations/igamma4.svg deleted file mode 100644 index d5f54d1a..00000000 --- a/boost/libs/math/doc/equations/igamma4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -gamma_p(a,z)=P(a,z)=γ(a,z)Γ(a)=1Γ(a)∫0zta−1e−tdt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma5.mml b/boost/libs/math/doc/equations/igamma5.mml deleted file mode 100644 index 6075fe04..00000000 --- a/boost/libs/math/doc/equations/igamma5.mml +++ /dev/null @@ -1,26 +0,0 @@ - - - Q - - - a - , - x - - - + - P - - - a - , - x - - - - = - - 1 - - - diff --git a/boost/libs/math/doc/equations/igamma5.png b/boost/libs/math/doc/equations/igamma5.png deleted file mode 100644 index 30d59924..00000000 Binary files a/boost/libs/math/doc/equations/igamma5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma5.svg b/boost/libs/math/doc/equations/igamma5.svg deleted file mode 100644 index 2c51fb50..00000000 --- a/boost/libs/math/doc/equations/igamma5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Q(a,x)+P(a,x)=1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma6.mml b/boost/libs/math/doc/equations/igamma6.mml deleted file mode 100644 index b617ec16..00000000 --- a/boost/libs/math/doc/equations/igamma6.mml +++ /dev/null @@ -1,31 +0,0 @@ - - - Γ - - - a - , - z - - - + - γ - - - a - , - z - - - - = - - Γ - - - a - - - - - diff --git a/boost/libs/math/doc/equations/igamma6.png b/boost/libs/math/doc/equations/igamma6.png deleted file mode 100644 index 14ebd66c..00000000 Binary files a/boost/libs/math/doc/equations/igamma6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma6.svg b/boost/libs/math/doc/equations/igamma6.svg deleted file mode 100644 index 84c2845b..00000000 --- a/boost/libs/math/doc/equations/igamma6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Γ(a,z)+γ(a,z)=Γ(a) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma7.mml b/boost/libs/math/doc/equations/igamma7.mml deleted file mode 100644 index e58ec272..00000000 --- a/boost/libs/math/doc/equations/igamma7.mml +++ /dev/null @@ -1,70 +0,0 @@ - - - Q - - - a - , - z - - - - = - - - - Γ - - - a - , - z - - - - - Γ - - - a - - - - - - , - - P - - - a - , - z - - - - = - - - - γ - - - a - , - z - - - - - Γ - - - a - - - - - - - diff --git a/boost/libs/math/doc/equations/igamma7.png b/boost/libs/math/doc/equations/igamma7.png deleted file mode 100644 index 0e871e9d..00000000 Binary files a/boost/libs/math/doc/equations/igamma7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma7.svg b/boost/libs/math/doc/equations/igamma7.svg deleted file mode 100644 index b833b364..00000000 --- a/boost/libs/math/doc/equations/igamma7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Q(a,z)=Γ(a,z)Γ(a),P(a,z)=γ(a,z)Γ(a) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma8.mml b/boost/libs/math/doc/equations/igamma8.mml deleted file mode 100644 index b3084311..00000000 --- a/boost/libs/math/doc/equations/igamma8.mml +++ /dev/null @@ -1,108 +0,0 @@ - - - γ - - - a - , - x - - - - = - - - x - a - - - e - - − - x - - - - ∑ - - k - = - 0 - - ∞ - - - - - Γ - - - a - - - - - Γ - - - a - + - k - + - 1 - - - - - - - x - n - - - = - - - x - a - - - e - - − - x - - - - ∑ - - k - = - 0 - - ∞ - - - - - x - n - - - - - a - - - k - + - 1 - - − - - - - - - - diff --git a/boost/libs/math/doc/equations/igamma8.png b/boost/libs/math/doc/equations/igamma8.png deleted file mode 100644 index 37658356..00000000 Binary files a/boost/libs/math/doc/equations/igamma8.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma8.svg b/boost/libs/math/doc/equations/igamma8.svg deleted file mode 100644 index be6b0b26..00000000 --- a/boost/libs/math/doc/equations/igamma8.svg +++ /dev/null @@ -1,2 +0,0 @@ - -γ(a,x)=xae−x∑k=0∞Γ(a)Γ(a+k+1)xn=xae−x∑k=0∞xnak+1− \ No newline at end of file diff --git a/boost/libs/math/doc/equations/igamma9.mml b/boost/libs/math/doc/equations/igamma9.mml deleted file mode 100644 index 9f4f7086..00000000 --- a/boost/libs/math/doc/equations/igamma9.mml +++ /dev/null @@ -1,111 +0,0 @@ - - - Γ - - - a - , - x - - - - = - - - - - x - a - - - e - - − - x - - - - - x - − - a - + - 1 - + - - - - a - k - - - - - b - k - - + - - - - a - - k - + - 1 - - - - - - b - - k - + - 1 - - - + - … - - - - - - - - ; - - - a - k - - = - k - - - a - - - k - - - - ; - - - b - k - - = - x - − - a - + - 2 - k - + - 1 - - - - diff --git a/boost/libs/math/doc/equations/igamma9.png b/boost/libs/math/doc/equations/igamma9.png deleted file mode 100644 index f129d662..00000000 Binary files a/boost/libs/math/doc/equations/igamma9.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/igamma9.svg b/boost/libs/math/doc/equations/igamma9.svg deleted file mode 100644 index 9f5cd0e0..00000000 --- a/boost/libs/math/doc/equations/igamma9.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Γ(a,x)=xae−xx−a+1+akbk+ak+1bk+1+…;ak=k(a−k);bk=x−a+2k+1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/jacobi1.mml b/boost/libs/math/doc/equations/jacobi1.mml deleted file mode 100644 index 9683446c..00000000 --- a/boost/libs/math/doc/equations/jacobi1.mml +++ /dev/null @@ -1,51 +0,0 @@ - -]> - -jacobi1 - - - - - - u - - = - - - ∫ - - 0 - - φ - - - - d - φ - - - - - - 1 - − - - k - 2 - - - sin - 2 - - φ - - - - - - - - - diff --git a/boost/libs/math/doc/equations/jacobi1.png b/boost/libs/math/doc/equations/jacobi1.png deleted file mode 100644 index f844e7e4..00000000 Binary files a/boost/libs/math/doc/equations/jacobi1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/jacobi1.svg b/boost/libs/math/doc/equations/jacobi1.svg deleted file mode 100644 index 2041faff..00000000 --- a/boost/libs/math/doc/equations/jacobi1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -u=∫0φdφ(1−k2sin2φ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/jacobi2.mml b/boost/libs/math/doc/equations/jacobi2.mml deleted file mode 100644 index 5819c74c..00000000 --- a/boost/libs/math/doc/equations/jacobi2.mml +++ /dev/null @@ -1,92 +0,0 @@ - -]> - -jacobi2 - - - - - - - - - s - n - - - u - , - k - - - - - = - - - sin - φ - - - - - c - n - - - u - , - k - - - - - = - - - cos - φ - - - - - d - n - - - u - , - k - - - - - = - - - - - - 1 - − - - k - 2 - - - sin - 2 - - φ - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/jacobi2.png b/boost/libs/math/doc/equations/jacobi2.png deleted file mode 100644 index 84d96aae..00000000 Binary files a/boost/libs/math/doc/equations/jacobi2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/jacobi2.svg b/boost/libs/math/doc/equations/jacobi2.svg deleted file mode 100644 index d3c1d4bc..00000000 --- a/boost/libs/math/doc/equations/jacobi2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -sn(u,k)=sinφcn(u,k)=cosφdn(u,k)=(1−k2sin2φ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/jacobi3.mml b/boost/libs/math/doc/equations/jacobi3.mml deleted file mode 100644 index 7acd615b..00000000 --- a/boost/libs/math/doc/equations/jacobi3.mml +++ /dev/null @@ -1,135 +0,0 @@ - -]> - -jacobi3 - - - - - - - - - μ - - - = - - - - 1 - - - k - 2 - - - - - - - - ν - - - = - - - u - k - - - - - s - n - - - u - , - k - - - - - = - - - - - s - n - - - ν - , - μ - - - - k - - - - - - c - n - - - u - , - k - - - - - = - - - d - n - - - ν - , - μ - - - - - - - d - n - - - u - , - k - - - - - = - - - c - n - - - ν - , - k - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/jacobi3.png b/boost/libs/math/doc/equations/jacobi3.png deleted file mode 100644 index 460175ae..00000000 Binary files a/boost/libs/math/doc/equations/jacobi3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/jacobi3.svg b/boost/libs/math/doc/equations/jacobi3.svg deleted file mode 100644 index 67c50bee..00000000 --- a/boost/libs/math/doc/equations/jacobi3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -μ=1k2ν=uksn(u,k)=sn(ν,μ)kcn(u,k)=dn(ν,μ)dn(u,k)=cn(ν,k) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/jacobi4.mml b/boost/libs/math/doc/equations/jacobi4.mml deleted file mode 100644 index fee4e4d2..00000000 --- a/boost/libs/math/doc/equations/jacobi4.mml +++ /dev/null @@ -1,170 +0,0 @@ - -]> - -jacobi4 - - - - - - - - - s - n - - - u - , - k - - - - - ≈ - - - sin - - - u - - - − - - 1 - 4 - - - k - 2 - - - - u - − - sin - - - u - - - cos - - - u - - - - - cos - - - u - - - - - - - c - n - - - u - , - k - - - - - ≈ - - - cos - - - u - - - + - - 1 - 4 - - - k - 2 - - - - u - − - sin - - - u - - - cos - - - u - - - - - sin - - - u - - - - - - - d - n - - - u - , - k - - - - - ≈ - - - 1 - − - - 1 - 2 - - - k - 2 - - sin - - - 2 - - - - u - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/jacobi4.png b/boost/libs/math/doc/equations/jacobi4.png deleted file mode 100644 index f950a69c..00000000 Binary files a/boost/libs/math/doc/equations/jacobi4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/jacobi4.svg b/boost/libs/math/doc/equations/jacobi4.svg deleted file mode 100644 index 4752cfb8..00000000 --- a/boost/libs/math/doc/equations/jacobi4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -sn(u,k)≈sin(u)−14k2(u−sin(u)cos(u))cos(u)cn(u,k)≈cos(u)+14k2(u−sin(u)cos(u))sin(u)dn(u,k)≈1−12k2sin2(u) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/jacobi_zeta.mml b/boost/libs/math/doc/equations/jacobi_zeta.mml deleted file mode 100644 index c9222927..00000000 --- a/boost/libs/math/doc/equations/jacobi_zeta.mml +++ /dev/null @@ -1,142 +0,0 @@ - -]> - -jacobi_zeta - - - - - - - - - Z - - - φ - , - k - - - - - = - - - E - - - φ - , - k - - - − - - - E - - - k - - - F - - - φ - , - k - - - - - K - - - k - - - - - - - - - - - - = - - - - - - k - 2 - - - - 3 - K - - - k - - - - - sin - φ - cos - φ - - - - - 1 - − - - k - 2 - - - sin - 2 - - φ - - - - - - R - J - - - - 0,1 - − - - k - 2 - - , - 1,1 - − - - k - 2 - - - sin - 2 - - φ - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/jacobi_zeta.png b/boost/libs/math/doc/equations/jacobi_zeta.png deleted file mode 100644 index ab707019..00000000 Binary files a/boost/libs/math/doc/equations/jacobi_zeta.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/jacobi_zeta.svg b/boost/libs/math/doc/equations/jacobi_zeta.svg deleted file mode 100644 index 24f707a6..00000000 --- a/boost/libs/math/doc/equations/jacobi_zeta.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Z(φ,k)=E(φ,k)−E(k)F(φ,k)K(k)=k23K(k)sinφcosφ(1−k2sin2φ)RJ(0,1−k2,1,1−k2sin2φ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/laguerre_0.mml b/boost/libs/math/doc/equations/laguerre_0.mml deleted file mode 100644 index f3b4dbaa..00000000 --- a/boost/libs/math/doc/equations/laguerre_0.mml +++ /dev/null @@ -1,70 +0,0 @@ - - - laguerre - - - n - , - x - - - - = - - - L - n - - - - x - - - - = - - - - - e - x - - - - n - ! - - - - - - d - n - - - - d - - x - n - - - - - - - x - n - - - e - - − - x - - - - - - - diff --git a/boost/libs/math/doc/equations/laguerre_0.png b/boost/libs/math/doc/equations/laguerre_0.png deleted file mode 100644 index d3d674a2..00000000 Binary files a/boost/libs/math/doc/equations/laguerre_0.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/laguerre_0.svg b/boost/libs/math/doc/equations/laguerre_0.svg deleted file mode 100644 index e0742195..00000000 --- a/boost/libs/math/doc/equations/laguerre_0.svg +++ /dev/null @@ -1,2 +0,0 @@ - -laguerre(n,x)=Ln(x)=exn!dndxn(xne−x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/laguerre_1.mml b/boost/libs/math/doc/equations/laguerre_1.mml deleted file mode 100644 index 830db060..00000000 --- a/boost/libs/math/doc/equations/laguerre_1.mml +++ /dev/null @@ -1,70 +0,0 @@ - - - laguerre - - - n - , - m - , - x - - - - = - - - L - - n - - m - - - - x - - - - = - - - - - − - 1 - - - m - - - - - d - m - - - - d - - x - m - - - - - L - - n - + - m - - - - - x - - - - - diff --git a/boost/libs/math/doc/equations/laguerre_1.png b/boost/libs/math/doc/equations/laguerre_1.png deleted file mode 100644 index 3a0f7233..00000000 Binary files a/boost/libs/math/doc/equations/laguerre_1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/laguerre_1.svg b/boost/libs/math/doc/equations/laguerre_1.svg deleted file mode 100644 index 3e6212b6..00000000 --- a/boost/libs/math/doc/equations/laguerre_1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -laguerre(n,m,x)=Lnm(x)=(−1)mdmdxmLn+m(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/laguerre_2.mml b/boost/libs/math/doc/equations/laguerre_2.mml deleted file mode 100644 index 13dccc1b..00000000 --- a/boost/libs/math/doc/equations/laguerre_2.mml +++ /dev/null @@ -1,66 +0,0 @@ - - - - L - - n - + - 1 - - - - - x - - - - = - - - - - - 2 - n - + - 1 - − - x - - - - L - n - - - - x - - - − - n - - L - - n - − - 1 - - - - - x - - - - - - n - + - 1 - - - - - - diff --git a/boost/libs/math/doc/equations/laguerre_2.png b/boost/libs/math/doc/equations/laguerre_2.png deleted file mode 100644 index 21da6e4b..00000000 Binary files a/boost/libs/math/doc/equations/laguerre_2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/laguerre_2.svg b/boost/libs/math/doc/equations/laguerre_2.svg deleted file mode 100644 index d8f45761..00000000 --- a/boost/libs/math/doc/equations/laguerre_2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ln+1(x)=(2n+1−x)Ln(x)−nLn−1(x)(n+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/laguerre_3.mml b/boost/libs/math/doc/equations/laguerre_3.mml deleted file mode 100644 index c4a35e05..00000000 --- a/boost/libs/math/doc/equations/laguerre_3.mml +++ /dev/null @@ -1,78 +0,0 @@ - - - - L - - n - + - 1 - - m - - - - x - - - - = - - - - m - + - 2 - n - + - 1 - − - x - - - n - + - 1 - - - - L - - n - - m - - - - x - - - − - - - m - + - n - - - n - + - 1 - - - - L - - n - − - 1 - - m - - - - x - - - - - diff --git a/boost/libs/math/doc/equations/laguerre_3.png b/boost/libs/math/doc/equations/laguerre_3.png deleted file mode 100644 index 58590492..00000000 Binary files a/boost/libs/math/doc/equations/laguerre_3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/laguerre_3.svg b/boost/libs/math/doc/equations/laguerre_3.svg deleted file mode 100644 index a414bb78..00000000 --- a/boost/libs/math/doc/equations/laguerre_3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ln+1m(x)=m+2n+1−xn+1Lnm(x)−m+nn+1Ln−1m(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lanczos0.mml b/boost/libs/math/doc/equations/lanczos0.mml deleted file mode 100644 index b35220cf..00000000 --- a/boost/libs/math/doc/equations/lanczos0.mml +++ /dev/null @@ -1,62 +0,0 @@ - - - Γ - - - z - + - 1 - - - - = - - - - 2 - π - - - - - - z - + - g - + - 0.5 - - - - z - + - 0.5 - - - - e - - − - - - z - + - g - + - 0.5 - - - - - - S - g - - - - z - - - - - diff --git a/boost/libs/math/doc/equations/lanczos0.png b/boost/libs/math/doc/equations/lanczos0.png deleted file mode 100644 index 232174db..00000000 Binary files a/boost/libs/math/doc/equations/lanczos0.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lanczos0.svg b/boost/libs/math/doc/equations/lanczos0.svg deleted file mode 100644 index 1d6615cd..00000000 --- a/boost/libs/math/doc/equations/lanczos0.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Γ(z+1)=2π(z+g+0.5)z+0.5e−(z+g+0.5)Sg(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lanczos0a.mml b/boost/libs/math/doc/equations/lanczos0a.mml deleted file mode 100644 index 6ba9b4c0..00000000 --- a/boost/libs/math/doc/equations/lanczos0a.mml +++ /dev/null @@ -1,75 +0,0 @@ - - - - S - g - - - - z - - - - = - - [ - - 1 - 2 - - - a - 0 - - + - - a - 1 - - - z - - z - + - 1 - - - + - - a - 2 - - - - z - - - z - − - 1 - - - - - - - z - + - 1 - - - - - z - + - 2 - - - - - + - … - ] - - - diff --git a/boost/libs/math/doc/equations/lanczos0a.png b/boost/libs/math/doc/equations/lanczos0a.png deleted file mode 100644 index 522b1667..00000000 Binary files a/boost/libs/math/doc/equations/lanczos0a.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lanczos0a.svg b/boost/libs/math/doc/equations/lanczos0a.svg deleted file mode 100644 index c2c872d7..00000000 --- a/boost/libs/math/doc/equations/lanczos0a.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Sg(z)=[12a0+a1zz+1+a2z(z−1)(z+1)(z+2)+…] \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lanczos0b.mml b/boost/libs/math/doc/equations/lanczos0b.mml deleted file mode 100644 index 8a1d2617..00000000 --- a/boost/libs/math/doc/equations/lanczos0b.mml +++ /dev/null @@ -1,105 +0,0 @@ - - - - a - k - - - = - - - - - − - 1 - - - k - - - - - 2 - π - - - - - e - g - - k - - ∑ - - j - = - 0 - - k - - - - - − - 1 - - - j - - - - - - k - + - j - − - 1 - - - ! - - - - - k - − - j - - - ! - j - ! - - - - - - - e - - j - + - g - + - - 1 - 2 - - - - - - - j - + - - 1 - 2 - - - - - - diff --git a/boost/libs/math/doc/equations/lanczos0b.png b/boost/libs/math/doc/equations/lanczos0b.png deleted file mode 100644 index ea09e8a9..00000000 Binary files a/boost/libs/math/doc/equations/lanczos0b.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lanczos0b.svg b/boost/libs/math/doc/equations/lanczos0b.svg deleted file mode 100644 index aeea964b..00000000 --- a/boost/libs/math/doc/equations/lanczos0b.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ak=(−1)k2πegk∑j=0k(−1)j(k+j−1)!(k−j)!j!(ej+g+12)j+12 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lanczos1.mml b/boost/libs/math/doc/equations/lanczos1.mml deleted file mode 100644 index 68d1b3e6..00000000 --- a/boost/libs/math/doc/equations/lanczos1.mml +++ /dev/null @@ -1,50 +0,0 @@ - - - Γ - - - z - - - = - - - - - z - + - g - − - 0.5 - - - - z - − - 0.5 - - - - e - - z - + - g - − - 0.5 - - - - - L - g - - - - z - - - ; - - - diff --git a/boost/libs/math/doc/equations/lanczos1.png b/boost/libs/math/doc/equations/lanczos1.png deleted file mode 100644 index 5fa2c091..00000000 Binary files a/boost/libs/math/doc/equations/lanczos1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lanczos1.svg b/boost/libs/math/doc/equations/lanczos1.svg deleted file mode 100644 index 760e4143..00000000 --- a/boost/libs/math/doc/equations/lanczos1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Γ(z)=(z+g−0.5)z−0.5ez+g−0.5Lg(z); \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lanczos2.mml b/boost/libs/math/doc/equations/lanczos2.mml deleted file mode 100644 index 3a1aa148..00000000 --- a/boost/libs/math/doc/equations/lanczos2.mml +++ /dev/null @@ -1,46 +0,0 @@ - - - - L - g - - - - z - - - = - - C - 0 - - + - - ∑ - - k - = - 1 - - - N - − - 1 - - - - - C - N - - - z - + - k - − - 1 - - - - - diff --git a/boost/libs/math/doc/equations/lanczos2.png b/boost/libs/math/doc/equations/lanczos2.png deleted file mode 100644 index 28f28af6..00000000 Binary files a/boost/libs/math/doc/equations/lanczos2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lanczos2.svg b/boost/libs/math/doc/equations/lanczos2.svg deleted file mode 100644 index 66f9221b..00000000 --- a/boost/libs/math/doc/equations/lanczos2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Lg(z)=C0+∑k=1N−1CNz+k−1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lanczos3.mml b/boost/libs/math/doc/equations/lanczos3.mml deleted file mode 100644 index 1f29a266..00000000 --- a/boost/libs/math/doc/equations/lanczos3.mml +++ /dev/null @@ -1,110 +0,0 @@ - - - - D - - i - j - - - = - { - - - - 0 - - - i - f - - - i - ≠ - j - - - - - 1 - - - i - f - - - i - = - j - = - 0 - - - - - − - 1 - - - i - f - - - i - = - j - = - 1 - - - - - - - - D - - i - − - 1, - i - − - 1 - - - 2 - - - 2 - i - − - 1 - - - - - i - − - 1 - - - - - - - - o - t - h - e - r - w - i - s - e - - - - - - diff --git a/boost/libs/math/doc/equations/lanczos3.png b/boost/libs/math/doc/equations/lanczos3.png deleted file mode 100644 index dcaf1f66..00000000 Binary files a/boost/libs/math/doc/equations/lanczos3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lanczos3.svg b/boost/libs/math/doc/equations/lanczos3.svg deleted file mode 100644 index 7583266b..00000000 --- a/boost/libs/math/doc/equations/lanczos3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Dij={0ifi≠j1ifi=j=0−1ifi=j=1Di−1,i−12(2i−1)i−1otherwise \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lanczos4.mml b/boost/libs/math/doc/equations/lanczos4.mml deleted file mode 100644 index 856aefc6..00000000 --- a/boost/libs/math/doc/equations/lanczos4.mml +++ /dev/null @@ -1,107 +0,0 @@ - - - - B - - i - , - j - - - = - { - - - - 1 - - - i - f - - - i - = - 0 - - - - - − - - 1 - - j - − - i - - - X - - - i - f - - - i - > - 0 - - - j - ≥ - i - - - - - 0 - - - - - - o - t - h - e - r - w - i - s - e - - - - - - ; - - - X - = - - - - - - i - + - j - − - 1 - - - - - j - − - i - - - - - - - - diff --git a/boost/libs/math/doc/equations/lanczos4.png b/boost/libs/math/doc/equations/lanczos4.png deleted file mode 100644 index a07127fc..00000000 Binary files a/boost/libs/math/doc/equations/lanczos4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lanczos4.svg b/boost/libs/math/doc/equations/lanczos4.svg deleted file mode 100644 index 08c6bc14..00000000 --- a/boost/libs/math/doc/equations/lanczos4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Bi,j={1ifi=0−1j−iXifi>0j≥i0otherwise;X=(i+j−1j−i) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lanczos5.mml b/boost/libs/math/doc/equations/lanczos5.mml deleted file mode 100644 index 737c168a..00000000 --- a/boost/libs/math/doc/equations/lanczos5.mml +++ /dev/null @@ -1,134 +0,0 @@ - - - - C - - i - , - j - - - = - { - - - - - 1 - 2 - - - - i - f - - - i - = - j - = - 0 - - - - - 0 - - - i - f - - - j - > - i - - - - - − - - 1 - - i - − - j - - - S - - - - - - o - t - h - e - r - w - i - s - e - - - - - - ; - - - S - = - - - ∑ - - k - = - 0 - - i - - - - - - - 2 - i - - - - - 2 - k - - - - - - - - - - - k - - - - - k - + - j - − - i - - - - - - - - - diff --git a/boost/libs/math/doc/equations/lanczos5.png b/boost/libs/math/doc/equations/lanczos5.png deleted file mode 100644 index 6fe3f5a5..00000000 Binary files a/boost/libs/math/doc/equations/lanczos5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lanczos5.svg b/boost/libs/math/doc/equations/lanczos5.svg deleted file mode 100644 index 65c587d0..00000000 --- a/boost/libs/math/doc/equations/lanczos5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ci,j={12ifi=j=00ifj>i−1i−jSotherwise;S=∑k=0i(2i2k)(kk+j−i) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lanczos6.mml b/boost/libs/math/doc/equations/lanczos6.mml deleted file mode 100644 index 8273fc41..00000000 --- a/boost/libs/math/doc/equations/lanczos6.mml +++ /dev/null @@ -1,60 +0,0 @@ - - - - F - i - - = - - - - - 2 - i - - - ! - - e - - i - + - g - + - 0.5 - - - - - i - ! - - 2 - - 2 - i - − - 1 - - - - - - i - + - g - + - 0.5 - - - - i - + - 0.5 - - - - - - - diff --git a/boost/libs/math/doc/equations/lanczos6.png b/boost/libs/math/doc/equations/lanczos6.png deleted file mode 100644 index b932bc1f..00000000 Binary files a/boost/libs/math/doc/equations/lanczos6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lanczos6.svg b/boost/libs/math/doc/equations/lanczos6.svg deleted file mode 100644 index 842cd3de..00000000 --- a/boost/libs/math/doc/equations/lanczos6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Fi=(2i)!ei+g+0.5i!22i−1(i+g+0.5)i+0.5 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lanczos7.mml b/boost/libs/math/doc/equations/lanczos7.mml deleted file mode 100644 index 8300e987..00000000 --- a/boost/libs/math/doc/equations/lanczos7.mml +++ /dev/null @@ -1,47 +0,0 @@ - - - Γ - - - z - - - = - - - - - - z - + - g - − - 0.5 - - e - - - - - z - − - 0.5 - - - - L - - g - , - e - - - - - z - - - ; - - - diff --git a/boost/libs/math/doc/equations/lanczos7.png b/boost/libs/math/doc/equations/lanczos7.png deleted file mode 100644 index 0e92665b..00000000 Binary files a/boost/libs/math/doc/equations/lanczos7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lanczos7.svg b/boost/libs/math/doc/equations/lanczos7.svg deleted file mode 100644 index dd877839..00000000 --- a/boost/libs/math/doc/equations/lanczos7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Γ(z)=(z+g−0.5e)z−0.5Lg,e(z); \ No newline at end of file diff --git a/boost/libs/math/doc/equations/laplace_pdf.mml b/boost/libs/math/doc/equations/laplace_pdf.mml deleted file mode 100644 index 6ba8cc8d..00000000 --- a/boost/libs/math/doc/equations/laplace_pdf.mml +++ /dev/null @@ -1,52 +0,0 @@ - -]> - -laplace_pdf - - - - - f - - - x - ; - μ - , - σ - - - - = - - - 1 - - 2 - σ - - - - e - - − - - - | - x - − - μ - | - - - σ - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/laplace_pdf.png b/boost/libs/math/doc/equations/laplace_pdf.png deleted file mode 100644 index b299820f..00000000 Binary files a/boost/libs/math/doc/equations/laplace_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/laplace_pdf.svg b/boost/libs/math/doc/equations/laplace_pdf.svg deleted file mode 100644 index 10cb5d09..00000000 --- a/boost/libs/math/doc/equations/laplace_pdf.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x;μ,σ)=12σe−|x−μ|σ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/legendre_0.mml b/boost/libs/math/doc/equations/legendre_0.mml deleted file mode 100644 index d45a3a4b..00000000 --- a/boost/libs/math/doc/equations/legendre_0.mml +++ /dev/null @@ -1,75 +0,0 @@ - - - legendre_p - - - l - , - x - - - - = - - - P - l - - - - x - - - - = - - - 1 - - - 2 - l - - l - ! - - - - - - d - l - - - - d - - x - l - - - - - - - - x - 2 - - − - 1 - - - l - - - ; - - | - x - | - ≤ - 1 - - - diff --git a/boost/libs/math/doc/equations/legendre_0.png b/boost/libs/math/doc/equations/legendre_0.png deleted file mode 100644 index 0ded8411..00000000 Binary files a/boost/libs/math/doc/equations/legendre_0.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/legendre_0.svg b/boost/libs/math/doc/equations/legendre_0.svg deleted file mode 100644 index 5b2e572a..00000000 --- a/boost/libs/math/doc/equations/legendre_0.svg +++ /dev/null @@ -1,2 +0,0 @@ - -legendre_p(l,x)=Pl(x)=12ll!dldxl(x2−1)l;|x|≤1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/legendre_1.mml b/boost/libs/math/doc/equations/legendre_1.mml deleted file mode 100644 index 8f6208cf..00000000 --- a/boost/libs/math/doc/equations/legendre_1.mml +++ /dev/null @@ -1,84 +0,0 @@ - - - legendre_p - - - l - , - m - , - x - - - - = - - - P - - l - - m - - - - x - - - - = - - - - - − - 1 - - - m - - - - - 1 - − - - x - 2 - - - - - - m - 2 - - - - - - - d - m - - - P - l - - - - x - - - - - d - - x - m - - - - - - diff --git a/boost/libs/math/doc/equations/legendre_1.png b/boost/libs/math/doc/equations/legendre_1.png deleted file mode 100644 index 1e5374a4..00000000 Binary files a/boost/libs/math/doc/equations/legendre_1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/legendre_1.svg b/boost/libs/math/doc/equations/legendre_1.svg deleted file mode 100644 index 02c4b390..00000000 --- a/boost/libs/math/doc/equations/legendre_1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -legendre_p(l,m,x)=Plm(x)=(−1)m(1−x2)m2dmPl(x)dxm \ No newline at end of file diff --git a/boost/libs/math/doc/equations/legendre_1b.mml b/boost/libs/math/doc/equations/legendre_1b.mml deleted file mode 100644 index 2df54f7e..00000000 --- a/boost/libs/math/doc/equations/legendre_1b.mml +++ /dev/null @@ -1,85 +0,0 @@ - -]> - -legendre_1b - - - - - - legendre_p - - - l - , - m - , - x - - - - = - - - P - - l - - m - - - - x - - - - = - - - - - 1 - − - - x - 2 - - - - - - m - 2 - - - - - - - d - m - - - P - l - - - - x - - - - - d - - x - m - - - - - - - diff --git a/boost/libs/math/doc/equations/legendre_1b.png b/boost/libs/math/doc/equations/legendre_1b.png deleted file mode 100644 index 030aaa59..00000000 Binary files a/boost/libs/math/doc/equations/legendre_1b.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/legendre_1b.svg b/boost/libs/math/doc/equations/legendre_1b.svg deleted file mode 100644 index bce46ba2..00000000 --- a/boost/libs/math/doc/equations/legendre_1b.svg +++ /dev/null @@ -1,2 +0,0 @@ - -legendre_p(l,m,x)=Plm(x)=(1−x2)m2dmPl(x)dxm \ No newline at end of file diff --git a/boost/libs/math/doc/equations/legendre_2.mml b/boost/libs/math/doc/equations/legendre_2.mml deleted file mode 100644 index fe85a105..00000000 --- a/boost/libs/math/doc/equations/legendre_2.mml +++ /dev/null @@ -1,118 +0,0 @@ - -]> - -legendre_2 - - - - - - - - - legendre_q - - - 0, - x - - - - - = - - - - Q - 0 - - - - x - - - - - = - - - - 1 - 2 - - ln - - - - - 1 - + - x - - - 1 - − - x - - - - - - - - - legendre_q - - - 1, - x - - - - - = - - - - Q - 1 - - - - x - - - - - = - - - - x - 2 - - ln - - - - - 1 - + - x - - - 1 - − - x - - - - - − - 1 - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/legendre_2.png b/boost/libs/math/doc/equations/legendre_2.png deleted file mode 100644 index 7065f272..00000000 Binary files a/boost/libs/math/doc/equations/legendre_2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/legendre_2.svg b/boost/libs/math/doc/equations/legendre_2.svg deleted file mode 100644 index f1b66d1b..00000000 --- a/boost/libs/math/doc/equations/legendre_2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -legendre_q(0,x)=Q0(x)=12ln(1+x1−x)legendre_q(1,x)=Q1(x)=x2ln(1+x1−x)−1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/legendre_3.mml b/boost/libs/math/doc/equations/legendre_3.mml deleted file mode 100644 index fc96fb2c..00000000 --- a/boost/libs/math/doc/equations/legendre_3.mml +++ /dev/null @@ -1,117 +0,0 @@ - -]> - -legendre_3 - - - - - - - - - - P - - l - - - − - m - - - - - x - - - - - = - - - - - - − - 1 - - - m - - - - - - l - − - m - - - ! - - - - - l - + - m - - - ! - - - - P - - l - - m - - - - x - - - - - - - - P - - − - l - − - 1 - - m - - - - x - - - - - = - - - - P - - l - - m - - - - x - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/legendre_3.png b/boost/libs/math/doc/equations/legendre_3.png deleted file mode 100644 index 0f2a196a..00000000 Binary files a/boost/libs/math/doc/equations/legendre_3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/legendre_3.svg b/boost/libs/math/doc/equations/legendre_3.svg deleted file mode 100644 index 87c5c918..00000000 --- a/boost/libs/math/doc/equations/legendre_3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Pl−m(x)=(−1)m(l−m)!(l+m)!Plm(x)P−l−1m(x)=Plm(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/legendre_4.mml b/boost/libs/math/doc/equations/legendre_4.mml deleted file mode 100644 index 23a5fc29..00000000 --- a/boost/libs/math/doc/equations/legendre_4.mml +++ /dev/null @@ -1,65 +0,0 @@ - - - - P - - l - + - 1 - - - - - x - - - - = - - - - - - 2 - l - + - 1 - - - x - - P - l - - - - x - - - − - l - - P - - l - − - 1 - - - - - x - - - - - - l - + - 1 - - - - - - diff --git a/boost/libs/math/doc/equations/legendre_4.png b/boost/libs/math/doc/equations/legendre_4.png deleted file mode 100644 index 80888b6a..00000000 Binary files a/boost/libs/math/doc/equations/legendre_4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/legendre_4.svg b/boost/libs/math/doc/equations/legendre_4.svg deleted file mode 100644 index a108b7fe..00000000 --- a/boost/libs/math/doc/equations/legendre_4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Pl+1(x)=(2l+1)xPl(x)−lPl−1(x)(l+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/legendre_5.mml b/boost/libs/math/doc/equations/legendre_5.mml deleted file mode 100644 index a37b8ec4..00000000 --- a/boost/libs/math/doc/equations/legendre_5.mml +++ /dev/null @@ -1,80 +0,0 @@ - - - - P - - l - + - 1 - - m - - - - x - - - - = - - - - - - 2 - l - + - 1 - - - x - - P - - l - - m - - - - x - - - − - - - l - + - m - + - 1 - - - - P - - l - − - 1 - - m - - - - x - - - - - - l - − - m - + - 1 - - - - - - diff --git a/boost/libs/math/doc/equations/legendre_5.png b/boost/libs/math/doc/equations/legendre_5.png deleted file mode 100644 index 3901fb46..00000000 Binary files a/boost/libs/math/doc/equations/legendre_5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/legendre_5.svg b/boost/libs/math/doc/equations/legendre_5.svg deleted file mode 100644 index f09c13c9..00000000 --- a/boost/libs/math/doc/equations/legendre_5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Pl+1m(x)=(2l+1)xPlm(x)−(l+m+1)Pl−1m(x)(l−m+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lgamm1.mml b/boost/libs/math/doc/equations/lgamm1.mml deleted file mode 100644 index 54ccb676..00000000 --- a/boost/libs/math/doc/equations/lgamm1.mml +++ /dev/null @@ -1,21 +0,0 @@ - - - lgamma - - - z - - - = - ln - | - Γ - - - z - - - | - - - diff --git a/boost/libs/math/doc/equations/lgamm1.png b/boost/libs/math/doc/equations/lgamm1.png deleted file mode 100644 index d2270014..00000000 Binary files a/boost/libs/math/doc/equations/lgamm1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lgamm1.svg b/boost/libs/math/doc/equations/lgamm1.svg deleted file mode 100644 index cd9930f1..00000000 --- a/boost/libs/math/doc/equations/lgamm1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -lgamma(z)=ln|Γ(z)| \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lgamm2.mml b/boost/libs/math/doc/equations/lgamm2.mml deleted file mode 100644 index db351144..00000000 --- a/boost/libs/math/doc/equations/lgamm2.mml +++ /dev/null @@ -1,139 +0,0 @@ - - - ln - - - | - Γ - - - z - - - | - - - = - z - ln - - - l - - - − - l - + - ln - - - - - ∑ - - 0 - - ∞ - - - - - l - n - - - z - - - n - − - - - - - - - + - - 1 - - z - − - - - c - 1 - - - - d - 1 - - + - - - c - 2 - - - - d - 2 - - + - - - c - 3 - - - - d - 3 - - + - … - - - - - - - - - - - - ; - - - c - k - - = - − - - - z - + - k - − - 1 - - - - ∧ - - - d - k - - = - z - + - k - + - l - - - diff --git a/boost/libs/math/doc/equations/lgamm2.png b/boost/libs/math/doc/equations/lgamm2.png deleted file mode 100644 index a7c14e41..00000000 Binary files a/boost/libs/math/doc/equations/lgamm2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lgamm2.svg b/boost/libs/math/doc/equations/lgamm2.svg deleted file mode 100644 index 82560545..00000000 --- a/boost/libs/math/doc/equations/lgamm2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ln(|Γ(z)|)=zln(l)−l+ln(∑0∞lnzn−+1z−c1d1+c2d2+c3d3+…);ck=−(z+k−1)∧dk=z+k+l \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lgamm3.mml b/boost/libs/math/doc/equations/lgamm3.mml deleted file mode 100644 index 644b2c39..00000000 --- a/boost/libs/math/doc/equations/lgamm3.mml +++ /dev/null @@ -1,52 +0,0 @@ - - - ln - - - | - Γ - - - − - z - - - | - - - = - ln - - - π - - - − - ln - - - Γ - - - z - - - - - − - ln - - - z - sin - - - π - z - - - - - - - diff --git a/boost/libs/math/doc/equations/lgamm3.png b/boost/libs/math/doc/equations/lgamm3.png deleted file mode 100644 index 6b64e7dd..00000000 Binary files a/boost/libs/math/doc/equations/lgamm3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lgamm3.svg b/boost/libs/math/doc/equations/lgamm3.svg deleted file mode 100644 index 13172bad..00000000 --- a/boost/libs/math/doc/equations/lgamm3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ln(|Γ(−z)|)=ln(π)−ln(Γ(z))−ln(zsin(πz)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lgamm4.mml b/boost/libs/math/doc/equations/lgamm4.mml deleted file mode 100644 index a3dc8701..00000000 --- a/boost/libs/math/doc/equations/lgamm4.mml +++ /dev/null @@ -1,60 +0,0 @@ - - - ln - - - | - Γ - - - z - - - | - - - = - - - z - − - 0.5 - - - ln - - - - - z - + - g - − - 0.5 - - e - - - - + - ln - - - - L - - e - , - g - - - - - z - - - - - - - diff --git a/boost/libs/math/doc/equations/lgamm4.png b/boost/libs/math/doc/equations/lgamm4.png deleted file mode 100644 index 966a4d57..00000000 Binary files a/boost/libs/math/doc/equations/lgamm4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lgamm4.svg b/boost/libs/math/doc/equations/lgamm4.svg deleted file mode 100644 index 611f6d71..00000000 --- a/boost/libs/math/doc/equations/lgamm4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ln(|Γ(z)|)=(z−0.5)ln(z+g−0.5e)+ln(Le,g(z)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lgamm5.mml b/boost/libs/math/doc/equations/lgamm5.mml deleted file mode 100644 index 507b836d..00000000 --- a/boost/libs/math/doc/equations/lgamm5.mml +++ /dev/null @@ -1,171 +0,0 @@ - -]> - -lgamm5 - - - - - - - - - ln - - - | - Γ - - - z - - - | - - - - - = - - - Δ - z - ln - - - - - Δ - z - + - g - + - 0.5 - - e - - - - + - - - 1 - 2 - - - ln - - - 1 - + - - - Δ - z - - - g - + - 0.5 - - - - - + - ln - - - 1 - + - - ∑ - - k - = - 0 - - - N - − - 1 - - - - - Δ - z - - d - k - - - - k - - - Δ - z - + - k - - - - - - - - - - - Δ - z - - - = - - - 1 - − - z - - ∧ - - - d - k - - = - - - - - g - + - 0.5 - - e - - - - - - - - - C - k - - - - e - g - - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lgamm5.png b/boost/libs/math/doc/equations/lgamm5.png deleted file mode 100644 index f6f0a58b..00000000 Binary files a/boost/libs/math/doc/equations/lgamm5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lgamm5.svg b/boost/libs/math/doc/equations/lgamm5.svg deleted file mode 100644 index 7d496866..00000000 --- a/boost/libs/math/doc/equations/lgamm5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ln(|Γ(z)|)=Δzln(Δz+g+0.5e)+12ln(1+Δzg+0.5)+ln(1+∑k=0N−1Δzdkk(Δz+k))Δz=1−z∧dk=g+0.5e(Ckeg) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lgamm6.mml b/boost/libs/math/doc/equations/lgamm6.mml deleted file mode 100644 index 0de0d227..00000000 --- a/boost/libs/math/doc/equations/lgamm6.mml +++ /dev/null @@ -1,180 +0,0 @@ - -]> - -lgamm6 - - - - - - - - - ln - - - | - Γ - - - z - - - | - - - - - = - - - - - 3 - 2 - - - ln - - - 1 - + - - - - Δ - z - - - g - + - 1.5 - - - - - - + - Δ - z - ln - - - - - z - + - g - − - 0.5 - - e - - - - + - ln - - - 1 - + - - ∑ - - k - = - 1 - - - N - − - 1 - - - - - − - - d - k - - Δ - z - - - z - + - k - z - + - - k - 2 - - − - 1 - - - - - - - - - Δ - z - - - = - - - z - − - 2 - - ∧ - - - d - k - - = - - - - - - g - + - 1.5 - - e - - - - - 1.5 - - - - - - - - C - k - - - - e - g - - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lgamm6.png b/boost/libs/math/doc/equations/lgamm6.png deleted file mode 100644 index a5c25efe..00000000 Binary files a/boost/libs/math/doc/equations/lgamm6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lgamm6.svg b/boost/libs/math/doc/equations/lgamm6.svg deleted file mode 100644 index 0f52e888..00000000 --- a/boost/libs/math/doc/equations/lgamm6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ln(|Γ(z)|)=32ln(1+Δzg+1.5)+Δzln(z+g−0.5e)+ln(1+∑k=1N−1−dkΔzz+kz+k2−1)Δz=z−2∧dk=(g+1.5e)1.5(Ckeg) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/log1pseries.mml b/boost/libs/math/doc/equations/log1pseries.mml deleted file mode 100644 index 470260de..00000000 --- a/boost/libs/math/doc/equations/log1pseries.mml +++ /dev/null @@ -1,47 +0,0 @@ - - - log - - - 1 - + - x - - - - = - - - ∑ - - k - = - 1 - - ∞ - - - - - - - − - 1 - - - - k - − - 1 - - - - x - k - - - k - - - - diff --git a/boost/libs/math/doc/equations/log1pseries.png b/boost/libs/math/doc/equations/log1pseries.png deleted file mode 100644 index 36052135..00000000 Binary files a/boost/libs/math/doc/equations/log1pseries.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/log1pseries.svg b/boost/libs/math/doc/equations/log1pseries.svg deleted file mode 100644 index d9bde288..00000000 --- a/boost/libs/math/doc/equations/log1pseries.svg +++ /dev/null @@ -1,2 +0,0 @@ - -log(1+x)=∑k=1∞(−1)k−1xkk \ No newline at end of file diff --git a/boost/libs/math/doc/equations/lognormal_ref.mml b/boost/libs/math/doc/equations/lognormal_ref.mml deleted file mode 100644 index 845bebc1..00000000 --- a/boost/libs/math/doc/equations/lognormal_ref.mml +++ /dev/null @@ -1,55 +0,0 @@ - - - f - - - x - - - - = - - - 1 - - x - s - - - 2 - π - - - - - - e - - - - − - - - - ln - x - − - m - - - 2 - - - - 2 - - s - 2 - - - - - - - - diff --git a/boost/libs/math/doc/equations/lognormal_ref.png b/boost/libs/math/doc/equations/lognormal_ref.png deleted file mode 100644 index ad0114b1..00000000 Binary files a/boost/libs/math/doc/equations/lognormal_ref.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/lognormal_ref.svg b/boost/libs/math/doc/equations/lognormal_ref.svg deleted file mode 100644 index 5e038d0f..00000000 --- a/boost/libs/math/doc/equations/lognormal_ref.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x)=1xs2πe−(lnx−m)22s2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel1.mml b/boost/libs/math/doc/equations/mbessel1.mml deleted file mode 100644 index d7f732a0..00000000 --- a/boost/libs/math/doc/equations/mbessel1.mml +++ /dev/null @@ -1 +0,0 @@ - z2d2u dz2 + zdu dz − (z2 + ν2)u = 0 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel1.png b/boost/libs/math/doc/equations/mbessel1.png deleted file mode 100644 index 86894633..00000000 Binary files a/boost/libs/math/doc/equations/mbessel1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel1.svg b/boost/libs/math/doc/equations/mbessel1.svg deleted file mode 100644 index 681a30de..00000000 --- a/boost/libs/math/doc/equations/mbessel1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -z2d2udz2+zdudz−(z2+ν2)u=0 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel10.mml b/boost/libs/math/doc/equations/mbessel10.mml deleted file mode 100644 index 50c699c1..00000000 --- a/boost/libs/math/doc/equations/mbessel10.mml +++ /dev/null @@ -1 +0,0 @@ - K−ν(z) = Kν(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel10.png b/boost/libs/math/doc/equations/mbessel10.png deleted file mode 100644 index f752f3e5..00000000 Binary files a/boost/libs/math/doc/equations/mbessel10.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel10.svg b/boost/libs/math/doc/equations/mbessel10.svg deleted file mode 100644 index b97d70cf..00000000 --- a/boost/libs/math/doc/equations/mbessel10.svg +++ /dev/null @@ -1,2 +0,0 @@ - -K−ν(z)=Kν(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel11.mml b/boost/libs/math/doc/equations/mbessel11.mml deleted file mode 100644 index 29f969d7..00000000 --- a/boost/libs/math/doc/equations/mbessel11.mml +++ /dev/null @@ -1 +0,0 @@ -  CF1 : fν = Iν+1 Iν = 1 2(ν+1) x + 1 2(ν+2) x + ⋅⋅⋅ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel11.png b/boost/libs/math/doc/equations/mbessel11.png deleted file mode 100644 index 13d0c49d..00000000 Binary files a/boost/libs/math/doc/equations/mbessel11.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel11.svg b/boost/libs/math/doc/equations/mbessel11.svg deleted file mode 100644 index 52ec4f77..00000000 --- a/boost/libs/math/doc/equations/mbessel11.svg +++ /dev/null @@ -1,2 +0,0 @@ - -CF1:fν=Iν+1Iν=12(ν+1)x+12(ν+2)x+⋅⋅⋅ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel12.mml b/boost/libs/math/doc/equations/mbessel12.mml deleted file mode 100644 index 293bf155..00000000 --- a/boost/libs/math/doc/equations/mbessel12.mml +++ /dev/null @@ -1 +0,0 @@ -  CF2 : z1 z0 = 1 2(x + 1) + ν2 −32 2 2(x + 2) + ν2 −52 2 2(x + 3) + ⋅⋅⋅ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel12.png b/boost/libs/math/doc/equations/mbessel12.png deleted file mode 100644 index 936a21b5..00000000 Binary files a/boost/libs/math/doc/equations/mbessel12.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel12.svg b/boost/libs/math/doc/equations/mbessel12.svg deleted file mode 100644 index 7425522a..00000000 --- a/boost/libs/math/doc/equations/mbessel12.svg +++ /dev/null @@ -1,2 +0,0 @@ - -CF2:z1z0=12(x+1)+ν2−(32)22(x+2)+ν2−(52)22(x+3)+⋅⋅⋅ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel13.mml b/boost/libs/math/doc/equations/mbessel13.mml deleted file mode 100644 index 49591a86..00000000 --- a/boost/libs/math/doc/equations/mbessel13.mml +++ /dev/null @@ -1,162 +0,0 @@ - -]> - -mbessel13 - - - - - - - - - - - K - - - μ - - - - - = - - - - - π - - - - - - - 2 - x - - - - - μ - - - - - e - - - − - x - - - - - z - - - 0 - - - - - - - - - - K - - - μ - + - 1 - - - - - - = - - - - - - - K - - - μ - - - - - x - - - - - - - 1 - - - 2 - - - + - μ - + - x - + - - - - - μ - - - 2 - - - − - - - 1 - - - 4 - - - - - - - - - z - - - 1 - - - - - - - z - - - 0 - - - - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel13.png b/boost/libs/math/doc/equations/mbessel13.png deleted file mode 100644 index 97aacb69..00000000 Binary files a/boost/libs/math/doc/equations/mbessel13.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel13.svg b/boost/libs/math/doc/equations/mbessel13.svg deleted file mode 100644 index a0f6af23..00000000 --- a/boost/libs/math/doc/equations/mbessel13.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Kμ=π(2x)μe−xz0Kμ+1=Kμx(12+μ+x+(μ2−14)z1z0) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel14.mml b/boost/libs/math/doc/equations/mbessel14.mml deleted file mode 100644 index 9e17dd48..00000000 --- a/boost/libs/math/doc/equations/mbessel14.mml +++ /dev/null @@ -1 +0,0 @@ - z0 = 1 1 + S 12xμ+12 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel14.png b/boost/libs/math/doc/equations/mbessel14.png deleted file mode 100644 index eaef95a4..00000000 Binary files a/boost/libs/math/doc/equations/mbessel14.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel14.svg b/boost/libs/math/doc/equations/mbessel14.svg deleted file mode 100644 index 3650caf9..00000000 --- a/boost/libs/math/doc/equations/mbessel14.svg +++ /dev/null @@ -1,2 +0,0 @@ - -z0=11+S(12x)μ+12 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel15.mml b/boost/libs/math/doc/equations/mbessel15.mml deleted file mode 100644 index 4607cbac..00000000 --- a/boost/libs/math/doc/equations/mbessel15.mml +++ /dev/null @@ -1,116 +0,0 @@ - -]> - -mbessel15 - - - - - - - - - - - K - - - μ - - - - - = - - - - - ∑ - - - k - = - 0 - - - ∞ - - - - - c - - - k - - - - - f - - - k - - - - - - - - - K - - - μ - + - 1 - - - - - = - - - - - 2 - - - x - - - - - ∑ - - - k - = - 0 - - - ∞ - - - - - c - - - k - - - - - h - - - k - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel15.png b/boost/libs/math/doc/equations/mbessel15.png deleted file mode 100644 index 082fdff0..00000000 Binary files a/boost/libs/math/doc/equations/mbessel15.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel15.svg b/boost/libs/math/doc/equations/mbessel15.svg deleted file mode 100644 index 2bc5376c..00000000 --- a/boost/libs/math/doc/equations/mbessel15.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Kμ=∑k=0∞ckfkKμ+1=2x∑k=0∞ckhk \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel16.mml b/boost/libs/math/doc/equations/mbessel16.mml deleted file mode 100644 index b068e197..00000000 --- a/boost/libs/math/doc/equations/mbessel16.mml +++ /dev/null @@ -1 +0,0 @@ - ck = 1 k! x2 4 k \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel16.png b/boost/libs/math/doc/equations/mbessel16.png deleted file mode 100644 index 86715f31..00000000 Binary files a/boost/libs/math/doc/equations/mbessel16.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel16.svg b/boost/libs/math/doc/equations/mbessel16.svg deleted file mode 100644 index fcf6d3d5..00000000 --- a/boost/libs/math/doc/equations/mbessel16.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ck=1k!(x24)k \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel17.mml b/boost/libs/math/doc/equations/mbessel17.mml deleted file mode 100644 index 641de043..00000000 --- a/boost/libs/math/doc/equations/mbessel17.mml +++ /dev/null @@ -1,69 +0,0 @@ - -]> - -mbessel17 - - - - - - - I - v - - - - x - - - - = - - - ∑ - - k - = - 0 - - ∞ - - - 1 - - Γ - - - k - + - v - + - 1 - - - k - ! - - - - - - - x - 2 - - - - - 2 - k - + - v - - - - - - diff --git a/boost/libs/math/doc/equations/mbessel17.png b/boost/libs/math/doc/equations/mbessel17.png deleted file mode 100644 index 36f7e605..00000000 Binary files a/boost/libs/math/doc/equations/mbessel17.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel17.svg b/boost/libs/math/doc/equations/mbessel17.svg deleted file mode 100644 index 9475b81c..00000000 --- a/boost/libs/math/doc/equations/mbessel17.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Iv(x)=∑k=0∞1Γ(k+v+1)k!(x2)2k+v diff --git a/boost/libs/math/doc/equations/mbessel2.mml b/boost/libs/math/doc/equations/mbessel2.mml deleted file mode 100644 index 64e81183..00000000 --- a/boost/libs/math/doc/equations/mbessel2.mml +++ /dev/null @@ -1 +0,0 @@ - Iν(z) = 12zν ∑k=0∞ (14z2)kk!Γ(ν + k + 1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel2.png b/boost/libs/math/doc/equations/mbessel2.png deleted file mode 100644 index 1bcb82f2..00000000 Binary files a/boost/libs/math/doc/equations/mbessel2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel2.svg b/boost/libs/math/doc/equations/mbessel2.svg deleted file mode 100644 index e73e575d..00000000 --- a/boost/libs/math/doc/equations/mbessel2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Iν(z)=(12z)ν∑k=0∞(14z2)kk!Γ(ν+k+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel3.mml b/boost/libs/math/doc/equations/mbessel3.mml deleted file mode 100644 index 824afc8e..00000000 --- a/boost/libs/math/doc/equations/mbessel3.mml +++ /dev/null @@ -1 +0,0 @@ - Kν(z) = π 2 ⋅I−ν(z) − Iν(z) sin(νπ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel3.png b/boost/libs/math/doc/equations/mbessel3.png deleted file mode 100644 index 84d818e8..00000000 Binary files a/boost/libs/math/doc/equations/mbessel3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel3.svg b/boost/libs/math/doc/equations/mbessel3.svg deleted file mode 100644 index 6c654969..00000000 --- a/boost/libs/math/doc/equations/mbessel3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Kν(z)=π2⋅I−ν(z)−Iν(z)sin(νπ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel4.mml b/boost/libs/math/doc/equations/mbessel4.mml deleted file mode 100644 index f9572d0d..00000000 --- a/boost/libs/math/doc/equations/mbessel4.mml +++ /dev/null @@ -1 +0,0 @@ - Iν+1(z) = −2ν z Iν(z) + Iν−1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel4.png b/boost/libs/math/doc/equations/mbessel4.png deleted file mode 100644 index 0ff901ed..00000000 Binary files a/boost/libs/math/doc/equations/mbessel4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel4.svg b/boost/libs/math/doc/equations/mbessel4.svg deleted file mode 100644 index f17df11d..00000000 --- a/boost/libs/math/doc/equations/mbessel4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Iν+1(z)=−2νzIν(z)+Iν−1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel5.mml b/boost/libs/math/doc/equations/mbessel5.mml deleted file mode 100644 index 1e69fdc3..00000000 --- a/boost/libs/math/doc/equations/mbessel5.mml +++ /dev/null @@ -1 +0,0 @@ - Kν+1(z) = 2ν z Kν(z) + Kν−1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel5.png b/boost/libs/math/doc/equations/mbessel5.png deleted file mode 100644 index 7b4385fa..00000000 Binary files a/boost/libs/math/doc/equations/mbessel5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel5.svg b/boost/libs/math/doc/equations/mbessel5.svg deleted file mode 100644 index 5227fd73..00000000 --- a/boost/libs/math/doc/equations/mbessel5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Kν+1(z)=2νzKν(z)+Kν−1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel6.mml b/boost/libs/math/doc/equations/mbessel6.mml deleted file mode 100644 index 5409d2aa..00000000 --- a/boost/libs/math/doc/equations/mbessel6.mml +++ /dev/null @@ -1 +0,0 @@ - Iν′(z) = ν zIν(z) + Iν+1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel6.png b/boost/libs/math/doc/equations/mbessel6.png deleted file mode 100644 index 87b1b5c4..00000000 Binary files a/boost/libs/math/doc/equations/mbessel6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel6.svg b/boost/libs/math/doc/equations/mbessel6.svg deleted file mode 100644 index 76b904e1..00000000 --- a/boost/libs/math/doc/equations/mbessel6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Iν′(z)=νzIν(z)+Iν+1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel7.mml b/boost/libs/math/doc/equations/mbessel7.mml deleted file mode 100644 index 3633bb68..00000000 --- a/boost/libs/math/doc/equations/mbessel7.mml +++ /dev/null @@ -1 +0,0 @@ - Kν′(z) = ν zKν(z) − Kν+1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel7.png b/boost/libs/math/doc/equations/mbessel7.png deleted file mode 100644 index 565133e6..00000000 Binary files a/boost/libs/math/doc/equations/mbessel7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel7.svg b/boost/libs/math/doc/equations/mbessel7.svg deleted file mode 100644 index 32d449d1..00000000 --- a/boost/libs/math/doc/equations/mbessel7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Kν′(z)=νzKν(z)−Kν+1(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel8.mml b/boost/libs/math/doc/equations/mbessel8.mml deleted file mode 100644 index d68f06ff..00000000 --- a/boost/libs/math/doc/equations/mbessel8.mml +++ /dev/null @@ -1 +0,0 @@ - W = Iν(z)Kν′(z) − Kν(z)Iν′(z) = −Iν(z)Kν+1(z) + Kν(z)Iν+1(z) = −1z \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel8.png b/boost/libs/math/doc/equations/mbessel8.png deleted file mode 100644 index 8331d213..00000000 Binary files a/boost/libs/math/doc/equations/mbessel8.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel8.svg b/boost/libs/math/doc/equations/mbessel8.svg deleted file mode 100644 index d53d5419..00000000 --- a/boost/libs/math/doc/equations/mbessel8.svg +++ /dev/null @@ -1,2 +0,0 @@ - -W=Iν(z)Kν′(z)−Kν(z)Iν′(z)=−[Iν(z)Kν+1(z)+Kν(z)Iν+1(z)]=−1z \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel9.mml b/boost/libs/math/doc/equations/mbessel9.mml deleted file mode 100644 index 8f95395c..00000000 --- a/boost/libs/math/doc/equations/mbessel9.mml +++ /dev/null @@ -1 +0,0 @@ - I−ν(z) = Iν(z) + 2 π sin(νπ)Kν(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/mbessel9.png b/boost/libs/math/doc/equations/mbessel9.png deleted file mode 100644 index 409f8da8..00000000 Binary files a/boost/libs/math/doc/equations/mbessel9.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/mbessel9.svg b/boost/libs/math/doc/equations/mbessel9.svg deleted file mode 100644 index b1a444fd..00000000 --- a/boost/libs/math/doc/equations/mbessel9.svg +++ /dev/null @@ -1,2 +0,0 @@ - -I−ν(z)=Iν(z)+2πsin(νπ)Kν(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_beta_ref1.mml b/boost/libs/math/doc/equations/nc_beta_ref1.mml deleted file mode 100644 index ccca17cd..00000000 --- a/boost/libs/math/doc/equations/nc_beta_ref1.mml +++ /dev/null @@ -1,56 +0,0 @@ - - - f - - - x - ; - α - , - β - ; - λ - - - - = - - - ∑ - - i - = - 0 - - ∞ - - P - - - i - ; - - λ - 2 - - - - - I - - x - - ′ - - - - α - + - i - , - β - - - - - diff --git a/boost/libs/math/doc/equations/nc_beta_ref1.png b/boost/libs/math/doc/equations/nc_beta_ref1.png deleted file mode 100644 index ee40561f..00000000 Binary files a/boost/libs/math/doc/equations/nc_beta_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_beta_ref1.svg b/boost/libs/math/doc/equations/nc_beta_ref1.svg deleted file mode 100644 index 1c79e475..00000000 --- a/boost/libs/math/doc/equations/nc_beta_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x;α,β;λ)=∑i=0∞P(i;λ2)Ix′(α+i,β) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_beta_ref2.mml b/boost/libs/math/doc/equations/nc_beta_ref2.mml deleted file mode 100644 index f69b7aba..00000000 --- a/boost/libs/math/doc/equations/nc_beta_ref2.mml +++ /dev/null @@ -1,53 +0,0 @@ - - - F - - - x - ; - α - , - β - ; - λ - - - - = - - - ∑ - - i - = - 0 - - ∞ - - P - - - i - ; - - λ - 2 - - - - - I - x - - - - α - + - i - , - β - - - - - diff --git a/boost/libs/math/doc/equations/nc_beta_ref2.png b/boost/libs/math/doc/equations/nc_beta_ref2.png deleted file mode 100644 index f02356a8..00000000 Binary files a/boost/libs/math/doc/equations/nc_beta_ref2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_beta_ref2.svg b/boost/libs/math/doc/equations/nc_beta_ref2.svg deleted file mode 100644 index 23641a94..00000000 --- a/boost/libs/math/doc/equations/nc_beta_ref2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -F(x;α,β;λ)=∑i=0∞P(i;λ2)Ix(α+i,β) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_beta_ref3.mml b/boost/libs/math/doc/equations/nc_beta_ref3.mml deleted file mode 100644 index e99e7896..00000000 --- a/boost/libs/math/doc/equations/nc_beta_ref3.mml +++ /dev/null @@ -1,53 +0,0 @@ - - - E - - - X - - - - ≃ - - 1 - − - - - - β - C - - - - - - 1 - + - - λ - - 2 - - C - 2 - - - - - - - ; - - C - = - α - + - β - + - - λ - 2 - - - - diff --git a/boost/libs/math/doc/equations/nc_beta_ref3.png b/boost/libs/math/doc/equations/nc_beta_ref3.png deleted file mode 100644 index 32e0c09b..00000000 Binary files a/boost/libs/math/doc/equations/nc_beta_ref3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_beta_ref3.svg b/boost/libs/math/doc/equations/nc_beta_ref3.svg deleted file mode 100644 index cc58fc5d..00000000 --- a/boost/libs/math/doc/equations/nc_beta_ref3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -E(X)≃1−(βC)(1+λ2C2);C=α+β+λ2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_beta_ref4.mml b/boost/libs/math/doc/equations/nc_beta_ref4.mml deleted file mode 100644 index 9a5453e6..00000000 --- a/boost/libs/math/doc/equations/nc_beta_ref4.mml +++ /dev/null @@ -1,130 +0,0 @@ - -]> - -nc_beta_ref4 - - - - - - - - - F - - - x - ; - α - , - β - ; - λ - - - - - = - - - - ∑ - - i - = - 0 - - ∞ - - P - - - i - ; - - λ - 2 - - - - - I - x - - - - α - + - i - , - β - - - - - - - 1 - − - F - - - x - ; - α - , - β - ; - λ - - - - - = - - - - ∑ - - i - = - 0 - - ∞ - - P - - - i - ; - - λ - 2 - - - - - - 1 - − - - I - x - - - - α - + - i - , - β - - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_beta_ref4.png b/boost/libs/math/doc/equations/nc_beta_ref4.png deleted file mode 100644 index 771aebd0..00000000 Binary files a/boost/libs/math/doc/equations/nc_beta_ref4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_beta_ref4.svg b/boost/libs/math/doc/equations/nc_beta_ref4.svg deleted file mode 100644 index 689a7379..00000000 --- a/boost/libs/math/doc/equations/nc_beta_ref4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -F(x;α,β;λ)=∑i=0∞P(i;λ2)Ix(α+i,β)1−F(x;α,β;λ)=∑i=0∞P(i;λ2)(1−Ix(α+i,β)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref1.mml b/boost/libs/math/doc/equations/nc_chi_squ_ref1.mml deleted file mode 100644 index 94e21f37..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref1.mml +++ /dev/null @@ -1,35 +0,0 @@ - - - - ∑ - - i - = - 1 - - k - - - - - - - - χ - i - - - - - σ - i - - - - - - 2 - - - - diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref1.png b/boost/libs/math/doc/equations/nc_chi_squ_ref1.png deleted file mode 100644 index 3476b598..00000000 Binary files a/boost/libs/math/doc/equations/nc_chi_squ_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref1.svg b/boost/libs/math/doc/equations/nc_chi_squ_ref1.svg deleted file mode 100644 index 2be1c0b8..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -∑i=1k(χiσi)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref2.mml b/boost/libs/math/doc/equations/nc_chi_squ_ref2.mml deleted file mode 100644 index 31b15af0..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref2.mml +++ /dev/null @@ -1,39 +0,0 @@ - - - λ - - = - - - ∑ - - i - = - 1 - - k - - - - - - - - μ - i - - - - - σ - i - - - - - - 2 - - - - diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref2.png b/boost/libs/math/doc/equations/nc_chi_squ_ref2.png deleted file mode 100644 index f52f706c..00000000 Binary files a/boost/libs/math/doc/equations/nc_chi_squ_ref2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref2.svg b/boost/libs/math/doc/equations/nc_chi_squ_ref2.svg deleted file mode 100644 index 5da2c58b..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -λ=∑i=1k(μiσi)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref3.mml b/boost/libs/math/doc/equations/nc_chi_squ_ref3.mml deleted file mode 100644 index 36134848..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref3.mml +++ /dev/null @@ -1,146 +0,0 @@ - - - f - - - x - ; - ν - , - λ - - - - = - - - ∑ - - i - = - 0 - - ∞ - - - - - e - - - - − - - λ - 2 - - - - - - - - - - λ - 2 - - - - i - - - - i - ! - - - f - - - x - ; - ν - + - 2 - i - - - - = - - - 1 - 2 - - - e - - [ - − - - - - x - + - λ - - - 2 - - ] - - - - - - - x - λ - - - - - - - - ν - 4 - - − - - 1 - 2 - - - - - - - I - - - - - k - 2 - - − - 1 - - - - - - - - - λ - x - - - - - - - diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref3.png b/boost/libs/math/doc/equations/nc_chi_squ_ref3.png deleted file mode 100644 index 032bc084..00000000 Binary files a/boost/libs/math/doc/equations/nc_chi_squ_ref3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref3.svg b/boost/libs/math/doc/equations/nc_chi_squ_ref3.svg deleted file mode 100644 index db53746e..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x;ν,λ)=∑i=0∞e(−λ2)(λ2)ii!f(x;ν+2i)=12e[−(x+λ)2](xλ)(ν4−12)I(k2−1)(λx) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref4.mml b/boost/libs/math/doc/equations/nc_chi_squ_ref4.mml deleted file mode 100644 index 0fa08664..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref4.mml +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - P - - - x - ; - ν - , - λ - - - - = - - - ∑ - - i - = - 0 - - ∞ - - - s - i - - - t - i - - - - - - - s - 0 - - = - - u - 0 - - = - - e - - − - - λ - 2 - - - - , - - - s - i - - = - - s - - i - − - 1 - - - + - - u - i - - , - - - u - i - - = - - u - - i - − - 1 - - - - λ - - 2 - i - - - - - - - - t - 0 - - = - - 1 - - Γ - - - - ν - 2 - - + - 1 - - - - - - - - - x - 2 - - - - - - ν - 2 - - - - - e - - − - - x - 2 - - - - , - - - t - i - - = - - t - - i - − - 1 - - - - x - - ν - + - 2 - i - - - - - - - - diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref4.png b/boost/libs/math/doc/equations/nc_chi_squ_ref4.png deleted file mode 100644 index 87602be8..00000000 Binary files a/boost/libs/math/doc/equations/nc_chi_squ_ref4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref4.svg b/boost/libs/math/doc/equations/nc_chi_squ_ref4.svg deleted file mode 100644 index 377a8331..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -P(x;ν,λ)=∑i=0∞sitis0=u0=e−λ2,si=si−1+ui,ui=ui−1λ2it0=1Γ(ν2+1)(x2)ν2e−x2,ti=ti−1xν+2i \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref5.mml b/boost/libs/math/doc/equations/nc_chi_squ_ref5.mml deleted file mode 100644 index dbc52e40..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref5.mml +++ /dev/null @@ -1,75 +0,0 @@ - - - P - - - x - ; - ν - , - λ - - - - = - - - ∑ - - i - = - 0 - - ∞ - - - - - e - - − - - λ - 2 - - - - - - - - λ - 2 - - - - i - - - - i - ! - - - - P - - - x - 2 - - - - - - - ν - 2 - - + - i - - - - - diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref5.png b/boost/libs/math/doc/equations/nc_chi_squ_ref5.png deleted file mode 100644 index 2d74d3b8..00000000 Binary files a/boost/libs/math/doc/equations/nc_chi_squ_ref5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref5.svg b/boost/libs/math/doc/equations/nc_chi_squ_ref5.svg deleted file mode 100644 index ef7695ea..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -P(x;ν,λ)=∑i=0∞e−λ2(λ2)ii!Px2(ν2+i) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref6.mml b/boost/libs/math/doc/equations/nc_chi_squ_ref6.mml deleted file mode 100644 index 3f6eec14..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref6.mml +++ /dev/null @@ -1,77 +0,0 @@ - - - 1 - − - P - - - x - ; - ν - , - λ - - - - = - - - ∑ - - i - = - 0 - - ∞ - - - - - e - - − - - λ - 2 - - - - - - - - λ - 2 - - - - i - - - - i - ! - - - - Q - - - x - 2 - - - - - - - ν - 2 - - + - i - - - - - diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref6.png b/boost/libs/math/doc/equations/nc_chi_squ_ref6.png deleted file mode 100644 index 111b5dcd..00000000 Binary files a/boost/libs/math/doc/equations/nc_chi_squ_ref6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref6.svg b/boost/libs/math/doc/equations/nc_chi_squ_ref6.svg deleted file mode 100644 index e82cf9c8..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -1−P(x;ν,λ)=∑i=0∞e−λ2(λ2)ii!Qx2(ν2+i) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref7.mml b/boost/libs/math/doc/equations/nc_chi_squ_ref7.mml deleted file mode 100644 index a3052004..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref7.mml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - mean - - - = - - - ν - + - λ - - - - - variance - - - = - - - 2 - - - ν - + - 2 - λ - - - - - - - skewness - - - = - - - - - - 2 - - - 3 - 2 - - - - - - ν - + - 3 - λ - - - - - - - ν - + - 2 - λ - - - - - 3 - 2 - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref7.png b/boost/libs/math/doc/equations/nc_chi_squ_ref7.png deleted file mode 100644 index 64ef33ee..00000000 Binary files a/boost/libs/math/doc/equations/nc_chi_squ_ref7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_chi_squ_ref7.svg b/boost/libs/math/doc/equations/nc_chi_squ_ref7.svg deleted file mode 100644 index bf243b88..00000000 --- a/boost/libs/math/doc/equations/nc_chi_squ_ref7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -mean=ν+λvariance=2(ν+2λ)skewness=232(ν+3λ)(ν+2λ)32 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_f_ref1.mml b/boost/libs/math/doc/equations/nc_f_ref1.mml deleted file mode 100644 index 1fd749e8..00000000 --- a/boost/libs/math/doc/equations/nc_f_ref1.mml +++ /dev/null @@ -1,314 +0,0 @@ - -]> - -nc_f_ref1 - - - - - - f - - - x - ; - - ν - 1 - - , - - ν - 2 - - ; - λ - - - - = - - - e - - - − - - λ - 2 - - - + - - - - λ - - ν - 1 - - x - - - - - 2 - - - - ν - 2 - - + - - ν - 1 - - x - - - - - - - - - - - ν - 1 - - - - - - - ν - 1 - - - 2 - - - - - - - ν - 2 - - - - - - - ν - 2 - - - 2 - - - - - x - - - - - ν - 1 - - - 2 - - − - 1 - - - - - - - ν - 2 - - + - - ν - 1 - - x - - - - − - - - - - ν - 1 - - + - - ν - 2 - - - - 2 - - - - - - Γ - - - - 1 - 2 - - - ν - 1 - - - - Γ - - - 1 - + - - 1 - 2 - - - ν - 2 - - - - - L - - - - - ν - 2 - - - 2 - - - - - - - ν - 1 - - - 2 - - − - 1 - - - - - − - - - λ - - ν - 1 - - x - - - 2 - - - - ν - 2 - - + - - ν - 1 - - x - - - - - - - - - B - - - - 1 - 2 - - - - ν - 1 - - - , - - 1 - 2 - - - - ν - 2 - - - - - Γ - - - - 1 - 2 - - - - - - ν - 1 - - - + - - - ν - 2 - - - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/nc_f_ref1.png b/boost/libs/math/doc/equations/nc_f_ref1.png deleted file mode 100644 index 114f31d5..00000000 Binary files a/boost/libs/math/doc/equations/nc_f_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_f_ref1.svg b/boost/libs/math/doc/equations/nc_f_ref1.svg deleted file mode 100644 index bcffa33e..00000000 --- a/boost/libs/math/doc/equations/nc_f_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x;ν1,ν2;λ)=e−λ2+(λν1x)(2(ν2+ν1x))ν1ν12ν2ν22xν12−1(ν2+ν1x)−(ν1+ν2)2Γ(12ν1)Γ(1+12ν2)Lν22ν12−1(−λν1x2(ν2+ν1x))B(12ν1,12ν2)Γ(12(ν1+ν2)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_f_ref2.mml b/boost/libs/math/doc/equations/nc_f_ref2.mml deleted file mode 100644 index 684242a9..00000000 --- a/boost/libs/math/doc/equations/nc_f_ref2.mml +++ /dev/null @@ -1,214 +0,0 @@ - -]> - -nc_f_ref2 - - - - - - f - - - x - ; - - ν - 1 - - , - - ν - 2 - - ; - λ - - - - = - - - ∑ - - k - = - 0 - - ∞ - - - - - e - - − - - λ - 2 - - - - - - - - λ - 2 - - - - k - - - - B - - - - - - ν - 2 - - - 2, - - - - - ν - 1 - - - 2 - - + - k - - - k - ! - - - - - - - - - ν - 1 - - - - - ν - 2 - - - - - - - - - - - - ν - 1 - - - 2 - - + - k - - - - - - - - - - - ν - 2 - - - - - - ν - 2 - - - + - - - ν - 1 - - - x - - - - - - - - - - - - ν - 1 - - - + - - - ν - 2 - - - - 2 - - + - k - - - - - - x - - - - - - - ν - 1 - - - 2 - - + - k - − - 1 - - - - - - - - diff --git a/boost/libs/math/doc/equations/nc_f_ref2.png b/boost/libs/math/doc/equations/nc_f_ref2.png deleted file mode 100644 index 2face37d..00000000 Binary files a/boost/libs/math/doc/equations/nc_f_ref2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_f_ref2.svg b/boost/libs/math/doc/equations/nc_f_ref2.svg deleted file mode 100644 index 74a4926c..00000000 --- a/boost/libs/math/doc/equations/nc_f_ref2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x;ν1,ν2;λ)=∑k=0∞e−λ2(λ2)kB(ν22,ν12+k)k!(ν1ν2)(ν12+k)(ν2ν2+ν1x)(ν1+ν22+k)x(ν12+k−1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_t_ref1.mml b/boost/libs/math/doc/equations/nc_t_ref1.mml deleted file mode 100644 index 8f76a0bc..00000000 --- a/boost/libs/math/doc/equations/nc_t_ref1.mml +++ /dev/null @@ -1,259 +0,0 @@ - -]> - -nc_t_ref1 - - - - - - f - - - x - ; - ν - ; - δ - - - - = - - - - - ν - - - ν - 2 - - - - ν - ! - - - - 2 - ν - - - e - - - - δ - 2 - - 2 - - - - - - - ν - + - - x - 2 - - - - - - ν - 2 - - - - Γ - - - - ν - 2 - - - - - - - - - - - 2 - - δ - - x - 1 - - - F - 1 - - - - - n - 2 - - + - 1 - ; - - 3 - 2 - - ; - - - - δ - 2 - - - x - 2 - - - - 2 - - - n - + - - x - 2 - - - - - - - - - - - - ν - + - - x - 2 - - - - Γ - - - - 1 - 2 - - - - ν - + - 1 - - - - - - - + - - - - - 1 - - - F - 1 - - - - - 1 - 2 - - - - n - + - 1 - - - ; - - 1 - 2 - - ; - - - - δ - 2 - - - x - 2 - - - - 2 - - - ν - + - - x - 2 - - - - - - - - - - - - ν - + - - x - 2 - - - - Γ - - - - ν - 2 - - + - 1 - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/nc_t_ref1.png b/boost/libs/math/doc/equations/nc_t_ref1.png deleted file mode 100644 index e3d49cec..00000000 Binary files a/boost/libs/math/doc/equations/nc_t_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_t_ref1.svg b/boost/libs/math/doc/equations/nc_t_ref1.svg deleted file mode 100644 index 60904c8c..00000000 --- a/boost/libs/math/doc/equations/nc_t_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x;ν;δ)=νν2ν!2νeδ22(ν+x2)ν2Γ(ν2)(2δx1F1(n2+1;32;δ2x22(n+x2))(ν+x2)Γ(12(ν+1))+1F1(12(n+1);12;δ2x22(ν+x2))ν+x2Γ(ν2+1)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_t_ref2.mml b/boost/libs/math/doc/equations/nc_t_ref2.mml deleted file mode 100644 index 0b499f18..00000000 --- a/boost/libs/math/doc/equations/nc_t_ref2.mml +++ /dev/null @@ -1,231 +0,0 @@ - -]> - -nc_t_ref2 - - - - - - - - - P - - - t - ; - ν - ; - δ - - - - = - - Φ - - - − - δ - - - + - - 1 - 2 - - - ∑ - - i - = - 0 - - ∞ - - - - - P - i - - - I - x - - - - - i - + - - 1 - 2 - - - , - - ν - 2 - - - - + - - δ - - - 2 - - - - - Q - i - - - I - x - - - - i - + - 1, - - ν - 2 - - - - - - - - - - - P - i - - = - - e - - − - - - - δ - 2 - - - 2 - - - - - - - - - - δ - 2 - - 2 - - - - i - - - i - ! - - - - , - - - Q - i - - = - - e - - − - - - - δ - 2 - - - 2 - - - - - - - - - - δ - 2 - - 2 - - - - i - - - Γ - - - i - + - - 3 - 2 - - - - - - - , - - x - = - - - - t - 2 - - - - - ν - + - - t - 2 - - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/nc_t_ref2.png b/boost/libs/math/doc/equations/nc_t_ref2.png deleted file mode 100644 index 8c168e40..00000000 Binary files a/boost/libs/math/doc/equations/nc_t_ref2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_t_ref2.svg b/boost/libs/math/doc/equations/nc_t_ref2.svg deleted file mode 100644 index 3514ef07..00000000 --- a/boost/libs/math/doc/equations/nc_t_ref2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -P(t;ν;δ)=Φ(−δ)+12∑i=0∞(PiIx(i+12,ν2)+δ2QiIx(i+1,ν2))Pi=e−δ22(δ22)ii!,Qi=e−δ22(δ22)iΓ(i+32),x=t2(ν+t2) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_t_ref3.mml b/boost/libs/math/doc/equations/nc_t_ref3.mml deleted file mode 100644 index e2c9157a..00000000 --- a/boost/libs/math/doc/equations/nc_t_ref3.mml +++ /dev/null @@ -1,70 +0,0 @@ - -]> - -nc_t_ref3 - - - - - - P - - - ∞ - ; - ν - ; - δ - - - = - 1 - = - Φ - - - − - δ - - - + - - 1 - 2 - - - ∑ - - i - = - 0 - - ∞ - - - - - P - i - - + - - δ - - - 2 - - - - - Q - i - - - - - - - diff --git a/boost/libs/math/doc/equations/nc_t_ref3.png b/boost/libs/math/doc/equations/nc_t_ref3.png deleted file mode 100644 index e808d5b2..00000000 Binary files a/boost/libs/math/doc/equations/nc_t_ref3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_t_ref3.svg b/boost/libs/math/doc/equations/nc_t_ref3.svg deleted file mode 100644 index 4ceaf8e1..00000000 --- a/boost/libs/math/doc/equations/nc_t_ref3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -P(∞;ν;δ)=1=Φ(−δ)+12∑i=0∞(Pi+δ2Qi) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_t_ref4.mml b/boost/libs/math/doc/equations/nc_t_ref4.mml deleted file mode 100644 index a4dce5dc..00000000 --- a/boost/libs/math/doc/equations/nc_t_ref4.mml +++ /dev/null @@ -1,125 +0,0 @@ - -]> - -nc_t_ref4 - - - - - - 1 - − - P - - - t - ; - ν - ; - δ - - - - = - - - 1 - 2 - - - ∑ - - i - = - 0 - - ∞ - - - - - P - i - - - I - y - - - - - - ν - 2 - - - , - - i - + - - 1 - 2 - - - - - + - - δ - - - 2 - - - - - Q - i - - - I - y - - - - - - ν - 2 - - - , - i - + - 1 - - - - - - ; - - y - = - 1 - − - x - = - - ν - - ν - + - - t - 2 - - - - - - - diff --git a/boost/libs/math/doc/equations/nc_t_ref4.png b/boost/libs/math/doc/equations/nc_t_ref4.png deleted file mode 100644 index 4606f0e6..00000000 Binary files a/boost/libs/math/doc/equations/nc_t_ref4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_t_ref4.svg b/boost/libs/math/doc/equations/nc_t_ref4.svg deleted file mode 100644 index c8da7c57..00000000 --- a/boost/libs/math/doc/equations/nc_t_ref4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -1−P(t;ν;δ)=12∑i=0∞(PiIy(ν2,i+12)+δ2QiIy(ν2,i+1));y=1−x=νν+t2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/nc_t_ref5.mml b/boost/libs/math/doc/equations/nc_t_ref5.mml deleted file mode 100644 index a2a60b7a..00000000 --- a/boost/libs/math/doc/equations/nc_t_ref5.mml +++ /dev/null @@ -1,128 +0,0 @@ - -]> - -nc_t_ref5 - - - - - - f - - - t - ; - ν - ; - δ - - - - = - - - - ν - t - - - - ν - 2 - - + - 2 - ν - - t - 2 - - + - - t - 4 - - - - - ∑ - - i - = - 0 - - ∞ - - - - - P - i - - - I - - x - - ′ - - - - - i - + - - 1 - 2 - - - , - - - ν - 2 - - - - - + - - δ - - - 2 - - - - - Q - i - - - I - - x - - ′ - - - - i - + - 1, - - - ν - 2 - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/nc_t_ref5.png b/boost/libs/math/doc/equations/nc_t_ref5.png deleted file mode 100644 index cc4b137f..00000000 Binary files a/boost/libs/math/doc/equations/nc_t_ref5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/nc_t_ref5.svg b/boost/libs/math/doc/equations/nc_t_ref5.svg deleted file mode 100644 index 27160be6..00000000 --- a/boost/libs/math/doc/equations/nc_t_ref5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(t;ν;δ)=νtν2+2νt2+t4∑i=0∞(PiIx′(i+12,ν2)+δ2QiIx′(i+1,ν2)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/neg_binomial_ref.mml b/boost/libs/math/doc/equations/neg_binomial_ref.mml deleted file mode 100644 index d29f5e81..00000000 --- a/boost/libs/math/doc/equations/neg_binomial_ref.mml +++ /dev/null @@ -1,54 +0,0 @@ - - - f - - - k - ; - r - , - p - - - - = - - - - Γ - - - r - + - k - - - - - k - ! - Γ - - - r - - - - - - p - r - - - - - 1 - − - p - - - k - - - - diff --git a/boost/libs/math/doc/equations/neg_binomial_ref.png b/boost/libs/math/doc/equations/neg_binomial_ref.png deleted file mode 100644 index e04f8d6b..00000000 Binary files a/boost/libs/math/doc/equations/neg_binomial_ref.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/neg_binomial_ref.svg b/boost/libs/math/doc/equations/neg_binomial_ref.svg deleted file mode 100644 index e619c3b8..00000000 --- a/boost/libs/math/doc/equations/neg_binomial_ref.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(k;r,p)=Γ(r+k)k!Γ(r)pr(1−p)k \ No newline at end of file diff --git a/boost/libs/math/doc/equations/normal01_cdf.mml b/boost/libs/math/doc/equations/normal01_cdf.mml deleted file mode 100644 index 67951f02..00000000 --- a/boost/libs/math/doc/equations/normal01_cdf.mml +++ /dev/null @@ -1,62 +0,0 @@ - -]> - -normal_cdf - - - - - - Φ - - - x - - - = - - ∫ - - − - ∞ - - x - - φ - - - t - - - d - t - - = - - - 1 - 2 - - [ - 1 - + - e - r - f - - - - x - - 2 - - - - - ] - - - - diff --git a/boost/libs/math/doc/equations/normal01_cdf.png b/boost/libs/math/doc/equations/normal01_cdf.png deleted file mode 100644 index 6dda9c7a..00000000 Binary files a/boost/libs/math/doc/equations/normal01_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/normal01_cdf.svg b/boost/libs/math/doc/equations/normal01_cdf.svg deleted file mode 100644 index 42910865..00000000 --- a/boost/libs/math/doc/equations/normal01_cdf.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Φ(x)=∫−∞xφ(t)dt=12[1+erf(x2)] \ No newline at end of file diff --git a/boost/libs/math/doc/equations/normal01_pdf.mml b/boost/libs/math/doc/equations/normal01_pdf.mml deleted file mode 100644 index eb145176..00000000 --- a/boost/libs/math/doc/equations/normal01_pdf.mml +++ /dev/null @@ -1,45 +0,0 @@ - -]> - -skew_normal_pdf - - - - - - φ - - - x - - - = - - 1 - - - - 2 - π - - - - - - e - − - - - - x - 2 - - 2 - - - - - - diff --git a/boost/libs/math/doc/equations/normal01_pdf.png b/boost/libs/math/doc/equations/normal01_pdf.png deleted file mode 100644 index 0b7e762c..00000000 Binary files a/boost/libs/math/doc/equations/normal01_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/normal01_pdf.svg b/boost/libs/math/doc/equations/normal01_pdf.svg deleted file mode 100644 index 1907d0cf..00000000 --- a/boost/libs/math/doc/equations/normal01_pdf.svg +++ /dev/null @@ -1,2 +0,0 @@ - -φ(x)=1(2π)e−x22 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/normal_cdf.mml b/boost/libs/math/doc/equations/normal_cdf.mml deleted file mode 100644 index 506d9481..00000000 --- a/boost/libs/math/doc/equations/normal_cdf.mml +++ /dev/null @@ -1,50 +0,0 @@ - -]> - -normal_cdf - - - - - - - 1 - 2 - - { - 1 - + - e - r - f - - - - - - x - − - μ - - - - - - 2 - - σ - 2 - - - - - - - - ] - - - - diff --git a/boost/libs/math/doc/equations/normal_cdf.png b/boost/libs/math/doc/equations/normal_cdf.png deleted file mode 100644 index 28057372..00000000 Binary files a/boost/libs/math/doc/equations/normal_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/normal_cdf.svg b/boost/libs/math/doc/equations/normal_cdf.svg deleted file mode 100644 index 494f760e..00000000 --- a/boost/libs/math/doc/equations/normal_cdf.svg +++ /dev/null @@ -1,2 +0,0 @@ - -12{1+erf((x−μ)(2σ2))] \ No newline at end of file diff --git a/boost/libs/math/doc/equations/normal_ref1.mml b/boost/libs/math/doc/equations/normal_ref1.mml deleted file mode 100644 index bc4de02a..00000000 --- a/boost/libs/math/doc/equations/normal_ref1.mml +++ /dev/null @@ -1,57 +0,0 @@ - - - f - - - x - ; - μ - , - σ - - - - = - - - 1 - - σ - - - 2 - π - - - - - - e - - − - - - - - - x - − - μ - - - 2 - - - - 2 - - σ - 2 - - - - - - - - diff --git a/boost/libs/math/doc/equations/normal_ref1.png b/boost/libs/math/doc/equations/normal_ref1.png deleted file mode 100644 index d40fc2ce..00000000 Binary files a/boost/libs/math/doc/equations/normal_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/normal_ref1.svg b/boost/libs/math/doc/equations/normal_ref1.svg deleted file mode 100644 index a3a664ab..00000000 --- a/boost/libs/math/doc/equations/normal_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x;μ,σ)=1σ2πe−(x−μ)22σ2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/owens_t.mml b/boost/libs/math/doc/equations/owens_t.mml deleted file mode 100644 index 7ad848c5..00000000 --- a/boost/libs/math/doc/equations/owens_t.mml +++ /dev/null @@ -1,105 +0,0 @@ - - -]> - -owens_t - - - - - - - T - - - h - , - a - - - = - - 1 - - - 2 - π - - - - - ∫ - - 0 - - a - - - - exp - { - − - - 1 - 2 - - - h - 2 - - - - 1 - + - - x - 2 - - - - } - - - - 1 - + - - x - 2 - - - - - d - x - - ; - - - - − - ∞ - < - h - , - a - < - + - ∞ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/owens_t.png b/boost/libs/math/doc/equations/owens_t.png deleted file mode 100644 index 980988da..00000000 Binary files a/boost/libs/math/doc/equations/owens_t.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/owens_t.svg b/boost/libs/math/doc/equations/owens_t.svg deleted file mode 100644 index c1c51cec..00000000 --- a/boost/libs/math/doc/equations/owens_t.svg +++ /dev/null @@ -1,2 +0,0 @@ - -T(h,a)=1(2π)∫0aexp{−12h2(1+x2)}(1+x2)dx;(−∞<h,a<+∞) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/poisson_ref1.mml b/boost/libs/math/doc/equations/poisson_ref1.mml deleted file mode 100644 index 3bd7d091..00000000 --- a/boost/libs/math/doc/equations/poisson_ref1.mml +++ /dev/null @@ -1,35 +0,0 @@ - - - f - - - k - ; - λ - - - - = - - - - - e - - − - λ - - - - λ - k - - - - k - ! - - - - - diff --git a/boost/libs/math/doc/equations/poisson_ref1.png b/boost/libs/math/doc/equations/poisson_ref1.png deleted file mode 100644 index df88fa55..00000000 Binary files a/boost/libs/math/doc/equations/poisson_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/poisson_ref1.svg b/boost/libs/math/doc/equations/poisson_ref1.svg deleted file mode 100644 index 4864adc0..00000000 --- a/boost/libs/math/doc/equations/poisson_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(k;λ)=e−λλkk! \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma1.mml b/boost/libs/math/doc/equations/polygamma1.mml deleted file mode 100644 index 1b6e92ed..00000000 --- a/boost/libs/math/doc/equations/polygamma1.mml +++ /dev/null @@ -1,94 +0,0 @@ - -]> - -polygamma1 - - - - - - - ψ - - - n - - - - - - x - - - = - - - - − - 1 - - - - n - + - 1 - - - n - ! - - ∑ - - k - = - 0 - - ∞ - - - 1 - - - - - k - + - x - - - - n - + - 1 - - - - - = - - - - ∂ - n - - ψ - - - x - - - - - - ∂ - n - - x - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma1.png b/boost/libs/math/doc/equations/polygamma1.png deleted file mode 100644 index 8eaaca1a..00000000 Binary files a/boost/libs/math/doc/equations/polygamma1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/polygamma1.svg b/boost/libs/math/doc/equations/polygamma1.svg deleted file mode 100644 index 737a855a..00000000 --- a/boost/libs/math/doc/equations/polygamma1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(n)(x)=(−1)n+1n!∑k=0∞1(k+x)n+1=∂nψ(x)∂nx \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma2.mml b/boost/libs/math/doc/equations/polygamma2.mml deleted file mode 100644 index 60c9744f..00000000 --- a/boost/libs/math/doc/equations/polygamma2.mml +++ /dev/null @@ -1,90 +0,0 @@ - -]> - -polygamma2 - - - - - - - ψ - - - - n - - - - - - - 1 - − - x - - - = - - - - − - 1 - - - n - - - ψ - - - - n - - - - - - - x - - - + - - - - − - 1 - - - n - - π - - - - ∂ - n - - cot - - - π - x - - - - - ∂ - - x - n - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma2.png b/boost/libs/math/doc/equations/polygamma2.png deleted file mode 100644 index c91e5f27..00000000 Binary files a/boost/libs/math/doc/equations/polygamma2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/polygamma2.svg b/boost/libs/math/doc/equations/polygamma2.svg deleted file mode 100644 index 4a1c0d2c..00000000 --- a/boost/libs/math/doc/equations/polygamma2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(n)(1−x)=(−1)nψ(n)(x)+(−1)nπ∂ncot(πx)∂xn \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma3.mml b/boost/libs/math/doc/equations/polygamma3.mml deleted file mode 100644 index 3568763a..00000000 --- a/boost/libs/math/doc/equations/polygamma3.mml +++ /dev/null @@ -1,95 +0,0 @@ - -]> - -polygamma3 - - - - - - - - - ∂ - n - - cot - - - π - x - - - - - ∂ - - x - n - - - - = - - - - π - n - - - - - sin - - n - + - 1 - - - - - π - x - - - - - - - ∑ - - k - = - 0 - - - n - − - 1 - - - - C - - k - , - n - - - cos - - - k - - - - π - n - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma3.png b/boost/libs/math/doc/equations/polygamma3.png deleted file mode 100644 index e3e38511..00000000 Binary files a/boost/libs/math/doc/equations/polygamma3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/polygamma3.svg b/boost/libs/math/doc/equations/polygamma3.svg deleted file mode 100644 index 3e05baae..00000000 --- a/boost/libs/math/doc/equations/polygamma3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -∂ncot(πx)∂xn=πnsinn+1(πx)∑k=0n−1Ck,ncosk(πn) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma4.mml b/boost/libs/math/doc/equations/polygamma4.mml deleted file mode 100644 index 2f7570b6..00000000 --- a/boost/libs/math/doc/equations/polygamma4.mml +++ /dev/null @@ -1,113 +0,0 @@ - -]> - -polygamma4 - - - - - - - ψ - - - - n - - - - - - - x - - - = - - - - - - − - 1 - - - - n - − - 1 - - - n - ! - - - x - - n - + - 1 - - - - + - - ∑ - - k - = - 0 - - ∞ - - - - - - - − - 1 - - - - k - + - n - + - 1 - - - - - k - + - n - - - ! - ζ - - - k - + - n - + - 1 - - - - x - k - - - - k - ! - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma4.png b/boost/libs/math/doc/equations/polygamma4.png deleted file mode 100644 index 9f013bf8..00000000 Binary files a/boost/libs/math/doc/equations/polygamma4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/polygamma4.svg b/boost/libs/math/doc/equations/polygamma4.svg deleted file mode 100644 index 5a2860a2..00000000 --- a/boost/libs/math/doc/equations/polygamma4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(n)(x)=(−1)n−1n!xn+1+∑k=0∞(−1)k+n+1(k+n)!ζ(k+n+1)xkk! \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma5.mml b/boost/libs/math/doc/equations/polygamma5.mml deleted file mode 100644 index 1104b956..00000000 --- a/boost/libs/math/doc/equations/polygamma5.mml +++ /dev/null @@ -1,134 +0,0 @@ - -]> - -polygamma5 - - - - - - - ψ - - - - n - - - - - - - x - - - ∝ - - - - - - − - 1 - - - - n - − - 1 - - - - - n - − - 1 - - - ! - - - n - + - 2 - x - - - - - 2 - - x - - n - + - 1 - - - - - − - - - - − - 1 - - - n - - - ∑ - - k - = - 1 - - ∞ - - - - - - 2 - k - + - n - − - 1 - - - ! - - - - - 2 - k - - - ! - - x - - 2 - k - + - n - - - - - - B - - 2 - k - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma5.png b/boost/libs/math/doc/equations/polygamma5.png deleted file mode 100644 index aaf99373..00000000 Binary files a/boost/libs/math/doc/equations/polygamma5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/polygamma5.svg b/boost/libs/math/doc/equations/polygamma5.svg deleted file mode 100644 index 7bd89991..00000000 --- a/boost/libs/math/doc/equations/polygamma5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(n)(x)∝(−1)n−1(n−1)!(n+2x)2xn+1−(−1)n∑k=1∞(2k+n−1)!(2k)!x2k+nB2k \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma6.mml b/boost/libs/math/doc/equations/polygamma6.mml deleted file mode 100644 index 47938c86..00000000 --- a/boost/libs/math/doc/equations/polygamma6.mml +++ /dev/null @@ -1,88 +0,0 @@ - -]> - -polygamma6 - - - - - - - ψ - - - - n - - - - - - - x - − - m - - - = - - ψ - - - - n - - - - - - - x - - - − - - - - − - 1 - - - n - - n - ! - - ∑ - - k - = - 1 - - m - - - 1 - - - - - x - − - k - - - - n - + - 1 - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma6.png b/boost/libs/math/doc/equations/polygamma6.png deleted file mode 100644 index d634ae16..00000000 Binary files a/boost/libs/math/doc/equations/polygamma6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/polygamma6.svg b/boost/libs/math/doc/equations/polygamma6.svg deleted file mode 100644 index 0ce063c0..00000000 --- a/boost/libs/math/doc/equations/polygamma6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(n)(x−m)=ψ(n)(x)−(−1)nn!∑k=1m1(x−k)n+1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma7.mml b/boost/libs/math/doc/equations/polygamma7.mml deleted file mode 100644 index d3ea70c8..00000000 --- a/boost/libs/math/doc/equations/polygamma7.mml +++ /dev/null @@ -1,107 +0,0 @@ - -]> - -polygamma7 - - - - - - - ∂ - - ∂ - x - - - - - cos - - - k - - - - θ - - - - - - sin - n - - - - θ - - - - - = - - 1 - - - sin - - n - + - 1 - - - - - θ - - - - - - - - - - k - − - n - - - - cos - - n - + - 1 - - - - - θ - - - − - k - - cos - - n - − - 1 - - - - - θ - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma7.png b/boost/libs/math/doc/equations/polygamma7.png deleted file mode 100644 index 36a0c03c..00000000 Binary files a/boost/libs/math/doc/equations/polygamma7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/polygamma7.svg b/boost/libs/math/doc/equations/polygamma7.svg deleted file mode 100644 index 2f83cc0b..00000000 --- a/boost/libs/math/doc/equations/polygamma7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -∂∂xcosk(θ)sinn(θ)=1sinn+1(θ)((k−n)cosn+1(θ)−kcosn−1(θ)) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma8.mml b/boost/libs/math/doc/equations/polygamma8.mml deleted file mode 100644 index a76cb5f1..00000000 --- a/boost/libs/math/doc/equations/polygamma8.mml +++ /dev/null @@ -1,52 +0,0 @@ - -]> - -polygamma8 - - - - - - - ψ - - - n - - - - - - 1 - - - = - - - - − - 1 - - - - n - + - 1 - - - n - ! - ς - - - n - + - 1 - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma8.png b/boost/libs/math/doc/equations/polygamma8.png deleted file mode 100644 index c39f4f66..00000000 Binary files a/boost/libs/math/doc/equations/polygamma8.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/polygamma8.svg b/boost/libs/math/doc/equations/polygamma8.svg deleted file mode 100644 index baa17122..00000000 --- a/boost/libs/math/doc/equations/polygamma8.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(n)(1)=(−1)n+1n!ς(n+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma9.mml b/boost/libs/math/doc/equations/polygamma9.mml deleted file mode 100644 index 1fd598cf..00000000 --- a/boost/libs/math/doc/equations/polygamma9.mml +++ /dev/null @@ -1,69 +0,0 @@ - -]> - -polygamma9 - - - - - - - ψ - - - n - - - - - - - 1 - 2 - - - - = - - - - − - 1 - - - - n - + - 1 - - - n - ! - - - - 2 - - n - + - 1 - - - − - 1 - - - ς - - - n - + - 1 - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/polygamma9.png b/boost/libs/math/doc/equations/polygamma9.png deleted file mode 100644 index 505ba0e7..00000000 Binary files a/boost/libs/math/doc/equations/polygamma9.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/polygamma9.svg b/boost/libs/math/doc/equations/polygamma9.svg deleted file mode 100644 index 1af96539..00000000 --- a/boost/libs/math/doc/equations/polygamma9.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(n)(12)=(−1)n+1n!(2n+1−1)ς(n+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/roots1.mml b/boost/libs/math/doc/equations/roots1.mml deleted file mode 100644 index b40b3b32..00000000 --- a/boost/libs/math/doc/equations/roots1.mml +++ /dev/null @@ -1,40 +0,0 @@ - - - - x - - N - + - 1 - - - - = - - - x - N - - − - - - f - - - x - - - - - f - ′ - - - x - - - - - - - diff --git a/boost/libs/math/doc/equations/roots1.png b/boost/libs/math/doc/equations/roots1.png deleted file mode 100644 index d459a5d8..00000000 Binary files a/boost/libs/math/doc/equations/roots1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/roots1.svg b/boost/libs/math/doc/equations/roots1.svg deleted file mode 100644 index 5195ecdc..00000000 --- a/boost/libs/math/doc/equations/roots1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -xN+1=xN−f(x)f′(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/roots2.mml b/boost/libs/math/doc/equations/roots2.mml deleted file mode 100644 index 75244af9..00000000 --- a/boost/libs/math/doc/equations/roots2.mml +++ /dev/null @@ -1,70 +0,0 @@ - - - - x - - N - + - 1 - - - - = - - - x - N - - − - - - 2 - f - - - x - - - f - ′ - - - x - - - - - 2 - - - - f - ′ - - - x - - - - - 2 - - − - f - - - x - - - f - ″ - - - x - - - - - - - diff --git a/boost/libs/math/doc/equations/roots2.png b/boost/libs/math/doc/equations/roots2.png deleted file mode 100644 index 46b226be..00000000 Binary files a/boost/libs/math/doc/equations/roots2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/roots2.svg b/boost/libs/math/doc/equations/roots2.svg deleted file mode 100644 index 030edfa2..00000000 --- a/boost/libs/math/doc/equations/roots2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -xN+1=xN−2f(x)f′(x)2(f′(x))2−f(x)f″(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/roots3.mml b/boost/libs/math/doc/equations/roots3.mml deleted file mode 100644 index 67dff5e9..00000000 --- a/boost/libs/math/doc/equations/roots3.mml +++ /dev/null @@ -1,81 +0,0 @@ - - - - x - - N - + - 1 - - - - = - - - x - N - - − - - - f - - - x - - - - - f - ′ - - - x - - - - - − - - - f - ″ - - - x - - - - - - f - - - x - - - - - 2 - - - - 2 - - - - f - ′ - - - x - - - - - 3 - - - - - diff --git a/boost/libs/math/doc/equations/roots3.png b/boost/libs/math/doc/equations/roots3.png deleted file mode 100644 index 562279c1..00000000 Binary files a/boost/libs/math/doc/equations/roots3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/roots3.svg b/boost/libs/math/doc/equations/roots3.svg deleted file mode 100644 index b58d8ddb..00000000 --- a/boost/libs/math/doc/equations/roots3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -xN+1=xN−f(x)f′(x)−f″(x)(f(x))22(f′(x))3 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/roots4.mml b/boost/libs/math/doc/equations/roots4.mml deleted file mode 100644 index 553d34ba..00000000 --- a/boost/libs/math/doc/equations/roots4.mml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - f - - - x - - - - - = - - - - x - 3 - - − - a - - - - - f - ′ - - - x - - - - - = - - - 3 - - x - 2 - - - - - - f - ″ - - - x - - - - - = - - - 6 - x - - - - - - diff --git a/boost/libs/math/doc/equations/roots4.png b/boost/libs/math/doc/equations/roots4.png deleted file mode 100644 index f8b2bbf1..00000000 Binary files a/boost/libs/math/doc/equations/roots4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/roots4.svg b/boost/libs/math/doc/equations/roots4.svg deleted file mode 100644 index 9edeb812..00000000 --- a/boost/libs/math/doc/equations/roots4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x)=x3−af′(x)=3x2f″(x)=6x \ No newline at end of file diff --git a/boost/libs/math/doc/equations/sbessel1.mml b/boost/libs/math/doc/equations/sbessel1.mml deleted file mode 100644 index 6550608e..00000000 --- a/boost/libs/math/doc/equations/sbessel1.mml +++ /dev/null @@ -1 +0,0 @@ - z2d2u dz2 + 2zdu dz + [z2 − n(n + 1)]u = 0 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/sbessel1.png b/boost/libs/math/doc/equations/sbessel1.png deleted file mode 100644 index 0c3f0661..00000000 Binary files a/boost/libs/math/doc/equations/sbessel1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/sbessel1.svg b/boost/libs/math/doc/equations/sbessel1.svg deleted file mode 100644 index c754ed2a..00000000 --- a/boost/libs/math/doc/equations/sbessel1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -z2d2udz2+2zdudz+[z2−n(n+1)]u=0 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/sbessel2.mml b/boost/libs/math/doc/equations/sbessel2.mml deleted file mode 100644 index b4be92d1..00000000 --- a/boost/libs/math/doc/equations/sbessel2.mml +++ /dev/null @@ -1,144 +0,0 @@ - -]> - -sbessel2 - - - - - - - - - - - j - - - n - - - - - - - z - - - - - - - = - - - - - - - π - - - 2 - z - - - - - - - J - - - n - + - - - 1 - - - 2 - - - - - - - - - z - - - - - - - - - - - y - - - n - - - - - - - z - - - - - - - = - - - - - - - π - - - 2 - z - - - - - - - Y - - - n - + - - - 1 - - - 2 - - - - - - - - - z - - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/sbessel2.png b/boost/libs/math/doc/equations/sbessel2.png deleted file mode 100644 index 98c1245e..00000000 Binary files a/boost/libs/math/doc/equations/sbessel2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/sbessel2.svg b/boost/libs/math/doc/equations/sbessel2.svg deleted file mode 100644 index 769a031a..00000000 --- a/boost/libs/math/doc/equations/sbessel2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -jn(z)=π2zJn+12(z)yn(z)=π2zYn+12(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/sbessel3.mml b/boost/libs/math/doc/equations/sbessel3.mml deleted file mode 100644 index 27960dd2..00000000 --- a/boost/libs/math/doc/equations/sbessel3.mml +++ /dev/null @@ -1 +0,0 @@ - z2d2u dz2 + 2zdu dz − [z2 + n(n + 1)]u = 0 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/sbessel3.png b/boost/libs/math/doc/equations/sbessel3.png deleted file mode 100644 index 11deb07f..00000000 Binary files a/boost/libs/math/doc/equations/sbessel3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/sbessel3.svg b/boost/libs/math/doc/equations/sbessel3.svg deleted file mode 100644 index fead3ede..00000000 --- a/boost/libs/math/doc/equations/sbessel3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -z2d2udz2+2zdudz−[z2+n(n+1)]u=0 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/sbessel4.mml b/boost/libs/math/doc/equations/sbessel4.mml deleted file mode 100644 index cede826c..00000000 --- a/boost/libs/math/doc/equations/sbessel4.mml +++ /dev/null @@ -1,144 +0,0 @@ - -]> - -sbessel4 - - - - - - - - - - - i - - - n - - - - - - - z - - - - - - - = - - - - - - - π - - - 2 - z - - - - - - - I - - - n - + - - - 1 - - - 2 - - - - - - - - - z - - - - - - - - - - - k - - - n - - - - - - - z - - - - - - - = - - - - - - - π - - - 2 - z - - - - - - - K - - - n - + - - - 1 - - - 2 - - - - - - - - - z - - - - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/sbessel4.png b/boost/libs/math/doc/equations/sbessel4.png deleted file mode 100644 index ed665369..00000000 Binary files a/boost/libs/math/doc/equations/sbessel4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/sbessel4.svg b/boost/libs/math/doc/equations/sbessel4.svg deleted file mode 100644 index 821540f8..00000000 --- a/boost/libs/math/doc/equations/sbessel4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -in(z)=π2zIn+12(z)kn(z)=π2zKn+12(z) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/sbessel5.mml b/boost/libs/math/doc/equations/sbessel5.mml deleted file mode 100644 index bd5e097c..00000000 --- a/boost/libs/math/doc/equations/sbessel5.mml +++ /dev/null @@ -1 +0,0 @@ - jν(z) = π4 ∑ k=0∞ −1 k(z2)2k+nk!Γ(n + k + 1 + 1 2) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/sbessel5.png b/boost/libs/math/doc/equations/sbessel5.png deleted file mode 100644 index b6a614eb..00000000 Binary files a/boost/libs/math/doc/equations/sbessel5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/sbessel5.svg b/boost/libs/math/doc/equations/sbessel5.svg deleted file mode 100644 index 6656379f..00000000 --- a/boost/libs/math/doc/equations/sbessel5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -jν(z)=π4∑k=0∞(−1)k(z2)2k+nk!Γ(n+k+1+12) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/skew_normal_cdf.mml b/boost/libs/math/doc/equations/skew_normal_cdf.mml deleted file mode 100644 index c3306690..00000000 --- a/boost/libs/math/doc/equations/skew_normal_cdf.mml +++ /dev/null @@ -1,56 +0,0 @@ - -]> - -skew_normal_cdf - - - - - - Φ - - - - - - x - − - ξ - - - ω - - - - − - 2 - T - - - - - - - - x - − - ξ - - - ω - - - - , - α - - - - - - - - - diff --git a/boost/libs/math/doc/equations/skew_normal_cdf.png b/boost/libs/math/doc/equations/skew_normal_cdf.png deleted file mode 100644 index 0578921e..00000000 Binary files a/boost/libs/math/doc/equations/skew_normal_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/skew_normal_cdf.svg b/boost/libs/math/doc/equations/skew_normal_cdf.svg deleted file mode 100644 index 85aade53..00000000 --- a/boost/libs/math/doc/equations/skew_normal_cdf.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Φ((x−ξ)ω)−2T(((x−ξ)ω),α) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/skew_normal_kurt_ex.mml b/boost/libs/math/doc/equations/skew_normal_kurt_ex.mml deleted file mode 100644 index c7871801..00000000 --- a/boost/libs/math/doc/equations/skew_normal_kurt_ex.mml +++ /dev/null @@ -1,62 +0,0 @@ - -]> - -skew_normal_kurt_ex - - - - - - 2 - - - π - − - 3 - - - - - - - - δ - - - - - 2 - π - - - - - - - 4 - - - - - 1 - − - 2 - - - δ - 2 - - π - - - - 2 - - - - - - - diff --git a/boost/libs/math/doc/equations/skew_normal_kurt_ex.png b/boost/libs/math/doc/equations/skew_normal_kurt_ex.png deleted file mode 100644 index fbe5909b..00000000 Binary files a/boost/libs/math/doc/equations/skew_normal_kurt_ex.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/skew_normal_kurt_ex.svg b/boost/libs/math/doc/equations/skew_normal_kurt_ex.svg deleted file mode 100644 index cf5a749a..00000000 --- a/boost/libs/math/doc/equations/skew_normal_kurt_ex.svg +++ /dev/null @@ -1,2 +0,0 @@ - -2(π−3)(δ(2π))4(1−2δ2π)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/skew_normal_mean.mml b/boost/libs/math/doc/equations/skew_normal_mean.mml deleted file mode 100644 index c2bbb9a7..00000000 --- a/boost/libs/math/doc/equations/skew_normal_mean.mml +++ /dev/null @@ -1,53 +0,0 @@ - -]> - -skew_normal_mean - - - - - - ξ - + - ω - δ - - - - - 2 - π - - - - - - w - h - e - r - e - - δ - = - - α - - - - 1 - + - - α - 2 - - - - - - - - - diff --git a/boost/libs/math/doc/equations/skew_normal_mean.png b/boost/libs/math/doc/equations/skew_normal_mean.png deleted file mode 100644 index 9141e792..00000000 Binary files a/boost/libs/math/doc/equations/skew_normal_mean.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/skew_normal_mean.svg b/boost/libs/math/doc/equations/skew_normal_mean.svg deleted file mode 100644 index 44d437f9..00000000 --- a/boost/libs/math/doc/equations/skew_normal_mean.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ξ+ωδ(2π)whereδ=α(1+α2) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/skew_normal_pdf.mml b/boost/libs/math/doc/equations/skew_normal_pdf.mml deleted file mode 100644 index e1bab6d9..00000000 --- a/boost/libs/math/doc/equations/skew_normal_pdf.mml +++ /dev/null @@ -1,89 +0,0 @@ - -]> - -skew_normal_pdf - - - - - - - 1 - - - ω - π - - - - - e - − - - - - - - x - − - ξ - - - 2 - - - - 2 - - ω - 2 - - - - - - ∫ - - − - ∞ - - - - α - - - - - - x - − - ξ - - - ω - - - - - - - - e - − - - - - t - 2 - - 2 - - - d - t - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/skew_normal_pdf.png b/boost/libs/math/doc/equations/skew_normal_pdf.png deleted file mode 100644 index ae399030..00000000 Binary files a/boost/libs/math/doc/equations/skew_normal_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/skew_normal_pdf.svg b/boost/libs/math/doc/equations/skew_normal_pdf.svg deleted file mode 100644 index 01d2d545..00000000 --- a/boost/libs/math/doc/equations/skew_normal_pdf.svg +++ /dev/null @@ -1,2 +0,0 @@ - -1(ωπ)e−(x−ξ)2(2ω2)∫−∞(α((x−ξ)ω))e−t22dt \ No newline at end of file diff --git a/boost/libs/math/doc/equations/skew_normal_pdf0.mml b/boost/libs/math/doc/equations/skew_normal_pdf0.mml deleted file mode 100644 index c1c9dd91..00000000 --- a/boost/libs/math/doc/equations/skew_normal_pdf0.mml +++ /dev/null @@ -1,36 +0,0 @@ - -]> - -skew_normal_pdf0 - - - - - - f - - - x - - - = - 2 - φ - - - x - - - Φ - - - α - x - - - - - - diff --git a/boost/libs/math/doc/equations/skew_normal_pdf0.png b/boost/libs/math/doc/equations/skew_normal_pdf0.png deleted file mode 100644 index 3cb5d792..00000000 Binary files a/boost/libs/math/doc/equations/skew_normal_pdf0.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/skew_normal_pdf0.svg b/boost/libs/math/doc/equations/skew_normal_pdf0.svg deleted file mode 100644 index 64141ea4..00000000 --- a/boost/libs/math/doc/equations/skew_normal_pdf0.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x)=2φ(x)Φ(αx) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/skew_normal_skewness.mml b/boost/libs/math/doc/equations/skew_normal_skewness.mml deleted file mode 100644 index accdb932..00000000 --- a/boost/libs/math/doc/equations/skew_normal_skewness.mml +++ /dev/null @@ -1,71 +0,0 @@ - -]> - -skew_normal_skewness - - - - - - - - - 4 - − - π - - - 2 - - - - - - - δ - - - - - 2 - π - - - - - - - 3 - - - - - 1 - − - 2 - - - δ - 2 - - π - - - - - - - 3 - 2 - - - - - - - - - - diff --git a/boost/libs/math/doc/equations/skew_normal_skewness.png b/boost/libs/math/doc/equations/skew_normal_skewness.png deleted file mode 100644 index f942af36..00000000 Binary files a/boost/libs/math/doc/equations/skew_normal_skewness.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/skew_normal_skewness.svg b/boost/libs/math/doc/equations/skew_normal_skewness.svg deleted file mode 100644 index 9d533486..00000000 --- a/boost/libs/math/doc/equations/skew_normal_skewness.svg +++ /dev/null @@ -1,2 +0,0 @@ - -(4−π)2(δ(2π))3(1−2δ2π)(32) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/skew_normal_variance.mml b/boost/libs/math/doc/equations/skew_normal_variance.mml deleted file mode 100644 index a9eedebb..00000000 --- a/boost/libs/math/doc/equations/skew_normal_variance.mml +++ /dev/null @@ -1,33 +0,0 @@ - -]> - -skew_normal_variance - - - - - - - ω - 2 - - - - 1 - − - 2 - - - δ - 2 - - π - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/skew_normal_variance.png b/boost/libs/math/doc/equations/skew_normal_variance.png deleted file mode 100644 index 4531751b..00000000 Binary files a/boost/libs/math/doc/equations/skew_normal_variance.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/skew_normal_variance.svg b/boost/libs/math/doc/equations/skew_normal_variance.svg deleted file mode 100644 index a09a91c5..00000000 --- a/boost/libs/math/doc/equations/skew_normal_variance.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ω2(1−2δ2π) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/special_functions_blurb1.mml b/boost/libs/math/doc/equations/special_functions_blurb1.mml deleted file mode 100644 index 3457bc2c..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb1.mml +++ /dev/null @@ -1,35 +0,0 @@ - - - exp - - - x - - - - = - - - ∑ - - n - = - 0 - - ∞ - - - - - x - n - - - - n - ! - - - - - diff --git a/boost/libs/math/doc/equations/special_functions_blurb1.png b/boost/libs/math/doc/equations/special_functions_blurb1.png deleted file mode 100644 index 17a55952..00000000 Binary files a/boost/libs/math/doc/equations/special_functions_blurb1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/special_functions_blurb1.svg b/boost/libs/math/doc/equations/special_functions_blurb1.svg deleted file mode 100644 index 1765ac23..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -exp(x)=∑n=0∞xnn! \ No newline at end of file diff --git a/boost/libs/math/doc/equations/special_functions_blurb15.mml b/boost/libs/math/doc/equations/special_functions_blurb15.mml deleted file mode 100644 index 569690eb..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb15.mml +++ /dev/null @@ -1,36 +0,0 @@ - - - atanh - - - x - - - - = - - - - log - - - - - 1 - + - x - - - 1 - − - x - - - - - - 2 - - - - diff --git a/boost/libs/math/doc/equations/special_functions_blurb15.png b/boost/libs/math/doc/equations/special_functions_blurb15.png deleted file mode 100644 index b61467bc..00000000 Binary files a/boost/libs/math/doc/equations/special_functions_blurb15.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/special_functions_blurb15.svg b/boost/libs/math/doc/equations/special_functions_blurb15.svg deleted file mode 100644 index 9e86924a..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb15.svg +++ /dev/null @@ -1,2 +0,0 @@ - -atanh(x)=log(1+x1−x)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/special_functions_blurb17.mml b/boost/libs/math/doc/equations/special_functions_blurb17.mml deleted file mode 100644 index d8910bc2..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb17.mml +++ /dev/null @@ -1,31 +0,0 @@ - - - asinh - - - x - - - - = - - log - - - x - + - - - - x - 2 - - + - 1 - - - - - - - diff --git a/boost/libs/math/doc/equations/special_functions_blurb17.png b/boost/libs/math/doc/equations/special_functions_blurb17.png deleted file mode 100644 index 939e7878..00000000 Binary files a/boost/libs/math/doc/equations/special_functions_blurb17.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/special_functions_blurb17.svg b/boost/libs/math/doc/equations/special_functions_blurb17.svg deleted file mode 100644 index bb959cb3..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb17.svg +++ /dev/null @@ -1,2 +0,0 @@ - -asinh(x)=log(x+x2+1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/special_functions_blurb18.mml b/boost/libs/math/doc/equations/special_functions_blurb18.mml deleted file mode 100644 index 31b8862a..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb18.mml +++ /dev/null @@ -1,31 +0,0 @@ - - - acosh - - - x - - - - = - - log - - - x - + - - - - x - 2 - - − - 1 - - - - - - - diff --git a/boost/libs/math/doc/equations/special_functions_blurb18.png b/boost/libs/math/doc/equations/special_functions_blurb18.png deleted file mode 100644 index 7fbb4a81..00000000 Binary files a/boost/libs/math/doc/equations/special_functions_blurb18.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/special_functions_blurb18.svg b/boost/libs/math/doc/equations/special_functions_blurb18.svg deleted file mode 100644 index 7a3be4ea..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb18.svg +++ /dev/null @@ -1,2 +0,0 @@ - -acosh(x)=log(x+x2−1) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/special_functions_blurb20.mml b/boost/libs/math/doc/equations/special_functions_blurb20.mml deleted file mode 100644 index ff27b549..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb20.mml +++ /dev/null @@ -1,42 +0,0 @@ - - - - sinc - a - - - - x - - - - = - - - - sin - - - - - π - x - - a - - - - - - - - π - x - - a - - - - - - diff --git a/boost/libs/math/doc/equations/special_functions_blurb20.png b/boost/libs/math/doc/equations/special_functions_blurb20.png deleted file mode 100644 index 0759e015..00000000 Binary files a/boost/libs/math/doc/equations/special_functions_blurb20.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/special_functions_blurb20.svg b/boost/libs/math/doc/equations/special_functions_blurb20.svg deleted file mode 100644 index 4d42d61e..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb20.svg +++ /dev/null @@ -1,2 +0,0 @@ - -sinca(x)=sin(πxa)πxa \ No newline at end of file diff --git a/boost/libs/math/doc/equations/special_functions_blurb22.mml b/boost/libs/math/doc/equations/special_functions_blurb22.mml deleted file mode 100644 index f5c4c91a..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb22.mml +++ /dev/null @@ -1,43 +0,0 @@ - - - - sinhc - a - - - - x - - - - = - - - - sinh - - - - - π - x - - a - - - - - - - - π - x - - a - - - - - - - diff --git a/boost/libs/math/doc/equations/special_functions_blurb22.png b/boost/libs/math/doc/equations/special_functions_blurb22.png deleted file mode 100644 index 86f30bb1..00000000 Binary files a/boost/libs/math/doc/equations/special_functions_blurb22.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/special_functions_blurb22.svg b/boost/libs/math/doc/equations/special_functions_blurb22.svg deleted file mode 100644 index b4965c39..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb22.svg +++ /dev/null @@ -1,2 +0,0 @@ - -sinhca(x)=sinh(πxa)πxa \ No newline at end of file diff --git a/boost/libs/math/doc/equations/special_functions_blurb5.mml b/boost/libs/math/doc/equations/special_functions_blurb5.mml deleted file mode 100644 index b0f83628..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb5.mml +++ /dev/null @@ -1,35 +0,0 @@ - - - cosh - - - x - - - - = - - - - exp - - - x - - - + - exp - - - − - x - - - - - 2 - - - - - diff --git a/boost/libs/math/doc/equations/special_functions_blurb5.png b/boost/libs/math/doc/equations/special_functions_blurb5.png deleted file mode 100644 index 8cb6f6a0..00000000 Binary files a/boost/libs/math/doc/equations/special_functions_blurb5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/special_functions_blurb5.svg b/boost/libs/math/doc/equations/special_functions_blurb5.svg deleted file mode 100644 index e7479126..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -cosh(x)=exp(x)+exp(−x)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/special_functions_blurb6.mml b/boost/libs/math/doc/equations/special_functions_blurb6.mml deleted file mode 100644 index b643f1ef..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb6.mml +++ /dev/null @@ -1,33 +0,0 @@ - - - sinh - - - x - - - - = - - - - exp - - - x - - - − - exp - - - − - x - - - - 2 - - - - diff --git a/boost/libs/math/doc/equations/special_functions_blurb6.png b/boost/libs/math/doc/equations/special_functions_blurb6.png deleted file mode 100644 index 1968c72c..00000000 Binary files a/boost/libs/math/doc/equations/special_functions_blurb6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/special_functions_blurb6.svg b/boost/libs/math/doc/equations/special_functions_blurb6.svg deleted file mode 100644 index e9a5c931..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -sinh(x)=exp(x)−exp(−x)2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/special_functions_blurb7.mml b/boost/libs/math/doc/equations/special_functions_blurb7.mml deleted file mode 100644 index c6972d77..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb7.mml +++ /dev/null @@ -1,32 +0,0 @@ - - - tanh - - - x - - - - = - - - - sinh - - - x - - - - - cosh - - - x - - - - - - - diff --git a/boost/libs/math/doc/equations/special_functions_blurb7.png b/boost/libs/math/doc/equations/special_functions_blurb7.png deleted file mode 100644 index 477abb11..00000000 Binary files a/boost/libs/math/doc/equations/special_functions_blurb7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/special_functions_blurb7.svg b/boost/libs/math/doc/equations/special_functions_blurb7.svg deleted file mode 100644 index 76b035e6..00000000 --- a/boost/libs/math/doc/equations/special_functions_blurb7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -tanh(x)=sinh(x)cosh(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/spherical_0.mml b/boost/libs/math/doc/equations/spherical_0.mml deleted file mode 100644 index 72c54cec..00000000 --- a/boost/libs/math/doc/equations/spherical_0.mml +++ /dev/null @@ -1,81 +0,0 @@ - - - - Y - - n - - m - - - - θ - , - φ - - - - = - - - - - - 2 - n - + - 1 - - - 4 - π - - - - - - - n - − - m - - - ! - - - - - n - + - m - - - ! - - - - - - P - - n - - m - - - - cos - θ - - - - e - - ⅈ - m - φ - - - - - diff --git a/boost/libs/math/doc/equations/spherical_0.png b/boost/libs/math/doc/equations/spherical_0.png deleted file mode 100644 index 7457fea1..00000000 Binary files a/boost/libs/math/doc/equations/spherical_0.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/spherical_0.svg b/boost/libs/math/doc/equations/spherical_0.svg deleted file mode 100644 index 471f5622..00000000 --- a/boost/libs/math/doc/equations/spherical_0.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Ynm(θ,φ)=2n+14π(n−m)!(n+m)!Pnm(cosθ)eimφ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/spherical_1.mml b/boost/libs/math/doc/equations/spherical_1.mml deleted file mode 100644 index ed28067c..00000000 --- a/boost/libs/math/doc/equations/spherical_1.mml +++ /dev/null @@ -1,85 +0,0 @@ - - - Re - - - - Y - - n - - m - - - - θ - , - φ - - - - - - = - - - - - - 2 - n - + - 1 - - - 4 - π - - - - - - - n - − - m - - - ! - - - - - n - + - m - - - ! - - - - - - P - - n - - m - - - - cos - θ - - - cos - - - m - φ - - - - - diff --git a/boost/libs/math/doc/equations/spherical_1.png b/boost/libs/math/doc/equations/spherical_1.png deleted file mode 100644 index d1e361ce..00000000 Binary files a/boost/libs/math/doc/equations/spherical_1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/spherical_1.svg b/boost/libs/math/doc/equations/spherical_1.svg deleted file mode 100644 index 0627b8a9..00000000 --- a/boost/libs/math/doc/equations/spherical_1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Re(Ynm(θ,φ))=2n+14π(n−m)!(n+m)!Pnm(cosθ)cos(mφ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/spherical_2.mml b/boost/libs/math/doc/equations/spherical_2.mml deleted file mode 100644 index 4ce0d25e..00000000 --- a/boost/libs/math/doc/equations/spherical_2.mml +++ /dev/null @@ -1,85 +0,0 @@ - - - Im - - - - Y - - n - - m - - - - θ - , - φ - - - - - - = - - - - - - 2 - n - + - 1 - - - 4 - π - - - - - - - n - − - m - - - ! - - - - - n - + - m - - - ! - - - - - - P - - n - - m - - - - cos - θ - - - sin - - - m - φ - - - - - diff --git a/boost/libs/math/doc/equations/spherical_2.png b/boost/libs/math/doc/equations/spherical_2.png deleted file mode 100644 index 68f6a845..00000000 Binary files a/boost/libs/math/doc/equations/spherical_2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/spherical_2.svg b/boost/libs/math/doc/equations/spherical_2.svg deleted file mode 100644 index 2fbbe1ba..00000000 --- a/boost/libs/math/doc/equations/spherical_2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Im(Ynm(θ,φ))=2n+14π(n−m)!(n+m)!Pnm(cosθ)sin(mφ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/spherical_3.mml b/boost/libs/math/doc/equations/spherical_3.mml deleted file mode 100644 index afa61c5e..00000000 --- a/boost/libs/math/doc/equations/spherical_3.mml +++ /dev/null @@ -1,105 +0,0 @@ - -]> - -spherical_3 - - - - - - sph_legendre - - - l - , - m - , - θ - - - - = - - - Y - - l - - m - - - - θ - , - 0 - - - - = - - - - - − - 1 - - - m - - - - - - 2 - l - + - 1 - - - 4 - π - - - - - - - l - − - m - - - ! - - - - - l - + - m - - - ! - - - - - - P - - l - - m - - - - cos - θ - - - - - - diff --git a/boost/libs/math/doc/equations/spherical_3.png b/boost/libs/math/doc/equations/spherical_3.png deleted file mode 100644 index dff074cc..00000000 Binary files a/boost/libs/math/doc/equations/spherical_3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/spherical_3.svg b/boost/libs/math/doc/equations/spherical_3.svg deleted file mode 100644 index baa17002..00000000 --- a/boost/libs/math/doc/equations/spherical_3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -sph_legendre(l,m,θ)=Ylm(θ,0)=(−1)m2l+14π(l−m)!(l+m)!Plm(cosθ) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/students_t_dist.mml b/boost/libs/math/doc/equations/students_t_dist.mml deleted file mode 100644 index c318843e..00000000 --- a/boost/libs/math/doc/equations/students_t_dist.mml +++ /dev/null @@ -1,24 +0,0 @@ - - - t - - = - - - - μ - − - M - - - - s - - N - - - - - - - diff --git a/boost/libs/math/doc/equations/students_t_dist.png b/boost/libs/math/doc/equations/students_t_dist.png deleted file mode 100644 index 6d356096..00000000 Binary files a/boost/libs/math/doc/equations/students_t_dist.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/students_t_dist.svg b/boost/libs/math/doc/equations/students_t_dist.svg deleted file mode 100644 index bfc8e213..00000000 --- a/boost/libs/math/doc/equations/students_t_dist.svg +++ /dev/null @@ -1,2 +0,0 @@ - -t=μ−MsN \ No newline at end of file diff --git a/boost/libs/math/doc/equations/students_t_ref1.mml b/boost/libs/math/doc/equations/students_t_ref1.mml deleted file mode 100644 index d72b745a..00000000 --- a/boost/libs/math/doc/equations/students_t_ref1.mml +++ /dev/null @@ -1,75 +0,0 @@ - - - f - - - x - - - - = - - - - Γ - - - - - ν - + - 1 - - 2 - - - - - - - - ν - π - - - Γ - - - - ν - 2 - - - - - - - 1 - + - - - - x - 2 - - - ν - - - - - - - ν - + - 1 - - 2 - - - - - - - - diff --git a/boost/libs/math/doc/equations/students_t_ref1.png b/boost/libs/math/doc/equations/students_t_ref1.png deleted file mode 100644 index 55a9244e..00000000 Binary files a/boost/libs/math/doc/equations/students_t_ref1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/students_t_ref1.svg b/boost/libs/math/doc/equations/students_t_ref1.svg deleted file mode 100644 index 2a38216e..00000000 --- a/boost/libs/math/doc/equations/students_t_ref1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -f(x)=Γ(ν+12)νπΓ(ν2)(1+x2ν)ν+12 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/tangent_number_def.mml b/boost/libs/math/doc/equations/tangent_number_def.mml deleted file mode 100644 index d9294647..00000000 --- a/boost/libs/math/doc/equations/tangent_number_def.mml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - T - n - - = - - - - 2 - - 2n - - - - ( - - - - 2 - - 2n - - - − - 1 - - - ) - - - - - B - - 2n - - - - - - - 2n - - - - - diff --git a/boost/libs/math/doc/equations/tangent_number_def.png b/boost/libs/math/doc/equations/tangent_number_def.png deleted file mode 100644 index 94a20d98..00000000 Binary files a/boost/libs/math/doc/equations/tangent_number_def.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/tangent_number_def.svg b/boost/libs/math/doc/equations/tangent_number_def.svg deleted file mode 100644 index 0a3bad41..00000000 --- a/boost/libs/math/doc/equations/tangent_number_def.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Tn=22n(22n−1)∣B2n∣2n \ No newline at end of file diff --git a/boost/libs/math/doc/equations/tangent_number_def2.mml b/boost/libs/math/doc/equations/tangent_number_def2.mml deleted file mode 100644 index 8dee8121..00000000 --- a/boost/libs/math/doc/equations/tangent_number_def2.mml +++ /dev/null @@ -1,65 +0,0 @@ - - - - tan - - - ( - - x - - ) - - = - - - ∑ - - - k - = - 1 - - - - ∞ - - - - - - - T - k - - - - - ( - - - 2k - − - 1 - - - ) - - ! - - - - x - - - 2k - − - 1 - - - - - - - - diff --git a/boost/libs/math/doc/equations/tangent_number_def2.png b/boost/libs/math/doc/equations/tangent_number_def2.png deleted file mode 100644 index da3fb02e..00000000 Binary files a/boost/libs/math/doc/equations/tangent_number_def2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/tangent_number_def2.svg b/boost/libs/math/doc/equations/tangent_number_def2.svg deleted file mode 100644 index b4d2e399..00000000 --- a/boost/libs/math/doc/equations/tangent_number_def2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -tan(x)=∑k=1∞Tk(2k−1)!x2k−1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/tangent_numbers.mml b/boost/libs/math/doc/equations/tangent_numbers.mml deleted file mode 100644 index 5d5d8e24..00000000 --- a/boost/libs/math/doc/equations/tangent_numbers.mml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - T - j - - = - - - - − - 1 - - - - j - − - 1 - - - - 2 - - 2 - j - - - - - - 2 - - 2 - n - - - − - 1 - - - - - B - - 2 - n - - - - 2 - n - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/tangent_numbers.png b/boost/libs/math/doc/equations/tangent_numbers.png deleted file mode 100644 index c71692cd..00000000 Binary files a/boost/libs/math/doc/equations/tangent_numbers.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/tangent_numbers.svg b/boost/libs/math/doc/equations/tangent_numbers.svg deleted file mode 100644 index e48bad97..00000000 --- a/boost/libs/math/doc/equations/tangent_numbers.svg +++ /dev/null @@ -1,2 +0,0 @@ - -Tj=(−1)j−122j(22n−1)B2n2n \ No newline at end of file diff --git a/boost/libs/math/doc/equations/trigamma1.mml b/boost/libs/math/doc/equations/trigamma1.mml deleted file mode 100644 index 89d09624..00000000 --- a/boost/libs/math/doc/equations/trigamma1.mml +++ /dev/null @@ -1,69 +0,0 @@ - -]> - -trigamma1 - - - - - - - ψ - - - 1 - - - - - - x - - - = - - ∑ - - k - = - 0 - - ∞ - - - 1 - - - - - k - + - x - - - 2 - - - - = - - - ∂ - ψ - - - x - - - - - ∂ - x - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/trigamma1.png b/boost/libs/math/doc/equations/trigamma1.png deleted file mode 100644 index 9e966e09..00000000 Binary files a/boost/libs/math/doc/equations/trigamma1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/trigamma1.svg b/boost/libs/math/doc/equations/trigamma1.svg deleted file mode 100644 index 9ff41b44..00000000 --- a/boost/libs/math/doc/equations/trigamma1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(1)(x)=∑k=0∞1(k+x)2=∂ψ(x)∂x \ No newline at end of file diff --git a/boost/libs/math/doc/equations/trigamma2.mml b/boost/libs/math/doc/equations/trigamma2.mml deleted file mode 100644 index 37ac715c..00000000 --- a/boost/libs/math/doc/equations/trigamma2.mml +++ /dev/null @@ -1,65 +0,0 @@ - -]> - -trigamma2 - - - - - - - ψ - - - 1 - - - - - - 1 - − - x - - - = - - - - π - 2 - - - - - sin - 2 - - - - π - x - - - - - − - - ψ - - - 1 - - - - - - x - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/trigamma2.png b/boost/libs/math/doc/equations/trigamma2.png deleted file mode 100644 index 45676ec1..00000000 Binary files a/boost/libs/math/doc/equations/trigamma2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/trigamma2.svg b/boost/libs/math/doc/equations/trigamma2.svg deleted file mode 100644 index 68f4d951..00000000 --- a/boost/libs/math/doc/equations/trigamma2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(1)(1−x)=π2sin2(πx)−ψ(1)(x) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/trigamma3.mml b/boost/libs/math/doc/equations/trigamma3.mml deleted file mode 100644 index 934572d8..00000000 --- a/boost/libs/math/doc/equations/trigamma3.mml +++ /dev/null @@ -1,54 +0,0 @@ - -]> - -trigamma3 - - - - - - - ψ - - - 1 - - - - - - x - - - = - - ψ - - - 1 - - - - - - 1 - + - x - - - + - - 1 - - - x - 2 - - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/trigamma3.png b/boost/libs/math/doc/equations/trigamma3.png deleted file mode 100644 index 38aceee2..00000000 Binary files a/boost/libs/math/doc/equations/trigamma3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/trigamma3.svg b/boost/libs/math/doc/equations/trigamma3.svg deleted file mode 100644 index 121ab551..00000000 --- a/boost/libs/math/doc/equations/trigamma3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(1)(x)=ψ(1)(1+x)+1x2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/trigamma4.mml b/boost/libs/math/doc/equations/trigamma4.mml deleted file mode 100644 index 557d16d0..00000000 --- a/boost/libs/math/doc/equations/trigamma4.mml +++ /dev/null @@ -1,49 +0,0 @@ - -]> - -trigamma4 - - - - - - - ψ - - - 1 - - - - - - x - - - = - - - - - C - + - R - - - x - - - - - - - x - 2 - - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/trigamma4.png b/boost/libs/math/doc/equations/trigamma4.png deleted file mode 100644 index 2a527a42..00000000 Binary files a/boost/libs/math/doc/equations/trigamma4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/trigamma4.svg b/boost/libs/math/doc/equations/trigamma4.svg deleted file mode 100644 index 1ccac5dd..00000000 --- a/boost/libs/math/doc/equations/trigamma4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(1)(x)=(C+R(x))x2 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/trigamma5.mml b/boost/libs/math/doc/equations/trigamma5.mml deleted file mode 100644 index 4a873643..00000000 --- a/boost/libs/math/doc/equations/trigamma5.mml +++ /dev/null @@ -1,49 +0,0 @@ - -]> - -trigamma5 - - - - - - - ψ - - - 1 - - - - - - x - - - = - - - - - 1 - + - R - - - - 1 - x - - - - - - - x - - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/trigamma5.png b/boost/libs/math/doc/equations/trigamma5.png deleted file mode 100644 index 671a4b32..00000000 Binary files a/boost/libs/math/doc/equations/trigamma5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/trigamma5.svg b/boost/libs/math/doc/equations/trigamma5.svg deleted file mode 100644 index 3813ab57..00000000 --- a/boost/libs/math/doc/equations/trigamma5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ψ(1)(x)=(1+R(1x))x \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta1.mml b/boost/libs/math/doc/equations/zeta1.mml deleted file mode 100644 index d2504662..00000000 --- a/boost/libs/math/doc/equations/zeta1.mml +++ /dev/null @@ -1,29 +0,0 @@ - - - ζ - - - s - - - - = - - - ∑ - - k - = - 1 - - ∞ - - - 1 - - k - s - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta1.png b/boost/libs/math/doc/equations/zeta1.png deleted file mode 100644 index d2d8ffeb..00000000 Binary files a/boost/libs/math/doc/equations/zeta1.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/zeta1.svg b/boost/libs/math/doc/equations/zeta1.svg deleted file mode 100644 index c9b00171..00000000 --- a/boost/libs/math/doc/equations/zeta1.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ζ(s)=∑k=1∞1ks \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta2.mml b/boost/libs/math/doc/equations/zeta2.mml deleted file mode 100644 index f1432a9d..00000000 --- a/boost/libs/math/doc/equations/zeta2.mml +++ /dev/null @@ -1,95 +0,0 @@ - - - ζ - - - s - - - - = - - - 1 - - 1 - − - - 2 - - 1 - − - s - - - - - - ∑ - - n - = - 0 - - ∞ - - - 1 - - 2 - - n - + - 1 - - - - - ∑ - - k - = - 0 - - n - - - - - − - 1 - - - k - - - - - - - n - - - - - k - - - - - - - - - k - + - 1 - - - - − - s - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta2.png b/boost/libs/math/doc/equations/zeta2.png deleted file mode 100644 index f06979ff..00000000 Binary files a/boost/libs/math/doc/equations/zeta2.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/zeta2.svg b/boost/libs/math/doc/equations/zeta2.svg deleted file mode 100644 index cb9f3d59..00000000 --- a/boost/libs/math/doc/equations/zeta2.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ζ(s)=11−21−s∑n=0∞12n+1∑k=0n(−1)k(nk)(k+1)−s \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta3.mml b/boost/libs/math/doc/equations/zeta3.mml deleted file mode 100644 index 3f54d6aa..00000000 --- a/boost/libs/math/doc/equations/zeta3.mml +++ /dev/null @@ -1,54 +0,0 @@ - - - ζ - - - 1 - − - s - - - - = - - 2 - sin - - - π - - - 1 - − - s - - 2 - - - - - - 2 - - π - - − - s - - - - - Γ - - - s - - - ζ - - - s - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta3.png b/boost/libs/math/doc/equations/zeta3.png deleted file mode 100644 index ab1648f3..00000000 Binary files a/boost/libs/math/doc/equations/zeta3.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/zeta3.svg b/boost/libs/math/doc/equations/zeta3.svg deleted file mode 100644 index 694ece17..00000000 --- a/boost/libs/math/doc/equations/zeta3.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ζ(1−s)=2sin(π1−s2)(2π−s)Γ(s)ζ(s) \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta4.mml b/boost/libs/math/doc/equations/zeta4.mml deleted file mode 100644 index 834edd01..00000000 --- a/boost/libs/math/doc/equations/zeta4.mml +++ /dev/null @@ -1,32 +0,0 @@ - - - ς - - - s - - - = - - - C - + - R - - - 1 - − - s - - - − - s - - - 1 - − - s - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta4.png b/boost/libs/math/doc/equations/zeta4.png deleted file mode 100644 index 26280b14..00000000 Binary files a/boost/libs/math/doc/equations/zeta4.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/zeta4.svg b/boost/libs/math/doc/equations/zeta4.svg deleted file mode 100644 index 10aa94d1..00000000 --- a/boost/libs/math/doc/equations/zeta4.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ς(s)=C+R(1−s)−s1−s \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta5.mml b/boost/libs/math/doc/equations/zeta5.mml deleted file mode 100644 index 5f9d52cd..00000000 --- a/boost/libs/math/doc/equations/zeta5.mml +++ /dev/null @@ -1,30 +0,0 @@ - - - ς - - - s - - - = - C - + - R - - - s - − - n - - - + - - 1 - - s - − - 1 - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta5.png b/boost/libs/math/doc/equations/zeta5.png deleted file mode 100644 index 8667993f..00000000 Binary files a/boost/libs/math/doc/equations/zeta5.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/zeta5.svg b/boost/libs/math/doc/equations/zeta5.svg deleted file mode 100644 index 704710fc..00000000 --- a/boost/libs/math/doc/equations/zeta5.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ς(s)=C+R(s−n)+1s−1 \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta6.mml b/boost/libs/math/doc/equations/zeta6.mml deleted file mode 100644 index 71646868..00000000 --- a/boost/libs/math/doc/equations/zeta6.mml +++ /dev/null @@ -1,185 +0,0 @@ - -]> - -zeta6 - - - - - - ζ - - - s - - - - = - - - - − - 1 - - - - s - n - - - - 1 - − - - 2 - - 1 - − - s - - - - - - - - ∑ - - j - = - 0 - - - 2 - n - − - 1 - - - - - - e - j - - - - - - j - + - 1 - - - s - - - - + - - γ - - - s - - - - ; - - - e - j - - = - - - - − - 1 - - - j - - - - - ∑ - - k - = - 0 - - - j - − - n - - - - - n - ! - - - k - ! - - - n - − - k - - - ! - - - − - - 2 - n - - - - - ∧ - - | - - γ - n - - - - s - - - | - < - = - - 1 - - - 8 - n - - | - 1 - − - - 2 - - 1 - − - s - - - | - - - - - - diff --git a/boost/libs/math/doc/equations/zeta6.png b/boost/libs/math/doc/equations/zeta6.png deleted file mode 100644 index 662608ee..00000000 Binary files a/boost/libs/math/doc/equations/zeta6.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/zeta6.svg b/boost/libs/math/doc/equations/zeta6.svg deleted file mode 100644 index 91176073..00000000 --- a/boost/libs/math/doc/equations/zeta6.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ζ(s)=−1sn(1−21−s)∑j=02n−1ej(j+1)s+γ(s);ej=(−1)j(∑k=0j−nn!k!(n−k)!−2n)∧|γn(s)|<=18n|1−21−s| \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta7.mml b/boost/libs/math/doc/equations/zeta7.mml deleted file mode 100644 index 406f4209..00000000 --- a/boost/libs/math/doc/equations/zeta7.mml +++ /dev/null @@ -1,53 +0,0 @@ - -]> - -zeta7 - - - - - - ζ - - - − - n - - - = - - - - - − - 1 - - - n - - - n - + - 1 - - - - B - - n - + - 1 - - - - ; - - n - ∈ - ℕ - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta7.png b/boost/libs/math/doc/equations/zeta7.png deleted file mode 100644 index 536b9ace..00000000 Binary files a/boost/libs/math/doc/equations/zeta7.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/zeta7.svg b/boost/libs/math/doc/equations/zeta7.svg deleted file mode 100644 index 601a95dd..00000000 --- a/boost/libs/math/doc/equations/zeta7.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ζ(−n)=(−1)nn+1Bn+1;n∈ℕ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta8.mml b/boost/libs/math/doc/equations/zeta8.mml deleted file mode 100644 index 70cd0ce6..00000000 --- a/boost/libs/math/doc/equations/zeta8.mml +++ /dev/null @@ -1,31 +0,0 @@ - -]> - -zeta8 - - - - - - ζ - - - − - 2 - n - - - = - 0 - - ; - - n - ∈ - ℕ - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta8.png b/boost/libs/math/doc/equations/zeta8.png deleted file mode 100644 index b1ef089b..00000000 Binary files a/boost/libs/math/doc/equations/zeta8.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/zeta8.svg b/boost/libs/math/doc/equations/zeta8.svg deleted file mode 100644 index c6965a60..00000000 --- a/boost/libs/math/doc/equations/zeta8.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ζ(−2n)=0;n∈ℕ \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta9.mml b/boost/libs/math/doc/equations/zeta9.mml deleted file mode 100644 index a1e3e2e4..00000000 --- a/boost/libs/math/doc/equations/zeta9.mml +++ /dev/null @@ -1,78 +0,0 @@ - -]> - -zeta9 - - - - - - ζ - - - 2 - n - - - = - - - - - - − - 1 - - - - n - − - 1 - - - - 2 - - 2 - n - − - 1 - - - - π - - 2 - n - - - - - - - 2 - n - - - ! - - - - B - - 2 - n - - - - ; - - n - ∈ - ℕ - - - - \ No newline at end of file diff --git a/boost/libs/math/doc/equations/zeta9.png b/boost/libs/math/doc/equations/zeta9.png deleted file mode 100644 index 191c3124..00000000 Binary files a/boost/libs/math/doc/equations/zeta9.png and /dev/null differ diff --git a/boost/libs/math/doc/equations/zeta9.svg b/boost/libs/math/doc/equations/zeta9.svg deleted file mode 100644 index fb39389e..00000000 --- a/boost/libs/math/doc/equations/zeta9.svg +++ /dev/null @@ -1,2 +0,0 @@ - -ζ(2n)=(−1)n−122n−1π2n(2n)!B2n;n∈ℕ \ No newline at end of file diff --git a/boost/libs/math/doc/fp_utilities/float_comparison.qbk b/boost/libs/math/doc/fp_utilities/float_comparison.qbk deleted file mode 100644 index 795d6092..00000000 --- a/boost/libs/math/doc/fp_utilities/float_comparison.qbk +++ /dev/null @@ -1,122 +0,0 @@ -[section:float_comparison Floating-point Comparison] - -[import ../../example/float_comparison_example.cpp] - -Comparison of floating-point values has always been a source of endless difficulty and confusion. - -Unlike integral values that are exact, all floating-point operations -will potentially produce an inexact result that will be rounded to the nearest -available binary representation. Even apparently inocuous operations such as assigning -0.1 to a double produces an inexact result (as this decimal number has no -exact binary representation). - -Floating-point computations also involve rounding so that some 'computational noise' is added, -and hence results are also not exact (although repeatable, at least under identical platforms and compile options). - -Sadly, this conflicts with the expectation of most users, as many articles and innumerable cries for help show all too well. - -Some background reading is: - -* Knuth D.E. The art of computer programming, vol II, section 4.2, especially Floating-Point Comparison 4.2.2, pages 198-220. -* [@http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html David Goldberg, "What Every Computer Scientist Should Know About Floating-Point Arithmetic"] -* [@http://adtmag.com/articles/2000/03/16/comparing-floatshow-to-determine-if-floating-quantities-are-close-enough-once-a-tolerance-has-been-r.aspx -Alberto Squassabia, Comparing floats listing] -* [@https://code.google.com/p/googletest/wiki/AdvancedGuide#Floating-Point_Comparison Google Floating-Point_Comparison guide] -* [@boost:/libs/test/doc/html/boost_test/users_guide/testing_tools/testing_floating_points.html Boost.Test Floating-Point_Comparison] - -Boost provides a number of ways to compare floating-point values to see if they are tolerably close enough to each other, -but first we must decide what kind of comparison we require: - -* Absolute difference/error: the absolute difference between two values ['a] and ['b] is simply `fabs(a-b)`. -This is the only meaningful comparison to make if we know that the result may have cancellation error (see below). -* The edit distance between the two values: i.e. how many (binary) floating-point values are between two values ['a] and ['b]? -This is provided by the function __float_distance, but is probably only useful when you know that the distance should be very small. -This function is somewhat difficult to compute, and doesn't scale to values that are very far apart. In other words, use with care. -* The relative distance/error between two values. This is quick and easy to compute, and is generally the method of choice when -checking that your results are "tolerably close" to one another. However, it is not as exact as the edit distance when dealing -with small differences, and due to the way floating-point values are encoded can "wobble" by a factor of 2 compared to the "true" -edit distance. This is the method documented below: if `float_distance` is a surgeon's scalpel, then `relative_difference` is more -like a Swiss army knife: both have important but different use cases. - - -[h5:fp_relative Relative Comparison of Floating-point Values] - - -`#include ` - - template - ``__sf_result`` relative_difference(T a, U b); - - template - ``__sf_result`` epsilon_difference(T a, U b); - -The function `relative_difference` returns the relative distance/error ['E] between two values as defined by: - -[pre E = fabs((a - b) / min(a,b))] - -The function `epsilon_difference` is a convenience function that returns `relative_difference(a, b) / eps` where -`eps` is the machine epsilon for the result type. - -The following special cases are handled as follows: - -* If either of ['a] or ['b] is a NaN, then returns the largest representable value for T: for example for type `double`, this -is `std::numeric_limits::max()` which is the same as `DBL_MAX` or `1.7976931348623157e+308`. -* If ['a] and ['b] differ in sign then returns the largest representable value for T. -* If both ['a] and ['b] are both infinities (of the same sign), then returns zero. -* If just one of ['a] and ['b] is an infinity, then returns the largest representable value for T. -* If both ['a] and ['b] are zero then returns zero. -* If just one of ['a] or ['b] is a zero or a denormalized value, then it is treated as if it were the -smallest (non-denormalized) value representable in T for the purposes of the above calculation. - -These rules were primarily designed to assist with our own test suite, they are designed to be robust enough -that the function can in most cases be used blindly, including in cases where the expected result is actually -too small to represent in type T and underflows to zero. - -[h5 Examples] - -[compare_floats_using] - -[compare_floats_example_1] -[compare_floats_example_2] -[compare_floats_example_3] -[compare_floats_example_4] -[compare_floats_example_5] -[compare_floats_example_6] - -All the above examples are contained in [@../../example/float_comparison_example.cpp float_comparison_example.cpp]. - -[h5:small Handling Absolute Errors] - -Imagine we're testing the following function: - - double myspecial(double x) - { - return sin(x) - sin(4 * x); - } - -This function has multiple roots, some of which are quite predicable in that both -`sin(x)` and `sin(4x)` are zero together. Others occur because the values returned -from those two functions precisely cancel out. At such points the relative difference -between the true value of the function and the actual value returned may be ['arbitrarily -large] due to [@http://en.wikipedia.org/wiki/Loss_of_significance cancellation error]. - -In such a case, testing the function above by requiring that the values returned by -`relative_error` or `epsilon_error` are below some threshold is pointless: the best -we can do is to verify that the ['absolute difference] between the true -and calculated values is below some threshold. - -Of course, determining what that threshold should be is often tricky, -but a good starting point would be machine epsilon multiplied by the largest -of the values being summed. In the example above, the largest value returned -by `sin(whatever)` is 1, so simply using machine epsilon as the target for -maximum absolute difference might be a good start (though in practice we may need -a slightly higher value - some trial and error will be necessary). - -[endsect] [/section:float_comparison Floating-point comparison] - -[/ - Copyright 2015 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/fp_utilities/float_next.qbk b/boost/libs/math/doc/fp_utilities/float_next.qbk deleted file mode 100644 index 4c9de91a..00000000 --- a/boost/libs/math/doc/fp_utilities/float_next.qbk +++ /dev/null @@ -1,272 +0,0 @@ -[section:next_float Floating-Point Representation Distance (ULP), - and Finding Adjacent Floating-Point Values] - -[@http://en.wikipedia.org/wiki/Unit_in_the_last_place Unit of Least Precision or Unit in the Last Place] -is the gap between two different, but as close as possible, floating-point numbers. - -Most decimal values, for example 0.1, cannot be exactly represented as floating-point values, -but will be stored as the -[@http://en.wikipedia.org/wiki/Floating_point#Representable_numbers.2C_conversion_and_rounding -closest representable floating-point]. - -Functions are provided for finding adjacent greater and lesser floating-point values, -and estimating the number of gaps between any two floating-point values. - -The floating-point type (FPT) must have has a fixed number of bits in the representation. -The number of bits may set at runtime, but must be the same for all numbers. -For example, __NTL_quad_float type (fixed 128-bit representation), -__NTL_RR type (arbitrary but fixed decimal digits, default 150) or -__multiprecision __cpp_dec_float and__cpp_bin_float are fixed at runtime, -but [*not] a type that extends the representation to provide an exact representation -for any number, for example [@http://keithbriggs.info/xrc.html XRC eXact Real in C]. - -[section:nextafter Finding the Next Representable Value in a Specific Direction (nextafter)] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - FPT nextafter(FPT val, FPT direction); - - }} // namespaces - -[h4 Description - nextafter] - -This is an implementation of the `nextafter` function included in the C99 standard. -(It is also effectively an implementation of the C99 `nexttoward` legacy function -which differs only having a `long double` direction, -and can generally serve in its place if required). - -[note The C99 functions must use suffixes f and l to distinguish `float` and `long double` versions. -C++ uses the template mechanism instead.] - -Returns the next representable value after /x/ in the direction of /y/. If -`x == y` then returns /x/. If /x/ is non-finite then returns the result of -a __domain_error. If there is no such value in the direction of /y/ then -returns an __overflow_error. - -[warning The template parameter FTP must be a floating-point type. -An integer type, for example, will produce an unhelpful error message.] - -[tip Nearly always, you just want the next or prior representable value, -so instead use `float_next` or `float_prior` below.] - -[h4 Examples - nextafter] - -The two representations using a 32-bit float either side of unity are: -`` -The nearest (exact) representation of 1.F is 1.00000000 -nextafter(1.F, 999) is 1.00000012 -nextafter(1/f, -999) is 0.99999994 - -The nearest (not exact) representation of 0.1F is 0.100000001 -nextafter(0.1F, 10) is 0.100000009 -nextafter(0.1F, 10) is 0.099999994 -`` - -[endsect] [/section:nextafter Finding the Next Representable Value in a Specific Direction (nextafter)] - -[section:float_next Finding the Next Greater Representable Value (float_next)] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - FPT float_next(FPT val); - - }} // namespaces - -[h4 Description - float_next] - -Returns the next representable value which is greater than /x/. -If /x/ is non-finite then returns the result of -a __domain_error. If there is no such value greater than /x/ then -returns an __overflow_error. - -Has the same effect as - - nextafter(val, (std::numeric_limits::max)()); - -[endsect] [/section:float_next Finding the Next Greater Representable Value (float_prior)] - -[section:float_prior Finding the Next Smaller Representable Value (float_prior)] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - FPT float_prior(FPT val); - - }} // namespaces - - -[h4 Description - float_prior] - -Returns the next representable value which is less than /x/. -If /x/ is non-finite then returns the result of -a __domain_error. If there is no such value less than /x/ then -returns an __overflow_error. - -Has the same effect as - - nextafter(val, -(std::numeric_limits::max)()); // Note most negative value -max. - -[endsect] [/section:float_prior Finding the Next Smaller Representable Value (float_prior)] - -[section:float_distance Calculating the Representation Distance - Between Two floating-point Values (ULP) float_distance] - -Function float_distance finds the number of gaps/bits/ULP between any two floating-point values. -If the significands of floating-point numbers are viewed as integers, -then their difference is the number of ULP/gaps/bits different. - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - FPT float_distance(FPT a, FPT b); - - }} // namespaces - -[h4 Description - float_distance] - -Returns the distance between /a/ and /b/: the result is always -a signed integer value (stored in floating-point type FPT) -representing the number of distinct representations between /a/ and /b/. - -Note that - -* `float_distance(a, a)` always returns 0. -* `float_distance(float_next(a), a)` always returns -1. -* `float_distance(float_prior(a), a)` always returns 1. - -The function `float_distance` is equivalent to calculating the number -of ULP (Units in the Last Place) between /a/ and /b/ except that it -returns a signed value indicating whether `a > b` or not. - -If the distance is too great then it may not be able -to be represented as an exact integer by type FPT, -but in practice this is unlikely to be a issue. - -[endsect] [/section:float_distance Calculating the Representation Distance - Between Two floating-point Values (ULP) float_distance] - -[section:float_advance Advancing a floating-point Value by a Specific -Representation Distance (ULP) float_advance] - -Function `float_advance` advances a floating-point number by a specified number -of ULP. - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - FPT float_advance(FPT val, int distance); - - }} // namespaces - -[h4 Description - float_advance] - -Returns a floating-point number /r/ such that `float_distance(val, r) == distance`. - -[endsect] [/section:float_advance] - -[section:ulp Obtaining the Size of a Unit In the Last Place - ULP] - -Function `ulp` gives the size of a unit-in-the-last-place for a specified floating-point value. - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - FPT ulp(const FPT& x); - - template - FPT ulp(const FPT& x, const Policy&); - - }} // namespaces - -[h4 Description - ulp] - -Returns one [@http://en.wikipedia.org/wiki/Unit_in_the_last_place unit in the last place] of ['x]. - -Corner cases are handled as followes: - -* If the argument is a NaN, then raises a __domain_error. -* If the argument is an infinity, then raises an __overflow_error. -* If the argument is zero then returns the smallest representable value: for example for type -`double` this would be either `std::numeric_limits::min()` or `std::numeric_limits::denorm_min()` -depending whether denormals are supported (which have the values 2.`2250738585072014e-308` and `4.9406564584124654e-324` respectively). -* If the result is too small to represent, then returns the smallest representable value. -* Always returns a positive value such that `ulp(x) == ulp(-x)`. - -[*Important:] The behavior of this function is aligned to that of [@http://docs.oracle.com/javase/7/docs/api/java/lang/Math.html#ulp%28double%29 -Java's ulp function], please note -however that this function should only ever be used for rough and ready calculations as there are enough -corner cases to trap even careful programmers. In particular: - -* The function is asymetrical, which is to say, given `u = ulp(x)` if `x > 0` then `x + u` is the -next floating-point value, but `x - u` is not necessarily the previous value. Similarly, if -`x < 0` then `x - u` is the previous floating-point value, but `x + u` is not necessarily the next -value. The corner cases occur at power of 2 boundaries. -* When the argument becomes very small, it may be that there is no floating-point value that -represents one ULP. Whether this is the case or not depends not only on whether the hardware -may ['sometimes] support denormals (as signalled by `std::numeric_limits::has_denorm`), but also whether these are -currently enabled at runtime (for example on SSE hardware, the DAZ or FTZ flags will disable denormal support). -In this situation, the `ulp` function may return a value that is many orders of magnitude too large. - -In light of the issues above, we recomend that: - -* To move between adjacent floating-point values always use __float_next, __float_prior or __nextafter (`std::nextafter` -is another candidate, but our experience is that this also often breaks depending which optimizations and -hardware flags are in effect). -* To move several floating-point values away use __float_advance. -* To calculate the edit distance between two floats use __float_distance. - -There is none the less, one important use case for this function: - -If it is known that the true result of some function is x[sub t] and the calculated result -is x[sub c], then the error measured in ulp is simply [^fabs(x[sub t] - x[sub c]) / ulp(x[sub t])]. - -[endsect] [/section ulp] - -[endsect] [/ section:next_float Floating-Point Representation Distance (ULP), - and Finding Adjacent Floating-Point Values] - -[/ - Copyright 2008 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/fp_utilities/fp_facets.qbk b/boost/libs/math/doc/fp_utilities/fp_facets.qbk deleted file mode 100644 index 33e9c807..00000000 --- a/boost/libs/math/doc/fp_utilities/fp_facets.qbk +++ /dev/null @@ -1,568 +0,0 @@ -[section:fp_facets Facets for Floating-Point Infinities and NaNs] - -[import ../../example/nonfinite_facet_sstream.cpp] - -[h4 Synopsis] - - namespace boost{ namespace math - { - // Values for flags. - const int legacy; - const int signed_zero; - const int trap_infinity; - const int trap_nan; - - template< - class CharType, - class OutputIterator = std::ostreambuf_iterator - > - class nonfinite_num_put : public std::num_put - { - public: - explicit nonfinite_num_put(int flags = 0); - }; - - template< - class CharType, - class InputIterator = std::istreambuf_iterator - > - class nonfinite_num_get : public std::num_get - { - public: - explicit nonfinite_num_get(int flags = 0); // legacy, sign_zero ... - }; - }} // namespace boost namespace math - -To use these facets - - #include - - -[section:facets_intro Introduction] - -[h5 The Problem] - -The C++98 standard does not specify how ['infinity] and ['NaN] are represented in text streams. -As a result, different platforms use different string representations. -This can cause undefined behavior when text files are moved between different platforms. -Some platforms cannot even input parse their own output! -So 'route-tripping' or loopback of output to input is not possible. -For instance, the following test fails with MSVC: - - stringstream ss; - double inf = numeric_limits::infinity(); - double r; - ss << inf; // Write out. - ss >> r; // Read back in. - - cout << "infinity output was " << inf << endl; // 1.#INF - cout << "infinity input was " << r << endl; // 1 - - assert(inf == y); // Fails! - -[h5 The Solution] - -The facets `nonfinite_num_put` and `nonfinite_num_get` -format and parse all floating-point numbers, -including `infinity` and `NaN`, in a consistent and portable manner. - -The following test succeeds with MSVC. - -[nonfinite_facets_sstream_1] - -[tip To add two facets, `nonfinite_num_put` and `nonfinite_num_get`, -you may have to add one at a time, using a temporary locale. - -Or you can create a new locale in one step - -`std::locale new_locale(std::locale(std::locale(std::locale(), new boost::math::nonfinite_num_put), new boost::math::nonfinite_num_get));` - -and, for example, use it to imbue an input and output stringstream. -] - -[tip To just change an input or output stream, you can concisely write -`cout.imbue (std::locale(std::locale(), new boost::math::nonfinite_num_put));` -or -`cin.imbue (std::locale(std::locale(), new boost::math::nonfinite_num_get));` -] - -[nonfinite_facets_sstream_2] - -[h4 C++0X standard for output of infinity and NaN] - -[@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf C++0X (final) draft standard] -does not explicitly specify the representation (and input) of nonfinite values, -leaving it implementation-defined. -So without some specific action, input and output of nonfinite values is not portable. - -[h4 C99 standard for output of infinity and NaN] - -The [@http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf C99 standard] -[*does] specify how infinity and NaN -are formatted by printf and similar output functions, -and parsed by scanf and similar input functions. - -The following string representations are used: - -[table C99 Representation of Infinity and NaN -[[number] [string]] -[[Positive infinity]["inf" or "infinity"]] -[[Positive NaN]["nan" or "nan(...)"]] -[[Negative infinity]["-inf" or "-infinity"]] -[[Negative NaN]["-nan" or "-nan(...)"]] -] - -So following C99 provides a sensible 'standard' way -of handling input and output of nonfinites in C++, -and this implementation follows most of these formats. - -[h5 Signaling NaNs] -A particular type of NaN is the signaling NaN. -The usual mechanism of signaling is by raising a floating-point exception. -Signaling NaNs are defined by -[@http://en.wikipedia.org/wiki/IEEE_floating-point_standard IEEE 754-2008]. - -Floating-point values with layout ['s]111 1111 1['a]xx xxxx xxxx xxxx xxxx xxxx -where ['s] is the sign, ['x] is the payload, and bit ['a] determines the type of NaN. - -If bit ['a] = 1, it is a quiet NaN. - -If bit ['a] is zero and the payload ['x] is nonzero, then it is a signaling NaN. - -Although there has been theoretical interest in the ability of a signaling NaN -to raise an exception, for example to prevent use of an uninitialised variable, -in practice there appears to be no useful application of signaling NaNs for -most current processors. -[@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf C++0X 18.3.2.2] -still specifies a (implementation-defined) representation for signaling NaN, -and `static constexpr bool has_signaling_NaN` -a method of checking if a floating-point type has a representation for signaling NaN. - -But in practice, most platforms treat signaling NaNs in the same as quiet NaNs. -So, for example, they are represented by "nan" on output in -[@http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf C99] format, -and output as `1.#QNAN` by Microsoft compilers. - -[note The C99 standard does not distinguish -between the quiet NaN and signaling NaN values. -A quiet NaN propagates through almost every arithmetic operation -without raising a floating-point exception; -a signaling NaN generally raises a floating-point exception -when occurring as an arithmetic operand. - -C99 specification does not define the behavior of signaling NaNs. -NaNs created by IEC 60559 operations are always quiet. -Therefore this implementation follows C99, and treats the signaling NaN bit -as just a part of the NaN payload field. -So this implementation does not distinguish between the two classes of NaN.] - -[note An implementation may give zero and non-numeric values (such as infinities and NaNs) -a sign or may leave them unsigned. Wherever such values are unsigned, -any requirement in the C99 Standard to retrieve the sign shall produce an unspecified sign, -and any requirement to set the sign shall be ignored. - -This might apply to user-defined types, but in practice built-in floating-point -types `float`, `double` and `long double` have well-behaved signs.] - -The numbers can be of type `float`, `double` and `long double`. -An optional + sign can be used with positive numbers (controlled by ios manipulator `showpos`). -The function `printf` and similar C++ functions use standard formatting flags -to put all lower or all upper case -(controlled by `std::ios` manipulator `uppercase` and `lowercase`). - -The function `scanf` and similar input functions are case-insensitive. - -The dots in `nan(...)` stand for an arbitrary string. -The meaning of that string is implementation dependent. -It can be used to convey extra information about the NaN, from the 'payload'. -A particular value of the payload might be used to indicate a ['missing value], for example. - -This library uses the string representations specified by the C99 standard. - -An example of an implementation that optionally includes the NaN payload information is at -[@http://publib.boulder.ibm.com/infocenter/zos/v1r10/index.jsp?topic=/com.ibm.zos.r10.bpxbd00/fprints.htm AIX NaN fprintf]. -That implementation specifies for Binary Floating Point NANs: - -* A NaN ordinal sequence is a left-parenthesis character '(', -followed by a digit sequence representing -an integer n, where 1 <= n <= INT_MAX-1, -followed by a right-parenthesis character ')'. - -* The integer value, n, is determined by the fraction bits of the NaN argument value as follows: - -* For a signalling NaN value, NaN fraction bits are reversed (left to right) -to produce bits (right to left) of an even integer value, 2*n. -Then formatted output functions produce a (signalling) NaN ordinal sequence -corresponding to the integer value n. - -* For a quiet NaN value, NaN fraction bits are reversed (left to right) -to produce bits (right to left) of an odd integer value, 2*n-1. -Then formatted output functions produce a (quiet) NaN ordinal sequence -corresponding to the integer value n. - -[warning This implementation does not (yet) provide output of, or access to, the NaN payload.] - -[endsect] [/section:intro Introduction] - -[section:reference Reference] - -[h5 The Facet `nonfinite_num_put`] - - template< - class CharType, class OutputIterator = std::ostreambuf_iterator - > - class nonfinite_num_put; - -The `class nonfinite_num_put` -is derived from `std::num_put`. -Thus it is a facet that formats numbers. -The first template argument is the character type of the formatted strings, -usually `char` or `wchar_t`. -The second template argument is the type of iterator used to write the strings. -It is required to be an output iterator. -Usually the default `std::ostreambuf_iterator` is used. -The public interface of the class consists of a single constructor only: - - nonfinite_num_put(int flags = 0); - -The flags argument (effectively optional because a default of ` no_flags` is provided) -is discussed below. -The class template `nonfinite_num_put` is defined in the -header `boost/math/nonfinite_num_facets.hpp` -and lives in the namespace `boost::math`. - -Unlike the C++ Standard facet `std::num_put`, the facet `nonfinite_num_put` -formats `infinity` and `NaN` in a consistent and portable manner. -It uses the following string representations: - -[table -[[Number][String]] -[[Positive infinity][inf]] -[[Positive NaN][nan]] -[[Negative infinity][-inf]] -[[Negative NaN][-nan]] -] - -The numbers can be of type `float`, `double` and `long double`. -The strings can be in all lower case or all upper case. -An optional + sign can be used with positive numbers. -This can be controlled with the `uppercase`, `lowercase`, `showpos` and `noshowpos` manipulators. -Formatting of integers, boolean values and finite floating-point numbers is simply delegated to the normal `std::num_put`. - - -[h5 Facet `nonfinite_num_get`] - - template > class nonfinite_num_get; - -The class `nonfinite_num_get` is derived from `std::num_get`. -Thus it is a facet that parses strings that represent numbers. -The first template argument is the character type of the strings, -usually `char` or `wchar_t`. -The second template argument is the type of iterator used to read the strings. -It is required to be an input iterator. Usually the default is used. -The public interface of the class consists of a single constructor only: - - nonfinite_num_get(int flags = 0); - -The flags argument is discussed below. -The `class template nonfinite_num_get` is defined -in the header `boost/math/nonfinite_num_facets.hpp` -and lives in the `namespace boost::math`. - -Unlike the facet `std::num_get`, the facet `nonfinite_num_get` parses strings -that represent `infinity` and `NaN` in a consistent and portable manner. -It recognizes precisely the string representations specified by the C99 standard: - -[table -[[Number][String]] -[[Positive infinity][inf, infinity]] -[[Positive NaN][nan, nan(...)]] -[[Negative infinity][-inf, -infinity]] -[[Negative NaN][-nan, -nan(...)]] -] - -The numbers can be of type `float`, `double` and `long double`. -The facet is case-insensitive. An optional + sign can be used with positive numbers. -The dots in nan(...) stand for an arbitrary string usually containing the ['NaN payload]. -Parsing of strings that represent integers, boolean values -and finite floating-point numbers is delegated to `std::num_get`. - -When the facet parses a string that represents `infinity` on a platform that lacks infinity, -then the fail bit of the stream is set. - -When the facet parses a string that represents `NaN` on a platform that lacks NaN, -then the fail bit of the stream is set. - -[h4 Flags] - -The constructors for `nonfinite_num_put` and `nonfinite_num_get` -take an optional bit flags argument. -There are four different bit flags: - -* legacy -* signed_zero -* trap_infinity -* trap_nan - -The flags can be combined with the OR `operator|`. - -The flags are defined in the header `boost/math/nonfinite_num_facets.hpp` -and live in the `namespace boost::math`. - -[h5 legacy] - -The legacy flag has no effect with the output facet `nonfinite_num_put`. - -If the legacy flag is used with the `nonfinite_num_get` input facet, -then the facet will recognize all the following string representations of `infinity` and `NaN`: - -[table -[[Number][String]] -[[Positive infinity][inf, infinity, one#inf]] -[[Positive NaN][nan, nan(...), nanq, nans, qnan, snan, one#ind, one#qnan, one#snan]] -[[Negative infinity][-inf, -infinity, -one#inf]] -[[Negative NaN][-nan, -nan(...), -nanq, -nans, -qnan, -snan, -one#ind, - one#qnan, -one#snan]] -] - -* The numbers can be of type `float`, `double` and `long double`. -* The facet is case-insensitive. -* An optional `+` sign can be used with the positive values. -* The dots in `nan(...)` stand for an arbitrary string. -* `one` stands for any string that `std::num_get` parses as the number `1`, -typically "1.#INF", "1.QNAN" but also "000001.#INF"... - -The list includes a number of non-standard string representations of infinity and NaN -that are used by various existing implementations of the C++ standard library, -and also string representations used by other programming languages. - -[h5 signed_zero] - -If the `signed_zero` flag is used with `nonfinite_num_put`, -then the facet will always distinguish between positive and negative zero. -It will format positive zero as "0" or "+0" and negative zero as "-0". -The string representation of positive zero can be controlled -with the `showpos` and `noshowpos` manipulators. - -The `signed_zero flag` has no effect with the input facet `nonfinite_num_get`. -The input facet `nonfinite_num_get` always parses "0" and "+0" -as positive zero and "-0" as negative zero, -as do most implementations of `std::num_get`. - -[note If the `signed_zero` flag is not set (the default), then a negative zero value -will be displayed on output in whatever way the platform normally handles it. -For most platforms, this it will format positive zero as "0" or "+0" and negative zero as "-0". -But setting the `signed_zero` flag may be more portable.] - -[tip A negative zero value can be portably produced using the changesign function -`(changesign)(static_cast(0))` where `ValType` is `float`, `double` or `long double`, - or a User-Defined floating-point type (UDT) provided that this UDT has a sign -and that the changesign function is implemented.] - -[h5 trap_infinity] - -If the `trap_infinity` flag is used with `nonfinite_num_put`, -then the facet will throw an exception of type `std::ios_base::failure` -when an attempt is made to format positive or negative infinity. -If the facet is called from a stream insertion operator, -then the stream will catch that exception and set either its `fail bit` or its `bad bit`. -Which bit is set is platform dependent. - -If the `trap_infinity` flag is used with `nonfinite_num_get`, -then the facet will set the `fail bit` of the stream when an attempt is made -to parse a string that represents positive or negative infinity. - - -(See Design Rationale below for a discussion of this inconsistency.) - -[h5 trap_nan] - -Same as `trap_infinity`, but positive and negative NaN are trapped instead. - -[endsect] [/section:reference Reference] - - -[section:examples Examples] - -[h5 Simple example with std::stringstreams] - -[nonfinite_facets_sstream_1] -[nonfinite_facets_sstream_2] - -[h5 Use with lexical_cast] - -[note From Boost 1.48, lexical_cast no longer uses stringstreams internally, -and is now able to handle infinities and NaNs natively on most platforms.] - -Without using a new locale that contains the nonfinite facets, -previous versions of `lexical_cast` using stringstream were not portable -(and often failed) if nonfinite values are found. - -[nonfinite_facets_sstream_1] - -Although other examples imbue individual streams with the new locale, -for the streams constructed inside lexical_cast, -it was necesary to assign to a global locale. - - locale::global(new_locale); - -`lexical_cast` then works as expected, even with infinity and NaNs. - - double x = boost::lexical_cast("inf"); - assert(x == std::numeric:limits::infinity()); - - string s = boost::lexical_cast(numeric_limits::infinity()); - assert(s == "inf"); - -[warning If you use stringstream inside your functions, -you may still need to use a global locale to handle nonfinites correctly. -Or you need to imbue your stringstream with suitable get and put facets.] - -[warning You should be aware that the C++ specification does not explicitly require -that input from decimal digits strings converts with rounding to the -nearest representable floating-point binary value. -(In contrast, decimal digits read by the compiler, -for example by an assignment like `double d = 1.234567890123456789`, -are guaranteed to assign the nearest representable value to double d). -This implies that, no matter how many decimal digits you provide, -there is a potential uncertainty of 1 least significant bit in the resulting binary value.] - -See [@http://en.wikipedia.org/wiki/Floating_point#Representable_numbers.2C_conversion_and_rounding conversion and rounding] -for more information on ['nearest representable] and ['rounding] and -[@http://www.exploringbinary.com/ Exploring Binary] for much detail on input and round-tripping difficulties. - -Most iostream libraries do in fact achieve the desirable -['nearest representable floating-point binary value] for all values of input. -However one popular STL library does not quite achieve this for 64-bit doubles. See -[@http://connect.microsoft.com/VisualStudio/feedback/details/98770/decimal-digit-string-input-to-double-may-be-1-bit-wrong -Decimal digit string input to double may be 1 bit wrong] for the bizarre full details. - -If you are expecting to 'round-trip' `lexical_cast` or `serialization`, -for example archiving and loading, -and want to be [*absolutely certain that you will -always get an exactly identical double value binary pattern], -you should use the suggested 'workaround' below that is believed to work on all platforms. - -You should output using all potentially significant decimal digits, -by setting stream precision to `std::numeric_limits::max_digits10`, -(or for the appropriate floating-point type, if not double) -and crucially, [*require `scientific` format], not `fixed` or automatic (default), for example: - - double output_value = any value; - std::stringstream s; - s << setprecison(std::numeric_limits::max_digits10) << scientific << output_value; - s >> input_value; - - -[h4 Use with serialization archives] - -It is vital that the same locale is used -when an archive is saved and when it is loaded. -Otherwise, loading the archive may fail. -By default, archives are saved and loaded with a classic C locale -with a `boost::archive::codecvt_null` facet added. -Normally you do not have to worry about that. - -The constructors for the archive classes, as a side-effect, -imbue the stream with such a locale. -However, if you want to use the -facets `nonfinite_num_put` and `nonfinite_num_get` with archives, -then you have to manage the locale manually. -That is done by calling the archive constructor with the flag -`boost::archive::no_codecvt`, thereby ensuring that the archive constructor -will [*not imbue the stream with a new locale]. - -The following code shows how to use `nonfinite_num_put` with a `text_oarchive`. - - locale default_locale(locale::classic(), new boost::archive::codecvt_null); - locale my_locale(default_locale, new nonfinite_num_put); - - ofstream ofs("test.txt"); - ofs.imbue(my_locale); - - boost::archive::text_oarchive oa(ofs, no_codecvt); - - double x = numeric_limits::infinity(); - oa & x; - -The same method works with `nonfinite_num_get` and `text_iarchive`. - -If you use the `nonfinite_num_put` with `trap_infinity` -and/or `trap_nan` flag with a serialization archive, -then you must set the exception mask of the stream. -Serialization archives do not check the stream state. - - -[h5 Other examples] - -[@../../example/nonfinite_facet_simple.cpp nonfinite_facet_simple.cpp] -give some more simple demonstrations of the difference between using classic C locale -and constructing a C99 infinty and NaN compliant locale for input and output. - -See [@../../example/nonfinite_facet_sstream.cpp nonfinite_facet_sstream.cpp] -for this example of use with `std::stringstream`s. - -For an example of how to enforce the MSVC 'legacy' -"1.#INF" and "1.#QNAN" representations of infinity and NaNs, -for input and output, -see [@../../example/nonfinite_legacy.cpp nonfinite_legacy.cpp]. - -Treatment of signaling NaN is demonstrated at -[@../../example/nonfinite_signaling_NaN.cpp] - -Example [@../../example/nonfinite_loopback_ok.cpp] shows loopback works OK. - -Example [@../../example/nonfinite_num_facet.cpp] shows output and re-input -of various finite and nonfinite values. - -A simple example of trapping nonfinite output is at -[@../../example/nonfinite_num_facet_trap.cpp nonfinite_num_facet_trap.cpp]. - -A very basic example of using Boost.Archive is at -[@../../example/nonfinite_serialization_archives.cpp]. - -A full demonstration of serialization by Francois Mauger is at -[@../../example/nonfinite_num_facet_serialization.cpp] - -[endsect] [/section:examples Examples] - -[section:portability Portability] - -This library uses the floating-point number classification and sign-bit from Boost.Math library, -and should work on all platforms where that library works. -See the portability information for that library. - -[endsect] [/section:portability Portability] - -[section:rationale Design Rationale] - -* The flags are implemented as a const data member of the facet. -Facets are reference counted, and locales can share facets. -Therefore changing the flags of a facet would have effects that are hard to predict. -An alternative design would be to implement the flags -using `std::ios_base::xalloc` and `std::ios_base::iword`. -Then one could safely modify the flags, and one could define manipulators that do so. -However, for that to work with dynamically linked libraries, -a `.cpp` file would have to be added to the library. -It was judged be more desirable to have a header-only library, -than to have mutable flags and manipulators. - -* The facet `nonfinite_num_put` throws an exception when -the `trap_infinity` or `trap_nan` flag is set -and an attempt is made to format infinity or NaN. -It would be better if the facet set the `fail bit` of the stream. -However, facets derived from `std::num_put` do not have access to the stream state. - -[endsect] [/section:rationale Design Rationale] - -[endsect] [/section:fp_facets Facets for Floating-Point Infinities and NaNs] - -[/ - Copyright Johan Rade and Paul A. Bristow 2011. - 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). -] - - - - diff --git a/boost/libs/math/doc/fp_utilities/fpclassify.qbk b/boost/libs/math/doc/fp_utilities/fpclassify.qbk deleted file mode 100644 index d140abdd..00000000 --- a/boost/libs/math/doc/fp_utilities/fpclassify.qbk +++ /dev/null @@ -1,124 +0,0 @@ -[section:fpclass Floating-Point Classification: Infinities and NaNs] - -[h4 Synopsis] - - #define FP_ZERO /* implementation specific value */ - #define FP_NORMAL /* implementation specific value */ - #define FP_INFINITE /* implementation specific value */ - #define FP_NAN /* implementation specific value */ - #define FP_SUBNORMAL /* implementation specific value */ - - template - int fpclassify(T t); - - template - bool isfinite(T z); // Neither infinity nor NaN. - - template - bool isinf(T t); // Infinity (+ or -). - - template - bool isnan(T t); // NaN. - - template - bool isnormal(T t); // isfinite and not denormalised. - - #include - -to use these functions. - -[h4 Description] - -These functions provide the same functionality as the macros with the same -name in C99, indeed if the C99 macros are available, then these functions -are implemented in terms of them, otherwise they rely on `std::numeric_limits<>` -to function. - -Note that the definition of these functions -['does not suppress the definition of these names as macros by math.h] -on those platforms that already provide -these as macros. That mean that the following have differing meanings: - - using namespace boost::math; - - // This might call a global macro if defined, - // but might not work if the type of z is unsupported - // by the std lib macro: - isnan(z); - // - // This calls the Boost version - // (found via the "using namespace boost::math" declaration) - // it works for any type that has numeric_limits support for type z: - (isnan)(z); - // - // As above but with explicit namespace qualification. - (boost::math::isnan)(z); - // - // This will cause a compiler error if isnan is a native macro: - boost::math::isnan(z); - // So always use instead: - (boost::math::isnan)(z); - // - // You can also add a using statement, - // globally to a .cpp file, or to a local function in a .hpp file. - using boost::math::isnan; - // so you can write the shorter and less cluttered - (isnan)(z) - // But, as above, if isnan is a native macro, this causes a compiler error, - // because the macro always 'gets' the name first, unless enclosed in () brackets. - -Detailed descriptions for each of these functions follows: - - template - int fpclassify(T t); - -Returns an integer value that classifies the value /t/: - -[table -[[fpclassify value] [class of t.]] -[[FP_ZERO] [If /t/ is zero.]] -[[FP_NORMAL] [If /t/ is a non-zero, non-denormalised finite value.]] -[[FP_INFINITE] [If /t/ is plus or minus infinity.]] -[[FP_NAN] [If /t/ is a NaN.]] -[[FP_SUBNORMAL] [If /t/ is a denormalised number.]] -] - - template - bool isfinite(T z); - -Returns true only if /z/ is not an infinity or a NaN. - - template - bool isinf(T t); - -Returns true only if /z/ is plus or minus infinity. - - template - bool isnan(T t); - -Returns true only if /z/ is a [@http://en.wikipedia.org/wiki/NaN NaN]. - - template - bool isnormal(T t); - -Returns true only if /z/ is a normal number (not zero, infinite, NaN, or denormalised). - -[h5 Floating-point format] - -If you wish to find details of the floating-point format for any particular processor, -there is a program - -[@../../example/inspect_fp.cpp inspect_fp.cpp] - -by Johan Rade which can be used to print out the processor type, -endianness, and detailed bit layout of a selection of floating-point values, -including infinity and NaNs. - -[endsect] [/section:fpclass Floating Point Classification: Infinities and NaNs] - -[/ - Copyright 2006, 2008, 2011 John Maddock, Johan Rade and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/fp_utilities/rounding_func.qbk b/boost/libs/math/doc/fp_utilities/rounding_func.qbk deleted file mode 100644 index eed32054..00000000 --- a/boost/libs/math/doc/fp_utilities/rounding_func.qbk +++ /dev/null @@ -1,129 +0,0 @@ - -[section:rounding Rounding Truncation and Integer Conversion] - -[section:round Rounding Functions] - -``#include `` - - template - T round(const T& v); - - template - T round(const T& v, const Policy&); - - template - int iround(const T& v); - - template - int iround(const T& v, const Policy&); - - template - long lround(const T& v); - - template - long lround(const T& v, const Policy&); - - template - long long llround(const T& v); - - template - long long llround(const T& v, const Policy&); - -These functions return the closest integer to the argument /v/. - -Halfway cases are rounded away from zero, regardless of the current rounding -direction. - -If the argument /v/ is either non-finite or else outside the range -of the result type, then returns the result of __rounding_error: by -default this throws an instance of `boost::math::rounding_error`. - -[endsect] - -[section:trunc Truncation Functions] - -``#include `` - - template - T trunc(const T& v); - - template - T trunc(const T& v, const Policy&); - - template - int itrunc(const T& v); - - template - int itrunc(const T& v, const Policy&); - - template - long ltrunc(const T& v); - - template - long ltrunc(const T& v, const Policy&); - - template - long long lltrunc(const T& v); - - template - long long lltrunc(const T& v, const Policy&); - -The trunc functions round their argument to the integer value, -nearest to but no larger in magnitude than the argument. - -For example `itrunc(3.7)` would return `3` and `ltrunc(-4.6)` -would return `-4`. - -If the argument /v/ is either non-finite or else outside the range -of the result type, then returns the result of __rounding_error: by -default this throws an instance of `boost::math::rounding_error`. - -[endsect] - -[section:modf Integer and Fractional Part Splitting (modf)] - -``#include `` - - template - T modf(const T& v, T* ipart); - - template - T modf(const T& v, T* ipart, const Policy&); - - template - T modf(const T& v, int* ipart); - - template - T modf(const T& v, int* ipart, const Policy&); - - template - T modf(const T& v, long* ipart); - - template - T modf(const T& v, long* ipart, const Policy&); - - template - T modf(const T& v, long long* ipart); - - template - T modf(const T& v, long long* ipart, const Policy&); - -The `modf` functions store the integer part of /v/ in `*ipart` -and return the fractional part of /v/. The sign of the integer -and fractional parts are the same as the sign of /v/. - -If the argument /v/ is either non-finite or else outside the range -of the result type, then returns the result of __rounding_error: by -default this throws an instance of `boost::math::rounding_error`. - -[endsect] - - -[endsect] [/section:rounding Rounding Truncation and Integer Conversion] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/fp_utilities/sign.qbk b/boost/libs/math/doc/fp_utilities/sign.qbk deleted file mode 100644 index 372b30c1..00000000 --- a/boost/libs/math/doc/fp_utilities/sign.qbk +++ /dev/null @@ -1,137 +0,0 @@ -[section:sign_functions Sign Manipulation Functions] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - int signbit(T x); - - template - int sign (const T& z); - - template - T copysign (const T& x, const U& y); - - template - ``__sf_result`` changesign (const T& z); - - }} // namespaces - -[h4 Description] - - template - int signbit(T x); - -Returns a non-zero value if the sign bit is set in variable /x/, otherwise `0`. - -[important The return value from this function is zero or /not-zero/ and [*not] zero or one.] - - template - int sign (const T& z); - -Returns `1` if /x/ `> 0`, `-1` if /x/ `< 0`, and `0` if /x/ is zero. - - template - ``__sf_result`` copysign (const T& x, const U& y); - -Sets the sign of /x/ to be the same as the sign of /y/. - -See [@http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf C99 7.12.11.1 The copysign functions] -for more detail. - - template - T changesign (const T& z); - -Returns a floating-point number with a binary representation -where the signbit is the opposite of the sign bit in /x/, -and where the other bits are the same as in /x/. - -This function is widely available, but not specified in any standards. - -Rationale: Not specified by TR1, but `changesign(x)` -is both easier to read and more efficient than - - copysign(x, signbit(x) ? 1.0 : -1.0); - -For finite values, this function has the same effect as simple negation, -the assignment z = -z, but for nonfinite values, -[@http://en.wikipedia.org/wiki/Infinity#Computing infinities] -and [@http://en.wikipedia.org/wiki/NaN NaNs], -the `changesign(x)` function may be the only portable way -to ensure that the sign bit is changed. - -[h5 Sign bits] -One of the bits in the binary representation of a floating-point number gives the sign, -and the remaining bits give the absolute value. -That bit is known as the sign bit. -The sign bit is set = 1 for negative numbers, and is not set = 0 for positive numbers. -(This is true for all binary representations of floating-point numbers -that are used by modern microprocessors.) - -[@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf C++ TR1] -specifies `copysign` functions and function templates for accessing the sign bit. - -For user-defined types (UDT), the sign may be stored in some other way. -They may also not provide infinity or NaNs. -To use these functions with a UDT, -it may be necessary to explicitly specialize them for UDT type T. - -[h5 Examples] - - signbit(3.5) is zero (or false) - signbit(-7.1) is 1 (or true) - copysign(4.2, 7.9) is 4.2 - copysign(3.5 -1.4) is -3.5 - copysign(-4.2, 1.0) is 4.2 - copysign(-8.6, -3.3) is -8.6 - changesign(6.9) is -6.9 - changesign(-1.8) is 1.8 - -[h5 Portability] - -The library supports the following binary floating-point formats: - -* IEEE 754 single precision -* IEEE 754 double precision -* IEEE 754 extended double precision with 15 exponent bits -* Intel extended double precision -* PowerPC extended double precision -* Motorola 68K extended double precision - -The library does not support the VAX floating-point formats. -(These are available on VMS, but the default on VMS is the IEEE 754 floating-point format.) - -The main portability issues are: - -* Unsupported floating-point formats. -* The library depends on the header `boost/detail/endian.hpp` to detemine endianness. -* Code such as `#if defined(__ia64) || defined(__ia64__) || defined(_M_IA64)` -is used to determine the processor type. - -The library has passed all tests on the following platforms: - -* Win32 / MSVC 7.1 / 10.0 / x86 32 and 64-bit, and later Win32 -* Win32 / Intel C++ 7.1, 8.1, 9.1 / x86 -* Mac OS X / GCC 3.3, 4.0 / ppc -* Linux / Intel C++ 9.1 / x86, ia64 -* Linux / GCC 3.3 / x86, x64, ia64, ppc, hppa, mips, m68k -* Linux / GCC 3.4 / x64 -* HP-UX / aCC, GCC 4.1 / ia64 -* HP-UX / aCC / hppa -* Tru64 / Compaq C++ 7.1 / alpha -* VMS / HP C++ 7.1 / alpha (in IEEE floating-point mode) -* VMS / HP C++ 7.2 / ia64 (in IEEE floating-point mode) - -[endsect] [/section:sign_functions Sign Manipulation Functions] -[/ - Copyright 2006 John Maddock and Paul A. Bristow 2011. - 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). -] - diff --git a/boost/libs/math/doc/gcd/math-gcd.qbk b/boost/libs/math/doc/gcd/math-gcd.qbk deleted file mode 100644 index e6c32a32..00000000 --- a/boost/libs/math/doc/gcd/math-gcd.qbk +++ /dev/null @@ -1,258 +0,0 @@ - -[mathpart gcd_lcm Integer Utilities (Greatest Common Divisor and Least Common Multiple)] - -[section Introduction] - -The class and function templates in `` -provide both run-time and compile-time evaluation of the greatest common divisor -(GCD) or least common multiple (LCM) of two integers. -These facilities are useful for many numeric-oriented generic -programming problems. - -[endsect] [/section Introduction] - -[section Synopsis] - - namespace boost - { - namespace math - { - - template < typename IntegerType > - class gcd_evaluator; - template < typename IntegerType > - class lcm_evaluator; - - template < typename IntegerType > - IntegerType gcd( IntegerType const &a, IntegerType const &b ); - template < typename ForwardIterator > - std::pair::value_type, I> gcd_range(I first, I last); - template < typename IntegerType > - IntegerType lcm( IntegerType const &a, IntegerType const &b ); - - typedef ``['see-below]`` static_gcd_type; - - template < static_gcd_type Value1, static_gcd_type Value2 > - struct static_gcd; - template < static_gcd_type Value1, static_gcd_type Value2 > - struct static_lcm; - - } - } - -[endsect] [/section Introduction] - -[section GCD Function Object] - -[*Header: ] [@../../../../boost/math/common_factor_rt.hpp ] - - template < typename IntegerType > - class boost::math::gcd_evaluator - { - public: - // Types - typedef IntegerType result_type; - typedef IntegerType first_argument_type; - typedef IntegerType second_argument_type; - - // Function object interface - result_type operator ()( first_argument_type const &a, - second_argument_type const &b ) const; - }; - -The `boost::math::gcd`_evaluator class template defines a function object -class to return the greatest common divisor of two integers. -The template is parameterized by a single type, called `IntegerType` here. -This type should be a numeric type that represents integers. -The result of the function object is always nonnegative, even if either of -the operator arguments is negative. - -This function object class template is used in the corresponding version of -the GCD function template. If a numeric type wants to customize evaluations -of its greatest common divisors, then the type should specialize on the -`gcd_evaluator` class template. - -[endsect] [/section GCD Function Object] - -[section LCM Function Object] - -[*Header: ] [@../../../../boost/math/common_factor_rt.hpp ] - - template < typename IntegerType > - class boost::math::lcm_evaluator - { - public: - // Types - typedef IntegerType result_type; - typedef IntegerType first_argument_type; - typedef IntegerType second_argument_type; - - // Function object interface - result_type operator ()( first_argument_type const &a, - second_argument_type const &b ) const; - }; - -The `boost::math::lcm_evaluator` class template defines a function object -class to return the least common multiple of two integers. The template -is parameterized by a single type, called `IntegerType `here. This type -should be a numeric type that represents integers. The result of the -function object is always nonnegative, even if either of the operator -arguments is negative. If the least common multiple is beyond the range -of the integer type, the results are undefined. - -This function object class template is used in the corresponding version -of the LCM function template. If a numeric type wants to customize -evaluations of its least common multiples, then the type should -specialize on the `lcm_evaluator` class template. - -[endsect] [/section LCM Function Object] - -[section:run_time Run-time GCD & LCM Determination] - -[*Header: ] [@../../../../boost/math/common_factor_rt.hpp ] - - template < typename IntegerType > - IntegerType boost::math::gcd( IntegerType const &a, IntegerType const &b ); - - template < typename ForwardIterator > - std::pair::value_type, I> gcd_range(I first, I last); - - template < typename IntegerType > - IntegerType boost::math::lcm( IntegerType const &a, IntegerType const &b ); - -The `boost::math::gcd` function template returns the greatest common -(nonnegative) divisor of the two integers passed to it. -`boost::math::gcd_range` is the iteration of the above gcd algorithm over a -range, returning the greatest common divisor of all the elements. The algorithm -terminates when the gcd reaches unity or the end of the range. Thus it also -returns the iterator after the last element inspected because this may not be -equal to the end of the range. -The boost::math::lcm function template returns the least common -(nonnegative) multiple of the two integers passed to it. -The function templates are parameterized on the function arguments' -IntegerType, which is also the return type. Internally, these function -templates use an object of the corresponding version of the -`gcd_evaluator` and `lcm_evaluator` class templates, respectively. - -[endsect] [/section:run_time Run-time GCD & LCM Determination] - -[section:compile_time Compile-time GCD and LCM determination] - -[*Header: ] [@../../../../boost/math/common_factor_ct.hpp ] - - typedef ``['unspecified]`` static_gcd_type; - - template < static_gcd_type Value1, static_gcd_type Value2 > - struct boost::math::static_gcd : public mpl::integral_c - { - }; - - template < static_gcd_type Value1, static_gcd_type Value2 > - struct boost::math::static_lcm : public mpl::integral_c - { - }; - -The type `static_gcd_type` is the widest unsigned-integer-type that is supported -for use in integral-constant-expressions by the compiler. Usually this -the same type as `boost::uintmax_t`, but may fall back to being `unsigned long` -for some older compilers. - -The boost::math::static_gcd and boost::math::static_lcm class templates -take two value-based template parameters of the ['static_gcd_type] type -and inherit from the type `boost::mpl::integral_c`. -Inherited from the base class, they have a member /value/ -that is the greatest common factor or least -common multiple, respectively, of the template arguments. -A compile-time error will occur if the least common multiple -is beyond the range of `static_gcd_type`. - -[h3 Example] - - #include - #include - #include - #include - - int main() - { - using std::cout; - using std::endl; - - cout << "The GCD and LCM of 6 and 15 are " - << boost::math::gcd(6, 15) << " and " - << boost::math::lcm(6, 15) << ", respectively." - << endl; - - cout << "The GCD and LCM of 8 and 9 are " - << boost::math::static_gcd<8, 9>::value - << " and " - << boost::math::static_lcm<8, 9>::value - << ", respectively." << endl; - - int a[] = { 4, 5, 6 }, b[] = { 7, 8, 9 }, c[3]; - std::transform( a, a + 3, b, c, boost::math::gcd_evaluator() ); - std::copy( c, c + 3, std::ostream_iterator(cout, " ") ); - } - -[endsect] [/section:compile_time Compile time GCD and LCM determination] - -[section:gcd_header Header ] - -This header simply includes the headers -[@../../../../boost/math/common_factor_ct.hpp ] -and [@../../../../boost/math/common_factor_rt.hpp ]. - -[note This is a legacy header: it used to contain the actual implementation, -but the compile-time and run-time facilities -were moved to separate headers (since they were independent of each other).] - -[endsect] [/section:gcd_header Header ] - -[section:demo Demonstration Program] - -The program [@../../../../libs/math/test/common_factor_test.cpp common_factor_test.cpp] -is a demonstration of the results from -instantiating various examples of the run-time GCD and LCM function -templates and the compile-time GCD and LCM class templates. -(The run-time GCD and LCM class templates are tested indirectly through -the run-time function templates.) - -[endsect] [/section:demo Demonstration Program] - -[section Rationale] - -The greatest common divisor and least common multiple functions are -greatly used in some numeric contexts, including some of the other -Boost libraries. Centralizing these functions to one header improves -code factoring and eases maintainence. - -[endsect] [/section Rationale] - -[section:gcd_history History] - -* 13 May 2013 Moved into main Boost.Math Quickbook documentation. -* 17 Dec 2005: Converted documentation to Quickbook Format. -* 2 Jul 2002: Compile-time and run-time items separated to new headers. -* 7 Nov 2001: Initial version - -[endsect] [/section:gcd_history History] - -[section:gcd_credits Credits] - -The author of the Boost compilation of GCD and LCM computations is -Daryle Walker. The code was prompted by existing code hiding in the -implementations of Paul Moore's rational library and Steve Cleary's -pool library. The code had updates by Helmut Zeisel. - -[endsect] [/section:gcd_credits Credits] - -[endmathpart] [/mathpart gcd_lcm Integer Utilities (Greatest Common Divisor and Least Common Multiple)] - -[/ -Copyright 2005, 2013 Daryle Walker. -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). -] - - diff --git a/boost/libs/math/doc/graphs/Jamfile.v2 b/boost/libs/math/doc/graphs/Jamfile.v2 deleted file mode 100644 index 25da9f22..00000000 --- a/boost/libs/math/doc/graphs/Jamfile.v2 +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright John Maddock 2008. Use, modification, and distribution are -# subject to 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) - -import os ; -import common ; -import modules ; -import regex ; - -inkscape_global = [ modules.peek : INKSCAPE ] ; - -if $(inkscape_global) -{ - inkscape = $(inkscape_global) ; - - ECHO "Using the INKSCAPE environment variable to set inkscape to: " $(inkscape) ; -} -else if [ os.name ] = NT -{ - - inkscape_reg = [ W32_GETREG "HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\svgfile\\shell\\Inkscape\\command" ] ; - inkscape_parts = [ regex.split $(inkscape_reg) "\"%1" ] ; - inkscape = $(inkscape_parts[1]) ; - - ECHO "Using the Windows registry to set the Inkscape path to: " $(inkscape) ; - ECHO "If that's not correct, try setting the INKSCAPE environment " ; - ECHO "variable to the correct path and executable file name." ; -} -else -{ - inkscape = "inkscape" ; - ECHO "No inkscape path specified, defaulting to \"inkscape\"." ; - ECHO "If that's not correct, try setting the INKSCAPE environment " ; - ECHO "variable to the correct path and executable file name." ; -} - -#make inkscape.check : : @inkscape-rule ; -actions inkscape-rule -{ - $(inkscape) --version > inkscape.version -} - - -actions svg2png -{ - $(inkscape) -d 120 -e $(<) $(>) -} -for local source in [ glob *.svg ] -{ - path-constant p : $(source:B).png ; - make $(p) : $(source) : @svg2png ; -} - diff --git a/boost/libs/math/doc/graphs/acosh.png b/boost/libs/math/doc/graphs/acosh.png deleted file mode 100644 index d6488794..00000000 Binary files a/boost/libs/math/doc/graphs/acosh.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/acosh.svg b/boost/libs/math/doc/graphs/acosh.svg deleted file mode 100644 index d186aea3..00000000 --- a/boost/libs/math/doc/graphs/acosh.svg +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 - -0.5 -1 -1.5 -2 -2.5 -3 - -acosh(z) - -z - - - - -acosh - - - diff --git a/boost/libs/math/doc/graphs/airy_ai.png b/boost/libs/math/doc/graphs/airy_ai.png deleted file mode 100644 index e7334d27..00000000 Binary files a/boost/libs/math/doc/graphs/airy_ai.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/airy_ai.svg b/boost/libs/math/doc/graphs/airy_ai.svg deleted file mode 100644 index e618cba0..00000000 --- a/boost/libs/math/doc/graphs/airy_ai.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -10 -20 -0 --10 --20 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0 --0.1 --0.2 --0.3 --0.4 - -airy_ai(z) - -z - - - - -Ai - - - diff --git a/boost/libs/math/doc/graphs/airy_aip.png b/boost/libs/math/doc/graphs/airy_aip.png deleted file mode 100644 index a7e6eb3e..00000000 Binary files a/boost/libs/math/doc/graphs/airy_aip.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/airy_aip.svg b/boost/libs/math/doc/graphs/airy_aip.svg deleted file mode 100644 index 711358c8..00000000 --- a/boost/libs/math/doc/graphs/airy_aip.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -10 -20 -0 --10 --20 - -0 -0.5 -1 -0 --0.5 --1 - -airy_ai_prime(z) - -z - - - - -Ai' - - - diff --git a/boost/libs/math/doc/graphs/airy_bi.png b/boost/libs/math/doc/graphs/airy_bi.png deleted file mode 100644 index 969774c1..00000000 Binary files a/boost/libs/math/doc/graphs/airy_bi.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/airy_bi.svg b/boost/libs/math/doc/graphs/airy_bi.svg deleted file mode 100644 index 73f07d4e..00000000 --- a/boost/libs/math/doc/graphs/airy_bi.svg +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0 --5 --10 --15 --20 - -0 -5 -10 -0 - -airy_bi(z) - -z - - - - -Bi - - - diff --git a/boost/libs/math/doc/graphs/airy_bip.png b/boost/libs/math/doc/graphs/airy_bip.png deleted file mode 100644 index 3c029e58..00000000 Binary files a/boost/libs/math/doc/graphs/airy_bip.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/airy_bip.svg b/boost/libs/math/doc/graphs/airy_bip.svg deleted file mode 100644 index cea96e61..00000000 --- a/boost/libs/math/doc/graphs/airy_bip.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0 --5 --10 --15 --20 - -0 -5 -10 -15 -20 -0 - -airy_bi_prime(z) - -z - - - - -Bi' - - - diff --git a/boost/libs/math/doc/graphs/airy_zeros.png b/boost/libs/math/doc/graphs/airy_zeros.png deleted file mode 100644 index 4fa17c59..00000000 Binary files a/boost/libs/math/doc/graphs/airy_zeros.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/airy_zeros.svg b/boost/libs/math/doc/graphs/airy_zeros.svg deleted file mode 100644 index 625a917a..00000000 --- a/boost/libs/math/doc/graphs/airy_zeros.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0 --5 --10 - -0.0 -0.2 -0.4 -0.6 -0.8 -1.0 -0.0 --0.2 --0.4 - -Ai(x), Bi(x) - -x - - - - - - - - - - - - - -Ai(x) -Bi(x) -Ai zeros -Bi zeros - -Zeros of Airy(x) - - - diff --git a/boost/libs/math/doc/graphs/arcsine01_cdf.png b/boost/libs/math/doc/graphs/arcsine01_cdf.png deleted file mode 100644 index 05161235..00000000 Binary files a/boost/libs/math/doc/graphs/arcsine01_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/arcsine01_cdf.svg b/boost/libs/math/doc/graphs/arcsine01_cdf.svg deleted file mode 100644 index eac48830..00000000 --- a/boost/libs/math/doc/graphs/arcsine01_cdf.svg +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -0 - -Probability - -Random Variable x - - - - - - - -x_min=0, x_max=1 - -Arcsine Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/arcsine01_pdf.png b/boost/libs/math/doc/graphs/arcsine01_pdf.png deleted file mode 100644 index 81600959..00000000 Binary files a/boost/libs/math/doc/graphs/arcsine01_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/arcsine01_pdf.svg b/boost/libs/math/doc/graphs/arcsine01_pdf.svg deleted file mode 100644 index da3de29d..00000000 --- a/boost/libs/math/doc/graphs/arcsine01_pdf.svg +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -0 - -0 -0.5 -1 -1.5 -2 -2.5 -0 - -Probability - -Random Variable x - - - - - - - - -x_min=0, x_max=1 - -Arcsine Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/arcsine_cdf.png b/boost/libs/math/doc/graphs/arcsine_cdf.png deleted file mode 100644 index 7827570c..00000000 Binary files a/boost/libs/math/doc/graphs/arcsine_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/arcsine_cdf.svg b/boost/libs/math/doc/graphs/arcsine_cdf.svg deleted file mode 100644 index 681d2524..00000000 --- a/boost/libs/math/doc/graphs/arcsine_cdf.svg +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -0 --1 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -0 - -Probability - -Random Variable x - - - - - - - - - - - - - - - -x_min=0, x_max=1 -x_min=-1, x_max=1 -x_min=-1, x_max=2 -x_min=-1, x_max=4 -x_min=2, x_max=4 - -Arcsine Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/arcsine_pdf.png b/boost/libs/math/doc/graphs/arcsine_pdf.png deleted file mode 100644 index 16ae38ee..00000000 Binary files a/boost/libs/math/doc/graphs/arcsine_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/arcsine_pdf.svg b/boost/libs/math/doc/graphs/arcsine_pdf.svg deleted file mode 100644 index b917b021..00000000 --- a/boost/libs/math/doc/graphs/arcsine_pdf.svg +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -0 --1 - -0 -0.5 -1 -1.5 -2 -2.5 -0 - -Probability - -Random Variable x - - - - - - - - - - - - - - - - -x_min=0, x_max=1 -x_min=-1, x_max=1 -x_min=-1, x_max=2 -x_min=-1, x_max=4 -x_min=2, x_max=4 - -Arcsine Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/asinh.png b/boost/libs/math/doc/graphs/asinh.png deleted file mode 100644 index 2cdcfde5..00000000 Binary files a/boost/libs/math/doc/graphs/asinh.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/asinh.svg b/boost/libs/math/doc/graphs/asinh.svg deleted file mode 100644 index 8cf3273a..00000000 --- a/boost/libs/math/doc/graphs/asinh.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 --10 - -0 -1 -2 -3 -0 --1 --2 - -asinh(z) - -z - - - - -asinh - - - diff --git a/boost/libs/math/doc/graphs/atanh.png b/boost/libs/math/doc/graphs/atanh.png deleted file mode 100644 index 188ae3e3..00000000 Binary files a/boost/libs/math/doc/graphs/atanh.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/atanh.svg b/boost/libs/math/doc/graphs/atanh.svg deleted file mode 100644 index 13925702..00000000 --- a/boost/libs/math/doc/graphs/atanh.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0.5 -1 -0 --0.5 - -0 -1 -2 -3 -4 -5 -0 --1 --2 --3 --4 --5 - -atanh(z) - -z - - - - -atanh - - - diff --git a/boost/libs/math/doc/graphs/bernoulli_cdf.png b/boost/libs/math/doc/graphs/bernoulli_cdf.png deleted file mode 100644 index 456fb4c8..00000000 Binary files a/boost/libs/math/doc/graphs/bernoulli_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/bernoulli_cdf.svg b/boost/libs/math/doc/graphs/bernoulli_cdf.svg deleted file mode 100644 index 9b1e84ed..00000000 --- a/boost/libs/math/doc/graphs/bernoulli_cdf.svg +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - -p=0.25 -p=0.5 -p=0.75 - -Bernoulli Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/bernoulli_pdf.png b/boost/libs/math/doc/graphs/bernoulli_pdf.png deleted file mode 100644 index 7b43340f..00000000 Binary files a/boost/libs/math/doc/graphs/bernoulli_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/bernoulli_pdf.svg b/boost/libs/math/doc/graphs/bernoulli_pdf.svg deleted file mode 100644 index d6f1d3f5..00000000 --- a/boost/libs/math/doc/graphs/bernoulli_pdf.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0 - -Probability - -Random Variable - - - - - - - - - - - -p=0.25 -p=0.5 -p=0.75 - -Bernoulli Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/bessel_j_zeros.png b/boost/libs/math/doc/graphs/bessel_j_zeros.png deleted file mode 100644 index 17b5a847..00000000 Binary files a/boost/libs/math/doc/graphs/bessel_j_zeros.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/bessel_j_zeros.svg b/boost/libs/math/doc/graphs/bessel_j_zeros.svg deleted file mode 100644 index b5ca9b12..00000000 --- a/boost/libs/math/doc/graphs/bessel_j_zeros.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -0 --5 --10 --15 --20 - -0.0 -0.2 -0.4 -0.6 -0.8 -1.0 -0.0 --0.2 --0.4 - -J₀(x) - -x - - - - - - - - - -zeros -J₀(x) - -Zeros of Bessel J₀(x) - - - diff --git a/boost/libs/math/doc/graphs/beta.png b/boost/libs/math/doc/graphs/beta.png deleted file mode 100644 index 87b84deb..00000000 Binary files a/boost/libs/math/doc/graphs/beta.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/beta.svg b/boost/libs/math/doc/graphs/beta.svg deleted file mode 100644 index bc48101b..00000000 --- a/boost/libs/math/doc/graphs/beta.svg +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 - -0 -5 -10 -0 --5 - -log(beta(a, z)) - -z - - - - - - - - - - - - - -a = 0.5 -a = 1.0 -a = 5.0 -a = 10.0 - -beta - - - diff --git a/boost/libs/math/doc/graphs/beta_pdf.png b/boost/libs/math/doc/graphs/beta_pdf.png deleted file mode 100644 index d3220638..00000000 Binary files a/boost/libs/math/doc/graphs/beta_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/beta_pdf.svg b/boost/libs/math/doc/graphs/beta_pdf.svg deleted file mode 100644 index 03dd08d4..00000000 --- a/boost/libs/math/doc/graphs/beta_pdf.svg +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -0 - -0 -0.5 -1 -1.5 -2 -2.5 -3 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - - -alpha=0.5, beta=0.5 -alpha=5, beta=1 -alpha=1, beta=3 -alpha=2, beta=2 -alpha=2, beta=5 - -Beta Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/binomial_pdf.png b/boost/libs/math/doc/graphs/binomial_pdf.png deleted file mode 100644 index 4d136c98..00000000 Binary files a/boost/libs/math/doc/graphs/binomial_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/binomial_pdf_1.png b/boost/libs/math/doc/graphs/binomial_pdf_1.png deleted file mode 100644 index ce946aa6..00000000 Binary files a/boost/libs/math/doc/graphs/binomial_pdf_1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/binomial_pdf_1.svg b/boost/libs/math/doc/graphs/binomial_pdf_1.svg deleted file mode 100644 index 23bbe500..00000000 --- a/boost/libs/math/doc/graphs/binomial_pdf_1.svg +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -10 -20 -30 -40 -50 -0 - -0 -0.05 -0.1 -0.15 -0.2 -0.25 -0.3 -0 - -Probability - -Random Variable - - - - - - - - - - - -n=5 p=0.5 -n=20 p=0.5 -n=50 p=0.5 - -Binomial Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/binomial_pdf_2.png b/boost/libs/math/doc/graphs/binomial_pdf_2.png deleted file mode 100644 index 28da3927..00000000 Binary files a/boost/libs/math/doc/graphs/binomial_pdf_2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/binomial_pdf_2.svg b/boost/libs/math/doc/graphs/binomial_pdf_2.svg deleted file mode 100644 index aa4dc9b8..00000000 --- a/boost/libs/math/doc/graphs/binomial_pdf_2.svg +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -0 - -0 -0.05 -0.1 -0.15 -0.2 -0.25 -0.3 -0 - -Probability - -Random Variable - - - - - - - - - - - -n=20 p=0.1 -n=20 p=0.5 -n=20 p=0.9 - -Binomial Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/binomial_pdf_3.png b/boost/libs/math/doc/graphs/binomial_pdf_3.png deleted file mode 100644 index 338c5264..00000000 Binary files a/boost/libs/math/doc/graphs/binomial_pdf_3.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/binomial_quantile_1.png b/boost/libs/math/doc/graphs/binomial_quantile_1.png deleted file mode 100644 index 54dfd713..00000000 Binary files a/boost/libs/math/doc/graphs/binomial_quantile_1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/brent_test_function_1.png b/boost/libs/math/doc/graphs/brent_test_function_1.png deleted file mode 100644 index cd835fa3..00000000 Binary files a/boost/libs/math/doc/graphs/brent_test_function_1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/brent_test_function_1.svg b/boost/libs/math/doc/graphs/brent_test_function_1.svg deleted file mode 100644 index 29eb77cc..00000000 --- a/boost/libs/math/doc/graphs/brent_test_function_1.svg +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -0 --1 --2 --3 --4 --5 - -0 -5 -10 -15 -0 --5 --10 --15 --20 --25 --30 - -y - -x - - - - - y=(x+3)(x-1)² - - - diff --git a/boost/libs/math/doc/graphs/cauchy_pdf1.png b/boost/libs/math/doc/graphs/cauchy_pdf1.png deleted file mode 100644 index 04e3e98f..00000000 Binary files a/boost/libs/math/doc/graphs/cauchy_pdf1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/cauchy_pdf1.svg b/boost/libs/math/doc/graphs/cauchy_pdf1.svg deleted file mode 100644 index e581a4e7..00000000 --- a/boost/libs/math/doc/graphs/cauchy_pdf1.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -0 --5 - -0 -0.1 -0.2 -0.3 -0 - -Probability - -Random Variable - - - - - - - - - - - -location = -5 -location = 0 -location = 5 - -Cauchy Distribution PDF (scale = 1) - - - diff --git a/boost/libs/math/doc/graphs/cauchy_pdf2.png b/boost/libs/math/doc/graphs/cauchy_pdf2.png deleted file mode 100644 index 9412695d..00000000 Binary files a/boost/libs/math/doc/graphs/cauchy_pdf2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/cauchy_pdf2.svg b/boost/libs/math/doc/graphs/cauchy_pdf2.svg deleted file mode 100644 index d0f3c21d..00000000 --- a/boost/libs/math/doc/graphs/cauchy_pdf2.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -0 --5 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0 - -Probability - -Random Variable - - - - - - - - - - - -scale = 0.5 -scale = 1 -scale = 2 - -Cauchy Distribution PDF (location = 0) - - - diff --git a/boost/libs/math/doc/graphs/cbrt.png b/boost/libs/math/doc/graphs/cbrt.png deleted file mode 100644 index d2a3b6cf..00000000 Binary files a/boost/libs/math/doc/graphs/cbrt.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/cbrt.svg b/boost/libs/math/doc/graphs/cbrt.svg deleted file mode 100644 index eb929185..00000000 --- a/boost/libs/math/doc/graphs/cbrt.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 --10 - -0 -1 -2 -0 --1 --2 - -cbrt(z) - -z - - - - -cbrt - - - diff --git a/boost/libs/math/doc/graphs/cdf.png b/boost/libs/math/doc/graphs/cdf.png deleted file mode 100644 index dfd7814c..00000000 Binary files a/boost/libs/math/doc/graphs/cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/chi_squared_pdf.png b/boost/libs/math/doc/graphs/chi_squared_pdf.png deleted file mode 100644 index ec5272bf..00000000 Binary files a/boost/libs/math/doc/graphs/chi_squared_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/chi_squared_pdf.svg b/boost/libs/math/doc/graphs/chi_squared_pdf.svg deleted file mode 100644 index d56438dc..00000000 --- a/boost/libs/math/doc/graphs/chi_squared_pdf.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0 - -Probability - -Random Variable - - - - - - - - - - - -v=2 -v=5 -v=10 - -Chi Squared Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/cyl_bessel_i.png b/boost/libs/math/doc/graphs/cyl_bessel_i.png deleted file mode 100644 index b7f49b5e..00000000 Binary files a/boost/libs/math/doc/graphs/cyl_bessel_i.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/cyl_bessel_i.svg b/boost/libs/math/doc/graphs/cyl_bessel_i.svg deleted file mode 100644 index 0dc157a0..00000000 --- a/boost/libs/math/doc/graphs/cyl_bessel_i.svg +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 - -0 -10 -20 -0 --10 --20 - -cyl_bessel_i(v, x) - -x - - - - - - - - - - - - - - - -v = 0 -v = 2 -v = 5 -v = 7 -v = 10 - -Bessel I - - - diff --git a/boost/libs/math/doc/graphs/cyl_bessel_j.png b/boost/libs/math/doc/graphs/cyl_bessel_j.png deleted file mode 100644 index 37c77001..00000000 Binary files a/boost/libs/math/doc/graphs/cyl_bessel_j.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/cyl_bessel_j.svg b/boost/libs/math/doc/graphs/cyl_bessel_j.svg deleted file mode 100644 index bc573898..00000000 --- a/boost/libs/math/doc/graphs/cyl_bessel_j.svg +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -10 -20 -0 --10 --20 - -0 -0.5 -1 -0 --0.5 - -cyl_bessel_j(v, x) - -x - - - - - - - - - - - - - - - -v = 0 -v = 1 -v = 2 -v = 3 -v = 4 - -Bessel J - - - diff --git a/boost/libs/math/doc/graphs/cyl_bessel_k.png b/boost/libs/math/doc/graphs/cyl_bessel_k.png deleted file mode 100644 index 68776732..00000000 Binary files a/boost/libs/math/doc/graphs/cyl_bessel_k.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/cyl_bessel_k.svg b/boost/libs/math/doc/graphs/cyl_bessel_k.svg deleted file mode 100644 index ab3d2d14..00000000 --- a/boost/libs/math/doc/graphs/cyl_bessel_k.svg +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 - -0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 - -cyl_bessel_k(v, x) - -x - - - - - - - - - - - - - - - -v = 0 -v = 2 -v = 5 -v = 7 -v = 10 - -Bessel K - - - diff --git a/boost/libs/math/doc/graphs/cyl_neumann.png b/boost/libs/math/doc/graphs/cyl_neumann.png deleted file mode 100644 index d3733da4..00000000 Binary files a/boost/libs/math/doc/graphs/cyl_neumann.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/cyl_neumann.svg b/boost/libs/math/doc/graphs/cyl_neumann.svg deleted file mode 100644 index 7c03350d..00000000 --- a/boost/libs/math/doc/graphs/cyl_neumann.svg +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 - -0 -0 --1 --2 --3 --4 --5 - -cyl_neumann(v, x) - -x - - - - - - - - - - - - - - - -v = 0 -v = 1 -v = 2 -v = 3 -v = 4 - -Bessel Y - - - diff --git a/boost/libs/math/doc/graphs/digamma.png b/boost/libs/math/doc/graphs/digamma.png deleted file mode 100644 index ec388509..00000000 Binary files a/boost/libs/math/doc/graphs/digamma.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/digamma.svg b/boost/libs/math/doc/graphs/digamma.svg deleted file mode 100644 index 0dcc6e52..00000000 --- a/boost/libs/math/doc/graphs/digamma.svg +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 - -0 -5 -10 -0 --5 --10 - -digamma(z) - -z - - - - - - - - -digamma - - - diff --git a/boost/libs/math/doc/graphs/dist_graphs.cpp b/boost/libs/math/doc/graphs/dist_graphs.cpp deleted file mode 100644 index 515d392e..00000000 --- a/boost/libs/math/doc/graphs/dist_graphs.cpp +++ /dev/null @@ -1,722 +0,0 @@ -/*! \file dist_graphs.cpp - \brief Produces Scalable Vector Graphic (.svg) files for all distributions. - \details These files can be viewed using most browsers, - though MS Internet Explorer requires a plugin from Adobe. - These file can be converted to .png using Inkscape - (see www.inkscape.org) Export Bit option which by default produces - a Portable Network Graphic file with that same filename but .png suffix instead of .svg. - Using Python, generate.sh does this conversion automatically for all .svg files in a folder. - - \author John Maddock and Paul A. Bristow - */ -// Copyright John Maddock 2008. -// Copyright Paul A. Bristow 2008, 2009, 2012 -// Use, modification and distribution are subject to 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) - -#ifdef _MSC_VER -# pragma warning (disable : 4180) // qualifier applied to function type has no meaning; ignored -# pragma warning (disable : 4503) // decorated name length exceeded, name was truncated -# pragma warning (disable : 4512) // assignment operator could not be generated -# pragma warning (disable : 4224) // nonstandard extension used : formal parameter 'function_ptr' was previously defined as a type -# pragma warning (disable : 4127) // conditional expression is constant -#endif - -#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error - -#include -#include -#include - -#include -#include -#include - -template -struct is_discrete_distribution - : public boost::mpl::false_{}; - -template -struct is_discrete_distribution > - : public boost::mpl::true_{}; -template -struct is_discrete_distribution > - : public boost::mpl::true_{}; -template -struct is_discrete_distribution > - : public boost::mpl::true_{}; -template -struct is_discrete_distribution > - : public boost::mpl::true_{}; -template -struct is_discrete_distribution > - : public boost::mpl::true_{}; - - -template -struct value_finder -{ - value_finder(Dist const& d, typename Dist::value_type v) - : m_dist(d), m_value(v) {} - - inline typename Dist::value_type operator()(const typename Dist::value_type& x) - { - return pdf(m_dist, x) - m_value; - } - -private: - Dist m_dist; - typename Dist::value_type m_value; -}; - -template -class distribution_plotter -{ -public: - distribution_plotter() : m_pdf(true), m_min_x(0), m_max_x(0), m_min_y(0), m_max_y(0) {} - distribution_plotter(bool pdf) : m_pdf(pdf), m_min_x(0), m_max_x(0), m_min_y(0), m_max_y(0) {} - - void add(const Dist& d, const std::string& name) - { - // Add name of distribution to our list for later: - m_distributions.push_back(std::make_pair(name, d)); - // - // Get the extent of the distribution from the support: - double a, b; - std::tr1::tie(a, b) = support(d); - // - // PDF maximimum is at the mode (probably): - double mod; - try - { - mod = mode(d); - } - catch(const std::domain_error& ) - { // but if not use the lower limit of support. - mod = a; - } - if((mod <= a) && !is_discrete_distribution::value) - { // Continuous distribution at or below lower limit of support. - double margin = 1e-2; // Margin of 1% (say) to get lowest off the 'end stop'. - if((a != 0) && (fabs(a) > margin)) - { - mod = a * (1 + ((a > 0) ? margin : -margin)); - } - else - { // Case of mod near zero? - mod = margin; - } - } - double peek_y = pdf(d, mod); - double min_y = peek_y / 20; - // - // If the extent is "infinite" then find out how large it - // has to be for the PDF to decay to min_y: - // - if(a <= -(std::numeric_limits::max)()) - { - boost::uintmax_t max_iter = 500; - double guess = mod; - if((pdf(d, 0) > min_y) || (guess == 0)) - guess = -1e-3; - a = boost::math::tools::bracket_and_solve_root( - value_finder(d, min_y), - guess, - 8.0, - true, - boost::math::tools::eps_tolerance(10), - max_iter).first; - } - if(b >= (std::numeric_limits::max)()) - { - boost::uintmax_t max_iter = 500; - double guess = mod; - if(a <= 0) - if((pdf(d, 0) > min_y) || (guess == 0)) - guess = 1e-3; - b = boost::math::tools::bracket_and_solve_root( - value_finder(d, min_y), - guess, - 8.0, - false, - boost::math::tools::eps_tolerance(10), - max_iter).first; - } - // - // Recalculate peek_y and location of mod so that - // it's not too close to one end of the graph: - // otherwise we may be shooting off to infinity. - // - if(!is_discrete_distribution::value) - { - if(mod <= a + (b-a)/50) - { - mod = a + (b-a)/50; - } - if(mod >= b - (b-a)/50) - { - mod = b - (b-a)/50; - } - peek_y = pdf(d, mod); - } - // - // Now set our limits: - // - if(peek_y > m_max_y) - m_max_y = peek_y; - if(m_max_x == m_min_x) - { - m_max_x = b; - m_min_x = a; - } - else - { - if(a < m_min_x) - m_min_x = a; - if(b > m_max_x) - m_max_x = b; - } - } - - void plot(const std::string& title, const std::string& file) - { - using namespace boost::svg; - - static const svg_color colors[5] = - { - darkblue, - darkred, - darkgreen, - darkorange, - chartreuse - }; - - if(m_pdf == false) - { - m_min_y = 0; - m_max_y = 1; - } - - svg_2d_plot plot; - plot.image_x_size(750); - plot.image_y_size(400); - plot.coord_precision(4); // Avoids any visible steps. - plot.title_font_size(20); - plot.legend_title_font_size(15); - plot.title(title); - if((m_distributions.size() == 1) && (m_distributions.begin()->first == "")) - plot.legend_on(false); - else - plot.legend_on(true); - plot.title_on(true); - //plot.x_major_labels_on(true).y_major_labels_on(true); - //double x_delta = (m_max_x - m_min_x) / 10; - double y_delta = (m_max_y - m_min_y) / 10; - if(is_discrete_distribution::value) - plot.x_range(m_min_x - 0.5, m_max_x + 0.5) - .y_range(m_min_y, m_max_y + y_delta); - else - plot.x_range(m_min_x, m_max_x) - .y_range(m_min_y, m_max_y + y_delta); - plot.x_label_on(true).x_label("Random Variable"); - plot.y_label_on(true).y_label("Probability"); - plot.plot_border_color(lightslategray) - .background_border_color(lightslategray) - .legend_border_color(lightslategray) - .legend_background_color(white); - // - // Work out axis tick intervals: - // - double l = std::floor(std::log10((m_max_x - m_min_x) / 10) + 0.5); - double interval = std::pow(10.0, (int)l); - if(((m_max_x - m_min_x) / interval) > 10) - interval *= 5; - if(is_discrete_distribution::value) - { - interval = interval > 1 ? std::floor(interval) : 1; - plot.x_num_minor_ticks(0); - } - plot.x_major_interval(interval); - l = std::floor(std::log10((m_max_y - m_min_y) / 10) + 0.5); - interval = std::pow(10.0, (int)l); - if(((m_max_y - m_min_y) / interval) > 10) - interval *= 5; - plot.y_major_interval(interval); - - int color_index = 0; - - if(!is_discrete_distribution::value) - { - // - // Continuous distribution: - // - for(std::list >::const_iterator i = m_distributions.begin(); - i != m_distributions.end(); ++i) - { - double x = m_min_x; - double interval = (m_max_x - m_min_x) / 200; - std::map data; - while(x <= m_max_x) - { - data[x] = m_pdf ? pdf(i->second, x) : cdf(i->second, x); - x += interval; - } - plot.plot(data, i->first) - .line_on(true) - .line_color(colors[color_index]) - .line_width(1.) - .shape(none); - - //.bezier_on(true) // Bezier can't cope with badly behaved like uniform & triangular. - ++color_index; - color_index = color_index % (sizeof(colors)/sizeof(colors[0])); - } - } - else - { - // - // Discrete distribution: - // - double x_width = 0.75 / m_distributions.size(); - double x_off = -0.5 * 0.75; - for(std::list >::const_iterator i = m_distributions.begin(); - i != m_distributions.end(); ++i) - { - double x = ceil(m_min_x); - double interval = 1; - std::map data; - while(x <= m_max_x) - { - double p; - try{ - p = m_pdf ? pdf(i->second, x) : cdf(i->second, x); - } - catch(const std::domain_error&) - { - p = 0; - } - data[x + x_off] = 0; - data[x + x_off + 0.00001] = p; - data[x + x_off + x_width] = p; - data[x + x_off + x_width + 0.00001] = 0; - x += interval; - } - x_off += x_width; - svg_2d_plot_series& s = plot.plot(data, i->first); - s.line_on(true) - .line_color(colors[color_index]) - .line_width(1.) - .shape(none) - .area_fill(colors[color_index]); - ++color_index; - color_index = color_index % (sizeof(colors)/sizeof(colors[0])); - } - } - plot.write(file); - } - -private: - bool m_pdf; - std::list > m_distributions; - double m_min_x, m_max_x, m_min_y, m_max_y; -}; - -int main() -{ - try - { - - distribution_plotter > - gamma_plotter; - gamma_plotter.add(boost::math::gamma_distribution<>(0.75), "shape = 0.75"); - gamma_plotter.add(boost::math::gamma_distribution<>(1), "shape = 1"); - gamma_plotter.add(boost::math::gamma_distribution<>(3), "shape = 3"); - gamma_plotter.plot("Gamma Distribution PDF With Scale = 1", "gamma1_pdf.svg"); - - distribution_plotter > - gamma_plotter2; - gamma_plotter2.add(boost::math::gamma_distribution<>(2, 0.5), "scale = 0.5"); - gamma_plotter2.add(boost::math::gamma_distribution<>(2, 1), "scale = 1"); - gamma_plotter2.add(boost::math::gamma_distribution<>(2, 2), "scale = 2"); - gamma_plotter2.plot("Gamma Distribution PDF With Shape = 2", "gamma2_pdf.svg"); - - distribution_plotter - normal_plotter; - normal_plotter.add(boost::math::normal(0, 1), "μ = 0, σ = 1"); - normal_plotter.add(boost::math::normal(0, 0.5), "μ = 0, σ = 0.5"); - normal_plotter.add(boost::math::normal(0, 2), "μ = 0, σ = 2"); - normal_plotter.add(boost::math::normal(-1, 1), "μ = -1, σ = 1"); - normal_plotter.add(boost::math::normal(1, 1), "μ = 1, σ = 1"); - normal_plotter.plot("Normal Distribution PDF", "normal_pdf.svg"); - - distribution_plotter - laplace_plotter; - laplace_plotter.add(boost::math::laplace(0, 1), "μ = 0, σ = 1"); - laplace_plotter.add(boost::math::laplace(0, 0.5), "μ = 0, σ = 0.5"); - laplace_plotter.add(boost::math::laplace(0, 2), "μ = 0, σ = 2"); - laplace_plotter.add(boost::math::laplace(-1, 1), "μ = -1, σ = 1"); - laplace_plotter.add(boost::math::laplace(1, 1), "μ = 1, σ = 1"); - laplace_plotter.plot("Laplace Distribution PDF", "laplace_pdf.svg"); - - distribution_plotter - nc_cs_plotter; - nc_cs_plotter.add(boost::math::non_central_chi_squared(20, 0), "v=20, λ=0"); - nc_cs_plotter.add(boost::math::non_central_chi_squared(20, 1), "v=20, λ=1"); - nc_cs_plotter.add(boost::math::non_central_chi_squared(20, 5), "v=20, λ=5"); - nc_cs_plotter.add(boost::math::non_central_chi_squared(20, 10), "v=20, λ=10"); - nc_cs_plotter.add(boost::math::non_central_chi_squared(20, 20), "v=20, λ=20"); - nc_cs_plotter.add(boost::math::non_central_chi_squared(20, 100), "v=20, λ=100"); - nc_cs_plotter.plot("Non Central Chi Squared PDF", "nccs_pdf.svg"); - - distribution_plotter - nc_beta_plotter; - nc_beta_plotter.add(boost::math::non_central_beta(10, 15, 0), "α=10, β=15, δ=0"); - nc_beta_plotter.add(boost::math::non_central_beta(10, 15, 1), "α=10, β=15, δ=1"); - nc_beta_plotter.add(boost::math::non_central_beta(10, 15, 5), "α=10, β=15, δ=5"); - nc_beta_plotter.add(boost::math::non_central_beta(10, 15, 10), "α=10, β=15, δ=10"); - nc_beta_plotter.add(boost::math::non_central_beta(10, 15, 40), "α=10, β=15, δ=40"); - nc_beta_plotter.add(boost::math::non_central_beta(10, 15, 100), "α=10, β=15, δ=100"); - nc_beta_plotter.plot("Non Central Beta PDF", "nc_beta_pdf.svg"); - - distribution_plotter - nc_f_plotter; - nc_f_plotter.add(boost::math::non_central_f(10, 20, 0), "v1=10, v2=20, λ=0"); - nc_f_plotter.add(boost::math::non_central_f(10, 20, 1), "v1=10, v2=20, λ=1"); - nc_f_plotter.add(boost::math::non_central_f(10, 20, 5), "v1=10, v2=20, λ=5"); - nc_f_plotter.add(boost::math::non_central_f(10, 20, 10), "v1=10, v2=20, λ=10"); - nc_f_plotter.add(boost::math::non_central_f(10, 20, 40), "v1=10, v2=20, λ=40"); - nc_f_plotter.add(boost::math::non_central_f(10, 20, 100), "v1=10, v2=20, λ=100"); - nc_f_plotter.plot("Non Central F PDF", "nc_f_pdf.svg"); - - distribution_plotter - nc_t_plotter; - nc_t_plotter.add(boost::math::non_central_t(10, -10), "v=10, δ=-10"); - nc_t_plotter.add(boost::math::non_central_t(10, -5), "v=10, δ=-5"); - nc_t_plotter.add(boost::math::non_central_t(10, 0), "v=10, δ=0"); - nc_t_plotter.add(boost::math::non_central_t(10, 5), "v=10, δ=5"); - nc_t_plotter.add(boost::math::non_central_t(10, 10), "v=10, δ=10"); - nc_t_plotter.add(boost::math::non_central_t(std::numeric_limits::infinity(), 15), "v=inf, δ=15"); - nc_t_plotter.plot("Non Central T PDF", "nc_t_pdf.svg"); - - distribution_plotter - nc_t_CDF_plotter(false); - nc_t_CDF_plotter.add(boost::math::non_central_t(10, -10), "v=10, δ=-10"); - nc_t_CDF_plotter.add(boost::math::non_central_t(10, -5), "v=10, δ=-5"); - nc_t_CDF_plotter.add(boost::math::non_central_t(10, 0), "v=10, δ=0"); - nc_t_CDF_plotter.add(boost::math::non_central_t(10, 5), "v=10, δ=5"); - nc_t_CDF_plotter.add(boost::math::non_central_t(10, 10), "v=10, δ=10"); - nc_t_CDF_plotter.add(boost::math::non_central_t(std::numeric_limits::infinity(), 15), "v=inf, δ=15"); - nc_t_CDF_plotter.plot("Non Central T CDF", "nc_t_cdf.svg"); - - distribution_plotter > - beta_plotter; - beta_plotter.add(boost::math::beta_distribution<>(0.5, 0.5), "alpha=0.5, beta=0.5"); - beta_plotter.add(boost::math::beta_distribution<>(5, 1), "alpha=5, beta=1"); - beta_plotter.add(boost::math::beta_distribution<>(1, 3), "alpha=1, beta=3"); - beta_plotter.add(boost::math::beta_distribution<>(2, 2), "alpha=2, beta=2"); - beta_plotter.add(boost::math::beta_distribution<>(2, 5), "alpha=2, beta=5"); - beta_plotter.plot("Beta Distribution PDF", "beta_pdf.svg"); - - distribution_plotter > - cauchy_plotter; - cauchy_plotter.add(boost::math::cauchy_distribution<>(-5, 1), "location = -5"); - cauchy_plotter.add(boost::math::cauchy_distribution<>(0, 1), "location = 0"); - cauchy_plotter.add(boost::math::cauchy_distribution<>(5, 1), "location = 5"); - cauchy_plotter.plot("Cauchy Distribution PDF (scale = 1)", "cauchy_pdf1.svg"); - - distribution_plotter > - cauchy_plotter2; - cauchy_plotter2.add(boost::math::cauchy_distribution<>(0, 0.5), "scale = 0.5"); - cauchy_plotter2.add(boost::math::cauchy_distribution<>(0, 1), "scale = 1"); - cauchy_plotter2.add(boost::math::cauchy_distribution<>(0, 2), "scale = 2"); - cauchy_plotter2.plot("Cauchy Distribution PDF (location = 0)", "cauchy_pdf2.svg"); - - distribution_plotter > - chi_squared_plotter; - //chi_squared_plotter.add(boost::math::chi_squared_distribution<>(1), "v=1"); - chi_squared_plotter.add(boost::math::chi_squared_distribution<>(2), "v=2"); - chi_squared_plotter.add(boost::math::chi_squared_distribution<>(5), "v=5"); - chi_squared_plotter.add(boost::math::chi_squared_distribution<>(10), "v=10"); - chi_squared_plotter.plot("Chi Squared Distribution PDF", "chi_squared_pdf.svg"); - - distribution_plotter > - exponential_plotter; - exponential_plotter.add(boost::math::exponential_distribution<>(0.5), "λ=0.5"); - exponential_plotter.add(boost::math::exponential_distribution<>(1), "λ=1"); - exponential_plotter.add(boost::math::exponential_distribution<>(2), "λ=2"); - exponential_plotter.plot("Exponential Distribution PDF", "exponential_pdf.svg"); - - distribution_plotter > - extreme_value_plotter; - extreme_value_plotter.add(boost::math::extreme_value_distribution<>(-5), "location=-5"); - extreme_value_plotter.add(boost::math::extreme_value_distribution<>(0), "location=0"); - extreme_value_plotter.add(boost::math::extreme_value_distribution<>(5), "location=5"); - extreme_value_plotter.plot("Extreme Value Distribution PDF (shape=1)", "extreme_value_pdf1.svg"); - - distribution_plotter > - extreme_value_plotter2; - extreme_value_plotter2.add(boost::math::extreme_value_distribution<>(0, 0.5), "shape=0.5"); - extreme_value_plotter2.add(boost::math::extreme_value_distribution<>(0, 1), "shape=1"); - extreme_value_plotter2.add(boost::math::extreme_value_distribution<>(0, 2), "shape=2"); - extreme_value_plotter2.plot("Extreme Value Distribution PDF (location=0)", "extreme_value_pdf2.svg"); - - distribution_plotter > - fisher_f_plotter; - fisher_f_plotter.add(boost::math::fisher_f_distribution<>(4, 4), "n=4, m=4"); - fisher_f_plotter.add(boost::math::fisher_f_distribution<>(10, 4), "n=10, m=4"); - fisher_f_plotter.add(boost::math::fisher_f_distribution<>(10, 10), "n=10, m=10"); - fisher_f_plotter.add(boost::math::fisher_f_distribution<>(4, 10), "n=4, m=10"); - fisher_f_plotter.plot("F Distribution PDF", "fisher_f_pdf.svg"); - - distribution_plotter > - lognormal_plotter; - lognormal_plotter.add(boost::math::lognormal_distribution<>(-1), "location=-1"); - lognormal_plotter.add(boost::math::lognormal_distribution<>(0), "location=0"); - lognormal_plotter.add(boost::math::lognormal_distribution<>(1), "location=1"); - lognormal_plotter.plot("Lognormal Distribution PDF (scale=1)", "lognormal_pdf1.svg"); - - distribution_plotter > - lognormal_plotter2; - lognormal_plotter2.add(boost::math::lognormal_distribution<>(0, 0.5), "scale=0.5"); - lognormal_plotter2.add(boost::math::lognormal_distribution<>(0, 1), "scale=1"); - lognormal_plotter2.add(boost::math::lognormal_distribution<>(0, 2), "scale=2"); - lognormal_plotter2.plot("Lognormal Distribution PDF (location=0)", "lognormal_pdf2.svg"); - - distribution_plotter > - pareto_plotter; // Rely on 2nd parameter shape = 1 default. - pareto_plotter.add(boost::math::pareto_distribution<>(1), "scale=1"); - pareto_plotter.add(boost::math::pareto_distribution<>(2), "scale=2"); - pareto_plotter.add(boost::math::pareto_distribution<>(3), "scale=3"); - pareto_plotter.plot("Pareto Distribution PDF (shape=1)", "pareto_pdf1.svg"); - - distribution_plotter > - pareto_plotter2; - pareto_plotter2.add(boost::math::pareto_distribution<>(1, 0.5), "shape=0.5"); - pareto_plotter2.add(boost::math::pareto_distribution<>(1, 1), "shape=1"); - pareto_plotter2.add(boost::math::pareto_distribution<>(1, 2), "shape=2"); - pareto_plotter2.plot("Pareto Distribution PDF (scale=1)", "pareto_pdf2.svg"); - - distribution_plotter > - rayleigh_plotter; - rayleigh_plotter.add(boost::math::rayleigh_distribution<>(0.5), "σ=0.5"); - rayleigh_plotter.add(boost::math::rayleigh_distribution<>(1), "σ=1"); - rayleigh_plotter.add(boost::math::rayleigh_distribution<>(2), "σ=2"); - rayleigh_plotter.add(boost::math::rayleigh_distribution<>(4), "σ=4"); - rayleigh_plotter.add(boost::math::rayleigh_distribution<>(10), "σ=10"); - rayleigh_plotter.plot("Rayleigh Distribution PDF", "rayleigh_pdf.svg"); - - distribution_plotter > - rayleigh_cdf_plotter(false); - rayleigh_cdf_plotter.add(boost::math::rayleigh_distribution<>(0.5), "σ=0.5"); - rayleigh_cdf_plotter.add(boost::math::rayleigh_distribution<>(1), "σ=1"); - rayleigh_cdf_plotter.add(boost::math::rayleigh_distribution<>(2), "σ=2"); - rayleigh_cdf_plotter.add(boost::math::rayleigh_distribution<>(4), "σ=4"); - rayleigh_cdf_plotter.add(boost::math::rayleigh_distribution<>(10), "σ=10"); - rayleigh_cdf_plotter.plot("Rayleigh Distribution CDF", "rayleigh_cdf.svg"); - - distribution_plotter > - skew_normal_plotter; - skew_normal_plotter.add(boost::math::skew_normal_distribution<>(0,1,0), "{0,1,0}"); - skew_normal_plotter.add(boost::math::skew_normal_distribution<>(0,1,1), "{0,1,1}"); - skew_normal_plotter.add(boost::math::skew_normal_distribution<>(0,1,4), "{0,1,4}"); - skew_normal_plotter.add(boost::math::skew_normal_distribution<>(0,1,20), "{0,1,20}"); - skew_normal_plotter.add(boost::math::skew_normal_distribution<>(0,1,-2), "{0,1,-2}"); - skew_normal_plotter.add(boost::math::skew_normal_distribution<>(-2,0.5,-1), "{-2,0.5,-1}"); - skew_normal_plotter.plot("Skew Normal Distribution PDF", "skew_normal_pdf.svg"); - - distribution_plotter > - skew_normal_cdf_plotter(false); - skew_normal_cdf_plotter.add(boost::math::skew_normal_distribution<>(0,1,0), "{0,1,0}"); - skew_normal_cdf_plotter.add(boost::math::skew_normal_distribution<>(0,1,1), "{0,1,1}"); - skew_normal_cdf_plotter.add(boost::math::skew_normal_distribution<>(0,1,4), "{0,1,4}"); - skew_normal_cdf_plotter.add(boost::math::skew_normal_distribution<>(0,1,20), "{0,1,20}"); - skew_normal_cdf_plotter.add(boost::math::skew_normal_distribution<>(0,1,-2), "{0,1,-2}"); - skew_normal_cdf_plotter.add(boost::math::skew_normal_distribution<>(-2,0.5,-1), "{-2,0.5,-1}"); - skew_normal_cdf_plotter.plot("Skew Normal Distribution CDF", "skew_normal_cdf.svg"); - - distribution_plotter > - triangular_plotter; - triangular_plotter.add(boost::math::triangular_distribution<>(-1,0,1), "{-1,0,1}"); - triangular_plotter.add(boost::math::triangular_distribution<>(0,1,1), "{0,1,1}"); - triangular_plotter.add(boost::math::triangular_distribution<>(0,1,3), "{0,1,3}"); - triangular_plotter.add(boost::math::triangular_distribution<>(0,0.5,1), "{0,0.5,1}"); - triangular_plotter.add(boost::math::triangular_distribution<>(-2,0,3), "{-2,0,3}"); - triangular_plotter.plot("Triangular Distribution PDF", "triangular_pdf.svg"); - - distribution_plotter > - triangular_cdf_plotter(false); - triangular_cdf_plotter.add(boost::math::triangular_distribution<>(-1,0,1), "{-1,0,1}"); - triangular_cdf_plotter.add(boost::math::triangular_distribution<>(0,1,1), "{0,1,1}"); - triangular_cdf_plotter.add(boost::math::triangular_distribution<>(0,1,3), "{0,1,3}"); - triangular_cdf_plotter.add(boost::math::triangular_distribution<>(0,0.5,1), "{0,0.5,1}"); - triangular_cdf_plotter.add(boost::math::triangular_distribution<>(-2,0,3), "{-2,0,3}"); - triangular_cdf_plotter.plot("Triangular Distribution CDF", "triangular_cdf.svg"); - - distribution_plotter > - students_t_plotter; - students_t_plotter.add(boost::math::students_t_distribution<>(1), "v=1"); - students_t_plotter.add(boost::math::students_t_distribution<>(5), "v=5"); - students_t_plotter.add(boost::math::students_t_distribution<>(30), "v=30"); - students_t_plotter.plot("Students T Distribution PDF", "students_t_pdf.svg"); - - distribution_plotter > - weibull_plotter; - weibull_plotter.add(boost::math::weibull_distribution<>(0.75), "shape=0.75"); - weibull_plotter.add(boost::math::weibull_distribution<>(1), "shape=1"); - weibull_plotter.add(boost::math::weibull_distribution<>(5), "shape=5"); - weibull_plotter.add(boost::math::weibull_distribution<>(10), "shape=10"); - weibull_plotter.plot("Weibull Distribution PDF (scale=1)", "weibull_pdf1.svg"); - - distribution_plotter > - weibull_plotter2; - weibull_plotter2.add(boost::math::weibull_distribution<>(3, 0.5), "scale=0.5"); - weibull_plotter2.add(boost::math::weibull_distribution<>(3, 1), "scale=1"); - weibull_plotter2.add(boost::math::weibull_distribution<>(3, 2), "scale=2"); - weibull_plotter2.plot("Weibull Distribution PDF (shape=3)", "weibull_pdf2.svg"); - - distribution_plotter > - uniform_plotter; - uniform_plotter.add(boost::math::uniform_distribution<>(0, 1), "{0,1}"); - uniform_plotter.add(boost::math::uniform_distribution<>(0, 3), "{0,3}"); - uniform_plotter.add(boost::math::uniform_distribution<>(-2, 3), "{-2,3}"); - uniform_plotter.add(boost::math::uniform_distribution<>(-1, 1), "{-1,1}"); - uniform_plotter.plot("Uniform Distribution PDF", "uniform_pdf.svg"); - - distribution_plotter > - uniform_cdf_plotter(false); - uniform_cdf_plotter.add(boost::math::uniform_distribution<>(0, 1), "{0,1}"); - uniform_cdf_plotter.add(boost::math::uniform_distribution<>(0, 3), "{0,3}"); - uniform_cdf_plotter.add(boost::math::uniform_distribution<>(-2, 3), "{-2,3}"); - uniform_cdf_plotter.add(boost::math::uniform_distribution<>(-1, 1), "{-1,1}"); - uniform_cdf_plotter.plot("Uniform Distribution CDF", "uniform_cdf.svg"); - - distribution_plotter > - bernoulli_plotter; - bernoulli_plotter.add(boost::math::bernoulli_distribution<>(0.25), "p=0.25"); - bernoulli_plotter.add(boost::math::bernoulli_distribution<>(0.5), "p=0.5"); - bernoulli_plotter.add(boost::math::bernoulli_distribution<>(0.75), "p=0.75"); - bernoulli_plotter.plot("Bernoulli Distribution PDF", "bernoulli_pdf.svg"); - - distribution_plotter > - bernoulli_cdf_plotter(false); - bernoulli_cdf_plotter.add(boost::math::bernoulli_distribution<>(0.25), "p=0.25"); - bernoulli_cdf_plotter.add(boost::math::bernoulli_distribution<>(0.5), "p=0.5"); - bernoulli_cdf_plotter.add(boost::math::bernoulli_distribution<>(0.75), "p=0.75"); - bernoulli_cdf_plotter.plot("Bernoulli Distribution CDF", "bernoulli_cdf.svg"); - - distribution_plotter > - binomial_plotter; - binomial_plotter.add(boost::math::binomial_distribution<>(5, 0.5), "n=5 p=0.5"); - binomial_plotter.add(boost::math::binomial_distribution<>(20, 0.5), "n=20 p=0.5"); - binomial_plotter.add(boost::math::binomial_distribution<>(50, 0.5), "n=50 p=0.5"); - binomial_plotter.plot("Binomial Distribution PDF", "binomial_pdf_1.svg"); - - distribution_plotter > - binomial_plotter2; - binomial_plotter2.add(boost::math::binomial_distribution<>(20, 0.1), "n=20 p=0.1"); - binomial_plotter2.add(boost::math::binomial_distribution<>(20, 0.5), "n=20 p=0.5"); - binomial_plotter2.add(boost::math::binomial_distribution<>(20, 0.9), "n=20 p=0.9"); - binomial_plotter2.plot("Binomial Distribution PDF", "binomial_pdf_2.svg"); - - distribution_plotter > - negative_binomial_plotter; - negative_binomial_plotter.add(boost::math::negative_binomial_distribution<>(20, 0.25), "n=20 p=0.25"); - negative_binomial_plotter.add(boost::math::negative_binomial_distribution<>(20, 0.5), "n=20 p=0.5"); - negative_binomial_plotter.add(boost::math::negative_binomial_distribution<>(20, 0.75), "n=20 p=0.75"); - negative_binomial_plotter.plot("Negative Binomial Distribution PDF", "negative_binomial_pdf_1.svg"); - - distribution_plotter > - negative_binomial_plotter2; - negative_binomial_plotter2.add(boost::math::negative_binomial_distribution<>(10, 0.5), "n=10 p=0.5"); - negative_binomial_plotter2.add(boost::math::negative_binomial_distribution<>(20, 0.5), "n=20 p=0.5"); - negative_binomial_plotter2.add(boost::math::negative_binomial_distribution<>(70, 0.5), "n=70 p=0.5"); - negative_binomial_plotter2.plot("Negative Binomial Distribution PDF", "negative_binomial_pdf_2.svg"); - - distribution_plotter > - poisson_plotter; - poisson_plotter.add(boost::math::poisson_distribution<>(5), "λ=5"); - poisson_plotter.add(boost::math::poisson_distribution<>(10), "λ=10"); - poisson_plotter.add(boost::math::poisson_distribution<>(20), "λ=20"); - poisson_plotter.plot("Poisson Distribution PDF", "poisson_pdf_1.svg"); - - distribution_plotter > - hypergeometric_plotter; - hypergeometric_plotter.add(boost::math::hypergeometric_distribution<>(30, 50, 500), "N=500, r=50, n=30"); - hypergeometric_plotter.add(boost::math::hypergeometric_distribution<>(30, 100, 500), "N=500, r=100, n=30"); - hypergeometric_plotter.add(boost::math::hypergeometric_distribution<>(30, 250, 500), "N=500, r=250, n=30"); - hypergeometric_plotter.add(boost::math::hypergeometric_distribution<>(30, 400, 500), "N=500, r=400, n=30"); - hypergeometric_plotter.add(boost::math::hypergeometric_distribution<>(30, 450, 500), "N=500, r=450, n=30"); - hypergeometric_plotter.plot("Hypergeometric Distribution PDF", "hypergeometric_pdf_1.svg"); - - distribution_plotter > - hypergeometric_plotter2; - hypergeometric_plotter2.add(boost::math::hypergeometric_distribution<>(50, 50, 500), "N=500, r=50, n=50"); - hypergeometric_plotter2.add(boost::math::hypergeometric_distribution<>(100, 50, 500), "N=500, r=50, n=100"); - hypergeometric_plotter2.add(boost::math::hypergeometric_distribution<>(250, 50, 500), "N=500, r=50, n=250"); - hypergeometric_plotter2.add(boost::math::hypergeometric_distribution<>(400, 50, 500), "N=500, r=50, n=400"); - hypergeometric_plotter2.add(boost::math::hypergeometric_distribution<>(450, 50, 500), "N=500, r=50, n=450"); - hypergeometric_plotter2.plot("Hypergeometric Distribution PDF", "hypergeometric_pdf_2.svg"); - - } - catch (std::exception ex) - { - std::cout << ex.what() << std::endl; - } - - - - /* these graphs for hyperexponential distribution not used. - - distribution_plotter > - hyperexponential_plotter; - { - const double probs1_1[] = {1.0}; - const double rates1_1[] = {1.0}; - hyperexponential_plotter.add(boost::math::hyperexponential_distribution<>(probs1_1,rates1_1), "α=(1.0), λ=(1.0)"); - const double probs2_1[] = {0.1,0.9}; - const double rates2_1[] = {0.5,1.5}; - hyperexponential_plotter.add(boost::math::hyperexponential_distribution<>(probs2_1,rates2_1), "α=(0.1,0.9), λ=(0.5,1.5)"); - const double probs2_2[] = {0.9,0.1}; - const double rates2_2[] = {0.5,1.5}; - hyperexponential_plotter.add(boost::math::hyperexponential_distribution<>(probs2_2,rates2_2), "α=(0.9,0.1), λ=(0.5,1.5)"); - const double probs3_1[] = {0.2,0.3,0.5}; - const double rates3_1[] = {0.5,1.0,1.5}; - hyperexponential_plotter.add(boost::math::hyperexponential_distribution<>(probs3_1,rates3_1), "α=(0.2,0.3,0.5), λ=(0.5,1.0,1.5)"); - const double probs3_2[] = {0.5,0.3,0.2}; - const double rates3_2[] = {0.5,1.0,1.5}; - hyperexponential_plotter.add(boost::math::hyperexponential_distribution<>(probs3_1,rates3_1), "α=(0.5,0.3,0.2), λ=(0.5,1.0,1.5)"); - } - hyperexponential_plotter.plot("Hyperexponential Distribution PDF", "hyperexponential_pdf.svg"); - - distribution_plotter > - hyperexponential_plotter2; - { - const double rates[] = {0.5,1.5}; - const double probs1[] = {0.1,0.9}; - hyperexponential_plotter2.add(boost::math::hyperexponential_distribution<>(probs1,rates), "α=(0.1,0.9), λ=(0.5,1.5)"); - const double probs2[] = {0.6,0.4}; - hyperexponential_plotter2.add(boost::math::hyperexponential_distribution<>(probs2,rates), "α=(0.6,0.4), λ=(0.5,1.5)"); - const double probs3[] = {0.9,0.1}; - hyperexponential_plotter2.add(boost::math::hyperexponential_distribution<>(probs3,rates), "α=(0.9,0.1), λ=(0.5,1.5)"); - } - hyperexponential_plotter2.plot("Hyperexponential Distribution PDF (Different Probabilities, Same Rates)", "hyperexponential_pdf_samerate.svg"); - - distribution_plotter > - hyperexponential_plotter3; - { - const double probs1[] = {1.0}; - const double rates1[] = {2.0}; - hyperexponential_plotter3.add(boost::math::hyperexponential_distribution<>(probs1,rates1), "α=(1.0), λ=(2.0)"); - const double probs2[] = {0.5,0.5}; - const double rates2[] = {0.3,1.5}; - hyperexponential_plotter3.add(boost::math::hyperexponential_distribution<>(probs2,rates2), "α=(0.5,0.5), λ=(0.3,1.5)"); - const double probs3[] = {1.0/3.0,1.0/3.0,1.0/3.0}; - const double rates3[] = {0.2,1.5,3.0}; - hyperexponential_plotter3.add(boost::math::hyperexponential_distribution<>(probs2,rates2), "α=(1.0/3.0,1.0/3.0,1.0/3.0), λ=(0.2,1.5,3.0)"); - } - hyperexponential_plotter3.plot("Hyperexponential Distribution PDF (Different Number of Phases, Same Mean)", "hyperexponential_pdf_samemean.svg"); - */ - - -} // int main() diff --git a/boost/libs/math/doc/graphs/ellint_1.png b/boost/libs/math/doc/graphs/ellint_1.png deleted file mode 100644 index 84baedf4..00000000 Binary files a/boost/libs/math/doc/graphs/ellint_1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/ellint_1.svg b/boost/libs/math/doc/graphs/ellint_1.svg deleted file mode 100644 index 960b6d43..00000000 --- a/boost/libs/math/doc/graphs/ellint_1.svg +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0.5 -0 --0.5 - -0.5 -1 -1.5 -2 - -ellint_1(k, phi) - -k - - - - - - - - - - - - - -φ=0.5 -φ=0.75 -φ=1.25 -φ=π/2 - -Elliptic Of the First Kind - - - diff --git a/boost/libs/math/doc/graphs/ellint_2.png b/boost/libs/math/doc/graphs/ellint_2.png deleted file mode 100644 index c0442789..00000000 Binary files a/boost/libs/math/doc/graphs/ellint_2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/ellint_2.svg b/boost/libs/math/doc/graphs/ellint_2.svg deleted file mode 100644 index f2959e47..00000000 --- a/boost/libs/math/doc/graphs/ellint_2.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0.5 -1 -0 --0.5 --1 - -0.5 -1 -1.5 - -ellint_2(k, phi) - -k - - - - - - - - - - - - - -φ=0.5 -φ=0.75 -φ=1.25 -φ=π/2 - -Elliptic Of the Second Kind - - - diff --git a/boost/libs/math/doc/graphs/ellint_3.png b/boost/libs/math/doc/graphs/ellint_3.png deleted file mode 100644 index cfa63b53..00000000 Binary files a/boost/libs/math/doc/graphs/ellint_3.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/ellint_3.svg b/boost/libs/math/doc/graphs/ellint_3.svg deleted file mode 100644 index c8546bbb..00000000 --- a/boost/libs/math/doc/graphs/ellint_3.svg +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0.5 -1 -0 --0.5 --1 - -1.5 -2 -2.5 -3 -3.5 -4 - -ellint_3(k, n, phi) - -k - - - - - - - - - - - - - -n=0 φ=1.25 -n=0.5 φ=1.25 -n=0.25 φ=π/2 -n=0.75 φ=π/2 - -Elliptic Of the Third Kind - - - diff --git a/boost/libs/math/doc/graphs/ellint_carlson.png b/boost/libs/math/doc/graphs/ellint_carlson.png deleted file mode 100644 index 095c55ef..00000000 Binary files a/boost/libs/math/doc/graphs/ellint_carlson.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/ellint_carlson.svg b/boost/libs/math/doc/graphs/ellint_carlson.svg deleted file mode 100644 index 257fdc8d..00000000 --- a/boost/libs/math/doc/graphs/ellint_carlson.svg +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -1 -2 -3 -4 - -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 - - - -x - - - - - - - - - -RJ -RF - -Elliptic Integrals - - - diff --git a/boost/libs/math/doc/graphs/erf.png b/boost/libs/math/doc/graphs/erf.png deleted file mode 100644 index d4dcf9e8..00000000 Binary files a/boost/libs/math/doc/graphs/erf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/erf.svg b/boost/libs/math/doc/graphs/erf.svg deleted file mode 100644 index 0e887dd9..00000000 --- a/boost/libs/math/doc/graphs/erf.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -0 --1 --2 --3 - -0 -0.5 -1 -0 --0.5 - -erf(z) - -z - - - - -erf - - - diff --git a/boost/libs/math/doc/graphs/erf_inv.png b/boost/libs/math/doc/graphs/erf_inv.png deleted file mode 100644 index 0a417190..00000000 Binary files a/boost/libs/math/doc/graphs/erf_inv.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/erf_inv.svg b/boost/libs/math/doc/graphs/erf_inv.svg deleted file mode 100644 index c0683c10..00000000 --- a/boost/libs/math/doc/graphs/erf_inv.svg +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0.5 -1 -0 --0.5 - -0 -1 -0 --1 --2 --3 - -erf_inv(z) - -z - - - - -erf_inv - - - diff --git a/boost/libs/math/doc/graphs/erfc.png b/boost/libs/math/doc/graphs/erfc.png deleted file mode 100644 index 07e462e5..00000000 Binary files a/boost/libs/math/doc/graphs/erfc.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/erfc.svg b/boost/libs/math/doc/graphs/erfc.svg deleted file mode 100644 index 324b598d..00000000 --- a/boost/libs/math/doc/graphs/erfc.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -0 --1 --2 --3 - -0 -0.5 -1 -1.5 -2 - -erfc(z) - -z - - - - -erfc - - - diff --git a/boost/libs/math/doc/graphs/erfc_inv.png b/boost/libs/math/doc/graphs/erfc_inv.png deleted file mode 100644 index 09d59bf7..00000000 Binary files a/boost/libs/math/doc/graphs/erfc_inv.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/erfc_inv.svg b/boost/libs/math/doc/graphs/erfc_inv.svg deleted file mode 100644 index b7dc755a..00000000 --- a/boost/libs/math/doc/graphs/erfc_inv.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0.5 -1 -1.5 -2 - -0 -1 -2 -3 -0 --1 --2 - -erfc_inv(z) - -z - - - - -erfc_inv - - - diff --git a/boost/libs/math/doc/graphs/exp_on_r.png b/boost/libs/math/doc/graphs/exp_on_r.png deleted file mode 100644 index 819de7c6..00000000 Binary files a/boost/libs/math/doc/graphs/exp_on_r.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/expint2.png b/boost/libs/math/doc/graphs/expint2.png deleted file mode 100644 index aa1f6013..00000000 Binary files a/boost/libs/math/doc/graphs/expint2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/expint2.svg b/boost/libs/math/doc/graphs/expint2.svg deleted file mode 100644 index 2687fc73..00000000 --- a/boost/libs/math/doc/graphs/expint2.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0.5 -1 -1.5 -2 -0 - -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 - -expint(n, z) - -z - - - - - - - - - - - - - -n = 1 -n = 2 -n = 3 -n = 4 - -Exponential Integral En - - - diff --git a/boost/libs/math/doc/graphs/expint_i.png b/boost/libs/math/doc/graphs/expint_i.png deleted file mode 100644 index ca949a15..00000000 Binary files a/boost/libs/math/doc/graphs/expint_i.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/expint_i.svg b/boost/libs/math/doc/graphs/expint_i.svg deleted file mode 100644 index 6ac73ab4..00000000 --- a/boost/libs/math/doc/graphs/expint_i.svg +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -0 --1 --2 --3 - -0 -10 -20 -0 --10 - -expint(z) - -z - - - - - -Exponential Integral Ei - - - diff --git a/boost/libs/math/doc/graphs/expm1.png b/boost/libs/math/doc/graphs/expm1.png deleted file mode 100644 index 374bea46..00000000 Binary files a/boost/libs/math/doc/graphs/expm1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/expm1.svg b/boost/libs/math/doc/graphs/expm1.svg deleted file mode 100644 index d7bf6eeb..00000000 --- a/boost/libs/math/doc/graphs/expm1.svg +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -0 --1 --2 --3 --4 - -0 -1 -2 -3 -4 -5 -6 -0 - -expm1(z) - -z - - - - -expm1 - - - diff --git a/boost/libs/math/doc/graphs/exponential_pdf.png b/boost/libs/math/doc/graphs/exponential_pdf.png deleted file mode 100644 index 54a44f47..00000000 Binary files a/boost/libs/math/doc/graphs/exponential_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/exponential_pdf.svg b/boost/libs/math/doc/graphs/exponential_pdf.svg deleted file mode 100644 index 1e57f0cc..00000000 --- a/boost/libs/math/doc/graphs/exponential_pdf.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -6 - -0 -0.5 -1 -1.5 -2 -0 - -Probability - -Random Variable - - - - - - - - - - - -λ=0.5 -λ=1 -λ=2 - -Exponential Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/extreme_value_pdf1.png b/boost/libs/math/doc/graphs/extreme_value_pdf1.png deleted file mode 100644 index b583b09e..00000000 Binary files a/boost/libs/math/doc/graphs/extreme_value_pdf1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/extreme_value_pdf1.svg b/boost/libs/math/doc/graphs/extreme_value_pdf1.svg deleted file mode 100644 index 3640c8c9..00000000 --- a/boost/libs/math/doc/graphs/extreme_value_pdf1.svg +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -0 --5 - -0 -0.1 -0.2 -0.3 -0.4 -0 - -Probability - -Random Variable - - - - - - - - - - - -location=-5 -location=0 -location=5 - -Extreme Value Distribution PDF (shape=1) - - - diff --git a/boost/libs/math/doc/graphs/extreme_value_pdf2.png b/boost/libs/math/doc/graphs/extreme_value_pdf2.png deleted file mode 100644 index e1a8d929..00000000 Binary files a/boost/libs/math/doc/graphs/extreme_value_pdf2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/extreme_value_pdf2.svg b/boost/libs/math/doc/graphs/extreme_value_pdf2.svg deleted file mode 100644 index 6439c8c2..00000000 --- a/boost/libs/math/doc/graphs/extreme_value_pdf2.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0 - -Probability - -Random Variable - - - - - - - - - - - -shape=0.5 -shape=1 -shape=2 - -Extreme Value Distribution PDF (location=0) - - - diff --git a/boost/libs/math/doc/graphs/fisher_f_pdf.png b/boost/libs/math/doc/graphs/fisher_f_pdf.png deleted file mode 100644 index 2c9f5612..00000000 Binary files a/boost/libs/math/doc/graphs/fisher_f_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/fisher_f_pdf.svg b/boost/libs/math/doc/graphs/fisher_f_pdf.svg deleted file mode 100644 index 6d48fe6c..00000000 --- a/boost/libs/math/doc/graphs/fisher_f_pdf.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0 - -Probability - -Random Variable - - - - - - - - - - - - - -n=4, m=4 -n=10, m=4 -n=10, m=10 -n=4, m=10 - -F Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/gamma1_pdf.png b/boost/libs/math/doc/graphs/gamma1_pdf.png deleted file mode 100644 index 942587ae..00000000 Binary files a/boost/libs/math/doc/graphs/gamma1_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/gamma1_pdf.svg b/boost/libs/math/doc/graphs/gamma1_pdf.svg deleted file mode 100644 index ff1b03ea..00000000 --- a/boost/libs/math/doc/graphs/gamma1_pdf.svg +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -6 -7 - -0 -0.5 -1 -1.5 -2 -0 - -Probability - -Random Variable - - - - - - - - - - - -shape = 0.75 -shape = 1 -shape = 3 - -Gamma Distribution PDF With Scale = 1 - - - diff --git a/boost/libs/math/doc/graphs/gamma2_pdf.png b/boost/libs/math/doc/graphs/gamma2_pdf.png deleted file mode 100644 index c548511e..00000000 Binary files a/boost/libs/math/doc/graphs/gamma2_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/gamma2_pdf.svg b/boost/libs/math/doc/graphs/gamma2_pdf.svg deleted file mode 100644 index 1b35e9de..00000000 --- a/boost/libs/math/doc/graphs/gamma2_pdf.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0 - -Probability - -Random Variable - - - - - - - - - - - -scale = 0.5 -scale = 1 -scale = 2 - -Gamma Distribution PDF With Shape = 2 - - - diff --git a/boost/libs/math/doc/graphs/gamma_p.png b/boost/libs/math/doc/graphs/gamma_p.png deleted file mode 100644 index 8548cf55..00000000 Binary files a/boost/libs/math/doc/graphs/gamma_p.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/gamma_p.svg b/boost/libs/math/doc/graphs/gamma_p.svg deleted file mode 100644 index d7fec32e..00000000 --- a/boost/libs/math/doc/graphs/gamma_p.svg +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -0 - -gamma_p(a, z) - -z - - - - - - - - - - - - - -a = 0.5 -a = 1.0 -a = 5.0 -a = 10.0 - -gamma_p - - - diff --git a/boost/libs/math/doc/graphs/gamma_q.png b/boost/libs/math/doc/graphs/gamma_q.png deleted file mode 100644 index c6d6033a..00000000 Binary files a/boost/libs/math/doc/graphs/gamma_q.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/gamma_q.svg b/boost/libs/math/doc/graphs/gamma_q.svg deleted file mode 100644 index 4ca35412..00000000 --- a/boost/libs/math/doc/graphs/gamma_q.svg +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 - -gamma_q(a, z) - -z - - - - - - - - - - - - - -a = 0.5 -a = 1.0 -a = 5.0 -a = 10.0 - -gamma_q - - - diff --git a/boost/libs/math/doc/graphs/generate.sh b/boost/libs/math/doc/graphs/generate.sh deleted file mode 100644 index d9659141..00000000 --- a/boost/libs/math/doc/graphs/generate.sh +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright John Maddock 2008. -# Use, modification and distribution are subject to 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) -# -# Generates PNG files from the SVG masters. -# -# Paths to tools come first, change these to match your system: -# -math2svg='m:\download\open\SVGMath-0.3.1\math2svg.py' -python='/cygdrive/c/program files/Python27/python.exe' -inkscape='/cygdrive/c/Program Files (x86)/Inkscape/inkscape.exe' -# Image DPI: -dpi=96 - -for svgfile in $*; do - pngfile=$(basename $svgfile .svg).png - echo Generating $pngfile - "$inkscape" -d $dpi -e $(cygpath -a -w $pngfile) $(cygpath -a -w $svgfile) -done - - - - - - - - diff --git a/boost/libs/math/doc/graphs/geometric_cdf_2.png b/boost/libs/math/doc/graphs/geometric_cdf_2.png deleted file mode 100644 index 2f62859f..00000000 Binary files a/boost/libs/math/doc/graphs/geometric_cdf_2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/geometric_cdf_2.svg b/boost/libs/math/doc/graphs/geometric_cdf_2.svg deleted file mode 100644 index 234b77fb..00000000 --- a/boost/libs/math/doc/graphs/geometric_cdf_2.svg +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - -p=0.2 -p=0.5 -p=0.8 - -Geometric Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/geometric_cdf_discrete.png b/boost/libs/math/doc/graphs/geometric_cdf_discrete.png deleted file mode 100644 index 31c53a9c..00000000 Binary files a/boost/libs/math/doc/graphs/geometric_cdf_discrete.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/geometric_cdf_discrete.svg b/boost/libs/math/doc/graphs/geometric_cdf_discrete.svg deleted file mode 100644 index 150e7ee6..00000000 --- a/boost/libs/math/doc/graphs/geometric_cdf_discrete.svg +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - -p=0.2 -p=0.5 -p=0.8 - -Geometric Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/geometric_pdf_2.png b/boost/libs/math/doc/graphs/geometric_pdf_2.png deleted file mode 100644 index 3b537a05..00000000 Binary files a/boost/libs/math/doc/graphs/geometric_pdf_2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/geometric_pdf_2.svg b/boost/libs/math/doc/graphs/geometric_pdf_2.svg deleted file mode 100644 index 837ff052..00000000 --- a/boost/libs/math/doc/graphs/geometric_pdf_2.svg +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0 - -Probability - -Random Variable - - - - - - - - - - - -p=0.2 -p=0.5 -p=0.8 - -Geometric Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/geometric_pdf_discrete.png b/boost/libs/math/doc/graphs/geometric_pdf_discrete.png deleted file mode 100644 index 24661f4b..00000000 Binary files a/boost/libs/math/doc/graphs/geometric_pdf_discrete.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/geometric_pdf_discrete.svg b/boost/libs/math/doc/graphs/geometric_pdf_discrete.svg deleted file mode 100644 index 9320c62f..00000000 --- a/boost/libs/math/doc/graphs/geometric_pdf_discrete.svg +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0 - -Probability - -Random Variable - - - - - - - - - - - -p=0.2 -p=0.5 -p=0.8 - -Geometric Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/hermite.png b/boost/libs/math/doc/graphs/hermite.png deleted file mode 100644 index 9c3323e2..00000000 Binary files a/boost/libs/math/doc/graphs/hermite.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/hermite.svg b/boost/libs/math/doc/graphs/hermite.svg deleted file mode 100644 index 78767575..00000000 --- a/boost/libs/math/doc/graphs/hermite.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -0 --1 - -0 -10 -20 -0 --10 --20 - -hermite(n, x) - -x - - - - - - - - - - - - - - - -n = 0 -n = 1 -n = 2 -n = 3 -n = 4 - -Hermite Polynomials - - - diff --git a/boost/libs/math/doc/graphs/hyperbolic.png b/boost/libs/math/doc/graphs/hyperbolic.png deleted file mode 100644 index 48ad0bf9..00000000 Binary files a/boost/libs/math/doc/graphs/hyperbolic.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/hyperexponential_pdf.png b/boost/libs/math/doc/graphs/hyperexponential_pdf.png deleted file mode 100644 index 374e8897..00000000 Binary files a/boost/libs/math/doc/graphs/hyperexponential_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/hyperexponential_pdf.svg b/boost/libs/math/doc/graphs/hyperexponential_pdf.svg deleted file mode 100644 index 12bd7897..00000000 --- a/boost/libs/math/doc/graphs/hyperexponential_pdf.svg +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/boost/libs/math/doc/graphs/hyperexponential_pdf_samemean.png b/boost/libs/math/doc/graphs/hyperexponential_pdf_samemean.png deleted file mode 100644 index 0c7b244f..00000000 Binary files a/boost/libs/math/doc/graphs/hyperexponential_pdf_samemean.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/hyperexponential_pdf_samemean.svg b/boost/libs/math/doc/graphs/hyperexponential_pdf_samemean.svg deleted file mode 100644 index 36274da9..00000000 --- a/boost/libs/math/doc/graphs/hyperexponential_pdf_samemean.svg +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/boost/libs/math/doc/graphs/hyperexponential_pdf_samerate.png b/boost/libs/math/doc/graphs/hyperexponential_pdf_samerate.png deleted file mode 100644 index 2de8d334..00000000 Binary files a/boost/libs/math/doc/graphs/hyperexponential_pdf_samerate.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/hyperexponential_pdf_samerate.svg b/boost/libs/math/doc/graphs/hyperexponential_pdf_samerate.svg deleted file mode 100644 index 9d54666c..00000000 --- a/boost/libs/math/doc/graphs/hyperexponential_pdf_samerate.svg +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/boost/libs/math/doc/graphs/hypergeometric_pdf_1.png b/boost/libs/math/doc/graphs/hypergeometric_pdf_1.png deleted file mode 100644 index ad8f3f83..00000000 Binary files a/boost/libs/math/doc/graphs/hypergeometric_pdf_1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/hypergeometric_pdf_1.svg b/boost/libs/math/doc/graphs/hypergeometric_pdf_1.svg deleted file mode 100644 index 30412774..00000000 --- a/boost/libs/math/doc/graphs/hypergeometric_pdf_1.svg +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -25 -30 -0 - -0 -0.05 -0.1 -0.15 -0.2 -0.25 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -N=500, r=50, n=30 -N=500, r=100, n=30 -N=500, r=250, n=30 -N=500, r=400, n=30 -N=500, r=450, n=30 - -Hypergeometric Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/hypergeometric_pdf_2.png b/boost/libs/math/doc/graphs/hypergeometric_pdf_2.png deleted file mode 100644 index 8c7019db..00000000 Binary files a/boost/libs/math/doc/graphs/hypergeometric_pdf_2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/hypergeometric_pdf_2.svg b/boost/libs/math/doc/graphs/hypergeometric_pdf_2.svg deleted file mode 100644 index 465f4db1..00000000 --- a/boost/libs/math/doc/graphs/hypergeometric_pdf_2.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -10 -20 -30 -40 -50 -0 - -0 -0.05 -0.1 -0.15 -0.2 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -N=500, r=50, n=50 -N=500, r=50, n=100 -N=500, r=50, n=250 -N=500, r=50, n=400 -N=500, r=50, n=450 - -Hypergeometric Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/ibeta.png b/boost/libs/math/doc/graphs/ibeta.png deleted file mode 100644 index 1d20b842..00000000 Binary files a/boost/libs/math/doc/graphs/ibeta.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/ibeta.svg b/boost/libs/math/doc/graphs/ibeta.svg deleted file mode 100644 index 9f6c0bce..00000000 --- a/boost/libs/math/doc/graphs/ibeta.svg +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -0 - -ibeta(a, b, z) - -z - - - - - - - - - - - - - - - -a = 9, b = 1 -a = 7, b = 2 -a = 5, b = 5 -a = 2, b = 7 -a = 1, b = 9 - -ibeta - - - diff --git a/boost/libs/math/doc/graphs/im_exp_on_c.png b/boost/libs/math/doc/graphs/im_exp_on_c.png deleted file mode 100644 index 68fb3d96..00000000 Binary files a/boost/libs/math/doc/graphs/im_exp_on_c.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/inverse_chi_squared_cdf.png b/boost/libs/math/doc/graphs/inverse_chi_squared_cdf.png deleted file mode 100644 index 4592e5b1..00000000 Binary files a/boost/libs/math/doc/graphs/inverse_chi_squared_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/inverse_chi_squared_cdf.svg b/boost/libs/math/doc/graphs/inverse_chi_squared_cdf.svg deleted file mode 100644 index 33f61de6..00000000 --- a/boost/libs/math/doc/graphs/inverse_chi_squared_cdf.svg +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -6 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -ν = 1 -ν = 3, (ξ = 1/3) -ν = 1, ξ = 1 -ν = 4, (ξ = 1/4) -ν = 3, (ξ = 1/5 - -Inverse Chi Squared Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/inverse_chi_squared_pdf.png b/boost/libs/math/doc/graphs/inverse_chi_squared_pdf.png deleted file mode 100644 index 776eacc0..00000000 Binary files a/boost/libs/math/doc/graphs/inverse_chi_squared_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/inverse_chi_squared_pdf.svg b/boost/libs/math/doc/graphs/inverse_chi_squared_pdf.svg deleted file mode 100644 index ce7b56ba..00000000 --- a/boost/libs/math/doc/graphs/inverse_chi_squared_pdf.svg +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -6 -0 - -0 -1 -2 -3 -4 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -ν = 1 -ν = 3, (ξ = 1/3) -ν = 3, ξ = 1 -ν = 4, (ξ = 1/4) -ν = 5, (ξ = 1/5) - -Inverse Chi Squared Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/inverse_gamma_cdf.png b/boost/libs/math/doc/graphs/inverse_gamma_cdf.png deleted file mode 100644 index d3fdf7ec..00000000 Binary files a/boost/libs/math/doc/graphs/inverse_gamma_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/inverse_gamma_cdf.svg b/boost/libs/math/doc/graphs/inverse_gamma_cdf.svg deleted file mode 100644 index 89af2890..00000000 --- a/boost/libs/math/doc/graphs/inverse_gamma_cdf.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - -α = 1, β = 1 -α = 2, β = 1 -α = 3, β = 2 -α = 3, β = 0.5 - -Inverse Gamma Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/inverse_gamma_pdf.png b/boost/libs/math/doc/graphs/inverse_gamma_pdf.png deleted file mode 100644 index ff2451ad..00000000 Binary files a/boost/libs/math/doc/graphs/inverse_gamma_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/inverse_gamma_pdf.svg b/boost/libs/math/doc/graphs/inverse_gamma_pdf.svg deleted file mode 100644 index 30deecfa..00000000 --- a/boost/libs/math/doc/graphs/inverse_gamma_pdf.svg +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -0 - -0 -1 -2 -3 -4 -5 -0 - -Probability - -Random Variable - - - - - - - - - - - - - -α = 1, β = 1 -α = 2, β = 1 -α = 3, β = 2 -α = 3, β = 0.5 - -Inverse Gamma Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/inverse_gaussian_cdf.png b/boost/libs/math/doc/graphs/inverse_gaussian_cdf.png deleted file mode 100644 index 74dc4126..00000000 Binary files a/boost/libs/math/doc/graphs/inverse_gaussian_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/inverse_gaussian_cdf.svg b/boost/libs/math/doc/graphs/inverse_gaussian_cdf.svg deleted file mode 100644 index bbf0949b..00000000 --- a/boost/libs/math/doc/graphs/inverse_gaussian_cdf.svg +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -α = 0.5, β = 1 -α = 1, β = 0.5 -α = 1, β = 1 -α = 10, β = 1 -α = 1, β = 5 - -Inverse Gaussian Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/inverse_gaussian_pdf.png b/boost/libs/math/doc/graphs/inverse_gaussian_pdf.png deleted file mode 100644 index e286b530..00000000 Binary files a/boost/libs/math/doc/graphs/inverse_gaussian_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/inverse_gaussian_pdf.svg b/boost/libs/math/doc/graphs/inverse_gaussian_pdf.svg deleted file mode 100644 index 0b176df4..00000000 --- a/boost/libs/math/doc/graphs/inverse_gaussian_pdf.svg +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -0 - -0 -0.5 -1 -1.5 -2 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -α = 0.5, β = 1 -α = 1, β = 0.5 -α = 1, β = 1 -α = 1, β = 5 -α = 10, β = 1 - -Inverse Gaussian Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/jacobi_cd.png b/boost/libs/math/doc/graphs/jacobi_cd.png deleted file mode 100644 index 4d37b50a..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_cd.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_cd.svg b/boost/libs/math/doc/graphs/jacobi_cd.svg deleted file mode 100644 index b259795a..00000000 --- a/boost/libs/math/doc/graphs/jacobi_cd.svg +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 --10 - -0 -0.5 -1 -0 --0.5 - -jacobi_cd(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic cd - - - diff --git a/boost/libs/math/doc/graphs/jacobi_cn.png b/boost/libs/math/doc/graphs/jacobi_cn.png deleted file mode 100644 index a5ba5fa1..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_cn.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_cn.svg b/boost/libs/math/doc/graphs/jacobi_cn.svg deleted file mode 100644 index 889f0d81..00000000 --- a/boost/libs/math/doc/graphs/jacobi_cn.svg +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 --10 - -0 -0.5 -1 -0 --0.5 - -jacobi_cn(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic cn - - - diff --git a/boost/libs/math/doc/graphs/jacobi_cs.png b/boost/libs/math/doc/graphs/jacobi_cs.png deleted file mode 100644 index ac542bf0..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_cs.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_cs.svg b/boost/libs/math/doc/graphs/jacobi_cs.svg deleted file mode 100644 index bdb1be9c..00000000 --- a/boost/libs/math/doc/graphs/jacobi_cs.svg +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0.5 -1 -1.5 -2 -2.5 -3 - -0 -5 -10 -0 --5 - -jacobi_cs(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic cs - - - diff --git a/boost/libs/math/doc/graphs/jacobi_dc.png b/boost/libs/math/doc/graphs/jacobi_dc.png deleted file mode 100644 index 45f9e15c..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_dc.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_dc.svg b/boost/libs/math/doc/graphs/jacobi_dc.svg deleted file mode 100644 index 3a45fc48..00000000 --- a/boost/libs/math/doc/graphs/jacobi_dc.svg +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 --10 - -0 -50 -0 --50 --100 - -jacobi_dc(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic dc - - - diff --git a/boost/libs/math/doc/graphs/jacobi_dn.png b/boost/libs/math/doc/graphs/jacobi_dn.png deleted file mode 100644 index b3eb7bfc..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_dn.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_dn.svg b/boost/libs/math/doc/graphs/jacobi_dn.svg deleted file mode 100644 index 5e141e73..00000000 --- a/boost/libs/math/doc/graphs/jacobi_dn.svg +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 --10 - -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 - -jacobi_dn(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic dn - - - diff --git a/boost/libs/math/doc/graphs/jacobi_ds.png b/boost/libs/math/doc/graphs/jacobi_ds.png deleted file mode 100644 index d0996cbd..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_ds.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_ds.svg b/boost/libs/math/doc/graphs/jacobi_ds.svg deleted file mode 100644 index 97bac8b9..00000000 --- a/boost/libs/math/doc/graphs/jacobi_ds.svg +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0.5 -1 -1.5 -2 -2.5 -3 - -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 - -jacobi_ds(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic ds - - - diff --git a/boost/libs/math/doc/graphs/jacobi_nc.png b/boost/libs/math/doc/graphs/jacobi_nc.png deleted file mode 100644 index 775184bf..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_nc.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_nc.svg b/boost/libs/math/doc/graphs/jacobi_nc.svg deleted file mode 100644 index ab1dbdaa..00000000 --- a/boost/libs/math/doc/graphs/jacobi_nc.svg +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -0 --1 --2 --3 --4 --5 - -0 -100 -0 --100 --200 --300 - -jacobi_nc(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic nc - - - diff --git a/boost/libs/math/doc/graphs/jacobi_nd.png b/boost/libs/math/doc/graphs/jacobi_nd.png deleted file mode 100644 index dd0712b9..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_nd.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_nd.svg b/boost/libs/math/doc/graphs/jacobi_nd.svg deleted file mode 100644 index e18fa5bf..00000000 --- a/boost/libs/math/doc/graphs/jacobi_nd.svg +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -0 --1 --2 - -1 -1.5 -2 -2.5 -3 -3.5 - -jacobi_nd(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic nd - - - diff --git a/boost/libs/math/doc/graphs/jacobi_ns.png b/boost/libs/math/doc/graphs/jacobi_ns.png deleted file mode 100644 index 9d2b9931..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_ns.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_ns.svg b/boost/libs/math/doc/graphs/jacobi_ns.svg deleted file mode 100644 index cc514bcd..00000000 --- a/boost/libs/math/doc/graphs/jacobi_ns.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -1 -2 -3 -4 - -0 -0 --500 --1e3 --1.5e3 --2e3 - -jacobi_ns(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic ns - - - diff --git a/boost/libs/math/doc/graphs/jacobi_sc.png b/boost/libs/math/doc/graphs/jacobi_sc.png deleted file mode 100644 index 29c1a7f2..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_sc.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_sc.svg b/boost/libs/math/doc/graphs/jacobi_sc.svg deleted file mode 100644 index 8d2b72f5..00000000 --- a/boost/libs/math/doc/graphs/jacobi_sc.svg +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -0 --1 --2 --3 --4 --5 - -0 -100 -200 -300 -0 --100 --200 --300 - -jacobi_sc(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic sc - - - diff --git a/boost/libs/math/doc/graphs/jacobi_sd.png b/boost/libs/math/doc/graphs/jacobi_sd.png deleted file mode 100644 index c3c79436..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_sd.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_sd.svg b/boost/libs/math/doc/graphs/jacobi_sd.svg deleted file mode 100644 index 311ba701..00000000 --- a/boost/libs/math/doc/graphs/jacobi_sd.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -0 --1 --2 - -0 -5 -0 --5 - -jacobi_sd(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic sd - - - diff --git a/boost/libs/math/doc/graphs/jacobi_sn.png b/boost/libs/math/doc/graphs/jacobi_sn.png deleted file mode 100644 index 297f8584..00000000 Binary files a/boost/libs/math/doc/graphs/jacobi_sn.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/jacobi_sn.svg b/boost/libs/math/doc/graphs/jacobi_sn.svg deleted file mode 100644 index 8174a6c7..00000000 --- a/boost/libs/math/doc/graphs/jacobi_sn.svg +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 --10 - -0 -0.5 -1 -0 --0.5 - -jacobi_sn(k, u) - -k - - - - - - - - - - - - - - - -k=0 -k=0.5 -k=0.75 -k=0.95 -k=1 - -Jacobi Elliptic sn - - - diff --git a/boost/libs/math/doc/graphs/laguerre.png b/boost/libs/math/doc/graphs/laguerre.png deleted file mode 100644 index 961ed734..00000000 Binary files a/boost/libs/math/doc/graphs/laguerre.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/laguerre.svg b/boost/libs/math/doc/graphs/laguerre.svg deleted file mode 100644 index a3a3e97e..00000000 --- a/boost/libs/math/doc/graphs/laguerre.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 - -0 -10 -20 -0 --10 - -laguerre(n, x) - -x - - - - - - - - - - - - - - - - - -n = 0 -n = 1 -n = 2 -n = 3 -n = 4 -n = 5 - -Laguerre Polynomials - - - diff --git a/boost/libs/math/doc/graphs/laplace_pdf.png b/boost/libs/math/doc/graphs/laplace_pdf.png deleted file mode 100644 index 8133fe2d..00000000 Binary files a/boost/libs/math/doc/graphs/laplace_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/laplace_pdf.svg b/boost/libs/math/doc/graphs/laplace_pdf.svg deleted file mode 100644 index 0703fee7..00000000 --- a/boost/libs/math/doc/graphs/laplace_pdf.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -0 --5 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -μ = 0, σ = 1 -μ = 0, σ = 0.5 -μ = 0, σ = 2 -μ = -1, σ = 1 -μ = 1, σ = 1 - -Laplace Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/legendre_p.png b/boost/libs/math/doc/graphs/legendre_p.png deleted file mode 100644 index 283bc330..00000000 Binary files a/boost/libs/math/doc/graphs/legendre_p.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/legendre_p.svg b/boost/libs/math/doc/graphs/legendre_p.svg deleted file mode 100644 index bdcbfbae..00000000 --- a/boost/libs/math/doc/graphs/legendre_p.svg +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0.5 -1 -0 --0.5 --1 - -0 -0.5 -1 -0 --0.5 --1 - -legendre_p(l, x) - -x - - - - - - - - - - - - - - - -l = 1 -l = 2 -l = 3 -l = 4 -l = 5 - -Legendre Polynomials - - - diff --git a/boost/libs/math/doc/graphs/legendre_q.png b/boost/libs/math/doc/graphs/legendre_q.png deleted file mode 100644 index ba0d8e27..00000000 Binary files a/boost/libs/math/doc/graphs/legendre_q.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/legendre_q.svg b/boost/libs/math/doc/graphs/legendre_q.svg deleted file mode 100644 index 5b4f122d..00000000 --- a/boost/libs/math/doc/graphs/legendre_q.svg +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0.5 -0 --0.5 - -0 -0.5 -0 --0.5 --1 - -legendre_q(l, x) - -x - - - - - - - - - - - - - - - -l = 1 -l = 2 -l = 3 -l = 4 -l = 5 - -Legendre Polynomials of the Second Kind - - - diff --git a/boost/libs/math/doc/graphs/lgamma.png b/boost/libs/math/doc/graphs/lgamma.png deleted file mode 100644 index d0ed45ee..00000000 Binary files a/boost/libs/math/doc/graphs/lgamma.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/lgamma.svg b/boost/libs/math/doc/graphs/lgamma.svg deleted file mode 100644 index 6ee0710e..00000000 --- a/boost/libs/math/doc/graphs/lgamma.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 - -0 -5 -10 -0 - -lgamma(z) - -z - - - - - - - - - -lgamma - - - diff --git a/boost/libs/math/doc/graphs/log1p.png b/boost/libs/math/doc/graphs/log1p.png deleted file mode 100644 index cc3f6f66..00000000 Binary files a/boost/libs/math/doc/graphs/log1p.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/log1p.svg b/boost/libs/math/doc/graphs/log1p.svg deleted file mode 100644 index ade24656..00000000 --- a/boost/libs/math/doc/graphs/log1p.svg +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 - -0 -0 --5 --10 - -log1p(z) - -z - - - - -log1p - - - diff --git a/boost/libs/math/doc/graphs/logistic_pdf.png b/boost/libs/math/doc/graphs/logistic_pdf.png deleted file mode 100644 index 7a1346bd..00000000 Binary files a/boost/libs/math/doc/graphs/logistic_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/logistic_pdf.svg b/boost/libs/math/doc/graphs/logistic_pdf.svg deleted file mode 100644 index 9f40980d..00000000 --- a/boost/libs/math/doc/graphs/logistic_pdf.svg +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 --10 -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0 - -Probability - -Random Variable - - - - - - - - - - - - - -location=0, scale=1 -location=0, scale=3 -location=0, scale=0.5 -location=5, scale=1 - -Logistic Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/lognormal_pdf1.png b/boost/libs/math/doc/graphs/lognormal_pdf1.png deleted file mode 100644 index 5492cb72..00000000 Binary files a/boost/libs/math/doc/graphs/lognormal_pdf1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/lognormal_pdf1.svg b/boost/libs/math/doc/graphs/lognormal_pdf1.svg deleted file mode 100644 index 1a8bf0cf..00000000 --- a/boost/libs/math/doc/graphs/lognormal_pdf1.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 - -0 -0.5 -1 -1.5 -0 - -Probability - -Random Variable - - - - - - - - - - - -location=-1 -location=0 -location=1 - -Lognormal Distribution PDF (scale=1) - - - diff --git a/boost/libs/math/doc/graphs/lognormal_pdf2.png b/boost/libs/math/doc/graphs/lognormal_pdf2.png deleted file mode 100644 index dc867d9d..00000000 Binary files a/boost/libs/math/doc/graphs/lognormal_pdf2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/lognormal_pdf2.svg b/boost/libs/math/doc/graphs/lognormal_pdf2.svg deleted file mode 100644 index af584e80..00000000 --- a/boost/libs/math/doc/graphs/lognormal_pdf2.svg +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -0 - -0 -0.5 -1 -0 - -Probability - -Random Variable - - - - - - - - - - - -scale=0.5 -scale=1 -scale=2 - -Lognormal Distribution PDF (location=0) - - - diff --git a/boost/libs/math/doc/graphs/nc_beta_pdf.png b/boost/libs/math/doc/graphs/nc_beta_pdf.png deleted file mode 100644 index 05cbae46..00000000 Binary files a/boost/libs/math/doc/graphs/nc_beta_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/nc_beta_pdf.svg b/boost/libs/math/doc/graphs/nc_beta_pdf.svg deleted file mode 100644 index 7abb2dd7..00000000 --- a/boost/libs/math/doc/graphs/nc_beta_pdf.svg +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -0 - -0 -1 -2 -3 -4 -5 -6 -7 -8 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - - - -α=10, β=15, δ=0 -α=10, β=15, δ=1 -α=10, β=15, δ=5 -α=10, β=15, δ=10 -α=10, β=15, δ=40 -α=10, β=15, δ=100 - -Non Central Beta PDF - - - diff --git a/boost/libs/math/doc/graphs/nc_f_pdf.png b/boost/libs/math/doc/graphs/nc_f_pdf.png deleted file mode 100644 index f303420f..00000000 Binary files a/boost/libs/math/doc/graphs/nc_f_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/nc_f_pdf.svg b/boost/libs/math/doc/graphs/nc_f_pdf.svg deleted file mode 100644 index f60be41c..00000000 --- a/boost/libs/math/doc/graphs/nc_f_pdf.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -0 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - - - -v1=10, v2=20, λ=0 -v1=10, v2=20, λ=1 -v1=10, v2=20, λ=5 -v1=10, v2=20, λ=10 -v1=10, v2=20, λ=40 -v1=10, v2=20, λ=100 - -Non Central F PDF - - - diff --git a/boost/libs/math/doc/graphs/nc_t_cdf.png b/boost/libs/math/doc/graphs/nc_t_cdf.png deleted file mode 100644 index 689165e0..00000000 Binary files a/boost/libs/math/doc/graphs/nc_t_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/nc_t_cdf.svg b/boost/libs/math/doc/graphs/nc_t_cdf.svg deleted file mode 100644 index e6f47a65..00000000 --- a/boost/libs/math/doc/graphs/nc_t_cdf.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -10 -0 --10 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - - - -v=10, δ=-10 -v=10, δ=-5 -v=10, δ=0 -v=10, δ=5 -v=10, δ=10 -v=inf, δ=15 - -Non Central T CDF - - - diff --git a/boost/libs/math/doc/graphs/nc_t_pdf.png b/boost/libs/math/doc/graphs/nc_t_pdf.png deleted file mode 100644 index 33ba4412..00000000 Binary files a/boost/libs/math/doc/graphs/nc_t_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/nc_t_pdf.svg b/boost/libs/math/doc/graphs/nc_t_pdf.svg deleted file mode 100644 index da5cc074..00000000 --- a/boost/libs/math/doc/graphs/nc_t_pdf.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -10 -0 --10 - -0 -0.1 -0.2 -0.3 -0.4 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - - - -v=10, δ=-10 -v=10, δ=-5 -v=10, δ=0 -v=10, δ=5 -v=10, δ=10 -v=inf, δ=15 - -Non Central T PDF - - - diff --git a/boost/libs/math/doc/graphs/nccs_pdf.png b/boost/libs/math/doc/graphs/nccs_pdf.png deleted file mode 100644 index 63789734..00000000 Binary files a/boost/libs/math/doc/graphs/nccs_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/nccs_pdf.svg b/boost/libs/math/doc/graphs/nccs_pdf.svg deleted file mode 100644 index cab35fe3..00000000 --- a/boost/libs/math/doc/graphs/nccs_pdf.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -50 -100 -150 -0 - -0 -0.01 -0.02 -0.03 -0.04 -0.05 -0.06 -0.07 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - - - -v=20, λ=0 -v=20, λ=1 -v=20, λ=5 -v=20, λ=10 -v=20, λ=20 -v=20, λ=100 - -Non Central Chi Squared PDF - - - diff --git a/boost/libs/math/doc/graphs/negative_binomial_pdf_1.png b/boost/libs/math/doc/graphs/negative_binomial_pdf_1.png deleted file mode 100644 index 34dc5424..00000000 Binary files a/boost/libs/math/doc/graphs/negative_binomial_pdf_1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/negative_binomial_pdf_1.svg b/boost/libs/math/doc/graphs/negative_binomial_pdf_1.svg deleted file mode 100644 index d525da97..00000000 --- a/boost/libs/math/doc/graphs/negative_binomial_pdf_1.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -50 -100 -0 - -0 -0.05 -0.1 -0.15 -0 - -Probability - -Random Variable - - - - - - - - - - - -n=20 p=0.25 -n=20 p=0.5 -n=20 p=0.75 - -Negative Binomial Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/negative_binomial_pdf_2.png b/boost/libs/math/doc/graphs/negative_binomial_pdf_2.png deleted file mode 100644 index 71fec60e..00000000 Binary files a/boost/libs/math/doc/graphs/negative_binomial_pdf_2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/negative_binomial_pdf_2.svg b/boost/libs/math/doc/graphs/negative_binomial_pdf_2.svg deleted file mode 100644 index 26fe4d3d..00000000 --- a/boost/libs/math/doc/graphs/negative_binomial_pdf_2.svg +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -50 -100 -0 - -0 -0.01 -0.02 -0.03 -0.04 -0.05 -0.06 -0.07 -0.08 -0.09 -0.1 -0 - -Probability - -Random Variable - - - - - - - - - - - -n=10 p=0.5 -n=20 p=0.5 -n=70 p=0.5 - -Negative Binomial Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/neumann_y_zeros.png b/boost/libs/math/doc/graphs/neumann_y_zeros.png deleted file mode 100644 index 73dc9752..00000000 Binary files a/boost/libs/math/doc/graphs/neumann_y_zeros.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/neumann_y_zeros.svg b/boost/libs/math/doc/graphs/neumann_y_zeros.svg deleted file mode 100644 index e65e3857..00000000 --- a/boost/libs/math/doc/graphs/neumann_y_zeros.svg +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -0 - -0.0 -0.2 -0.4 -0.0 --0.2 --0.4 --0.6 --0.8 --1.0 - -Ya(x) - -x - - - - - - - - - - - -◊ -◊ -◊ -◊ -◊ - - - - - - - - - - - - -◊ - - -Y0(x) -Y1(x) -Y2(x) -Y-1(x) -Y-2(x) -Y0 zero -Y1 zero -Y2 zero -Y-1 zero -Y-2 zero - -Zeros of Neumann Ya(x) - - - diff --git a/boost/libs/math/doc/graphs/normal01_cdf.png b/boost/libs/math/doc/graphs/normal01_cdf.png deleted file mode 100644 index a1b61cdb..00000000 Binary files a/boost/libs/math/doc/graphs/normal01_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/normal01_cdf.svg b/boost/libs/math/doc/graphs/normal01_cdf.svg deleted file mode 100644 index 24ceec5c..00000000 --- a/boost/libs/math/doc/graphs/normal01_cdf.svg +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -0 --1 --2 --3 --4 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -0 - -Probability - -Random Variable - - - - -Standard Normal Distribution (N01) CDF - - - diff --git a/boost/libs/math/doc/graphs/normal01_pdf.png b/boost/libs/math/doc/graphs/normal01_pdf.png deleted file mode 100644 index 88795395..00000000 Binary files a/boost/libs/math/doc/graphs/normal01_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/normal01_pdf.svg b/boost/libs/math/doc/graphs/normal01_pdf.svg deleted file mode 100644 index cf2588bf..00000000 --- a/boost/libs/math/doc/graphs/normal01_pdf.svg +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -0 --1 --2 --3 --4 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0 - -Probability - -Random Variable - - - - -Standard Normal Distribution (N01) PDF - - - diff --git a/boost/libs/math/doc/graphs/normal_cdf.png b/boost/libs/math/doc/graphs/normal_cdf.png deleted file mode 100644 index 2d58a999..00000000 Binary files a/boost/libs/math/doc/graphs/normal_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/normal_cdf.svg b/boost/libs/math/doc/graphs/normal_cdf.svg deleted file mode 100644 index 981dfb5d..00000000 --- a/boost/libs/math/doc/graphs/normal_cdf.svg +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -0 --1 --2 --3 --4 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -μ = 0, σ = 1 -μ = 0, σ = 0.5 -μ = 0, σ = 2 -μ = -1, σ = 1 -μ = 1, σ = 1 - -Normal Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/normal_pdf.png b/boost/libs/math/doc/graphs/normal_pdf.png deleted file mode 100644 index 02603bbc..00000000 Binary files a/boost/libs/math/doc/graphs/normal_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/normal_pdf.svg b/boost/libs/math/doc/graphs/normal_pdf.svg deleted file mode 100644 index a329ffb7..00000000 --- a/boost/libs/math/doc/graphs/normal_pdf.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -0 --1 --2 --3 --4 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -μ = 0, σ = 1 -μ = 0, σ = 0.5 -μ = 0, σ = 2 -μ = -1, σ = 1 -μ = 1, σ = 1 - -Normal Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/owens_integration_area.png b/boost/libs/math/doc/graphs/owens_integration_area.png deleted file mode 100644 index 8ad21cb4..00000000 Binary files a/boost/libs/math/doc/graphs/owens_integration_area.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/owens_integration_area.svg b/boost/libs/math/doc/graphs/owens_integration_area.svg deleted file mode 100644 index d0aef8a8..00000000 --- a/boost/libs/math/doc/graphs/owens_integration_area.svg +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/boost/libs/math/doc/graphs/pareto_pdf1.png b/boost/libs/math/doc/graphs/pareto_pdf1.png deleted file mode 100644 index 686a9681..00000000 Binary files a/boost/libs/math/doc/graphs/pareto_pdf1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/pareto_pdf1.svg b/boost/libs/math/doc/graphs/pareto_pdf1.svg deleted file mode 100644 index 718d2117..00000000 --- a/boost/libs/math/doc/graphs/pareto_pdf1.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -5 -10 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -0 - -Probability - -Random Variable - - - - - - - - - - - -scale=1 -scale=2 -scale=3 - -Pareto Distribution PDF (shape=1) - - - diff --git a/boost/libs/math/doc/graphs/pareto_pdf2.png b/boost/libs/math/doc/graphs/pareto_pdf2.png deleted file mode 100644 index ee263d7c..00000000 Binary files a/boost/libs/math/doc/graphs/pareto_pdf2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/pareto_pdf2.svg b/boost/libs/math/doc/graphs/pareto_pdf2.svg deleted file mode 100644 index 4120c9ee..00000000 --- a/boost/libs/math/doc/graphs/pareto_pdf2.svg +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -1 -2 -3 -4 -5 -6 -7 - -0 -0.5 -1 -1.5 -0 - -Probability - -Random Variable - - - - - - - - - - - -shape=0.5 -shape=1 -shape=2 - -Pareto Distribution PDF (scale=1) - - - diff --git a/boost/libs/math/doc/graphs/pdf.png b/boost/libs/math/doc/graphs/pdf.png deleted file mode 100644 index d3e92bb3..00000000 Binary files a/boost/libs/math/doc/graphs/pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/plot_owens_3d_xyp.png b/boost/libs/math/doc/graphs/plot_owens_3d_xyp.png deleted file mode 100644 index 73d7a03b..00000000 Binary files a/boost/libs/math/doc/graphs/plot_owens_3d_xyp.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/plot_owens_t.png b/boost/libs/math/doc/graphs/plot_owens_t.png deleted file mode 100644 index 678a22b4..00000000 Binary files a/boost/libs/math/doc/graphs/plot_owens_t.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/poisson_pdf_1.png b/boost/libs/math/doc/graphs/poisson_pdf_1.png deleted file mode 100644 index 04fe96f6..00000000 Binary files a/boost/libs/math/doc/graphs/poisson_pdf_1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/poisson_pdf_1.svg b/boost/libs/math/doc/graphs/poisson_pdf_1.svg deleted file mode 100644 index 7c3d5528..00000000 --- a/boost/libs/math/doc/graphs/poisson_pdf_1.svg +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -25 -30 -0 - -0 -0.05 -0.1 -0.15 -0 - -Probability - -Random Variable - - - - - - - - - - - -λ=5 -λ=10 -λ=20 - -Poisson Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/polygamma2.png b/boost/libs/math/doc/graphs/polygamma2.png deleted file mode 100644 index b292a7ee..00000000 Binary files a/boost/libs/math/doc/graphs/polygamma2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/polygamma2.svg b/boost/libs/math/doc/graphs/polygamma2.svg deleted file mode 100644 index 733112c6..00000000 --- a/boost/libs/math/doc/graphs/polygamma2.svg +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -0 --5 - -0 -10 -20 -30 -40 -50 -0 --10 --20 --30 --40 --50 - -polygamma(2, x) - -x - - - - - - - - - - -Polygamma - - - diff --git a/boost/libs/math/doc/graphs/polygamma3.png b/boost/libs/math/doc/graphs/polygamma3.png deleted file mode 100644 index 03f76592..00000000 Binary files a/boost/libs/math/doc/graphs/polygamma3.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/polygamma3.svg b/boost/libs/math/doc/graphs/polygamma3.svg deleted file mode 100644 index 79c57f59..00000000 --- a/boost/libs/math/doc/graphs/polygamma3.svg +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -0 --5 - -0 -100 -200 -300 -400 -500 -600 -700 -800 - -polygamma(3, x) - -x - - - - - - - - - - -Polygamma - - - diff --git a/boost/libs/math/doc/graphs/powm1.png b/boost/libs/math/doc/graphs/powm1.png deleted file mode 100644 index 000e298c..00000000 Binary files a/boost/libs/math/doc/graphs/powm1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/powm1.svg b/boost/libs/math/doc/graphs/powm1.svg deleted file mode 100644 index baffc621..00000000 --- a/boost/libs/math/doc/graphs/powm1.svg +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -0 --1 --2 --3 --4 --5 - -0 -5 -10 -0 - -powm1(a, z) - -z - - - - - - - - - - - - - - - - - -a=0.0001 -a=0.001 -a=0.01 -a=0.1 -a=0.75 -a=1.25 - -powm1 - - - diff --git a/boost/libs/math/doc/graphs/prior_posterior_plot.png b/boost/libs/math/doc/graphs/prior_posterior_plot.png deleted file mode 100644 index 7e64a895..00000000 Binary files a/boost/libs/math/doc/graphs/prior_posterior_plot.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/prior_posterior_plot.svg b/boost/libs/math/doc/graphs/prior_posterior_plot.svg deleted file mode 100644 index bebe711c..00000000 --- a/boost/libs/math/doc/graphs/prior_posterior_plot.svg +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -20 -40 -60 -80 -100 -0 - -0 -0.01 -0.02 -0.03 -0.04 -0.05 -0.06 -0.07 -0 - -probability density - -machine operation variance - - - - - - - - - -prior -posterior - -Prior and Posterior Distributions - - - diff --git a/boost/libs/math/doc/graphs/quantile.png b/boost/libs/math/doc/graphs/quantile.png deleted file mode 100644 index 0ecc897e..00000000 Binary files a/boost/libs/math/doc/graphs/quantile.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/rayleigh_cdf.png b/boost/libs/math/doc/graphs/rayleigh_cdf.png deleted file mode 100644 index 3278d0b0..00000000 Binary files a/boost/libs/math/doc/graphs/rayleigh_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/rayleigh_cdf.svg b/boost/libs/math/doc/graphs/rayleigh_cdf.svg deleted file mode 100644 index 7625bbab..00000000 --- a/boost/libs/math/doc/graphs/rayleigh_cdf.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -25 -30 -0 -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -σ=0.5 -σ=1 -σ=2 -σ=4 -σ=10 - -Rayleigh Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/rayleigh_pdf.png b/boost/libs/math/doc/graphs/rayleigh_pdf.png deleted file mode 100644 index 2b027489..00000000 Binary files a/boost/libs/math/doc/graphs/rayleigh_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/rayleigh_pdf.svg b/boost/libs/math/doc/graphs/rayleigh_pdf.svg deleted file mode 100644 index 40ff9388..00000000 --- a/boost/libs/math/doc/graphs/rayleigh_pdf.svg +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -25 -30 -0 -0 -0.5 -1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -σ=0.5 -σ=1 -σ=2 -σ=4 -σ=10 - -Rayleigh Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/remez-2.png b/boost/libs/math/doc/graphs/remez-2.png deleted file mode 100644 index e9bfbd91..00000000 Binary files a/boost/libs/math/doc/graphs/remez-2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/remez-3.png b/boost/libs/math/doc/graphs/remez-3.png deleted file mode 100644 index 6493527d..00000000 Binary files a/boost/libs/math/doc/graphs/remez-3.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/remez-4.png b/boost/libs/math/doc/graphs/remez-4.png deleted file mode 100644 index 6733bac9..00000000 Binary files a/boost/libs/math/doc/graphs/remez-4.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/remez-5.png b/boost/libs/math/doc/graphs/remez-5.png deleted file mode 100644 index 80727614..00000000 Binary files a/boost/libs/math/doc/graphs/remez-5.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/sf_graphs.cpp b/boost/libs/math/doc/graphs/sf_graphs.cpp deleted file mode 100644 index 713665c6..00000000 --- a/boost/libs/math/doc/graphs/sf_graphs.cpp +++ /dev/null @@ -1,735 +0,0 @@ -// (C) Copyright John Maddock 2008. -// Use, modification and distribution are subject to 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) - -#ifdef _MSC_VER -# pragma warning (disable : 4127) // conditional expression is constant -# pragma warning (disable : 4180) // qualifier applied to function type has no meaning; ignored -# pragma warning (disable : 4503) // decorated name length exceeded, name was truncated -# pragma warning (disable : 4512) // assignment operator could not be generated -# pragma warning (disable : 4224) // nonstandard extension used : formal parameter 'function_ptr' was previously defined as a type -#endif - -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -class function_arity1_plotter -{ -public: - function_arity1_plotter() : m_min_x(0), m_max_x(0), m_min_y(0), m_max_y(0), m_has_legend(false) {} - - void add(boost::function f, double a, double b, const std::string& name) - { - if(name.size()) - m_has_legend = true; - // - // Now set our x-axis limits: - // - if(m_max_x == m_min_x) - { - m_max_x = b; - m_min_x = a; - } - else - { - if(a < m_min_x) - m_min_x = a; - if(b > m_max_x) - m_max_x = b; - } - m_points.push_back(std::pair >(name, std::map())); - std::map& points = m_points.rbegin()->second; - double interval = (b - a) / 200; - for(double x = a; x <= b; x += interval) - { - // - // Evaluate the function, set the Y axis limits - // if needed and then store the pair of points: - // - double y = f(x); - if((m_min_y == m_max_y) && (m_min_y == 0)) - m_min_y = m_max_y = y; - if(m_min_y > y) - m_min_y = y; - if(m_max_y < y) - m_max_y = y; - points[x] = y; - } - } - - void add(const std::map& m, const std::string& name) - { - if(name.size()) - m_has_legend = true; - m_points.push_back(std::pair >(name, m)); - std::map::const_iterator i = m.begin(); - - while(i != m.end()) - { - if((m_min_x == m_min_y) && (m_min_y == 0)) - { - m_min_x = m_max_x = i->first; - } - if(i->first < m_min_x) - { - m_min_x = i->first; - } - if(i->first > m_max_x) - { - m_max_x = i->first; - } - - if((m_min_y == m_max_y) && (m_min_y == 0)) - { - m_min_y = m_max_y = i->second; - } - if(i->second < m_min_y) - { - m_min_y = i->second; - } - if(i->second > m_max_y) - { - m_max_y = i->second; - } - - ++i; - } - } - - void plot(const std::string& title, const std::string& file, - const std::string& x_lable = std::string(), - const std::string& y_lable = std::string()) - { - using namespace boost::svg; - - static const svg_color colors[5] = - { - darkblue, - darkred, - darkgreen, - darkorange, - chartreuse - }; - - svg_2d_plot plot; - plot.image_x_size(600); - plot.image_y_size(400); - plot.copyright_holder("John Maddock").copyright_date("2008").boost_license_on(true); - plot.coord_precision(4); // Could be 3 for smaller plots? - plot.title(title).title_font_size(20).title_on(true); - plot.legend_on(m_has_legend); - - double x_delta = (m_max_x - m_min_x) / 50; - double y_delta = (m_max_y - m_min_y) / 50; - plot.x_range(m_min_x, m_max_x + x_delta) - .y_range(m_min_y, m_max_y + y_delta); - plot.x_label_on(true).x_label(x_lable); - plot.y_label_on(true).y_label(y_lable); - plot.y_major_grid_on(false).x_major_grid_on(false); - plot.x_num_minor_ticks(3); - plot.y_num_minor_ticks(3); - // - // Work out axis tick intervals: - // - double l = std::floor(std::log10((m_max_x - m_min_x) / 10) + 0.5); - double interval = std::pow(10.0, (int)l); - if(((m_max_x - m_min_x) / interval) > 10) - interval *= 5; - plot.x_major_interval(interval); - l = std::floor(std::log10((m_max_y - m_min_y) / 10) + 0.5); - interval = std::pow(10.0, (int)l); - if(((m_max_y - m_min_y) / interval) > 10) - interval *= 5; - plot.y_major_interval(interval); - plot.plot_window_on(true); - plot.plot_border_color(lightslategray) - .background_border_color(lightslategray) - .legend_border_color(lightslategray) - .legend_background_color(white); - - int color_index = 0; - - for(std::list > >::const_iterator i = m_points.begin(); - i != m_points.end(); ++i) - { - plot.plot(i->second, i->first) - .line_on(true) - .line_color(colors[color_index]) - .line_width(1.) - .shape(none); - if(i->first.size()) - ++color_index; - color_index = color_index % (sizeof(colors)/sizeof(colors[0])); - } - plot.write(file); - } - - void clear() - { - m_points.clear(); - m_min_x = m_min_y = m_max_x = m_max_y = 0; - m_has_legend = false; - } - -private: - std::list > > m_points; - double m_min_x, m_max_x, m_min_y, m_max_y; - bool m_has_legend; -}; - -template -struct location_finder -{ - location_finder(F _f, double t, double x0) : f(_f), target(t), x_off(x0){} - - double operator()(double x) - { - try - { - return f(x + x_off) - target; - } - catch(const std::overflow_error&) - { - return boost::math::tools::max_value(); - } - catch(const std::domain_error&) - { - if(x + x_off == x_off) - return f(x_off + boost::math::tools::epsilon() * x_off); - throw; - } - } - -private: - F f; - double target; - double x_off; -}; - -template -double find_end_point(F f, double x0, double target, bool rising, double x_off = 0) -{ - boost::math::tools::eps_tolerance tol(50); - boost::uintmax_t max_iter = 1000; - return x_off + boost::math::tools::bracket_and_solve_root( - location_finder(f, target, x_off), - x0, - 1.5, - rising, - tol, - max_iter).first; -} - -double sqrt1pm1(double x) -{ - return boost::math::sqrt1pm1(x); -} - -double lbeta(double a, double b) -{ - return std::log(boost::math::beta(a, b)); -} - -int main() -{ - function_arity1_plotter plot; - double (*f)(double); - double (*f2)(double, double); - double (*f2u)(unsigned, double); - double (*f2i)(int, double); - double (*f3)(double, double, double); - double (*f4)(double, double, double, double); - double max_val; - - f = boost::math::zeta; - plot.add(f, find_end_point(f, 0.1, 40.0, false, 1.0), 10, ""); - plot.add(f, -20, find_end_point(f, -0.1, -40.0, false, 1.0), ""); - plot.plot("Zeta Function Over [-20,10]", "zeta1.svg", "z", "zeta(z)"); - - plot.clear(); - plot.add(f, -14, 0, ""); - plot.plot("Zeta Function Over [-14,0]", "zeta2.svg", "z", "zeta(z)"); - - f = boost::math::tgamma; - max_val = f(6); - plot.clear(); - plot.add(f, find_end_point(f, 0.1, max_val, false), 6, ""); - plot.add(f, find_end_point(f, 0.1, -max_val, true, -1), find_end_point(f, -0.1, -max_val, false), ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -2), find_end_point(f, -0.1, max_val, true, -1), ""); - plot.add(f, find_end_point(f, 0.1, -max_val, true, -3), find_end_point(f, -0.1, -max_val, false, -2), ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -4), find_end_point(f, -0.1, max_val, true, -3), ""); - plot.plot("tgamma", "tgamma.svg", "z", "tgamma(z)"); - - f = boost::math::lgamma; - max_val = f(10); - plot.clear(); - plot.add(f, find_end_point(f, 0.1, max_val, false), 10, ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -1), find_end_point(f, -0.1, max_val, true), ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -2), find_end_point(f, -0.1, max_val, true, -1), ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -3), find_end_point(f, -0.1, max_val, true, -2), ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -4), find_end_point(f, -0.1, max_val, true, -3), ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -5), find_end_point(f, -0.1, max_val, true, -4), ""); - plot.plot("lgamma", "lgamma.svg", "z", "lgamma(z)"); - - f = boost::math::digamma; - max_val = 10; - plot.clear(); - plot.add(f, find_end_point(f, 0.1, -max_val, true), 10, ""); - plot.add(f, find_end_point(f, 0.1, -max_val, true, -1), find_end_point(f, -0.1, max_val, true), ""); - plot.add(f, find_end_point(f, 0.1, -max_val, true, -2), find_end_point(f, -0.1, max_val, true, -1), ""); - plot.add(f, find_end_point(f, 0.1, -max_val, true, -3), find_end_point(f, -0.1, max_val, true, -2), ""); - plot.add(f, find_end_point(f, 0.1, -max_val, true, -4), find_end_point(f, -0.1, max_val, true, -3), ""); - plot.plot("digamma", "digamma.svg", "z", "digamma(z)"); - - f = boost::math::erf; - plot.clear(); - plot.add(f, -3, 3, ""); - plot.plot("erf", "erf.svg", "z", "erf(z)"); - f = boost::math::erfc; - plot.clear(); - plot.add(f, -3, 3, ""); - plot.plot("erfc", "erfc.svg", "z", "erfc(z)"); - - f = boost::math::erf_inv; - plot.clear(); - plot.add(f, find_end_point(f, 0.1, -3, true, -1), find_end_point(f, -0.1, 3, true, 1), ""); - plot.plot("erf_inv", "erf_inv.svg", "z", "erf_inv(z)"); - f = boost::math::erfc_inv; - plot.clear(); - plot.add(f, find_end_point(f, 0.1, 3, false), find_end_point(f, -0.1, -3, false, 2), ""); - plot.plot("erfc_inv", "erfc_inv.svg", "z", "erfc_inv(z)"); - - f = boost::math::log1p; - plot.clear(); - plot.add(f, find_end_point(f, 0.1, -10, true, -1), 10, ""); - plot.plot("log1p", "log1p.svg", "z", "log1p(z)"); - - f = boost::math::expm1; - plot.clear(); - plot.add(f, -4, 2, ""); - plot.plot("expm1", "expm1.svg", "z", "expm1(z)"); - - f = boost::math::cbrt; - plot.clear(); - plot.add(f, -10, 10, ""); - plot.plot("cbrt", "cbrt.svg", "z", "cbrt(z)"); - - f = sqrt1pm1; - plot.clear(); - plot.add(f, find_end_point(f, 0.1, -10, true, -1), 5, ""); - plot.plot("sqrt1pm1", "sqrt1pm1.svg", "z", "sqrt1pm1(z)"); - - f2 = boost::math::powm1; - plot.clear(); - plot.add(boost::bind(f2, 0.0001, _1), find_end_point(boost::bind(f2, 0.0001, _1), -1, 10, false), 5, "a=0.0001"); - plot.add(boost::bind(f2, 0.001, _1), find_end_point(boost::bind(f2, 0.001, _1), -1, 10, false), 5, "a=0.001"); - plot.add(boost::bind(f2, 0.01, _1), find_end_point(boost::bind(f2, 0.01, _1), -1, 10, false), 5, "a=0.01"); - plot.add(boost::bind(f2, 0.1, _1), find_end_point(boost::bind(f2, 0.1, _1), -1, 10, false), 5, "a=0.1"); - plot.add(boost::bind(f2, 0.75, _1), -5, 5, "a=0.75"); - plot.add(boost::bind(f2, 1.25, _1), -5, 5, "a=1.25"); - plot.plot("powm1", "powm1.svg", "z", "powm1(a, z)"); - - f = boost::math::sinc_pi; - plot.clear(); - plot.add(f, -10, 10, ""); - plot.plot("sinc_pi", "sinc_pi.svg", "z", "sinc_pi(z)"); - - f = boost::math::sinhc_pi; - plot.clear(); - plot.add(f, -5, 5, ""); - plot.plot("sinhc_pi", "sinhc_pi.svg", "z", "sinhc_pi(z)"); - - f = boost::math::acosh; - plot.clear(); - plot.add(f, 1, 10, ""); - plot.plot("acosh", "acosh.svg", "z", "acosh(z)"); - - f = boost::math::asinh; - plot.clear(); - plot.add(f, -10, 10, ""); - plot.plot("asinh", "asinh.svg", "z", "asinh(z)"); - - f = boost::math::atanh; - plot.clear(); - plot.add(f, find_end_point(f, 0.1, -5, true, -1), find_end_point(f, -0.1, 5, true, 1), ""); - plot.plot("atanh", "atanh.svg", "z", "atanh(z)"); - - f2 = boost::math::tgamma_delta_ratio; - plot.clear(); - plot.add(boost::bind(f2, _1, -0.5), 1, 40, "delta = -0.5"); - plot.add(boost::bind(f2, _1, -0.2), 1, 40, "delta = -0.2"); - plot.add(boost::bind(f2, _1, -0.1), 1, 40, "delta = -0.1"); - plot.add(boost::bind(f2, _1, 0.1), 1, 40, "delta = 0.1"); - plot.add(boost::bind(f2, _1, 0.2), 1, 40, "delta = 0.2"); - plot.add(boost::bind(f2, _1, 0.5), 1, 40, "delta = 0.5"); - plot.add(boost::bind(f2, _1, 1.0), 1, 40, "delta = 1.0"); - plot.plot("tgamma_delta_ratio", "tgamma_delta_ratio.svg", "z", "tgamma_delta_ratio(delta, z)"); - - f2 = boost::math::gamma_p; - plot.clear(); - plot.add(boost::bind(f2, 0.5, _1), 0, 20, "a = 0.5"); - plot.add(boost::bind(f2, 1.0, _1), 0, 20, "a = 1.0"); - plot.add(boost::bind(f2, 5.0, _1), 0, 20, "a = 5.0"); - plot.add(boost::bind(f2, 10.0, _1), 0, 20, "a = 10.0"); - plot.plot("gamma_p", "gamma_p.svg", "z", "gamma_p(a, z)"); - - f2 = boost::math::gamma_q; - plot.clear(); - plot.add(boost::bind(f2, 0.5, _1), 0, 20, "a = 0.5"); - plot.add(boost::bind(f2, 1.0, _1), 0, 20, "a = 1.0"); - plot.add(boost::bind(f2, 5.0, _1), 0, 20, "a = 5.0"); - plot.add(boost::bind(f2, 10.0, _1), 0, 20, "a = 10.0"); - plot.plot("gamma_q", "gamma_q.svg", "z", "gamma_q(a, z)"); - - f2 = lbeta; - plot.clear(); - plot.add(boost::bind(f2, 0.5, _1), 0.00001, 5, "a = 0.5"); - plot.add(boost::bind(f2, 1.0, _1), 0.00001, 5, "a = 1.0"); - plot.add(boost::bind(f2, 5.0, _1), 0.00001, 5, "a = 5.0"); - plot.add(boost::bind(f2, 10.0, _1), 0.00001, 5, "a = 10.0"); - plot.plot("beta", "beta.svg", "z", "log(beta(a, z))"); - - f = boost::math::expint; - max_val = f(4); - plot.clear(); - plot.add(f, find_end_point(f, 0.1, -max_val, true), 4, ""); - plot.add(f, -3, find_end_point(f, -0.1, -max_val, false), ""); - plot.plot("Exponential Integral Ei", "expint_i.svg", "z", "expint(z)"); - - f2u = boost::math::expint; - max_val = 1; - plot.clear(); - plot.add(boost::bind(f2u, 1, _1), find_end_point(boost::bind(f2u, 1, _1), 0.1, max_val, false), 2, "n = 1 "); - plot.add(boost::bind(f2u, 2, _1), find_end_point(boost::bind(f2u, 2, _1), 0.1, max_val, false), 2, "n = 2 "); - plot.add(boost::bind(f2u, 3, _1), 0, 2, "n = 3 "); - plot.add(boost::bind(f2u, 4, _1), 0, 2, "n = 4 "); - plot.plot("Exponential Integral En", "expint2.svg", "z", "expint(n, z)"); - - f3 = boost::math::ibeta; - plot.clear(); - plot.add(boost::bind(f3, 9, 1, _1), 0, 1, "a = 9, b = 1"); - plot.add(boost::bind(f3, 7, 2, _1), 0, 1, "a = 7, b = 2"); - plot.add(boost::bind(f3, 5, 5, _1), 0, 1, "a = 5, b = 5"); - plot.add(boost::bind(f3, 2, 7, _1), 0, 1, "a = 2, b = 7"); - plot.add(boost::bind(f3, 1, 9, _1), 0, 1, "a = 1, b = 9"); - plot.plot("ibeta", "ibeta.svg", "z", "ibeta(a, b, z)"); - - f2i = boost::math::legendre_p; - plot.clear(); - plot.add(boost::bind(f2i, 1, _1), -1, 1, "l = 1"); - plot.add(boost::bind(f2i, 2, _1), -1, 1, "l = 2"); - plot.add(boost::bind(f2i, 3, _1), -1, 1, "l = 3"); - plot.add(boost::bind(f2i, 4, _1), -1, 1, "l = 4"); - plot.add(boost::bind(f2i, 5, _1), -1, 1, "l = 5"); - plot.plot("Legendre Polynomials", "legendre_p.svg", "x", "legendre_p(l, x)"); - - f2u = boost::math::legendre_q; - plot.clear(); - plot.add(boost::bind(f2u, 1, _1), -0.95, 0.95, "l = 1"); - plot.add(boost::bind(f2u, 2, _1), -0.95, 0.95, "l = 2"); - plot.add(boost::bind(f2u, 3, _1), -0.95, 0.95, "l = 3"); - plot.add(boost::bind(f2u, 4, _1), -0.95, 0.95, "l = 4"); - plot.add(boost::bind(f2u, 5, _1), -0.95, 0.95, "l = 5"); - plot.plot("Legendre Polynomials of the Second Kind", "legendre_q.svg", "x", "legendre_q(l, x)"); - - f2u = boost::math::laguerre; - plot.clear(); - plot.add(boost::bind(f2u, 0, _1), -5, 10, "n = 0"); - plot.add(boost::bind(f2u, 1, _1), -5, 10, "n = 1"); - plot.add(boost::bind(f2u, 2, _1), - find_end_point(boost::bind(f2u, 2, _1), -2, 20, false), - find_end_point(boost::bind(f2u, 2, _1), 4, 20, true), - "n = 2"); - plot.add(boost::bind(f2u, 3, _1), - find_end_point(boost::bind(f2u, 3, _1), -2, 20, false), - find_end_point(boost::bind(f2u, 3, _1), 1, 20, false, 8), - "n = 3"); - plot.add(boost::bind(f2u, 4, _1), - find_end_point(boost::bind(f2u, 4, _1), -2, 20, false), - find_end_point(boost::bind(f2u, 4, _1), 1, 20, true, 8), - "n = 4"); - plot.add(boost::bind(f2u, 5, _1), - find_end_point(boost::bind(f2u, 5, _1), -2, 20, false), - find_end_point(boost::bind(f2u, 5, _1), 1, 20, true, 8), - "n = 5"); - plot.plot("Laguerre Polynomials", "laguerre.svg", "x", "laguerre(n, x)"); - - f2u = boost::math::hermite; - plot.clear(); - plot.add(boost::bind(f2u, 0, _1), -1.8, 1.8, "n = 0"); - plot.add(boost::bind(f2u, 1, _1), -1.8, 1.8, "n = 1"); - plot.add(boost::bind(f2u, 2, _1), -1.8, 1.8, "n = 2"); - plot.add(boost::bind(f2u, 3, _1), -1.8, 1.8, "n = 3"); - plot.add(boost::bind(f2u, 4, _1), -1.8, 1.8, "n = 4"); - plot.plot("Hermite Polynomials", "hermite.svg", "x", "hermite(n, x)"); - - f2 = boost::math::cyl_bessel_j; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), -20, 20, "v = 0"); - plot.add(boost::bind(f2, 1, _1), -20, 20, "v = 1"); - plot.add(boost::bind(f2, 2, _1), -20, 20, "v = 2"); - plot.add(boost::bind(f2, 3, _1), -20, 20, "v = 3"); - plot.add(boost::bind(f2, 4, _1), -20, 20, "v = 4"); - plot.plot("Bessel J", "cyl_bessel_j.svg", "x", "cyl_bessel_j(v, x)"); - - f2 = boost::math::cyl_neumann; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), find_end_point(boost::bind(f2, 0, _1), 0.1, -5, true), 20, "v = 0"); - plot.add(boost::bind(f2, 1, _1), find_end_point(boost::bind(f2, 1, _1), 0.1, -5, true), 20, "v = 1"); - plot.add(boost::bind(f2, 2, _1), find_end_point(boost::bind(f2, 2, _1), 0.1, -5, true), 20, "v = 2"); - plot.add(boost::bind(f2, 3, _1), find_end_point(boost::bind(f2, 3, _1), 0.1, -5, true), 20, "v = 3"); - plot.add(boost::bind(f2, 4, _1), find_end_point(boost::bind(f2, 4, _1), 0.1, -5, true), 20, "v = 4"); - plot.plot("Bessel Y", "cyl_neumann.svg", "x", "cyl_neumann(v, x)"); - - f2 = boost::math::cyl_bessel_i; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), find_end_point(boost::bind(f2, 0, _1), -0.1, 20, false), find_end_point(boost::bind(f2, 0, _1), 0.1, 20, true), "v = 0"); - plot.add(boost::bind(f2, 2, _1), find_end_point(boost::bind(f2, 2, _1), -0.1, 20, false), find_end_point(boost::bind(f2, 2, _1), 0.1, 20, true), "v = 2"); - plot.add(boost::bind(f2, 5, _1), find_end_point(boost::bind(f2, 5, _1), -0.1, -20, true), find_end_point(boost::bind(f2, 5, _1), 0.1, 20, true), "v = 5"); - plot.add(boost::bind(f2, 7, _1), find_end_point(boost::bind(f2, 7, _1), -0.1, -20, true), find_end_point(boost::bind(f2, 7, _1), 0.1, 20, true), "v = 7"); - plot.add(boost::bind(f2, 10, _1), find_end_point(boost::bind(f2, 10, _1), -0.1, 20, false), find_end_point(boost::bind(f2, 10, _1), 0.1, 20, true), "v = 10"); - plot.plot("Bessel I", "cyl_bessel_i.svg", "x", "cyl_bessel_i(v, x)"); - - f2 = boost::math::cyl_bessel_k; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), find_end_point(boost::bind(f2, 0, _1), 0.1, 10, false), 10, "v = 0"); - plot.add(boost::bind(f2, 2, _1), find_end_point(boost::bind(f2, 2, _1), 0.1, 10, false), 10, "v = 2"); - plot.add(boost::bind(f2, 5, _1), find_end_point(boost::bind(f2, 5, _1), 0.1, 10, false), 10, "v = 5"); - plot.add(boost::bind(f2, 7, _1), find_end_point(boost::bind(f2, 7, _1), 0.1, 10, false), 10, "v = 7"); - plot.add(boost::bind(f2, 10, _1), find_end_point(boost::bind(f2, 10, _1), 0.1, 10, false), 10, "v = 10"); - plot.plot("Bessel K", "cyl_bessel_k.svg", "x", "cyl_bessel_k(v, x)"); - - f2u = boost::math::sph_bessel; - plot.clear(); - plot.add(boost::bind(f2u, 0, _1), 0, 20, "v = 0"); - plot.add(boost::bind(f2u, 2, _1), 0, 20, "v = 2"); - plot.add(boost::bind(f2u, 5, _1), 0, 20, "v = 5"); - plot.add(boost::bind(f2u, 7, _1), 0, 20, "v = 7"); - plot.add(boost::bind(f2u, 10, _1), 0, 20, "v = 10"); - plot.plot("Bessel j", "sph_bessel.svg", "x", "sph_bessel(v, x)"); - - f2u = boost::math::sph_neumann; - plot.clear(); - plot.add(boost::bind(f2u, 0, _1), find_end_point(boost::bind(f2u, 0, _1), 0.1, -5, true), 20, "v = 0"); - plot.add(boost::bind(f2u, 2, _1), find_end_point(boost::bind(f2u, 2, _1), 0.1, -5, true), 20, "v = 2"); - plot.add(boost::bind(f2u, 5, _1), find_end_point(boost::bind(f2u, 5, _1), 0.1, -5, true), 20, "v = 5"); - plot.add(boost::bind(f2u, 7, _1), find_end_point(boost::bind(f2u, 7, _1), 0.1, -5, true), 20, "v = 7"); - plot.add(boost::bind(f2u, 10, _1), find_end_point(boost::bind(f2u, 10, _1), 0.1, -5, true), 20, "v = 10"); - plot.plot("Bessel y", "sph_neumann.svg", "x", "sph_neumann(v, x)"); - - f4 = boost::math::ellint_rj; - plot.clear(); - plot.add(boost::bind(f4, _1, _1, _1, _1), find_end_point(boost::bind(f4, _1, _1, _1, _1), 0.1, 10, false), 4, "RJ"); - f3 = boost::math::ellint_rf; - plot.add(boost::bind(f3, _1, _1, _1), find_end_point(boost::bind(f3, _1, _1, _1), 0.1, 10, false), 4, "RF"); - plot.plot("Elliptic Integrals", "ellint_carlson.svg", "x", ""); - - f2 = boost::math::ellint_1; - plot.clear(); - plot.add(boost::bind(f2, _1, 0.5), -0.9, 0.9, "φ=0.5"); - plot.add(boost::bind(f2, _1, 0.75), -0.9, 0.9, "φ=0.75"); - plot.add(boost::bind(f2, _1, 1.25), -0.9, 0.9, "φ=1.25"); - plot.add(boost::bind(f2, _1, boost::math::constants::pi() / 2), -0.9, 0.9, "φ=π/2"); - plot.plot("Elliptic Of the First Kind", "ellint_1.svg", "k", "ellint_1(k, phi)"); - - f2 = boost::math::ellint_2; - plot.clear(); - plot.add(boost::bind(f2, _1, 0.5), -1, 1, "φ=0.5"); - plot.add(boost::bind(f2, _1, 0.75), -1, 1, "φ=0.75"); - plot.add(boost::bind(f2, _1, 1.25), -1, 1, "φ=1.25"); - plot.add(boost::bind(f2, _1, boost::math::constants::pi() / 2), -1, 1, "φ=π/2"); - plot.plot("Elliptic Of the Second Kind", "ellint_2.svg", "k", "ellint_2(k, phi)"); - - f3 = boost::math::ellint_3; - plot.clear(); - plot.add(boost::bind(f3, _1, 0, 1.25), -1, 1, "n=0 φ=1.25"); - plot.add(boost::bind(f3, _1, 0.5, 1.25), -1, 1, "n=0.5 φ=1.25"); - plot.add(boost::bind(f3, _1, 0.25, boost::math::constants::pi() / 2), - find_end_point( - boost::bind(f3, _1, 0.25, boost::math::constants::pi() / 2), - 0.5, 4, false, -1), - find_end_point( - boost::bind(f3, _1, 0.25, boost::math::constants::pi() / 2), - -0.5, 4, true, 1), "n=0.25 φ=π/2"); - plot.add(boost::bind(f3, _1, 0.75, boost::math::constants::pi() / 2), - find_end_point( - boost::bind(f3, _1, 0.75, boost::math::constants::pi() / 2), - 0.5, 4, false, -1), - find_end_point( - boost::bind(f3, _1, 0.75, boost::math::constants::pi() / 2), - -0.5, 4, true, 1), "n=0.75 φ=π/2"); - plot.plot("Elliptic Of the Third Kind", "ellint_3.svg", "k", "ellint_3(k, n, phi)"); - - f2 = boost::math::jacobi_sn; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), -10, 10, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), -10, 10, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), -10, 10, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), -10, 10, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), -10, 10, "k=1"); - plot.plot("Jacobi Elliptic sn", "jacobi_sn.svg", "k", "jacobi_sn(k, u)"); - - f2 = boost::math::jacobi_cn; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), -10, 10, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), -10, 10, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), -10, 10, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), -10, 10, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), -10, 10, "k=1"); - plot.plot("Jacobi Elliptic cn", "jacobi_cn.svg", "k", "jacobi_cn(k, u)"); - - f2 = boost::math::jacobi_dn; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), -10, 10, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), -10, 10, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), -10, 10, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), -10, 10, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), -10, 10, "k=1"); - plot.plot("Jacobi Elliptic dn", "jacobi_dn.svg", "k", "jacobi_dn(k, u)"); - - f2 = boost::math::jacobi_cd; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), -10, 10, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), -10, 10, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), -10, 10, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), -10, 10, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), -10, 10, "k=1"); - plot.plot("Jacobi Elliptic cd", "jacobi_cd.svg", "k", "jacobi_cd(k, u)"); - - f2 = boost::math::jacobi_cs; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), 0.1, 3, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), 0.1, 3, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), 0.1, 3, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), 0.1, 3, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), 0.1, 3, "k=1"); - plot.plot("Jacobi Elliptic cs", "jacobi_cs.svg", "k", "jacobi_cs(k, u)"); - - f2 = boost::math::jacobi_dc; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), -10, 10, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), -10, 10, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), -10, 10, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), -10, 10, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), -10, 10, "k=1"); - plot.plot("Jacobi Elliptic dc", "jacobi_dc.svg", "k", "jacobi_dc(k, u)"); - - f2 = boost::math::jacobi_ds; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), 0.1, 3, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), 0.1, 3, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), 0.1, 3, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), 0.1, 3, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), 0.1, 3, "k=1"); - plot.plot("Jacobi Elliptic ds", "jacobi_ds.svg", "k", "jacobi_ds(k, u)"); - - f2 = boost::math::jacobi_nc; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), -5, 5, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), -5, 5, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), -5, 5, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), -5, 5, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), -5, 5, "k=1"); - plot.plot("Jacobi Elliptic nc", "jacobi_nc.svg", "k", "jacobi_nc(k, u)"); - - f2 = boost::math::jacobi_ns; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), 0.1, 4, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), 0.1, 4, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), 0.1, 4, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), 0.1, 4, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), 0.1, 4, "k=1"); - plot.plot("Jacobi Elliptic ns", "jacobi_ns.svg", "k", "jacobi_ns(k, u)"); - - f2 = boost::math::jacobi_nd; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), -2, 2, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), -2, 2, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), -2, 2, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), -2, 2, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), -2, 2, "k=1"); - plot.plot("Jacobi Elliptic nd", "jacobi_nd.svg", "k", "jacobi_nd(k, u)"); - - f2 = boost::math::jacobi_sc; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), -5, 5, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), -5, 5, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), -5, 5, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), -5, 5, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), -5, 5, "k=1"); - plot.plot("Jacobi Elliptic sc", "jacobi_sc.svg", "k", "jacobi_sc(k, u)"); - - f2 = boost::math::jacobi_sd; - plot.clear(); - plot.add(boost::bind(f2, 0, _1), -2.5, 2.5, "k=0"); - plot.add(boost::bind(f2, 0.5, _1), -2.5, 2.5, "k=0.5"); - plot.add(boost::bind(f2, 0.75, _1), -2.5, 2.5, "k=0.75"); - plot.add(boost::bind(f2, 0.95, _1), -2.5, 2.5, "k=0.95"); - plot.add(boost::bind(f2, 1, _1), -2.5, 2.5, "k=1"); - plot.plot("Jacobi Elliptic sd", "jacobi_sd.svg", "k", "jacobi_sd(k, u)"); - - f = boost::math::airy_ai; - plot.clear(); - plot.add(f, -20, 20, ""); - plot.plot("Ai", "airy_ai.svg", "z", "airy_ai(z)"); - - f = boost::math::airy_bi; - plot.clear(); - plot.add(f, -20, 3, ""); - plot.plot("Bi", "airy_bi.svg", "z", "airy_bi(z)"); - - f = boost::math::airy_ai_prime; - plot.clear(); - plot.add(f, -20, 20, ""); - plot.plot("Ai'", "airy_aip.svg", "z", "airy_ai_prime(z)"); - - f = boost::math::airy_bi_prime; - plot.clear(); - plot.add(f, -20, 3, ""); - plot.plot("Bi'", "airy_bip.svg", "z", "airy_bi_prime(z)"); - - f = boost::math::trigamma; - max_val = 30; - plot.clear(); - plot.add(f, find_end_point(f, 0.1, max_val, false), 5, ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -1), find_end_point(f, -0.1, max_val, true), ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -2), find_end_point(f, -0.1, max_val, true, -1), ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -3), find_end_point(f, -0.1, max_val, true, -2), ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -4), find_end_point(f, -0.1, max_val, true, -3), ""); - plot.add(f, find_end_point(f, 0.1, max_val, false, -5), find_end_point(f, -0.1, max_val, true, -4), ""); - plot.plot("Trigamma", "trigamma.svg", "x", "trigamma(x)"); - - f2i = boost::math::polygamma; - max_val = -50; - plot.clear(); - plot.add(boost::bind(f2i, 2, _1), find_end_point(boost::bind(f2i, 2, _1), 0.1, max_val, true), 5, ""); - plot.add(boost::bind(f2i, 2, _1), find_end_point(boost::bind(f2i, 2, _1), 0.1, max_val, true, -1), find_end_point(boost::bind(f2i, 2, _1), -0.1, -max_val, true), ""); - plot.add(boost::bind(f2i, 2, _1), find_end_point(boost::bind(f2i, 2, _1), 0.1, max_val, true, -2), find_end_point(boost::bind(f2i, 2, _1), -0.1, -max_val, true, -1), ""); - plot.add(boost::bind(f2i, 2, _1), find_end_point(boost::bind(f2i, 2, _1), 0.1, max_val, true, -3), find_end_point(boost::bind(f2i, 2, _1), -0.1, -max_val, true, -2), ""); - plot.add(boost::bind(f2i, 2, _1), find_end_point(boost::bind(f2i, 2, _1), 0.1, max_val, true, -4), find_end_point(boost::bind(f2i, 2, _1), -0.1, -max_val, true, -3), ""); - plot.add(boost::bind(f2i, 2, _1), find_end_point(boost::bind(f2i, 2, _1), 0.1, max_val, true, -5), find_end_point(boost::bind(f2i, 2, _1), -0.1, -max_val, true, -4), ""); - plot.add(boost::bind(f2i, 2, _1), find_end_point(boost::bind(f2i, 2, _1), 0.1, max_val, true, -6), find_end_point(boost::bind(f2i, 2, _1), -0.1, -max_val, true, -5), ""); - plot.plot("Polygamma", "polygamma2.svg", "x", "polygamma(2, x)"); - - max_val = 800; - plot.clear(); - plot.add(boost::bind(f2i, 3, _1), find_end_point(boost::bind(f2i, 3, _1), 0.1, max_val, false), 5, ""); - plot.add(boost::bind(f2i, 3, _1), find_end_point(boost::bind(f2i, 3, _1), 0.1, max_val, false, -1), find_end_point(boost::bind(f2i, 3, _1), -0.1, max_val, true), ""); - plot.add(boost::bind(f2i, 3, _1), find_end_point(boost::bind(f2i, 3, _1), 0.1, max_val, false, -2), find_end_point(boost::bind(f2i, 3, _1), -0.1, max_val, true, -1), ""); - plot.add(boost::bind(f2i, 3, _1), find_end_point(boost::bind(f2i, 3, _1), 0.1, max_val, false, -3), find_end_point(boost::bind(f2i, 3, _1), -0.1, max_val, true, -2), ""); - plot.add(boost::bind(f2i, 3, _1), find_end_point(boost::bind(f2i, 3, _1), 0.1, max_val, false, -4), find_end_point(boost::bind(f2i, 3, _1), -0.1, max_val, true, -3), ""); - plot.add(boost::bind(f2i, 3, _1), find_end_point(boost::bind(f2i, 3, _1), 0.1, max_val, false, -5), find_end_point(boost::bind(f2i, 3, _1), -0.1, max_val, true, -4), ""); - plot.add(boost::bind(f2i, 3, _1), find_end_point(boost::bind(f2i, 3, _1), 0.1, max_val, false, -6), find_end_point(boost::bind(f2i, 3, _1), -0.1, max_val, true, -5), ""); - plot.plot("Polygamma", "polygamma3.svg", "x", "polygamma(3, x)"); - return 0; -} - diff --git a/boost/libs/math/doc/graphs/sinc_pi.png b/boost/libs/math/doc/graphs/sinc_pi.png deleted file mode 100644 index 65007e46..00000000 Binary files a/boost/libs/math/doc/graphs/sinc_pi.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/sinc_pi.svg b/boost/libs/math/doc/graphs/sinc_pi.svg deleted file mode 100644 index f70f7f95..00000000 --- a/boost/libs/math/doc/graphs/sinc_pi.svg +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 --10 - -0 -0.5 -1 -0 - -sinc_pi(z) - -z - - - - -sinc_pi - - - diff --git a/boost/libs/math/doc/graphs/sinc_pi_and_sinhc_pi_on_r.png b/boost/libs/math/doc/graphs/sinc_pi_and_sinhc_pi_on_r.png deleted file mode 100644 index fd6fae54..00000000 Binary files a/boost/libs/math/doc/graphs/sinc_pi_and_sinhc_pi_on_r.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/sinhc_pi.png b/boost/libs/math/doc/graphs/sinhc_pi.png deleted file mode 100644 index 25a580c2..00000000 Binary files a/boost/libs/math/doc/graphs/sinhc_pi.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/sinhc_pi.svg b/boost/libs/math/doc/graphs/sinhc_pi.svg deleted file mode 100644 index 26fdcf6a..00000000 --- a/boost/libs/math/doc/graphs/sinhc_pi.svg +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -0 --1 --2 --3 --4 --5 - -5 -10 -15 - -sinhc_pi(z) - -z - - - - -sinhc_pi - - - diff --git a/boost/libs/math/doc/graphs/skew_normal_cdf.png b/boost/libs/math/doc/graphs/skew_normal_cdf.png deleted file mode 100644 index 73d28d8c..00000000 Binary files a/boost/libs/math/doc/graphs/skew_normal_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/skew_normal_cdf.svg b/boost/libs/math/doc/graphs/skew_normal_cdf.svg deleted file mode 100644 index ceb9bc86..00000000 --- a/boost/libs/math/doc/graphs/skew_normal_cdf.svg +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -0 --1 --2 --3 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - - - -{0,1,0} -{0,1,1} -{0,1,4} -{0,1,20} -{0,1,-2} -{-2,0.5,-1} - -Skew Normal Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/skew_normal_pdf.png b/boost/libs/math/doc/graphs/skew_normal_pdf.png deleted file mode 100644 index 09256c77..00000000 Binary files a/boost/libs/math/doc/graphs/skew_normal_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/skew_normal_pdf.svg b/boost/libs/math/doc/graphs/skew_normal_pdf.svg deleted file mode 100644 index 71f0056a..00000000 --- a/boost/libs/math/doc/graphs/skew_normal_pdf.svg +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -0 --1 --2 --3 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - - - -{0,1,0} -{0,1,1} -{0,1,4} -{0,1,20} -{0,1,-2} -{-2,0.5,-1} - -Skew Normal Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/sph_bessel.png b/boost/libs/math/doc/graphs/sph_bessel.png deleted file mode 100644 index c4749540..00000000 Binary files a/boost/libs/math/doc/graphs/sph_bessel.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/sph_bessel.svg b/boost/libs/math/doc/graphs/sph_bessel.svg deleted file mode 100644 index f57eac38..00000000 --- a/boost/libs/math/doc/graphs/sph_bessel.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -15 -20 -0 - -0 -0.5 -1 -0 - -sph_bessel(v, x) - -x - - - - - - - - - - - - - - - -v = 0 -v = 2 -v = 5 -v = 7 -v = 10 - -Bessel j - - - diff --git a/boost/libs/math/doc/graphs/sph_neumann.png b/boost/libs/math/doc/graphs/sph_neumann.png deleted file mode 100644 index 8865198e..00000000 Binary files a/boost/libs/math/doc/graphs/sph_neumann.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/sph_neumann.svg b/boost/libs/math/doc/graphs/sph_neumann.svg deleted file mode 100644 index 9180b2a2..00000000 --- a/boost/libs/math/doc/graphs/sph_neumann.svg +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5 -10 -15 -20 - -0 -0 --1 --2 --3 --4 --5 - -sph_neumann(v, x) - -x - - - - - - - - - - - - - - - -v = 0 -v = 2 -v = 5 -v = 7 -v = 10 - -Bessel y - - - diff --git a/boost/libs/math/doc/graphs/sqrt1pm1.png b/boost/libs/math/doc/graphs/sqrt1pm1.png deleted file mode 100644 index 5773f7c8..00000000 Binary files a/boost/libs/math/doc/graphs/sqrt1pm1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/sqrt1pm1.svg b/boost/libs/math/doc/graphs/sqrt1pm1.svg deleted file mode 100644 index 5c23d15d..00000000 --- a/boost/libs/math/doc/graphs/sqrt1pm1.svg +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -0 --1 - -0 -0.5 -1 -0 --0.5 --1 - -sqrt1pm1(z) - -z - - - - -sqrt1pm1 - - - diff --git a/boost/libs/math/doc/graphs/students_t_pdf.png b/boost/libs/math/doc/graphs/students_t_pdf.png deleted file mode 100644 index 6329529a..00000000 Binary files a/boost/libs/math/doc/graphs/students_t_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/students_t_pdf.svg b/boost/libs/math/doc/graphs/students_t_pdf.svg deleted file mode 100644 index fb032aeb..00000000 --- a/boost/libs/math/doc/graphs/students_t_pdf.svg +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -0 --1 --2 --3 --4 - -0 -0.1 -0.2 -0.3 -0.4 -0 - -Probability - -Random Variable - - - - - - - - - - - -v=1 -v=5 -v=30 - -Students T Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/survival.png b/boost/libs/math/doc/graphs/survival.png deleted file mode 100644 index be20ae78..00000000 Binary files a/boost/libs/math/doc/graphs/survival.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/survival_inv.png b/boost/libs/math/doc/graphs/survival_inv.png deleted file mode 100644 index 85f4f941..00000000 Binary files a/boost/libs/math/doc/graphs/survival_inv.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/tgamma.png b/boost/libs/math/doc/graphs/tgamma.png deleted file mode 100644 index e3d95076..00000000 Binary files a/boost/libs/math/doc/graphs/tgamma.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/tgamma.svg b/boost/libs/math/doc/graphs/tgamma.svg deleted file mode 100644 index e9c6e80d..00000000 --- a/boost/libs/math/doc/graphs/tgamma.svg +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -6 -0 --1 --2 --3 - -0 -50 -100 -0 --50 --100 - -tgamma(z) - -z - - - - - - - - -tgamma - - - diff --git a/boost/libs/math/doc/graphs/tgamma_delta_ratio.png b/boost/libs/math/doc/graphs/tgamma_delta_ratio.png deleted file mode 100644 index 4e86a437..00000000 Binary files a/boost/libs/math/doc/graphs/tgamma_delta_ratio.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/tgamma_delta_ratio.svg b/boost/libs/math/doc/graphs/tgamma_delta_ratio.svg deleted file mode 100644 index 6ef44b6f..00000000 --- a/boost/libs/math/doc/graphs/tgamma_delta_ratio.svg +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -10 -20 -30 -40 - -1 -2 -3 -4 -5 -6 - -tgamma_delta_ratio(delta, z) - -z - - - - - - - - - - - - - - - - - - - -delta = -0.5 -delta = -0.2 -delta = -0.1 -delta = 0.1 -delta = 0.2 -delta = 0.5 -delta = 1.0 - -tgamma_delta_ratio - - - diff --git a/boost/libs/math/doc/graphs/triangular_cdf.png b/boost/libs/math/doc/graphs/triangular_cdf.png deleted file mode 100644 index 6eaf9f51..00000000 Binary files a/boost/libs/math/doc/graphs/triangular_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/triangular_cdf.svg b/boost/libs/math/doc/graphs/triangular_cdf.svg deleted file mode 100644 index e27a1084..00000000 --- a/boost/libs/math/doc/graphs/triangular_cdf.svg +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -0 --1 --2 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -{-1,0,1} -{0,1,1} -{0,1,3} -{0,0.5,1} -{-2,0,3} - -Triangular Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/triangular_pdf.png b/boost/libs/math/doc/graphs/triangular_pdf.png deleted file mode 100644 index 745801d6..00000000 Binary files a/boost/libs/math/doc/graphs/triangular_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/triangular_pdf.svg b/boost/libs/math/doc/graphs/triangular_pdf.svg deleted file mode 100644 index 86c00cfc..00000000 --- a/boost/libs/math/doc/graphs/triangular_pdf.svg +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -0 --1 --2 - -0 -0.5 -1 -1.5 -2 -0 - -Probability - -Random Variable - - - - - - - - - - - - - - - -{-1,0,1} -{0,1,1} -{0,1,3} -{0,0.5,1} -{-2,0,3} - -Triangular Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/trigamma.png b/boost/libs/math/doc/graphs/trigamma.png deleted file mode 100644 index 3c00ff60..00000000 Binary files a/boost/libs/math/doc/graphs/trigamma.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/trigamma.svg b/boost/libs/math/doc/graphs/trigamma.svg deleted file mode 100644 index faee953d..00000000 --- a/boost/libs/math/doc/graphs/trigamma.svg +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -4 -5 -0 --1 --2 --3 --4 - -5 -10 -15 -20 -25 -30 - -trigamma(x) - -x - - - - - - - - - -Trigamma - - - diff --git a/boost/libs/math/doc/graphs/trigonometric.png b/boost/libs/math/doc/graphs/trigonometric.png deleted file mode 100644 index 41e0cb3f..00000000 Binary files a/boost/libs/math/doc/graphs/trigonometric.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/uniform_cdf.png b/boost/libs/math/doc/graphs/uniform_cdf.png deleted file mode 100644 index c42429a7..00000000 Binary files a/boost/libs/math/doc/graphs/uniform_cdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/uniform_cdf.svg b/boost/libs/math/doc/graphs/uniform_cdf.svg deleted file mode 100644 index 8a57381d..00000000 --- a/boost/libs/math/doc/graphs/uniform_cdf.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -0 --1 --2 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - -{0,1} -{0,3} -{-2,3} -{-1,1} - -Uniform Distribution CDF - - - diff --git a/boost/libs/math/doc/graphs/uniform_pdf.png b/boost/libs/math/doc/graphs/uniform_pdf.png deleted file mode 100644 index d831518f..00000000 Binary files a/boost/libs/math/doc/graphs/uniform_pdf.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/uniform_pdf.svg b/boost/libs/math/doc/graphs/uniform_pdf.svg deleted file mode 100644 index f391a7dc..00000000 --- a/boost/libs/math/doc/graphs/uniform_pdf.svg +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 -0 --1 --2 - -0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -1 -1.1 -0 - -Probability - -Random Variable - - - - - - - - - - - - - -{0,1} -{0,3} -{-2,3} -{-1,1} - -Uniform Distribution PDF - - - diff --git a/boost/libs/math/doc/graphs/weibull_pdf1.png b/boost/libs/math/doc/graphs/weibull_pdf1.png deleted file mode 100644 index 3add45fb..00000000 Binary files a/boost/libs/math/doc/graphs/weibull_pdf1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/weibull_pdf1.svg b/boost/libs/math/doc/graphs/weibull_pdf1.svg deleted file mode 100644 index cd79afee..00000000 --- a/boost/libs/math/doc/graphs/weibull_pdf1.svg +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -0.5 -1 -1.5 -2 -2.5 -3 - -0 -1 -2 -3 -4 -0 - -Probability - -Random Variable - - - - - - - - - - - - - -shape=0.75 -shape=1 -shape=5 -shape=10 - -Weibull Distribution PDF (scale=1) - - - diff --git a/boost/libs/math/doc/graphs/weibull_pdf2.png b/boost/libs/math/doc/graphs/weibull_pdf2.png deleted file mode 100644 index ab2479ae..00000000 Binary files a/boost/libs/math/doc/graphs/weibull_pdf2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/weibull_pdf2.svg b/boost/libs/math/doc/graphs/weibull_pdf2.svg deleted file mode 100644 index b92b0f04..00000000 --- a/boost/libs/math/doc/graphs/weibull_pdf2.svg +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -0 -1 -2 -3 - -0 -0.5 -1 -1.5 -2 -2.5 -0 - -Probability - -Random Variable - - - - - - - - - - - -scale=0.5 -scale=1 -scale=2 - -Weibull Distribution PDF (shape=3) - - - diff --git a/boost/libs/math/doc/graphs/zeta1.png b/boost/libs/math/doc/graphs/zeta1.png deleted file mode 100644 index a9985eae..00000000 Binary files a/boost/libs/math/doc/graphs/zeta1.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/zeta1.svg b/boost/libs/math/doc/graphs/zeta1.svg deleted file mode 100644 index 6790f4f6..00000000 --- a/boost/libs/math/doc/graphs/zeta1.svg +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -5 -10 -0 --5 --10 --15 --20 - -0 -10 -20 -30 -40 -0 - -zeta(z) - -z - - - - - -Zeta Function Over [-20,10] - - - diff --git a/boost/libs/math/doc/graphs/zeta2.png b/boost/libs/math/doc/graphs/zeta2.png deleted file mode 100644 index 475fbcdc..00000000 Binary files a/boost/libs/math/doc/graphs/zeta2.png and /dev/null differ diff --git a/boost/libs/math/doc/graphs/zeta2.svg b/boost/libs/math/doc/graphs/zeta2.svg deleted file mode 100644 index bc60e1f9..00000000 --- a/boost/libs/math/doc/graphs/zeta2.svg +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -0 -0 --5 --10 - -0 -0 --0.1 --0.2 --0.3 --0.4 - -zeta(z) - -z - - - - -Zeta Function Over [-14,0] - - - diff --git a/boost/libs/math/doc/html/backgrounders.html b/boost/libs/math/doc/html/backgrounders.html deleted file mode 100644 index 9caf2e35..00000000 --- a/boost/libs/math/doc/html/backgrounders.html +++ /dev/null @@ -1,69 +0,0 @@ - - - -Chapter 17. Backgrounders - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/constants.html b/boost/libs/math/doc/html/constants.html deleted file mode 100644 index 9e9a5d05..00000000 --- a/boost/libs/math/doc/html/constants.html +++ /dev/null @@ -1,62 +0,0 @@ - - - -Chapter 4. Mathematical Constants - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/cstdfloat.html b/boost/libs/math/doc/html/cstdfloat.html deleted file mode 100644 index c3b273ba..00000000 --- a/boost/libs/math/doc/html/cstdfloat.html +++ /dev/null @@ -1,70 +0,0 @@ - - - -Chapter 3. Specified-width floating-point typedefs - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/dist.html b/boost/libs/math/doc/html/dist.html deleted file mode 100644 index 5aa334b7..00000000 --- a/boost/libs/math/doc/html/dist.html +++ /dev/null @@ -1,220 +0,0 @@ - - - -Chapter 5. Statistical Distributions and Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Chapter 5. Statistical Distributions and Functions

-
-

Table of Contents

-
-
Statistical Distributions Tutorial
-
-
Overview of Distributions
-
-
Headers and - Namespaces
-
Distributions - are Objects
-
Generic operations - common to all distributions are non-member functions
-
Complements - are supported too - and when to use them
-
Parameters - can be calculated
-
Summary
-
-
Worked Examples
-
-
Distribution - Construction Examples
-
Student's t Distribution - Examples
-
-
Calculating - confidence intervals on the mean with the Students-t distribution
-
Testing - a sample mean for difference from a "true" mean
-
Estimating - how large a sample size would have to become in order to give a significant - Students-t test result with a single sample test
-
Comparing - the means of two samples with the Students-t test
-
Comparing - two paired samples with the Student's t distribution
-
-
Chi Squared Distribution - Examples
-
-
Confidence - Intervals on the Standard Deviation
-
Chi-Square - Test for the Standard Deviation
-
Estimating - the Required Sample Sizes for a Chi-Square Test for the Standard Deviation
-
-
F Distribution Examples
-
Binomial Distribution - Examples
-
-
Binomial - Coin-Flipping Example
-
Binomial - Quiz Example
-
Calculating - Confidence Limits on the Frequency of Occurrence for a Binomial Distribution
-
Estimating - Sample Sizes for a Binomial Distribution.
-
-
Geometric Distribution - Examples
-
Negative Binomial - Distribution Examples
-
-
Calculating - Confidence Limits on the Frequency of Occurrence for the Negative Binomial - Distribution
-
Estimating - Sample Sizes for the Negative Binomial.
-
Negative - Binomial Sales Quota Example.
-
Negative - Binomial Table Printing Example.
-
-
Normal Distribution - Examples
-
Some - Miscellaneous Examples of the Normal (Gaussian) Distribution
-
Inverse - Chi-Squared Distribution Bayes Example
-
Non Central Chi - Squared Example
-
Tables - of the power function of the chi2 test.
-
Error Handling - Example
-
Find Location and - Scale Examples
-
-
Find - Location (Mean) Example
-
Find - Scale (Standard Deviation) Example
-
Find - mean and standard deviation example
-
-
Comparison with - C, R, FORTRAN-style Free Functions
-
Using the Distributions - from Within C#
-
-
Random Variates and Distribution - Parameters
-
Discrete Probability - Distributions
-
-
Statistical Distributions Reference
-
-
Non-Member Properties
-
Distributions
-
-
Arcsine Distribution
-
Bernoulli - Distribution
-
Beta Distribution
-
Binomial - Distribution
-
Cauchy-Lorentz - Distribution
-
Chi Squared - Distribution
-
Exponential Distribution
-
Extreme Value - Distribution
-
F Distribution
-
Gamma (and - Erlang) Distribution
-
Geometric - Distribution
-
Hyperexponential - Distribution
-
Hypergeometric - Distribution
-
Inverse - Chi Squared Distribution
-
Inverse - Gamma Distribution
-
Inverse - Gaussian (or Inverse Normal) Distribution
-
Laplace Distribution
-
Logistic - Distribution
-
Log Normal - Distribution
-
Negative - Binomial Distribution
-
Noncentral - Beta Distribution
-
Noncentral - Chi-Squared Distribution
-
Noncentral F - Distribution
-
Noncentral T - Distribution
-
Normal (Gaussian) - Distribution
-
Pareto Distribution
-
Poisson Distribution
-
Rayleigh Distribution
-
Skew - Normal Distribution
-
Students - t Distribution
-
Triangular - Distribution
-
Uniform Distribution
-
Weibull Distribution
-
-
Distribution Algorithms
-
-
Extras/Future Directions
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/extern_c.html b/boost/libs/math/doc/html/extern_c.html deleted file mode 100644 index 1cb30b59..00000000 --- a/boost/libs/math/doc/html/extern_c.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Chapter 7. TR1 and C99 external "C" Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Chapter 7. TR1 and C99 external "C" Functions

- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/gcd_lcm.html b/boost/libs/math/doc/html/gcd_lcm.html deleted file mode 100644 index f51a07a9..00000000 --- a/boost/libs/math/doc/html/gcd_lcm.html +++ /dev/null @@ -1,61 +0,0 @@ - - - -Chapter 11. Integer Utilities (Greatest Common Divisor and Least Common Multiple) - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/index.html b/boost/libs/math/doc/html/index.html deleted file mode 100644 index d20da99a..00000000 --- a/boost/libs/math/doc/html/index.html +++ /dev/null @@ -1,125 +0,0 @@ - - - -Math Toolkit 2.5.1 - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
Next
-
-
-
-

-Math Toolkit 2.5.1

-
-

-Nikhar Agrawal -

-

-Anton Bikineev -

-

-Paul A. Bristow -

-

-Hubert Holin -

-

-Marco Guazzone -

-

-Christopher Kormanyos -

-

-Bruno Lalande -

-

-John Maddock -

-

-Jeremy W. Murphy -

-

-Johan Råde -

-

-Benjamin Sobotta -

-

-Gautam Sewani -

-

-Thijs van den Berg -

-

-Daryle Walker -

-

-Xiaogang Zhang -

-
-

-This manual is also available in printer - friendly PDF format, and as a CD ISBN 0-9504833-2-X 978-0-9504833-2-0, - Classification 519.2-dc22.

-
-
-

- 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) -

-
-
-
-
- -
- - - -

Last revised: December 22, 2016 at 12:44:18 GMT

-
-
Next
- - diff --git a/boost/libs/math/doc/html/indexes.html b/boost/libs/math/doc/html/indexes.html deleted file mode 100644 index 98df1a80..00000000 --- a/boost/libs/math/doc/html/indexes.html +++ /dev/null @@ -1,55 +0,0 @@ - - - -Chapter 19. Indexes - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Chapter 19. Indexes

- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/indexes/s01.html b/boost/libs/math/doc/html/indexes/s01.html deleted file mode 100644 index 3b3c4e1a..00000000 --- a/boost/libs/math/doc/html/indexes/s01.html +++ /dev/null @@ -1,3015 +0,0 @@ - - - -Function Index - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Function Index

-

2 4 A B C D E F G H I J K L M N O P Q R S T U V X Y Z

-
-
-2 -
-
-
-4 -
-
-
-A -
-
-
-B -
-
-
-C -
-
-
-D -
-
-
-E -
-
-
-F -
-
-
-G -
-
-
-H -
-
-
-I -
-
-
-J -
-
-
-K -
-
-
-L -
-
-
-M -
-
-
-N -
-
-
-O -
-
-
-P -
-
-
-Q -
-
-
-R -
-
-
-S -
-
-
-T -
-
-
-U -
-
-
-V -
-
-
-X -
-
-
-Y -
-
-
-Z -
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/indexes/s02.html b/boost/libs/math/doc/html/indexes/s02.html deleted file mode 100644 index 51bbc716..00000000 --- a/boost/libs/math/doc/html/indexes/s02.html +++ /dev/null @@ -1,271 +0,0 @@ - - - -Class Index - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Class Index

-

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

-
-
-A -
-
-
-B -
-
-
-C -
-
-
-D -
-
-
-E -
-
-
-F -
-
-
-G -
-
-
-H -
-
-
-I -
-
-
-L -
-
-
-M -
-
-
-N -
-
-
-O -
-
-
-P -
-
-
-Q -
-
-
-R -
-
-
-S -
-
-
-T -
-
-
-U -
-
-
-W -
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/indexes/s03.html b/boost/libs/math/doc/html/indexes/s03.html deleted file mode 100644 index 16c5f0ce..00000000 --- a/boost/libs/math/doc/html/indexes/s03.html +++ /dev/null @@ -1,442 +0,0 @@ - - - -Typedef Index - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Typedef Index

-

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

-
-
-A -
-
-
-B -
-
-
-C -
-
-
-D -
-
-
-E -
-
-
-F -
-
-
-G -
-
-
-H -
-
-
-I -
-
-
-L -
-
-
-N -
-
-
-O -
-
-
-P -
-
-
-R -
-
-
-S -
-
-
-T -
-
-
-U -
-
-
-V -
-
-
-W -
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/indexes/s04.html b/boost/libs/math/doc/html/indexes/s04.html deleted file mode 100644 index f4389b26..00000000 --- a/boost/libs/math/doc/html/indexes/s04.html +++ /dev/null @@ -1,352 +0,0 @@ - - - -Macro Index - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Macro Index

-

B F

-
-
-B -
-
-
-F -
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/indexes/s05.html b/boost/libs/math/doc/html/indexes/s05.html deleted file mode 100644 index 2a5f8c41..00000000 --- a/boost/libs/math/doc/html/indexes/s05.html +++ /dev/null @@ -1,7416 +0,0 @@ - - - -Index - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHome -
-
-

-Index

-

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

-
-
-2 -
-
-
-4 -
-
-
-A -
-
-
-B -
-
-
-C -
-
-
-D -
-
-
-E -
-
-
-F -
-
-
-G -
-
-
-H -
-
-
-I -
-
-
-J -
-
-
-K -
-
-
-L -
-
-
-M -
-
-
-N -
-
-
-O -
-
-
-P -
-
-
-Q -
-
-
-R -
-
-
-S -
-
-
-T -
-
-
-U -
-
-
-V -
-
-
-W -
-
-
-X -
-
-
-Y -
-
-
-Z -
-
-
-
- - - -
-
-
-PrevUpHome -
- - diff --git a/boost/libs/math/doc/html/internals.html b/boost/libs/math/doc/html/internals.html deleted file mode 100644 index 7b90aaad..00000000 --- a/boost/libs/math/doc/html/internals.html +++ /dev/null @@ -1,64 +0,0 @@ - - - -Chapter 13. Internal Details: Series, Rationals and Continued Fractions, Testing, and Development Tools - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Chapter 13. Internal Details: Series, Rationals and Continued Fractions, Testing, - and Development Tools

- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/inverse_complex.html b/boost/libs/math/doc/html/inverse_complex.html deleted file mode 100644 index 3368dfff..00000000 --- a/boost/libs/math/doc/html/inverse_complex.html +++ /dev/null @@ -1,65 +0,0 @@ - - - -Chapter 8. Complex Number Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Chapter 8. Complex Number Functions

- -

- The following complex number algorithms are the inverses of trigonometric functions - currently present in the C++ standard. Equivalents to these functions are part - of the C99 standard, and are part of the Technical - Report on C++ Library Extensions. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math.css b/boost/libs/math/doc/html/math.css deleted file mode 100644 index 24c12fa3..00000000 --- a/boost/libs/math/doc/html/math.css +++ /dev/null @@ -1,80 +0,0 @@ -@import url('../../../../doc/src/boostbook.css'); - -/*============================================================================= -Copyright (c) 2004 Joel de Guzman -Copyright (c) 2014 John Maddock -http://spirit.sourceforge.net/ - -Copyright 2013 Niall Douglas additions for colors and alignment. -Copyright 2013 Paul A. Bristow additions for more colors and alignments. - -Distributed under the Boost Software License, Version 1.0. (See accompany- -ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -=============================================================================*/ - -/*============================================================================= -Program listings -=============================================================================*/ - - /* Code on paragraphs */ - p tt.computeroutput - { - font-size: 10pt; - } - - pre.synopsis - { - font-size: 10pt; - margin: 1pc 4% 0pc 4%; - padding: 0.5pc 0.5pc 0.5pc 0.5pc; - } - - .programlisting, - .screen - { - font-size: 10pt; - display: block; - margin: 1pc 4% 0pc 4%; - padding: 0.5pc 0.5pc 0.5pc 0.5pc; - - } - @media screen - { - /* Syntax Highlighting */ - .comment { color: green; } - /* .comment { color: #008000; } */ - } - /* Program listings in tables don't get borders */ - td .programlisting, - td .screen - { - margin: 0pc 0pc 0pc 0pc; - padding: 0pc 0pc 0pc 0pc; - } - -/*============================================================================= -Table of contents -=============================================================================*/ - - div.toc - { - margin: 1pc 4% 0pc 4%; - padding: 0.1pc 1pc 0.1pc 1pc; - font-size: 100%; - line-height: 1.15; - } - - .boost-toc - { - float: right; - padding: 0.5pc; - } - - /* Code on toc */ - .toc .computeroutput { font-size: 120% } - - /* No margin on nested menus */ - - .toc dl dl { margin: 0; } - - diff --git a/boost/libs/math/doc/html/math_toolkit/acknowledgement.html b/boost/libs/math/doc/html/math_toolkit/acknowledgement.html deleted file mode 100644 index efade69d..00000000 --- a/boost/libs/math/doc/html/math_toolkit/acknowledgement.html +++ /dev/null @@ -1,52 +0,0 @@ - - - -Acknowledgements - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The mathematical text has been typeset with Nisus - Writer. Jens Maurer has helped with portability and standard adherence, - and was the Review Manager for this library. More acknowledgements in the History - section. Thank you to all who contributed to the discution about this library. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/acknowledgements.html b/boost/libs/math/doc/html/math_toolkit/acknowledgements.html deleted file mode 100644 index b6a9fca0..00000000 --- a/boost/libs/math/doc/html/math_toolkit/acknowledgements.html +++ /dev/null @@ -1,52 +0,0 @@ - - - -Acknowledgements - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The mathematical text has been typeset with Nisus - Writer. Jens Maurer has helped with portability and standard adherence, - and was the Review Manager for this library. More acknowledgements in the History - section. Thank you to all who contributed to the discussion about this library. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/acos.html b/boost/libs/math/doc/html/math_toolkit/acos.html deleted file mode 100644 index b2b344a8..00000000 --- a/boost/libs/math/doc/html/math_toolkit/acos.html +++ /dev/null @@ -1,66 +0,0 @@ - - - -acos - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-acos -

-
- - Header: -
-
#include <boost/math/complex/acos.hpp>
-
-
- - Synopsis: -
-
template<class T>
-std::complex<T> acos(const std::complex<T>& z);
-
-

- Effects: returns the inverse cosine of the - complex number z. -

-

- Formula: -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/acosh.html b/boost/libs/math/doc/html/math_toolkit/acosh.html deleted file mode 100644 index c055fce0..00000000 --- a/boost/libs/math/doc/html/math_toolkit/acosh.html +++ /dev/null @@ -1,66 +0,0 @@ - - - -acosh - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-acosh -

-
- - Header: -
-
#include <boost/math/complex/acosh.hpp>
-
-
- - Synopsis: -
-
template<class T>
-std::complex<T> acosh(const std::complex<T>& z);
-
-

- Effects: returns the inverse hyperbolic cosine - of the complex number z. -

-

- Formula: -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/airy.html b/boost/libs/math/doc/html/math_toolkit/airy.html deleted file mode 100644 index 6e737e08..00000000 --- a/boost/libs/math/doc/html/math_toolkit/airy.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Airy Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/airy/ai.html b/boost/libs/math/doc/html/math_toolkit/airy/ai.html deleted file mode 100644 index fee12a59..00000000 --- a/boost/libs/math/doc/html/math_toolkit/airy/ai.html +++ /dev/null @@ -1,123 +0,0 @@ - - - -Airy Ai Function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/airy.hpp>
-
-
namespace boost { namespace math {
-
- template <class T>
- calculated-result-type airy_ai(T x);
-
- template <class T, class Policy>
- calculated-result-type airy_ai(T x, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- The function airy_ai calculates - the Airy function Ai which is the first solution to the differential equation: -

-

- -

-

- See Weisstein, Eric W. "Airy Functions." From MathWorld--A Wolfram - Web Resource. http://mathworld.wolfram.com/AiryFunctions.html; -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The following graph illustrates how this function changes as x - changes: for negative x the function is cyclic, while - for positive x the value tends to zero: -

-

- -

-
- - Accuracy -
-

- This function is implemented entirely in terms of the Bessel functions cyl_bessel_j and cyl_bessel_k - refer to those - functions for detailed accuracy information. -

-

- In general though, the relative error is low (less than 100 ε) for x - > 0 while only the absolute error is low for x < - 0. -

-
- - Testing -
-

- Since this function is implemented in terms of other special functions, there - are only a few basic sanity checks, using test values from Wolfram - Airy Functions. -

-
- - Implementation -
-

- This function is implemented in terms of the Bessel functions using the relations: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/airy/aip.html b/boost/libs/math/doc/html/math_toolkit/airy/aip.html deleted file mode 100644 index dd79e165..00000000 --- a/boost/libs/math/doc/html/math_toolkit/airy/aip.html +++ /dev/null @@ -1,119 +0,0 @@ - - - -Airy Ai' Function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/airy.hpp>
-
-
namespace boost { namespace math {
-
- template <class T>
- calculated-result-type airy_ai_prime(T x);
-
- template <class T, class Policy>
- calculated-result-type airy_ai_prime(T x, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- The function airy_ai_prime calculates - the Airy function Ai' which is the derivative of the first solution to the - differential equation: -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The following graph illustrates how this function changes as x - changes: for negative x the function is cyclic, while - for positive x the value tends to zero: -

-

- -

-
- - Accuracy -
-

- This function is implemented entirely in terms of the Bessel functions cyl_bessel_j and cyl_bessel_k - refer to those - functions for detailed accuracy information. -

-

- In general though, the relative error is low (less than 100 ε) for x - > 0 while only the absolute error is low for x < - 0. -

-
- - Testing -
-

- Since this function is implemented in terms of other special functions, there - are only a few basic sanity checks, using test values from functions.wolfram.com. -

-
- - Implementation -
-

- This function is implemented in terms of the Bessel functions using the relations: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/airy/airy_root.html b/boost/libs/math/doc/html/math_toolkit/airy/airy_root.html deleted file mode 100644 index 4dcae3f6..00000000 --- a/boost/libs/math/doc/html/math_toolkit/airy/airy_root.html +++ /dev/null @@ -1,475 +0,0 @@ - - - -Finding Zeros of Airy Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-

- #include <boost/math/special_functions/airy.hpp> -

-

- Functions for obtaining both a single zero or root of the Airy functions, - and placing multiple zeros into a container like std::vector - by providing an output iterator. -

-

- The signature of the single value functions are: -

-
template <class T>
-T airy_ai_zero(
-         int m);         // 1-based index of zero.
-
-template <class T>
-T airy_bi_zero(
-         int m);         // 1-based index of zero.
-
-

- and for multiple zeros: -

-
template <class T, class OutputIterator>
-OutputIterator airy_ai_zero(
-                     int start_index,           // 1-based index of first zero.
-                     unsigned number_of_zeros,  // How many zeros to generate.
-                     OutputIterator out_it);    // Destination for zeros.
-
-template <class T, class OutputIterator>
-OutputIterator airy_bi_zero(
-                     int start_index,           // 1-based index of zero.
-                     unsigned number_of_zeros,  // How many zeros to generate
-                     OutputIterator out_it);    // Destination for zeros.
-
-

- There are also versions which allow control of the Policies - for error handling and precision. -

-
 template <class T>
- T airy_ai_zero(
-          int m,          // 1-based index of zero.
-          const Policy&); // Policy to use.
-
- template <class T>
- T airy_bi_zero(
-          int m,          // 1-based index of zero.
-          const Policy&); // Policy to use.
-
-
-template <class T, class OutputIterator>
-OutputIterator airy_ai_zero(
-                     int start_index,           // 1-based index of first zero.
-                     unsigned number_of_zeros,  // How many zeros to generate.
-                     OutputIterator out_it,     // Destination for zeros.
-                     const Policy& pol);        // Policy to use.
-
-template <class T, class OutputIterator>
-OutputIterator airy_bi_zero(
-                     int start_index,           // 1-based index of zero.
-                     unsigned number_of_zeros,  // How many zeros to generate.
-                     OutputIterator out_it,     // Destination for zeros.
-                     const Policy& pol);        // Policy to use.
-
-
- - Description -
-

- The Airy Ai and Bi functions have an infinite number of zeros on the negative - real axis. The real zeros on the negative real axis can be found by solving - for the roots of -

-

-   Ai(xm) = 0 -

-

-   Bi(ym) = 0 -

-

- Here, xm represents the mth root - of the Airy Ai function, and ym represents the mth - root of the Airy Bi function. -

-

- The zeros or roots (values of x - where the function crosses the horizontal y - = 0 - axis) of the Airy Ai and Bi functions are computed by two functions, airy_ai_zero and airy_bi_zero. -

-

- In each case the index or rank of the zero returned is 1-based, which is - to say: -

-
airy_ai_zero(1);
-
-

- returns the first zero of Ai. -

-

- Passing an start_index <= - 0 results in a domain_error - being raised. -

-

- The first few zeros returned by these functions have approximate values as - follows: -

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- m -

-
-

- Ai -

-
-

- Bi -

-
-

- 1 -

-
-

- -2.33811... -

-
-

- -1.17371... -

-
-

- 2 -

-
-

- -4.08795... -

-
-

- -3.27109... -

-
-

- 3 -

-
-

- -5.52056... -

-
-

- -4.83074... -

-
-

- 4 -

-
-

- -6.78671... -

-
-

- -6.16985... -

-
-

- 5 -

-
-

- -7.94413... -

-
-

- -7.37676... -

-
-

- 6 -

-
-

- -9.02265... -

-
-

- -8.49195... -

-
-

- -

-
- - Examples - of finding Airy Zeros -
-

- This example demonstrates calculating zeros of the Airy functions. It also - shows how Boost.Math and Boost.Multiprecision can be combined to provide - a many decimal digit precision. For 50 decimal digit precision we need to - include -

-
#include <boost/multiprecision/cpp_dec_float.hpp>
-
-

- and a typedef for float_type may be convenient (allowing - a quick switch to re-compute at built-in double - or other precision) -

-
typedef boost::multiprecision::cpp_dec_float_50 float_type;
-
-

- To use the functions for finding zeros of the functions we need -

-
#include <boost/math/special_functions/airy.hpp>
-
-

- This example shows obtaining both a single zero of the Airy functions, and - then placing multiple zeros into a container like std::vector - by providing an iterator. The signature of the single-value Airy Ai function - is: -

-
template <class T>
-T airy_ai_zero(unsigned m); // 1-based index of the zero.
-
-

- The signature of multiple zeros Airy Ai function is: -

-
template <class T, class OutputIterator>
-OutputIterator airy_ai_zero(
-                         unsigned start_index, // 1-based index of the zero.
-                         unsigned number_of_zeros, // How many zeros to generate.
-                         OutputIterator out_it); // Destination for zeros.
-
-

- There are also versions which allows control of the Policies - for error handling and precision. -

-
template <class T, class OutputIterator, class Policy>
-OutputIterator airy_ai_zero(
-                         unsigned start_index, // 1-based index of the zero.
-                         unsigned number_of_zeros, // How many zeros to generate.
-                         OutputIterator out_it, // Destination for zeros.
-                         const Policy& pol);  // Policy to use.
-
-
- - - - - -
[Tip]Tip

- It is always wise to place code using Boost.Math inside try'n'catch blocks; - this will ensure that helpful error messages are shown when exceptional - conditions arise. -

-

- First, evaluate a single Airy zero. -

-

- The precision is controlled by the template parameter T, - so this example has double precision, - at least 15 but up to 17 decimal digits (for the common 64-bit double). -

-
double aiz1 = boost::math::airy_ai_zero<double>(1);
-std::cout << "boost::math::airy_ai_zero<double>(1) = " << aiz1 << std::endl;
-double aiz2 = boost::math::airy_ai_zero<double>(2);
-std::cout << "boost::math::airy_ai_zero<double>(2) = " << aiz2 << std::endl;
-double biz3 = boost::math::airy_bi_zero<double>(3);
-std::cout << "boost::math::airy_bi_zero<double>(3) = " << biz3 << std::endl;
-
-

- Other versions of airy_ai_zero - and airy_bi_zero allow calculation - of multiple zeros with one call, placing the results in a container, often - std::vector. For example, generate and display - the first five double roots - Wolfram - Airy Functions Zeros. -

-
unsigned int n_roots = 5U;
-std::vector<double> roots;
-boost::math::airy_ai_zero<double>(1U, n_roots, std::back_inserter(roots));
-std::cout << "airy_ai_zeros:" << std::endl;
-std::copy(roots.begin(),
-          roots.end(),
-          std::ostream_iterator<double>(std::cout, "\n"));
-
-

- The first few real roots of Ai(x) are approximately -2.33811, -4.08795, -5.52056, - -6.7867144, -7.94413, -9.02265 ... -

-

- Or we can use Boost.Multiprecision to generate 50 decimal digit roots. -

-

- We set the precision of the output stream, and show trailing zeros to display - a fixed 50 decimal digits. -

-
std::cout.precision(std::numeric_limits<float_type>::digits10); // float_type has 50 decimal digits.
-std::cout << std::showpoint << std::endl; // Show trailing zeros too.
-
-unsigned int m = 1U;
-float_type r = boost::math::airy_ai_zero<float_type>(1U); // 1st root.
-std::cout << "boost::math::airy_bi_zero<float_type>(" << m << ")  = " << r << std::endl;
-m = 2;
-r = boost::math::airy_ai_zero<float_type>(2U); // 2nd root.
-std::cout << "boost::math::airy_bi_zero<float_type>(" << m << ")  = " << r << std::endl;
-m = 7U;
-r = boost::math::airy_bi_zero<float_type>(7U); // 7th root.
-std::cout << "boost::math::airy_bi_zero<float_type>(" << m << ")  = " << r << std::endl;
-
-std::vector<float_type> zeros;
-boost::math::airy_ai_zero<float_type>(1U, 3, std::back_inserter(zeros));
-std::cout << "airy_ai_zeros:" << std::endl;
-// Print the roots to the output stream.
-std::copy(zeros.begin(), zeros.end(),
-          std::ostream_iterator<float_type>(std::cout, "\n"));
-
-

- Produces the program output: -

-
boost::math::airy_ai_zero<double>(1) = -2.33811
-boost::math::airy_ai_zero<double>(2) = -4.08795
-boost::math::airy_bi_zero<double>(3) = -4.83074
-airy_ai_zeros:
--2.33811
--4.08795
--5.52056
--6.78671
--7.94413
-
-boost::math::airy_bi_zero<float_type>(1)  = -2.3381074104597670384891972524467354406385401456711
-boost::math::airy_bi_zero<float_type>(2)  = -4.0879494441309706166369887014573910602247646991085
-boost::math::airy_bi_zero<float_type>(7)  = -9.5381943793462388866329885451560196208390720763825
-airy_ai_zeros:
--2.3381074104597670384891972524467354406385401456711
--4.0879494441309706166369887014573910602247646991085
--5.5205598280955510591298555129312935737972142806175
-
-

- The full code (and output) for this example is at airy_zeros_example.cpp, -

-

- - Implementation -

-

- Given the following function (A&S 10.4.105): -

-

- -

-

- Then an initial estimate for the nth zero an of Ai is given by (A&S 10.4.94): -

-

- -

-

- and an initial estimate for the nth zero bn of Bi is given by (A&S 10.4.98): -

-

- -

-

- Thereafter the roots are refined using Newton iteration. -

-

- - Testing -

-

- The precision of evaluation of zeros was tested at 50 decimal digits using - cpp_dec_float_50 and found - identical with spot values computed by Wolfram - Alpha. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/airy/bi.html b/boost/libs/math/doc/html/math_toolkit/airy/bi.html deleted file mode 100644 index 6d619db3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/airy/bi.html +++ /dev/null @@ -1,118 +0,0 @@ - - - -Airy Bi Function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/airy.hpp>
-
-
namespace boost { namespace math {
-
- template <class T>
- calculated-result-type airy_bi(T x);
-
- template <class T, class Policy>
- calculated-result-type airy_bi(T x, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- The function airy_bi calculates - the Airy function Bi which is the second solution to the differential equation: -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The following graph illustrates how this function changes as x - changes: for negative x the function is cyclic, while - for positive x the value tends to infinity: -

-

- -

-
- - Accuracy -
-

- This function is implemented entirely in terms of the Bessel functions cyl_bessel_i and cyl_bessel_j - - refer to those functions for detailed accuracy information. -

-

- In general though, the relative error is low (less than 100 ε) for x - > 0 while only the absolute error is low for x < - 0. -

-
- - Testing -
-

- Since this function is implemented in terms of other special functions, there - are only a few basic sanity checks, using test values from functions.wolfram.com. -

-
- - Implementation -
-

- This function is implemented in terms of the Bessel functions using the relations: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/airy/bip.html b/boost/libs/math/doc/html/math_toolkit/airy/bip.html deleted file mode 100644 index d4eef9a9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/airy/bip.html +++ /dev/null @@ -1,119 +0,0 @@ - - - -Airy Bi' Function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/airy.hpp>
-
-
namespace boost { namespace math {
-
- template <class T>
- calculated-result-type airy_bi_prime(T x);
-
- template <class T, class Policy>
- calculated-result-type airy_bi_prime(T x, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- The function airy_bi_prime calculates - the Airy function Bi' which is the derivative of the second solution to the - differential equation: -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The following graph illustrates how this function changes as x - changes: for negative x the function is cyclic, while - for positive x the value tends to infinity: -

-

- -

-
- - Accuracy -
-

- This function is implemented entirely in terms of the Bessel functions cyl_bessel_i and cyl_bessel_j - - refer to those functions for detailed accuracy information. -

-

- In general though, the relative error is low (less than 100 ε) for x - > 0 while only the absolute error is low for x < - 0. -

-
- - Testing -
-

- Since this function is implemented in terms of other special functions, there - are only a few basic sanity checks, using test values from functions.wolfram.com. -

-
- - Implementation -
-

- This function is implemented in terms of the Bessel functions using the relations: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/archetypes.html b/boost/libs/math/doc/html/math_toolkit/archetypes.html deleted file mode 100644 index ce16b1b3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/archetypes.html +++ /dev/null @@ -1,197 +0,0 @@ - - - -Conceptual Archetypes for Reals and Distributions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There are a few concept archetypes available: -

-
    -
  • - Real concept for floating-point types. -
  • -
  • - Distribution concept for statistical distributions. -
  • -
-
- - Real - concept -
-

- std_real_concept is an archetype - for theReal types, including the built-in float, double, long double. -

-
#include <boost/concepts/std_real_concept.hpp>
-
namespace boost{
-namespace math{
-namespace concepts
-{
-  class std_real_concept;
-}
-}} // namespaces
-
-

- The main purpose in providing this type is to verify that standard library - functions are found via a using declaration - bringing those functions into - the current scope - and not just because they happen to be in global scope. -

-

- In order to ensure that a call to say pow - can be found either via argument dependent lookup, or failing that then in - the std namespace: all calls to standard library functions are unqualified, - with the std:: versions found via a using - declaration to make them visible in the current scope. Unfortunately it's all - to easy to forget the using declaration, - and call the double version of the function that happens to be in the global - scope by mistake. -

-

- For example if the code calls ::pow rather than std::pow, the code will cleanly - compile, but truncation of long doubles to double will cause a significant - loss of precision. In contrast a template instantiated with std_real_concept - will only compile if the all the standard - library functions used have been brought into the current scope with a using - declaration. -

-

- - Testing - the real concept -

-

- There is a test program libs/math/test/std_real_concept_check.cpp - that instantiates every template in this library with type std_real_concept - to verify its usage of standard library functions. -

-
#include <boost/math/concepts/real_concept.hpp>
-
namespace boost{
-namespace math{
-namespace concepts{
-
-class real_concept;
-
-}}} // namespaces
-
-

- real_concept is an archetype - for user defined real types, - it declares its standard library functions in its own namespace: these will - only be found if they are called unqualified allowing argument dependent lookup - to locate them. In addition this type is useable at runtime: this allows code - that would not otherwise be exercised by the built-in floating point types - to be tested. There is no std::numeric_limits<> support for this type, - since numeric_limits is not a conceptual requirement for RealTypes. -

-

- NTL RR is an example of a type meeting the requirements that this type models, - but note that use of a thin wrapper class is required: refer to "Using - With NTL - a High-Precision Floating-Point Library". -

-

- There is no specific test case for type real_concept, - instead, since this type is usable at runtime, each individual test case as - well as testing float, double and long - double, also tests real_concept. -

-

- - Distribution - Concept -

-

- Distribution Concept models statistical distributions. -

-
#include <boost/math/concepts/distribution.hpp>
-
namespace boost{
-namespace math{
-namespace concepts
-{
-  template <class RealType>
-  class distribution_archetype;
-
-  template <class Distribution>
-  struct DistributionConcept;
-
-}}} // namespaces
-
-

- The class template distribution_archetype - is a model of the Distribution concept. -

-

- The class template DistributionConcept - is a concept checking - class for distribution types. -

-

- - Testing - the distribution concept -

-

- The test program distribution_concept_check.cpp - is responsible for using DistributionConcept - to verify that all the distributions in this library conform to the Distribution - concept. -

-

- The class template DistributionConcept - verifies the existence (but not proper function) of the non-member accessors - required by the Distribution concept. - These are checked by calls like -

-

- v = pdf(dist, x); // (Result v is ignored). -

-

- And in addition, those that accept two arguments do the right thing when the - arguments are of different types (the result type is always the same as the - distribution's value_type). (This is implemented by some additional forwarding-functions - in derived_accessors.hpp, so that there is no need for any code changes. Likewise - boilerplate versions of the hazard/chf/coefficient_of_variation functions are - implemented in there too.) -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/asin.html b/boost/libs/math/doc/html/math_toolkit/asin.html deleted file mode 100644 index 2dda951b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/asin.html +++ /dev/null @@ -1,66 +0,0 @@ - - - -asin - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-asin -

-
- - Header: -
-
#include <boost/math/complex/asin.hpp>
-
-
- - Synopsis: -
-
template<class T>
-std::complex<T> asin(const std::complex<T>& z);
-
-

- Effects: returns the inverse sine of the - complex number z. -

-

- Formula: -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/asinh.html b/boost/libs/math/doc/html/math_toolkit/asinh.html deleted file mode 100644 index dba59a7a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/asinh.html +++ /dev/null @@ -1,66 +0,0 @@ - - - -asinh - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-asinh -

-
- - Header: -
-
#include <boost/math/complex/asinh.hpp>
-
-
- - Synopsis: -
-
template<class T>
-std::complex<T> asinh(const std::complex<T>& z);
-
-

- Effects: returns the inverse hyperbolic sine - of the complex number z. -

-

- Formula: -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/atan.html b/boost/libs/math/doc/html/math_toolkit/atan.html deleted file mode 100644 index b49ea86f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/atan.html +++ /dev/null @@ -1,66 +0,0 @@ - - - -atan - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-atan -

-
- - Header: -
-
#include <boost/math/complex/atan.hpp>
-
-
- - Synopsis: -
-
template<class T>
-std::complex<T> atan(const std::complex<T>& z);
-
-

- Effects: returns the inverse tangent of the - complex number z. -

-

- Formula: -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/atanh.html b/boost/libs/math/doc/html/math_toolkit/atanh.html deleted file mode 100644 index 4eb8c337..00000000 --- a/boost/libs/math/doc/html/math_toolkit/atanh.html +++ /dev/null @@ -1,66 +0,0 @@ - - - -atanh - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-atanh -

-
- - Header: -
-
#include <boost/math/complex/atanh.hpp>
-
-
- - Synopsis: -
-
template<class T>
-std::complex<T> atanh(const std::complex<T>& z);
-
-

- Effects: returns the inverse hyperbolic tangent - of the complex number z. -

-

- Formula: -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/bessel.html b/boost/libs/math/doc/html/math_toolkit/bessel.html deleted file mode 100644 index 06d3a1a3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/bessel.html +++ /dev/null @@ -1,59 +0,0 @@ - - - -Bessel Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/bessel/bessel_derivatives.html b/boost/libs/math/doc/html/math_toolkit/bessel/bessel_derivatives.html deleted file mode 100644 index b557e234..00000000 --- a/boost/libs/math/doc/html/math_toolkit/bessel/bessel_derivatives.html +++ /dev/null @@ -1,1452 +0,0 @@ - - - -Derivatives of the Bessel Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-

- #include <boost/math/special_functions/bessel_prime.hpp> -

-
template <class T1, class T2>
-calculated-result-type cyl_bessel_j_prime(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type cyl_bessel_j_prime(T1 v, T2 x, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type cyl_neumann_prime(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type cyl_neumann_prime(T1 v, T2 x, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type cyl_bessel_i_prime(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type cyl_bessel_i_prime(T1 v, T2 x, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type cyl_bessel_k_prime(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type cyl_bessel_k_prime(T1 v, T2 x, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type sph_bessel_prime(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type sph_bessel_prime(T1 v, T2 x, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type sph_neumann_prime(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type sph_neumann_prime(T1 v, T2 x, const Policy&);
-
-
- - Description -
-

- These functions return the first derivative with respect to x - of the corresponding Bessel function. -

-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types. - The functions are also optimised for the relatively common case that T1 is - an integer. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The functions return the result of domain_error - whenever the result is undefined or complex. -

-
- - Testing -
-

- There are two sets of test values: spot values calculated using wolframalpha.com, - and a much larger set of tests computed using a relation to the underlying - Bessel functions that the implementation does not use. -

-
- - Accuracy -
-

- The accuracy of these functions is broadly similar to the underlying Bessel - functions. -

-
-

Table 6.50. Error rates for cyl_bessel_i_prime (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel I'0: Mathworld Data (Integer Version) -

-
-

- Max = 0.885ε (Mean = 0.567ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 7.83ε (Mean = 2.84ε) -

-
-

- Max = 6.52ε (Mean = 2.26ε) -

-
-

- Bessel I'1: Mathworld Data (Integer Version) -

-
-

- Max = 1.61ε (Mean = 0.786ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.3ε (Mean = 1.28ε) -

-
-

- Max = 2.3ε (Mean = 1.29ε) -

-
-

- Bessel I'n: Mathworld Data (Integer Version) -

-
-

- Max = 3.61ε (Mean = 1.22ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.31ε (Mean = 1.41ε) -

-
-

- Max = 701ε (Mean = 212ε) -

-
-
-
-

Table 6.51. Error rates for cyl_bessel_i_prime

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel I'0: Mathworld Data -

-
-

- Max = 0.885ε (Mean = 0.567ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 7.83ε (Mean = 2.84ε) -

-
-

- Max = 6.52ε (Mean = 2.26ε) -

-
-

- Bessel I'1: Mathworld Data -

-
-

- Max = 1.61ε (Mean = 0.786ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.3ε (Mean = 1.28ε) -

-
-

- Max = 2.3ε (Mean = 1.29ε) -

-
-

- Bessel I'n: Mathworld Data -

-
-

- Max = 3.61ε (Mean = 1.22ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.31ε (Mean = 1.41ε) -

-
-

- Max = 701ε (Mean = 212ε) -

-
-

- Bessel I'v: Mathworld Data -

-
-

- Max = 3.76e+003ε (Mean = 1.19e+003ε) -

-
-

- Max = 1.62ε (Mean = 0.512ε) -

-
-

- Max = 2.89e+03ε (Mean = 914ε) -

-
-

- Max = 2.89e+03ε (Mean = 914ε) -

-
-

- Bessel I'n: Random Data -

-
-

- Max = 9.85ε (Mean = 1.83ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 6.79ε (Mean = 1.13ε) -

-
-

- Max = 195ε (Mean = 37.1ε) -

-
-

- Bessel I'v: Random Data -

-
-

- Max = 14ε (Mean = 2.46ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 14.1ε (Mean = 2.93ε) -

-
-

- Max = 336ε (Mean = 68.5ε) -

-
-

- Bessel I'v: Mathworld Data (large values) -

-
-

- Max = 59.5ε (Mean = 26.8ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 42.6ε (Mean = 20.2ε) -

-
-

- Max = 43.9ε (Mean = 20.7ε) -

-
-
-
-

Table 6.52. Error rates for cyl_bessel_j_prime (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel J0': Mathworld Data (Integer Version) -

-
-

- Max = 6.62ε (Mean = 2.55ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 18.9ε (Mean = 6.81ε) -

-
-

- Max = 18.9ε (Mean = 6.72ε) -

-
-

- Bessel J0': Mathworld Data (Tricky cases) (Integer Version) -

-
-

- Max = 3.67ε (Mean = 1.74ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 8.08ε (Mean = 4.57ε) -

-
-

- Max = 7.44ε (Mean = 3.31ε) -

-
-

- Bessel J1': Mathworld Data (Integer Version) -

-
-

- Max = 0.999ε (Mean = 0.627ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 7.9ε (Mean = 3.37ε) -

-
-

- Max = 7.9ε (Mean = 3.37ε) -

-
-

- Bessel J1': Mathworld Data (tricky cases) (Integer Version) -

-
-

- Max = 288ε (Mean = 129ε) -

-
-

- Max = 287ε (Mean = 129ε) -

-
-

- Max = 5.88e+05ε (Mean = 2.63e+05ε) -

-
-

- Max = 5.88e+05ε (Mean = 2.63e+05ε) -

-
-

- Bessel JN': Mathworld Data (Integer Version) -

-
-

- Max = 14ε (Mean = 6.13ε) -

-
-

- Max = 0.527ε (Mean = 0.128ε) -

-
-

- Max = 1.29e+03ε (Mean = 312ε) -

-
-

- Max = 1.29e+03ε (Mean = 355ε) -

-
-
-
-

Table 6.53. Error rates for cyl_bessel_j_prime

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel J0': Mathworld Data -

-
-

- Max = 6.62ε (Mean = 2.55ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 18.9ε (Mean = 6.81ε) -

-
-

- Max = 18.9ε (Mean = 6.72ε) -

-
-

- Bessel J0': Mathworld Data (Tricky cases) -

-
-

- Max = 3.67ε (Mean = 1.74ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 8.08ε (Mean = 4.57ε) -

-
-

- Max = 7.44ε (Mean = 3.31ε) -

-
-

- Bessel J1': Mathworld Data -

-
-

- Max = 0.999ε (Mean = 0.627ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 7.9ε (Mean = 3.37ε) -

-
-

- Max = 7.9ε (Mean = 3.37ε) -

-
-

- Bessel J1': Mathworld Data (tricky cases) -

-
-

- Max = 288ε (Mean = 129ε) -

-
-

- Max = 287ε (Mean = 129ε) -

-
-

- Max = 5.88e+05ε (Mean = 2.63e+05ε) -

-
-

- Max = 5.88e+05ε (Mean = 2.63e+05ε) -

-
-

- Bessel JN': Mathworld Data -

-
-

- Max = 14ε (Mean = 6.13ε) -

-
-

- Max = 0.527ε (Mean = 0.128ε) -

-
-

- Max = 1.29e+03ε (Mean = 312ε) -

-
-

- Max = 1.29e+03ε (Mean = 355ε) -

-
-

- Bessel J': Mathworld Data -

-
-

- Max = 23.7ε (Mean = 8.01ε) -

-
-

- Max = 21.5ε (Mean = 4.7ε) -

-
-

- Max = 42.5ε (Mean = 9.31ε) -

-
-

- Max = 42.5ε (Mean = 9.32ε) -

-
-

- Bessel J': Mathworld Data (large values) -

-
-

- Max = 2.9ε (Mean = 1.61ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 989ε (Mean = 495ε) -

-
-

- Max = 989ε (Mean = 495ε) -

-
-

- Bessel JN': Random Data -

-
-

- Max = 6.34ε (Mean = 0.997ε) -

-
-

- Max = 0.593ε (Mean = 0.0396ε) -

-
-

- Max = 17.3ε (Mean = 2.47ε) -

-
-

- Max = 79.4ε (Mean = 16.2ε) -

-
-

- Bessel J': Random Data -

-
-

- Max = 176ε (Mean = 9.76ε) -

-
-

- Max = 0.885ε (Mean = 0.0457ε) -

-
-

- Max = 139ε (Mean = 6.47ε) -

-
-

- Max = 279ε (Mean = 27.2ε) -

-
-

- Bessel J': Random Data (Tricky large values) -

-
-

- Max = 379ε (Mean = 45.4ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 474ε (Mean = 62.2ε) -

-
-

- Max = 474ε (Mean = 64.5ε) -

-
-
-
-

Table 6.54. Error rates for cyl_bessel_k_prime (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel K'0: Mathworld Data (Integer Version) -

-
-

- Max = 1ε (Mean = 0.573ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Bessel K'1: Mathworld Data (Integer Version) -

-
-

- Max = 1.09ε (Mean = 0.607ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.96ε (Mean = 1ε) -

-
-

- Max = 1.96ε (Mean = 1.04ε) -

-
-

- Bessel K'n: Mathworld Data (Integer Version) -

-
-

- Max = 4.17ε (Mean = 1.74ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 4.47ε (Mean = 2.05ε) -

-
-

- Max = 4.47ε (Mean = 1.93ε) -

-
-
-
-

Table 6.55. Error rates for cyl_bessel_k_prime

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel K'0: Mathworld Data -

-
-

- Max = 1ε (Mean = 0.573ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Bessel K'1: Mathworld Data -

-
-

- Max = 1.09ε (Mean = 0.607ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.96ε (Mean = 1ε) -

-
-

- Max = 1.96ε (Mean = 1.04ε) -

-
-

- Bessel K'n: Mathworld Data -

-
-

- Max = 4.17ε (Mean = 1.74ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 4.47ε (Mean = 2.05ε) -

-
-

- Max = 4.47ε (Mean = 1.93ε) -

-
-

- Bessel K'v: Mathworld Data -

-
-

- Max = 3.94ε (Mean = 1.43ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 3.94ε (Mean = 2.49ε) -

-
-

- Max = 3.94ε (Mean = 2.35ε) -

-
-

- Bessel K'v: Mathworld Data (large values) -

-
-

- Max = 18.6ε (Mean = 12.1ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 59.2ε (Mean = 42.9ε) -

-
-

- Max = 59.8ε (Mean = 43.4ε) -

-
-

- Bessel K'n: Random Data -

-
-

- Max = 8.18ε (Mean = 1.45ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 4.53ε (Mean = 1.12ε) -

-
-

- Max = 4.45ε (Mean = 1.23ε) -

-
-

- Bessel K'v: Random Data -

-
-

- Max = 8.32ε (Mean = 1.65ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 7.95ε (Mean = 1.53ε) -

-
-

- Max = 7.95ε (Mean = 1.55ε) -

-
-
-
-

Table 6.56. Error rates for sph_bessel_prime

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel j': Random Data -

-
-

- Max = 307ε (Mean = 25.2ε) -

-
-

- Max = 0.753ε (Mean = 0.0343ε) -

-
-

- Max = 167ε (Mean = 12ε) -

-
-

- Max = 167ε (Mean = 33.2ε) -

-
-
-
-

Table 6.57. Error rates for sph_neumann_prime

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- y': Random Data -

-
-

- Max = 296ε (Mean = 25.6ε) -

-
-

- Max = 0.752ε (Mean = 0.062ε) -

-
-

- Max = 158ε (Mean = 18.8ε) -

-
-

- Max = 158ε (Mean = 20.2ε) -

-
-
-
- - Implementation -
-

- In the general case, the derivatives are calculated using the relations: -

-

- -

-

- There are also a number of special cases, for large x we have: -

-

- -

-

- And for small x: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/bessel/bessel_first.html b/boost/libs/math/doc/html/math_toolkit/bessel/bessel_first.html deleted file mode 100644 index 781959a2..00000000 --- a/boost/libs/math/doc/html/math_toolkit/bessel/bessel_first.html +++ /dev/null @@ -1,1387 +0,0 @@ - - - -Bessel Functions of the First and Second Kinds - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-

- #include <boost/math/special_functions/bessel.hpp> -

-
template <class T1, class T2>
-calculated-result-type cyl_bessel_j(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type cyl_bessel_j(T1 v, T2 x, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type cyl_neumann(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type cyl_neumann(T1 v, T2 x, const Policy&);
-
-
- - Description -
-

- The functions cyl_bessel_j - and cyl_neumann return - the result of the Bessel functions of the first and second kinds respectively: -

-

- cyl_bessel_j(v, x) = Jv(x) -

-

- cyl_neumann(v, x) = Yv(x) = Nv(x) -

-

- where: -

-

- -

-

- -

-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types. - The functions are also optimised for the relatively common case that T1 is - an integer. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The functions return the result of domain_error - whenever the result is undefined or complex. For cyl_bessel_j - this occurs when x < - 0 and v is not an integer, or when - x == - 0 and v - != 0. - For cyl_neumann this - occurs when x <= - 0. -

-

- The following graph illustrates the cyclic nature of Jv: -

-

- -

-

- The following graph shows the behaviour of Yv: this is also cyclic for large - x, but tends to -∞   for small x: -

-

- -

-
- - Testing -
-

- There are two sets of test values: spot values calculated using functions.wolfram.com, - and a much larger set of tests computed using a simplified version of this - implementation (with all the special case handling removed). -

-
- - Accuracy -
-

- The following tables show how the accuracy of these functions varies on various - platforms, along with comparisons to other libraries. Note that the cyclic - nature of these functions means that they have an infinite number of irrational - roots: in general these functions have arbitrarily large relative - errors when the arguments are sufficiently close to a root. Of course the - absolute error in such cases is always small. Note that only results for - the widest floating-point type on the system are given as narrower types - have effectively zero - error. All values are relative errors in units of epsilon. Most of - the gross errors exhibited by other libraries occur for very large arguments - - you will need to drill down into the actual program output if you need - more information on this. -

-
-

Table 6.40. Error rates for cyl_bessel_j (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel J0: Mathworld Data (Integer Version) -

-
-

- Max = 2.52ε (Mean = 1.2ε)

- (<math.h>: Max = 1.89ε (Mean = 0.988ε)) -

-
-

- Max = 6.55ε (Mean = 2.89ε)

- (<tr1/cmath>: Max = 5.04ε (Mean = 1.78ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.12ε (Mean = 0.488ε))
(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 1.12ε (Mean = 0.568ε)) -

-
-

- Max = 6.55ε (Mean = 2.86ε) -

-
-

- Bessel J0: Mathworld Data (Tricky cases) (Integer Version) -

-
-

- Max = 1e+007ε (Mean = 4.09e+006ε)
-
(<math.h>: Max - = 2.54e+008ε (Mean = 1.04e+008ε)) -

-
-

- Max = 1.63e+08ε (Mean = 6.67e+07ε)
-
(<tr1/cmath>: Max = 4.79e+08ε (Mean - = 1.96e+08ε)) -

-
-

- Max = 7.98e+04ε (Mean = 3.26e+04ε)
-
(GSL 1.16: Max = 1e+07ε (Mean = 4.11e+06ε))
- (Rmath 3.0.2: Max = 1.04e+07ε (Mean = 4.29e+06ε))
- (Cephes: Max = 2.54e+08ε (Mean - = 1.04e+08ε)) -

-
-

- Max = 1.64e+08ε (Mean = 6.69e+07ε) -

-
-

- Bessel J1: Mathworld Data (Integer Version) -

-
-

- Max = 1.73ε (Mean = 0.976ε)

- (<math.h>: Max = 11.4ε (Mean = 4.15ε)) -

-
-

- Max = 2.66ε (Mean = 1.38ε)

- (<tr1/cmath>: Max = 6.1ε (Mean = 2.95ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.89ε (Mean = 0.721ε))
(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 2.88ε (Mean = 1.12ε)) -

-
-

- Max = 1.44ε (Mean = 0.637ε) -

-
-

- Bessel J1: Mathworld Data (tricky cases) (Integer Version) -

-
-

- Max = 3.23e+004ε (Mean = 1.45e+004ε)
-
(<math.h>: Max = 1.44e+007ε (Mean - = 6.5e+006ε)) -

-
-

- Max = 2.18e+05ε (Mean = 9.76e+04ε)
-
(<tr1/cmath>: Max = 2.15e+06ε (Mean - = 1.58e+06ε)) -

-
-

- Max = 106ε (Mean = 47.5ε)

- (GSL 1.16: Max = 1.26e+06ε (Mean = 6.28e+05ε))
- (Rmath 3.0.2: Max = 2.93e+06ε (Mean = 1.7e+06ε))
- (Cephes: Max = 9.56e+05ε (Mean = 4.99e+05ε)) -

-
-

- Max = 2.18e+05ε (Mean = 9.76e+04ε) -

-
-

- Bessel JN: Mathworld Data (Integer Version) -

-
-

- Max = 14.7ε (Mean = 5.4ε)

- (<math.h>: Max = - +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 6.85ε (Mean = 3.41ε)

- (<tr1/cmath>: Max - = 2.13e+19ε (Mean = 5.16e+18ε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.9e+05ε (Mean = 2.53e+05ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 463ε (Mean = 112ε) -

-
-
-
-

Table 6.41. Error rates for cyl_bessel_j

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel J0: Mathworld Data -

-
-

- Max = 2.52ε (Mean = 1.2ε) -

-
-

- Max = 6.55ε (Mean = 2.89ε)

- (<tr1/cmath>: Max = 5.04ε (Mean = 1.78ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.629ε (Mean = 0.223ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 1.12ε (Mean = 0.568ε)) -

-
-

- Max = 6.55ε (Mean = 2.86ε) -

-
-

- Bessel J0: Mathworld Data (Tricky cases) -

-
-

- Max = 1e+007ε (Mean = 4.09e+006ε) -

-
-

- Max = 1.63e+08ε (Mean = 6.67e+07ε)
-
(<tr1/cmath>: Max = 4.79e+08ε (Mean - = 1.96e+08ε)) -

-
-

- Max = 7.98e+04ε (Mean = 3.26e+04ε)
-
(GSL 1.16: Max = 6.5e+07ε (Mean = 2.66e+07ε))
- (Rmath 3.0.2: Max = 1.04e+07ε (Mean = 4.29e+06ε))
- (Cephes: Max = 2.54e+08ε (Mean - = 1.04e+08ε)) -

-
-

- Max = 1.64e+08ε (Mean = 6.69e+07ε) -

-
-

- Bessel J1: Mathworld Data -

-
-

- Max = 1.73ε (Mean = 0.976ε) -

-
-

- Max = 2.66ε (Mean = 1.38ε)

- (<tr1/cmath>: Max = 6.1ε (Mean = 2.95ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.62ε (Mean = 2.35ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 2.88ε (Mean = 1.12ε)) -

-
-

- Max = 1.44ε (Mean = 0.637ε) -

-
-

- Bessel J1: Mathworld Data (tricky cases) -

-
-

- Max = 3.23e+004ε (Mean = 1.45e+004ε) -

-
-

- Max = 2.18e+05ε (Mean = 9.76e+04ε)
-
(<tr1/cmath>: Max = 2.15e+06ε (Mean - = 1.58e+06ε)) -

-
-

- Max = 106ε (Mean = 47.5ε)

- (GSL 1.16: Max = 8.75e+05ε (Mean = 5.32e+05ε))
- (Rmath 3.0.2: Max = 2.93e+06ε (Mean = 1.7e+06ε))
- (Cephes: Max = 9.56e+05ε (Mean = 4.99e+05ε)) -

-
-

- Max = 2.18e+05ε (Mean = 9.76e+04ε) -

-
-

- Bessel JN: Mathworld Data -

-
-

- Max = 14.7ε (Mean = 5.4ε) -

-
-

- Max = 6.85ε (Mean = 3.41ε)

- (<tr1/cmath>: Max - = 2.13e+19ε (Mean = 5.16e+18ε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.9e+05ε (Mean = 2.15e+05ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 5.53e+05ε (Mean = 1.9e+05ε)) -

-
-

- Max = 463ε (Mean = 112ε) -

-
-

- Bessel J: Mathworld Data -

-
-

- Max = 14.9ε (Mean = 3.82ε) -

-
-

- Max = 14.7ε (Mean = 4.05ε)

- (<tr1/cmath>: Max = 3.49e+05ε (Mean = - 7.89e+04ε) And - other failures.) -

-
-

- Max = 10ε (Mean = 2.19ε)

- (GSL 1.16: Max = 2.39e+05ε (Mean = 5.24e+04ε) - And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 5.47e+05ε (Mean = 1.3e+05ε)) -

-
-

- Max = 14.7ε (Mean = 4.12ε) -

-
-

- Bessel J: Mathworld Data (large values) -

-
-

- Max = 9.31ε (Mean = 5.52ε) -

-
-

- Max = 607ε (Mean = 305ε)

- (<tr1/cmath>: Max = 34.9ε (Mean = 17.4ε) - And - other failures.) -

-
-

- Max = 0.536ε (Mean = 0.268ε)

- (GSL 1.16: Max = 4.91e+03ε (Mean = 2.46e+03ε) - And - other failures.)
(Rmath 3.0.2: - Max = 35.9ε (Mean = 18.1ε))
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 607ε (Mean = 305ε) -

-
-

- Bessel JN: Random Data -

-
-

- Max = 17.5ε (Mean = 1.46ε) -

-
-

- Max = 50.8ε (Mean = 4.15ε)

- (<tr1/cmath>: Max = 1.12e+03ε (Mean = - 88.7ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 75.7ε (Mean = 5.36ε))
(Rmath - 3.0.2: Max = 3.93ε (Mean = 1.22ε))
(Cephes: - Max = 91.4ε (Mean = 6.47ε)) -

-
-

- Max = 99.6ε (Mean = 22ε) -

-
-

- Bessel J: Random Data -

-
-

- Max = 9.24ε (Mean = 1.36ε) -

-
-

- Max = 9.81ε (Mean = 1.59ε)

- (<tr1/cmath>: Max = 501ε (Mean = 52.3ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 15.5ε (Mean = 3.33ε) And - other failures.)
(Rmath 3.0.2: - Max = 6.74ε (Mean = 1.3ε))
(Cephes: Max - = 16.7ε (Mean = 2.5ε)) -

-
-

- Max = 260ε (Mean = 34ε) -

-
-

- Bessel J: Random Data (Tricky large values) -

-
-

- Max = 59.2ε (Mean = 8.67ε) -

-
-

- Max = 785ε (Mean = 94.2ε)

- (<tr1/cmath>: Max - = 5.01e+17ε (Mean = 6.23e+16ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.48e+05ε (Mean = 5.11e+04ε))
(Rmath - 3.0.2: Max = 71.6ε (Mean = 11.7ε))
(Cephes: - Max = 2.48e+05ε (Mean = 3.02e+04ε)) -

-
-

- Max = 785ε (Mean = 97.4ε) -

-
-
-
-

Table 6.42. Error rates for cyl_neumann (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Y0: Mathworld Data (Integer Version) -

-
-

- Max = 4.61ε (Mean = 2.29ε)

- (<math.h>: Max = 5.37e+003ε (Mean = 1.81e+003ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.46ε (Mean = 2.38ε))
(Rmath - 3.0.2: Max = 167ε (Mean = 56.5ε))
(Cephes: - Max = 5.37e+03ε (Mean = 1.81e+03ε)) -

-
-

- Max = 5.59ε (Mean = 2.54ε)

- (<tr1/cmath>: Max = 2.05e+05ε (Mean = - 6.87e+04ε)) -

-
-

- Max = 5.53ε (Mean = 2.4ε) -

-
-

- Y1: Mathworld Data (Integer Version) -

-
-

- Max = 4.75ε (Mean = 1.72ε)

- (<math.h>: Max = 1.86e+004ε (Mean = 6.2e+003ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.51ε (Mean = 0.839ε))
(Rmath - 3.0.2: Max = 193ε (Mean = 64.4ε))
(Cephes: - Max = 1.86e+04ε (Mean = 6.2e+03ε)) -

-
-

- Max = 12.7ε (Mean = 4.34ε)

- (<tr1/cmath>: Max = 9.71e+03ε (Mean = - 4.08e+03ε)) -

-
-

- Max = 6.33ε (Mean = 2.29ε) -

-
-

- Yn: Mathworld Data (Integer Version) -

-
-

- Max = 35ε (Mean = 11.8ε)

- (<math.h>: Max = 2.49e+005ε (Mean = 8.14e+004ε)) -

-
-

- Max = 0.993ε (Mean = 0.314ε)

- (GSL 1.16: Max = 2.41e+05ε (Mean = 7.62e+04ε))
- (Rmath 3.0.2: Max = 1.24e+04ε (Mean = 4e+03ε))
- (Cephes: Max = 2.49e+05ε (Mean = 8.14e+04ε)) -

-
-

- Max = 55.2ε (Mean = 17.7ε)

- (<tr1/cmath>: Max - = 2.2e+20ε (Mean = 6.97e+19ε) And - other failures.) -

-
-

- Max = 55.2ε (Mean = 17.8ε) -

-
-
-
-

Table 6.43. Error rates for cyl_neumann

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Y0: Mathworld Data -

-
-

- Max = 4.61ε (Mean = 2.29ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 60.9ε (Mean = 20.4ε))
(Rmath - 3.0.2: Max = 167ε (Mean = 56.5ε)) -

-
-

- Max = 5.59ε (Mean = 2.54ε)

- (<tr1/cmath>: Max = 2.05e+05ε (Mean = - 6.87e+04ε)) -

-
-

- Max = 5.53ε (Mean = 2.4ε) -

-
-

- Y1: Mathworld Data -

-
-

- Max = 4.75ε (Mean = 1.72ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 23.4ε (Mean = 8.1ε))
(Rmath - 3.0.2: Max = 193ε (Mean = 64.4ε)) -

-
-

- Max = 12.7ε (Mean = 4.34ε)

- (<tr1/cmath>: Max = 9.71e+03ε (Mean = - 4.08e+03ε)) -

-
-

- Max = 6.33ε (Mean = 2.29ε) -

-
-

- Yn: Mathworld Data -

-
-

- Max = 35ε (Mean = 11.8ε) -

-
-

- Max = 0.993ε (Mean = 0.314ε)

- (GSL 1.16: Max = 2.41e+05ε (Mean = 7.62e+04ε) - And - other failures.)
(Rmath 3.0.2: - Max = 1.24e+04ε (Mean = 4e+03ε)) -

-
-

- Max = 55.2ε (Mean = 17.7ε)

- (<tr1/cmath>: Max - = 2.2e+20ε (Mean = 6.97e+19ε) And - other failures.) -

-
-

- Max = 55.2ε (Mean = 17.8ε) -

-
-

- Yv: Mathworld Data -

-
-

- Max = 7.89ε (Mean = 3.27ε) -

-
-

- Max = 10ε (Mean = 3.02ε)

- (GSL 1.16: Max = 1.07e+05ε (Mean = 3.22e+04ε) - And - other failures.)
(Rmath 3.0.2: - Max = 1.05e+03ε (Mean = 326ε)) -

-
-

- Max = 10.7ε (Mean = 4.92ε)

- (<tr1/cmath>: Max - = 3.49e+15ε (Mean = 1.05e+15ε) And - other failures.) -

-
-

- Max = 10.7ε (Mean = 5.1ε) -

-
-

- Yv: Mathworld Data (large values) -

-
-

- Max = 0.682ε (Mean = 0.35ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 60.8ε (Mean = 23ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 1.57ε (Mean = 1.17ε)

- (<tr1/cmath>: Max = 43.2ε (Mean = 16.3ε) - And - other failures.) -

-
-

- Max = 1.57ε (Mean = 1.24ε) -

-
-

- Y0 and Y1: Random Data -

-
-

- Max = 4.17ε (Mean = 1.24ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 34.4ε (Mean = 8.9ε))
(Rmath - 3.0.2: Max = 83ε (Mean = 14.2ε)) -

-
-

- Max = 11.8ε (Mean = 3.28ε)

- (<tr1/cmath>: Max = 2.59e+03ε (Mean = - 500ε)) -

-
-

- Max = 10.8ε (Mean = 3.04ε) -

-
-

- Yn: Random Data -

-
-

- Max = 117ε (Mean = 10.2ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 500ε (Mean = 47.8ε))
(Rmath - 3.0.2: Max = 691ε (Mean = 67.9ε)) -

-
-

- Max = 338ε (Mean = 28.2ε)

- (<tr1/cmath>: Max = 4.01e+03ε (Mean = - 348ε)) -

-
-

- Max = 338ε (Mean = 27.5ε) -

-
-

- Yv: Random Data -

-
-

- Max = 1.23e+003ε (Mean = 69.9ε) -

-
-

- Max = 1.53ε (Mean = 0.102ε)

- (GSL 1.16: Max = 1.41e+06ε (Mean = 7.67e+04ε))
- (Rmath 3.0.2: Max = 1.79e+05ε (Mean = 9.64e+03ε)) -

-
-

- Max = 2.08e+03ε (Mean = 149ε)
-
(<tr1/cmath>: Max - = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 2.08e+03ε (Mean = 149ε) -

-
-
-

- Note that for large x these functions are largely dependent - on the accuracy of the std::sin and - std::cos functions. -

-

- Comparison to GSL and Cephes - is interesting: both Cephes - and this library optimise the integer order case - leading to identical results - - simply using the general case is for the most part slightly more accurate - though, as noted by the better accuracy of GSL in the integer argument cases. - This implementation tends to perform much better when the arguments become - large, Cephes in particular - produces some remarkably inaccurate results with some of the test data (no - significant figures correct), and even GSL performs badly with some inputs - to Jv. Note that by way of double-checking these results, the worst performing - Cephes and GSL cases were - recomputed using functions.wolfram.com, - and the result checked against our test data: no errors in the test data - were found. -

-
- - Implementation -
-

- The implementation is mostly about filtering off various special cases: -

-

- When x is negative, then the order v - must be an integer or the result is a domain error. If the order is an integer - then the function is odd for odd orders and even for even orders, so we reflect - to x > 0. -

-

- When the order v is negative then the reflection formulae - can be used to move to v > 0: -

-

- -

-

- -

-

- Note that if the order is an integer, then these formulae reduce to: -

-

- J-n = (-1)nJn -

-

- Y-n = (-1)nYn -

-

- However, in general, a negative order implies that we will need to compute - both J and Y. -

-

- When x is large compared to the order v - then the asymptotic expansions for large x in M. Abramowitz - and I.A. Stegun, Handbook of Mathematical Functions - 9.2.19 are used (these were found to be more reliable than those in A&S - 9.2.5). -

-

- When the order v is an integer the method first relates - the result to J0, J1, Y0   and Y1   using either forwards or backwards recurrence - (Miller's algorithm) depending upon which is stable. The values for J0, J1, - Y0   and Y1   are calculated using the rational minimax approximations on root-bracketing - intervals for small |x| and Hankel asymptotic expansion - for large |x|. The coefficients are from: -

-

- W.J. Cody, ALGORITHM 715: SPECFUN - A Portable FORTRAN Package - of Special Function Routines and Test Drivers, ACM Transactions - on Mathematical Software, vol 19, 22 (1993). -

-

- and -

-

- J.F. Hart et al, Computer Approximations, John Wiley - & Sons, New York, 1968. -

-

- These approximations are accurate to around 19 decimal digits: therefore - these methods are not used when type T has more than 64 binary digits. -

-

- When x is smaller than machine epsilon then the following - approximations for Y0(x), Y1(x), Y2(x) and Yn(x) can be used (see: http://functions.wolfram.com/03.03.06.0037.01, - http://functions.wolfram.com/03.03.06.0038.01, - http://functions.wolfram.com/03.03.06.0039.01 - and http://functions.wolfram.com/03.03.06.0040.01): -

-

- -

-

- -

-

- -

-

- -

-

- When x is small compared to v and - v is not an integer, then the following series approximation - can be used for Yv(x), this is also an area where other approximations are - often too slow to converge to be used (see http://functions.wolfram.com/03.03.06.0034.01): -

-

- -

-

- When x is small compared to v, - Jvx   is best computed directly from the series: -

-

- -

-

- In the general case we compute Jv   and Yv   simultaneously. -

-

- To get the initial values, let μ   = ν - floor(ν + 1/2), then μ   is the fractional part - of ν   such that |μ| <= 1/2 (we need this for convergence later). The idea - is to calculate Jμ(x), Jμ+1(x), Yμ(x), Yμ+1(x) and use them to obtain Jν(x), Yν(x). -

-

- The algorithm is called Steed's method, which needs two continued fractions - as well as the Wronskian: -

-

- -

-

- -

-

- -

-

- See: F.S. Acton, Numerical Methods that Work, The Mathematical - Association of America, Washington, 1997. -

-

- The continued fractions are computed using the modified Lentz's method (W.J. - Lentz, Generating Bessel functions in Mie scattering calculations - using continued fractions, Applied Optics, vol 15, 668 (1976)). - Their convergence rates depend on x, therefore we need - different strategies for large x and small x. -

-

- x > v, CF1 needs O(x) iterations - to converge, CF2 converges rapidly -

-

- x <= v, CF1 converges rapidly, CF2 fails to converge - when x -> 0 -

-

- When x is large (x > 2), both - continued fractions converge (CF1 may be slow for really large x). - Jμ, Jμ+1, Yμ, Yμ+1 can be calculated by -

-

- -

-

- where -

-

- -

-

- Jν and Yμ are then calculated using backward (Miller's algorithm) and forward - recurrence respectively. -

-

- When x is small (x <= 2), CF2 - convergence may fail (but CF1 works very well). The solution here is Temme's - series: -

-

- -

-

- where -

-

- -

-

- gk   and hk   -are also computed by recursions (involving gamma functions), but - the formulas are a little complicated, readers are refered to N.M. Temme, - On the numerical evaluation of the ordinary Bessel function of - the second kind, Journal of Computational Physics, vol 21, 343 - (1976). Note Temme's series converge only for |μ| <= 1/2. -

-

- As the previous case, Yν   is calculated from the forward recurrence, so is Yν+1. - With these two values and fν, the Wronskian yields Jν(x) directly without backward - recurrence. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/bessel/bessel_over.html b/boost/libs/math/doc/html/math_toolkit/bessel/bessel_over.html deleted file mode 100644 index 3a09b652..00000000 --- a/boost/libs/math/doc/html/math_toolkit/bessel/bessel_over.html +++ /dev/null @@ -1,212 +0,0 @@ - - - -Bessel Function Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Ordinary - Bessel Functions -
-

- Bessel Functions are solutions to Bessel's ordinary differential equation: -

-

- -

-

- where ν   is the order of the equation, and may be an arbitrary - real or complex number, although integer orders are the most common occurrence. -

-

- This library supports either integer or real orders. -

-

- Since this is a second order differential equation, there must be two linearly - independent solutions, the first of these is denoted Jv   -and known as a Bessel - function of the first kind: -

-

- -

-

- This function is implemented in this library as cyl_bessel_j. -

-

- The second solution is denoted either Yv   or Nv   -and is known as either a Bessel - Function of the second kind, or as a Neumann function: -

-

- -

-

- This function is implemented in this library as cyl_neumann. -

-

- The Bessel functions satisfy the recurrence relations: -

-

- -

-

- -

-

- Have the derivatives: -

-

- -

-

- -

-

- Have the Wronskian relation: -

-

- -

-

- and the reflection formulae: -

-

- -

-

- -

-
- - Modified - Bessel Functions -
-

- The Bessel functions are valid for complex argument x, - and an important special case is the situation where x - is purely imaginary: giving a real valued result. In this case the functions - are the two linearly independent solutions to the modified Bessel equation: -

-

- -

-

- The solutions are known as the modified Bessel functions of the first and - second kind (or occasionally as the hyperbolic Bessel functions of the first - and second kind). They are denoted Iv   and Kv   -respectively: -

-

- -

-

- -

-

- These functions are implemented in this library as cyl_bessel_i - and cyl_bessel_k respectively. -

-

- The modified Bessel functions satisfy the recurrence relations: -

-

- -

-

- -

-

- Have the derivatives: -

-

- -

-

- -

-

- Have the Wronskian relation: -

-

- -

-

- and the reflection formulae: -

-

- -

-

- -

-
- - Spherical - Bessel Functions -
-

- When solving the Helmholtz equation in spherical coordinates by separation - of variables, the radial equation has the form: -

-

- -

-

- The two linearly independent solutions to this equation are called the spherical - Bessel functions jn   and yn  , and are related to the ordinary Bessel functions - Jn   and Yn   by: -

-

- -

-

- The spherical Bessel function of the second kind yn   -is also known as the spherical - Neumann function nn. -

-

- These functions are implemented in this library as sph_bessel - and sph_neumann. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/bessel/bessel_root.html b/boost/libs/math/doc/html/math_toolkit/bessel/bessel_root.html deleted file mode 100644 index 8395a715..00000000 --- a/boost/libs/math/doc/html/math_toolkit/bessel/bessel_root.html +++ /dev/null @@ -1,764 +0,0 @@ - - - -Finding Zeros of Bessel Functions of the First and Second Kinds - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-

- #include <boost/math/special_functions/bessel.hpp> -

-

- Functions for obtaining both a single zero or root of the Bessel function, - and placing multiple zeros into a container like std::vector - by providing an output iterator. -

-

- The signature of the single value functions are: -

-
template <class T>
-T cyl_bessel_j_zero(
-         T v,            // Floating-point value for Jv.
-         int m);         // 1-based index of zero.
-
-template <class T>
-T cyl_neumann_zero(
-         T v,            // Floating-point value for Jv.
-         int m);         // 1-based index of zero.
-
-

- and for multiple zeros: -

-
template <class T, class OutputIterator>
-OutputIterator cyl_bessel_j_zero(
-                     T v,                       // Floating-point value for Jv.
-                     int start_index,           // 1-based index of first zero.
-                     unsigned number_of_zeros,  // How many zeros to generate.
-                     OutputIterator out_it);    // Destination for zeros.
-
-template <class T, class OutputIterator>
-OutputIterator cyl_neumann_zero(
-                     T v,                       // Floating-point value for Jv.
-                     int start_index,           // 1-based index of zero.
-                     unsigned number_of_zeros,  // How many zeros to generate
-                     OutputIterator out_it);    // Destination for zeros.
-
-

- There are also versions which allow control of the Policies - for error handling and precision. -

-
 template <class T>
- T cyl_bessel_j_zero(
-          T v,            // Floating-point value for Jv.
-          int m,          // 1-based index of zero.
-          const Policy&); // Policy to use.
-
- template <class T>
- T cyl_neumann_zero(
-          T v,            // Floating-point value for Jv.
-          int m,          // 1-based index of zero.
-          const Policy&); // Policy to use.
-
-
-template <class T, class OutputIterator>
-OutputIterator cyl_bessel_j_zero(
-                     T v,                       // Floating-point value for Jv.
-                     int start_index,           // 1-based index of first zero.
-                     unsigned number_of_zeros,  // How many zeros to generate.
-                     OutputIterator out_it,     // Destination for zeros.
-                     const Policy& pol);        // Policy to use.
-
-template <class T, class OutputIterator>
-OutputIterator cyl_neumann_zero(
-                     T v,                       // Floating-point value for Jv.
-                     int start_index,           // 1-based index of zero.
-                     unsigned number_of_zeros,  // How many zeros to generate.
-                     OutputIterator out_it,     // Destination for zeros.
-                     const Policy& pol);        // Policy to use.
-
-
- - Description -
-

- Every real order ν cylindrical Bessel and Neumann functions have an infinite - number of zeros on the positive real axis. The real zeros on the positive - real axis can be found by solving for the roots of -

-

-   Jν(jν, m) = 0 -

-

-   Yν(yν, m) = 0 -

-

- Here, jν, m represents the mth root - of the cylindrical Bessel function of order ν, and yν, - m represents the mth root of the cylindrical - Neumann function of order ν. -

-

- The zeros or roots (values of x - where the function crosses the horizontal y - = 0 - axis) of the Bessel and Neumann functions are computed by two functions, - cyl_bessel_j_zero and cyl_neumann_zero. -

-

- In each case the index or rank of the zero returned is 1-based, which is - to say: -

-
cyl_bessel_j_zero(v, 1);
-
-

- returns the first zero of Bessel J. -

-

- Passing an start_index <= - 0 results in a std::domain_error - being raised. -

-

- For certain parameters, however, the zero'th root is defined and it has a - value of zero. For example, the zero'th root of J[sub v](x) - is defined and it has a value of zero for all values of v - > 0 - and for negative integer values of v - = -n. Similar cases are described in the implementation - details below. -

-

- The order v of J can be positive, negative and zero for - the cyl_bessel_j and cyl_neumann functions, but not infinite - nor NaN. -

-

- -

-

- -

-
- - Examples - of finding Bessel and Neumann zeros -
-

- This example demonstrates calculating zeros of the Bessel and Neumann functions. - It also shows how Boost.Math and Boost.Multiprecision can be combined to - provide a many decimal digit precision. For 50 decimal digit precision we - need to include -

-
#include <boost/multiprecision/cpp_dec_float.hpp>
-
-

- and a typedef for float_type may be convenient (allowing - a quick switch to re-compute at built-in double - or other precision) -

-
typedef boost::multiprecision::cpp_dec_float_50 float_type;
-
-

- To use the functions for finding zeros of the functions we need -

-
#include <boost/math/special_functions/bessel.hpp>
-
-

- This file includes the forward declaration signatures for the zero-finding - functions: -

-
//  #include <boost/math/special_functions/math_fwd.hpp>
-
-

- but more details are in the full documentation, for example at Boost.Math - Bessel functions. -

-

- This example shows obtaining both a single zero of the Bessel function, and - then placing multiple zeros into a container like std::vector - by providing an iterator. -

-
- - - - - -
[Tip]Tip

- It is always wise to place code using Boost.Math inside try'n'catch blocks; - this will ensure that helpful error messages are shown when exceptional - conditions arise. -

-

- First, evaluate a single Bessel zero. -

-

- The precision is controlled by the float-point type of template parameter - T of v - so this example has double precision, - at least 15 but up to 17 decimal digits (for the common 64-bit double). -

-
//    double root = boost::math::cyl_bessel_j_zero(0.0, 1);
-//    // Displaying with default precision of 6 decimal digits:
-//    std::cout << "boost::math::cyl_bessel_j_zero(0.0, 1) " << root << std::endl; // 2.40483
-//    // And with all the guaranteed (15) digits:
-//    std::cout.precision(std::numeric_limits<double>::digits10);
-//    std::cout << "boost::math::cyl_bessel_j_zero(0.0, 1) " << root << std::endl; // 2.40482555769577
-
-

- But note that because the parameter v - controls the precision of the result, v - must be a floating-point type. So if you - provide an integer type, say 0, rather than 0.0, then it will fail to compile - thus: -

-
root = boost::math::cyl_bessel_j_zero(0, 1);
-
-

- with this error message -

-
error C2338: Order must be a floating-point type.
-
-

- Optionally, we can use a policy to ignore errors, C-style, returning some - value, perhaps infinity or NaN, or the best that can be done. (See user error handling). -

-

- To create a (possibly unwise!) policy ignore_all_policy - that ignores all errors: -

-
typedef boost::math::policies::policy<
-  boost::math::policies::domain_error<boost::math::policies::ignore_error>,
-  boost::math::policies::overflow_error<boost::math::policies::ignore_error>,
-  boost::math::policies::underflow_error<boost::math::policies::ignore_error>,
-  boost::math::policies::denorm_error<boost::math::policies::ignore_error>,
-  boost::math::policies::pole_error<boost::math::policies::ignore_error>,
-  boost::math::policies::evaluation_error<boost::math::policies::ignore_error>
-            > ignore_all_policy;
-
-

- Examples of use of this ignore_all_policy - are -

-
double inf = std::numeric_limits<double>::infinity();
-double nan = std::numeric_limits<double>::quiet_NaN();
-
-double dodgy_root = boost::math::cyl_bessel_j_zero(-1.0, 1, ignore_all_policy());
-std::cout << "boost::math::cyl_bessel_j_zero(-1.0, 1) " << dodgy_root << std::endl; // 1.#QNAN
-double inf_root = boost::math::cyl_bessel_j_zero(inf, 1, ignore_all_policy());
-std::cout << "boost::math::cyl_bessel_j_zero(inf, 1) " << inf_root << std::endl; // 1.#QNAN
-double nan_root = boost::math::cyl_bessel_j_zero(nan, 1, ignore_all_policy());
-std::cout << "boost::math::cyl_bessel_j_zero(nan, 1) " << nan_root << std::endl; // 1.#QNAN
-
-

- Another version of cyl_bessel_j_zero - allows calculation of multiple zeros with one call, placing the results in - a container, often std::vector. For example, generate and display - the first five double roots - of Jv for integral order 2, as column J2(x) in table - 1 of Wolfram - Bessel Function Zeros. -

-
unsigned int n_roots = 5U;
-std::vector<double> roots;
-boost::math::cyl_bessel_j_zero(2.0, 1, n_roots, std::back_inserter(roots));
-std::copy(roots.begin(),
-          roots.end(),
-          std::ostream_iterator<double>(std::cout, "\n"));
-
-

- Or we can use Boost.Multiprecision to generate 50 decimal digit roots of - Jv for non-integral order v= 71/19 == 3.736842, - expressed as an exact-integer fraction to generate the most accurate value - possible for all floating-point types. -

-

- We set the precision of the output stream, and show trailing zeros to display - a fixed 50 decimal digits. -

-
std::cout.precision(std::numeric_limits<float_type>::digits10); // 50 decimal digits.
-std::cout << std::showpoint << std::endl; // Show trailing zeros.
-
-float_type x = float_type(71) / 19;
-float_type r = boost::math::cyl_bessel_j_zero(x, 1); // 1st root.
-std::cout << "x = " << x << ", r = " << r << std::endl;
-
-r = boost::math::cyl_bessel_j_zero(x, 20U); // 20th root.
-std::cout << "x = " << x << ", r = " << r << std::endl;
-
-std::vector<float_type> zeros;
-boost::math::cyl_bessel_j_zero(x, 1, 3, std::back_inserter(zeros));
-
-std::cout << "cyl_bessel_j_zeros" << std::endl;
-// Print the roots to the output stream.
-std::copy(zeros.begin(), zeros.end(),
-          std::ostream_iterator<float_type>(std::cout, "\n"));
-
-
- - Using - Output Iterator to sum zeros of Bessel Functions -
-

- This example demonstrates summing zeros of the Bessel functions. To use the - functions for finding zeros of the functions we need -

-
#include <boost/math/special_functions/bessel.hpp>
-
-

- We use the cyl_bessel_j_zero - output iterator parameter out_it - to create a sum of 1/zeros2 by defining a custom output - iterator: -

-
template <class T>
-struct output_summation_iterator
-{
-   output_summation_iterator(T* p) : p_sum(p)
-   {}
-   output_summation_iterator& operator*()
-   { return *this; }
-    output_summation_iterator& operator++()
-   { return *this; }
-   output_summation_iterator& operator++(int)
-   { return *this; }
-   output_summation_iterator& operator = (T const& val)
-   {
-     *p_sum += 1./ (val * val); // Summing 1/zero^2.
-     return *this;
-   }
-private:
-   T* p_sum;
-};
-
-

- The sum is calculated for many values, converging on the analytical exact - value of 1/8. -

-
using boost::math::cyl_bessel_j_zero;
-double nu = 1.;
-double sum = 0;
-output_summation_iterator<double> it(&sum);  // sum of 1/zeros^2
-cyl_bessel_j_zero(nu, 1, 10000, it);
-
-double s = 1/(4 * (nu + 1)); // 0.125 = 1/8 is exact analytical solution.
-std::cout << std::setprecision(6) << "nu = " << nu << ", sum = " << sum
-  << ", exact = " << s << std::endl;
-// nu = 1.00000, sum = 0.124990, exact = 0.125000
-
-
- - Calculating - zeros of the Neumann function. -
-

- This example also shows how Boost.Math and Boost.Multiprecision can be combined - to provide a many decimal digit precision. For 50 decimal digit precision - we need to include -

-
#include <boost/multiprecision/cpp_dec_float.hpp>
-
-

- and a typedef for float_type may be convenient (allowing - a quick switch to re-compute at built-in double - or other precision) -

-
typedef boost::multiprecision::cpp_dec_float_50 float_type;
-
-

- To use the functions for finding zeros of the cyl_neumann - function we need: -

-
#include <boost/math/special_functions/bessel.hpp>
-
-

- The Neumann (Bessel Y) function zeros are evaluated very similarly: -

-
using boost::math::cyl_neumann_zero;
-double zn = cyl_neumann_zero(2., 1);
-std::cout << "cyl_neumann_zero(2., 1) = " << zn << std::endl;
-
-std::vector<float> nzeros(3); // Space for 3 zeros.
-cyl_neumann_zero<float>(2.F, 1, nzeros.size(), nzeros.begin());
-
-std::cout << "cyl_neumann_zero<float>(2.F, 1, ";
-// Print the zeros to the output stream.
-std::copy(nzeros.begin(), nzeros.end(),
-          std::ostream_iterator<float>(std::cout, ", "));
-
-std::cout << "\n""cyl_neumann_zero(static_cast<float_type>(220)/100, 1) = "
-  << cyl_neumann_zero(static_cast<float_type>(220)/100, 1) << std::endl;
-// 3.6154383428745996706772556069431792744372398748422
-
-
- - Error - messages from 'bad' input -
-

- Another example demonstrates calculating zeros of the Bessel functions showing - the error messages from 'bad' input is handled by throwing exceptions. -

-

- To use the functions for finding zeros of the functions we need: -

-
#include <boost/math/special_functions/bessel.hpp>
-#include <boost/math/special_functions/airy.hpp>
-
-
- - - - - -
[Tip]Tip

- It is always wise to place all code using Boost.Math inside try'n'catch - blocks; this will ensure that helpful error messages can be shown when - exceptional conditions arise. -

-

- Examples below show messages from several 'bad' arguments that throw a domain_error exception. -

-
try
-{ // Try a zero order v.
-  float dodgy_root = boost::math::cyl_bessel_j_zero(0.F, 0);
-  std::cout << "boost::math::cyl_bessel_j_zero(0.F, 0) " << dodgy_root << std::endl;
-  // Thrown exception Error in function boost::math::cyl_bessel_j_zero<double>(double, int):
-  // Requested the 0'th zero of J0, but the rank must be > 0 !
-}
-catch (std::exception& ex)
-{
-  std::cout << "Thrown exception " << ex.what() << std::endl;
-}
-
-
- - - - - -
[Note]Note

- The type shown in the error message is the type after - promotion, using precision - policy and internal - promotion policy, from float - to double in this case. -

-

- In this example the promotion goes: -

-
    -
  1. - Arguments are float and - int. -
  2. -
  3. - Treat int "as if" - it were a double, so arguments - are float and double. -
  4. -
  5. - Common type is double - - so that's the precision we want (and the type that will be returned). -
  6. -
  7. - Evaluate internally as double - for full float precision. -
  8. -
-

- See full code for other examples that promote from double - to long double. -

-

- Other examples of 'bad' inputs like infinity and NaN are below. Some compiler - warnings indicate that 'bad' values are detected at compile time. -

-
try
-{ // order v = inf
-   std::cout << "boost::math::cyl_bessel_j_zero(inf, 1) " << std::endl;
-   double inf = std::numeric_limits<double>::infinity();
-   double inf_root = boost::math::cyl_bessel_j_zero(inf, 1);
-   std::cout << "boost::math::cyl_bessel_j_zero(inf, 1) " << inf_root << std::endl;
-   // Throw exception Error in function boost::math::cyl_bessel_j_zero<long double>(long double, unsigned):
-   // Order argument is 1.#INF, but must be finite >= 0 !
-}
-catch (std::exception& ex)
-{
-  std::cout << "Thrown exception " << ex.what() << std::endl;
-}
-
-try
-{ // order v = NaN, rank m = 1
-   std::cout << "boost::math::cyl_bessel_j_zero(nan, 1) " << std::endl;
-   double nan = std::numeric_limits<double>::quiet_NaN();
-   double nan_root = boost::math::cyl_bessel_j_zero(nan, 1);
-   std::cout << "boost::math::cyl_bessel_j_zero(nan, 1) " << nan_root << std::endl;
-   // Throw exception Error in function boost::math::cyl_bessel_j_zero<long double>(long double, unsigned):
-   // Order argument is 1.#QNAN, but must be finite >= 0 !
-}
-catch (std::exception& ex)
-{
-  std::cout << "Thrown exception " << ex.what() << std::endl;
-}
-
-

- The output from other examples are shown appended to the full code listing. -

-

- The full code (and output) for these examples is at Bessel - zeros, Bessel - zeros iterator, Neumann - zeros, Bessel - error messages. -

-

- - Implementation -

-

- Various methods are used to compute initial estimates for jν, m - and yν, m ; these are described in detail below. -

-

- After finding the initial estimate of a given root, its precision is subsequently - refined to the desired level using Newton-Raphson iteration from Boost.Math's - root-finding with derivatives - utilities combined with the functions cyl_bessel_j - and cyl_neumann. -

-

- Newton iteration requires both Jν(x) or Yν(x) - as well as its derivative. The derivatives of Jν(x) and - Yν(x) with respect to x are given - by M. Abramowitz and I. A. Stegun, Handbook of Mathematical Functions, NBS - (1964). In particular, -

-

-   d/dx Jν(x) = Jν-1(x) - ν Jν(x) - / x -

-

-   d/dx Yν(x) = Yν-1(x) - ν Yν(x) - / x -

-

- Enumeration of the rank of a root (in other words the index of a root) begins - with one and counts up, in other words m,=1,2,3,… The - value of the first root is always greater than zero. -

-

- For certain special parameters, cylindrical Bessel functions and cylindrical - Neumann functions have a root at the origin. For example, Jν(x) - has a root at the origin for every positive order ν > 0, - and for every negative integer order ν = -n with n - ∈ ℕ + and n ≠ 0. -

-

- In addition, Yν(x) has a root at the origin for every - negative half-integer order ν = -n/2, with n - ∈ ℕ + and and n ≠ 0. -

-

- For these special parameter values, the origin with a value of x - = 0 is provided as the 0th root generated - by cyl_bessel_j_zero() - and cyl_neumann_zero(). -

-

- When calculating initial estimates for the roots of Bessel functions, a distinction - is made between positive order and negative order, and different methods - are used for these. In addition, different algorithms are used for the first - root m = 1 and for subsequent roots with higher rank - m ≥ 2. Furthermore, estimates of the roots for Bessel - functions with order above and below a cutoff at ν = 2.2 - are calculated with different methods. -

-

- Calculations of the estimates of jν,1 and yν,1 - with 0 ≤ ν < 2.2 use empirically tabulated values. The - coefficients for these have been generated by a computer algebra system. -

-

- Calculations of the estimates of jν,1 and yν,1 - with ν≥ 2.2 use Eqs.9.5.14 and 9.5.15 in M. Abramowitz - and I. A. Stegun, Handbook of Mathematical Functions, NBS (1964). -

-

- In particular, -

-

-   jν,1 ≅ ν + 1.85575 ν⅓ + 1.033150 ν-⅓ - 0.00397 ν-1 - 0.0908 ν-5/3 + 0.043 ν-7/3 + - … -

-

- and -

-

-   yν,1 ≅ ν + 0.93157 ν⅓ + 0.26035 ν-⅓ + 0.01198 ν-1 - 0.0060 ν-5/3 - 0.001 ν-7/3 + - … -

-

- Calculations of the estimates of jν, m and yν, - m with rank m > 2 and 0 ≤ ν < - 2.2 use McMahon's approximation, as described in M. Abramowitz - and I. A. Stegan, Section 9.5 and 9.5.12. In particular, -

-

-   jν,m, yν,m ≅ β - (μ-1) / 8β -

-

-       - 4(μ-1)(7μ - 31) / 3(8β)3 -

-

-       -32(μ-1)(83μ² - 982μ + 3779) / 15(8β)5 -

-

-       -64(μ-1)(6949μ3 - 153855μ² + 1585743μ- 6277237) / 105(8a)7 -

-

-       - …     (5) -

-

- where μ = 4ν2 and β = (m + ½ν - ¼)π for - jν,m and β = (m + ½ν -¾)π for yν,m. -

-

- Calculations of the estimates of jν, m and yν, - m with ν ≥ 2.2 use one term in the asymptotic - expansion given in Eq.9.5.22 and top line of Eq.9.5.26 combined with Eq. - 9.3.39, all in M. Abramowitz and I. A. Stegun, Handbook of Mathematical Functions, - NBS (1964) explicit and easy-to-understand treatment for asymptotic expansion - of zeros. The latter two equations are expressed for argument (x) - greater than one. (Olver also gives the series form of the equations in - §10.21(vi) McMahon's Asymptotic - Expansions for Large Zeros - using slightly different variable names). -

-

- In summary, -

-

-   jν, m ∼ νx(-ζ) + f1(-ζ/ν) -

-

- where -ζ = ν-2/3am and am is the absolute - value of the mth root of Ai(x) - on the negative real axis. -

-

- Here x = x(-ζ) is the inverse of the function -

-

-   ⅔(-ζ)3/2 = √(x² - 1) - cos⁻¹(1/x)     (7) -

-

- Furthermore, -

-

-   f1(-ζ) = ½x(-ζ) {h(-ζ)}² ⋅ b0(-ζ) -

-

- where -

-

-   h(-ζ) = {4(-ζ) / (x² - 1)}4 -

-

- and -

-

-   b0(-ζ) = -5/(48ζ²) + 1/(-ζ)½ ⋅ { 5/(24(x2-1)3/2) + 1/(8(x2-1)½)} -

-

- When solving for x(-ζ) in Eq. 7 above, the right-hand-side - is expanded to order 2 in a Taylor series for large x. - This results in -

-

-   ⅔(-ζ)3/2 ≈ x + 1/2x - π/2 -

-

- The positive root of the resulting quadratic equation is used to find an - initial estimate x(-ζ). This initial estimate is subsequently - refined with several steps of Newton-Raphson iteration in Eq. 7. -

-

- Estimates of the roots of cylindrical Bessel functions of negative order - on the positive real axis are found using interlacing relations. For example, - the mth root of the cylindrical Bessel function j-ν,m - is bracketed by the mth root and the (m+1)th - root of the Bessel function of corresponding positive integer order. In other - words, -

-

-   jnν,m < j-ν,m < jnν,m+1 -

-

- where m > 1 and nν represents - the integral floor of the absolute value of |-ν|. -

-

- Similar bracketing relations are used to find estimates of the roots of Neumann - functions of negative order, whereby a discontinuity at every negative half-integer - order needs to be handled. -

-

- Bracketing relations do not hold for the first root of cylindrical Bessel - functions and cylindrical Neumann functions with negative order. Therefore, - iterative algorithms combined with root-finding via bisection are used to - localize j-ν,1 and y-ν,1. -

-

- - Testing -

-

- The precision of evaluation of zeros was tested at 50 decimal digits using - cpp_dec_float_50 and found - identical with spot values computed by Wolfram - Alpha. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/bessel/mbessel.html b/boost/libs/math/doc/html/math_toolkit/bessel/mbessel.html deleted file mode 100644 index 405832de..00000000 --- a/boost/libs/math/doc/html/math_toolkit/bessel/mbessel.html +++ /dev/null @@ -1,1122 +0,0 @@ - - - -Modified Bessel Functions of the First and Second Kinds - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-

- #include <boost/math/special_functions/bessel.hpp> -

-
template <class T1, class T2>
-calculated-result-type cyl_bessel_i(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type cyl_bessel_i(T1 v, T2 x, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type cyl_bessel_k(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type cyl_bessel_k(T1 v, T2 x, const Policy&);
-
-
- - Description -
-

- The functions cyl_bessel_i - and cyl_bessel_k return - the result of the modified Bessel functions of the first and second kind - respectively: -

-

- cyl_bessel_i(v, x) = Iv(x) -

-

- cyl_bessel_k(v, x) = Kv(x) -

-

- where: -

-

- -

-

- -

-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types. - The functions are also optimised for the relatively common case that T1 is - an integer. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The functions return the result of domain_error - whenever the result is undefined or complex. For cyl_bessel_j - this occurs when x < - 0 and v is not an integer, or when - x == - 0 and v - != 0. - For cyl_neumann this - occurs when x <= - 0. -

-

- The following graph illustrates the exponential behaviour of Iv. -

-

- -

-

- The following graph illustrates the exponential decay of Kv. -

-

- -

-
- - Testing -
-

- There are two sets of test values: spot values calculated using functions.wolfram.com, - and a much larger set of tests computed using a simplified version of this - implementation (with all the special case handling removed). -

-
- - Accuracy -
-

- The following tables show how the accuracy of these functions varies on various - platforms, along with comparison to other libraries. Note that only results - for the widest floating-point type on the system are given, as narrower types - have effectively zero - error. All values are relative errors in units of epsilon. Note that - our test suite includes some fairly extreme inputs which results in most - of the worst problem cases in other libraries: -

-
-

Table 6.44. Error rates for cyl_bessel_i (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel I0: Mathworld Data (Integer Version) -

-
-

- Max = 0.877ε (Mean = 0.549ε) -

-
-

- Max = 4.57ε (Mean = 2.1ε)

- (<tr1/cmath>: Max = 8.49ε (Mean = 3.46ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.79ε (Mean = 0.482ε))
(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 2.55e+43ε (Mean = 8.06e+42ε) And - other failures.) -

-
-

- Max = 4.54ε (Mean = 2.11ε) -

-
-

- Bessel I1: Mathworld Data (Integer Version) -

-
-

- Max = 0.885ε (Mean = 0.55ε) -

-
-

- Max = 7.83ε (Mean = 2.79ε)

- (<tr1/cmath>: Max = 5ε (Mean = 2.15ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.82ε (Mean = 0.456ε))
(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 1.28e+43ε (Mean = 4.05e+42ε) And - other failures.) -

-
-

- Max = 6.52ε (Mean = 2.25ε) -

-
-

- Bessel In: Mathworld Data (Integer Version) -

-
-

- Max = 3.46ε (Mean = 1.32ε) -

-
-

- Max = 1.8ε (Mean = 1.33ε)

- (<tr1/cmath>: Max = 430ε (Mean = 163ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 5.15ε (Mean = 2.13ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 3.67e+177ε (Mean = +INFε) And - other failures.) -

-
-

- Max = 463ε (Mean = 140ε) -

-
-
-
-

Table 6.45. Error rates for cyl_bessel_i

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel I0: Mathworld Data -

-
-

- Max = 0.877ε (Mean = 0.549ε) -

-
-

- Max = 4.57ε (Mean = 2.1ε)

- (<tr1/cmath>: Max = 8.49ε (Mean = 3.46ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 270ε (Mean = 91.6ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 2.55e+43ε (Mean = 8.06e+42ε) And - other failures.) -

-
-

- Max = 4.54ε (Mean = 2.11ε) -

-
-

- Bessel I1: Mathworld Data -

-
-

- Max = 0.885ε (Mean = 0.55ε) -

-
-

- Max = 7.83ε (Mean = 2.79ε)

- (<tr1/cmath>: Max = 5ε (Mean = 2.15ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 128ε (Mean = 41ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 1.28e+43ε (Mean = 4.05e+42ε) And - other failures.) -

-
-

- Max = 6.52ε (Mean = 2.25ε) -

-
-

- Bessel In: Mathworld Data -

-
-

- Max = 3.46ε (Mean = 1.32ε) -

-
-

- Max = 1.8ε (Mean = 1.33ε)

- (<tr1/cmath>: Max = 430ε (Mean = 163ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.31ε (Mean = 0.838ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 3.67e+177ε (Mean = +INFε) And - other failures.) -

-
-

- Max = 463ε (Mean = 140ε) -

-
-

- Bessel Iv: Mathworld Data -

-
-

- Max = 2.97ε (Mean = 1.33ε) -

-
-

- Max = 4.12ε (Mean = 1.85ε)

- (<tr1/cmath>: Max = 616ε (Mean = 221ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 5.95ε (Mean = 2.08ε) And - other failures.)
(Rmath 3.0.2: - Max = 1e+04ε (Mean = 3.18e+03ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 4.12ε (Mean = 1.95ε) -

-
-

- Bessel In: Random Data -

-
-

- Max = 9.67ε (Mean = 1.89ε) -

-
-

- Max = 6.79ε (Mean = 1.15ε)

- (<tr1/cmath>: Max = 645ε (Mean = 132ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 261ε (Mean = 53.2ε) And - other failures.)
(Rmath 3.0.2: - Max = 7.37ε (Mean = 2.4ε))
(Cephes: Max - = 4.22e+06ε (Mean = 2.26e+05ε)) -

-
-

- Max = 176ε (Mean = 39.2ε) -

-
-

- Bessel Iv: Random Data -

-
-

- Max = 7.46ε (Mean = 1.54ε) -

-
-

- Max = 8.35ε (Mean = 1.49ε)

- (<tr1/cmath>: Max = 1.05e+03ε (Mean = - 224ε) And - other failures.) -

-
-

- Max = 0.661ε (Mean = 0.0441ε)
-
(GSL 1.16: Max = 6.18e+03ε (Mean = 1.55e+03ε) - And - other failures.)
(Rmath 3.0.2: - Max = 4.28e+08ε (Mean = 2.85e+07ε))
- (Cephes: Max = 6e+30ε (Mean - = 4e+29ε) And - other failures.) -

-
-

- Max = 283ε (Mean = 88.4ε) -

-
-

- Bessel Iv: Mathworld Data (large values) -

-
-

- Max = 3.67ε (Mean = 1.64ε) -

-
-

- Max = 14.7ε (Mean = 6.57ε)

- (<tr1/cmath>: Max = 118ε (Mean = 57.2ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 37ε (Mean = 18ε) And - other failures.)
(Rmath 3.0.2: - Max = 3.77e+168ε (Mean = 2.39e+168ε) And - other failures.)
(Cephes: - Max = 73.7ε (Mean = 58.5ε)) -

-
-

- Max = 14.7ε (Mean = 6.59ε) -

-
-
-
-

Table 6.46. Error rates for cyl_bessel_k (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel K0: Mathworld Data (Integer Version) -

-
-

- Max = 1.55ε (Mean = 0.837ε) -

-
-

- Max = 4.16ε (Mean = 1.46ε)

- (<tr1/cmath>: Max = 9.33ε (Mean = 3.25ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.2ε (Mean = 0.733ε))
(Rmath - 3.0.2: Max = 0.833ε (Mean = 0.601ε))
(Cephes: - Max = 1.1e+06ε (Mean = 3.68e+05ε)) -

-
-

- Max = 4.16ε (Mean = 1.49ε) -

-
-

- Bessel K1: Mathworld Data (Integer Version) -

-
-

- Max = 1ε (Mean = 0.573ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε)

- (<tr1/cmath>: Max = 8.94ε (Mean = 3.19ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.626ε (Mean = 0.333ε))
(Rmath - 3.0.2: Max = 0.894ε (Mean = 0.516ε))
(Cephes: - Max = 5.38e+05ε (Mean = 1.79e+05ε)) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Bessel Kn: Mathworld Data (Integer Version) -

-
-

- Max = 3.63ε (Mean = 1.46ε) -

-
-

- Max = 4.48ε (Mean = 2.14ε)

- (<tr1/cmath>: Max = 12.9ε (Mean = 4.91ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 168ε (Mean = 59.5ε))
(Rmath - 3.0.2: Max = 8.48ε (Mean = 2.98ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 4.48ε (Mean = 1.98ε) -

-
-
-
-

Table 6.47. Error rates for cyl_bessel_k

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel K0: Mathworld Data -

-
-

- Max = 1.55ε (Mean = 0.837ε) -

-
-

- Max = 4.16ε (Mean = 1.46ε)

- (<tr1/cmath>: Max = 9.33ε (Mean = 3.25ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.04ε (Mean = 2.16ε))
(Rmath - 3.0.2: Max = 0.833ε (Mean = 0.601ε)) -

-
-

- Max = 4.16ε (Mean = 1.49ε) -

-
-

- Bessel K1: Mathworld Data -

-
-

- Max = 1ε (Mean = 0.573ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε)

- (<tr1/cmath>: Max = 8.94ε (Mean = 3.19ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.26ε (Mean = 2.21ε))
(Rmath - 3.0.2: Max = 0.894ε (Mean = 0.516ε)) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Bessel Kn: Mathworld Data -

-
-

- Max = 3.63ε (Mean = 1.46ε) -

-
-

- Max = 4.48ε (Mean = 2.14ε)

- (<tr1/cmath>: Max = 12.9ε (Mean = 4.91ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.36ε (Mean = 1.43ε) And - other failures.)
(Rmath 3.0.2: - Max = 8.48ε (Mean = 2.98ε)) -

-
-

- Max = 4.48ε (Mean = 1.98ε) -

-
-

- Bessel Kv: Mathworld Data -

-
-

- Max = 4.78ε (Mean = 2.2ε) -

-
-

- Max = 3.58ε (Mean = 2.44ε)

- (<tr1/cmath>: Max = 13ε (Mean = 4.81ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 5.47ε (Mean = 2.04ε) And - other failures.)
(Rmath 3.0.2: - Max = 3.15ε (Mean = 1.35ε)) -

-
-

- Max = 3.58ε (Mean = 2.29ε) -

-
-

- Bessel Kv: Mathworld Data (large values) -

-
-

- Max = 59.8ε (Mean = 26.9ε) -

-
-

- Max = 42.3ε (Mean = 21ε)

- (<tr1/cmath>: Max = 42.3ε (Mean = 19.8ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 308ε (Mean = 142ε) And - other failures.)
(Rmath 3.0.2: - Max = 84.6ε (Mean = 37.8ε)) -

-
-

- Max = 43.1ε (Mean = 21.3ε) -

-
-

- Bessel Kn: Random Data -

-
-

- Max = 7.47ε (Mean = 1.4ε) -

-
-

- Max = 4.55ε (Mean = 1.09ε)

- (<tr1/cmath>: Max = 13.9ε (Mean = 2.91ε)) -

-
-

- Max = 0.764ε (Mean = 0.0348ε)
-
(GSL 1.16: Max = 8.71ε (Mean = 1.76ε) - And - other failures.)
(Rmath 3.0.2: - Max = 7.47ε (Mean = 1.34ε)) -

-
-

- Max = 4.55ε (Mean = 1.21ε) -

-
-

- Bessel Kv: Random Data -

-
-

- Max = 8.33ε (Mean = 1.62ε) -

-
-

- Max = 7.88ε (Mean = 1.48ε)

- (<tr1/cmath>: Max = 13.6ε (Mean = 2.68ε) - And - other failures.) -

-
-

- Max = 0.507ε (Mean = 0.0313ε)
-
(GSL 1.16: Max = 9.71ε (Mean = 1.47ε) - And - other failures.)
(Rmath 3.0.2: - Max = 7.37ε (Mean = 1.49ε)) -

-
-

- Max = 7.88ε (Mean = 1.49ε) -

-
-
-
- - Implementation -
-

- The following are handled as special cases first: -

-

- When computing Iv   for x < 0, then ν   must be an integer - or a domain error occurs. If ν   is an integer, then the function is odd if ν   is - odd and even if ν   is even, and we can reflect to x > 0. -

-

- For Iv   with v equal to 0, 1 or 0.5 are handled as special cases. -

-

- The 0 and 1 cases use minimax rational approximations on finite and infinite - intervals. The coefficients are from: -

-
    -
  • - J.M. Blair and C.A. Edwards, Stable rational minimax approximations - to the modified Bessel functions I_0(x) and I_1(x), Atomic - Energy of Canada Limited Report 4928, Chalk River, 1974. -
  • -
  • - S. Moshier, Methods and Programs for Mathematical Functions, - Ellis Horwood Ltd, Chichester, 1989. -
  • -
-

- While the 0.5 case is a simple trigonometric function: -

-

- I0.5(x) = sqrt(2 / πx) * sinh(x) -

-

- For Kv   with v an integer, the result is calculated using - the recurrence relation: -

-

- -

-

- starting from K0   and K1   which are calculated using rational the approximations - above. These rational approximations are accurate to around 19 digits, and - are therefore only used when T has no more than 64 binary digits of precision. -

-

- When x is small compared to v, - Ivx   is best computed directly from the series: -

-

- -

-

- In the general case, we first normalize ν   to [0, [inf]) - with the help of the reflection formulae: -

-

- -

-

- -

-

- Let μ   = ν - floor(ν + 1/2), then μ   is the fractional part of ν   such that |μ| <= 1/2 - (we need this for convergence later). The idea is to calculate Kμ(x) and Kμ+1(x), - and use them to obtain Iν(x) and Kν(x). -

-

- The algorithm is proposed by Temme in N.M. Temme, On the numerical - evaluation of the modified bessel function of the third kind, - Journal of Computational Physics, vol 19, 324 (1975), which needs two continued - fractions as well as the Wronskian: -

-

- -

-

- -

-

- -

-

- The continued fractions are computed using the modified Lentz's method (W.J. - Lentz, Generating Bessel functions in Mie scattering calculations - using continued fractions, Applied Optics, vol 15, 668 (1976)). - Their convergence rates depend on x, therefore we need - different strategies for large x and small x. -

-

- x > v, CF1 needs O(x) iterations - to converge, CF2 converges rapidly. -

-

- x <= v, CF1 converges rapidly, CF2 fails to converge - when x -> 0. -

-

- When x is large (x > 2), both - continued fractions converge (CF1 may be slow for really large x). - Kμ   and Kμ+1   -can be calculated by -

-

- -

-

- where -

-

- -

-

- S is also a series that is summed along with CF2, see - I.J. Thompson and A.R. Barnett, Modified Bessel functions I_v and - K_v of real order and complex argument to selected accuracy, Computer - Physics Communications, vol 47, 245 (1987). -

-

- When x is small (x <= 2), CF2 - convergence may fail (but CF1 works very well). The solution here is Temme's - series: -

-

- -

-

- where -

-

- -

-

- fk   and hk   -are also computed by recursions (involving gamma functions), but - the formulas are a little complicated, readers are referred to N.M. Temme, - On the numerical evaluation of the modified Bessel function of - the third kind, Journal of Computational Physics, vol 19, 324 - (1975). Note: Temme's series converge only for |μ| <= 1/2. -

-

- Kν(x) is then calculated from the forward recurrence, as is Kν+1(x). With these - two values and fν, the Wronskian yields Iν(x) directly. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/bessel/sph_bessel.html b/boost/libs/math/doc/html/math_toolkit/bessel/sph_bessel.html deleted file mode 100644 index a819e883..00000000 --- a/boost/libs/math/doc/html/math_toolkit/bessel/sph_bessel.html +++ /dev/null @@ -1,287 +0,0 @@ - - - -Spherical Bessel Functions of the First and Second Kinds - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-

- #include <boost/math/special_functions/bessel.hpp> -

-
template <class T1, class T2>
-calculated-result-type sph_bessel(unsigned v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type sph_bessel(unsigned v, T2 x, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type sph_neumann(unsigned v, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type sph_neumann(unsigned v, T2 x, const Policy&);
-
-
- - Description -
-

- The functions sph_bessel - and sph_neumann return - the result of the Spherical Bessel functions of the first and second kinds - respectively: -

-

- sph_bessel(v, x) = jv(x) -

-

- sph_neumann(v, x) = yv(x) = nv(x) -

-

- where: -

-

- -

-

- The return type of these functions is computed using the result - type calculation rules for the single argument type T. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The functions return the result of domain_error - whenever the result is undefined or complex: this occurs when x < 0. -

-

- The jv   function is cyclic like Jv   but differs in its behaviour at the origin: -

-

- -

-

- Likewise yv   is also cyclic for large x, but tends to -∞   -for small x: -

-

- -

-
- - Testing -
-

- There are two sets of test values: spot values calculated using functions.wolfram.com, - and a much larger set of tests computed using a simplified version of this - implementation (with all the special case handling removed). -

-
- - Accuracy -
-
-

Table 6.48. Error rates for sph_bessel

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel j: Random Data -

-
-

- Max = 245ε (Mean = 16.3ε) -

-
-

- Max = 243ε (Mean = 13.3ε)

- (<tr1/cmath>: Max = 1.91e+06ε (Mean = - 1.09e+05ε)) -

-
-

- Max = 0.978ε (Mean = 0.0539ε)
-
(GSL 1.16: Max = 1.79e+03ε (Mean = 107ε)) -

-
-

- Max = 243ε (Mean = 33.7ε) -

-
-
-
-

Table 6.49. Error rates for sph_neumann

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- y: Random Data -

-
-

- Max = 281ε (Mean = 31.1ε) -

-
-

- Max = 0.995ε (Mean = 0.0665ε)
-
(GSL 1.16: Max = 8.5e+04ε (Mean = 5.33e+03ε)) -

-
-

- Max = 234ε (Mean = 19.5ε)

- (<tr1/cmath>: Max = 1.6e+06ε (Mean = 1.4e+05ε)) -

-
-

- Max = 234ε (Mean = 19.8ε) -

-
-
-
- - Implementation -
-

- Other than error handling and a couple of special cases these functions are - implemented directly in terms of their definitions: -

-

- -

-

- The special cases occur for: -

-

- j0  = sinc_pi(x) = sin(x) - / x -

-

- and for small x < 1, we can use the series: -

-

- -

-

- which neatly avoids the problem of calculating 0/0 that can occur with the - main definition as x → 0. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/building.html b/boost/libs/math/doc/html/math_toolkit/building.html deleted file mode 100644 index 196648f8..00000000 --- a/boost/libs/math/doc/html/math_toolkit/building.html +++ /dev/null @@ -1,164 +0,0 @@ - - - -If and How to Build a Boost.Math Library, and its Examples and Tests - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Building a - Library (shared, dynamic .dll or static .lib) -
-

- The first thing you need to ask yourself is "Do I need to build anything - at all?" as the bulk of this library is header only: meaning you can use - it just by #including the necessary header(s). -

-

- For most simple uses, including a header (or few) is best for compile time - and program size. -

-

- Refer to C99 and C++ TR1 C-style Functions - for pros and cons of using the TR1 components as opposed to the header only - ones. -

-

- The only time you need to build the - library is if you want to use the extern - "C" functions declared in - <boost/math/tr1.hpp>. To build this using Boost.Build, from - a commandline boost-root directory issue a command like: -

-
bjam toolset=gcc --with-math install
-
-

- that will do the job on Linux, while: -

-
bjam toolset=msvc --with-math --build-type=complete stage
-
-

- will work better on Windows (leaving libraries built in sub-folder /stage below - your Boost root directory). Either way you should consult the getting - started guide for more information. -

-

- You can also build the libraries from your favourite IDE or command line tool: - each extern "C" - function declared in <boost/math/tr1.hpp> has its own source file with the same name - in libs/math/src/tr1. Just - select the sources corresponding to the functions you are using and build them - into a library, or else add them directly to your project. Note that the directory - libs/math/src/tr1 will - need to be in your compiler's #include path as well as the boost-root directory - (MSVC Tools, Options, Projects and Solutions, VC++ Directories, Include files). -

-
- - - - - -
[Note]Note

- If you are using a Windows compiler that supports auto-linking and you have - built the sources yourself (or added them directly to your project) then - you will need to prevent <boost/math/tr1.hpp> - from trying to auto-link to the binaries that Boost.Build generates. You - can do this by defining either BOOST_MATH_NO_LIB or BOOST_ALL_NO_LIB at project - level (so the defines get passed to each compiler invocation). -

-

- Optionally the sources in libs/math/src/tr1 - have support for using libs/math/src/tr1/pch.hpp as a precompiled header if - your compiler supports precompiled headers. Note that normally this - header is a do-nothing include: to activate the header so that it #includes - everything required by all the sources you will need to define BOOST_BUILD_PCH_ENABLED - on the command line, both when building the pre-compiled header and when building - the sources. Boost.Build will do this automatically when appropriate. -

-
- - Building - the Examples -
-

- The examples are all located in libs/math/example, they can all be built without reference - to any external libraries, either with Boost.Build using the supplied Jamfile, - or from your compiler's command line. The only requirement is that the Boost - headers are in your compilers #include search path. -

-
- - Building - the Tests -
-

- The tests are located in libs/math/test and are best built using Boost.Build - and the supplied Jamfile. If you plan to build them separately from your favourite - IDE then you will need to add libs/math/test to the list of your compiler's search - paths. -

-

- You will also need to build and link to the Boost.Regex library for many of - the tests: this can built from the command line by following the getting - started guide, using a command such as: -

-
bjam toolset=gcc --with-regex install
-
-

- or -

-
bjam toolset=msvc --with-regex --build-type=complete stage
-
-

- depending on whether you are on Linux or Windows. -

-

- Many of the tests have optional precompiled header support using the header - libs/math/test/pch.hpp. Note that normally this header is a - do-nothing include: to activate the header so that it #includes everything - required by all the sources you will need to define BOOST_BUILD_PCH_ENABLED - on the command line, both when building the pre-compiled header and when building - the sources. Boost.Build will do this automatically when appropriate. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/c99.html b/boost/libs/math/doc/html/math_toolkit/c99.html deleted file mode 100644 index a8968b4f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/c99.html +++ /dev/null @@ -1,477 +0,0 @@ - - - -C99 C Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Supported - C99 Functions -
-
namespace boost{ namespace math{ namespace tr1{ extern "C"{
-
-typedef unspecified float_t;
-typedef unspecified double_t;
-
-double acosh(double x);
-float acoshf(float x);
-long double acoshl(long double x);
-
-double asinh(double x);
-float asinhf(float x);
-long double asinhl(long double x);
-
-double atanh(double x);
-float atanhf(float x);
-long double atanhl(long double x);
-
-double cbrt(double x);
-float cbrtf(float x);
-long double cbrtl(long double x);
-
-double copysign(double x, double y);
-float copysignf(float x, float y);
-long double copysignl(long double x, long double y);
-
-double erf(double x);
-float erff(float x);
-long double erfl(long double x);
-
-double erfc(double x);
-float erfcf(float x);
-long double erfcl(long double x);
-
-double expm1(double x);
-float expm1f(float x);
-long double expm1l(long double x);
-
-double fmax(double x, double y);
-float fmaxf(float x, float y);
-long double fmaxl(long double x, long double y);
-
-double fmin(double x, double y);
-float fminf(float x, float y);
-long double fminl(long double x, long double y);
-
-double hypot(double x, double y);
-float hypotf(float x, float y);
-long double hypotl(long double x, long double y);
-
-double lgamma(double x);
-float lgammaf(float x);
-long double lgammal(long double x);
-
-long long llround(double x);
-long long llroundf(float x);
-long long llroundl(long double x);
-
-double log1p(double x);
-float log1pf(float x);
-long double log1pl(long double x);
-
-long lround(double x);
-long lroundf(float x);
-long lroundl(long double x);
-
-double nextafter(double x, double y);
-float nextafterf(float x, float y);
-long double nextafterl(long double x, long double y);
-
-double nexttoward(double x, long double y);
-float nexttowardf(float x, long double y);
-long double nexttowardl(long double x, long double y);
-
-double round(double x);
-float roundf(float x);
-long double roundl(long double x);
-
-double tgamma(double x);
-float tgammaf(float x);
-long double tgammal(long double x);
-
-double trunc(double x);
-float truncf(float x);
-long double truncl(long double x);
-
-}}}} // namespaces
-
-

- In addition sufficient additional overloads of the double - versions of the above functions are provided, so that calling the function - with any mixture of float, double, long - double, or integer - arguments is supported, with the return type determined by the result - type calculation rules. -

-

- For example: -

-
acoshf(2.0f);  // float version, returns float.
-acosh(2.0f);   // also calls the float version and returns float.
-acosh(2.0);    // double version, returns double.
-acoshl(2.0L);  // long double version, returns a long double.
-acosh(2.0L);   // also calls the long double version.
-acosh(2);      // integer argument is treated as a double, returns double.
-
-
- - Quick - Reference -
-

- More detailed descriptions of these functions are available in the C99 standard. -

-
typedef unspecified float_t;
-typedef unspecified double_t;
-
-

- In this implementation float_t - is the same as type float, and - double_t the same as type - double unless the preprocessor - symbol FLT_EVAL_METHOD is defined, in which case these are set as follows: -

-
----- - - - - - - - - - - - - - - - - - - - - - - -
-

- FLT_EVAL_METHOD -

-
-

- float_t -

-
-

- double_t -

-
-

- 0 -

-
-

- float -

-
-

- double -

-
-

- 1 -

-
-

- double -

-
-

- double -

-
-

- 2 -

-
-

- long double -

-
-

- long double -

-
-
double acosh(double x);
-float acoshf(float x);
-long double acoshl(long double x);
-
-

- Returns the inverse hyperbolic cosine of x. -

-

- See also acosh for the - full template (header only) version of this function. -

-
double asinh(double x);
-float asinhf(float x);
-long double asinhl(long double x);
-
-

- Returns the inverse hyperbolic sine of x. -

-

- See also asinh for the - full template (header only) version of this function. -

-
double atanh(double x);
-float atanhf(float x);
-long double atanhl(long double x);
-
-

- Returns the inverse hyperbolic tangent of x. -

-

- See also atanh for the - full template (header only) version of this function. -

-
double cbrt(double x);
-float cbrtf(float x);
-long double cbrtl(long double x);
-
-

- Returns the cubed root of x. -

-

- See also cbrt for the full - template (header only) version of this function. -

-
double copysign(double x, double y);
-float copysignf(float x, float y);
-long double copysignl(long double x, long double y);
-
-

- Returns a value with the magnitude of x and the sign of - y. -

-
double erf(double x);
-float erff(float x);
-long double erfl(long double x);
-
-

- Returns the error function of x: -

-

- -

-

- See also erf for - the full template (header only) version of this function. -

-
double erfc(double x);
-float erfcf(float x);
-long double erfcl(long double x);
-
-

- Returns the complementary error function of x 1-erf(x) - without the loss of precision implied by the subtraction. -

-

- See also erfc for - the full template (header only) version of this function. -

-
double expm1(double x);
-float expm1f(float x);
-long double expm1l(long double x);
-
-

- Returns exp(x)-1 - without the loss of precision implied by the subtraction. -

-

- See also expm1 for the full - template (header only) version of this function. -

-
double fmax(double x, double y);
-float fmaxf(float x, float y);
-long double fmaxl(long double x, long double y);
-
-

- Returns the larger (most positive) of x and y. -

-
double fmin(double x, double y);
-float fminf(float x, float y);
-long double fminl(long double x, long double y);
-
-

- Returns the smaller (most negative) of x and y. -

-
double hypot(double x, double y);
-float hypotf(float x, float y);
-long double hypotl(long double x, long double y);
-
-

- Returns sqrt(x*x - + y*y) - without the danger of numeric overflow implied by that formulation. -

-

- See also hypot for the full - template (header only) version of this function. -

-
double lgamma(double x);
-float lgammaf(float x);
-long double lgammal(long double x);
-
-

- Returns the log of the gamma function of x. -

-

- -

-

- See also lgamma for the - full template (header only) version of this function. -

-
long long llround(double x);
-long long llroundf(float x);
-long long llroundl(long double x);
-
-

- Returns the value x rounded to the nearest integer as - a long long: - equivalent to floor(x + 0.5) -

-

- See also round for the full - template (header only) version of this function. -

-
double log1p(double x);
-float log1pf(float x);
-long double log1pl(long double x);
-
-

- Returns the log(x+1) without the loss of precision implied by that - formulation. -

-

- See also log1p for the full - template (header only) version of this function. -

-
long lround(double x);
-long lroundf(float x);
-long lroundl(long double x);
-
-

- Returns the value x rounded to the nearest integer as - a long: equivalent to floor(x - + 0.5) -

-

- See also round for the full - template (header only) version of this function. -

-
double nextafter(double x, double y);
-float nextafterf(float x, float y);
-long double nextafterl(long double x, long double y);
-
-

- Returns the next representable floating point number after x - in the direction of y, or x if x == y. -

-
double nexttoward(double x, long double y);
-float nexttowardf(float x, long double y);
-long double nexttowardl(long double x, long double y);
-
-

- As nextafter, but with y - always expressed as a long double. -

-
double round(double x);
-float roundf(float x);
-long double roundl(long double x);
-
-

- Returns the value x rounded to the nearest integer: equivalent - to floor(x + 0.5) -

-

- See also round for the full - template (header only) version of this function. -

-
double tgamma(double x);
-float tgammaf(float x);
-long double tgammal(long double x);
-
-

- Returns the gamma function of x: -

-

- -

-

- See also tgamma for the - full template (header only) version of this function. -

-
double trunc(double x);
-float truncf(float x);
-long double truncl(long double x);
-
-

- Returns x truncated to the nearest integer. -

-

- See also trunc for the full - template (header only) version of this function. -

-

- See also C99 - ISO Standard -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/comp_compilers.html b/boost/libs/math/doc/html/math_toolkit/comp_compilers.html deleted file mode 100644 index 28eb3cff..00000000 --- a/boost/libs/math/doc/html/math_toolkit/comp_compilers.html +++ /dev/null @@ -1,2412 +0,0 @@ - - - -Comparing Different Compilers - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- By running our performance test suite multiple times, we can compare the effect - of different compilers: as might be expected, the differences are generally - small compared to say disabling internal use of long - double. However, there are still gains - to be main, particularly from some of the commercial offerings: -

-
-

Table 16.5. Compiler Comparison on Windows x64

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Microsoft Visual C++ version 14.0
boost 1.61 -

-
-

- GNU C++ version 5.3.0
boost 1.61 -

-
-

- GNU C++ version 5.3.0
boost 1.61
promote_double<false> -

-
-

- Intel C++ C++0x mode version 1600
boost 1.61 -

-
-

- assoc_laguerre -

-
-

- 1.16
(208ns)
-

-
-

- 1.21
(217ns)
-

-
-

- 1.06
(190ns)
-

-
-

- 1.00
(180ns)
-

-
-

- assoc_legendre -

-
-

- 1.57
(151ns)
-

-
-

- 1.80
(173ns)
-

-
-

- 1.16
(111ns)
-

-
-

- 1.00
(96ns)
-

-
-

- beta -

-
-

- 1.74
(176ns)
-

-
-

- 3.78
(382ns)
-

-
-

- 2.17
(219ns)
-

-
-

- 1.00
(101ns)
-

-
-

- beta (incomplete) -

-
-

- 1.44
(520ns)
-

-
-

- 3.03
(1096ns)
-

-
-

- 1.84
(666ns)
-

-
-

- 1.00
(362ns)
-

-
-

- cbrt -

-
-

- 3.21
(45ns)
-

-
-

- 3.43
(48ns)
-

-
-

- 3.07
(43ns)
-

-
-

- 1.00
(14ns)
-

-
-

- cyl_bessel_i -

-
-

- 1.11
(404ns)
-

-
-

- 2.78
(1016ns)
-

-
-

- 1.21
(442ns)
-

-
-

- 1.00
(365ns)
-

-
-

- cyl_bessel_i (integer order) -

-
-

- 1.29
(261ns)
-

-
-

- 3.16
(638ns)
-

-
-

- 1.22
(247ns)
-

-
-

- 1.00
(202ns)
-

-
-

- cyl_bessel_j -

-
-

- 1.19
(488ns)
-

-
-

- 2.06
(841ns)
-

-
-

- 1.25
(513ns)
-

-
-

- 1.00
(409ns)
-

-
-

- cyl_bessel_j (integer order) -

-
-

- 1.36
(103ns)
-

-
-

- 2.39
(182ns)
-

-
-

- 1.47
(112ns)
-

-
-

- 1.00
(76ns)
-

-
-

- cyl_bessel_k -

-
-

- 1.04
(747ns)
-

-
-

- 9.43
(6743ns)
-

-
-

- 1.03
(734ns)
-

-
-

- 1.00
(715ns)
-

-
-

- cyl_bessel_k (integer order) -

-
-

- 1.26
(419ns)
-

-
-

- 10.49
(3494ns)
-

-
-

- 1.10
(367ns)
-

-
-

- 1.00
(333ns)
-

-
-

- cyl_neumann -

-
-

- 16.76
(11212ns)
-

-
-

- 2.01
(1346ns)
-

-
-

- 1.00
(669ns)
-

-
-

- 15.35
(10266ns)
-

-
-

- cyl_neumann (integer order) -

-
-

- 1.00
(225ns)
-

-
-

- 1.79
(403ns)
-

-
-

- 1.24
(279ns)
-

-
-

- 1.02
(229ns)
-

-
-

- digamma -

-
-

- 1.20
(24ns)
-

-
-

- 3.75
(75ns)
-

-
-

- 2.15
(43ns)
-

-
-

- 1.00
(20ns)
-

-
-

- ellint_1 -

-
-

- 1.87
(329ns)
-

-
-

- 1.99
(350ns)
-

-
-

- 1.32
(232ns)
-

-
-

- 1.00
(176ns)
-

-
-

- ellint_1 (complete) -

-
-

- 2.18
(61ns)
-

-
-

- 2.57
(72ns)
-

-
-

- 1.57
(44ns)
-

-
-

- 1.00
(28ns)
-

-
-

- ellint_2 -

-
-

- 1.78
(525ns)
-

-
-

- 2.17
(640ns)
-

-
-

- 1.52
(449ns)
-

-
-

- 1.00
(295ns)
-

-
-

- ellint_2 (complete) -

-
-

- 2.14
(62ns)
-

-
-

- 2.07
(60ns)
-

-
-

- 1.24
(36ns)
-

-
-

- 1.00
(29ns)
-

-
-

- ellint_3 -

-
-

- 1.94
(1155ns)
-

-
-

- 2.91
(1733ns)
-

-
-

- 1.65
(986ns)
-

-
-

- 1.00
(596ns)
-

-
-

- ellint_3 (complete) -

-
-

- 2.05
(721ns)
-

-
-

- 3.07
(1079ns)
-

-
-

- 1.46
(514ns)
-

-
-

- 1.00
(352ns)
-

-
-

- ellint_rc -

-
-

- 1.58
(49ns)
-

-
-

- 2.68
(83ns)
-

-
-

- 1.55
(48ns)
-

-
-

- 1.00
(31ns)
-

-
-

- ellint_rd -

-
-

- 1.75
(332ns)
-

-
-

- 1.83
(348ns)
-

-
-

- 1.40
(266ns)
-

-
-

- 1.00
(190ns)
-

-
-

- ellint_rf -

-
-

- 1.69
(71ns)
-

-
-

- 2.40
(101ns)
-

-
-

- 1.57
(66ns)
-

-
-

- 1.00
(42ns)
-

-
-

- ellint_rj -

-
-

- 1.91
(344ns)
-

-
-

- 2.96
(532ns)
-

-
-

- 1.43
(257ns)
-

-
-

- 1.00
(180ns)
-

-
-

- erf -

-
-

- 1.77
(23ns)
-

-
-

- 2.92
(38ns)
-

-
-

- 1.92
(25ns)
-

-
-

- 1.00
(13ns)
-

-
-

- erfc -

-
-

- 1.29
(22ns)
-

-
-

- 3.41
(58ns)
-

-
-

- 2.06
(35ns)
-

-
-

- 1.00
(17ns)
-

-
-

- expint -

-
-

- 1.39
(39ns)
-

-
-

- 3.07
(86ns)
-

-
-

- 2.14
(60ns)
-

-
-

- 1.00
(28ns)
-

-
-

- expint (En) -

-
-

- 1.10
(117ns)
-

-
-

- 2.19
(232ns)
-

-
-

- 1.38
(146ns)
-

-
-

- 1.00
(106ns)
-

-
-

- expm1 -

-
-

- 1.00
(10ns)
-

-
-

- 3.10
(31ns)
-

-
-

- 2.40
(24ns)
-

-
-

- 1.10
(11ns)
-

-
-

- gamma_p -

-
-

- 1.29
(192ns)
-

-
-

- 2.64
(393ns)
-

-
-

- 1.71
(255ns)
-

-
-

- 1.00
(149ns)
-

-
-

- gamma_p_inv -

-
-

- 1.36
(706ns)
-

-
-

- 2.47
(1288ns)
-

-
-

- 1.91
(997ns)
-

-
-

- 1.00
(521ns)
-

-
-

- gamma_q -

-
-

- 1.16
(179ns)
-

-
-

- 2.79
(429ns)
-

-
-

- 1.61
(248ns)
-

-
-

- 1.00
(154ns)
-

-
-

- gamma_q_inv -

-
-

- 1.37
(703ns)
-

-
-

- 2.38
(1225ns)
-

-
-

- 1.89
(971ns)
-

-
-

- 1.00
(515ns)
-

-
-

- ibeta -

-
-

- 1.34
(520ns)
-

-
-

- 3.13
(1218ns)
-

-
-

- 1.83
(711ns)
-

-
-

- 1.00
(389ns)
-

-
-

- ibeta_inv -

-
-

- 1.51
(2193ns)
-

-
-

- 2.81
(4085ns)
-

-
-

- 2.27
(3303ns)
-

-
-

- 1.00
(1452ns)
-

-
-

- ibetac -

-
-

- 1.29
(518ns)
-

-
-

- 2.94
(1179ns)
-

-
-

- 1.73
(694ns)
-

-
-

- 1.00
(401ns)
-

-
-

- ibetac_inv -

-
-

- 1.41
(2045ns)
-

-
-

- 2.80
(4058ns)
-

-
-

- 1.78
(2572ns)
-

-
-

- 1.00
(1447ns)
-

-
-

- jacobi_cn -

-
-

- 1.36
(182ns)
-

-
-

- 3.72
(499ns)
-

-
-

- 2.28
(306ns)
-

-
-

- 1.00
(134ns)
-

-
-

- jacobi_dn -

-
-

- 1.82
(262ns)
-

-
-

- 3.68
(530ns)
-

-
-

- 2.27
(327ns)
-

-
-

- 1.00
(144ns)
-

-
-

- jacobi_sn -

-
-

- 1.31
(179ns)
-

-
-

- 3.73
(511ns)
-

-
-

- 2.43
(333ns)
-

-
-

- 1.00
(137ns)
-

-
-

- laguerre -

-
-

- 1.00
(121ns)
-

-
-

- 1.15
(139ns)
-

-
-

- 1.04
(126ns)
-

-
-

- 1.10
(133ns)
-

-
-

- legendre -

-
-

- 1.07
(364ns)
-

-
-

- 1.16
(396ns)
-

-
-

- 1.00
(340ns)
-

-
-

- 1.13
(383ns)
-

-
-

- legendre Q -

-
-

- 1.00
(427ns)
-

-
-

- 1.20
(512ns)
-

-
-

- 1.01
(430ns)
-

-
-

- 1.07
(455ns)
-

-
-

- lgamma -

-
-

- 1.00
(73ns)
-

-
-

- 3.07
(224ns)
-

-
-

- 1.82
(133ns)
-

-
-

- 1.05
(77ns)
-

-
-

- log1p -

-
-

- 1.00
(14ns)
-

-
-

- 2.00
(28ns)
-

-
-

- 1.14
(16ns)
-

-
-

- 1.00
(14ns)
-

-
-

- polygamma -

-
-

- 1.16
(3773ns)
-

-
-

- 1.02
(3320ns)
-

-
-

- 2.24
(7270ns)
-

-
-

- 1.00
(3246ns)
-

-
-

- sph_bessel -

-
-

- 1.17
(1005ns)
-

-
-

- 1.55
(1325ns)
-

-
-

- 1.09
(931ns)
-

-
-

- 1.00
(857ns)
-

-
-

- sph_neumann -

-
-

- 1.08
(1827ns)
-

-
-

- 2.07
(3483ns)
-

-
-

- 1.00
(1685ns)
-

-
-

- 1.01
(1702ns)
-

-
-

- tgamma -

-
-

- 1.31
(77ns)
-

-
-

- 4.03
(238ns)
-

-
-

- 2.49
(147ns)
-

-
-

- 1.00
(59ns)
-

-
-

- tgamma (incomplete) -

-
-

- 1.26
(276ns)
-

-
-

- 2.52
(552ns)
-

-
-

- 1.73
(379ns)
-

-
-

- 1.00
(219ns)
-

-
-

- trigamma -

-
-

- 1.35
(23ns)
-

-
-

- 2.88
(49ns)
-

-
-

- 1.41
(24ns)
-

-
-

- 1.00
(17ns)
-

-
-

- zeta -

-
-

- 1.34
(121ns)
-

-
-

- 3.83
(345ns)
-

-
-

- 2.52
(227ns)
-

-
-

- 1.00
(90ns)
-

-
-
-
-

Table 16.6. Compiler Comparison on linux

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- GNU C++ version 5.3.0
boost 1.61 -

-
-

- GNU C++ version 5.3.0
boost 1.61
promote_double<false> -

-
-

- assoc_laguerre -

-
-

- 1.36
(263ns)
-

-
-

- 1.00
(194ns)
-

-
-

- assoc_legendre -

-
-

- 2.55
(258ns)
-

-
-

- 1.00
(101ns)
-

-
-

- beta -

-
-

- 4.71
(734ns)
-

-
-

- 1.00
(156ns)
-

-
-

- beta (incomplete) -

-
-

- 3.12
(1796ns)
-

-
-

- 1.00
(575ns)
-

-
-

- cbrt -

-
-

- 2.53
(43ns)
-

-
-

- 1.00
(17ns)
-

-
-

- cyl_bessel_i -

-
-

- 3.47
(1410ns)
-

-
-

- 1.00
(406ns)
-

-
-

- cyl_bessel_i (integer order) -

-
-

- 3.38
(893ns)
-

-
-

- 1.00
(264ns)
-

-
-

- cyl_bessel_j -

-
-

- 2.69
(1071ns)
-

-
-

- 1.00
(398ns)
-

-
-

- cyl_bessel_j (integer order) -

-
-

- 2.59
(275ns)
-

-
-

- 1.00
(106ns)
-

-
-

- cyl_bessel_k -

-
-

- 6.86
(4589ns)
-

-
-

- 1.00
(669ns)
-

-
-

- cyl_bessel_k (integer order) -

-
-

- 10.17
(3673ns)
-

-
-

- 1.00
(361ns)
-

-
-

- cyl_neumann -

-
-

- 2.48
(1478ns)
-

-
-

- 1.00
(597ns)
-

-
-

- cyl_neumann (integer order) -

-
-

- 2.20
(484ns)
-

-
-

- 1.00
(220ns)
-

-
-

- digamma -

-
-

- 1.92
(75ns)
-

-
-

- 1.00
(39ns)
-

-
-

- ellint_1 -

-
-

- 1.94
(358ns)
-

-
-

- 1.00
(185ns)
-

-
-

- ellint_1 (complete) -

-
-

- 1.86
(52ns)
-

-
-

- 1.00
(28ns)
-

-
-

- ellint_2 -

-
-

- 2.32
(805ns)
-

-
-

- 1.00
(347ns)
-

-
-

- ellint_2 (complete) -

-
-

- 1.71
(60ns)
-

-
-

- 1.00
(35ns)
-

-
-

- ellint_3 -

-
-

- 2.75
(2154ns)
-

-
-

- 1.00
(783ns)
-

-
-

- ellint_3 (complete) -

-
-

- 2.23
(1172ns)
-

-
-

- 1.00
(525ns)
-

-
-

- ellint_rc -

-
-

- 1.57
(77ns)
-

-
-

- 1.00
(49ns)
-

-
-

- ellint_rd -

-
-

- 2.23
(520ns)
-

-
-

- 1.00
(233ns)
-

-
-

- ellint_rf -

-
-

- 1.51
(95ns)
-

-
-

- 1.00
(63ns)
-

-
-

- ellint_rj -

-
-

- 2.33
(481ns)
-

-
-

- 1.00
(206ns)
-

-
-

- erf -

-
-

- 2.60
(39ns)
-

-
-

- 1.00
(15ns)
-

-
-

- erfc -

-
-

- 2.68
(59ns)
-

-
-

- 1.00
(22ns)
-

-
-

- expint -

-
-

- 2.47
(94ns)
-

-
-

- 1.00
(38ns)
-

-
-

- expint (En) -

-
-

- 1.86
(273ns)
-

-
-

- 1.00
(147ns)
-

-
-

- expm1 -

-
-

- 1.00
(10ns)
-

-
-

- 1.10
(11ns)
-

-
-

- gamma_p -

-
-

- 2.42
(492ns)
-

-
-

- 1.00
(203ns)
-

-
-

- gamma_p_inv -

-
-

- 2.24
(1577ns)
-

-
-

- 1.00
(704ns)
-

-
-

- gamma_q -

-
-

- 2.53
(508ns)
-

-
-

- 1.00
(201ns)
-

-
-

- gamma_q_inv -

-
-

- 2.45
(1841ns)
-

-
-

- 1.00
(751ns)
-

-
-

- ibeta -

-
-

- 2.71
(1715ns)
-

-
-

- 1.00
(634ns)
-

-
-

- ibeta_inv -

-
-

- 2.58
(5742ns)
-

-
-

- 1.00
(2224ns)
-

-
-

- ibetac -

-
-

- 2.66
(1736ns)
-

-
-

- 1.00
(653ns)
-

-
-

- ibetac_inv -

-
-

- 2.44
(5451ns)
-

-
-

- 1.00
(2237ns)
-

-
-

- jacobi_cn -

-
-

- 2.77
(476ns)
-

-
-

- 1.00
(172ns)
-

-
-

- jacobi_dn -

-
-

- 2.80
(481ns)
-

-
-

- 1.00
(172ns)
-

-
-

- jacobi_sn -

-
-

- 2.86
(492ns)
-

-
-

- 1.00
(172ns)
-

-
-

- laguerre -

-
-

- 1.09
(139ns)
-

-
-

- 1.00
(128ns)
-

-
-

- legendre -

-
-

- 1.16
(399ns)
-

-
-

- 1.00
(345ns)
-

-
-

- legendre Q -

-
-

- 1.18
(496ns)
-

-
-

- 1.00
(422ns)
-

-
-

- lgamma -

-
-

- 2.20
(257ns)
-

-
-

- 1.00
(117ns)
-

-
-

- log1p -

-
-

- 1.00
(12ns)
-

-
-

- 1.00
(12ns)
-

-
-

- polygamma -

-
-

- 3.93
(2885ns)
-

-
-

- 1.00
(734ns)
-

-
-

- sph_bessel -

-
-

- 1.71
(1563ns)
-

-
-

- 1.00
(915ns)
-

-
-

- sph_neumann -

-
-

- 2.15
(3745ns)
-

-
-

- 1.00
(1744ns)
-

-
-

- tgamma -

-
-

- 3.69
(354ns)
-

-
-

- 1.00
(96ns)
-

-
-

- tgamma (incomplete) -

-
-

- 2.35
(744ns)
-

-
-

- 1.00
(316ns)
-

-
-

- trigamma -

-
-

- 1.64
(36ns)
-

-
-

- 1.00
(22ns)
-

-
-

- zeta -

-
-

- 2.71
(509ns)
-

-
-

- 1.00
(188ns)
-

-
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/comparisons.html b/boost/libs/math/doc/html/math_toolkit/comparisons.html deleted file mode 100644 index b414963d..00000000 --- a/boost/libs/math/doc/html/math_toolkit/comparisons.html +++ /dev/null @@ -1,270 +0,0 @@ - - - -Comparisons to Other Open Source Libraries - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- We've run our performance tests both for our own code, and against other open - source implementations of the same functions. The results are presented below - to give you a rough idea of how they all compare. In order to give a more-or-less - level playing field our test data was screened against all the libraries being - tested, and any unsupported domains removed, likewise for any test cases that - gave large errors or unexpected non-finite values. -

-
- - - - - -
[Caution]Caution

- You should exercise extreme caution when interpreting these results, relative - performance may vary by platform, the tests use data that gives good code - coverage of our code, but which may skew the results - towards the corner cases. Finally, remember that different libraries make - different choices with regard to performance verses numerical stability. -

-

- The first results compare standard library functions to Boost equivalents with - MSVC-14.0: -

-
-

Table 16.7. Library Comparison with Microsoft Visual C++ version 14.0 on Windows - x64

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- boost 1.61 -

-
-

- math.h -

-
-

- cbrt
(85/85 tests selected) -

-
-

- 1.00
(45ns)
-

-
-

- 1.44
(65ns)
-

-
-

- cyl_bessel_j (integer order)
(267/268 tests selected) -

-
-

- 1.00
(103ns)
-

-
-

- 2.11
(217ns)
-

-
-

- cyl_neumann (integer order)
(428/428 tests selected) -

-
-

- 1.57
(225ns)
-

-
-

- 1.00
(143ns)
-

-
-

- erf
(950/950 tests selected) -

-
-

- 1.10
(23ns)
-

-
-

- 1.00
(21ns)
-

-
-

- erfc
(950/950 tests selected) -

-
-

- 1.00
(22ns)
-

-
-

- 3.36
(74ns)
-

-
-

- expm1
(80/80 tests selected) -

-
-

- 1.00
(10ns)
-

-
-

- 1.10
(11ns)
-

-
-

- lgamma
(400/400 tests selected) -

-
-

- 1.00
(73ns)
-

-
-

- 1.74
(127ns)
-

-
-

- log1p
(80/80 tests selected) -

-
-

- 1.08
(14ns)
-

-
-

- 1.00
(13ns)
-

-
-

- tgamma
(400/400 tests selected) -

-
-

- 1.00
(77ns)
-

-
-

- 12.12
(933ns)
-

-
-
-

- On Linux with GCC, we can also compare to the TR1 functions, and to GSL and - RMath: -

-

- [table_Library_Comparison_with_GNU_C_version_5_1_0_on_linux] -

-

- And finally we can compare the statistical distributions to GSL, RMath and - DCDFLIB: -

-

- [table_Distribution_performance_comparison_with_GNU_C_version_5_1_0_on_linux] -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/compile_time.html b/boost/libs/math/doc/html/math_toolkit/compile_time.html deleted file mode 100644 index b9021064..00000000 --- a/boost/libs/math/doc/html/math_toolkit/compile_time.html +++ /dev/null @@ -1,106 +0,0 @@ - - - -Compile-time GCD and LCM determination - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Header: <boost/math/common_factor_ct.hpp> -

-
typedef unspecified static_gcd_type;
-
-template < static_gcd_type Value1, static_gcd_type Value2 >
-struct boost::math::static_gcd : public mpl::integral_c<static_gcd_type, implementation_defined>
-{
-};
-
-template < static_gcd_type Value1, static_gcd_type Value2 >
-struct boost::math::static_lcm : public mpl::integral_c<static_gcd_type, implementation_defined>
-{
-};
-
-

- The type static_gcd_type is - the widest unsigned-integer-type that is supported for use in integral-constant-expressions - by the compiler. Usually this the same type as boost::uintmax_t, - but may fall back to being unsigned - long for some older compilers. -

-

- The boost::math::static_gcd and boost::math::static_lcm class templates take - two value-based template parameters of the static_gcd_type - type and inherit from the type boost::mpl::integral_c. Inherited from the base class, - they have a member value that is the greatest common factor - or least common multiple, respectively, of the template arguments. A compile-time - error will occur if the least common multiple is beyond the range of static_gcd_type. -

-

- - Example -

-
#include <boost/math/common_factor.hpp>
-#include <algorithm>
-#include <iterator>
-#include <iostream>
-
-int main()
-{
-   using std::cout;
-   using std::endl;
-
-   cout << "The GCD and LCM of 6 and 15 are "
-   << boost::math::gcd(6, 15) << " and "
-   << boost::math::lcm(6, 15) << ", respectively."
-   << endl;
-
-   cout << "The GCD and LCM of 8 and 9 are "
-   << boost::math::static_gcd<8, 9>::value
-   << " and "
-   << boost::math::static_lcm<8, 9>::value
-   << ", respectively." << endl;
-
-   int  a[] = { 4, 5, 6 }, b[] = { 7, 8, 9 }, c[3];
-   std::transform( a, a + 3, b, c, boost::math::gcd_evaluator<int>() );
-   std::copy( c, c + 3, std::ostream_iterator<int>(cout, " ") );
-}
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/compilers_overview.html b/boost/libs/math/doc/html/math_toolkit/compilers_overview.html deleted file mode 100644 index e98a0351..00000000 --- a/boost/libs/math/doc/html/math_toolkit/compilers_overview.html +++ /dev/null @@ -1,683 +0,0 @@ - - - -Compilers - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- This section contains some information about how various compilers work with - this library. It is not comprehensive and updated experiences are always welcome. - Some effort has been made to suppress unhelpful warnings but it is difficult - to achieve this on all systems. -

-
-

Table 1.9. Supported/Tested Compilers

-
------ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Platform -

-
-

- Compiler -

-
-

- Has long double support -

-
-

- Notes -

-
-

- Windows -

-
-

- MSVC 7.1 and later -

-
-

- Yes -

-
-

- All tests OK. -

-

- We aim to keep our headers warning free at level 4 with this compiler. -

-
-

- Windows -

-
-

- Intel 8.1 and later -

-
-

- Yes -

-
-

- All tests OK. -

-

- We aim to keep our headers warning free at level 4 with this compiler. - However, The tests cases tend to generate a lot of warnings relating - to numeric underflow of the test data: these are harmless. -

-
-

- Windows -

-
-

- GNU Mingw32 C++ -

-
-

- Yes -

-
-

- All tests OK. -

-

- We aim to keep our headers warning free with -Wall with this compiler. -

-
-

- Windows -

-
-

- GNU Cygwin C++ -

-
-

- No -

-
-

- All tests OK. -

-

- We aim to keep our headers warning free with -Wall with this compiler. -

-

- Long double support has been disabled because there are no native - long double C std library functions available. -

-
-

- Windows -

-
-

- Borland C++ 5.8.2 (Developer studio 2006) -

-
-

- No -

-
-

- We have only partial compatibility with this compiler: -

-

- Long double support has been disabled because the native long double - C standard library functions really only forward to the double versions. - This can result in unpredictable behaviour when using the long double - overloads: for example sqrtl - applied to a finite value, can result in an infinite result. -

-

- Some functions still fail to compile, there are no known workarounds - at present. -

-
-

- Windows 7/Netbeans 7.2 -

-
-

- Clang 3.1 -

-
-

- Yes -

-
-

- Spot examples OK. Expect all tests to compile and run OK. -

-
-

- Linux -

-
-

- GNU C++ 3.4 and later -

-
-

- Yes -

-
-

- All tests OK. -

-

- We aim to keep our headers warning free with -Wall with this compiler. -

-
-

- Linux -

-
-

- Clang 3.2 -

-
-

- Yes -

-
-

- All tests OK. -

-
-

- Linux -

-
-

- Intel C++ 10.0 and later -

-
-

- Yes -

-
-

- All tests OK. -

-

- We aim to keep our headers warning free with -Wall with this compiler. - However, The tests cases tend to generate a lot of warnings relating - to numeric underflow of the test data: these are harmless. -

-
-

- Linux -

-
-

- Intel C++ 8.1 and 9.1 -

-
-

- No -

-
-

- All tests OK. -

-

- Long double support has been disabled with these compiler releases - because calling the standard library long double math functions can - result in a segfault. The issue is Linux distribution and glibc version - specific and is Intel bug report #409291. Fully up to date releases - of Intel 9.1 (post version l_cc_c_9.1.046) shouldn't have this problem. - If you need long double support with this compiler, then comment - out the define of BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS at line - 55 of boost/math/tools/config.hpp. -

-

- We aim to keep our headers warning free with -Wall with this compiler. - However, The tests cases tend to generate a lot of warnings relating - to numeric underflow of the test data: these are harmless. -

-
-

- Linux -

-
-

- QLogic PathScale 3.0 -

-
-

- Yes -

-
-

- Some tests involving conceptual checks fail to build, otherwise there - appear to be no issues. -

-
-

- Linux -

-
-

- Sun Studio 12 -

-
-

- Yes -

-
-

- Some tests involving function overload resolution fail to build, - these issues should be rarely encountered in practice. -

-
-

- Solaris -

-
-

- Sun Studio 12 -

-
-

- Yes -

-
-

- Some tests involving function overload resolution fail to build, - these issues should be rarely encountered in practice. -

-
-

- Solaris -

-
-

- GNU C++ 4.x -

-
-

- Yes -

-
-

- All tests OK. -

-

- We aim to keep our headers warning free with -Wall with this compiler. -

-
-

- HP Tru64 -

-
-

- Compaq C++ 7.1 -

-
-

- Yes -

-
-

- All tests OK. -

-
-

- HP-UX Itanium -

-
-

- HP aCC 6.x -

-
-

- Yes -

-
-

- All tests OK. -

-

- Unfortunately this compiler emits quite a few warnings from libraries - upon which we depend (TR1, Array etc). -

-
-

- HP-UX PA-RISC -

-
-

- GNU C++ 3.4 -

-
-

- No -

-
-

- All tests OK. -

-
-

- Apple Mac OS X, Intel -

-
-

- Darwin/GNU C++ 4.x -

-
-

- Yes -

-
-

- All tests OK. -

-
-

- Apple Mac OS X, PowerPC -

-
-

- Darwin/GNU C++ 4.x -

-
-

- No -

-
-

- All tests OK. -

-

- Long double support has been disabled on this platform due to the - rather strange nature of Darwin's 106-bit long double implementation. - It should be possible to make this work if someone is prepared to - offer assistance. -

-
-

- Apple Mac OS X, -

-
-

- Clang 3.2 -

-
-

- Yes -

-
-

- All tests expected to be OK. -

-
-

- IBM AIX -

-
-

- IBM xlc 5.3 -

-
-

- Yes -

-
-

- All tests pass except for our fpclassify tests which fail due to - a bug in std::numeric_limits, the bug effects - the test code, not fpclassify itself. The IBM compiler group are - aware of the problem. -

-
-
-
-

Table 1.10. Unsupported Compilers

-
---- - - - - - - - - - - - - - - -
-

- Platform -

-
-

- Compiler -

-
-

- Windows -

-
-

- Borland C++ 5.9.2 (Borland Developer Studio 2007) -

-
-

- Windows -

-
-

- MSVC 6 and 7 -

-
-
-

- If your compiler or platform is not listed above, please try running the regression - tests: cd into boost-root/libs/math/test and do a: -

-
bjam mytoolset
-
-

- where "mytoolset" is the name of the Boost.Build - toolset used for your compiler. The chances are that many - of the accuracy tests will fail at this stage - don't panic - the - default acceptable error tolerances are quite tight, especially for long double - types with an extended exponent range (these cause more extreme test cases - to be executed for some functions). You will need to cast an eye over the output - from the failing tests and make a judgement as to whether the error rates are - acceptable or not. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/complex_history.html b/boost/libs/math/doc/html/math_toolkit/complex_history.html deleted file mode 100644 index 2941c0e0..00000000 --- a/boost/libs/math/doc/html/math_toolkit/complex_history.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -History - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
    -
  • - 2005/12/17: Added support for platforms with no meaningful numeric_limits<>::infinity(). -
  • -
  • - 2005/12/01: Initial version, added as part of the TR1 library. -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/complex_implementation.html b/boost/libs/math/doc/html/math_toolkit/complex_implementation.html deleted file mode 100644 index 80a09f24..00000000 --- a/boost/libs/math/doc/html/math_toolkit/complex_implementation.html +++ /dev/null @@ -1,63 +0,0 @@ - - - -Implementation and Accuracy - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Although there are deceptively simple formulae available for all of these functions, - a naive implementation that used these formulae would fail catastrophically - for some input values. The Boost versions of these functions have been implemented - using the methodology described in "Implementing the Complex Arcsine and - Arccosine Functions Using Exception Handling" by T. E. Hull Thomas F. - Fairgrieve and Ping Tak Peter Tang, ACM Transactions on Mathematical Software, - Vol. 23, No. 3, September 1997. This means that the functions are well defined - over the entire complex number range, and produce accurate values even at the - extremes of that range, where as a naive formula would cause overflow or underflow - to occur during the calculation, even though the result is actually a representable - value. The maximum theoretical relative error for all of these functions is - less than 9.5ε for every machine-representable point in the complex plane. Please - refer to comments in the header files themselves and to the above mentioned - paper for more information on the implementation methodology. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/config_macros.html b/boost/libs/math/doc/html/math_toolkit/config_macros.html deleted file mode 100644 index f5662fdb..00000000 --- a/boost/libs/math/doc/html/math_toolkit/config_macros.html +++ /dev/null @@ -1,383 +0,0 @@ - - - -Configuration Macros - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Almost all configuration details are set up automatically by <boost\math\tools\config.hpp>. -

-

- In normal use, only policy configuration macros are likely to be used. See - policy reference. -

-

- For reference, information on Boost.Math macros used internally are described - briefly below. -

-
-

Table 1.11. Boost.Math Macros

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- MACRO -

-
-

- Notes -

-
-

- BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -

-
-

- Do not produce or use long double functions: this macro gets set - when the platform's long double or standard library long double support - is absent or buggy. -

-
-

- BOOST_MATH_USE_FLOAT128 -

-
-

- When set the numeric constants support the __float128 - data type with constants having the Q - suffix. -

-
-

- BOOST_MATH_DISABLE_FLOAT128 -

-
-

- When set the numeric constants do not use the __float128 - data type even if the compiler appears to support it. -

-
-

- BOOST_MATH_NO_REAL_CONCEPT_TESTS -

-
-

- Do not try to use real concept tests (hardware or software does not - support real_concept type). -

-
-

- BOOST_MATH_CONTROL_FP -

-
-

- Controls FP hardware exceptions - our tests don't support hardware - exceptions on MSVC. May get set to something like: _control87(MCW_EM,MCW_EM). -

-
-

- BOOST_MATH_NO_DEDUCED_FUNCTION_POINTERS -

-
-

- This macro is used by our test cases, it is set when an assignment - of a function template to a function pointer requires explicit template - arguments to be provided on the function name. -

-
-

- BOOST_MATH_USE_C99 -

-
-

- Use C99 math functions. -

-
-

- BOOST_NO_NATIVE_LONG_DOUBLE_FP_CLASSIFY -

-
-

- define if no native (or buggy) fpclassify(long double) - even though the other C99 functions are present. -

-
-

- BOOST_MATH_SMALL_CONSTANT(x) -

-
-

- Helper macro used in our test cases to set underflowing constants - set to zero if this would cause compiler issues. -

-
-

- BOOST_MATH_BUGGY_LARGE_FLOAT_CONSTANTS -

-
-

- Set if constants too large for a float, will cause "bad" - values to be stored in the data, rather than infinity or a suitably - large value. -

-
-

- BOOST_MATH_STD_USING -

-
-

- Provides using statements - for many std:: (abs to sqrt) and boost::math (rounds, modf) functions. - This allows these functions to be called unqualified so that if - argument-dependent - Argument Dependent Lookup fails to find a suitable overload, - then the std:: versions will also be considered. -

-
-

- BOOST_FPU_EXCEPTION_GUARD -

-
-

- Used at the entrypoint to each special function to reset all FPU - exception flags prior to internal calculations, and then merge the - old and new exception flags on function exit. Used as a workaround - on platforms or hardware that behave strangely if any FPU exception - flags are set when calling standard library functions. -

-
-

- BOOST_MATH_INSTRUMENT -

-
-

- Define to output diagnostics for math functions. This is rather 'global' - to Boost.Math and so coarse-grained that it will probably produce - copious output! (Especially because full precision values are output). - Designed primarily for internal use and development. -

-
-

- BOOST_MATH_INSTRUMENT_CODE(x) -

-
-

- Output selected named variable, for example BOOST_MATH_INSTRUMENT_CODE("guess = " - << guess); Used by BOOST_MATH_INSTRUMENT -

-
-

- BOOST_MATH_INSTRUMENT_VARIABLE(name) -

-
-

- Output selected variable, for example BOOST_MATH_INSTRUMENT_VARIABLE(result); Used by BOOST_MATH_INSTRUMENT -

-
-

- BOOST_MATH_INSTRUMENT_FPU -

-
-

- Output the state of the FPU's control flags. -

-
-
-
-

Table 1.12. Boost.Math Tuning

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Macros for Tuning performance options for specific compilers -

-
-

- Notes -

-
-

- BOOST_MATH_POLY_METHOD -

-
-

- See the performance tuning section. -

-
-

- BOOST_MATH_RATIONAL_METHOD -

-
-

- See the performance tuning section. -

-
-

- BOOST_MATH_MAX_POLY_ORDER -

-
-

- See the performance tuning section. -

-
-

- BOOST_MATH_INT_TABLE_TYPE -

-
-

- See the performance tuning section. -

-
-

- BOOST_MATH_INT_VALUE_SUFFIX -

-
-

- Helper macro for appending the correct suffix to integer constants - which may actually be stored as reals depending on the value of BOOST_MATH_INT_TABLE_TYPE. -

-
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/constants.html b/boost/libs/math/doc/html/math_toolkit/constants.html deleted file mode 100644 index 064d1544..00000000 --- a/boost/libs/math/doc/html/math_toolkit/constants.html +++ /dev/null @@ -1,1490 +0,0 @@ - - - -The Mathematical Constants - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- This section lists the mathematical constants, their use(s) (and sometimes - rationale for their inclusion). -

-
-

Table 4.1. Mathematical Constants

-
------ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- name -

-
-

- formula -

-
-

- Value (6 decimals) -

-
-

- Uses and Rationale -

-
-

- Rational fractions -

-
- - -
-

- half -

-
-

- 1/2 -

-
-

- 0.5 -

-
-
-

- third -

-
-

- 1/3 -

-
-

- 0.333333 -

-
-
-

- two_thirds -

-
-

- 2/3 -

-
-

- 0.66667 -

-
-
-

- three_quarters -

-
-

- 3/4 -

-
-

- 0.75 -

-
-
-

- two and related -

-
- - -
-

- root_two -

-
-

- √2 -

-
-

- 1.41421 -

-
-
-

- root_three -

-
-

- √3 -

-
-

- 1.73205 -

-
-
-

- half_root_two -

-
-

- √2 /2 -

-
-

- 0.707106 -

-
-
-

- ln_two -

-
-

- ln(2) -

-
-

- 0.693147 -

-
-
-

- ln_ten -

-
-

- ln(10) -

-
-

- 2.30258 -

-
-
-

- ln_ln_two -

-
-

- ln(ln(2)) -

-
-

- -0.366512 -

-
-

- Gumbel distribution median -

-
-

- root_ln_four -

-
-

- √ln(4) -

-
-

- 1.177410 -

-
-
-

- one_div_root_two -

-
-

- 1/√2 -

-
-

- 0.707106 -

-
-
-

- π and related -

-
- - -
-

- pi -

-
-

- pi -

-
-

- 3.14159 -

-
-

- Ubiquitous. Archimedes constant π -

-
-

- half_pi -

-
-

- π/2 -

-
-

- 1.570796 -

-
-
-

- third_pi -

-
-

- π/3 -

-
-

- 1.04719 -

-
-
-

- sixth_pi -

-
-

- π/6 -

-
-

- 0.523598 -

-
-
-

- two_pi -

-
-

- 2π -

-
-

- 6.28318 -

-
-

- Many uses, most simply, circumference of a circle -

-
-

- two_thirds_pi -

-
-

- 2/3 π -

-
-

- 2.09439 -

-
-

- volume - of a hemi-sphere = 4/3 π r³ -

-
-

- three_quarters_pi -

-
-

- 3/4 π -

-
-

- 2.35619 -

-
-

- = 3/4 π -

-
-

- four_thirds_pi -

-
-

- 4/3 π -

-
-

- 4.18879 -

-
-

- volume - of a sphere = 4/3 π r³ -

-
-

- one_div_two_pi -

-
-

- 1/(2π) -

-
-

- 1.59155 -

-
-

- Widely used -

-
-

- root_pi -

-
-

- √π -

-
-

- 1.77245 -

-
-

- Widely used -

-
-

- root_half_pi -

-
-

- √ π/2 -

-
-

- 1.25331 -

-
-

- Widely used -

-
-

- root_two_pi -

-
-

- √ π*2 -

-
-

- 2.50662 -

-
-

- Widely used -

-
-

- one_div_root_pi -

-
-

- 1/√π -

-
-

- 0.564189 -

-
-
-

- one_div_root_two_pi -

-
-

- 1/√(2π) -

-
-

- 0.398942 -

-
-
-

- root_one_div_pi -

-
-

- √(1/π -

-
-

- 0.564189 -

-
-
-

- pi_minus_three -

-
-

- π-3 -

-
-

- 0.141593 -

-
-
-

- four_minus_pi -

-
-

- 4 -π -

-
-

- 0.858407 -

-
-
-

- pi_pow_e -

-
-

- πe -

-
-

- 22.4591 -

-
-
-

- pi_sqr -

-
-

- π2 -

-
-

- 9.86960 -

-
-
-

- pi_sqr_div_six -

-
-

- π2/6 -

-
-

- 1.64493 -

-
-
-

- pi_cubed -

-
-

- π3 -

-
-

- 31.00627 -

-
-
-

- cbrt_pi -

-
-

- √3 π -

-
-

- 1.46459 -

-
-
-

- one_div_cbrt_pi -

-
-

- 1/√3 π -

-
-

- 0.682784 -

-
-
-

- Euler's e and related -

-
- - -
-

- e -

-
-

- e -

-
-

- 2.71828 -

-
-

- Euler's - constant e -

-
-

- exp_minus_half -

-
-

- e -1/2 -

-
-

- 0.606530 -

-
-
-

- e_pow_pi -

-
-

- e π -

-
-

- 23.14069 -

-
-
-

- root_e -

-
-

- √ e -

-
-

- 1.64872 -

-
-
-

- log10_e -

-
-

- log10(e) -

-
-

- 0.434294 -

-
-
-

- one_div_log10_e -

-
-

- 1/log10(e) -

-
-

- 2.30258 -

-
-
-

- Trigonometric -

-
- - -
-

- degree -

-
-

- radians = π / 180 -

-
-

- 0.017453 -

-
-
-

- radian -

-
-

- degrees = 180 / π -

-
-

- 57.2957 -

-
-
-

- sin_one -

-
-

- sin(1) -

-
-

- 0.841470 -

-
-
-

- cos_one -

-
-

- cos(1) -

-
-

- 0.54030 -

-
-
-

- sinh_one -

-
-

- sinh(1) -

-
-

- 1.17520 -

-
-
-

- cosh_one -

-
-

- cosh(1) -

-
-

- 1.54308 -

-
-
-

- Phi -

-
-

- Phidias golden ratio -

-
-

- Phidias golden - ratio -

-
-
-

- phi -

-
-

- (1 + √5) /2 -

-
-

- 1.61803 -

-
-

- finance -

-
-

- ln_phi -

-
-

- ln(φ) -

-
-

- 0.48121 -

-
-
-

- one_div_ln_phi -

-
-

- 1/ln(φ) -

-
-

- 2.07808 -

-
-
-

- Euler's Gamma -

-
- - -
-

- euler -

-
-

- euler -

-
-

- 0.577215 -

-
-

- Euler-Mascheroni - gamma constant -

-
-

- one_div_euler -

-
-

- 1/euler -

-
-

- 1.73245 -

-
-
-

- euler_sqr -

-
-

- euler2 -

-
-

- 0.333177 -

-
-
-

- Misc -

-
- - -
-

- zeta_two -

-
-

- ζ(2) -

-
-

- 1.64493 -

-
-

- Riemann - zeta function -

-
-

- zeta_three -

-
-

- ζ(3) -

-
-

- 1.20205 -

-
-

- Riemann - zeta function -

-
-

- catalan -

-
-

- K -

-
-

- 0.915965 -

-
-

- Catalan - (or Glaisher) combinatorial constant -

-
-

- glaisher -

-
-

- A -

-
-

- 1.28242 -

-
-

- Decimal expansion - of Glaisher-Kinkelin constant -

-
-

- khinchin -

-
-

- k -

-
-

- 2.685452 -

-
-

- Decimal expansion - of Khinchin constant -

-
-

- extreme_value_skewness -

-
-

- 12√6 ζ(3)/ π3 -

-
-

- 1.139547 -

-
-

- Extreme value distribution -

-
-

- rayleigh_skewness -

-
-

- 2√π(π-3)/(4 - π)3/2 -

-
-

- 0.631110 -

-
-

- Rayleigh distribution skewness -

-
-

- rayleigh_kurtosis_excess -

-
-

- -(6π2-24π+16)/(4-π)2 -

-
-

- 0.245089 -

-
-

- Rayleigh - distribution kurtosis excess -

-
-

- rayleigh_kurtosis -

-
-

- 3+(6π2-24π+16)/(4-π)2 -

-
-

- 3.245089 -

-
-

- Rayleigh distribution kurtosis -

-
-
-
- - - - - -
[Note]Note

- Integer values are not included in this - list of math constants, however interesting, because they can be so easily - and exactly constructed, even for UDT, for example: static_cast<cpp_float>(42). -

-
- - - - - -
[Tip]Tip

- If you know the approximate value of the constant, you can search for the - value to find Boost.Math chosen name in this table. -

-
- - - - - -
[Tip]Tip

- Bernoulli numbers are available at Bernoulli - numbers. -

-
- - - - - -
[Tip]Tip

- Factorials are available at factorial. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/constants_faq.html b/boost/libs/math/doc/html/math_toolkit/constants_faq.html deleted file mode 100644 index 2147e5fb..00000000 --- a/boost/libs/math/doc/html/math_toolkit/constants_faq.html +++ /dev/null @@ -1,483 +0,0 @@ - - - -FAQs - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-FAQs -

-
- - Why are - these Constants Chosen? -
-

- It is, of course, impossible to please everyone with a list like this. -

-

- Some of the criteria we have used are: -

-
    -
  • - Used in Boost.Math. -
  • -
  • - Commonly used. -
  • -
  • - Expensive to compute. -
  • -
  • - Requested by users. -
  • -
  • - Used in - science and mathematics. -
  • -
  • - No integer values (because so cheap to construct).
    (You can easily - define your own if found convenient, for example: FPT - one =static_cast<FPT>(42);). -
  • -
-
- - How - are constants named? -
-
    -
  • - Not macros, so no upper case. -
  • -
  • - All lower case (following C++ standard names). -
  • -
  • - No CamelCase. -
  • -
  • - Underscore as _ delimiter between words. -
  • -
  • - Numbers spelt as words rather than decimal digits (except following pow). -
  • -
  • - Abbreviation conventions: -
      -
    • - root for square root. -
    • -
    • - cbrt for cube root. -
    • -
    • - pow for pow function using decimal digits like pow23 for n2/3. -
    • -
    • - div for divided by or operator /. -
    • -
    • - minus for operator -, plus for operator +. -
    • -
    • - sqr for squared. -
    • -
    • - cubed for cubed n3. -
    • -
    • - words for greek, like π, ζ and Γ. -
    • -
    • - words like half, third, three_quarters, sixth for fractions. (Digit(s) - can get muddled). -
    • -
    • - log10 for log10 -
    • -
    • - ln for loge -
    • -
    -
  • -
-
- - How are - the constants derived? -
-

- The constants have all been calculated using high-precision software working - with up to 300-bit precision giving about 100 decimal digits. (The precision - can be arbitrarily chosen and is limited only by compute time). -

-
- - How Accurate - are the constants? -
-

- The minimum accuracy chosen (100 decimal digits) exceeds the accuracy of reasonably-foreseeable - floating-point hardware (256-bit) and should meet most high-precision computations. -

-
- - How are the - constants tested? -
-
    -
  1. - Comparison using Boost.Test BOOST_CHECK_CLOSE_FRACTION using long double - literals, with at least 35 decimal digits, enough to be accurate for all - long double implementations. The tolerance is usually twice long double epsilon. -
  2. -
  3. - Comparison with calculation at long double precision. This often requires - a slightly higher tolerance than two epsilon because of computational noise - from round-off etc, especially when trig and other functions are called. -
  4. -
  5. - Comparison with independent published values, for example, using The On-Line Encyclopedia of Integer Sequences (OEIS) - again using at least 35 decimal digits strings. -
  6. -
  7. - Comparison with independely calculated values using arbitrary precision - tools like Mathematica, - again using at least 35 decimal digits literal strings. -
  8. -
-
- - - - - -
[Warning]Warning

- We have not yet been able to check that - all constants are accurate at the full arbitrary - precision, at present 100 decimal digits. But certain key values like e and pi - appear to be accurate and internal consistencies suggest that others are - this accurate too. -

-
- - Why is Portability - important? -
-

- Code written using math constants is easily portable even when using different - floating-point types with differing precision. -

-

- It is a mistake to expect that results of computations will be identical, - but you can achieve the best accuracy possible for the - floating-point type in use. -

-

- This has no extra cost to the user, but reduces irritating, and often confusing - and very hard-to-trace effects, caused by the intrinsically limited precision - of floating-point calculations. -

-

- A harmless symptom of this limit is a spurious least-significant digit; at - worst, slightly inaccurate constants sometimes cause iterating algorithms to - diverge wildly because internal comparisons just fail. -

-
- - What - is the Internal Format of the constants, and why? -
-

- See tutorial above for normal - use, but this FAQ explains the internal details used for the constants. -

-

- Constants are stored as 100 decimal digit values. However, some compilers do - not accept decimal digits strings as long as this. So the constant is split - into two parts, with the first containing at least 128-bit long double precision - (35 decimal digits), and for consistency should be in scientific format with - a signed exponent. -

-

- The second part is the value of the constant expressed as a string literal, - accurate to at least 100 decimal digits (in practice that means at least 102 - digits). Again for consistency use scientific format with a signed exponent. -

-

- For types with precision greater than a long double, then if T is constructible - T is constructible from a - const char* then it's directly constructed from the string, - otherwise we fall back on lexical_cast to convert to type T. - (Using a string is necessary because you can't use a numeric constant since - even a long double - might not have enough digits). -

-

- So, for example, a constant like pi is internally defined as -

-
BOOST_DEFINE_MATH_CONSTANT(pi, 3.141592653589793238462643383279502884e+00, "3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651e+00");
-
-

- In this case the significand is 109 decimal digits, ensuring 100 decimal digits - are exact, and exponent is zero. -

-

- See defining new constants to - calculate new constants. -

-

- A macro definition like this can be pasted into user code where convenient, - or into boost/math/constants.hpp if it - is to be added to the Boost.Math library. -

-
- - What - Floating-point Types could I use? -
-

- Apart from the built-in floating-point types float, - double, long - double, there are several arbitrary - precision floating-point classes available, but most are not licensed for commercial - use. -

-
- - Boost.Multiprecision - by Christopher Kormanyos -
-

- This work is based on an earlier work called e-float: Algorithm 910: A Portable - C++ Multiple-Precision System for Special-Function Calculations, in ACM TOMS, - {VOL 37, ISSUE 4, (February 2011)} (C) ACM, 2011. http://doi.acm.org/10.1145/1916461.1916469 - e_float - but is now re-factored and available under the Boost license in the Boost-sandbox - at multiprecision - where it is being refined and prepared for review. -

-
- - Boost.cpp_float - by John Maddock using Expression Templates -
-

- Big Number - which is a reworking of e_float - by Christopher Kormanyos to use expression templates for faster execution. -

-
- - NTL - class quad_float -
-

- NTL by Victor Shoup has fixed and - arbitrary high precision fixed and floating-point types. However none of these - are licenced for commercial use. -

-
#include <NTL/quad_float.h> // quad precision 106-bit, about 32 decimal digits.
-using NTL::to_quad_float; // Less precise than arbitrary precision NTL::RR.
-
-

- NTL class quad_float, which - gives a form of quadruple precision, 106-bit significand (but without an extended - exponent range.) With an IEC559/IEEE 754 compatible processor, for example - Intel X86 family, with 64-bit double, and 53-bit significand, using the significands - of two 64-bit doubles, if std::numeric_limits<double>::digits10 is 16, then we get about twice the - precision, so std::numeric_limits<quad_float>::digits10() - should be 32. (the default std::numeric_limits<RR>::digits10() - should be about 40). (which seems to agree with experiments). We output constants - (including some noisy bits, an approximation to std::numeric_limits<RR>::max_digits10()) - by adding 2 or 3 extra decimal digits, so using quad_float::SetOutputPrecision(32 + - 3); -

-

- Apple Mac/Darwin uses a similar doubledouble 106-bit for - its built-in long double - type. -

-
- - - - - -
[Note]Note

- The precision of all doubledouble - floating-point types is rather odd and values given are only approximate. -

-

- New projects should use Boost.Multiprecision. -

-
- - NTL - class RR -
-

- Arbitrary precision floating point with NTL class RR, default is 150 bit (about - 50 decimal digits) used here with 300 bit to output 100 decimal digits, enough - for many practical non-'number-theoretic' C++ applications. -

-

- NTL A Library for doing Number Theory - is not licenced for commercial use. -

-

- This class is used in Boost.Math and is an option when using big_number projects - to calculate new math constants. -

-

- New projects should use Boost.Multiprecision. -

-
- - GMP - and MPFR -
-

- GMP and MPFR - have also been used to compute constants, but are licensed under the Lesser GPL license and - are not licensed for commercial use. -

-
- - What - happened to a previous collection of constants proposed for Boost? -
-

- A review concluded that the way in which the constants were presented did not - meet many peoples needs. None of the methods proposed met many users' essential - requirement to allow writing simply pi - rather than pi(). - Many science and engineering equations look difficult to read when because - function call brackets can be confused with the many other brackets often needed. - All the methods then proposed of avoiding the brackets failed to meet all needs, - often on grounds of complexity and lack of applicability to various realistic - scenarios. -

-

- So the simple namespace method, proposed on its own, but rejected at the first - review, has been added to allow users to have convenient access to float, double - and long double values, but combined with template struct and functions to - allow simultaneous use with other non-built-in floating-point types. -

-
- - Why do - the constants (internally) have a struct rather than a simple function? -
-

- A function mechanism was provided by in previous versions of Boost.Math. -

-

- The new mechanism is to permit partial specialization. See Custom Specializing - a constant above. It should also allow use with other packages like ttmath Bignum C++ library. -

-
- - Where - can I find other high precision constants? -
-
    -
  1. - Constants with very high precision and good accuracy (>40 decimal digits) - from Simon Plouffe's web based collection http://pi.lacim.uqam.ca/eng/. -
  2. -
  3. - The On-Line Encyclopedia of Integer Sequences - (OEIS) -
  4. -
  5. - Checks using printed text optically scanned values and converted from: - D. E. Knuth, Art of Computer Programming, Appendix A, Table 1, Vol 1, ISBN - 0 201 89683 4 (1997) -
  6. -
  7. - M. Abrahamovitz & I. E. Stegun, National Bureau of Standards, Handbook - of Mathematical Functions, a reference source for formulae now superceded - by -
  8. -
  9. - Frank W. Olver, Daniel W. Lozier, Ronald F. Boisvert, Charles W. Clark, - NIST Handbook of Mathemetical Functions, Cambridge University Press, ISBN - 978-0-521-14063-8, 2010. -
  10. -
  11. - John F Hart, Computer Approximations, Kreiger (1978) ISBN 0 88275 642 7. -
  12. -
  13. - Some values from Cephes Mathematical Library, Stephen L. Moshier and CALC100 - 100 decimal digit Complex Variable Calculator Program, a DOS utility. -
  14. -
  15. - Xavier Gourdon, Pascal Sebah, 50 decimal digits constants at Number, - constants and computation. -
  16. -
-
- - Where are - Physical Constants? -
-

- Not here in this Boost.Math collection, because physical constants: -

-
    -
  • - Are measurements, not truely constants. -
  • -
  • - Are not truly constant and keeping changing as mensuration technology improves. -
  • -
  • - Have a instrinsic uncertainty. -
  • -
  • - Mathematical constants are stored and represented at varying precision, - but should never be inaccurate. -
  • -
-

- Some physical constants may be available in Boost.Units. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/constants_intro.html b/boost/libs/math/doc/html/math_toolkit/constants_intro.html deleted file mode 100644 index cd88c306..00000000 --- a/boost/libs/math/doc/html/math_toolkit/constants_intro.html +++ /dev/null @@ -1,131 +0,0 @@ - - - -Introduction - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Boost.Math provides a collection of mathematical constants. -

-
- - Why - use Boost.Math mathematical constants? -
-
    -
  • -

    - Readable. For the very many jobs just using built-in like double, you can just write expressions like -

    -
    double area = pi * r * r;
    -

    - (If that's all you want, jump direct to use - in non-template code!) -

    -
  • -
  • - Effortless - avoiding a search of reference sources. -
  • -
  • - Usable with both builtin floating point types, and user-defined, possibly - extended precision, types such as NTL, MPFR/GMP, mp_float: in the latter - case the constants are computed to the necessary precision and then cached. -
  • -
  • - Accurate - ensuring that the values are as accurate as possible for the - chosen floating-point type -
      -
    • - No loss of accuracy from repeated rounding of intermediate computations. -
    • -
    • - Result is computed with higher precision and only rounded once. -
    • -
    • - Less risk of inaccurate result from functions pow, trig and log at - corner cases. -
    • -
    • - Less risk of cancellation - error. -
    • -
    -
  • -
  • - Portable - as possible between different systems using different floating-point - precisions: see use in template - code. -
  • -
  • - Tested - by comparison with other published sources, or separately computed - at long double precision. -
  • -
  • - Faster - can avoid (re-)calculation at runtime. -
      -
    • - If the value returned is a builtin type then it's returned by value - as a constexpr (C++11 - feature, if available). -
    • -
    • - If the value is computed and cached (or constructed from a string - representation and cached), then it's returned by constant reference.
      - This can be significant if: -
    • -
    • - Functions pow, trig or log are used. -
    • -
    • - Inside an inner loop. -
    • -
    • - Using a high-precision UDT like Boost.Multiprecision. -
    • -
    • - Compiler optimizations possible with built-in types, especially - double, are not available. -
    • -
    -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/contact.html b/boost/libs/math/doc/html/math_toolkit/contact.html deleted file mode 100644 index 90b87841..00000000 --- a/boost/libs/math/doc/html/math_toolkit/contact.html +++ /dev/null @@ -1,63 +0,0 @@ - - - -Contact Info and Support - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The main support for this library is via the Boost mailing lists: -

-
-

- You can also find JM at john - at - johnmaddock.co.uk and PAB at pbristow - - at - hetp.u-net.com. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/conventions.html b/boost/libs/math/doc/html/math_toolkit/conventions.html deleted file mode 100644 index 9498fd9b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/conventions.html +++ /dev/null @@ -1,87 +0,0 @@ - - - -Document Conventions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- -

-

- This documentation aims to use of the following naming and formatting conventions. -

-
    -
  • - C++ Code is in fixed width - font and is syntax-highlighted - in color, for example double. -
  • -
  • - Other code is in block teletype fixed-width font. -
  • -
  • - Replaceable text that you will need to - supply is in italics. -
  • -
  • - If a name refers to a free function, it is specified like this: free_function(); - that is, it is in code font and its name is - followed by () to indicate - that it is a free function. -
  • -
  • - If a name refers to a class template, it is specified like this: class_template<>; - that is, it is in code font and its name is followed by <> - to indicate that it is a class template. -
  • -
  • - If a name refers to a function-like macro, it is specified like this: - MACRO(); - that is, it is uppercase in code font and its name is followed by () to indicate that it is a function-like - macro. Object-like macros appear without the trailing (). -
  • -
  • - Names that refer to concepts in the generic programming - sense (like template parameter names) are specified in CamelCase. -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/create.html b/boost/libs/math/doc/html/math_toolkit/create.html deleted file mode 100644 index 7b049a82..00000000 --- a/boost/libs/math/doc/html/math_toolkit/create.html +++ /dev/null @@ -1,121 +0,0 @@ - - - -Quaternion Creation Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
template<typename T> quaternion<T> spherical(T const & rho, T const & theta, T const & phi1, T const & phi2);
-template<typename T> quaternion<T> semipolar(T const & rho, T const & alpha, T const & theta1, T const & theta2);
-template<typename T> quaternion<T> multipolar(T const & rho1, T const & theta1, T const & rho2, T const & theta2);
-template<typename T> quaternion<T> cylindrospherical(T const & t, T const & radius, T const & longitude, T const & latitude);
-template<typename T> quaternion<T> cylindrical(T const & r, T const & angle, T const & h1, T const & h2);
-
-

- These build quaternions in a way similar to the way polar builds complex numbers, - as there is no strict equivalent to polar coordinates for quaternions. -

-

- spherical - is a simple transposition of polar, - it takes as inputs a (positive) magnitude and a point on the hypersphere, given - by three angles. The first of these, theta - has a natural range of -pi - to +pi, - and the other two have natural ranges of -pi/2 - to +pi/2 (as is the - case with the usual spherical coordinates in R3). - Due to the many symmetries and periodicities, nothing untoward happens if the - magnitude is negative or the angles are outside their natural ranges. The expected - degeneracies (a magnitude of zero ignores the angles settings...) do happen - however. -

-

- cylindrical - is likewise a simple transposition of the usual cylindrical coordinates in - R3, which in turn is another - derivative of planar polar coordinates. The first two inputs are the polar - coordinates of the first C - component of the quaternion. The third and fourth inputs are placed into the - third and fourth R components - of the quaternion, respectively. -

-

- multipolar - is yet another simple generalization of polar coordinates. This time, both - C components of the quaternion - are given in polar coordinates. -

-

- cylindrospherical - is specific to quaternions. It is often interesting to consider H as the cartesian product of R by R3 - (the quaternionic multiplication as then a special form, as given here). This - function therefore builds a quaternion from this representation, with the - R3 component given in usual - R3 spherical coordinates. -

-

- semipolar - is another generator which is specific to quaternions. It takes as a first - input the magnitude of the quaternion, as a second input an angle in the range - 0 to +pi/2 - such that magnitudes of the first two C - components of the quaternion are the product of the first input and the sine - and cosine of this angle, respectively, and finally as third and fourth inputs - angles in the range -pi/2 to +pi/2 which represent the arguments of the first - and second C components - of the quaternion, respectively. As usual, nothing untoward happens if what - should be magnitudes are negative numbers or angles are out of their natural - ranges, as symmetries and periodicities kick in. -

-

- In this version of our implementation of quaternions, there is no analogue - of the complex value operation arg - as the situation is somewhat more complicated. Unit quaternions are linked - both to rotations in R3 - and in R4, and the correspondences - are not too complicated, but there is currently a lack of standard (de facto - or de jure) matrix library with which the conversions could work. This should - be remedied in a further revision. In the mean time, an example of how this - could be done is presented here for R3, and here for R4 (example - test file). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/credits.html b/boost/libs/math/doc/html/math_toolkit/credits.html deleted file mode 100644 index 58e92300..00000000 --- a/boost/libs/math/doc/html/math_toolkit/credits.html +++ /dev/null @@ -1,190 +0,0 @@ - - - -Credits and Acknowledgements - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Hubert Holin started the Boost.Math library. The Quaternions, Octonions, inverse - hyperbolic functions, and the sinus cardinal functions are his. -

-

- Daryle Walker wrote the integer gcd and lcm functions. -

-

- John Maddock started the special functions, the beta, gamma, erf, polynomial, - and factorial functions are his, as is the "Toolkit" section, and - many of the statistical distributions. -

-

- Paul A. Bristow threw down the challenge in A - Proposal to add Mathematical Functions for Statistics to the C++ Standard Library - to add the key math functions, especially those essential for statistics. After - JM accepted and solved the difficult problems, not only numerically, but in - full C++ template style, PAB implemented a few of the statistical distributions. - PAB also tirelessly proof-read everything that JM threw at him (so that all - remaining editorial mistakes are his fault). -

-

- Xiaogang Zhang worked on the Bessel functions and elliptic integrals for his - Google Summer of Code project 2006. -

-

- Bruno Lalande submitted the "compile time power of a runtime base" - code. -

-

- Johan Råde wrote the optimised floating-point classification and manipulation - code, and nonfinite facets to permit C99 output of infinities and NaNs. (nonfinite - facets were not added until Boost 1.47 but had been in use with Boost.Spirit). - This library was based on a suggestion from Robert Ramey, author of Boost.Serialization. - Paul A. Bristow expressed the need for better handling of Input - & Output of NaN and infinity for the C++ Standard Library and suggested - following the C99 format. -

-

- Antony Polukhin improved lexical cast avoiding stringstream so that it was - no longer necessary to use a globale C99 facet to handle nonfinites. -

-

- Håkan Ardö, Boris Gubenko, John Maddock, Markus Schöpflin and Olivier Verdier - tested the floating-point library and Martin Bonner, Peter Dimov and John Maddock - provided valuable advice. -

-

- Gautam Sewani coded the logistic distribution as part of a Google Summer of - Code project 2008. -

-

- M. A. (Thijs) van den Berg coded the Laplace distribution. (Thijs has also - threatened to implement some multivariate distributions). -

-

- Thomas Mang requested the inverse gamma in chi squared distributions for Bayesian - applications and helped in their implementation, and provided a nice example - of their use. -

-

- Professor Nico Temme for advice on the inverse incomplete beta function. -

-

- Victor Shoup for NTL, without which - it would have much more difficult to produce high accuracy constants, and especially - the tables of accurate values for testing. -

-

- We are grateful to Joel Guzman for helping us stress-test his Boost.Quickbook - program used to generate the html and pdf versions of this document, adding - several new features en route. -

-

- Plots of the functions and distributions were prepared in W3C - standard Scalable Vector Graphic (SVG) - format using a program created by Jacob Voytko during a Google - Summer of Code (2007). From 2012, the latest versions of all Internet - Browsers have support for rendering SVG (with varying quality). Older versions, - especially (Microsoft Internet Explorer (before IE 9) lack native SVG support - but can be made to work with Adobe's - free SVG viewer plugin). The SVG files can be converted to JPEG or - PNG using Inkscape. -

-

- We are also indebted to Matthias Schabel for managing the formal Boost-review - of this library, and to all the reviewers - including Guillaume Melquiond, - Arnaldur Gylfason, John Phillips, Stephan Tolksdorf and Jeff Garland - for - their many helpful comments. -

-

- Thanks to Mark Coleman and Georgi Boshnakov for spot test values from Wolfram Mathematica, - and of course, to Eric Weisstein for nurturing Wolfram - MathWorld, an invaluable resource. -

-

- The Skew-normal distribution and Owen's t function were written by Benjamin - Sobotta. -

-

- We thank Thomas Mang for persuading us to allow t distributions to have infinite - degrees of freedom and contributing to some long discussions about how to improve - accuracy for large non-centrality and/or large degrees of freedom. -

-

- Christopher Kormanyos wrote the e_float multiprecision library TOMS - Algorithm 910: A Portable C++ Multiple-Precision System for Special-Function - Calculations which formed the basis for the Boost.Multiprecision library - which now can be used to allow most functions and distributions to be computed - up to a precision of the users' choice, no longer restricted to built-in floating-point - types like double. (And thanks to Topher Cooper for bring Christopher's e_float - to our attention). -

-

- Christopher Kormanyos wrote some examples for using Boost.Multiprecision, - and added methods for finding zeros of Bessel Functions. -

-

- Marco Guazzone provided the hyper-geometric distribution. -

-

- Rocco Romeo has found numerous small bugs and generally stress tested the special - functions code to near destruction! -

-

- Jeremy William Murphy added polynomial arithmetic tools. -

-

- Thomas Luu provided improvements to the quantile of the non-central chi squared - distribution quantile. and his thesis * Fast - and accurate parallel computation of quantile functions for random number generation, - 2016. -

-

- and his paper -

-

- Luu, Thomas; (2015), Efficient and Accurate Parallel Inversion of the Gamma - Distribution, SIAM Journal on Scientific Computing , 37 (1) C122 - C141, http://dx.doi.org/10.1137/14095875X. -

-

- These also promise to help improve algorithms for computation of quantile of - several disitributions, especially for parallel computation using GPUs. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/demo.html b/boost/libs/math/doc/html/math_toolkit/demo.html deleted file mode 100644 index a33033c7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/demo.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Demonstration Program - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The program common_factor_test.cpp - is a demonstration of the results from instantiating various examples of the - run-time GCD and LCM function templates and the compile-time GCD and LCM class - templates. (The run-time GCD and LCM class templates are tested indirectly - through the run-time function templates.) -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/directories.html b/boost/libs/math/doc/html/math_toolkit/directories.html deleted file mode 100644 index f235cc0e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/directories.html +++ /dev/null @@ -1,127 +0,0 @@ - - - -Directory and File Structure - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - boost/math -
-
-

-
-
/concepts/
-

- Prototype defining the essential features - of a RealType class (see real_concept.hpp). Most applications will use - double as the RealType (and - short typedef names of distributions - are reserved for this type where possible), a few will use float or long - double, but it is also possible - to use higher precision types like NTL::RR, - GNU Multiple Precision Arithmetic Library, - GNU MPFR library that conform - to the requirements specified by real_concept. -

-
/constants/
-

- Templated definition of some highly accurate math constants (in constants.hpp). -

-
/distributions/
-

- Distributions used in mathematics and, especially, statistics: Gaussian, - Students-t, Fisher, Binomial etc -

-
/policies/
-

- Policy framework, for handling user requested behaviour modifications. -

-
/special_functions/
-

- Math functions generally regarded as 'special', like beta, cbrt, erf, - gamma, lgamma, tgamma ... (Some of these are specified in C++, and C99/TR1, - and perhaps TR2). -

-
/tools/
-

- Tools used by functions, like evaluating polynomials, continued fractions, - root finding, precision and limits, and by tests. Some will find application - outside this package. -

-
-
-
- - boost/libs -
-
-

-
-
/doc/
-

- Documentation source files in Quickbook format processed into html and - pdf formats. -

-
/examples/
-

- Examples and demos of using math functions and distributions. -

-
/performance/
-

- Performance testing and tuning program. -

-
/test/
-

- Test files, in many .cpp files, most using Boost.Test (some with test - data as .ipp files, usually generated using NTL RR type with ample precision - for the type, often for precisions suitable for up to 256-bit significand - real types). -

-
/tools/
-

- Programs used to generate test data. Also changes to the NTL - released package to provide a few additional (and vital) extra features. -

-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_concept.html b/boost/libs/math/doc/html/math_toolkit/dist_concept.html deleted file mode 100644 index 8d0e1032..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_concept.html +++ /dev/null @@ -1,397 +0,0 @@ - - - -Conceptual Requirements for Distribution Types - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- A DistributionType is a type that implements the following - conceptual requirements, and encapsulates a statistical distribution. -

-

- Please note that this documentation should not be used as a substitute for - the reference documentation, and - tutorial of the statistical distributions. -

-

- In the following table, d is an object of type DistributionType, cd - is an object of type const DistributionType - and cr is an object of a type convertible to RealType. -

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Expression -

-
-

- Result Type -

-
-

- Notes -

-
-

- DistributionType::value_type -

-
-

- RealType -

-
-

- The real-number type RealType upon which the - distribution operates. -

-
-

- DistributionType::policy_type -

-
-

- RealType -

-
-

- The Policy to use when evaluating functions - that depend on this distribution. -

-
-

- d = cd -

-
-

- Distribution& -

-
-

- Distribution types are assignable. -

-
-

- Distribution(cd) -

-
-

- Distribution -

-
-

- Distribution types are copy constructible. -

-
-

- pdf(cd, cr) -

-
-

- RealType -

-
-

- Returns the PDF of the distribution. -

-
-

- cdf(cd, cr) -

-
-

- RealType -

-
-

- Returns the CDF of the distribution. -

-
-

- cdf(complement(cd, cr)) -

-
-

- RealType -

-
-

- Returns the complement of the CDF of the distribution, the same as: - 1-cdf(cd, cr) -

-
-

- quantile(cd, cr) -

-
-

- RealType -

-
-

- Returns the quantile (or percentile) of the distribution. -

-
-

- quantile(complement(cd, cr)) -

-
-

- RealType -

-
-

- Returns the quantile (or percentile) of the distribution, starting - from the complement of the probability, the same as: quantile(cd, 1-cr) -

-
-

- chf(cd, cr) -

-
-

- RealType -

-
-

- Returns the cumulative hazard function of the distribution. -

-
-

- hazard(cd, cr) -

-
-

- RealType -

-
-

- Returns the hazard function of the distribution. -

-
-

- kurtosis(cd) -

-
-

- RealType -

-
-

- Returns the kurtosis of the distribution. -

-
-

- kurtosis_excess(cd) -

-
-

- RealType -

-
-

- Returns the kurtosis excess of the distribution. -

-
-

- mean(cd) -

-
-

- RealType -

-
-

- Returns the mean of the distribution. -

-
-

- mode(cd) -

-
-

- RealType -

-
-

- Returns the mode of the distribution. -

-
-

- skewness(cd) -

-
-

- RealType -

-
-

- Returns the skewness of the distribution. -

-
-

- standard_deviation(cd) -

-
-

- RealType -

-
-

- Returns the standard deviation of the distribution. -

-
-

- variance(cd) -

-
-

- RealType -

-
-

- Returns the variance of the distribution. -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref.html b/boost/libs/math/doc/html/math_toolkit/dist_ref.html deleted file mode 100644 index a5e645a5..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref.html +++ /dev/null @@ -1,109 +0,0 @@ - - - -Statistical Distributions Reference - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dist_algorithms.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dist_algorithms.html deleted file mode 100644 index f94fdc94..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dist_algorithms.html +++ /dev/null @@ -1,136 +0,0 @@ - - - -Distribution Algorithms - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Finding - the Location and Scale for Normal and similar distributions -
-

- Two functions aid finding location and scale of random variable z to give - probability p (given a scale or location). Only applies to distributions - like normal, lognormal, extreme value, Cauchy, (and symmetrical triangular), - that have scale and location properties. -

-

- These functions are useful to predict the mean and/or standard deviation - that will be needed to meet a specified minimum weight or maximum dose. -

-

- Complement versions are also provided, both with explicit and implicit (default) - policy. -

-
using boost::math::policies::policy; // May be needed by users defining their own policies.
-using boost::math::complement; // Will be needed by users who want to use complements.
-
-
- - find_location - function -
-
#include <boost/math/distributions/find_location.hpp>
-
namespace boost{ namespace math{
-
-template <class Dist, class Policy> // explicit error handling policy
-  typename Dist::value_type find_location( // For example, normal mean.
-  typename Dist::value_type z, // location of random variable z to give probability, P(X > z) == p.
-  // For example, a nominal minimum acceptable z, so that p * 100 % are > z
-  typename Dist::value_type p, // probability value desired at x, say 0.95 for 95% > z.
-  typename Dist::value_type scale, // scale parameter, for example, normal standard deviation.
-  const Policy& pol);
-
-template <class Dist>  // with default policy.
-  typename Dist::value_type find_location( // For example, normal mean.
-  typename Dist::value_type z, // location of random variable z to give probability, P(X > z) == p.
-  // For example, a nominal minimum acceptable z, so that p * 100 % are > z
-  typename Dist::value_type p, // probability value desired at x, say 0.95 for 95% > z.
-  typename Dist::value_type scale); // scale parameter, for example, normal standard deviation.
-
-  }} // namespaces
-
-
- - find_scale - function -
-
#include <boost/math/distributions/find_scale.hpp>
-
namespace boost{ namespace math{
-
-template <class Dist, class Policy>
-  typename Dist::value_type find_scale( // For example, normal mean.
-  typename Dist::value_type z, // location of random variable z to give probability, P(X > z) == p.
-  // For example, a nominal minimum acceptable weight z, so that p * 100 % are > z
-  typename Dist::value_type p, // probability value desired at x, say 0.95 for 95% > z.
-  typename Dist::value_type location, // location parameter, for example, normal distribution mean.
-  const Policy& pol);
-
- template <class Dist> // with default policy.
-   typename Dist::value_type find_scale( // For example, normal mean.
-   typename Dist::value_type z, // location of random variable z to give probability, P(X > z) == p.
-   // For example, a nominal minimum acceptable z, so that p * 100 % are > z
-   typename Dist::value_type p, // probability value desired at x, say 0.95 for 95% > z.
-   typename Dist::value_type location) // location parameter, for example, normal distribution mean.
-}} // namespaces
-
-

- All argument must be finite, otherwise domain_error - is called. -

-

- Probability arguments must be [0, 1], otherwise domain_error - is called. -

-

- If the choice of arguments would give a negative scale, domain_error - is called, unless the policy is to ignore, when the negative (impossible) - value of scale is returned. -

-

- Find Mean and standard - deviation examples gives simple examples of use of both find_scale - and find_location, and a longer example finding means and standard deviations - of normally distributed weights to meet a specification. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists.html deleted file mode 100644 index fbd6decc..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists.html +++ /dev/null @@ -1,104 +0,0 @@ - - - -Distributions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/arcine_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/arcine_dist.html deleted file mode 100644 index 4b6fc238..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/arcine_dist.html +++ /dev/null @@ -1,642 +0,0 @@ - - - -Arcsine Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/arcsine.hpp>
-
namespace boost{ namespace math{
-
- template <class RealType = double,
-           class Policy   = policies::policy<> >
-class arcsine_distribution;
-
-typedef arcsine_distribution<double> arcsine; // double precision standard arcsine distribution [0,1].
-
-template <class RealType, class Policy>
-class arcsine_distribution
-{
-public:
-   typedef RealType  value_type;
-   typedef Policy    policy_type;
-
-   // Constructor from two range parameters, x_min and x_max:
-   arcsine_distribution(RealType x_min, RealType x_max);
-
-   // Range Parameter accessors:
-   RealType x_min() const;
-   RealType x_max() const;
-};
-}} // namespaces
-
-

- The class type arcsine_distribution - represents an arcsine - probability - distribution function. The arcsine distribution is named because - its CDF uses the inverse sin-1 or arcsine. -

-

- This is implemented as a generalized version with support from x_min - to x_max providing the 'standard arcsine distribution' - as default with x_min = 0 and x_max = 1. - (A few make other choices for 'standard'). -

-

- The arcsine distribution is generalized to include any bounded support - a <= x <= b by Wolfram - and Wikipedia, - but also using location and scale - parameters by Virtual - Laboratories in Probability and Statistics Arcsine - distribution. The end-point version is simpler and more obvious, - so we implement that. If desired, this - outlines how the Beta - Distribution can be used to add a shape factor. -

-

- The probability - density function PDF for the arcsine - distribution defined on the interval [x_min, x_max] - is given by: -

-

-     f(x; x_min, x_max) = 1 /(π⋅√((x - x_min)⋅(x_max - x_min)) -

-

- For example, Wolfram Alpha - arcsine distribution, from input of -

-
N[PDF[arcsinedistribution[0, 1], 0.5], 50]
-
-

- computes the PDF value -

-
0.63661977236758134307553505349005744813783858296183
-
-

- The Probability Density Functions (PDF) of generalized arcsine distributions - are symmetric U-shaped curves, centered on (x_max - x_min)/2, - highest (infinite) near the two extrema, and quite flat over the central - region. -

-

- If random variate x is x_min - or x_max, then the PDF is infinity. If random variate - x is x_min then the CDF is zero. - If random variate x is x_max - then the CDF is unity. -

-

- The 'Standard' (0, 1) arcsine distribution is shown in blue and some generalized - examples with other x ranges. -

-

- -

-

- The Cumulative Distribution Function CDF is defined as -

-

-     F(x) = 2⋅arcsin(√((x-x_min)/(x_max - x))) / π -

-

- -

-
- - Constructor -
-
arcsine_distribution(RealType x_min, RealType x_max);
-
-

- constructs an arcsine distribution with range parameters x_min - and x_max. -

-

- Requires x_min < x_max, otherwise domain_error - is called. -

-

- For example: -

-
arcsine_distribution<> myarcsine(-2, 4);
-
-

- constructs an arcsine distribution with x_min = -2 - and x_max = 4. -

-

- Default values of x_min = 0 and x_max = - 1 and a typedef arcsine_distribution<double> arcsine; - mean that -

-
arcsine as;
-
-

- constructs a 'Standard 01' arcsine distribution. -

-
- - Parameter - Accessors -
-
RealType x_min() const;
-RealType x_max() const;
-
-

- Return the parameter x_min or x_max - from which this distribution was constructed. -

-

- So, for example: -

-
using boost::math::arcsine_distribution;
-
-arcsine_distribution<> as(2, 5); // Cconstructs a double arcsine distribution.
-assert(as.x_min() == 2.);  // as.x_min() returns 2.
-assert(as.x_max() == 5.);   // as.x_max()  returns 5.
-
-
- - Non-member - Accessor Functions -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The formulae for calculating these are shown in the table below, and at - Wolfram - Mathworld. -

-
- - - - - -
[Note]Note

- There are always two values for the - mode, at x_min - and at x_max, default 0 and 1, so instead we raise - the exception domain_error. - At these extrema, the PDFs are infinite, and the CDFs zero or unity. -

-
- - Applications -
-

- The arcsine distribution is useful to describe Random - walks, (including drunken walks) Brownian - motion, Weiner - processes, Bernoulli - trials, and their appplication to solve stock market and other - ruinous gambling - games. -

-

- The random variate x is constrained to x_min - and x_max, (for our 'standard' distribution, 0 and - 1), and is usually some fraction. For any other x_min - and x_max a fraction can be obtained from x - using -

-

-   fraction = (x - x_min) / (x_max - x_min) -

-

- The simplest example is tossing heads and tails with a fair coin and modelling - the risk of losing, or winning. Walkers (molecules, drunks...) moving left - or right of a centre line are another common example. -

-

- The random variate x is the fraction of time spent - on the 'winning' side. If half the time is spent on the 'winning' side - (and so the other half on the 'losing' side) then x = 1/2. -

-

- For large numbers of tosses, this is modelled by the (standard [0,1]) arcsine - distribution, and the PDF can be calculated thus: -

-
std::cout << pdf(as, 1. / 2) << std::endl; // 0.637
-// pdf has a minimum at x = 0.5
-
-

- From the plot of PDF, it is clear that x = ½ is the - minimum of the curve, so this is the - least likely scenario. (This is highly - counter-intuitive, considering that fair tosses must eventually - become equal. It turns out that eventually is not - just very long, but infinite!). -

-

- The most likely scenarios are towards - the extrema where x = 0 or x - = 1. -

-

- If fraction of time on the left is a ¼, it is only slightly more likely - because the curve is quite flat bottomed. -

-
std::cout << pdf(as, 1. / 4) << std::endl; // 0.735
-
-

- If we consider fair coin-tossing games being played for 100 days (hypothetically - continuously to be 'at-limit') the person winning after day 5 will not - change in fraction 0.144 of the cases. -

-

- We can easily compute this setting x = 5./100 = 0.05 -

-
std::cout << cdf(as, 0.05) << std::endl; // 0.144
-
-

- Similarly, we can compute from a fraction of 0.05 /2 = 0.025 (halved because - we are considering both winners and losers) corresponding to 1 - 0.025 - or 97.5% of the gamblers, (walkers, particles...) on the same - side of the origin -

-
std::cout << 2 * cdf(as, 1 - 0.975) << std::endl; // 0.202
-
-

- (use of the complement gives a bit more clarity, and avoids potential loss - of accuracy when x is close to unity, see why - complements?). -

-
std::cout << 2 * cdf(complement(as, 0.975)) << std::endl; // 0.202
-
-

- or we can reverse the calculation by assuming a fraction of time on one - side, say fraction 0.2, -

-
std::cout << quantile(as, 1 - 0.2 / 2) << std::endl; //  0.976
-
-std::cout << quantile(complement(as, 0.2 / 2)) << std::endl; // 0.976
-
-

- Summary: Every time we toss, the odds - are equal, so on average we have the same change of winning and losing. -

-

- But this is not true for an an individual - game where one will be mostly in a bad or good patch. -

-

- This is quite counter-intuitive to most people, but the mathematics is - clear, and gamblers continue to provide proof. -

-

- Moral: if you in a losing patch, leave - the game. (Because the odds to recover to a good patch are poor). -

-

- Corollary: Quit while you are ahead? -

-

- A working example is at arcsine_example.cpp - including sample output . -

-
- - Related - distributions -
-

- The arcsine distribution with x_min = 0 and x_max - = 1 is special case of the Beta - Distribution with α = 1/2 and β = 1/2. -

-
- - Accuracy -
-

- This distribution is implemented using sqrt, sine, cos and arc sine and - cos trigonometric functions which are normally accurate to a few machine epsilon. - But all values suffer from loss - of significance or cancellation error for values of x - close to x_max. For example, for a standard [0, 1] - arcsine distribution as, the pdf is symmetric about - random variate x = 0.5 so that one would expect pdf(as, 0.01) == - pdf(as, 0.99). But - as x nears unity, there is increasing loss - of significance. To counteract this, the complement versions of - CDF and quantile are implemented with alternative expressions using cos-1 - instead of sin-1. Users should see why - complements? for guidance on when to avoid loss of accuracy by using - complements. -

-
- - Testing -
-

- The results were tested against a few accurate spot values computed by - Wolfram Alpha, for example: -

-
N[PDF[arcsinedistribution[0, 1], 0.5], 50]
-  0.63661977236758134307553505349005744813783858296183
-
-
- - Implementation -
-

- In the following table a and b - are the parameters x_min   and x_max, - x is the random variable, p is - the probability and its complement q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- support -

-
-

- x ∈ [a, b], default x ∈ [0, 1] -

-
-

- pdf -

-
-

- f(x; a, b) = 1/(π⋅√(x - a)⋅(b - x)) -

-
-

- cdf -

-
-

- F(x) = 2/π⋅sin-1(√(x - a) / (b - a) ) -

-
-

- cdf of complement -

-
-

- 2/(π⋅cos-1(√(x - a) / (b - a))) -

-
-

- quantile -

-
-

- -a⋅sin2(½π⋅p) + a + b⋅sin2(½π⋅p) -

-
-

- quantile from the complement -

-
-

- -a⋅cos2(½π⋅p) + a + b⋅cos2(½π⋅q) -

-
-

- mean -

-
-

- ½(a+b) -

-
-

- median -

-
-

- ½(a+b) -

-
-

- mode -

-
-

- x ∈ [a, b], so raises domain_error (returning NaN). -

-
-

- variance -

-
-

- (b - a)2 / 8 -

-
-

- skewness -

-
-

- 0 -

-
-

- kurtosis excess -

-
-

- -3/2 -

-
-

- kurtosis -

-
-

- kurtosis_excess + 3 -

-
-

- The quantile was calculated using an expression obtained by using Wolfram Alpha to invert the - formula for the CDF thus -

-
solve [p - 2/pi sin^-1(sqrt((x-a)/(b-a))) = 0, x]
-
-

- which was interpreted as -

-
Solve[p - (2 ArcSin[Sqrt[(-a + x)/(-a + b)]])/Pi == 0, x, MaxExtraConditions -> Automatic]
-
-

- and produced the resulting expression -

-
x = -a sin^2((pi p)/2)+a+b sin^2((pi p)/2)
-
-

- Thanks to Wolfram for providing this facility. -

-
- - References -
- -
- - Sources -
- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/bernoulli_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/bernoulli_dist.html deleted file mode 100644 index b2322e96..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/bernoulli_dist.html +++ /dev/null @@ -1,356 +0,0 @@ - - - -Bernoulli Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/bernoulli.hpp>
-
namespace boost{ namespace math{
- template <class RealType = double,
-           class Policy   = policies::policy<> >
- class bernoulli_distribution;
-
- typedef bernoulli_distribution<> bernoulli;
-
- template <class RealType, class Policy>
- class bernoulli_distribution
- {
- public:
-    typedef RealType  value_type;
-    typedef Policy    policy_type;
-
-    bernoulli_distribution(RealType p); // Constructor.
-    // Accessor function.
-    RealType success_fraction() const
-    // Probability of success (as a fraction).
- };
-}} // namespaces
-
-

- The Bernoulli distribution is a discrete distribution of the outcome of - a single trial with only two results, 0 (failure) or 1 (success), with - a probability of success p. -

-

- The Bernoulli distribution is the simplest building block on which other - discrete distributions of sequences of independent Bernoulli trials can - be based. -

-

- The Bernoulli is the binomial distribution (k = 1, p) with only one trial. -

-

- probability - density function pdf f(0) = 1 - p, f(1) = p. Cumulative - distribution function D(k) = if (k == 0) 1 - p else 1. -

-

- The following graph illustrates how the probability - density function pdf varies with the outcome of the single trial: -

-

- -

-

- and the Cumulative - distribution function -

-

- -

-
- - Member - Functions -
-
bernoulli_distribution(RealType p);
-
-

- Constructs a bernoulli - distribution with success_fraction p. -

-
RealType success_fraction() const
-
-

- Returns the success_fraction parameter of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is 0 and 1, and the useful supported - range is only 0 or 1. -

-

- Outside this range, functions are undefined, or may throw domain_error - exception and make an error message available. -

-
- - Accuracy -
-

- The Bernoulli distribution is implemented with simple arithmetic operators - and so should have errors within an epsilon or two. -

-
- - Implementation -
-

- In the following table p is the probability of success - and q = 1-p. k is the random - variate, either 0 or 1. -

-
- - - - - -
[Note]Note
-

- The Bernoulli distribution is implemented here as a strict - discrete distribution. If a generalised version, allowing - k to be any real, is required then the binomial distribution with a single - trial should be used, for example: -

-

- binomial_distribution(1, - 0.25) -

-
-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- Supported range -

-
-

- {0, 1} -

-
-

- pdf -

-
-

- Using the relation: pdf = 1 - p for k = 0, else p -

-
-

- cdf -

-
-

- Using the relation: cdf = 1 - p for k = 0, else 1 -

-
-

- cdf complement -

-
-

- q = 1 - p -

-
-

- quantile -

-
-

- if x <= (1-p) 0 else 1 -

-
-

- quantile from the complement -

-
-

- if x <= (1-p) 1 else 0 -

-
-

- mean -

-
-

- p -

-
-

- variance -

-
-

- p * (1 - p) -

-
-

- mode -

-
-

- if (p < 0.5) 0 else 1 -

-
-

- skewness -

-
-

- (1 - 2 * p) / sqrt(p * q) -

-
-

- kurtosis -

-
-

- 6 * p * p - 6 * p +1/ p * q -

-
-

- kurtosis excess -

-
-

- kurtosis -3 -

-
-
- - References -
- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/beta_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/beta_dist.html deleted file mode 100644 index 5acf27ba..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/beta_dist.html +++ /dev/null @@ -1,622 +0,0 @@ - - - -Beta Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/beta.hpp>
-
namespace boost{ namespace math{
-
- template <class RealType = double,
-           class Policy   = policies::policy<> >
-class beta_distribution;
-
-// typedef beta_distribution<double> beta;
-// Note that this is deliberately NOT provided,
-// to avoid a clash with the function name beta.
-
-template <class RealType, class Policy>
-class beta_distribution
-{
-public:
-   typedef RealType  value_type;
-   typedef Policy    policy_type;
-   // Constructor from two shape parameters, alpha & beta:
-   beta_distribution(RealType a, RealType b);
-
-   // Parameter accessors:
-   RealType alpha() const;
-   RealType beta() const;
-
-   // Parameter estimators of alpha or beta from mean and variance.
-   static RealType find_alpha(
-     RealType mean, // Expected value of mean.
-     RealType variance); // Expected value of variance.
-
-   static RealType find_beta(
-     RealType mean, // Expected value of mean.
-     RealType variance); // Expected value of variance.
-
-   // Parameter estimators from
-   // either alpha or beta, and x and probability.
-
-   static RealType find_alpha(
-     RealType beta, // from beta.
-     RealType x, //  x.
-     RealType probability); // cdf
-
-   static RealType find_beta(
-     RealType alpha, // alpha.
-     RealType x, // probability x.
-     RealType probability); // probability cdf.
-};
-
-}} // namespaces
-
-

- The class type beta_distribution - represents a beta - probability - distribution function. -

-

- The beta - distribution is used as a prior - distribution for binomial proportions in Bayesian - analysis. -

-

- See also: beta - distribution and Bayesian - statistics. -

-

- How the beta distribution is used for Bayesian - analysis of one parameter models is discussed by Jeff Grynaviski. -

-

- The probability - density function PDF for the beta - distribution defined on the interval [0,1] is given by: -

-

- f(x;α,β) = xα - 1 (1 - x)β -1 / B(α, β) -

-

- where B(α, β) is the beta - function, implemented in this library as beta. - Division by the beta function ensures that the pdf is normalized to the - range zero to unity. -

-

- The following graph illustrates examples of the pdf for various values - of the shape parameters. Note the α = β = 2 (blue line) is dome-shaped, and - might be approximated by a symmetrical triangular distribution. -

-

- -

-

- If α = β = 1, then it is a __space uniform - distribution, equal to unity in the entire interval x = 0 to 1. - If α __space and β __space are < 1, then the pdf is U-shaped. If α != β, then - the shape is asymmetric and could be approximated by a triangle whose apex - is away from the centre (where x = half). -

-
- - Member - Functions -
-
- - Constructor -
-
beta_distribution(RealType alpha, RealType beta);
-
-

- Constructs a beta distribution with shape parameters alpha - and beta. -

-

- Requires alpha,beta > 0,otherwise domain_error - is called. Note that technically the beta distribution is defined for alpha,beta - >= 0, but it's not clear whether any program can actually make use of - that latitude or how many of the non-member functions can be usefully defined - in that case. Therefore for now, we regard it as an error if alpha or beta - is zero. -

-

- For example: -

-
beta_distribution<> mybeta(2, 5);
-
-

- Constructs a the beta distribution with alpha=2 and beta=5 (shown in yellow - in the graph above). -

-
- - Parameter - Accessors -
-
RealType alpha() const;
-
-

- Returns the parameter alpha from which this distribution - was constructed. -

-
RealType beta() const;
-
-

- Returns the parameter beta from which this distribution - was constructed. -

-

- So for example: -

-
beta_distribution<> mybeta(2, 5);
-assert(mybeta.alpha() == 2.);  // mybeta.alpha() returns 2
-assert(mybeta.beta() == 5.);   // mybeta.beta()  returns 5
-
-
- - Parameter - Estimators -
-

- Two pairs of parameter estimators are provided. -

-

- One estimates either α __space or β __space from presumed-known mean and variance. -

-

- The other pair estimates either α __space or β __space from the cdf and x. -

-

- It is also possible to estimate α __space and β __space from 'known' mode & - quantile. For example, calculators are provided by the Pooled - Prevalence Calculator and Beta - Buster but this is not yet implemented here. -

-
static RealType find_alpha(
-  RealType mean, // Expected value of mean.
-  RealType variance); // Expected value of variance.
-
-

- Returns the unique value of α   that corresponds to a beta distribution with - mean mean and variance variance. -

-
static RealType find_beta(
-  RealType mean, // Expected value of mean.
-  RealType variance); // Expected value of variance.
-
-

- Returns the unique value of β   that corresponds to a beta distribution with - mean mean and variance variance. -

-
static RealType find_alpha(
-  RealType beta, // from beta.
-  RealType x, //  x.
-  RealType probability); // probability cdf
-
-

- Returns the value of α   that gives: cdf(beta_distribution<RealType>(alpha, beta), x) == probability. -

-
static RealType find_beta(
-  RealType alpha, // alpha.
-  RealType x, // probability x.
-  RealType probability); // probability cdf.
-
-

- Returns the value of β   that gives: cdf(beta_distribution<RealType>(alpha, beta), x) == probability. -

-
- - Non-member - Accessor Functions -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The formulae for calculating these are shown in the table below, and at - Wolfram - Mathworld. -

-
- - Applications -
-

- The beta distribution can be used to model events constrained to take place - within an interval defined by a minimum and maximum value: so it is used - in project management systems. -

-

- It is also widely used in Bayesian - statistical inference. -

-
- - Related - distributions -
-

- The beta distribution with both α __space and β = 1 follows a uniform - distribution. -

-

- The triangular - is used when less precise information is available. -

-

- The binomial - distribution is closely related when α __space and β __space are integers. -

-

- With integer values of α __space and β __space the distribution B(i, j) is - that of the j-th highest of a sample of i + j + 1 independent random variables - uniformly distributed between 0 and 1. The cumulative probability from - 0 to x is thus the probability that the j-th highest value is less than - x. Or it is the probability that at least i of the random variables are - less than x, a probability given by summing over the Binomial - Distribution with its p parameter set to x. -

-
- - Accuracy -
-

- This distribution is implemented using the beta - functions beta - and incomplete beta - functions ibeta - and ibetac; - please refer to these functions for information on accuracy. -

-
- - Implementation -
-

- In the following table a and b - are the parameters α   and β, x is the random variable, - p is the probability and q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- f(x;α,β) = xα - 1 (1 - x)β -1 / B(α, β) -

-

- Implemented using ibeta_derivative(a, - b, x). -

-
-

- cdf -

-
-

- Using the incomplete beta function ibeta(a, - b, x) -

-
-

- cdf complement -

-
-

- ibetac(a, - b, x) -

-
-

- quantile -

-
-

- Using the inverse incomplete beta function ibeta_inv(a, - b, p) -

-
-

- quantile from the complement -

-
-

- ibetac_inv(a, - b, q) -

-
-

- mean -

-
-

- a/(a+b) -

-
-

- variance -

-
-

- a * - b / - (a+b)^2 * (a + - b + - 1) -

-
-

- mode -

-
-

- (a-1) / - (a - + b - - 2) -

-
-

- skewness -

-
-

- 2 (b-a) - sqrt(a+b+1)/(a+b+2) * sqrt(a - * b) -

-
-

- kurtosis excess -

-
-

- -

-
-

- kurtosis -

-
-

- kurtosis + - 3 -

-
-

- parameter estimation -

-
-
-

- alpha -

-

- from mean and variance -

-
-

- mean * - (( (mean * - (1 - - mean)) / - variance)- - 1) -

-
-

- beta -

-

- from mean and variance -

-
-

- (1 - - mean) * - (((mean - * (1 - mean)) - /variance)-1) -

-
-

- The member functions find_alpha - and find_beta -

-

- from cdf and probability x -

-

- and either alpha - or beta -

-
-

- Implemented in terms of the inverse incomplete beta functions -

-

- ibeta_inva, - and ibeta_invb - respectively. -

-
-

- find_alpha -

-
-

- ibeta_inva(beta, - x, - probability) -

-
-

- find_beta -

-
-

- ibeta_invb(alpha, - x, - probability) -

-
-
- - References -
-

- Wikipedia Beta - distribution -

-

- NIST - Exploratory Data Analysis -

-

- Wolfram - MathWorld -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/binomial_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/binomial_dist.html deleted file mode 100644 index 54d78d81..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/binomial_dist.html +++ /dev/null @@ -1,908 +0,0 @@ - - - -Binomial Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/binomial.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class binomial_distribution;
-
-typedef binomial_distribution<> binomial;
-
-template <class RealType, class Policy>
-class binomial_distribution
-{
-public:
-   typedef RealType  value_type;
-   typedef Policy    policy_type;
-
-   static const unspecified-type clopper_pearson_exact_interval;
-   static const unspecified-type jeffreys_prior_interval;
-
-   // construct:
-   binomial_distribution(RealType n, RealType p);
-
-   // parameter access::
-   RealType success_fraction() const;
-   RealType trials() const;
-
-   // Bounds on success fraction:
-   static RealType find_lower_bound_on_p(
-      RealType trials,
-      RealType successes,
-      RealType probability,
-      unspecified-type method = clopper_pearson_exact_interval);
-   static RealType find_upper_bound_on_p(
-      RealType trials,
-      RealType successes,
-      RealType probability,
-      unspecified-type method = clopper_pearson_exact_interval);
-
-   // estimate min/max number of trials:
-   static RealType find_minimum_number_of_trials(
-      RealType k,     // number of events
-      RealType p,     // success fraction
-      RealType alpha); // risk level
-
-   static RealType find_maximum_number_of_trials(
-      RealType k,     // number of events
-      RealType p,     // success fraction
-      RealType alpha); // risk level
-};
-
-}} // namespaces
-
-

- The class type binomial_distribution - represents a binomial - distribution: it is used when there are exactly two mutually exclusive - outcomes of a trial. These outcomes are labelled "success" and - "failure". The Binomial - Distribution is used to obtain the probability of observing k successes - in N trials, with the probability of success on a single trial denoted - by p. The binomial distribution assumes that p is fixed for all trials. -

-
- - - - - -
[Note]Note

- The random variable for the binomial distribution is the number of successes, - (the number of trials is a fixed property of the distribution) whereas - for the negative binomial, the random variable is the number of trials, - for a fixed number of successes. -

-

- The PDF for the binomial distribution is given by: -

-

- -

-

- The following two graphs illustrate how the PDF changes depending upon - the distributions parameters, first we'll keep the success fraction p - fixed at 0.5, and vary the sample size: -

-

- -

-

- Alternatively, we can keep the sample size fixed at N=20 and vary the success - fraction p: -

-

- -

-
- - - - - -
[Caution]Caution
-

- The Binomial distribution is a discrete distribution: internally, functions - like the cdf and pdf are treated "as if" they - are continuous functions, but in reality the results returned from these - functions only have meaning if an integer value is provided for the random - variate argument. -

-

- The quantile function will by default return an integer result that has - been rounded outwards. That is to say lower quantiles - (where the probability is less than 0.5) are rounded downward, and upper - quantiles (where the probability is greater than 0.5) are rounded upwards. - This behaviour ensures that if an X% quantile is requested, then at - least the requested coverage will be present in the central - region, and no more than the requested coverage - will be present in the tails. -

-

- This behaviour can be changed so that the quantile functions are rounded - differently, or even return a real-valued result using Policies. - It is strongly recommended that you read the tutorial Understanding - Quantiles of Discrete Distributions before using the quantile - function on the Binomial distribution. The reference - docs describe how to change the rounding policy for these distributions. -

-
-
- - Member - Functions -
-
- - Construct -
-
binomial_distribution(RealType n, RealType p);
-
-

- Constructor: n is the total number of trials, p - is the probability of success of a single trial. -

-

- Requires 0 <= - p <= - 1, and n - >= 0, - otherwise calls domain_error. -

-
- - Accessors -
-
RealType success_fraction() const;
-
-

- Returns the parameter p from which this distribution - was constructed. -

-
RealType trials() const;
-
-

- Returns the parameter n from which this distribution - was constructed. -

-
- - Lower - Bound on the Success Fraction -
-
static RealType find_lower_bound_on_p(
-   RealType trials,
-   RealType successes,
-   RealType alpha,
-   unspecified-type method = clopper_pearson_exact_interval);
-
-

- Returns a lower bound on the success fraction: -

-
-

-
-
trials
-

- The total number of trials conducted. -

-
successes
-

- The number of successes that occurred. -

-
alpha
-

- The largest acceptable probability that the true value of the success - fraction is less than the value - returned. -

-
method
-

- An optional parameter that specifies the method to be used to compute - the interval (See below). -

-
-
-

- For example, if you observe k successes from n - trials the best estimate for the success fraction is simply k/n, - but if you want to be 95% sure that the true value is greater - than some value, pmin, then: -

-
pmin = binomial_distribution<RealType>::find_lower_bound_on_p(
-                    n, k, 0.05);
-
-

- See worked - example. -

-

- There are currently two possible values available for the method - optional parameter: clopper_pearson_exact_interval - or jeffreys_prior_interval. These constants are both - members of class template binomial_distribution, - so usage is for example: -

-
p = binomial_distribution<RealType>::find_lower_bound_on_p(
-    n, k, 0.05, binomial_distribution<RealType>::jeffreys_prior_interval);
-
-

- The default method if this parameter is not specified is the Clopper Pearson - "exact" interval. This produces an interval that guarantees at - least 100(1-alpha)% coverage, but which is known to be overly - conservative, sometimes producing intervals with much greater than the - requested coverage. -

-

- The alternative calculation method produces a non-informative Jeffreys - Prior interval. It produces 100(1-alpha)% - coverage only in the average case, though is typically - very close to the requested coverage level. It is one of the main methods - of calculation recommended in the review by Brown, Cai and DasGupta. -

-

- Please note that the "textbook" calculation method using a normal - approximation (the Wald interval) is deliberately not provided: it is known - to produce consistently poor results, even when the sample size is surprisingly - large. Refer to Brown, Cai and DasGupta for a full explanation. Many other - methods of calculation are available, and may be more appropriate for specific - situations. Unfortunately there appears to be no consensus amongst statisticians - as to which is "best": refer to the discussion at the end of - Brown, Cai and DasGupta for examples. -

-

- The two methods provided here were chosen principally because they can - be used for both one and two sided intervals. See also: -

-

- Lawrence D. Brown, T. Tony Cai and Anirban DasGupta (2001), Interval Estimation - for a Binomial Proportion, Statistical Science, Vol. 16, No. 2, 101-133. -

-

- T. Tony Cai (2005), One-sided confidence intervals in discrete distributions, - Journal of Statistical Planning and Inference 131, 63-88. -

-

- Agresti, A. and Coull, B. A. (1998). Approximate is better than "exact" - for interval estimation of binomial proportions. Amer. Statist. 52 119-126. -

-

- Clopper, C. J. and Pearson, E. S. (1934). The use of confidence or fiducial - limits illustrated in the case of the binomial. Biometrika 26 404-413. -

-
- - Upper - Bound on the Success Fraction -
-
static RealType find_upper_bound_on_p(
-   RealType trials,
-   RealType successes,
-   RealType alpha,
-   unspecified-type method = clopper_pearson_exact_interval);
-
-

- Returns an upper bound on the success fraction: -

-
-

-
-
trials
-

- The total number of trials conducted. -

-
successes
-

- The number of successes that occurred. -

-
alpha
-

- The largest acceptable probability that the true value of the success - fraction is greater than the value - returned. -

-
method
-

- An optional parameter that specifies the method to be used to compute - the interval. Refer to the documentation for find_upper_bound_on_p - above for the meaning of the method options. -

-
-
-

- For example, if you observe k successes from n - trials the best estimate for the success fraction is simply k/n, - but if you want to be 95% sure that the true value is less - than some value, pmax, then: -

-
pmax = binomial_distribution<RealType>::find_upper_bound_on_p(
-                    n, k, 0.05);
-
-

- See worked - example. -

-
- - - - - -
[Note]Note
-

- In order to obtain a two sided bound on the success fraction, you call - both find_lower_bound_on_p - and find_upper_bound_on_p - each with the same arguments. -

-

- If the desired risk level that the true success fraction lies outside - the bounds is α, then you pass α/2 to these functions. -

-

- So for example a two sided 95% confidence interval would be obtained - by passing α = 0.025 to each of the functions. -

-

- See worked - example. -

-
-
- - Estimating - the Number of Trials Required for a Certain Number of Successes -
-
static RealType find_minimum_number_of_trials(
-   RealType k,     // number of events
-   RealType p,     // success fraction
-   RealType alpha); // probability threshold
-
-

- This function estimates the minimum number of trials required to ensure - that more than k events is observed with a level of risk alpha - that k or fewer events occur. -

-
-

-
-
k
-

- The number of success observed. -

-
p
-

- The probability of success for each trial. -

-
alpha
-

- The maximum acceptable probability that k events or fewer will be - observed. -

-
-
-

- For example: -

-
binomial_distribution<RealType>::find_number_of_trials(10, 0.5, 0.05);
-
-

- Returns the smallest number of trials we must conduct to be 95% sure of - seeing 10 events that occur with frequency one half. -

-
- - Estimating - the Maximum Number of Trials to Ensure no more than a Certain Number of - Successes -
-
static RealType find_maximum_number_of_trials(
-   RealType k,     // number of events
-   RealType p,     // success fraction
-   RealType alpha); // probability threshold
-
-

- This function estimates the maximum number of trials we can conduct to - ensure that k successes or fewer are observed, with a risk alpha - that more than k occur. -

-
-

-
-
k
-

- The number of success observed. -

-
p
-

- The probability of success for each trial. -

-
alpha
-

- The maximum acceptable probability that more than k events will be - observed. -

-
-
-

- For example: -

-
binomial_distribution<RealType>::find_maximum_number_of_trials(0, 1e-6, 0.05);
-
-

- Returns the largest number of trials we can conduct and still be 95% certain - of not observing any events that occur with one in a million frequency. - This is typically used in failure analysis. -

-

- See Worked - Example. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain for the random variable k is 0 <= k <= N, otherwise a domain_error - is returned. -

-

- It's worth taking a moment to define what these accessors actually mean - in the context of this distribution: -

-
-

Table 5.1. Meaning of the non-member accessors

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Meaning -

-
-

- Probability Density - Function -

-
-

- The probability of obtaining exactly k - successes from n trials with success fraction p. For - example: -

-

- pdf(binomial(n, - p), - k) -

-
-

- Cumulative Distribution - Function -

-
-

- The probability of obtaining k successes - or fewer from n trials with success fraction p. For - example: -

-

- cdf(binomial(n, - p), - k) -

-
-

- Complement of - the Cumulative Distribution Function -

-
-

- The probability of obtaining more than - k successes from n trials with success fraction p. - For example: -

-

- cdf(complement(binomial(n, - p), - k)) -

-
-

- Quantile -

-
-

- The greatest number of successes - that may be observed from n trials with success fraction p, at - probability P. Note that the value returned is a real-number, - and not an integer. Depending on the use case you may want to - take either the floor or ceiling of the result. For example: -

-

- quantile(binomial(n, - p), - P) -

-
-

- Quantile - from the complement of the probability -

-
-

- The smallest number of successes - that may be observed from n trials with success fraction p, at - probability P. Note that the value returned is a real-number, - and not an integer. Depending on the use case you may want to - take either the floor or ceiling of the result. For example: -

-

- quantile(complement(binomial(n, - p), - P)) -

-
-
-
- - Examples -
-

- Various worked examples - are available illustrating the use of the binomial distribution. -

-
- - Accuracy -
-

- This distribution is implemented using the incomplete beta functions ibeta and ibetac, - please refer to these functions for information on accuracy. -

-
- - Implementation -
-

- In the following table p is the probability that one - trial will be successful (the success fraction), n - is the number of trials, k is the number of successes, - p is the probability and q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Implementation is in terms of ibeta_derivative: - if nCk is the binomial coefficient of a and b, then we have: -

-

- -

-

- Which can be evaluated as ibeta_derivative(k+1, n-k+1, p) / - (n+1) -

-

- The function ibeta_derivative - is used here, since it has already been optimised for the lowest - possible error - indeed this is really just a thin wrapper around - part of the internals of the incomplete beta function. -

-

- There are also various special cases: refer to the code for details. -

-
-

- cdf -

-
-

- Using the relation: -

-
p = I[sub 1-p](n - k, k + 1)
-  = 1 - I[sub p](k + 1, n - k)
-  = ibetac(k + 1, n - k, p)
-

- There are also various special cases: refer to the code for details. -

-
-

- cdf complement -

-
-

- Using the relation: q = ibeta(k - + 1, n - k, p) -

-

- There are also various special cases: refer to the code for details. -

-
-

- quantile -

-
-

- Since the cdf is non-linear in variate k - none of the inverse incomplete beta functions can be used here. - Instead the quantile is found numerically using a derivative - free method (TOMS - 748 algorithm). -

-
-

- quantile from the complement -

-
-

- Found numerically as above. -

-
-

- mean -

-
-

- p * - n -

-
-

- variance -

-
-

- p * - n * - (1-p) -

-
-

- mode -

-
-

- floor(p * - (n - + 1)) -

-
-

- skewness -

-
-

- (1 - - 2 - * p) / - sqrt(n * - p * - (1 - - p)) -

-
-

- kurtosis -

-
-

- 3 - - (6 - / n) + - (1 - / (n * - p * - (1 - - p))) -

-
-

- kurtosis excess -

-
-

- (1 - - 6 - * p - * q) / - (n - * p - * q) -

-
-

- parameter estimation -

-
-

- The member functions find_upper_bound_on_p - find_lower_bound_on_p - and find_number_of_trials - are implemented in terms of the inverse incomplete beta functions - ibetac_inv, - ibeta_inv, - and ibetac_invb - respectively -

-
-
- - References -
- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/cauchy_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/cauchy_dist.html deleted file mode 100644 index 08c174dd..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/cauchy_dist.html +++ /dev/null @@ -1,305 +0,0 @@ - - - -Cauchy-Lorentz Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/cauchy.hpp>
-
template <class RealType = double,
-          class Policy   = policies::policy<> >
-class cauchy_distribution;
-
-typedef cauchy_distribution<> cauchy;
-
-template <class RealType, class Policy>
-class cauchy_distribution
-{
-public:
-   typedef RealType  value_type;
-   typedef Policy    policy_type;
-
-   cauchy_distribution(RealType location = 0, RealType scale = 1);
-
-   RealType location()const;
-   RealType scale()const;
-};
-
-

- The Cauchy-Lorentz - distribution is named after Augustin Cauchy and Hendrik Lorentz. - It is a continuous - probability distribution with probability - distribution function PDF given by: -

-

- -

-

- The location parameter x0   is the location of the peak of the distribution - (the mode of the distribution), while the scale parameter γ   specifies half - the width of the PDF at half the maximum height. If the location is zero, - and the scale 1, then the result is a standard Cauchy distribution. -

-

- The distribution is important in physics as it is the solution to the differential - equation describing forced resonance, while in spectroscopy it is the description - of the line shape of spectral lines. -

-

- The following graph shows how the distributions moves as the location parameter - changes: -

-

- -

-

- While the following graph shows how the shape (scale) parameter alters - the distribution: -

-

- -

-
- - Member - Functions -
-
cauchy_distribution(RealType location = 0, RealType scale = 1);
-
-

- Constructs a Cauchy distribution, with location parameter location - and scale parameter scale. When these parameters take - their default values (location = 0, scale = 1) then the result is a Standard - Cauchy Distribution. -

-

- Requires scale > 0, otherwise calls domain_error. -

-
RealType location()const;
-
-

- Returns the location parameter of the distribution. -

-
RealType scale()const;
-
-

- Returns the scale parameter of the distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- Note however that the Cauchy distribution does not have a mean, standard - deviation, etc. See mathematically - undefined function to control whether these should fail to compile - with a BOOST_STATIC_ASSERTION_FAILURE, which is the default. -

-

- Alternately, the functions mean, - standard deviation, - variance, skewness, kurtosis - and kurtosis_excess - will all return a domain_error - if called. -

-

- The domain of the random variable is [-[max_value], +[min_value]]. -

-
- - Accuracy -
-

- The Cauchy distribution is implemented in terms of the standard library - tan and atan - functions, and as such should have very low error rates. -

-
- - Implementation -
-

- In the following table x0 is the location parameter of the distribution, - γ   is its scale parameter, x is the random variate, - p is the probability and q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = 1 / (π * γ * (1 + ((x - x0 ) / γ)2) -

-
-

- cdf and its complement -

-
-

- The cdf is normally given by: -

-

- p = 0.5 + atan(x)/π -

-

- But that suffers from cancellation error as x -> -∞. So recall - that for x < - 0: -

-

- atan(x) = -π/2 - atan(1/x) -

-

- Substituting into the above we get: -

-

- p = -atan(1/x) ; x < 0 -

-

- So the procedure is to calculate the cdf for -fabs(x) using the - above formula. Note that to factor in the location and scale - parameters you must substitute (x - x0 ) / γ   for x in the above. -

-

- This procedure yields the smaller of p and - q, so the result may need subtracting from - 1 depending on whether we want the complement or not, and whether - x is less than x0 or not. -

-
-

- quantile -

-
-

- The same procedure is used irrespective of whether we're starting - from the probability or its complement. First the argument p - is reduced to the range [-0.5, 0.5], then the relation -

-

- x = x0 ± γ   / tan(π * p) -

-

- is used to obtain the result. Whether we're adding or subtracting - from x0 is determined by whether we're starting from the complement - or not. -

-
-

- mode -

-
-

- The location parameter. -

-
-
- - References -
- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/chi_squared_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/chi_squared_dist.html deleted file mode 100644 index e14a9ffe..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/chi_squared_dist.html +++ /dev/null @@ -1,411 +0,0 @@ - - - -Chi Squared Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/chi_squared.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class chi_squared_distribution;
-
-typedef chi_squared_distribution<> chi_squared;
-
-template <class RealType, class Policy>
-class chi_squared_distribution
-{
-public:
-   typedef RealType  value_type;
-   typedef Policy    policy_type;
-
-   // Constructor:
-   chi_squared_distribution(RealType i);
-
-   // Accessor to parameter:
-   RealType degrees_of_freedom()const;
-
-   // Parameter estimation:
-   static RealType find_degrees_of_freedom(
-      RealType difference_from_mean,
-      RealType alpha,
-      RealType beta,
-      RealType sd,
-      RealType hint = 100);
-};
-
-}} // namespaces
-
-

- The Chi-Squared distribution is one of the most widely used distributions - in statistical tests. If χi   are ν   -independent, normally distributed random - variables with means μi   and variances σi2, then the random variable: -

-

- -

-

- is distributed according to the Chi-Squared distribution. -

-

- The Chi-Squared distribution is a special case of the gamma distribution - and has a single parameter ν   that specifies the number of degrees of freedom. - The following graph illustrates how the distribution changes for different - values of ν: -

-

- -

-
- - Member - Functions -
-
chi_squared_distribution(RealType v);
-
-

- Constructs a Chi-Squared distribution with v degrees - of freedom. -

-

- Requires v > 0, otherwise calls domain_error. -

-
RealType degrees_of_freedom()const;
-
-

- Returns the parameter v from which this object was - constructed. -

-
static RealType find_degrees_of_freedom(
-   RealType difference_from_variance,
-   RealType alpha,
-   RealType beta,
-   RealType variance,
-   RealType hint = 100);
-
-

- Estimates the sample size required to detect a difference from a nominal - variance in a Chi-Squared test for equal standard deviations. -

-
-

-
-
difference_from_variance
-

- The difference from the assumed nominal variance that is to be detected: - Note that the sign of this value is critical, see below. -

-
alpha
-

- The maximum acceptable risk of rejecting the null hypothesis when - it is in fact true. -

-
beta
-

- The maximum acceptable risk of falsely failing to reject the null - hypothesis. -

-
variance
-

- The nominal variance being tested against. -

-
hint
-

- An optional hint on where to start looking for a result: the current - sample size would be a good choice. -

-
-
-

- Note that this calculation works with variances and - not standard deviations. -

-

- The sign of the parameter difference_from_variance - is important: the Chi Squared distribution is asymmetric, and the caller - must decide in advance whether they are testing for a variance greater - than a nominal value (positive difference_from_variance) - or testing for a variance less than a nominal value (negative difference_from_variance). - If the latter, then obviously it is a requirement that variance - + difference_from_variance - > 0, - since no sample can have a negative variance! -

-

- This procedure uses the method in Diamond, W. J. (1989). Practical Experiment - Designs, Van-Nostrand Reinhold, New York. -

-

- See also section on Sample sizes required in the - NIST Engineering Statistics Handbook, Section 7.2.3.2. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- (We have followed the usual restriction of the mode to degrees of freedom - >= 2, but note that the maximum of the pdf is actually zero for degrees - of freedom from 2 down to 0, and provide an extended definition that would - avoid a discontinuity in the mode as alternative code in a comment). -

-

- The domain of the random variable is [0, +∞]. -

-
- - Examples -
-

- Various worked examples - are available illustrating the use of the Chi Squared Distribution. -

-
- - Accuracy -
-

- The Chi-Squared distribution is implemented in terms of the incomplete - gamma functions: please refer to the accuracy data for those functions. -

-
- - Implementation -
-

- In the following table v is the number of degrees - of freedom of the distribution, x is the random variate, - p is the probability, and q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = gamma_p_derivative(v - / 2, x / 2) / 2 -

-
-

- cdf -

-
-

- Using the relation: p = gamma_p(v - / 2, x / 2) -

-
-

- cdf complement -

-
-

- Using the relation: q = gamma_q(v - / 2, x / 2) -

-
-

- quantile -

-
-

- Using the relation: x = 2 * gamma_p_inv(v - / 2, p) -

-
-

- quantile from the complement -

-
-

- Using the relation: x = 2 * gamma_q_inv(v - / 2, p) -

-
-

- mean -

-
-

- v -

-
-

- variance -

-
-

- 2v -

-
-

- mode -

-
-

- v - 2 (if v >= 2) -

-
-

- skewness -

-
-

- 2 * sqrt(2 / v) == sqrt(8 / v) -

-
-

- kurtosis -

-
-

- 3 + 12 / v -

-
-

- kurtosis excess -

-
-

- 12 / v -

-
-
- - References -
- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/exp_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/exp_dist.html deleted file mode 100644 index 67fd3839..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/exp_dist.html +++ /dev/null @@ -1,328 +0,0 @@ - - - -Exponential Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/exponential.hpp>
-
template <class RealType = double,
-          class Policy   = policies::policy<> >
-class exponential_distribution;
-
-typedef exponential_distribution<> exponential;
-
-template <class RealType, class Policy>
-class exponential_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-
-   exponential_distribution(RealType lambda = 1);
-
-   RealType lambda()const;
-};
-
-

- The exponential - distribution is a continuous - probability distribution with PDF: -

-

- -

-

- It is often used to model the time between independent events that happen - at a constant average rate. -

-

- The following graph shows how the distribution changes for different values - of the rate parameter lambda: -

-

- -

-
- - Member - Functions -
-
exponential_distribution(RealType lambda = 1);
-
-

- Constructs an Exponential - distribution with parameter lambda. Lambda - is defined as the reciprocal of the scale parameter. -

-

- Requires lambda > 0, otherwise calls domain_error. -

-
RealType lambda()const;
-
-

- Accessor function returns the lambda parameter of the distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [0, +∞]. -

-
- - Accuracy -
-

- The exponential distribution is implemented in terms of the standard library - functions exp, log, log1p - and expm1 and as such should - have very low error rates. -

-
- - Implementation -
-

- In the following table λ is the parameter lambda of the distribution, x - is the random variate, p is the probability and q - = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = λ * exp(-λ * x) -

-
-

- cdf -

-
-

- Using the relation: p = 1 - exp(-x * λ) = -expm1(-x * λ) -

-
-

- cdf complement -

-
-

- Using the relation: q = exp(-x * λ) -

-
-

- quantile -

-
-

- Using the relation: x = -log(1-p) / λ = -log1p(-p) / λ -

-
-

- quantile from the complement -

-
-

- Using the relation: x = -log(q) / λ -

-
-

- mean -

-
-

- 1/λ -

-
-

- standard deviation -

-
-

- 1/λ -

-
-

- mode -

-
-

- 0 -

-
-

- skewness -

-
-

- 2 -

-
-

- kurtosis -

-
-

- 9 -

-
-

- kurtosis excess -

-
-

- 6 -

-
-
- - references -
- -

- (See also the reference documentation for the related Extreme - Distributions.) -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/extreme_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/extreme_dist.html deleted file mode 100644 index b142bfd5..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/extreme_dist.html +++ /dev/null @@ -1,331 +0,0 @@ - - - -Extreme Value Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/extreme.hpp>
-
template <class RealType = double,
-          class Policy   = policies::policy<> >
-class extreme_value_distribution;
-
-typedef extreme_value_distribution<> extreme_value;
-
-template <class RealType, class Policy>
-class extreme_value_distribution
-{
-public:
-   typedef RealType value_type;
-
-   extreme_value_distribution(RealType location = 0, RealType scale = 1);
-
-   RealType scale()const;
-   RealType location()const;
-};
-
-

- There are various extreme - value distributions : this implementation represents the maximum - case, and is variously known as a Fisher-Tippett distribution, a log-Weibull - distribution or a Gumbel distribution. -

-

- Extreme value theory is important for assessing risk for highly unusual - events, such as 100-year floods. -

-

- More information can be found on the NIST, - Wikipedia, - Mathworld, - and Extreme - value theory websites. -

-

- The relationship of the types of extreme value distributions, of which - this is but one, is discussed by Extreme - Value Distributions, Theory and Applications Samuel Kotz & Saralees - Nadarajah. -

-

- The distribution has a PDF given by: -

-

- f(x) = (1/scale) e-(x-location)/scale e-e-(x-location)/scale -

-

- Which in the standard case (scale = 1, location = 0) reduces to: -

-

- f(x) = e-xe-e-x -

-

- The following graph illustrates how the PDF varies with the location parameter: -

-

- -

-

- And this graph illustrates how the PDF varies with the shape parameter: -

-

- -

-
- - Member - Functions -
-
extreme_value_distribution(RealType location = 0, RealType scale = 1);
-
-

- Constructs an Extreme Value distribution with the specified location and - scale parameters. -

-

- Requires scale > - 0, otherwise calls domain_error. -

-
RealType location()const;
-
-

- Returns the location parameter of the distribution. -

-
RealType scale()const;
-
-

- Returns the scale parameter of the distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random parameter is [-∞, +∞]. -

-
- - Accuracy -
-

- The extreme value distribution is implemented in terms of the standard - library exp and log functions and as such should have - very low error rates. -

-
- - Implementation -
-

- In the following table: a is the location parameter, - b is the scale parameter, x is - the random variate, p is the probability and q - = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = exp((a-x)/b) * exp(-exp((a-x)/b)) / - b -

-
-

- cdf -

-
-

- Using the relation: p = exp(-exp((a-x)/b)) -

-
-

- cdf complement -

-
-

- Using the relation: q = -expm1(-exp((a-x)/b)) -

-
-

- quantile -

-
-

- Using the relation: a - log(-log(p)) * b -

-
-

- quantile from the complement -

-
-

- Using the relation: a - log(-log1p(-q)) * b -

-
-

- mean -

-
-

- a + Euler-Mascheroni-constant - * b -

-
-

- standard deviation -

-
-

- pi * b / sqrt(6) -

-
-

- mode -

-
-

- The same as the location parameter a. -

-
-

- skewness -

-
-

- 12 * sqrt(6) * zeta(3) / pi3 -

-
-

- kurtosis -

-
-

- 27 / 5 -

-
-

- kurtosis excess -

-
-

- kurtosis - 3 or 12 / 5 -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/f_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/f_dist.html deleted file mode 100644 index 9911987f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/f_dist.html +++ /dev/null @@ -1,434 +0,0 @@ - - - -F Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/fisher_f.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class fisher_f_distribution;
-
-typedef fisher_f_distribution<> fisher_f;
-
-template <class RealType, class Policy>
-class fisher_f_distribution
-{
-public:
-   typedef RealType value_type;
-
-   // Construct:
-   fisher_f_distribution(const RealType& i, const RealType& j);
-
-   // Accessors:
-   RealType degrees_of_freedom1()const;
-   RealType degrees_of_freedom2()const;
-};
-
-}} //namespaces
-
-

- The F distribution is a continuous distribution that arises when testing - whether two samples have the same variance. If χ2m   and χ2n   are independent - variates each distributed as Chi-Squared with m and - n degrees of freedom, then the test statistic: -

-

- Fn,m   = (χ2n   / n) / (χ2m   / m) -

-

- Is distributed over the range [0, ∞] with an F distribution, and has the - PDF: -

-

- -

-

- The following graph illustrates how the PDF varies depending on the two - degrees of freedom parameters. -

-

- -

-
- - Member Functions -
-
fisher_f_distribution(const RealType& df1, const RealType& df2);
-
-

- Constructs an F-distribution with numerator degrees of freedom df1 - and denominator degrees of freedom df2. -

-

- Requires that df1 and df2 are - both greater than zero, otherwise domain_error - is called. -

-
RealType degrees_of_freedom1()const;
-
-

- Returns the numerator degrees of freedom parameter of the distribution. -

-
RealType degrees_of_freedom2()const;
-
-

- Returns the denominator degrees of freedom parameter of the distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [0, +∞]. -

-
- - Examples -
-

- Various worked examples - are available illustrating the use of the F Distribution. -

-
- - Accuracy -
-

- The normal distribution is implemented in terms of the incomplete - beta function and its inverses, - refer to those functions for accuracy data. -

-
- - Implementation -
-

- In the following table v1 and v2 - are the first and second degrees of freedom parameters of the distribution, - x is the random variate, p is - the probability, and q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- The usual form of the PDF is given by: -

-

- -

-

- However, that form is hard to evaluate directly without incurring - problems with either accuracy or numeric overflow. -

-

- Direct differentiation of the CDF expressed in terms of the incomplete - beta function -

-

- led to the following two formulas: -

-

- fv1,v2(x) = y * ibeta_derivative(v2 - / 2, v1 / 2, v2 / (v2 + v1 * x)) -

-

- with y = (v2 * v1) / ((v2 + v1 * x) * (v2 + v1 * x)) -

-

- and -

-

- fv1,v2(x) = y * ibeta_derivative(v1 - / 2, v2 / 2, v1 * x / (v2 + v1 * x)) -

-

- with y = (z * v1 - x * v1 * v1) / z2 -

-

- and z = v2 + v1 * x -

-

- The first of these is used for v1 * x > v2, otherwise the - second is used. -

-

- The aim is to keep the x argument to ibeta_derivative - away from 1 to avoid rounding error. -

-
-

- cdf -

-
-

- Using the relations: -

-

- p = ibeta(v1 - / 2, v2 / 2, v1 * x / (v2 + v1 * x)) -

-

- and -

-

- p = ibetac(v2 - / 2, v1 / 2, v2 / (v2 + v1 * x)) -

-

- The first is used for v1 * x > v2, otherwise the second is - used. -

-

- The aim is to keep the x argument to ibeta well - away from 1 to avoid rounding error. -

-
-

- cdf complement -

-
-

- Using the relations: -

-

- p = ibetac(v1 - / 2, v2 / 2, v1 * x / (v2 + v1 * x)) -

-

- and -

-

- p = ibeta(v2 - / 2, v1 / 2, v2 / (v2 + v1 * x)) -

-

- The first is used for v1 * x < v2, otherwise the second is - used. -

-

- The aim is to keep the x argument to ibeta well - away from 1 to avoid rounding error. -

-
-

- quantile -

-
-

- Using the relation: -

-

- x = v2 * a / (v1 * b) -

-

- where: -

-

- a = ibeta_inv(v1 - / 2, v2 / 2, p) -

-

- and -

-

- b = 1 - a -

-

- Quantities a and b - are both computed by ibeta_inv - without the subtraction implied above. -

-
-

- quantile -

-

- from the complement -

-
-

- Using the relation: -

-

- x = v2 * a / (v1 * b) -

-

- where -

-

- a = ibetac_inv(v1 - / 2, v2 / 2, p) -

-

- and -

-

- b = 1 - a -

-

- Quantities a and b - are both computed by ibetac_inv - without the subtraction implied above. -

-
-

- mean -

-
-

- v2 / (v2 - 2) -

-
-

- variance -

-
-

- 2 * v22 * (v1 + v2 - 2) / (v1 * (v2 - 2) * (v2 - 2) * (v2 - 4)) -

-
-

- mode -

-
-

- v2 * (v1 - 2) / (v1 * (v2 + 2)) -

-
-

- skewness -

-
-

- 2 * (v2 + 2 * v1 - 2) * sqrt((2 * v2 - 8) / (v1 * (v2 + v1 - - 2))) / (v2 - 6) -

-
-

- kurtosis and kurtosis excess -

-
-

- Refer to, Weisstein, - Eric W. "F-Distribution." From MathWorld--A Wolfram - Web Resource. -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/gamma_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/gamma_dist.html deleted file mode 100644 index ebbfd9a0..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/gamma_dist.html +++ /dev/null @@ -1,364 +0,0 @@ - - - -Gamma (and Erlang) Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/gamma.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class gamma_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-
-   gamma_distribution(RealType shape, RealType scale = 1)
-
-   RealType shape()const;
-   RealType scale()const;
-};
-
-}} // namespaces
-
-

- The gamma distribution is a continuous probability distribution. When the - shape parameter is an integer then it is known as the Erlang Distribution. - It is also closely related to the Poisson and Chi Squared Distributions. -

-

- When the shape parameter has an integer value, the distribution is the - Erlang distribution. - Since this can be produced by ensuring that the shape parameter has an - integer value > 0, the Erlang distribution is not separately implemented. -

-
- - - - - -
[Note]Note
-

- To avoid potential confusion with the gamma functions, this distribution - does not provide the typedef: -

-
typedef gamma_distribution<double> gamma;
-

- Instead if you want a double precision gamma distribution you can write -

-
boost::math::gamma_distribution<> my_gamma(1, 1);
-
-

- For shape parameter k and scale parameter θ   it is defined - by the probability density function: -

-

- -

-

- Sometimes an alternative formulation is used: given parameters α  = k and - β  = 1 / θ, then the distribution can be defined by the PDF: -

-

- -

-

- In this form the inverse scale parameter is called a rate parameter. -

-

- Both forms are in common usage: this library uses the first definition - throughout. Therefore to construct a Gamma Distribution from a rate - parameter, you should pass the reciprocal of the rate as the - scale parameter. -

-

- The following two graphs illustrate how the PDF of the gamma distribution - varies as the parameters vary: -

-

- -

-

- -

-

- The Erlang Distribution is the same as - the Gamma, but with the shape parameter an integer. It is often expressed - using a rate rather than a scale - as the second parameter (remember that the rate is the reciprocal of the - scale). -

-

- Internally the functions used to implement the Gamma Distribution are already - optimised for small-integer arguments, so in general there should be no - great loss of performance from using a Gamma Distribution rather than a - dedicated Erlang Distribution. -

-
- - Member - Functions -
-
gamma_distribution(RealType shape, RealType scale = 1);
-
-

- Constructs a gamma distribution with shape shape and - scale scale. -

-

- Requires that the shape and scale parameters are greater than zero, otherwise - calls domain_error. -

-
RealType shape()const;
-
-

- Returns the shape parameter of this distribution. -

-
RealType scale()const;
-
-

- Returns the scale parameter of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [0,+∞]. -

-
- - Accuracy -
-

- The lognormal distribution is implemented in terms of the incomplete gamma - functions gamma_p and - gamma_q and their inverses - gamma_p_inv and - gamma_q_inv: refer - to the accuracy data for those functions for more information. -

-
- - Implementation -
-

- In the following table k is the shape parameter of - the distribution, θ   is its scale parameter, x is the - random variate, p is the probability and q - = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = gamma_p_derivative(k, - x / θ) / θ -

-
-

- cdf -

-
-

- Using the relation: p = gamma_p(k, - x / θ) -

-
-

- cdf complement -

-
-

- Using the relation: q = gamma_q(k, - x / θ) -

-
-

- quantile -

-
-

- Using the relation: x = θ  * gamma_p_inv(k, - p) -

-
-

- quantile from the complement -

-
-

- Using the relation: x = θ  * gamma_q_inv(k, - p) -

-
-

- mean -

-
-

- kθ -

-
-

- variance -

-
-

- kθ2 -

-
-

- mode -

-
-

- (k-1)θ   for k>1 otherwise a domain_error -

-
-

- skewness -

-
-

- 2 / sqrt(k) -

-
-

- kurtosis -

-
-

- 3 + 6 / k -

-
-

- kurtosis excess -

-
-

- 6 / k -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/geometric_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/geometric_dist.html deleted file mode 100644 index f29f2c42..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/geometric_dist.html +++ /dev/null @@ -1,841 +0,0 @@ - - - -Geometric Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/geometric.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class geometric_distribution;
-
-typedef geometric_distribution<> geometric;
-
-template <class RealType, class Policy>
-class geometric_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-   // Constructor from success_fraction:
-   geometric_distribution(RealType p);
-
-   // Parameter accessors:
-   RealType success_fraction() const;
-   RealType successes() const;
-
-   // Bounds on success fraction:
-   static RealType find_lower_bound_on_p(
-      RealType trials,
-      RealType successes,
-      RealType probability); // alpha
-   static RealType find_upper_bound_on_p(
-      RealType trials,
-      RealType successes,
-      RealType probability); // alpha
-
-   // Estimate min/max number of trials:
-   static RealType find_minimum_number_of_trials(
-      RealType k,     // Number of failures.
-      RealType p,     // Success fraction.
-      RealType probability); // Probability threshold alpha.
-   static RealType find_maximum_number_of_trials(
-      RealType k,     // Number of failures.
-      RealType p,     // Success fraction.
-      RealType probability); // Probability threshold alpha.
-};
-
-}} // namespaces
-
-

- The class type geometric_distribution - represents a geometric - distribution: it is used when there are exactly two mutually exclusive - outcomes of a Bernoulli - trial: these outcomes are labelled "success" and "failure". -

-

- For Bernoulli - trials each with success fraction p, the geometric - distribution gives the probability of observing k - trials (failures, events, occurrences, or arrivals) before the first success. -

-
- - - - - -
[Note]Note

- For this implementation, the set of trials includes - zero (unlike another definition where the set of trials starts - at one, sometimes named shifted). -

-

- The geometric distribution assumes that success_fraction p - is fixed for all k trials. -

-

- The probability that there are k failures before the - first success is -

-

-    Pr(Y=k) = (1-p)kp -

-

- For example, when throwing a 6-face dice the success probability p - = 1/6 = 0.1666 ̇  . Throwing repeatedly until a three - appears, the probability distribution of the number of times not-a-three - is thrown is geometric. -

-

- Geometric distribution has the Probability Density Function PDF: -

-

-    (1-p)kp -

-

- The following graph illustrates how the PDF and CDF vary for three examples - of the success fraction p, (when considering the geometric - distribution as a continuous function), -

-

- -

-

- -

-

- and as discrete. -

-

- -

-

- -

-
- - Related - Distributions -
-

- The geometric distribution is a special case of the Negative - Binomial Distribution with successes parameter r - = 1, so only one first and only success is required : thus by definition -    geometric(p) == - negative_binomial(1, p) -

-
negative_binomial_distribution(RealType r, RealType success_fraction);
-negative_binomial nb(1, success_fraction);
-geometric g(success_fraction);
-ASSERT(pdf(nb, 1) == pdf(g, 1));
-
-

- This implementation uses real numbers for the computation throughout (because - it uses the real-valued power and exponential - functions). So to obtain a conventional strictly-discrete geometric distribution - you must ensure that an integer value is provided for the number of trials - (random variable) k, and take integer values (floor - or ceil functions) from functions that return a number of successes. -

-
- - - - - -
[Caution]Caution
-

- The geometric distribution is a discrete distribution: internally, functions - like the cdf and pdf are treated "as if" they - are continuous functions, but in reality the results returned from these - functions only have meaning if an integer value is provided for the random - variate argument. -

-

- The quantile function will by default return an integer result that has - been rounded outwards. That is to say lower quantiles - (where the probability is less than 0.5) are rounded downward, and upper - quantiles (where the probability is greater than 0.5) are rounded upwards. - This behaviour ensures that if an X% quantile is requested, then at - least the requested coverage will be present in the central - region, and no more than the requested coverage - will be present in the tails. -

-

- This behaviour can be changed so that the quantile functions are rounded - differently, or even return a real-valued result using Policies. - It is strongly recommended that you read the tutorial Understanding - Quantiles of Discrete Distributions before using the quantile - function on the geometric distribution. The reference - docs describe how to change the rounding policy for these distributions. -

-
-
- - Member - Functions -
-
- - Constructor -
-
geometric_distribution(RealType p);
-
-

- Constructor: p or success_fraction is the probability - of success of a single trial. -

-

- Requires: 0 <= - p <= - 1. -

-
- - Accessors -
-
RealType success_fraction() const; // successes / trials (0 <= p <= 1)
-
-

- Returns the success_fraction parameter p from which - this distribution was constructed. -

-
RealType successes() const; // required successes always one,
-// included for compatibility with negative binomial distribution
-// with successes r == 1.
-
-

- Returns unity. -

-

- The following functions are equivalent to those provided for the negative - binomial, with successes = 1, but are provided here for completeness. -

-

- The best method of calculation for the following functions is disputed: - see Binomial - Distribution and Negative - Binomial Distribution for more discussion. -

-
- - Lower - Bound on success_fraction Parameter p -
-
static RealType find_lower_bound_on_p(
-  RealType failures,
-  RealType probability) // (0 <= alpha <= 1), 0.05 equivalent to 95% confidence.
-
-

- Returns a lower bound on the success fraction: -

-
-

-
-
failures
-

- The total number of failures before the 1st success. -

-
alpha
-

- The largest acceptable probability that the true value of the success - fraction is less than the value - returned. -

-
-
-

- For example, if you observe k failures from n - trials the best estimate for the success fraction is simply 1/n, - but if you want to be 95% sure that the true value is greater - than some value, pmin, then: -

-
pmin = geometric_distribution<RealType>::
-   find_lower_bound_on_p(failures, 0.05);
-
-

- See - negative_binomial confidence interval example. -

-

- This function uses the Clopper-Pearson method of computing the lower bound - on the success fraction, whilst many texts refer to this method as giving - an "exact" result in practice it produces an interval that guarantees - at least the coverage required, and may produce pessimistic - estimates for some combinations of failures and successes. - See: -

-

- Yong - Cai and K. Krishnamoorthy, A Simple Improved Inferential Method for Some - Discrete Distributions. Computational statistics and data analysis, 2005, - vol. 48, no3, 605-621. -

-
- - Upper - Bound on success_fraction Parameter p -
-
static RealType find_upper_bound_on_p(
-   RealType trials,
-   RealType alpha); // (0 <= alpha <= 1), 0.05 equivalent to 95% confidence.
-
-

- Returns an upper bound on the success - fraction: -

-
-

-
-
trials
-

- The total number of trials conducted. -

-
alpha
-

- The largest acceptable probability that the true value of the success - fraction is greater than the value - returned. -

-
-
-

- For example, if you observe k successes from n - trials the best estimate for the success fraction is simply k/n, - but if you want to be 95% sure that the true value is less - than some value, pmax, then: -

-
pmax = geometric_distribution<RealType>::find_upper_bound_on_p(
-                    k, 0.05);
-
-

- See - negative binomial confidence interval example. -

-

- This function uses the Clopper-Pearson method of computing the lower bound - on the success fraction, whilst many texts refer to this method as giving - an "exact" result in practice it produces an interval that guarantees - at least the coverage required, and may produce pessimistic - estimates for some combinations of failures and successes. - See: -

-

- Yong - Cai and K. Krishnamoorthy, A Simple Improved Inferential Method for Some - Discrete Distributions. Computational statistics and data analysis, 2005, - vol. 48, no3, 605-621. -

-
- - Estimating - Number of Trials to Ensure at Least a Certain Number of Failures -
-
static RealType find_minimum_number_of_trials(
-   RealType k,     // number of failures.
-   RealType p,     // success fraction.
-   RealType alpha); // probability threshold (0.05 equivalent to 95%).
-
-

- This functions estimates the number of trials required to achieve a certain - probability that more than k - failures will be observed. -

-
-

-
-
k
-

- The target number of failures to be observed. -

-
p
-

- The probability of success for each trial. -

-
alpha
-

- The maximum acceptable risk that only k - failures or fewer will be observed. -

-
-
-

- For example: -

-
geometric_distribution<RealType>::find_minimum_number_of_trials(10, 0.5, 0.05);
-
-

- Returns the smallest number of trials we must conduct to be 95% (1-0.05) - sure of seeing 10 failures that occur with frequency one half. -

-

- Worked - Example. -

-

- This function uses numeric inversion of the geometric distribution to obtain - the result: another interpretation of the result is that it finds the number - of trials (failures) that will lead to an alpha probability - of observing k failures or fewer. -

-
- - Estimating - Number of Trials to Ensure a Maximum Number of Failures or Less -
-
static RealType find_maximum_number_of_trials(
-   RealType k,     // number of failures.
-   RealType p,     // success fraction.
-   RealType alpha); // probability threshold (0.05 equivalent to 95%).
-
-

- This functions estimates the maximum number of trials we can conduct and - achieve a certain probability that k failures or - fewer will be observed. -

-
-

-
-
k
-

- The maximum number of failures to be observed. -

-
p
-

- The probability of success for each trial. -

-
alpha
-

- The maximum acceptable risk that more than - k failures will be observed. -

-
-
-

- For example: -

-
geometric_distribution<RealType>::find_maximum_number_of_trials(0, 1.0-1.0/1000000, 0.05);
-
-

- Returns the largest number of trials we can conduct and still be 95% sure - of seeing no failures that occur with frequency one in one million. -

-

- This function uses numeric inversion of the geometric distribution to obtain - the result: another interpretation of the result, is that it finds the - number of trials that will lead to an alpha probability - of observing more than k failures. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- However it's worth taking a moment to define what these actually mean in - the context of this distribution: -

-
-

Table 5.2. Meaning of the non-member accessors.

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Meaning -

-
-

- Probability Density - Function -

-
-

- The probability of obtaining exactly k - failures from k trials with success - fraction p. For example: -

-
pdf(geometric(p), k)
-
-

- Cumulative Distribution - Function -

-
-

- The probability of obtaining k failures - or fewer from k trials with success - fraction p and success on the last trial. For example: -

-
cdf(geometric(p), k)
-
-

- Complement of - the Cumulative Distribution Function -

-
-

- The probability of obtaining more than - k failures from k trials with - success fraction p and success on the last trial. For example: -

-
cdf(complement(geometric(p), k))
-
-

- Quantile -

-
-

- The greatest number of failures - k expected to be observed from k - trials with success fraction p, at probability - P. Note that the value returned is a real-number, - and not an integer. Depending on the use case you may want to - take either the floor or ceiling of the real result. For example: -

-
quantile(geometric(p), P)
-
-

- Quantile - from the complement of the probability -

-
-

- The smallest number of failures - k expected to be observed from k - trials with success fraction p, at probability - P. Note that the value returned is a real-number, - and not an integer. Depending on the use case you may want to - take either the floor or ceiling of the real result. For example: -

-
quantile(complement(geometric(p), P))
-
-
-
- - Accuracy -
-

- This distribution is implemented using the pow and exp functions, so most - results are accurate within a few epsilon for the RealType. For extreme - values of double p, - for example 0.9999999999, accuracy can fall significantly, for example - to 10 decimal digits (from 16). -

-
- - Implementation -
-

- In the following table, p is the probability that - any one trial will be successful (the success fraction), k - is the number of failures, p is the probability and - q = 1-p, x is the given probability - to estimate the expected number of failures using the quantile. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- pdf = p * pow(q, k) -

-
-

- cdf -

-
-

- cdf = 1 - qk=1 -

-
-

- cdf complement -

-
-

- exp(log1p(-p) * (k+1)) -

-
-

- quantile -

-
-

- k = log1p(-x) / log1p(-p) -1 -

-
-

- quantile from the complement -

-
-

- k = log(x) / log1p(-p) -1 -

-
-

- mean -

-
-

- (1-p)/p -

-
-

- variance -

-
-

- (1-p)/p² -

-
-

- mode -

-
-

- 0 -

-
-

- skewness -

-
-

- (2-p)/√q -

-
-

- kurtosis -

-
-

- 9+p²/q -

-
-

- kurtosis excess -

-
-

- 6 +p²/q -

-
-

- parameter estimation member functions -

-
-

- See Negative - Binomial Distribution -

-
-

- find_lower_bound_on_p -

-
-

- See Negative - Binomial Distribution -

-
-

- find_upper_bound_on_p -

-
-

- See Negative - Binomial Distribution -

-
-

- find_minimum_number_of_trials -

-
-

- See Negative - Binomial Distribution -

-
-

- find_maximum_number_of_trials -

-
-

- See Negative - Binomial Distribution -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/hyperexponential_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/hyperexponential_dist.html deleted file mode 100644 index fef5ffd4..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/hyperexponential_dist.html +++ /dev/null @@ -1,1460 +0,0 @@ - - - -Hyperexponential Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/hyperexponential.hpp>
-
namespace boost{ namespace math{
-
-template <typename RealType = double,
-          typename Policy   = policies::policy<> >
-class hyperexponential_distribution;
-
-typedef hyperexponential_distribution<> hyperexponential;
-
-template <typename RealType, typename Policy>
-class hyperexponential_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-
-   // Constructors:
-   hyperexponential_distribution();  // Default.
-
-   template <typename RateIterT, typename RateIterT2>
-   hyperexponential_distribution(  // Default equal probabilities.
-                                 RateIterT const& rate_first,
-                                 RateIterT2 const& rate_last);  // Rates using Iterators.
-
-   template <typename ProbIterT, typename RateIterT>
-   hyperexponential_distribution(ProbIterT prob_first, ProbIterT prob_last,
-                                 RateIterT rate_first, RateIterT rate_last);   // Iterators.
-
-   template <typename ProbRangeT, typename RateRangeT>
-   hyperexponential_distribution(ProbRangeT const& prob_range,
-                                 RateRangeT const& rate_range);  // Ranges.
-
-   template <typename RateRangeT>
-   hyperexponential_distribution(RateRangeT const& rate_range);
-
- #if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)     // C++11 initializer lists supported.
-   hyperexponential_distribution(std::initializer_list<RealType> l1, std::initializer_list<RealType> l2);
-   hyperexponential_distribution(std::initializer_list<RealType> l1);
- #endif
-
-   // Accessors:
-   std::size_t num_phases() const;
-   std::vector<RealType> probabilities() const;
-   std::vector<RealType> rates() const;
-};
-
-}} // namespaces
-
-
- - - - - -
[Note]Note

- An implementation-defined mechanism is provided to avoid ambiguity between - constructors accepting ranges, iterators and constants as parameters. - This should be transparent to the user. See below and the header file - hyperexponential.hpp for details and explanatory comments. -

-

- The class type hyperexponential_distribution - represents a hyperexponential - distribution. -

-

- A k-phase hyperexponential distribution is a continuous - probability distribution obtained as a mixture of k - Exponential Distributions. - It is also referred to as mixed exponential distribution - or parallel k-phase exponential distribution. -

-

- A k-phase hyperexponential distribution is characterized - by two parameters, namely a phase probability vector - α=(α1,...,αk) and a - rate vector λ=(λ1,...,λk). -

-

- The probability - density function for random variate x in a - hyperexponential distribution is given by: -

-

- -

-

- The following graph illustrates the PDF of the hyperexponential distribution - with five different parameters, namely: -

-
    -
  1. - α=(1.0) and λ=(1.0) (which degenerates to a simple - exponential distribution), -
  2. -
  3. - α=(0.1, 0.9) and - λ=(0.5, 1.5), -
  4. -
  5. - α=(0.9, 0.1) and - λ=(0.5, 1.5), -
  6. -
  7. - α=(0.2, 0.3, 0.5) - and λ=(0.5, 1.0, 1.5), -
  8. -
  9. - α=(0.5, 0.3, 0.2) - and λ=(0.5, 1.0, 1.5). -
  10. -
-

- -

-

- Also, the following graph illustrates the PDF of the hyperexponential distribution - (solid lines) where only the phase probability vector - changes together with the PDF of the two limiting exponential distributions - (dashed lines): -

-
    -
  1. - α=(0.1, 0.9) and - λ=(0.5, 1.5), -
  2. -
  3. - α=(0.6, 0.4) and - λ=(0.5, 1.5), -
  4. -
  5. - α=(0.9, 0.1) and - λ=(0.5, 1.5), -
  6. -
  7. - Exponential distribution with parameter λ=0.5, -
  8. -
  9. - Exponential distribution with parameter λ=1.5. -
  10. -
-

- As expected, as the first element α1 of the phase - probability vector approaches to 1 (or, - equivalently, α2 approaches to 0), - the resulting hyperexponential distribution nears the exponential distribution - with parameter λ=0.5. Conversely, as the first element - α2 of the phase probability vector - approaches to 1 (or, equivalently, α1 - approaches to 0), the resulting hyperexponential distribution - nears the exponential distribution with parameter λ=1.5. -

-

- -

-

- Finally, the following graph compares the PDF of the hyperexponential distribution - with different number of phases but with the same mean value equal to - 2: -

-
    -
  1. - α=(1.0) and λ=(2.0) (which degenerates to a simple - exponential distribution), -
  2. -
  3. - α=(0.5, 0.5) and - λ=(0.3, 1.5), -
  4. -
  5. - α=(1.0/3.0, 1.0/3.0, 1.0/3.0) - and λ=(0.2, 1.5, 3.0), -
  6. -
-

- -

-

- As can be noted, even if the three distributions have the same mean value, - the two hyperexponential distributions have a longer - tail with respect to the one of the exponential distribution. Indeed, the - hyperexponential distribution has a larger variability than the exponential - distribution, thus resulting in a Coefficient - of Variation greater than 1 (as opposed to - the one of the exponential distribution which is exactly 1). -

-

- - Applications -

-

- A k-phase hyperexponential distribution is frequently - used in queueing - theory to model the distribution of the superposition of k - independent events, like, for instance, the service time distribution of - a queueing station with k servers in parallel where - the i-th server is chosen with probability αi - and its service time distribution is an exponential distribution with rate - λi (Allen,1990; Papadopolous et al.,1993; Trivedi,2002). -

-

- For instance, CPUs service-time distribution in a computing system has - often been observed to possess such a distribution (Rosin,1965). Also, - the arrival of different types of customer to a single queueing station - is often modeled as a hyperexponential distribution (Papadopolous et al.,1993). - Similarly, if a product manufactured in several parallel assembly lines - and the outputs are merged, the failure density of the overall product - is likely to be hyperexponential (Trivedi,2002). -

-

- Finally, since the hyperexponential distribution exhibits a high Coefficient - of Variation (CoV), that is a CoV > 1, it is especially suited to fit - empirical data with large CoV (Feitelson,2014; Wolski et al.,2013) and - to approximate long-tail - probability distributions (Feldmann et al.,1998). -

-

- - Related - distributions -

-
    -
  • - When the number of phases k is equal to 1, the hyperexponential distribution - is simply an Exponential - Distribution. -
  • -
  • - When the k rates are all equal to λ, - the hyperexponential distribution is simple an Exponential - Distribution with rate λ. -
  • -
-

- - Examples -

-
- - Lifetime - of Appliances -
-

- Suppose a customer is buying an appliance and is choosing at random between - an appliance with average lifetime of 10 years and an appliance with average - lifetime of 12 years. Assuming the lifetime of this appliance follows an - exponential distribution, the lifetime distribution of the purchased appliance - can be modeled as a hyperexponential distribution with phase probability - vector α=(1/2,1/2) - and rate vector λ=(1/10,1/12) - (Wolfram,2014). -

-

- In the rest of this section, we provide an example C++ implementation for - computing the average lifetime and the probability that the appliance will - work for more than 15 years. -

-
#include <boost/math/distributions/hyperexponential.hpp>
-#include <iostream>
-int main()
-{
-   const double rates[] = { 1.0 / 10.0, 1.0 / 12.0 };
-
-   boost::math::hyperexponential he(rates);
-
-   std::cout << "Average lifetime: "
-      << boost::math::mean(he)
-      << " years" << std::endl;
-   std::cout << "Probability that the appliance will work for more than 15 years: "
-      << boost::math::cdf(boost::math::complement(he, 15.0))
-      << std::endl;
-}
-
-

- The resulting output is: -

-
Average lifetime: 11 years
-Probability that the appliance will work for more than 15 years: 0.254817
-
-
- - Workloads - of Private Cloud Computing Systems -
-

- Cloud computing - has become a popular metaphor for dynamic and secure self-service access - to computational and storage capabilities. In (Wolski et al.,2013), the - authors analyze and model workloads gathered from enterprise-operated commercial - private - clouds and show that 3-phase hyperexponential distributions (fitted - using the Expectation - Maximization algorithm) capture workload attributes accurately. -

-

- In this type of computing system, user requests consist in demanding the - provisioning of one or more Virtual - Machines (VMs). In particular, in (Wolski et al.,2013) the workload - experienced by each cloud system is a function of four distributions, one - for each of the following workload attributes: -

-
    -
  • - Request Interarrival Time: the amount of time - until the next request, -
  • -
  • - VM Lifetime: the time duration over which a VM - is provisioned to a physical machine, -
  • -
  • - Request Size: the number of VMs in the request, - and -
  • -
  • - Core Count: the CPU core count requested for each - VM. -
  • -
-

- The authors assume that all VMs in a request have the same core count, - but request sizes and core counts can vary from request to request. Moreover, - all VMs within a request are assumed to have the same lifetime. Given these - assumptions, the authors build a statistical model for the request interarrival - time and VM lifetime attributes by fitting their respective data to a 3-phase - hyperexponential distribution. -

-

- In the following table, we show the sample mean and standard deviation - (SD), in seconds, of the request interarrival time and of the VM lifetime - distributions of the three datasets collected by authors: -

-
------ - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Dataset -

-
-

- Mean Request Interarrival Time (SD) -

-
-

- Mean Multi-core VM Lifetime (SD) -

-
-

- Mean Single-core VM Lifetime (SD) -

-
-

- DS1 -

-
-

- 2202.1 (2.2e+04) -

-
-

- 257173 (4.6e+05) -

-
-

- 28754.4 (1.6e+05) -

-
-

- DS2 -

-
-

- 41285.7 (1.1e+05) -

-
-

- 144669.0 (7.9e+05) -

-
-

- 599815.0 (1.7e+06) -

-
-

- DS3 -

-
-

- 11238.8 (3.0e+04) -

-
-

- 30739.2 (1.6e+05) -

-
-

- 44447.8 (2.2e+05) -

-
-

- Whereas in the following table we show the hyperexponential distribution - parameters resulting from the fit: -

-
------ - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Dataset -

-
-

- Request Interarrival Time -

-
-

- Multi-core VM Lifetime -

-
-

- Single-core VM Lifetime -

-
-

- DS1 -

-
-

- α=(0.34561,0.08648,0.56791), - λ=(0.008,0.00005,0.02894) -

-
-

- α=(0.24667,0.37948,0.37385), - λ=(0.00004,0.000002,0.00059) -

-
-

- α=(0.09325,0.22251,0.68424), - λ=(0.000003,0.00109,0.00109) -

-
-

- DS2 -

-
-

- α=(0.38881,0.18227,0.42892), - λ=(0.000006,0.05228,0.00081) -

-
-

- α=(0.42093,0.43960,0.13947), - λ=(0.00186,0.00008,0.0000008) -

-
-

- α=(0.44885,0.30675,0.2444), - λ=(0.00143,0.00005,0.0000004) -

-
-

- DS3 -

-
-

- α=(0.39442,0.24644,0.35914), - λ=(0.00030,0.00003,0.00257) -

-
-

- α=(0.37621,0.14838,0.47541), - λ=(0.00498,0.000005,0.00022) -

-
-

- α=(0.34131,0.12544,0.53325), - λ=(0.000297,0.000003,0.00410) -

-
-

- In the rest of this section, we provide an example C++ implementation for - computing some statistical properties of the fitted distributions for each - of the analyzed dataset. -

-
#include <boost/math/distributions.hpp>
-#include <iostream>
-#include <string>
-
-struct ds_info
-{
-   std::string name;
-   double iat_sample_mean;
-   double iat_sample_sd;
-   boost::math::hyperexponential iat_he;
-   double multi_lt_sample_mean;
-   double multi_lt_sample_sd;
-   boost::math::hyperexponential multi_lt_he;
-   double single_lt_sample_mean;
-   double single_lt_sample_sd;
-   boost::math::hyperexponential single_lt_he;
-};
-
-// DS1 dataset
-ds_info make_ds1()
-{
-   ds_info ds;
-
-   ds.name = "DS1";
-
-   // VM interarrival time distribution
-   const double iat_fit_probs[] = { 0.34561,0.08648,0.56791 };
-   const double iat_fit_rates[] = { 0.0008,0.00005,0.02894 };
-   ds.iat_sample_mean = 2202.1;
-   ds.iat_sample_sd = 2.2e+4;
-   ds.iat_he = boost::math::hyperexponential(iat_fit_probs, iat_fit_rates);
-
-   // Multi-core VM lifetime distribution
-   const double multi_lt_fit_probs[] = { 0.24667,0.37948,0.37385 };
-   const double multi_lt_fit_rates[] = { 0.00004,0.000002,0.00059 };
-   ds.multi_lt_sample_mean = 257173;
-   ds.multi_lt_sample_sd = 4.6e+5;
-   ds.multi_lt_he = boost::math::hyperexponential(multi_lt_fit_probs, multi_lt_fit_rates);
-
-   // Single-core VM lifetime distribution
-   const double single_lt_fit_probs[] = { 0.09325,0.22251,0.68424 };
-   const double single_lt_fit_rates[] = { 0.000003,0.00109,0.00109 };
-   ds.single_lt_sample_mean = 28754.4;
-   ds.single_lt_sample_sd = 1.6e+5;
-   ds.single_lt_he = boost::math::hyperexponential(single_lt_fit_probs, single_lt_fit_rates);
-
-   return ds;
-}
-
-// DS2 dataset
-ds_info make_ds2()
-{
-   ds_info ds;
-
-   ds.name = "DS2";
-
-   // VM interarrival time distribution
-   const double iat_fit_probs[] = { 0.38881,0.18227,0.42892 };
-   const double iat_fit_rates[] = { 0.000006,0.05228,0.00081 };
-   ds.iat_sample_mean = 41285.7;
-   ds.iat_sample_sd = 1.1e+05;
-   ds.iat_he = boost::math::hyperexponential(iat_fit_probs, iat_fit_rates);
-
-   // Multi-core VM lifetime distribution
-   const double multi_lt_fit_probs[] = { 0.42093,0.43960,0.13947 };
-   const double multi_lt_fit_rates[] = { 0.00186,0.00008,0.0000008 };
-   ds.multi_lt_sample_mean = 144669.0;
-   ds.multi_lt_sample_sd = 7.9e+05;
-   ds.multi_lt_he = boost::math::hyperexponential(multi_lt_fit_probs, multi_lt_fit_rates);
-
-   // Single-core VM lifetime distribution
-   const double single_lt_fit_probs[] = { 0.44885,0.30675,0.2444 };
-   const double single_lt_fit_rates[] = { 0.00143,0.00005,0.0000004 };
-   ds.single_lt_sample_mean = 599815.0;
-   ds.single_lt_sample_sd = 1.7e+06;
-   ds.single_lt_he = boost::math::hyperexponential(single_lt_fit_probs, single_lt_fit_rates);
-
-   return ds;
-}
-
-// DS3 dataset
-ds_info make_ds3()
-{
-   ds_info ds;
-
-   ds.name = "DS3";
-
-   // VM interarrival time distribution
-   const double iat_fit_probs[] = { 0.39442,0.24644,0.35914 };
-   const double iat_fit_rates[] = { 0.00030,0.00003,0.00257 };
-   ds.iat_sample_mean = 11238.8;
-   ds.iat_sample_sd = 3.0e+04;
-   ds.iat_he = boost::math::hyperexponential(iat_fit_probs, iat_fit_rates);
-
-   // Multi-core VM lifetime distribution
-   const double multi_lt_fit_probs[] = { 0.37621,0.14838,0.47541 };
-   const double multi_lt_fit_rates[] = { 0.00498,0.000005,0.00022 };
-   ds.multi_lt_sample_mean = 30739.2;
-   ds.multi_lt_sample_sd = 1.6e+05;
-   ds.multi_lt_he = boost::math::hyperexponential(multi_lt_fit_probs, multi_lt_fit_rates);
-
-   // Single-core VM lifetime distribution
-   const double single_lt_fit_probs[] = { 0.34131,0.12544,0.53325 };
-   const double single_lt_fit_rates[] = { 0.000297,0.000003,0.00410 };
-   ds.single_lt_sample_mean = 44447.8;
-   ds.single_lt_sample_sd = 2.2e+05;
-   ds.single_lt_he = boost::math::hyperexponential(single_lt_fit_probs, single_lt_fit_rates);
-
-   return ds;
-}
-
-void print_fitted(ds_info const& ds)
-{
-   const double secs_in_a_hour = 3600;
-   const double secs_in_a_month = 30 * 24 * secs_in_a_hour;
-
-   std::cout << "### " << ds.name << std::endl;
-   std::cout << "* Fitted Request Interarrival Time" << std::endl;
-   std::cout << " - Mean (SD): " << boost::math::mean(ds.iat_he) << " (" << boost::math::standard_deviation(ds.iat_he) << ") seconds." << std::endl;
-   std::cout << " - 99th Percentile: " << boost::math::quantile(ds.iat_he, 0.99) << " seconds." << std::endl;
-   std::cout << " - Probability that a VM will arrive within 30 minutes: " << boost::math::cdf(ds.iat_he, secs_in_a_hour / 2.0) << std::endl;
-   std::cout << " - Probability that a VM will arrive after 1 hour: " << boost::math::cdf(boost::math::complement(ds.iat_he, secs_in_a_hour)) << std::endl;
-   std::cout << "* Fitted Multi-core VM Lifetime" << std::endl;
-   std::cout << " - Mean (SD): " << boost::math::mean(ds.multi_lt_he) << " (" << boost::math::standard_deviation(ds.multi_lt_he) << ") seconds." << std::endl;
-   std::cout << " - 99th Percentile: " << boost::math::quantile(ds.multi_lt_he, 0.99) << " seconds." << std::endl;
-   std::cout << " - Probability that a VM will last for less than 1 month: " << boost::math::cdf(ds.multi_lt_he, secs_in_a_month) << std::endl;
-   std::cout << " - Probability that a VM will last for more than 3 months: " << boost::math::cdf(boost::math::complement(ds.multi_lt_he, 3.0*secs_in_a_month)) << std::endl;
-   std::cout << "* Fitted Single-core VM Lifetime" << std::endl;
-   std::cout << " - Mean (SD): " << boost::math::mean(ds.single_lt_he) << " (" << boost::math::standard_deviation(ds.single_lt_he) << ") seconds." << std::endl;
-   std::cout << " - 99th Percentile: " << boost::math::quantile(ds.single_lt_he, 0.99) << " seconds." << std::endl;
-   std::cout << " - Probability that a VM will last for less than 1 month: " << boost::math::cdf(ds.single_lt_he, secs_in_a_month) << std::endl;
-   std::cout << " - Probability that a VM will last for more than 3 months: " << boost::math::cdf(boost::math::complement(ds.single_lt_he, 3.0*secs_in_a_month)) << std::endl;
-}
-
-int main()
-{
-   print_fitted(make_ds1());
-
-   print_fitted(make_ds2());
-
-   print_fitted(make_ds3());
-}
-
-

- The resulting output (with floating-point precision set to 2) is: -

-
### DS1
-* Fitted Request Interarrival Time
- - Mean (SD): 2.2e+03 (8.1e+03) seconds.
- - 99th Percentile: 4.3e+04 seconds.
- - Probability that a VM will arrive within 30 minutes: 0.84
- - Probability that a VM will arrive after 1 hour: 0.092
-* Fitted Multi-core VM Lifetime
- - Mean (SD): 2e+05 (3.9e+05) seconds.
- - 99th Percentile: 1.8e+06 seconds.
- - Probability that a VM will last for less than 1 month: 1
- - Probability that a VM will last for more than 3 months: 6.7e-08
-* Fitted Single-core VM Lifetime
- - Mean (SD): 3.2e+04 (1.4e+05) seconds.
- - 99th Percentile: 7.4e+05 seconds.
- - Probability that a VM will last for less than 1 month: 1
- - Probability that a VM will last for more than 3 months: 6.9e-12
-### DS2
-* Fitted Request Interarrival Time
- - Mean (SD): 6.5e+04 (1.3e+05) seconds.
- - 99th Percentile: 6.1e+05 seconds.
- - Probability that a VM will arrive within 30 minutes: 0.52
- - Probability that a VM will arrive after 1 hour: 0.4
-* Fitted Multi-core VM Lifetime
- - Mean (SD): 1.8e+05 (6.4e+05) seconds.
- - 99th Percentile: 3.3e+06 seconds.
- - Probability that a VM will last for less than 1 month: 0.98
- - Probability that a VM will last for more than 3 months: 0.00028
-* Fitted Single-core VM Lifetime
- - Mean (SD): 6.2e+05 (1.6e+06) seconds.
- - 99th Percentile: 8e+06 seconds.
- - Probability that a VM will last for less than 1 month: 0.91
- - Probability that a VM will last for more than 3 months: 0.011
-### DS3
-* Fitted Request Interarrival Time
- - Mean (SD): 9.7e+03 (2.2e+04) seconds.
- - 99th Percentile: 1.1e+05 seconds.
- - Probability that a VM will arrive within 30 minutes: 0.53
- - Probability that a VM will arrive after 1 hour: 0.36
-* Fitted Multi-core VM Lifetime
- - Mean (SD): 3.2e+04 (1e+05) seconds.
- - 99th Percentile: 5.4e+05 seconds.
- - Probability that a VM will last for less than 1 month: 1
- - Probability that a VM will last for more than 3 months: 1.9e-18
-* Fitted Single-core VM Lifetime
- - Mean (SD): 4.3e+04 (1.6e+05) seconds.
- - 99th Percentile: 8.4e+05 seconds.
- - Probability that a VM will last for less than 1 month: 1
- - Probability that a VM will last for more than 3 months: 9.3e-12
-
-
- - - - - -
[Note]Note

- The above results differ from the ones shown in Tables III, V, and VII - of (Wolski et al.,2013). We carefully double-checked them with Wolfram - Mathematica 10, which confirmed our results. -

-

- - Member - Functions -

-
- - Default - Constructor -
-
hyperexponential_distribution();
-
-

- Constructs a 1-phase hyperexponential distribution - (i.e., an exponential distribution) with rate 1. -

-
- - Constructor - from Iterators -
-
template <typename ProbIterT, typename RateIterT>
-hyperexponential_distribution(ProbIterT prob_first, ProbIterT prob_last,
-                              RateIterT rate_first, RateIterT rate_last);
-
-

- Constructs a hyperexponential distribution with phase probability - vector parameter given by the range defined by [prob_first, prob_last) - iterator pair, and rate vector parameter given by - the range defined by the [rate_first, - rate_last) iterator pair. -

-
- - Parameters -
-
    -
  • - prob_first, prob_last: the range of non-negative - real elements representing the phase probabilities; elements are normalized - to sum to unity. -
  • -
  • - rate_first, rate_last: the range of positive - elements representing the rates. -
  • -
-
- - Type - Requirements -
-
  • - ProbIterT, RateIterT: must meet the requirements - of the InputIterator - concept. -
-
- - Example -
-
std::array<double, 2> phase_prob = { 0.5, 0.5 };
-std::array<double, 2> rates = { 1.0 / 10, 1.0 / 12 };
-
-hyperexponential he(phase_prob.begin(), phase_prob.end(), rates.begin(), rates.end());
-
-
- - Construction - from Ranges/Containers -
-
template <typename ProbRangeT, typename RateRangeT>
-hyperexponential_distribution(ProbRangeT const& prob_range,
-                              RateRangeT const& rate_range);
-
-

- Constructs a hyperexponential distribution with phase probability - vector parameter given by the range defined by prob_range, and rate vector - parameter given by the range defined by rate_range. -

-
- - - - - -
[Note]Note

- As an implementation detail, this constructor uses Boost's enable_if/disable_if - mechanism to disambiguate between this and other 2-argument constructors. - Refer to the source code for more details. -

-
- - Parameters -
-
    -
  • - prob_range: the range - of non-negative real elements representing the phase probabilities; - elements are normalized to sum to unity. -
  • -
  • - rate_range: the range - of positive real elements representing the rates. -
  • -
-
- - Type - Requirements -
-
  • - ProbRangeT, RateRangeT: must meet the requirements - of the Range - concept: that includes native C++ arrays, standard library containers, - or a std::pair or iterators. -
-
- - Examples -
-
// We could be using any standard library container here... vector, deque, array, list etc:
-std::array<double, 2> phase_prob = { 0.5, 0.5 };
-std::array<double, 2> rates      = { 1.0 / 10, 1.0 / 12 };
-
-hyperexponential he1(phase_prob, rates);    // Construct from standard library container.
-
-double phase_probs2[] = { 0.5, 0.5 };
-double rates2[]       = { 1.0 / 10, 1.0 / 12 };
-
-hyperexponential he2(phase_probs2, rates2);  // Construct from native C++ array.
-
-
- - Construction - with rates-iterators (and all phase probabilities equal) -
-
template <typename RateIterT, typename RateIterT2>
-hyperexponential_distribution(RateIterT const& rate_first,
-                              RateIterT2 const& rate_last);
-
-

- Constructs a hyperexponential distribution with rate vector - parameter given by the range defined by the [rate_first, - rate_last) iterator pair, - and phase probability vector set to the equal phase - probabilities (i.e., to a vector of the same length n - of the rate vector and with each element set to 1.0/n). -

-
- - - - - -
[Note]Note

- As an implementation detail, this constructor uses Boost's enable_if/disable_if - mechanism to disambiguate between this and other 2-argument constructors. - Refer to the source code for more details. -

-
- - Parameters -
-
  • - rate_first, rate_last: the range of positive - elements representing the rates. -
-
- - Type - Requirements -
-
  • - RateIterT, RateIterT2: must meet the requirements - of the InputIterator - concept. -
-
- - Example -
-
// We could be using any standard library container here... vector, deque, array, list etc:
-std::array<double, 2> rates = { 1.0 / 10, 1.0 / 12 };
-
-hyperexponential he(rates.begin(), rates.end());
-
-assert(he.probabilities()[0] == 0.5); // Phase probabilities will be equal and normalised to unity.
-
-
- - Construction - from a single range of rates (all phase probabilities will be equal) -
-
template <typename RateRangeT>
-hyperexponential_distribution(RateRangeT const& rate_range);
-
-

- Constructs a hyperexponential distribution with rate vector - parameter given by the range defined by rate_range, - and phase probability vector set to the equal phase - probabilities (i.e., to a vector of the same length n - of the rate vector and with each element set to 1.0/n). -

-
- - Parameters -
-
  • - rate_range: the range - of positive real elements representing the rates. -
-
- - Type - Requirements -
-
  • - RateRangeT: must meet - the requirements of the Range - concept: this includes native C++ array, standard library containers, - and a std::pair of iterators. -
-
- - Examples -
-
std::array<double, 2> rates = { 1.0 / 10, 1.0 / 12 };
-
-hyperexponential he(rates);
-
-assert(he.probabilities()[0] == 0.5); // Phase probabilities will be equal and normalised to unity.
-
-
- - Construction - from Initializer lists -
-
hyperexponential_distribution(std::initializer_list<RealType> l1, std::initializer_list<RealType> l2);
-
-

- Constructs a hyperexponential distribution with phase probability - vector parameter given by the brace-init-list - defined by l1, and rate - vector parameter given by the brace-init-list - defined by l2. -

-
- - Parameters -
-
    -
  • - l1: the brace-init-list - of non-negative real elements representing the phase probabilities; - elements are normalized to sum to unity. -
  • -
  • - l2: the brace-init-list - of positive real elements representing the rates. -
  • -
-

- The number of elements of the phase probabilities list and the rates list - must be the same. -

-
- - Example -
-
hyperexponential he = { { 0.5, 0.5 }, { 1.0 / 10, 1.0 / 12 } };
-
-
- - Construction - from a single initializer list (all phase probabilities will be equal) -
-
hyperexponential_distribution(std::initializer_list<RealType> l1);
-
-

- Constructs a hyperexponential distribution with rate vector - parameter given by the brace-init-list - defined by l1, and phase - probability vector set to the equal phase probabilities (i.e., - to a vector of the same length n - of the rate vector and with each element set to 1.0/n). -

-
- - Parameters -
-
  • - l1: the brace-init-list - of non-negative real elements representing the phase probabilities; - they are normalized to ensure that they sum to unity. -
-
- - Example -
-
hyperexponential he = { 1.0 / 10, 1.0 / 12 };
-
-assert(he.probabilities()[0] == 0.5);
-
-
- - Accessors -
-
std::size_t num_phases() const;
-
-

- Gets the number of phases of this distribution (the size of both the rate - and probability vectors). -

-
- - Return - Value -
-

- An non-negative integer number representing the number of phases of this - distribution. -

-
std::vector<RealType> probabilities() const;
-
-

- Gets the phase probability vector parameter of this - distribution. -

-
- - - - - -
[Note]Note

- The returned probabilities are the normalized - versions of the probability parameter values passed at construction time. -

-
- - Return - Value -
-

- A vector of non-negative real numbers representing the phase - probability vector parameter of this distribution. -

-
std::vector<RealType> rates() const;
-
-

- Gets the rate vector parameter of this distribution. -

-
- - Return - Value -
-

- A vector of positive real numbers representing the rate vector - parameter of this distribution. -

-
- - - - - -
[Warning]Warning
-

- The return type of these functions is a vector-by-value. This is deliberate - as we wish to hide the actual container used internally which may be - subject to future changes (for example to facilitate vectorization of - the cdf code etc). Users should note that some code that might otherwise - have been expected to work does not. For example, an attempt to output - the (normalized) probabilities: -

-
std::copy(he.probabilities().begin(), he.probabilities().end(), std::ostream_iterator<double>(std::cout, " "));
-
-

- fails at compile or runtime because iterator types are incompatible, - but, for example, -

-
std::cout << he.probabilities()[0] << ' ' << he.probabilities()[1] << std::endl;
-
-

- outputs the expected values. -

-

- In general if you want to access a member of the returned container, - then assign to a variable first, and then access those members: -

-
std::vector<double> t = he.probabilities();
-std::copy(t.begin(), t.end(), std::ostream_iterator<double>(std::cout, " "));
-
-
-

- - Non-member - Accessor Functions -

-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The formulae for calculating these are shown in the table below. -

-

- - Accuracy -

-

- The hyperexponential distribution is implemented in terms of the Exponential Distribution - and as such should have very small errors, usually an epsilon - or few. -

-

- - Implementation -

-

- In the following table: -

-
    -
  • - α=(α1,...,αk) is - the phase probability vector parameter of the - k-phase hyperexponential distribution, -
  • -
  • - λ=(λ1,...,λk) is - the rate vector parameter of the k-phase - hyperexponential distribution, -
  • -
  • - x is the random variate. -
  • -
-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- support -

-
-

- x ∈ [0,∞) -

-
-

- pdf -

-
-

- -

-
-

- cdf -

-
-

- -

-
-

- cdf complement -

-
-

- -

-
-

- quantile -

-
-

- No closed form available. Computed numerically. -

-
-

- quantile from the complement -

-
-

- No closed form available. Computed numerically. -

-
-

- mean -

-
-

- -

-
-

- variance -

-
-

- -

-
-

- mode -

-
-

- 0 -

-
-

- skewness -

-
-

- -

-
-

- kurtosis -

-
-

- -

-
-

- kurtosis excess -

-
-

- kurtosis - 3 -

-
-

- - References -

-
    -
  • - A.O. Allen, Probability, Statistics, and Queuing Theory with - Computer Science Applications, Second Edition, Academic - Press, 1990. -
  • -
  • - D.G. Feitelson, Workload Modeling for Computer Systems Performance - Evaluation, Cambridge University Press, 2014 -
  • -
  • - A. Feldmann and W. Whitt, Fitting mixtures of exponentials - to long-tail distributions to analyze network performance models, - Performance Evaluation 31(3-4):245, doi:10.1016/S0166-5316(97)00003-5, - 1998. -
  • -
  • - H.T. Papadopolous, C. Heavey and J. Browne, Queueing Theory - in Manufacturing Systems Analysis and Design, Chapman & - Hall/CRC, 1993, p. 35. -
  • -
  • - R.F. Rosin, Determining a computing center environment, - Communications of the ACM 8(7):463-468, 1965. -
  • -
  • - K.S. Trivedi, Probability and Statistics with Reliability, - Queueing, and Computer Science Applications, John Wiley - & Sons, Inc., 2002. -
  • -
  • - Wikipedia, Hyperexponential Distribution, Online: - http://en.wikipedia.org/wiki/Hyperexponential_distribution, - 2014 -
  • -
  • - R. Wolski and J. Brevik, Using Parametric Models to Represent - Private Cloud Workloads, IEEE TSC, PrePrint, DOI: 10.1109/TSC.2013.48, - 2013. -
  • -
  • - Wolfram Mathematica, Hyperexponential Distribution, - Online: http://reference.wolfram.com/language/ref/HyperexponentialDistribution.html, - 2014. -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/hypergeometric_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/hypergeometric_dist.html deleted file mode 100644 index bf0e8e62..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/hypergeometric_dist.html +++ /dev/null @@ -1,339 +0,0 @@ - - - -Hypergeometric Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/hypergeometric.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class hypergeometric_distribution;
-
-template <class RealType, class Policy>
-class hypergeometric_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-   // Construct:
-   hypergeometric_distribution(unsigned r, unsigned n, unsigned N);
-   // Accessors:
-   unsigned total()const;
-   unsigned defective()const;
-   unsigned sample_count()const;
-};
-
-typedef hypergeometric_distribution<> hypergeometric;
-
-}} // namespaces
-
-

- The hypergeometric distribution describes the number of "events" - k from a sample n drawn from - a total population N without replacement. -

-

- Imagine we have a sample of N objects of which r - are "defective" and N-r are "not defective" (the terms - "success/failure" or "red/blue" are also used). If - we sample n items without replacement - then what is the probability that exactly k items - in the sample are defective? The answer is given by the pdf of the hypergeometric - distribution f(k; r, n, - N), - whilst the probability of k defectives or fewer is - given by F(k; r, n, N), where F(k) is the CDF of the hypergeometric distribution. -

-
- - - - - -
[Note]Note

- Unlike almost all of the other distributions in this library, the hypergeometric - distribution is strictly discrete: it can not be extended to real valued - arguments of its parameters or random variable. -

-

- The following graph shows how the distribution changes as the proportion - of "defective" items changes, while keeping the population and - sample sizes constant: -

-

- -

-

- Note that since the distribution is symmetrical in parameters n - and r, if we change the sample size and keep the population - and proportion "defective" the same then we obtain basically - the same graphs: -

-

- -

-
- - Member - Functions -
-
hypergeometric_distribution(unsigned r, unsigned n, unsigned N);
-
-

- Constructs a hypergeometric distribution with a population of N - objects, of which r are defective, and from which - n are sampled. -

-
unsigned total()const;
-
-

- Returns the total number of objects N. -

-
unsigned defective()const;
-
-

- Returns the number of objects r in population N - which are defective. -

-
unsigned sample_count()const;
-
-

- Returns the number of objects n which are sampled - from the population N. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is the unsigned integers in the range - [max(0, n + r - N), min(n, r)]. A domain_error - is raised if the random variable is outside this range, or is not an integral - value. -

-
- - - - - -
[Caution]Caution
-

- The quantile function will by default return an integer result that has - been rounded outwards. That is to say lower quantiles - (where the probability is less than 0.5) are rounded downward, and upper - quantiles (where the probability is greater than 0.5) are rounded upwards. - This behaviour ensures that if an X% quantile is requested, then at - least the requested coverage will be present in the central - region, and no more than the requested coverage - will be present in the tails. -

-

- This behaviour can be changed so that the quantile functions are rounded - differently using Policies. - It is strongly recommended that you read the tutorial Understanding - Quantiles of Discrete Distributions before using the quantile - function on the Hypergeometric distribution. The reference - docs describe how to change the rounding policy for these distributions. -

-

- However, note that the implementation method of the quantile function - always returns an integral value, therefore attempting to use a Policy that requires (or produces) a real valued - result will result in a compile time error. -

-
-
- - Accuracy -
-

- For small N such that N < boost::math::max_factorial<RealType>::value - then table based lookup of the results gives an accuracy to a few epsilon. - boost::math::max_factorial<RealType>::value is 170 at double or long double - precision. -

-

- For larger N such that N < boost::math::prime(boost::math::max_prime) then only basic arithmetic is required - for the calculation and the accuracy is typically < 20 epsilon. This - takes care of N up to 104729. -

-

- For N > - boost::math::prime(boost::math::max_prime) - then accuracy quickly degrades, with 5 or 6 decimal digits being lost for - N = 110000. -

-

- In general for very large N, the user should expect to lose log10N decimal - digits of precision during the calculation, with the results becoming meaningless - for N >= 1015. -

-
- - Testing -
-

- There are three sets of tests: our implementation is tested against a table - of values produced by Mathematica's implementation of this distribution. - We also sanity check our implementation against some spot values computed - using the online calculator here http://stattrek.com/Tables/Hypergeometric.aspx. - Finally we test accuracy against some high precision test data using this - implementation and NTL::RR. -

-
- - Implementation -
-

- The PDF can be calculated directly using the formula: -

-

- -

-

- However, this can only be used directly when the largest of the factorials - is guaranteed not to overflow the floating point representation used. This - formula is used directly when N - < max_factorial<RealType>::value - in which case table lookup of the factorials gives a rapid and accurate - implementation method. -

-

- For larger N the method described in "An Accurate - Computation of the Hypergeometric Distribution Function", Trong Wu, - ACM Transactions on Mathematical Software, Vol. 19, No. 1, March 1993, - Pages 33-43 is used. The method relies on the fact that there is an easy - method for factorising a factorial into the product of prime numbers: -

-

- -

-

- Where pi is the i'th prime number, and ei is a small positive integer or - zero, which can be calculated via: -

-

- -

-

- Further we can combine the factorials in the expression for the PDF to - yield the PDF directly as the product of prime numbers: -

-

- -

-

- With this time the exponents ei being either positive, negative or zero. - Indeed such a degree of cancellation occurs in the calculation of the ei that - many are zero, and typically most have a magnitude or no more than 1 or - 2. -

-

- Calculation of the product of the primes requires some care to prevent - numerical overflow, we use a novel recursive method which splits the calculation - into a series of sub-products, with a new sub-product started each time - the next multiplication would cause either overflow or underflow. The sub-products - are stored in a linked list on the program stack, and combined in an order - that will guarantee no overflow or unnecessary-underflow once the last - sub-product has been calculated. -

-

- This method can be used as long as N is smaller than the largest prime - number we have stored in our table of primes (currently 104729). The method - is relatively slow (calculating the exponents requires the most time), - but requires only a small number of arithmetic operations to calculate - the result (indeed there is no shorter method involving only basic arithmetic - once the exponents have been found), the method is therefore much more - accurate than the alternatives. -

-

- For much larger N, we can calculate the PDF from the factorials using either - lgamma, or by directly combining lanczos approximations to avoid calculating - via logarithms. We use the latter method, as it is usually 1 or 2 decimal - digits more accurate than computing via logarithms with lgamma. However, - in this area where N > 104729, the user should expect to lose around - log10N decimal digits during the calculation in the worst case. -

-

- The CDF and its complement is calculated by directly summing the PDF's. - We start by deciding whether the CDF, or its complement, is likely to be - the smaller of the two and then calculate the PDF at k - (or k+1 if we're calculating the complement) and calculate - successive PDF values via the recurrence relations: -

-

- -

-

- Until we either reach the end of the distributions domain, or the next - PDF value to be summed would be too small to affect the result. -

-

- The quantile is calculated in a similar manner to the CDF: we first guess - which end of the distribution we're nearer to, and then sum PDFs starting - from the end of the distribution this time, until we have some value k - that gives the required CDF. -

-

- The median is simply the quantile at 0.5, and the remaining properties - are calculated via: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_chi_squared_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_chi_squared_dist.html deleted file mode 100644 index 5f0727e7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_chi_squared_dist.html +++ /dev/null @@ -1,471 +0,0 @@ - - - -Inverse Chi Squared Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/inverse_chi_squared.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class inverse_chi_squared_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-
-   inverse_chi_squared_distribution(RealType df = 1); // Not explicitly scaled, default 1/df.
-   inverse_chi_squared_distribution(RealType df, RealType scale = 1/df);  // Scaled.
-
-   RealType degrees_of_freedom()const; // Default 1.
-   RealType scale()const; // Optional scale [xi] (variance), default 1/degrees_of_freedom.
-};
-
-}} // namespace boost // namespace math
-
-

- The inverse chi squared distribution is a continuous probability distribution - of the reciprocal of a variable distributed - according to the chi squared distribution. -

-

- The sources below give confusingly different formulae using different symbols - for the distribution pdf, but they are all the same, or related by a change - of variable, or choice of scale. -

-

- Two constructors are available to implement both the scaled and (implicitly) - unscaled versions. -

-

- The main version has an explicit scale parameter which implements the - scaled - inverse chi_squared distribution. -

-

- A second version has an implicit scale = 1/degrees of freedom and gives - the 1st definition in the Wikipedia - inverse chi_squared distribution. The 2nd Wikipedia inverse chi_squared - distribution definition can be implemented by explicitly specifying a scale - = 1. -

-

- Both definitions are also available in Wolfram Mathematica and in The R Project for Statistical Computing - (geoR) with default scale = 1/degrees of freedom. -

-

- See -

-
-

- The inverse_chi_squared distribution is used in Bayesian - statistics: the scaled inverse chi-square is conjugate prior for - the normal distribution with known mean, model parameter σ² (variance). -

-

- See conjugate - priors including a table of distributions and their priors. -

-

- See also Inverse - Gamma Distribution and Chi - Squared Distribution. -

-

- The inverse_chi_squared distribution is a special case of a inverse_gamma - distribution with ν (degrees_of_freedom) shape (α) and scale (β) where -

-

-    α= ν /2 and β = ½. -

-
- - - - - -
[Note]Note
-

- This distribution does provide the typedef: -

-
typedef inverse_chi_squared_distribution<double> inverse_chi_squared;
-

- If you want a double precision - inverse_chi_squared distribution you can use -

-
boost::math::inverse_chi_squared_distribution<>
-

- or you can write inverse_chi_squared - my_invchisqr(2, 3); -

-
-

- For degrees of freedom parameter ν, the (unscaled) - inverse chi_squared distribution is defined by the probability density - function (PDF): -

-

-    f(x;ν) = 2-ν/2 x-ν/2-1 e-1/2x / Γ(ν/2) -

-

- and Cumulative Density Function (CDF) -

-

-    F(x;ν) = Γ(ν/2, 1/2x) / Γ(ν/2) -

-

- For degrees of freedom parameter ν and scale parameter ξ, the scaled - inverse chi_squared distribution is defined by the probability density - function (PDF): -

-

-    f(x;ν, ξ) = (ξν/2)ν/2 e-νξ/2x x-1-ν/2 / Γ(ν/2) -

-

- and Cumulative Density Function (CDF) -

-

-    F(x;ν, ξ) = Γ(ν/2, νξ/2x) / Γ(ν/2) -

-

- The following graphs illustrate how the PDF and CDF of the inverse chi_squared - distribution varies for a few values of parameters ν and ξ: -

-

- -

-

- -

-
- - Member - Functions -
-
inverse_chi_squared_distribution(RealType df = 1); // Implicitly scaled 1/df.
-inverse_chi_squared_distribution(RealType df = 1, RealType scale); // Explicitly scaled.
-
-

- Constructs an inverse chi_squared distribution with ν degrees of freedom - df, and scale scale with default - value 1/df. -

-

- Requires that the degrees of freedom ν parameter is greater than zero, otherwise - calls domain_error. -

-
RealType degrees_of_freedom()const;
-
-

- Returns the degrees_of_freedom ν parameter of this distribution. -

-
RealType scale()const;
-
-

- Returns the scale ξ parameter of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variate is [0,+∞]. -

-
- - - - - -
[Note]Note

- Unlike some definitions, this implementation supports a random variate - equal to zero as a special case, returning zero for both pdf and cdf. -

-
- - Accuracy -
-

- The inverse gamma distribution is implemented in terms of the incomplete - gamma functions like the Inverse - Gamma Distribution that use gamma_p - and gamma_q and their - inverses gamma_p_inv - and gamma_q_inv: - refer to the accuracy data for those functions for more information. But - in general, gamma (and thus inverse gamma) results are often accurate to - a few epsilon, >14 decimal digits accuracy for 64-bit double. unless - iteration is involved, as for the estimation of degrees of freedom. -

-
- - Implementation -
-

- In the following table ν is the degrees of freedom parameter and ξ is the scale - parameter of the distribution, x is the random variate, - p is the probability and q = 1-p - its complement. Parameters α for shape and β for scale are used for the inverse - gamma function: α = ν/2 and β = ν * ξ/2. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = gamma_p_derivative(α, - β/ x, β) / x * x -

-
-

- cdf -

-
-

- Using the relation: p = gamma_q(α, - β / x) -

-
-

- cdf complement -

-
-

- Using the relation: q = gamma_p(α, - β / x) -

-
-

- quantile -

-
-

- Using the relation: x = β  / gamma_q_inv(α, - p) -

-
-

- quantile from the complement -

-
-

- Using the relation: x = α  / gamma_p_inv(α, - q) -

-
-

- mode -

-
-

- ν * ξ / (ν + 2) -

-
-

- median -

-
-

- no closed form analytic equation is known, but is evaluated as - quantile(0.5) -

-
-

- mean -

-
-

- νξ / (ν - 2) for ν > 2, else a domain_error -

-
-

- variance -

-
-

- 2 ν² ξ² / ((ν -2)² (ν -4)) for ν >4, else a domain_error -

-
-

- skewness -

-
-

- 4 √2 √(ν-4) /(ν-6) for ν >6, else a domain_error -

-
-

- kurtosis_excess -

-
-

- 12 * (5ν - 22) / ((ν - 6) * (ν - 8)) for ν >8, else a domain_error -

-
-

- kurtosis -

-
-

- 3 + 12 * (5ν - 22) / ((ν - 6) * (ν-8)) for ν >8, else a domain_error -

-
-
- - References -
-
    -
  1. - Bayesian Data Analysis, Andrew Gelman, John B. Carlin, Hal S. Stern, - Donald B. Rubin, ISBN-13: 978-1584883883, Chapman & Hall; 2 edition - (29 July 2003). -
  2. -
  3. - Bayesian Computation with R, Jim Albert, ISBN-13: 978-0387922973, Springer; - 2nd ed. edition (10 Jun 2009) -
  4. -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_gamma_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_gamma_dist.html deleted file mode 100644 index 47b1de29..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_gamma_dist.html +++ /dev/null @@ -1,367 +0,0 @@ - - - -Inverse Gamma Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/inverse_gamma.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class inverse_gamma_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-
-   inverse_gamma_distribution(RealType shape, RealType scale = 1)
-
-   RealType shape()const;
-   RealType scale()const;
-};
-
-}} // namespaces
-
-

- The inverse_gamma distribution is a continuous probability distribution - of the reciprocal of a variable distributed according to the gamma distribution. -

-

- The inverse_gamma distribution is used in Bayesian statistics. -

-

- See inverse - gamma distribution. -

-

- R - inverse gamma distribution functions. -

-

- Wolfram - inverse gamma distribution. -

-

- See also Gamma Distribution. -

-
- - - - - -
[Note]Note
-

- In spite of potential confusion with the inverse gamma function, this - distribution does provide the typedef: -

-
typedef inverse_gamma_distribution<double> gamma;
-

- If you want a double precision - gamma distribution you can use -

-
boost::math::inverse_gamma_distribution<>
-

- or you can write inverse_gamma - my_ig(2, 3); -

-
-

- For shape parameter α and scale parameter β, it is defined by the probability - density function (PDF): -

-

-    f(x;α, β) = βα * (1/x) α+1 exp(-β/x) / Γ(α) -

-

- and cumulative density function (CDF) -

-

-    F(x;α, β) = Γ(α, β/x) / Γ(α) -

-

- The following graphs illustrate how the PDF and CDF of the inverse gamma - distribution varies as the parameters vary: -

-

- -

-

- -

-
- - Member - Functions -
-
inverse_gamma_distribution(RealType shape = 1, RealType scale = 1);
-
-

- Constructs an inverse gamma distribution with shape α and scale β. -

-

- Requires that the shape and scale parameters are greater than zero, otherwise - calls domain_error. -

-
RealType shape()const;
-
-

- Returns the α shape parameter of this inverse gamma distribution. -

-
RealType scale()const;
-
-

- Returns the β scale parameter of this inverse gamma distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variate is [0,+∞]. -

-
- - - - - -
[Note]Note

- Unlike some definitions, this implementation supports a random variate - equal to zero as a special case, returning zero for pdf and cdf. -

-
- - Accuracy -
-

- The inverse gamma distribution is implemented in terms of the incomplete - gamma functions gamma_p - and gamma_q and their - inverses gamma_p_inv - and gamma_q_inv: - refer to the accuracy data for those functions for more information. But - in general, inverse_gamma results are accurate to a few epsilon, >14 - decimal digits accuracy for 64-bit double. -

-
- - Implementation -
-

- In the following table α is the shape parameter of the distribution, α   is its - scale parameter, x is the random variate, p - is the probability and q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = gamma_p_derivative(α, - β/ x, β) / x * x -

-
-

- cdf -

-
-

- Using the relation: p = gamma_q(α, - β / x) -

-
-

- cdf complement -

-
-

- Using the relation: q = gamma_p(α, - β / x) -

-
-

- quantile -

-
-

- Using the relation: x = β  / gamma_q_inv(α, - p) -

-
-

- quantile from the complement -

-
-

- Using the relation: x = α  / gamma_p_inv(α, - q) -

-
-

- mode -

-
-

- β / (α + 1) -

-
-

- median -

-
-

- no analytic equation is known, but is evaluated as quantile(0.5) -

-
-

- mean -

-
-

- β / (α - 1) for α > 1, else a domain_error -

-
-

- variance -

-
-

- (β * β) / ((α - 1) * (α - 1) * (α - 2)) for α >2, else a domain_error -

-
-

- skewness -

-
-

- 4 * sqrt (α -2) / (α -3) for α >3, else a domain_error -

-
-

- kurtosis_excess -

-
-

- (30 * α - 66) / ((α-3)*(α - 4)) for α >4, else a domain_error -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_gaussian_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_gaussian_dist.html deleted file mode 100644 index 3da08f2e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/inverse_gaussian_dist.html +++ /dev/null @@ -1,445 +0,0 @@ - - - -Inverse Gaussian (or Inverse Normal) Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/inverse_gaussian.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class inverse_gaussian_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-
-   inverse_gaussian_distribution(RealType mean = 1, RealType scale = 1);
-
-   RealType mean()const; // mean default 1.
-   RealType scale()const; // Optional scale, default 1 (unscaled).
-   RealType shape()const; // Shape = scale/mean.
-};
-typedef inverse_gaussian_distribution<double> inverse_gaussian;
-
-}} // namespace boost // namespace math
-
-

- The Inverse Gaussian distribution distribution is a continuous probability - distribution. -

-

- The distribution is also called 'normal-inverse Gaussian distribution', - and 'normal Inverse' distribution. -

-

- It is also convenient to provide unity as default for both mean and scale. - This is the Standard form for all distributions. The Inverse Gaussian distribution - was first studied in relation to Brownian motion. In 1956 M.C.K. Tweedie - used the name Inverse Gaussian because there is an inverse relationship - between the time to cover a unit distance and distance covered in unit - time. The inverse Gaussian is one of family of distributions that have - been called the Tweedie - distributions. -

-

- (So inverse in the name may mislead: it does not relate to the inverse of a distribution). -

-

- The tails of the distribution decrease more slowly than the normal distribution. - It is therefore suitable to model phenomena where numerically large values - are more probable than is the case for the normal distribution. For stock - market returns and prices, a key characteristic is that it models that - extremely large variations from typical (crashes) can occur even when almost - all (normal) variations are small. -

-

- Examples are returns from financial assets and turbulent wind speeds. -

-

- The normal-inverse Gaussian distributions form a subclass of the generalised - hyperbolic distributions. -

-

- See distribution. - Weisstein, - Eric W. "Inverse Gaussian Distribution." From MathWorld--A Wolfram - Web Resource. -

-

- If you want a double precision - inverse_gaussian distribution you can use -

-
boost::math::inverse_gaussian_distribution<>
-

- or, more conveniently, you can write -

-
using boost::math::inverse_gaussian;
-inverse_gaussian my_ig(2, 3);
-
-

- For mean parameters μ and scale (also called precision) parameter λ, and random - variate x, the inverse_gaussian distribution is defined by the probability - density function (PDF): -

-

-    f(x;μ, λ) = √(λ/2πx3) e-λ(x-μ)²/2μ²x -

-

- and Cumulative Density Function (CDF): -

-

-    F(x;μ, λ) = Φ{√(λx) (xμ-1)} + e2μ/λ Φ{-√(λ/μ) (1+x/μ)} -

-

- where Φ is the standard normal distribution CDF. -

-

- The following graphs illustrate how the PDF and CDF of the inverse_gaussian - distribution varies for a few values of parameters μ and λ: -

-

- -

-

- -

-

- Tweedie also provided 3 other parameterisations where (μ and λ) are replaced - by their ratio φ = λ/μ and by 1/μ: these forms may be more suitable for Bayesian - applications. These can be found on Seshadri, page 2 and are also discussed - by Chhikara and Folks on page 105. Another related parameterisation, the - __wald_distrib (where mean μ is unity) is also provided. -

-
- - Member - Functions -
-
inverse_gaussian_distribution(RealType df = 1, RealType scale = 1); // optionally scaled.
-
-

- Constructs an inverse_gaussian distribution with μ mean, and scale λ, with - both default values 1. -

-

- Requires that both the mean μ parameter and scale λ are greater than zero, - otherwise calls domain_error. -

-
RealType mean()const;
-
-

- Returns the mean μ parameter of this distribution. -

-
RealType scale()const;
-
-

- Returns the scale λ parameter of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variate is [0,+∞). -

-
- - - - - -
[Note]Note

- Unlike some definitions, this implementation supports a random variate - equal to zero as a special case, returning zero for both pdf and cdf. -

-
- - Accuracy -
-

- The inverse_gaussian distribution is implemented in terms of the exponential - function and standard normal distribution N0,1 Φ : refer - to the accuracy data for those functions for more information. But in general, - gamma (and thus inverse gamma) results are often accurate to a few epsilon, - >14 decimal digits accuracy for 64-bit double. -

-
- - Implementation -
-

- In the following table μ is the mean parameter and λ is the scale parameter - of the inverse_gaussian distribution, x is the random - variate, p is the probability and q = 1-p - its complement. Parameters μ for shape and λ for scale are used for the inverse - gaussian function. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- √(λ/ 2πx3) e-λ(x - μ)²/ 2μ²x -

-
-

- cdf -

-
-

- Φ{√(λx) (xμ-1)} + e2μ/λ Φ{-√(λ/μ) (1+x/μ)} -

-
-

- cdf complement -

-
-

- using complement of Φ above. -

-
-

- quantile -

-
-

- No closed form known. Estimated using a guess refined by Newton-Raphson - iteration. -

-
-

- quantile from the complement -

-
-

- No closed form known. Estimated using a guess refined by Newton-Raphson - iteration. -

-
-

- mode -

-
-

- μ {√(1+9μ²/4λ²)² - 3μ/2λ} -

-
-

- median -

-
-

- No closed form analytic equation is known, but is evaluated as - quantile(0.5) -

-
-

- mean -

-
-

- μ -

-
-

- variance -

-
-

- μ³/λ -

-
-

- skewness -

-
-

- 3 √ (μ/λ) -

-
-

- kurtosis_excess -

-
-

- 15μ/λ -

-
-

- kurtosis -

-
-

- 12μ/λ -

-
-
- - References -
-
    -
  1. - Wald, A. (1947). Sequential analysis. Wiley, NY. -
  2. -
  3. - The Inverse Gaussian distribution : theory, methodology, and applications, - Raj S. Chhikara, J. Leroy Folks. ISBN 0824779975 (1989). -
  4. -
  5. - The Inverse Gaussian distribution : statistical theory and applications, - Seshadri, V , ISBN - 0387986189 (pbk) (Dewey 519.2) (1998). -
  6. -
  7. - Numpy - and Scipy Documentation. -
  8. -
  9. - R - statmod invgauss functions. -
  10. -
  11. - R - SuppDists invGauss functions. (Note that these R implementations - names differ in case). -
  12. -
  13. - StatSci.org invgauss - help. -
  14. -
  15. - invgauss - R source. -
  16. -
  17. - pwald, - qwald. -
  18. -
  19. - Brighton - Webs wald. -
  20. -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/laplace_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/laplace_dist.html deleted file mode 100644 index dbd8b4ad..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/laplace_dist.html +++ /dev/null @@ -1,360 +0,0 @@ - - - -Laplace Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/laplace.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class laplace_distribution;
-
-typedef laplace_distribution<> laplace;
-
-template <class RealType, class Policy>
-class laplace_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-   // Construct:
-   laplace_distribution(RealType location = 0, RealType scale = 1);
-   // Accessors:
-   RealType location()const;
-   RealType scale()const;
-};
-
-}} // namespaces
-
-

- Laplace distribution is the distribution of differences between two independent - variates with identical exponential distributions (Abramowitz and Stegun - 1972, p. 930). It is also called the double exponential distribution. -

-

- For location parameter μ   and scale parameter σ  , it is defined by the probability - density function: -

-

- -

-

- The location and scale parameters are equivalent to the mean and standard - deviation of the normal or Gaussian distribution. -

-

- The following graph illustrates the effect of the parameters μ   and σ   on the - PDF. Note that the domain of the random variable remains [-∞,+∞] irrespective - of the value of the location parameter: -

-

- -

-
- - Member - Functions -
-
laplace_distribution(RealType location = 0, RealType scale = 1);
-
-

- Constructs a laplace distribution with location location - and scale scale. -

-

- The location parameter is the same as the mean of the random variate. -

-

- The scale parameter is proportional to the standard deviation of the random - variate. -

-

- Requires that the scale parameter is greater than zero, otherwise calls - domain_error. -

-
RealType location()const;
-
-

- Returns the location parameter of this distribution. -

-
RealType scale()const;
-
-

- Returns the scale parameter of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [-∞,+∞]. -

-
- - Accuracy -
-

- The laplace distribution is implemented in terms of the standard library - log and exp functions and as such should have very small errors. -

-
- - Implementation -
-

- In the following table μ is the location parameter of the distribution, σ is - its scale parameter, x is the random variate, p - is the probability and its complement q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = e-abs(x-μ) / σ / (2 * σ) -

-
-

- cdf -

-
-

- Using the relations: -

-

- x < μ : p = e(x-μ)/σ / σ -

-

- x >= μ : p = 1 - e(μ-x)/σ / σ - -

-
-

- cdf complement -

-
-

- Using the relation: -

-

- -x < μ : q = e(-x-μ)/σ / σ -

-

- -x >= μ : q = 1 - e(μ+x)/σ / σ - -

-
-

- quantile -

-
-

- Using the relations: -

-

- p < 0.5 : x = μ + σ * log(2*p) -

-

- p >= 0.5 : x = μ - σ * log(2-2*p) -

-
-

- quantile from the complement -

-
-

- Using the relation: -

-

- q > 0.5: x = μ + σ*log(2-2*q) -

-

- q <=0.5: x = μ - σ*log( 2*q ) -

-
-

- mean -

-
-

- μ -

-
-

- variance -

-
-

- 2 * σ2 -

-
-

- mode -

-
-

- μ -

-
-

- skewness -

-
-

- 0 -

-
-

- kurtosis -

-
-

- 6 -

-
-

- kurtosis excess -

-
-

- 3 -

-
-
- - References -
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/logistic_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/logistic_dist.html deleted file mode 100644 index c2594dd7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/logistic_dist.html +++ /dev/null @@ -1,298 +0,0 @@ - - - -Logistic Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/logistic.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class logistic_distribution;
-
-template <class RealType, class Policy>
-class logistic_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-   // Construct:
-   logistic_distribution(RealType location = 0, RealType scale = 1);
-   // Accessors:
-   RealType location()const; // location.
-   RealType scale()const; // scale.
-
-};
-
-typedef logistic_distribution<> logistic;
-
-}} // namespaces
-
-

- The logistic distribution is a continous probability distribution. It has - two parameters - location and scale. The cumulative distribution function - of the logistic distribution appears in logistic regression and feedforward - neural networks. Among other applications, United State Chess Federation - and FIDE use it to calculate chess ratings. -

-

- The following graph shows how the distribution changes as the parameters - change: -

-

- -

-
- - Member - Functions -
-
logistic_distribution(RealType u = 0, RealType s = 1);
-
-

- Constructs a logistic distribution with location u - and scale s. -

-

- Requires scale > - 0, otherwise a domain_error - is raised. -

-
RealType location()const;
-
-

- Returns the location of this distribution. -

-
RealType scale()const;
-
-

- Returns the scale of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [-[max_value], +[min_value]]. However, - the pdf and cdf support inputs of +∞ and -∞ -as special cases if RealType permits. -

-

- At p=1 and p=0, the quantile - function returns the result of +overflow_error - and -overflow_error, - while the complement quantile function returns the result of -overflow_error - and +overflow_error - respectively. -

-
- - Accuracy -
-

- The logistic distribution is implemented in terms of the std::exp and the std::log - functions, so its accuracy is related to the accurate implementations of - those functions on a given platform. When calculating the quantile with - a non-zero position parameter catastrophic cancellation - errors can occur: in such cases, only a low absolute error - can be guaranteed. -

-
- - Implementation -
-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = e-(x-u)/s / (s*(1+e-(x-u)/s)2) -

-
-

- cdf -

-
-

- Using the relation: p = 1/(1+e-(x-u)/s) -

-
-

- cdf complement -

-
-

- Using the relation: q = 1/(1+e(x-u)/s) -

-
-

- quantile -

-
-

- Using the relation: x = u - s*log(1/p-1) -

-
-

- quantile from the complement -

-
-

- Using the relation: x = u + s*log(p/1-p) -

-
-

- mean -

-
-

- u -

-
-

- mode -

-
-

- The same as the mean. -

-
-

- skewness -

-
-

- 0 -

-
-

- kurtosis excess -

-
-

- 6/5 -

-
-

- variance -

-
-

- (π*s)2 / 3 -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/lognormal_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/lognormal_dist.html deleted file mode 100644 index 323a452f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/lognormal_dist.html +++ /dev/null @@ -1,330 +0,0 @@ - - - -Log Normal Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/lognormal.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class lognormal_distribution;
-
-typedef lognormal_distribution<> lognormal;
-
-template <class RealType, class Policy>
-class lognormal_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-   // Construct:
-   lognormal_distribution(RealType location = 0, RealType scale = 1);
-   // Accessors:
-   RealType location()const;
-   RealType scale()const;
-};
-
-}} // namespaces
-
-

- The lognormal distribution is the distribution that arises when the logarithm - of the random variable is normally distributed. A lognormal distribution - results when the variable is the product of a large number of independent, - identically-distributed variables. -

-

- For location and scale parameters m and s - it is defined by the probability density function: -

-

- -

-

- The location and scale parameters are equivalent to the mean and standard - deviation of the logarithm of the random variable. -

-

- The following graph illustrates the effect of the location parameter on - the PDF, note that the range of the random variable remains [0,+∞] irrespective - of the value of the location parameter: -

-

- -

-

- The next graph illustrates the effect of the scale parameter on the PDF: -

-

- -

-
- - Member - Functions -
-
lognormal_distribution(RealType location = 0, RealType scale = 1);
-
-

- Constructs a lognormal distribution with location location - and scale scale. -

-

- The location parameter is the same as the mean of the logarithm of the - random variate. -

-

- The scale parameter is the same as the standard deviation of the logarithm - of the random variate. -

-

- Requires that the scale parameter is greater than zero, otherwise calls - domain_error. -

-
RealType location()const;
-
-

- Returns the location parameter of this distribution. -

-
RealType scale()const;
-
-

- Returns the scale parameter of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [0,+∞]. -

-
- - Accuracy -
-

- The lognormal distribution is implemented in terms of the standard library - log and exp functions, plus the error - function, and as such should have very low error rates. -

-
- - Implementation -
-

- In the following table m is the location parameter - of the distribution, s is its scale parameter, x - is the random variate, p is the probability and q - = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = e-(ln(x) - m)2 / 2s2 / (x * s * sqrt(2pi)) -

-
-

- cdf -

-
-

- Using the relation: p = cdf(normal_distribtion<RealType>(m, - s), log(x)) -

-
-

- cdf complement -

-
-

- Using the relation: q = cdf(complement(normal_distribtion<RealType>(m, - s), log(x))) -

-
-

- quantile -

-
-

- Using the relation: x = exp(quantile(normal_distribtion<RealType>(m, - s), p)) -

-
-

- quantile from the complement -

-
-

- Using the relation: x = exp(quantile(complement(normal_distribtion<RealType>(m, - s), q))) -

-
-

- mean -

-
-

- em + s2 / 2 -

-
-

- variance -

-
-

- (es2 - 1) * e2m + s2 -

-
-

- mode -

-
-

- em - s2 -

-
-

- skewness -

-
-

- sqrt(es2 - 1) * (2 + es2 ) -

-
-

- kurtosis -

-
-

- e4s2 + 2e3s2 + 3e2s2 - 3 -

-
-

- kurtosis excess -

-
-

- e4s2 + 2e3s2 + 3e2s2 - 6 -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_beta_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_beta_dist.html deleted file mode 100644 index 0e5b8a8f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_beta_dist.html +++ /dev/null @@ -1,484 +0,0 @@ - - - -Noncentral Beta Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/non_central_beta.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class non_central_beta_distribution;
-
-typedef non_central_beta_distribution<> non_central_beta;
-
-template <class RealType, class Policy>
-class non_central_beta_distribution
-{
-public:
-   typedef RealType  value_type;
-   typedef Policy    policy_type;
-
-   // Constructor:
-   non_central_beta_distribution(RealType alpha, RealType beta, RealType lambda);
-
-   // Accessor to shape parameters:
-   RealType alpha()const;
-   RealType beta()const;
-
-   // Accessor to non-centrality parameter lambda:
-   RealType non_centrality()const;
-};
-
-}} // namespaces
-
-

- The noncentral beta distribution is a generalization of the Beta - Distribution. -

-

- It is defined as the ratio X = χm2(λ) / (χm2(λ) + χn2) where χm2(λ) is a noncentral - χ2 -random variable with m degrees of freedom, and χn2 -is - a central χ2 random variable with n degrees of freedom. -

-

- This gives a PDF that can be expressed as a Poisson mixture of beta distribution - PDFs: -

-

- -

-

- where P(i;λ/2) is the discrete Poisson probablity at i, - with mean λ/2, and Ix'(α, β) is the derivative of the incomplete beta function. - This leads to the usual form of the CDF as: -

-

- -

-

- The following graph illustrates how the distribution changes for different - values of λ: -

-

- -

-
- - Member - Functions -
-
non_central_beta_distribution(RealType a, RealType b, RealType lambda);
-
-

- Constructs a noncentral beta distribution with shape parameters a - and b and non-centrality parameter lambda. -

-

- Requires a > 0, b > 0 and lambda >= 0, otherwise calls domain_error. -

-
RealType alpha()const;
-
-

- Returns the parameter a from which this object was - constructed. -

-
RealType beta()const;
-
-

- Returns the parameter b from which this object was - constructed. -

-
RealType non_centrality()const;
-
-

- Returns the parameter lambda from which this object - was constructed. -

-
- - Non-member - Accessors -
-

- Most of the usual non-member - accessor functions are supported: Cumulative - Distribution Function, Probability - Density Function, Quantile, - mean, variance, - standard deviation, - median, mode, - Hazard Function, - Cumulative Hazard Function, - range and support. -

-

- Mean and variance are implemented using hypergeometric pfq functions and - relations given in Wolfram - Noncentral Beta Distribution. -

-

- However, the following are not currently implemented: skewness, - kurtosis and - kurtosis_excess. -

-

- The domain of the random variable is [0, 1]. -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) - found on various platforms with various floating point types. The failures - in the comparison to the R Math - library, seem to be mostly in the corner cases when the probablity - would be very small. Unless otherwise specified any floating-point type - that is narrower than the one shown will have effectively - zero error. -

-
-

Table 5.4. Error rates for non central beta CDF

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central Beta, medium parameters -

-
-

- Max = 240ε (Mean = 31ε) -

-
-

- Max = 0.998ε (Mean = 0.0659ε)
-
(Rmath 3.0.2: Max - = 1.46e+26ε (Mean = 3.5e+24ε) And - other failures.) -

-
-

- Max = 825ε (Mean = 27.4ε) -

-
-

- Max = 832ε (Mean = 38.1ε) -

-
-

- Non Central Beta, large parameters -

-
-

- Max = 3.41e+003ε (Mean = 475ε) -

-
-

- Max = 1.18ε (Mean = 0.175ε)
-
(Rmath 3.0.2: Max - = 1.01e+36ε (Mean = 1.19e+35ε) And - other failures.) -

-
-

- Max = 2.5e+04ε (Mean = 3.78e+03ε) -

-
-

- Max = 2.57e+04ε (Mean = 4.43e+03ε) -

-
-
-
-

Table 5.5. Error rates for non central beta CDF complement

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central Beta, medium parameters -

-
-

- Max = 619ε (Mean = 62.7ε) -

-
-

- Max = 0.998ε (Mean = 0.0957ε)
-
(Rmath 3.0.2: Max - = 7.5e+97ε (Mean = 1.37e+96ε) And - other failures.) -

-
-

- Max = 396ε (Mean = 50.7ε) -

-
-

- Max = 554ε (Mean = 57.3ε) -

-
-

- Non Central Beta, large parameters -

-
-

- Max = 8.67e+003ε (Mean = 1.04e+003ε) -

-
-

- Max = 0.986ε (Mean = 0.188ε)
-
(Rmath 3.0.2: Max - = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 6.83e+03ε (Mean = 993ε) -

-
-

- Max = 3.56e+03ε (Mean = 704ε) -

-
-
-

- Error rates for the PDF, the complement of the CDF and for the quantile - functions are broadly similar. -

-
- - Tests -
-

- There are two sets of test data used to verify this implementation: firstly - we can compare with a few sample values generated by the R - library. Secondly, we have tables of test data, computed with this - implementation and using interval arithmetic - this data should be accurate - to at least 50 decimal digits - and is the used for our accuracy tests. -

-
- - Implementation -
-

- The CDF and its complement are evaluated as follows: -

-

- First we determine which of the two values (the CDF or its complement) - is likely to be the smaller, the crossover point is taken to be the mean - of the distribution: for this we use the approximation due to: R. Chattamvelli - and R. Shanmugam, "Algorithm AS 310: Computing the Non-Central Beta - Distribution Function", Applied Statistics, Vol. 46, No. 1. (1997), - pp. 146-156. -

-

- -

-

- Then either the CDF or its complement is computed using the relations: -

-

- -

-

- The summation is performed by starting at i = λ/2, and then recursing in - both directions, using the usual recurrence relations for the Poisson PDF - and incomplete beta functions. This is the "Method 2" described - by: -

-

- Denise Benton and K. Krishnamoorthy, "Computing discrete mixtures - of continuous distributions: noncentral chisquare, noncentral t and the - distribution of the square of the sample multiple correlation coefficient", - Computational Statistics & Data Analysis 43 (2003) 249-267. -

-

- Specific applications of the above formulae to the noncentral beta distribution - can be found in: -

-

- Russell V. Lenth, "Algorithm AS 226: Computing Noncentral Beta Probabilities", - Applied Statistics, Vol. 36, No. 2. (1987), pp. 241-244. -

-

- H. Frick, "Algorithm AS R84: A Remark on Algorithm AS 226: Computing - Non-Central Beta Probabilities", Applied Statistics, Vol. 39, No. - 2. (1990), pp. 311-312. -

-

- Ming Long Lam, "Remark AS R95: A Remark on Algorithm AS 226: Computing - Non-Central Beta Probabilities", Applied Statistics, Vol. 44, No. - 4. (1995), pp. 551-552. -

-

- Harry O. Posten, "An Effective Algorithm for the Noncentral Beta Distribution - Function", The American Statistician, Vol. 47, No. 2. (May, 1993), - pp. 129-131. -

-

- R. Chattamvelli, "A Note on the Noncentral Beta Distribution Function", - The American Statistician, Vol. 49, No. 2. (May, 1995), pp. 231-234. -

-

- Of these, the Posten reference provides the most complete overview, and - includes the modification starting iteration at λ/2. -

-

- The main difference between this implementation and the above references - is the direct computation of the complement when most efficient to do so, - and the accumulation of the sum to -1 rather than subtracting the result - from 1 at the end: this can substantially reduce the number of iterations - required when the result is near 1. -

-

- The PDF is computed using the methodology of Benton and Krishnamoorthy - and the relation: -

-

- -

-

- Quantiles are computed using a specially modified version of bracket - and solve, starting the search for the root at the mean of the distribution. - (A Cornish-Fisher type expansion was also tried, but while this gets quite - close to the root in many cases, when it is wrong it tends to introduce - quite pathological behaviour: more investigation in this area is probably - warranted). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_chi_squared_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_chi_squared_dist.html deleted file mode 100644 index 068ee2fc..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_chi_squared_dist.html +++ /dev/null @@ -1,572 +0,0 @@ - - - -Noncentral Chi-Squared Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/non_central_chi_squared.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class non_central_chi_squared_distribution;
-
-typedef non_central_chi_squared_distribution<> non_central_chi_squared;
-
-template <class RealType, class Policy>
-class non_central_chi_squared_distribution
-{
-public:
-   typedef RealType  value_type;
-   typedef Policy    policy_type;
-
-   // Constructor:
-   non_central_chi_squared_distribution(RealType v, RealType lambda);
-
-   // Accessor to degrees of freedom parameter v:
-   RealType degrees_of_freedom()const;
-
-   // Accessor to non centrality parameter lambda:
-   RealType non_centrality()const;
-
-   // Parameter finders:
-   static RealType find_degrees_of_freedom(RealType lambda, RealType x, RealType p);
-   template <class A, class B, class C>
-   static RealType find_degrees_of_freedom(const complemented3_type<A,B,C>& c);
-
-   static RealType find_non_centrality(RealType v, RealType x, RealType p);
-   template <class A, class B, class C>
-   static RealType find_non_centrality(const complemented3_type<A,B,C>& c);
-};
-
-}} // namespaces
-
-

- The noncentral chi-squared distribution is a generalization of the Chi Squared Distribution. - If Xi are ν independent, normally distributed random variables with means - μi and variances σi2, then the random variable -

-

- -

-

- is distributed according to the noncentral chi-squared distribution. -

-

- The noncentral chi-squared distribution has two parameters: ν which specifies - the number of degrees of freedom (i.e. the number of Xi), and λ which is - related to the mean of the random variables Xi by: -

-

- -

-

- (Note that some references define λ as one half of the above sum). -

-

- This leads to a PDF of: -

-

- -

-

- where f(x;k) is the central chi-squared distribution - PDF, and Iv(x) is a modified Bessel function of the - first kind. -

-

- The following graph illustrates how the distribution changes for different - values of λ: -

-

- -

-
- - Member - Functions -
-
non_central_chi_squared_distribution(RealType v, RealType lambda);
-
-

- Constructs a Chi-Squared distribution with v degrees - of freedom and non-centrality parameter lambda. -

-

- Requires v > 0 and lambda >= 0, otherwise calls domain_error. -

-
RealType degrees_of_freedom()const;
-
-

- Returns the parameter v from which this object was - constructed. -

-
RealType non_centrality()const;
-
-

- Returns the parameter lambda from which this object - was constructed. -

-
static RealType find_degrees_of_freedom(RealType lambda, RealType x, RealType p);
-
-

- This function returns the number of degrees of freedom v - such that: cdf(non_central_chi_squared<RealType, Policy>(v, lambda), x) == p -

-
template <class A, class B, class C>
-static RealType find_degrees_of_freedom(const complemented3_type<A,B,C>& c);
-
-

- When called with argument boost::math::complement(lambda, x, - q) - this function returns the number of degrees of freedom v - such that: -

-

- cdf(complement(non_central_chi_squared<RealType, Policy>(v, lambda), x)) == q. -

-
static RealType find_non_centrality(RealType v, RealType x, RealType p);
-
-

- This function returns the non centrality parameter lambda - such that: -

-

- cdf(non_central_chi_squared<RealType, Policy>(v, lambda), x) == p -

-
template <class A, class B, class C>
-static RealType find_non_centrality(const complemented3_type<A,B,C>& c);
-
-

- When called with argument boost::math::complement(v, - x, - q) - this function returns the non centrality parameter lambda - such that: -

-

- cdf(complement(non_central_chi_squared<RealType, Policy>(v, lambda), x)) == q. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [0, +∞]. -

-
- - Examples -
-

- There is a worked example - for the noncentral chi-squared distribution. -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) - found on various platforms with various floating point types. The failures - in the comparison to the R Math - library, seem to be mostly in the corner cases when the probablity - would be very small. Unless otherwise specified any floating-point type - that is narrower than the one shown will have effectively - zero error. -

-
-

Table 5.6. Error rates for non central chi squared CDF

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central Chi Squared, medium parameters -

-
-

- Max = 48.9ε (Mean = 10ε) -

-
-

- Max = 0.99ε (Mean = 0.0529ε)
-
(Rmath 3.0.2: Max = 727ε (Mean = 121ε)) -

-
-

- Max = 46.5ε (Mean = 10.3ε) -

-
-

- Max = 115ε (Mean = 13.9ε) -

-
-

- Non Central Chi Squared, large parameters -

-
-

- Max = 9.79e+003ε (Mean = 723ε) -

-
-

- Max = 1.07ε (Mean = 0.102ε)
-
(Rmath 3.0.2: Max - = 3.27e+08ε (Mean = 2.23e+07ε)) -

-
-

- Max = 3.07e+03ε (Mean = 336ε) -

-
-

- Max = 6.17e+03ε (Mean = 677ε) -

-
-
-
-

Table 5.7. Error rates for non central chi squared CDF complement

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central Chi Squared, medium parameters -

-
-

- Max = 98.6ε (Mean = 15.8ε) -

-
-

- Max = 0.96ε (Mean = 0.0635ε)
-
(Rmath 3.0.2: Max - = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 107ε (Mean = 17.1ε) -

-
-

- Max = 171ε (Mean = 22.8ε) -

-
-

- Non Central Chi Squared, large parameters -

-
-

- Max = 5.43e+003ε (Mean = 705ε) -

-
-

- Max = 2.11ε (Mean = 0.278ε)
-
(Rmath 3.0.2: Max - = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 5.02e+03ε (Mean = 630ε) -

-
-

- Max = 5.1e+03ε (Mean = 577ε) -

-
-
-

- Error rates for the quantile functions are broadly similar. Special mention - should go to the mode function: - there is no closed form for this function, so it is evaluated numerically - by finding the maxima of the PDF: in principal this can not produce an - accuracy greater than the square root of the machine epsilon. -

-
- - Tests -
-

- There are two sets of test data used to verify this implementation: firstly - we can compare with published data, for example with Table 6 of "Self-Validating - Computations of Probabilities for Selected Central and Noncentral Univariate - Probability Functions", Morgan C. Wang and William J. Kennedy, Journal - of the American Statistical Association, Vol. 89, No. 427. (Sep., 1994), - pp. 878-887. Secondly, we have tables of test data, computed with this - implementation and using interval arithmetic - this data should be accurate - to at least 50 decimal digits - and is the used for our accuracy tests. -

-
- - Implementation -
-

- The CDF and its complement are evaluated as follows: -

-

- First we determine which of the two values (the CDF or its complement) - is likely to be the smaller: for this we can use the relation due to Temme - (see "Asymptotic and Numerical Aspects of the Noncentral Chi-Square - Distribution", N. M. Temme, Computers Math. Applic. Vol 25, No. 5, - 55-63, 1993) that: -

-

- F(ν,λ;ν+λ) ≈ 0.5 -

-

- and so compute the CDF when the random variable is less than ν+λ, and its - complement when the random variable is greater than ν+λ. If necessary the - computed result is then subtracted from 1 to give the desired result (the - CDF or its complement). -

-

- For small values of the non centrality parameter, the CDF is computed using - the method of Ding (see "Algorithm AS 275: Computing the Non-Central - #2 Distribution Function", Cherng G. Ding, Applied Statistics, Vol. - 41, No. 2. (1992), pp. 478-482). This uses the following series representation: -

-

- -

-

- which requires just one call to gamma_p_derivative - with the subsequent terms being computed by recursion as shown above. -

-

- For larger values of the non-centrality parameter, Ding's method can take - an unreasonable number of terms before convergence is achieved. Furthermore, - the largest term is not the first term, so in extreme cases the first term - may be zero, leading to a zero result, even though the true value may be - non-zero. -

-

- Therefore, when the non-centrality parameter is greater than 200, the method - due to Krishnamoorthy (see "Computing discrete mixtures of continuous - distributions: noncentral chisquare, noncentral t and the distribution - of the square of the sample multiple correlation coefficient", Denise - Benton and K. Krishnamoorthy, Computational Statistics & Data Analysis, - 43, (2003), 249-267) is used. -

-

- This method uses the well known sum: -

-

- -

-

- Where Pa(x) is the incomplete gamma function. -

-

- The method starts at the λth term, which is where the Poisson weighting - function achieves its maximum value, although this is not necessarily the - largest overall term. Subsequent terms are calculated via the normal recurrence - relations for the incomplete gamma function, and iteration proceeds both - forwards and backwards until sufficient precision has been achieved. It - should be noted that recurrence in the forwards direction of Pa(x) is numerically - unstable. However, since we always start after the - largest term in the series, numeric instability is introduced more slowly - than the series converges. -

-

- Computation of the complement of the CDF uses an extension of Krishnamoorthy's - method, given that: -

-

- -

-

- we can again start at the λ'th term and proceed in both directions from - there until the required precision is achieved. This time it is backwards - recursion on the incomplete gamma function Qa(x) which is unstable. However, - as long as we start well before the largest term, - this is not an issue in practice. -

-

- The PDF is computed directly using the relation: -

-

- -

-

- Where f(x; v) is the PDF of the central Chi - Squared Distribution and Iv(x) is a modified - Bessel function, see cyl_bessel_i. - For small values of the non-centrality parameter the relation in terms - of cyl_bessel_i is used. - However, this method fails for large values of the non-centrality parameter, - so in that case the infinite sum is evaluated using the method of Benton - and Krishnamoorthy, and the usual recurrence relations for successive terms. -

-

- The quantile functions are computed by numeric inversion of the CDF. An - improve starting quess is from Thomas Luu, Fast - and accurate parallel computation of quantile functions for random number - generation, Doctorial Thesis, 2016. -

-

- There is no closed - form for the mode of the noncentral chi-squared distribution: it - is computed numerically by finding the maximum of the PDF. Likewise, the - median is computed numerically via the quantile. -

-

- The remaining non-member functions use the following formulas: -

-

- -

-

- Some analytic properties of noncentral distributions (particularly unimodality, - and monotonicity of their modes) are surveyed and summarized by: -

-

- Andrea van Aubel & Wolfgang Gawronski, Applied Mathematics and Computation, - 141 (2003) 3-12. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_f_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_f_dist.html deleted file mode 100644 index a3eed8ea..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_f_dist.html +++ /dev/null @@ -1,410 +0,0 @@ - - - -Noncentral F Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/non_central_f.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class non_central_f_distribution;
-
-typedef non_central_f_distribution<> non_central_f;
-
-template <class RealType, class Policy>
-class non_central_f_distribution
-{
-public:
-   typedef RealType  value_type;
-   typedef Policy    policy_type;
-
-   // Constructor:
-   non_central_f_distribution(RealType v1, RealType v2, RealType lambda);
-
-   // Accessor to degrees_of_freedom parameters v1 & v2:
-   RealType degrees_of_freedom1()const;
-   RealType degrees_of_freedom2()const;
-
-   // Accessor to non-centrality parameter lambda:
-   RealType non_centrality()const;
-};
-
-}} // namespaces
-
-

- The noncentral F distribution is a generalization of the Fisher - F Distribution. It is defined as the ratio -

-
F = (X/v1) / (Y/v2)
-
-

- where X is a noncentral χ2 -random variable with v1 degrees - of freedom and non-centrality parameter λ, and Y is a central χ2 random variable - with v2 degrees of freedom. -

-

- This gives the following PDF: -

-

- -

-

- where Lab(c) is a generalised Laguerre polynomial and B(a,b) is the beta function, or -

-

- -

-

- The following graph illustrates how the distribution changes for different - values of λ: -

-

- -

-
- - Member - Functions -
-
non_central_f_distribution(RealType v1, RealType v2, RealType lambda);
-
-

- Constructs a non-central beta distribution with parameters v1 - and v2 and non-centrality parameter lambda. -

-

- Requires v1 > 0, v2 > 0 and lambda >= 0, otherwise calls domain_error. -

-
RealType degrees_of_freedom1()const;
-
-

- Returns the parameter v1 from which this object was - constructed. -

-
RealType degrees_of_freedom2()const;
-
-

- Returns the parameter v2 from which this object was - constructed. -

-
RealType non_centrality()const;
-
-

- Returns the non-centrality parameter lambda from which - this object was constructed. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [0, +∞]. -

-
- - Accuracy -
-

- This distribution is implemented in terms of the Noncentral - Beta Distribution: refer to that distribution for accuracy data. -

-
- - Tests -
-

- Since this distribution is implemented by adapting another distribution, - the tests consist of basic sanity checks computed by the R-2.5.1 - Math library statistical package and its pbeta and dbeta functions. -

-
- - Implementation -
-

- In the following table v1 and v2 - are the first and second degrees of freedom parameters of the distribution, - λ -is the non-centrality parameter, x is the random variate, - p is the probability, and q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Implemented in terms of the non-central beta PDF using the relation: -

-

- f(x;v1,v2;λ) = (v1/v2) / ((1+y)*(1+y)) * g(y/(1+y);v1/2,v2/2;λ) -

-

- where g(x; a, b; λ) is the non central beta PDF, and: -

-

- y = x * v1 / v2 -

-
-

- cdf -

-
-

- Using the relation: -

-

- p = By(v1/2, v2/2; λ) -

-

- where Bx(a, b; λ) is the noncentral beta distribution CDF and -

-

- y = x * v1 / v2 -

-
-

- cdf complement -

-
-

- Using the relation: -

-

- q = 1 - By(v1/2, v2/2; λ) -

-

- where 1 - Bx(a, b; λ) is the complement of the noncentral beta - distribution CDF and -

-

- y = x * v1 / v2 -

-
-

- quantile -

-
-

- Using the relation: -

-

- x = (bx / (1-bx)) * (v1 / v2) -

-

- where -

-

- bx = Qp-1(v1/2, v2/2; λ) -

-

- and -

-

- Qp-1(v1/2, v2/2; λ) -

-

- is the noncentral beta quantile. -

-
-

- quantile -

-

- from the complement -

-
-

- Using the relation: -

-

- x = (bx / (1-bx)) * (v1 / v2) -

-

- where -

-

- bx = QCq-1(v1/2, v2/2; λ) -

-

- and -

-

- QCq-1(v1/2, v2/2; λ) -

-

- is the noncentral beta quantile from the complement. -

-
-

- mean -

-
-

- v2 * (v1 + l) / (v1 * (v2 - 2)) -

-
-

- mode -

-
-

- By numeric maximalisation of the PDF. -

-
-

- variance -

-
-

- Refer to, Weisstein, - Eric W. "Noncentral F-Distribution." From MathWorld--A - Wolfram Web Resource. -

-
-

- skewness -

-
-

- Refer to, Weisstein, - Eric W. "Noncentral F-Distribution." From MathWorld--A - Wolfram Web Resource., and to the Mathematica - documentation -

-
-

- kurtosis and kurtosis excess -

-
-

- Refer to, Weisstein, - Eric W. "Noncentral F-Distribution." From MathWorld--A - Wolfram Web Resource., and to the Mathematica - documentation -

-
-

- Some analytic properties of noncentral distributions (particularly unimodality, - and monotonicity of their modes) are surveyed and summarized by: -

-

- Andrea van Aubel & Wolfgang Gawronski, Applied Mathematics and Computation, - 141 (2003) 3-12. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_t_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_t_dist.html deleted file mode 100644 index e1a57332..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/nc_t_dist.html +++ /dev/null @@ -1,566 +0,0 @@ - - - -Noncentral T Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/non_central_t.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class non_central_t_distribution;
-
-typedef non_central_t_distribution<> non_central_t;
-
-template <class RealType, class Policy>
-class non_central_t_distribution
-{
-public:
-   typedef RealType  value_type;
-   typedef Policy    policy_type;
-
-   // Constructor:
-   non_central_t_distribution(RealType v, RealType delta);
-
-   // Accessor to degrees_of_freedom parameter v:
-   RealType degrees_of_freedom()const;
-
-   // Accessor to non-centrality parameter delta:
-   RealType non_centrality()const;
-};
-
-}} // namespaces
-
-

- The noncentral T distribution is a generalization of the Students - t Distribution. Let X have a normal distribution with mean δ and variance - 1, and let ν S2 have a chi-squared distribution with degrees of freedom ν. - Assume that X and S2 are independent. The distribution of tν(δ)=X/S is called - a noncentral t distribution with degrees of freedom ν and noncentrality parameter - δ. -

-

- This gives the following PDF: -

-

- -

-

- where 1F1(a;b;x) is a confluent hypergeometric function. -

-

- The following graph illustrates how the distribution changes for different - values of ν and δ: -

-

- - -

-
- - Member - Functions -
-
non_central_t_distribution(RealType v, RealType delta);
-
-

- Constructs a non-central t distribution with degrees of freedom parameter - v and non-centrality parameter delta. -

-

- Requires v > 0 (including positive infinity) and - finite delta, otherwise calls domain_error. -

-
RealType degrees_of_freedom()const;
-
-

- Returns the parameter v from which this object was - constructed. -

-
RealType non_centrality()const;
-
-

- Returns the non-centrality parameter delta from which - this object was constructed. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [-∞, +∞]. -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) - found on various platforms with various floating-point types. Unless otherwise - specified, any floating-point type that is narrower than the one shown - will have effectively - zero error. -

-
-

Table 5.8. Error rates for non central t CDF

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central T -

-
-

- Max = 138ε (Mean = 31.5ε) -

-
-

- Max = 0.796ε (Mean = 0.0691ε)
-
(Rmath 3.0.2: Max - = 5.28e+15ε (Mean = 8.49e+14ε) And - other failures.) -

-
-

- Max = 141ε (Mean = 31.1ε) -

-
-

- Max = 145ε (Mean = 30.2ε) -

-
-

- Non Central T (small non-centrality) -

-
-

- Max = 3.61ε (Mean = 1.03ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 2.09e+03ε (Mean = 244ε)) -

-
-

- Max = 7.86ε (Mean = 1.69ε) -

-
-

- Max = 9.15ε (Mean = 2.25ε) -

-
-

- Non Central T (large parameters) -

-
-

- Max = 286ε (Mean = 62.8ε) -

-
-

- Max = 257ε (Mean = 72.1ε)

- (Rmath 3.0.2: Max = 2.46ε (Mean = 0.657ε)) -

-
-

- Max = 5.26e+05ε (Mean = 1.48e+05ε) -

-
-

- Max = 5.24e+05ε (Mean = 1.47e+05ε) -

-
-
-
-

Table 5.9. Error rates for non central t CDF complement

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central T -

-
-

- Max = 150ε (Mean = 32.3ε) -

-
-

- Max = 0.707ε (Mean = 0.0497ε)
-
(Rmath 3.0.2: Max - = 6.19e+15ε (Mean = 6.72e+14ε) And - other failures.) -

-
-

- Max = 203ε (Mean = 31.8ε) -

-
-

- Max = 340ε (Mean = 43.6ε) -

-
-

- Non Central T (small non-centrality) -

-
-

- Max = 5.21ε (Mean = 1.43ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 1.87e+03ε (Mean = 263ε)) -

-
-

- Max = 7.48ε (Mean = 1.86ε) -

-
-

- Max = 10.9ε (Mean = 2.43ε) -

-
-

- Non Central T (large parameters) -

-
-

- Max = 227ε (Mean = 50.4ε) -

-
-

- Max = 478ε (Mean = 96.3ε)

- (Rmath 3.0.2: Max = 2.24ε (Mean = 0.945ε)) -

-
-

- Max = 9.79e+05ε (Mean = 1.97e+05ε) -

-
-

- Max = 9.79e+05ε (Mean = 1.97e+05ε) -

-
-
-
- - - - - -
[Caution]Caution

- The complexity of the current algorithm is dependent upon δ2: consequently - the time taken to evaluate the CDF increases rapidly for δ > 500, likewise - the accuracy decreases rapidly for very large δ. -

-

- Accuracy for the quantile and PDF functions should be broadly similar. - The mode is determined numerically and cannot in principal - be more accurate than the square root of floating-point type FPT epsilon, - accessed using boost::math::tools::epsilon<FPT>(). - For 64-bit double, epsilon - is about 1e-16, so the fractional accuracy is limited to 1e-8. -

-
- - Tests -
-

- There are two sets of tests of this distribution: -

-

- Basic sanity checks compare this implementation to the test values given - in "Computing discrete mixtures of continuous distributions: noncentral - chisquare, noncentral t and the distribution of the square of the sample - multiple correlation coefficient." Denise Benton, K. Krishnamoorthy, - Computational Statistics & Data Analysis 43 (2003) 249-267. -

-

- Accuracy checks use test data computed with this implementation and arbitary - precision interval arithmetic: this test data is believed to be accurate - to at least 50 decimal places. -

-

- The cases of large (or infinite) ν and/or large δ has received special treatment - to avoid catastrophic loss of accuracy. New tests have been added to confirm - the improvement achieved. -

-

- From Boost 1.52, degrees of freedom ν can be +∞ -when the normal distribution - located at δ -(equivalent to the central Student's t distribution) is used - in place for accuracy and speed. -

-
- - Implementation -
-

- The CDF is computed using a modification of the method described in "Computing - discrete mixtures of continuous distributions: noncentral chisquare, noncentral - t and the distribution of the square of the sample multiple correlation - coefficient." Denise Benton, K. Krishnamoorthy, Computational Statistics - & Data Analysis 43 (2003) 249-267. -

-

- This uses the following formula for the CDF: -

-

- -

-

- Where Ix(a,b) is the incomplete beta function, and Φ(x) is the normal CDF - at x. -

-

- Iteration starts at the largest of the Poisson weighting terms (at i = - δ2 / 2) and then proceeds in both directions as per Benton and Krishnamoorthy's - paper. -

-

- Alternatively, by considering what happens when t = ∞, we have x = 1, and - therefore Ix(a,b) = 1 and: -

-

- -

-

- From this we can easily show that: -

-

- -

-

- and therefore we have a means to compute either the probability or its - complement directly without the risk of cancellation error. The crossover - criterion for choosing whether to calculate the CDF or its complement is - the same as for the Noncentral - Beta Distribution. -

-

- The PDF can be computed by a very similar method using: -

-

- -

-

- Where Ix'(a,b) is the derivative of the incomplete beta function. -

-

- For both the PDF and CDF we switch to approximating the distribution by - a Student's t distribution centred on δ when ν is very large. The crossover - location appears to be when δ/(4ν) < ε, this location was estimated by - inspection of equation 2.6 in "A Comparison of Approximations To Percentiles - of the Noncentral t-Distribution". H. Sahai and M. M. Ojeda, Revista - Investigacion Operacional Vol 21, No 2, 2000, page 123. -

-

- Equation 2.6 is a Fisher-Cornish expansion by Eeden and Johnson. The second - term includes the ratio δ/(4ν), so when this term become negligible, this - and following terms can be ignored, leaving just Student's t distribution - centred on δ. -

-

- This was also confirmed by experimental testing. -

-

- See also -

-
    -
  • - "Some Approximations to the Percentage Points of the Noncentral - t-Distribution". C. van Eeden. International Statistical Review, - 29, 4-31. -
  • -
  • - "Continuous Univariate Distributions". N.L. Johnson, S. Kotz - and N. Balkrishnan. 1995. John Wiley and Sons New York. -
  • -
-

- The quantile is calculated via the usual root-finding - without derivatives method with the initial guess taken as the quantile - of a normal approximation to the noncentral T. -

-

- There is no closed form for the mode, so this is computed via functional - maximisation of the PDF. -

-

- The remaining functions (mean, variance etc) are implemented using the - formulas given in Weisstein, Eric W. "Noncentral Student's t-Distribution." - From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/NoncentralStudentst-Distribution.html - and in the Mathematica - documentation. -

-

- Some analytic properties of noncentral distributions (particularly unimodality, - and monotonicity of their modes) are surveyed and summarized by: -

-

- Andrea van Aubel & Wolfgang Gawronski, Applied Mathematics and Computation, - 141 (2003) 3-12. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/negative_binomial_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/negative_binomial_dist.html deleted file mode 100644 index 9635c895..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/negative_binomial_dist.html +++ /dev/null @@ -1,883 +0,0 @@ - - - -Negative Binomial Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/negative_binomial.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class negative_binomial_distribution;
-
-typedef negative_binomial_distribution<> negative_binomial;
-
-template <class RealType, class Policy>
-class negative_binomial_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-   // Constructor from successes and success_fraction:
-   negative_binomial_distribution(RealType r, RealType p);
-
-   // Parameter accessors:
-   RealType success_fraction() const;
-   RealType successes() const;
-
-   // Bounds on success fraction:
-   static RealType find_lower_bound_on_p(
-      RealType trials,
-      RealType successes,
-      RealType probability); // alpha
-   static RealType find_upper_bound_on_p(
-      RealType trials,
-      RealType successes,
-      RealType probability); // alpha
-
-   // Estimate min/max number of trials:
-   static RealType find_minimum_number_of_trials(
-      RealType k,     // Number of failures.
-      RealType p,     // Success fraction.
-      RealType probability); // Probability threshold alpha.
-   static RealType find_maximum_number_of_trials(
-      RealType k,     // Number of failures.
-      RealType p,     // Success fraction.
-      RealType probability); // Probability threshold alpha.
-};
-
-}} // namespaces
-
-

- The class type negative_binomial_distribution - represents a negative_binomial - distribution: it is used when there are exactly two mutually exclusive - outcomes of a Bernoulli - trial: these outcomes are labelled "success" and "failure". -

-

- For k + r Bernoulli trials each with success fraction p, the negative_binomial - distribution gives the probability of observing k failures and r successes - with success on the last trial. The negative_binomial distribution assumes - that success_fraction p is fixed for all (k + r) trials. -

-
- - - - - -
[Note]Note

- The random variable for the negative binomial distribution is the number - of trials, (the number of successes is a fixed property of the distribution) - whereas for the binomial, the random variable is the number of successes, - for a fixed number of trials. -

-

- It has the PDF: -

-

- -

-

- The following graph illustrate how the PDF varies as the success fraction - p changes: -

-

- -

-

- Alternatively, this graph shows how the shape of the PDF varies as the - number of successes changes: -

-

- -

-
- - Related - Distributions -
-

- The name negative binomial distribution is reserved by some to the case - where the successes parameter r is an integer. This integer version is - also called the Pascal - distribution. -

-

- This implementation uses real numbers for the computation throughout (because - it uses the real-valued incomplete beta - function family of functions). This real-valued version is also called - the Polya Distribution. -

-

- The Poisson distribution is a generalization of the Pascal distribution, - where the success parameter r is an integer: to obtain the Pascal distribution - you must ensure that an integer value is provided for r, and take integer - values (floor or ceiling) from functions that return a number of successes. -

-

- For large values of r (successes), the negative binomial distribution converges - to the Poisson distribution. -

-

- The geometric distribution is a special case where the successes parameter - r = 1, so only a first and only success is required. geometric(p) = negative_binomial(1, - p). -

-

- The Poisson distribution is a special case for large successes -

-

- poisson(λ) = lim r → ∞   negative_binomial(r, r / (λ + r))) -

-
- - - - - -
[Caution]Caution
-

- The Negative Binomial distribution is a discrete distribution: internally, - functions like the cdf - and pdf are treated "as - if" they are continuous functions, but in reality the results returned - from these functions only have meaning if an integer value is provided - for the random variate argument. -

-

- The quantile function will by default return an integer result that has - been rounded outwards. That is to say lower quantiles - (where the probability is less than 0.5) are rounded downward, and upper - quantiles (where the probability is greater than 0.5) are rounded upwards. - This behaviour ensures that if an X% quantile is requested, then at - least the requested coverage will be present in the central - region, and no more than the requested coverage - will be present in the tails. -

-

- This behaviour can be changed so that the quantile functions are rounded - differently, or even return a real-valued result using Policies. - It is strongly recommended that you read the tutorial Understanding - Quantiles of Discrete Distributions before using the quantile - function on the Negative Binomial distribution. The reference - docs describe how to change the rounding policy for these distributions. -

-
-
- - Member - Functions -
-
- - Construct -
-
negative_binomial_distribution(RealType r, RealType p);
-
-

- Constructor: r is the total number of successes, - p is the probability of success of a single trial. -

-

- Requires: r > - 0 and 0 - <= p - <= 1. -

-
- - Accessors -
-
RealType success_fraction() const; // successes / trials (0 <= p <= 1)
-
-

- Returns the parameter p from which this distribution - was constructed. -

-
RealType successes() const; // required successes (r > 0)
-
-

- Returns the parameter r from which this distribution - was constructed. -

-

- The best method of calculation for the following functions is disputed: - see Binomial - Distribution for more discussion. -

-
- - Lower - Bound on Parameter p -
-
static RealType find_lower_bound_on_p(
-  RealType failures,
-  RealType successes,
-  RealType probability) // (0 <= alpha <= 1), 0.05 equivalent to 95% confidence.
-
-

- Returns a lower bound on the success fraction: -

-
-

-
-
failures
-

- The total number of failures before the rth - success. -

-
successes
-

- The number of successes required. -

-
alpha
-

- The largest acceptable probability that the true value of the success - fraction is less than the value - returned. -

-
-
-

- For example, if you observe k failures and r - successes from n = k + r trials the best estimate - for the success fraction is simply r/n, but if you - want to be 95% sure that the true value is greater - than some value, pmin, then: -

-
pmin = negative_binomial_distribution<RealType>::find_lower_bound_on_p(
-                    failures, successes, 0.05);
-
-

- See - negative binomial confidence interval example. -

-

- This function uses the Clopper-Pearson method of computing the lower bound - on the success fraction, whilst many texts refer to this method as giving - an "exact" result in practice it produces an interval that guarantees - at least the coverage required, and may produce pessimistic - estimates for some combinations of failures and successes. - See: -

-

- Yong - Cai and K. Krishnamoorthy, A Simple Improved Inferential Method for Some - Discrete Distributions. Computational statistics and data analysis, 2005, - vol. 48, no3, 605-621. -

-
- - Upper - Bound on Parameter p -
-
static RealType find_upper_bound_on_p(
-   RealType trials,
-   RealType successes,
-   RealType alpha); // (0 <= alpha <= 1), 0.05 equivalent to 95% confidence.
-
-

- Returns an upper bound on the success - fraction: -

-
-

-
-
trials
-

- The total number of trials conducted. -

-
successes
-

- The number of successes that occurred. -

-
alpha
-

- The largest acceptable probability that the true value of the success - fraction is greater than the value - returned. -

-
-
-

- For example, if you observe k successes from n - trials the best estimate for the success fraction is simply k/n, - but if you want to be 95% sure that the true value is less - than some value, pmax, then: -

-
pmax = negative_binomial_distribution<RealType>::find_upper_bound_on_p(
-                    r, k, 0.05);
-
-

- See - negative binomial confidence interval example. -

-

- This function uses the Clopper-Pearson method of computing the lower bound - on the success fraction, whilst many texts refer to this method as giving - an "exact" result in practice it produces an interval that guarantees - at least the coverage required, and may produce pessimistic - estimates for some combinations of failures and successes. - See: -

-

- Yong - Cai and K. Krishnamoorthy, A Simple Improved Inferential Method for Some - Discrete Distributions. Computational statistics and data analysis, 2005, - vol. 48, no3, 605-621. -

-
- - Estimating - Number of Trials to Ensure at Least a Certain Number of Failures -
-
static RealType find_minimum_number_of_trials(
-   RealType k,     // number of failures.
-   RealType p,     // success fraction.
-   RealType alpha); // probability threshold (0.05 equivalent to 95%).
-
-

- This functions estimates the number of trials required to achieve a certain - probability that more than k failures will be observed. -

-
-

-
-
k
-

- The target number of failures to be observed. -

-
p
-

- The probability of success for each trial. -

-
alpha
-

- The maximum acceptable risk that only k failures or fewer will be - observed. -

-
-
-

- For example: -

-
negative_binomial_distribution<RealType>::find_minimum_number_of_trials(10, 0.5, 0.05);
-
-

- Returns the smallest number of trials we must conduct to be 95% sure of - seeing 10 failures that occur with frequency one half. -

-

- Worked - Example. -

-

- This function uses numeric inversion of the negative binomial distribution - to obtain the result: another interpretation of the result, is that it - finds the number of trials (success+failures) that will lead to an alpha - probability of observing k failures or fewer. -

-
- - Estimating - Number of Trials to Ensure a Maximum Number of Failures or Less -
-
static RealType find_maximum_number_of_trials(
-   RealType k,     // number of failures.
-   RealType p,     // success fraction.
-   RealType alpha); // probability threshold (0.05 equivalent to 95%).
-
-

- This functions estimates the maximum number of trials we can conduct and - achieve a certain probability that k failures or - fewer will be observed. -

-
-

-
-
k
-

- The maximum number of failures to be observed. -

-
p
-

- The probability of success for each trial. -

-
alpha
-

- The maximum acceptable risk that more than k - failures will be observed. -

-
-
-

- For example: -

-
negative_binomial_distribution<RealType>::find_maximum_number_of_trials(0, 1.0-1.0/1000000, 0.05);
-
-

- Returns the largest number of trials we can conduct and still be 95% sure - of seeing no failures that occur with frequency one in one million. -

-

- This function uses numeric inversion of the negative binomial distribution - to obtain the result: another interpretation of the result, is that it - finds the number of trials (success+failures) that will lead to an alpha - probability of observing more than k failures. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- However it's worth taking a moment to define what these actually mean in - the context of this distribution: -

-
-

Table 5.3. Meaning of the non-member accessors.

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Meaning -

-
-

- Probability Density - Function -

-
-

- The probability of obtaining exactly k - failures from k+r trials with success fraction p. - For example: -

-
pdf(negative_binomial(r, p), k)
-
-

- Cumulative Distribution - Function -

-
-

- The probability of obtaining k failures - or fewer from k+r trials with success fraction p and - success on the last trial. For example: -

-
cdf(negative_binomial(r, p), k)
-
-

- Complement of - the Cumulative Distribution Function -

-
-

- The probability of obtaining more than - k failures from k+r trials with success fraction p - and success on the last trial. For example: -

-
cdf(complement(negative_binomial(r, p), k))
-
-

- Quantile -

-
-

- The greatest number of failures - k expected to be observed from k+r trials with success fraction - p, at probability P. Note that the value returned is a real-number, - and not an integer. Depending on the use case you may want to - take either the floor or ceiling of the real result. For example: -

-
quantile(negative_binomial(r, p), P)
-
-

- Quantile - from the complement of the probability -

-
-

- The smallest number of failures - k expected to be observed from k+r trials with success fraction - p, at probability P. Note that the value returned is a real-number, - and not an integer. Depending on the use case you may want to - take either the floor or ceiling of the real result. For example: -

-
quantile(complement(negative_binomial(r, p), P))
-
-
-
- - Accuracy -
-

- This distribution is implemented using the incomplete beta functions ibeta and ibetac: - please refer to these functions for information on accuracy. -

-
- - Implementation -
-

- In the following table, p is the probability that - any one trial will be successful (the success fraction), r - is the number of successes, k is the number of failures, - p is the probability and q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- pdf = exp(lgamma(r + k) - lgamma(r) - lgamma(k+1)) * pow(p, r) - * pow((1-p), k) -

-

- Implementation is in terms of ibeta_derivative: -

-

- (p/(r + k)) * ibeta_derivative(r, static_cast<RealType>(k+1), - p) The function ibeta_derivative - is used here, since it has already been optimised for the lowest - possible error - indeed this is really just a thin wrapper around - part of the internals of the incomplete beta function. -

-
-

- cdf -

-
-

- Using the relation: -

-

- cdf = Ip(r, k+1) = ibeta(r, k+1, p) -

-

- = ibeta(r, static_cast<RealType>(k+1), p) -

-
-

- cdf complement -

-
-

- Using the relation: -

-

- 1 - cdf = Ip(k+1, r) -

-

- = ibetac(r, static_cast<RealType>(k+1), p) -

-
-

- quantile -

-
-

- ibeta_invb(r, p, P) - 1 -

-
-

- quantile from the complement -

-
-

- ibetac_invb(r, p, Q) -1) -

-
-

- mean -

-
-

- r(1-p)/p -

-
-

- variance -

-
-

- r (1-p) - / p - * p -

-
-

- mode -

-
-

- floor((r-1) * (1 - p)/p) -

-
-

- skewness -

-
-

- (2 - - p) / - sqrt(r * - (1 - - p)) -

-
-

- kurtosis -

-
-

- 6 / - r + - (p - * p) / - r * - (1 - - p - ) -

-
-

- kurtosis excess -

-
-

- 6 / - r + - (p - * p) / - r * - (1 - - p - ) -3 -

-
-

- parameter estimation member functions -

-
-
-

- find_lower_bound_on_p -

-
-

- ibeta_inv(successes, failures + 1, alpha) -

-
-

- find_upper_bound_on_p -

-
-

- ibetac_inv(successes, failures, alpha) plus see comments in code. -

-
-

- find_minimum_number_of_trials -

-
-

- ibeta_inva(k + 1, p, alpha) -

-
-

- find_maximum_number_of_trials -

-
-

- ibetac_inva(k + 1, p, alpha) -

-
-

- Implementation notes: -

-
    -
  • - The real concept type (that deliberately lacks the Lanczos approximation), - was found to take several minutes to evaluate some extreme test values, - so the test has been disabled for this type. -
  • -
  • - Much greater speed, and perhaps greater accuracy, might be achieved - for extreme values by using a normal approximation. This is NOT been - tested or implemented. -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/normal_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/normal_dist.html deleted file mode 100644 index 34e4a1ba..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/normal_dist.html +++ /dev/null @@ -1,325 +0,0 @@ - - - -Normal (Gaussian) Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/normal.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class normal_distribution;
-
-typedef normal_distribution<> normal;
-
-template <class RealType, class Policy>
-class normal_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-   // Construct:
-   normal_distribution(RealType mean = 0, RealType sd = 1);
-   // Accessors:
-   RealType mean()const; // location.
-   RealType standard_deviation()const; // scale.
-   // Synonyms, provided to allow generic use of find_location and find_scale.
-   RealType location()const;
-   RealType scale()const;
-};
-
-}} // namespaces
-
-

- The normal distribution is probably the most well known statistical distribution: - it is also known as the Gaussian Distribution. A normal distribution with - mean zero and standard deviation one is known as the Standard - Normal Distribution. -

-

- Given mean μ  and standard deviation σ  it has the PDF: -

-

-   -

-

- The variation the PDF with its parameters is illustrated in the following - graph: -

-

- -

-

- The cumulative distribution function is given by -

-

-   -

-

- and illustrated by this graph -

-

- -

-
- - Member - Functions -
-
normal_distribution(RealType mean = 0, RealType sd = 1);
-
-

- Constructs a normal distribution with mean mean and - standard deviation sd. -

-

- Requires sd > 0, otherwise domain_error - is called. -

-
RealType mean()const;
-RealType location()const;
-
-

- both return the mean of this distribution. -

-
RealType standard_deviation()const;
-RealType scale()const;
-
-

- both return the standard deviation of this distribution. - (Redundant location and scale function are provided to match other similar - distributions, allowing the functions find_location and find_scale to be - used generically). -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [-[max_value], +[min_value]]. However, - the pdf of +∞ and -∞ = 0 is also supported, and cdf at -∞ = 0, cdf at +∞ = 1, and - complement cdf -∞ = 1 and +∞ = 0, if RealType permits. -

-
- - Accuracy -
-

- The normal distribution is implemented in terms of the error - function, and as such should have very low error rates. -

-
- - Implementation -
-

- In the following table m is the mean of the distribution, - and s is its standard deviation. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = e-(x-m)2/(2s2) / (s * sqrt(2*pi)) -

-
-

- cdf -

-
-

- Using the relation: p = 0.5 * erfc(-(x-m)/(s*sqrt(2))) -

-
-

- cdf complement -

-
-

- Using the relation: q = 0.5 * erfc((x-m)/(s*sqrt(2))) -

-
-

- quantile -

-
-

- Using the relation: x = m - s * sqrt(2) * erfc_inv(2*p) -

-
-

- quantile from the complement -

-
-

- Using the relation: x = m + s * sqrt(2) * erfc_inv(2*p) -

-
-

- mean and standard deviation -

-
-

- The same as dist.mean() and dist.standard_deviation() -

-
-

- mode -

-
-

- The same as the mean. -

-
-

- median -

-
-

- The same as the mean. -

-
-

- skewness -

-
-

- 0 -

-
-

- kurtosis -

-
-

- 3 -

-
-

- kurtosis excess -

-
-

- 0 -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/pareto.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/pareto.html deleted file mode 100644 index 9abcbf9b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/pareto.html +++ /dev/null @@ -1,350 +0,0 @@ - - - -Pareto Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/pareto.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class pareto_distribution;
-
-typedef pareto_distribution<> pareto;
-
-template <class RealType, class Policy>
-class pareto_distribution
-{
-public:
-   typedef RealType value_type;
-   // Constructor:
-   pareto_distribution(RealType scale = 1, RealType shape = 1)
-   // Accessors:
-   RealType scale()const;
-   RealType shape()const;
-};
-
-}} // namespaces
-
-

- The Pareto - distribution is a continuous distribution with the probability - density function (pdf): -

-

- f(x; α, β) = αβα / xα+ 1 -

-

- For shape parameter α   > 0, and scale parameter β   > 0. If x < β  , the - pdf is zero. -

-

- The Pareto - distribution often describes the larger compared to the smaller. - A classic example is that 80% of the wealth is owned by 20% of the population. -

-

- The following graph illustrates how the PDF varies with the scale parameter - β: -

-

- -

-

- And this graph illustrates how the PDF varies with the shape parameter - α: -

-

- -

-
- - Related - distributions -
-
- - Member Functions -
-
pareto_distribution(RealType scale = 1, RealType shape = 1);
-
-

- Constructs a pareto - distribution with shape shape and scale scale. -

-

- Requires that the shape and scale - parameters are both greater than zero, otherwise calls domain_error. -

-
RealType scale()const;
-
-

- Returns the scale parameter of this distribution. -

-
RealType shape()const;
-
-

- Returns the shape parameter of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The supported domain of the random variable is [scale, ∞]. -

-
- - Accuracy -
-

- The Pareto distribution is implemented in terms of the standard library - exp functions plus expm1 and so should have very - small errors, usually only a few epsilon. -

-

- If probability is near to unity (or the complement of a probability near - zero) see also why complements?. -

-
- - Implementation -
-

- In the following table α   is the shape parameter of the distribution, and - β   is its scale parameter, x is the random variate, - p is the probability and its complement q - = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf p = αβα/xα +1 -

-
-

- cdf -

-
-

- Using the relation: cdf p = 1 - (β   / x)α -

-
-

- cdf complement -

-
-

- Using the relation: q = 1 - p = -(β   / x)α -

-
-

- quantile -

-
-

- Using the relation: x = β / (1 - p)1/α -

-
-

- quantile from the complement -

-
-

- Using the relation: x = β / (q)1/α -

-
-

- mean -

-
-

- αβ / (β - 1) -

-
-

- variance -

-
-

- βα2 / (β - 1)2 (β - 2) -

-
-

- mode -

-
-

- α -

-
-

- skewness -

-
-

- Refer to Weisstein, - Eric W. "Pareto Distribution." From MathWorld--A Wolfram - Web Resource. -

-
-

- kurtosis -

-
-

- Refer to Weisstein, - Eric W. "Pareto Distribution." From MathWorld--A Wolfram - Web Resource. -

-
-

- kurtosis excess -

-
-

- Refer to Weisstein, - Eric W. "pareto Distribution." From MathWorld--A Wolfram - Web Resource. -

-
-
- - References -
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/poisson_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/poisson_dist.html deleted file mode 100644 index daebe42b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/poisson_dist.html +++ /dev/null @@ -1,330 +0,0 @@ - - - -Poisson Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/poisson.hpp>
-
namespace boost { namespace math {
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class poisson_distribution;
-
-typedef poisson_distribution<> poisson;
-
-template <class RealType, class Policy>
-class poisson_distribution
-{
-public:
-  typedef RealType value_type;
-  typedef Policy   policy_type;
-
-  poisson_distribution(RealType mean = 1); // Constructor.
-  RealType mean()const; // Accessor.
-}
-
-}} // namespaces boost::math
-
-

- The Poisson - distribution is a well-known statistical discrete distribution. - It expresses the probability of a number of events (or failures, arrivals, - occurrences ...) occurring in a fixed period of time, provided these events - occur with a known mean rate λ   -(events/time), and are independent of the - time since the last event. -

-

- The distribution was discovered by Simé on-Denis Poisson (1781 to 1840). -

-

- It has the Probability Mass Function: -

-

- -

-

- for k events, with an expected number of events λ. -

-

- The following graph illustrates how the PDF varies with the parameter λ: -

-

- -

-
- - - - - -
[Caution]Caution
-

- The Poisson distribution is a discrete distribution: internally, functions - like the cdf and pdf are treated "as if" they - are continuous functions, but in reality the results returned from these - functions only have meaning if an integer value is provided for the random - variate argument. -

-

- The quantile function will by default return an integer result that has - been rounded outwards. That is to say lower quantiles - (where the probability is less than 0.5) are rounded downward, and upper - quantiles (where the probability is greater than 0.5) are rounded upwards. - This behaviour ensures that if an X% quantile is requested, then at - least the requested coverage will be present in the central - region, and no more than the requested coverage - will be present in the tails. -

-

- This behaviour can be changed so that the quantile functions are rounded - differently, or even return a real-valued result using Policies. - It is strongly recommended that you read the tutorial Understanding - Quantiles of Discrete Distributions before using the quantile - function on the Poisson distribution. The reference - docs describe how to change the rounding policy for these distributions. -

-
-
- - Member - Functions -
-
poisson_distribution(RealType mean = 1);
-
-

- Constructs a poisson distribution with mean mean. -

-
RealType mean()const;
-
-

- Returns the mean of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [0, ∞]. -

-
- - Accuracy -
-

- The Poisson distribution is implemented in terms of the incomplete gamma - functions gamma_p and - gamma_q and as such - should have low error rates: but refer to the documentation of those functions - for more information. The quantile and its complement use the inverse gamma - functions and are therefore probably slightly less accurate: this is because - the inverse gamma functions are implemented using an iterative method with - a lower tolerance to avoid excessive computation. -

-
- - Implementation -
-

- In the following table λ   is the mean of the distribution, k - is the random variable, p is the probability and - q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = e-λ λk / k! -

-
-

- cdf -

-
-

- Using the relation: p = Γ(k+1, λ) / k! = gamma_q(k+1, - λ) -

-
-

- cdf complement -

-
-

- Using the relation: q = gamma_p(k+1, - λ) -

-
-

- quantile -

-
-

- Using the relation: k = gamma_q_inva(λ, - p) - 1 -

-
-

- quantile from the complement -

-
-

- Using the relation: k = gamma_p_inva(λ, - q) - 1 -

-
-

- mean -

-
-

- λ -

-
-

- mode -

-
-

- floor (λ) or ⌊λ⌋ -

-
-

- skewness -

-
-

- 1/√λ -

-
-

- kurtosis -

-
-

- 3 + 1/λ -

-
-

- kurtosis excess -

-
-

- 1/λ -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/rayleigh.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/rayleigh.html deleted file mode 100644 index 8a158c09..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/rayleigh.html +++ /dev/null @@ -1,347 +0,0 @@ - - - -Rayleigh Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/rayleigh.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class rayleigh_distribution;
-
-typedef rayleigh_distribution<> rayleigh;
-
-template <class RealType, class Policy>
-class rayleigh_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-   // Construct:
-   rayleigh_distribution(RealType sigma = 1)
-   // Accessors:
-   RealType sigma()const;
-};
-
-}} // namespaces
-
-

- The Rayleigh - distribution is a continuous distribution with the probability - density function: -

-

- f(x; sigma) = x * exp(-x2/2 σ2) / σ2 -

-

- For sigma parameter σ   > 0, and x > 0. -

-

- The Rayleigh distribution is often used where two orthogonal components - have an absolute value, for example, wind velocity and direction may be - combined to yield a wind speed, or real and imaginary components may have - absolute values that are Rayleigh distributed. -

-

- The following graph illustrates how the Probability density Function(pdf) - varies with the shape parameter σ: -

-

- -

-

- and the Cumulative Distribution Function (cdf) -

-

- -

-
- - Related - distributions -
-

- The absolute value of two independent normal distributions X and Y, √ (X2 + - Y2) is a Rayleigh distribution. -

-

- The Chi, - Rice - and Weibull - distributions are generalizations of the Rayleigh - distribution. -

-
- - Member - Functions -
-
rayleigh_distribution(RealType sigma = 1);
-
-

- Constructs a Rayleigh - distribution with σ sigma. -

-

- Requires that the σ parameter is greater than zero, otherwise calls domain_error. -

-
RealType sigma()const;
-
-

- Returns the sigma parameter of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [0, max_value]. -

-
- - Accuracy -
-

- The Rayleigh distribution is implemented in terms of the standard library - sqrt and exp and as such should have very low - error rates. Some constants such as skewness and kurtosis were calculated - using NTL RR type with 150-bit accuracy, about 50 decimal digits. -

-
- - Implementation -
-

- In the following table σ   is the sigma parameter of the distribution, x - is the random variate, p is the probability and q - = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = x * exp(-x2)/2 σ2 -

-
-

- cdf -

-
-

- Using the relation: p = 1 - exp(-x2/2) σ2   = -expm1(-x2/2) - σ2 -

-
-

- cdf complement -

-
-

- Using the relation: q = exp(-x2/ 2) * σ2 -

-
-

- quantile -

-
-

- Using the relation: x = sqrt(-2 * σ 2) * log(1 - p)) = sqrt(-2 - * σ 2) * log1p(-p)) -

-
-

- quantile from the complement -

-
-

- Using the relation: x = sqrt(-2 * σ 2) * log(q)) -

-
-

- mean -

-
-

- σ * sqrt(π/2) -

-
-

- variance -

-
-

- σ2 * (4 - π/2) -

-
-

- mode -

-
-

- σ -

-
-

- skewness -

-
-

- Constant from Weisstein, - Eric W. "Weibull Distribution." From MathWorld--A Wolfram - Web Resource. -

-
-

- kurtosis -

-
-

- Constant from Weisstein, - Eric W. "Weibull Distribution." From MathWorld--A Wolfram - Web Resource. -

-
-

- kurtosis excess -

-
-

- Constant from Weisstein, - Eric W. "Weibull Distribution." From MathWorld--A Wolfram - Web Resource. -

-
-
- - References -
- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/skew_normal_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/skew_normal_dist.html deleted file mode 100644 index b07c4961..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/skew_normal_dist.html +++ /dev/null @@ -1,498 +0,0 @@ - - - -Skew Normal Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/skew_normal.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class skew_normal_distribution;
-
-typedef skew_normal_distribution<> normal;
-
-template <class RealType, class Policy>
-class skew_normal_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-   // Constructor:
-   skew_normal_distribution(RealType location = 0, RealType scale = 1, RealType shape = 0);
-   // Accessors:
-   RealType location()const; // mean if normal.
-   RealType scale()const; // width, standard deviation if normal.
-   RealType shape()const; // The distribution is right skewed if shape > 0 and is left skewed if shape < 0.
-                          // The distribution is normal if shape is zero.
-};
-
-}} // namespaces
-
-

- The skew normal distribution is a variant of the most well known Gaussian - statistical distribution. -

-

- The skew normal distribution with shape zero resembles the Normal - Distribution, hence the latter can be regarded as a special case - of the more generic skew normal distribution. -

-

- If the standard (mean = 0, scale = 1) normal distribution probability density - function is -

-

-     -

-

- and the cumulative distribution function -

-

-     -

-

- then the PDF - of the skew - normal distribution with shape parameter α, defined by O'Hagan and - Leonhard (1976) is -

-

-     -

-

- Given location - ξ, scale - ω, and shape - α, it can be transformed, - to the form: -

-

-     -

-

- and CDF: -

-

-     -

-

- where T(h,a) is Owen's T function, and Φ(x) - is the normal distribution. -

-

- The variation the PDF and CDF with its parameters is illustrated in the - following graphs: -

-

- - -

-
- - Member - Functions -
-
skew_normal_distribution(RealType location = 0, RealType scale = 1, RealType shape = 0);
-
-

- Constructs a skew_normal distribution with location ξ, scale ω and shape α. -

-

- Requires scale > 0, otherwise domain_error - is called. -

-
RealType location()const;
-
-

- returns the location ξ of this distribution, -

-
RealType scale()const;
-
-

- returns the scale ω of this distribution, -

-
RealType shape()const;
-
-

- returns the shape α of this distribution. -

-

- (Location and scale function match other similar distributions, allowing - the functions find_location - and find_scale to be used - generically). -

-
- - - - - -
[Note]Note
-

- While the shape parameter may be chosen arbitrarily (finite), the resulting - skewness of the distribution is in fact - limited to about (-1, 1); strictly, the interval is (-0.9952717, 0.9952717). -

-

- A parameter δ is related to the shape α by δ = α / (1 + α²), and used in the expression - for skewness - -

-
-
- - References -
-
-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is -[max_value], +[min_value]. - Infinite values are not supported. -

-

- There are no closed-form - expression known for the mode and median, but these are computed - for the -

-
    -
  • - mode - by finding the maximum of the PDF. -
  • -
  • - median - by computing quantile(1/2). -
  • -
-

- The maximum of the PDF is sought through searching the root of f'(x)=0. -

-

- Both involve iterative methods that will have lower accuracy than other - estimates. -

-
- - Testing -
-

- The R Project for Statistical Computing - using library(sn) described at Skew-Normal - Probability Distribution, and at R - skew-normal(sn) package. -

-

- Package sn provides functions related to the skew-normal (SN) and the skew-t - (ST) probability distributions, both for the univariate and for the the - multivariate case, including regression models. -

-

- Wolfram - Mathematica was also used to generate some more accurate spot test - data. -

-
- - Accuracy -
-

- The skew_normal distribution with shape = zero is implemented as a special - case, equivalent to the normal distribution in terms of the error - function, and therefore should have excellent accuracy. -

-

- The PDF and mean, variance, skewness and kurtosis are also accurately evaluated - using analytical - expressions. The CDF requires Owen's - T function that is evaluated using a Boost C++ Owens - T implementation of the algorithms of M. Patefield and D. Tandy, - Journal of Statistical Software, 5(5), 1-25 (2000); the complicated accuracy - of this function is discussed in detail at Owens - T. -

-

- The median and mode are calculated by iterative root finding, and both - will be less accurate. -

-
- - Implementation -
-

- In the following table, ξ is the location of the distribution, and ω is its - scale, and α is its shape. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using: -

-
-

- cdf -

-
-

- Using:
where T(h,a) - is Owen's T function, and Φ(x) is the normal - distribution. -

-
-

- cdf complement -

-
-

- Using: complement of normal distribution + 2 * Owens_t -

-
-

- quantile -

-
-

- Maximum of the pdf is sought through searching the root of f'(x)=0 -

-
-

- quantile from the complement -

-
-

- -quantile(SN(-location ξ, scale ω, -shapeα), p) -

-
-

- location -

-
-

- location ξ -

-
-

- scale -

-
-

- scale ω -

-
-

- shape -

-
-

- shape α -

-
-

- median -

-
-

- quantile(1/2) -

-
-

- mean -

-
-

- -

-
-

- mode -

-
-

- Maximum of the pdf is sought through searching the root of f'(x)=0 -

-
-

- variance -

-
-

- -

-
-

- skewness -

-
-

- -

-
-

- kurtosis -

-
-

- kurtosis excess-3 -

-
-

- kurtosis excess -

-
-

- -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/students_t_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/students_t_dist.html deleted file mode 100644 index d671f14e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/students_t_dist.html +++ /dev/null @@ -1,430 +0,0 @@ - - - -Students t Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/students_t.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class students_t_distribution;
-
-typedef students_t_distribution<> students_t;
-
-template <class RealType, class Policy>
-class students_t_distribution
-{
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-
-   // Construct:
-   students_t_distribution(const RealType& v);
-
-   // Accessor:
-   RealType degrees_of_freedom()const;
-
-   // degrees of freedom estimation:
-   static RealType find_degrees_of_freedom(
-      RealType difference_from_mean,
-      RealType alpha,
-      RealType beta,
-      RealType sd,
-      RealType hint = 100);
-};
-
-}} // namespaces
-
-

- A statistical distribution published by William Gosset in 1908. His employer, - Guinness Breweries, required him to publish under a pseudonym (possibly - to hide that they were using statistics), so he chose "Student". - Given N independent measurements, let -

-

- -

-

- where M is the population mean,μ - is the sample mean, and s is the sample variance. -

-

- Student's t-distribution is defined as the distribution of the random variable - t which is - very loosely - the "best" that we can do not knowing - the true standard deviation of the sample. It has the PDF: -

-

- -

-

- The Student's t-distribution takes a single parameter: the number of degrees - of freedom of the sample. When the degrees of freedom is one - then this distribution is the same as the Cauchy-distribution. As the number - of degrees of freedom tends towards infinity, then this distribution approaches - the normal-distribution. The following graph illustrates how the PDF varies - with the degrees of freedom ν: -

-

- -

-
- - Member - Functions -
-
students_t_distribution(const RealType& v);
-
-

- Constructs a Student's t-distribution with v degrees - of freedom. -

-

- Requires v > 0, otherwise calls domain_error. - Note that non-integral degrees of freedom are supported, and are meaningful - under certain circumstances. -

-
RealType degrees_of_freedom()const;
-
-

- Returns the number of degrees of freedom of this distribution. -

-
static RealType find_degrees_of_freedom(
-   RealType difference_from_mean,
-   RealType alpha,
-   RealType beta,
-   RealType sd,
-   RealType hint = 100);
-
-

- Returns the number of degrees of freedom required to observe a significant - result in the Student's t test when the mean differs from the "true" - mean by difference_from_mean. -

-
-

-
-
difference_from_mean
-

- The difference between the true mean and the sample mean that we - wish to show is significant. -

-
alpha
-

- The maximum acceptable probability of rejecting the null hypothesis - when it is in fact true. -

-
beta
-

- The maximum acceptable probability of failing to reject the null - hypothesis when it is in fact false. -

-
sd
-

- The sample standard deviation. -

-
hint
-

- A hint for the location to start looking for the result, a good choice - for this would be the sample size of a previous borderline Student's - t test. -

-
-
-
- - - - - -
[Note]Note

- Remember that for a two-sided test, you must divide alpha by two before - calling this function. -

-

- For more information on this function see the NIST - Engineering Statistics Handbook. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [-∞, +∞]. -

-
- - Examples -
-

- Various worked examples - are available illustrating the use of the Student's t distribution. -

-
- - Accuracy -
-

- The normal distribution is implemented in terms of the incomplete - beta function and its - inverses, refer to accuracy data on those functions for more information. -

-
- - Implementation -
-

- In the following table v is the degrees of freedom - of the distribution, t is the random variate, p - is the probability and q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = (v / (v + t2))(1+v)/2 / (sqrt(v) * - beta(v/2, - 0.5)) -

-
-

- cdf -

-
-

- Using the relations: -

-

- p = 1 - z iff t > 0 -

-

- p = z otherwise -

-

- where z is given by: -

-

- ibeta(v - / 2, 0.5, v / (v + t2)) / 2 iff v < 2t2 -

-

- ibetac(0.5, - v / 2, t2 / (v + t2) / 2 otherwise -

-
-

- cdf complement -

-
-

- Using the relation: q = cdf(-t) -

-
-

- quantile -

-
-

- Using the relation: t = sign(p - 0.5) * sqrt(v * y / x) -

-

- where: -

-

- x = ibeta_inv(v - / 2, 0.5, 2 * min(p, q)) -

-

- y = 1 - x -

-

- The quantities x and y - are both returned by ibeta_inv - without the subtraction implied above. -

-
-

- quantile from the complement -

-
-

- Using the relation: t = -quantile(q) -

-
-

- mode -

-
-

- 0 -

-
-

- mean -

-
-

- 0 -

-
-

- variance -

-
-

- if (v > 2) v / (v - 2) else NaN -

-
-

- skewness -

-
-

- if (v > 3) 0 else NaN -

-
-

- kurtosis -

-
-

- if (v > 4) 3 * (v - 2) / (v - 4) else NaN -

-
-

- kurtosis excess -

-
-

- if (v > 4) 6 / (df - 4) else NaN -

-
-

- If the moment index k is less than v, - then the moment is undefined. Evaluating the moment will throw a domain_error - unless ignored by a policy, when it will return std::numeric_limits<>::quiet_NaN(); -

-

- (For simplicity, we have not implemented the return of infinity in some - cases as suggested by Wikipedia - Student's t. See also https://svn.boost.org/trac/boost/ticket/7177.) -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/triangular_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/triangular_dist.html deleted file mode 100644 index 3fff3219..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/triangular_dist.html +++ /dev/null @@ -1,446 +0,0 @@ - - - -Triangular Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/triangular.hpp>
-
namespace boost{ namespace math{
- template <class RealType = double,
-           class Policy   = policies::policy<> >
- class triangular_distribution;
-
- typedef triangular_distribution<> triangular;
-
- template <class RealType, class Policy>
- class triangular_distribution
- {
- public:
-    typedef RealType value_type;
-    typedef Policy   policy_type;
-
-    triangular_distribution(RealType lower = -1, RealType mode = 0) RealType upper = 1); // Constructor.
-       : m_lower(lower), m_mode(mode), m_upper(upper) // Default is -1, 0, +1 symmetric triangular distribution.
-    // Accessor functions.
-    RealType lower()const;
-    RealType mode()const;
-    RealType upper()const;
- }; // class triangular_distribution
-
-}} // namespaces
-
-

- The triangular - distribution is a continuous - probability - distribution with a lower limit a, mode - c, and upper limit b. -

-

- The triangular distribution is often used where the distribution is only - vaguely known, but, like the uniform - distribution, upper and limits are 'known', but a 'best guess', - the mode or center point, is also added. It has been recommended as a - proxy - for the beta distribution. The distribution is used in business - decision making and project planning. -

-

- The triangular - distribution is a distribution with the probability - density function: -

-

-    f(x) = -

-
    -
  • - 2(x-a)/(b-a) (c-a) for a <= x <= c -
  • -
  • - 2(b-x)/(b-a)(b-c) for c < x <= b -
  • -
-

- Parameter a (lower) can be any finite value. Parameter - b (upper) can be any finite value > a (lower). - Parameter c (mode) a <= c <= b. This is the - most probable value. -

-

- The random variate - x must also be finite, and is supported lower <= x <= upper. -

-

- The triangular distribution may be appropriate when an assumption of a - normal distribution is unjustified because uncertainty is caused by rounding - and quantization from analog to digital conversion. Upper and lower limits - are known, and the most probable value lies midway. -

-

- The distribution simplifies when the 'best guess' is either the lower or - upper limit - a 90 degree angle triangle. The 001 triangular distribution - which expresses an estimate that the lowest value is the most likely; for - example, you believe that the next-day quoted delivery date is most likely - (knowing that a quicker delivery is impossible - the postman only comes - once a day), and that longer delays are decreasingly likely, and delivery - is assumed to never take more than your upper limit. -

-

- The following graph illustrates how the probability - density function PDF varies with the various parameters: -

-

- -

-

- and cumulative distribution function -

-

- -

-
- - Member - Functions -
-
triangular_distribution(RealType lower = 0, RealType mode = 0 RealType upper = 1);
-
-

- Constructs a triangular - distribution with lower lower (a) and upper - upper (b). -

-

- Requires that the lower, mode - and upper parameters are all finite, otherwise calls - domain_error. -

-
- - - - - -
[Warning]Warning
-

- These constructors are slightly different from the analogs provided by - Wolfram MathWorld - Triangular - distribution, where -

-

- TriangularDistribution[{min, max}] represents a symmetric triangular statistical distribution - giving values between min and max.
TriangularDistribution[] - represents a symmetric triangular statistical - distribution giving values between 0 and 1.
TriangularDistribution[{min, - max}, c] represents a triangular distribution with mode at - c (usually asymmetric).
-

-

- So, for example, to compute a variance using Wolfram - Alpha, use N[variance[TriangularDistribution{1, +2}], - 50] -

-
-

- The parameters of a distribution can be obtained using these member functions: -

-
RealType lower()const;
-
-

- Returns the lower parameter of this distribution (default - -1). -

-
RealType mode()const;
-
-

- Returns the mode parameter of this distribution (default - 0). -

-
RealType upper()const;
-
-

- Returns the upper parameter of this distribution (default+1). -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is \lowerto \upper, and the supported - range is lower <= x <= upper. -

-
- - Accuracy -
-

- The triangular distribution is implemented with simple arithmetic operators - and so should have errors within an epsilon or two, except quantiles with - arguments nearing the extremes of zero and unity. -

-
- - Implementation -
-

- In the following table, a is the lower parameter of - the distribution, c is the mode parameter, b is the - upper parameter, x is the random - variate, p is the probability and q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = 0 for x < mode, 2(x-a)/(b-a)(c-a) - else 2*(b-x)/((b-a)(b-c)) -

-
-

- cdf -

-
-

- Using the relation: cdf = 0 for x < mode (x-a)2/((b-a)(c-a)) - else 1 - (b-x)2/((b-a)(b-c)) -

-
-

- cdf complement -

-
-

- Using the relation: q = 1 - p -

-
-

- quantile -

-
-

- let p0 = (c-a)/(b-a) the point of inflection on the cdf, then - given probability p and q = 1-p: -

-

- x = sqrt((b-a)(c-a)p) + a ; for p < p0 -

-

- x = c ; for p == p0 -

-

- x = b - sqrt((b-a)(b-c)q) ; for p > p0 -

-

- (See /boost/math/distributions/triangular.hpp - for details.) -

-
-

- quantile from the complement -

-
-

- As quantile (See /boost/math/distributions/triangular.hpp - for details.) -

-
-

- mean -

-
-

- (a + b + 3) / 3 -

-
-

- variance -

-
-

- (a2+b2+c2 - ab - ac - bc)/18 -

-
-

- mode -

-
-

- c -

-
-

- skewness -

-
-

- (See /boost/math/distributions/triangular.hpp - for details). -

-
-

- kurtosis -

-
-

- 12/5 -

-
-

- kurtosis excess -

-
-

- -3/5 -

-
-

- Some 'known good' test values were obtained using Wolfram - Alpha. -

-
- - References -
- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/uniform_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/uniform_dist.html deleted file mode 100644 index ef30e3d9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/uniform_dist.html +++ /dev/null @@ -1,367 +0,0 @@ - - - -Uniform Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/uniform.hpp>
-
namespace boost{ namespace math{
- template <class RealType = double,
-           class Policy   = policies::policy<> >
- class uniform_distribution;
-
- typedef uniform_distribution<> uniform;
-
- template <class RealType, class Policy>
- class uniform_distribution
- {
- public:
-    typedef RealType value_type;
-
-    uniform_distribution(RealType lower = 0, RealType upper = 1); // Constructor.
-       : m_lower(lower), m_upper(upper) // Default is standard uniform distribution.
-    // Accessor functions.
-    RealType lower()const;
-    RealType upper()const;
- }; // class uniform_distribution
-
-}} // namespaces
-
-

- The uniform distribution, also known as a rectangular distribution, is - a probability distribution that has constant probability. -

-

- The continuous - uniform distribution is a distribution with the probability - density function: -

-

- f(x) = -

-
    -
  • - 1 / (upper - lower) for lower < x < upper -
  • -
  • - zero for x < lower or x > upper -
  • -
-

- and in this implementation: -

-
  • - 1 / (upper - lower) for x = lower or x = upper -
-

- The choice of x = lower or x = upper is made because statistical use of - this distribution judged is most likely: the method of maximum likelihood - uses this definition. -

-

- There is also a discrete uniform distribution. -

-

- Parameters lower and upper can be any finite value. -

-

- The random variate - x must also be finite, and is supported lower <= x <= upper. -

-

- The lower parameter is also called the location - parameter, that - is where the origin of a plot will lie, and (upper - lower) is - also called the scale - parameter. -

-

- The following graph illustrates how the probability - density function PDF varies with the shape parameter: -

-

- -

-

- Likewise for the CDF: -

-

- -

-
- - Member - Functions -
-
uniform_distribution(RealType lower = 0, RealType upper = 1);
-
-

- Constructs a uniform - distribution with lower lower (a) and upper - upper (b). -

-

- Requires that the lower and upper - parameters are both finite; otherwise if infinity or NaN then calls domain_error. -

-
RealType lower()const;
-
-

- Returns the lower parameter of this distribution. -

-
RealType upper()const;
-
-

- Returns the upper parameter of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is any finite value, but the supported - range is only lower <= x <= upper. -

-
- - Accuracy -
-

- The uniform distribution is implemented with simple arithmetic operators - and so should have errors within an epsilon or two. -

-
- - Implementation -
-

- In the following table a is the lower parameter of - the distribution, b is the upper parameter, x - is the random variate, p is the probability and q - = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = 0 for x < a, 1 / (b - a) for a <= - x <= b, 0 for x > b -

-
-

- cdf -

-
-

- Using the relation: cdf = 0 for x < a, (x - a) / (b - a) for - a <= x <= b, 1 for x > b -

-
-

- cdf complement -

-
-

- Using the relation: q = 1 - p, (b - x) / (b - a) -

-
-

- quantile -

-
-

- Using the relation: x = p * (b - a) + a; -

-
-

- quantile from the complement -

-
-

- x = -q * (b - a) + b -

-
-

- mean -

-
-

- (a + b) / 2 -

-
-

- variance -

-
-

- (b - a) 2 / 12 -

-
-

- mode -

-
-

- any value in [a, b] but a is chosen. (Would NaN be better?) -

-
-

- skewness -

-
-

- 0 -

-
-

- kurtosis excess -

-
-

- -6/5 = -1.2 exactly. (kurtosis - 3) -

-
-

- kurtosis -

-
-

- 9/5 -

-
-
- - References -
- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/weibull_dist.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/weibull_dist.html deleted file mode 100644 index 0d3b0764..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/dists/weibull_dist.html +++ /dev/null @@ -1,369 +0,0 @@ - - - -Weibull Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/distributions/weibull.hpp>
-
namespace boost{ namespace math{
-
-template <class RealType = double,
-          class Policy   = policies::policy<> >
-class weibull_distribution;
-
-typedef weibull_distribution<> weibull;
-
-template <class RealType, class Policy>
-class weibull_distribution
-{
-public:
-   typedef RealType value_type;
-   typedef Policy   policy_type;
-   // Construct:
-   weibull_distribution(RealType shape, RealType scale = 1)
-   // Accessors:
-   RealType shape()const;
-   RealType scale()const;
-};
-
-}} // namespaces
-
-

- The Weibull - distribution is a continuous distribution with the probability - density function: -

-

- f(x; α, β) = (α/β) * (x / β)α - 1 * e-(x/β)α -

-

- For shape parameter α   > 0, and scale parameter β   > 0, and x > 0. -

-

- The Weibull distribution is often used in the field of failure analysis; - in particular it can mimic distributions where the failure rate varies - over time. If the failure rate is: -

-
    -
  • - constant over time, then α   = 1, suggests that items are failing from - random events. -
  • -
  • - decreases over time, then α   < 1, suggesting "infant mortality". -
  • -
  • - increases over time, then α   > 1, suggesting "wear out" - - more likely to fail as time goes by. -
  • -
-

- The following graph illustrates how the PDF varies with the shape parameter - α: -

-

- -

-

- While this graph illustrates how the PDF varies with the scale parameter - β: -

-

- -

-
- - Related - distributions -
-

- When α   = 3, the Weibull - distribution appears similar to the normal - distribution. When α   = 1, the Weibull distribution reduces to the - exponential - distribution. The relationship of the types of extreme value distributions, - of which the Weibull is but one, is discussed by Extreme - Value Distributions, Theory and Applications Samuel Kotz & Saralees - Nadarajah. -

-
- - Member - Functions -
-
weibull_distribution(RealType shape, RealType scale = 1);
-
-

- Constructs a Weibull - distribution with shape shape and scale scale. -

-

- Requires that the shape and scale - parameters are both greater than zero, otherwise calls domain_error. -

-
RealType shape()const;
-
-

- Returns the shape parameter of this distribution. -

-
RealType scale()const;
-
-

- Returns the scale parameter of this distribution. -

-
- - Non-member - Accessors -
-

- All the usual non-member accessor - functions that are generic to all distributions are supported: - Cumulative Distribution Function, - Probability Density Function, - Quantile, Hazard Function, Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -

-

- The domain of the random variable is [0, ∞]. -

-
- - Accuracy -
-

- The Weibull distribution is implemented in terms of the standard library - log and exp - functions plus expm1 and - log1p and as such should - have very low error rates. -

-
- - Implementation -
-

- In the following table α   is the shape parameter of the distribution, β   is its - scale parameter, x is the random variate, p - is the probability and q = 1-p. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Implementation Notes -

-
-

- pdf -

-
-

- Using the relation: pdf = αβ-α xα - 1 e-(x/beta)alpha -

-
-

- cdf -

-
-

- Using the relation: p = -expm1(-(x/β)α) -

-
-

- cdf complement -

-
-

- Using the relation: q = e-(x/β)α -

-
-

- quantile -

-
-

- Using the relation: x = β * (-log1p(-p))1/α -

-
-

- quantile from the complement -

-
-

- Using the relation: x = β * (-log(q))1/α -

-
-

- mean -

-
-

- β * Γ(1 + 1/α) -

-
-

- variance -

-
-

- β2(Γ(1 + 2/α) - Γ2(1 + 1/α)) -

-
-

- mode -

-
-

- β((α - 1) / α)1/α -

-
-

- skewness -

-
-

- Refer to Weisstein, - Eric W. "Weibull Distribution." From MathWorld--A Wolfram - Web Resource. -

-
-

- kurtosis -

-
-

- Refer to Weisstein, - Eric W. "Weibull Distribution." From MathWorld--A Wolfram - Web Resource. -

-
-

- kurtosis excess -

-
-

- Refer to Weisstein, - Eric W. "Weibull Distribution." From MathWorld--A Wolfram - Web Resource. -

-
-
- - References -
- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/dist_ref/nmp.html b/boost/libs/math/doc/html/math_toolkit/dist_ref/nmp.html deleted file mode 100644 index b199263c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/dist_ref/nmp.html +++ /dev/null @@ -1,706 +0,0 @@ - - - -Non-Member Properties - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Properties that are common to all distributions are accessed via non-member - getter functions: non-membership allows more of these functions to be added - over time, as the need arises. Unfortunately the literature uses many different - and confusing names to refer to a rather small number of actual concepts; - refer to the concept - index to find the property you want by the name you are most familiar - with. Or use the function - index to go straight to the function you want if you already know - its name. -

-
- - Function - Index -
- -
- - Conceptual - Index -
- -
- - Cumulative - Distribution Function -
-
template <class RealType, class Policy>
-RealType cdf(const Distribution-Type<RealType, Policy>& dist, const RealType& x);
-
-

- The Cumulative Distribution - Function is the probability that the variable takes a value less than - or equal to x. It is equivalent to the integral from -infinity to x of the - Probability Density Function. -

-

- This function may return a domain_error - if the random variable is outside the defined range for the distribution. -

-

- For example, the following graph shows the cdf for the normal distribution: -

-

- -

-
- - Complement - of the Cumulative Distribution Function -
-
template <class Distribution, class RealType>
-RealType cdf(const Unspecified-Complement-Type<Distribution, RealType>& comp);
-
-

- The complement of the Cumulative - Distribution Function is the probability that the variable takes a - value greater than x. It is equivalent to the integral from x to infinity - of the Probability Density - Function, or 1 minus the Cumulative - Distribution Function of x. -

-

- This is also known as the survival function. -

-

- This function may return a domain_error - if the random variable is outside the defined range for the distribution. -

-

- In this library, it is obtained by wrapping the arguments to the cdf function in a call to complement, for example: -

-
// standard normal distribution object:
-boost::math::normal norm;
-// print survival function for x=2.0:
-std::cout << cdf(complement(norm, 2.0)) << std::endl;
-
-

- For example, the following graph shows the __complement of the cdf for the - normal distribution: -

-

- -

-

- See why complements? for why the complement - is useful and when it should be used. -

-
- - Hazard - Function -
-
template <class RealType, class Policy>
-RealType hazard(const Distribution-Type<RealType, Policy>& dist, const RealType& x);
-
-

- Returns the Hazard Function - of x and distibution dist. -

-

- This function may return a domain_error - if the random variable is outside the defined range for the distribution. -

-

- -

-
- - - - - -
[Caution]Caution

- Some authors refer to this as the conditional failure density function - rather than the hazard function. -

-
- - Cumulative - Hazard Function -
-
template <class RealType, class Policy>
-RealType chf(const Distribution-Type<RealType, Policy>& dist, const RealType& x);
-
-

- Returns the Cumulative Hazard - Function of x and distibution dist. -

-

- This function may return a domain_error - if the random variable is outside the defined range for the distribution. -

-

- -

-
- - - - - -
[Caution]Caution

- Some authors refer to this as simply the "Hazard Function". -

-
- - mean -
-
template<class RealType, class Policy>
-RealType mean(const Distribution-Type<RealType, Policy>& dist);
-
-

- Returns the mean of the distribution dist. -

-

- This function may return a domain_error - if the distribution does not have a defined mean (for example the Cauchy - distribution). -

-
- - median -
-
template<class RealType, class Policy>
-RealType median(const Distribution-Type<RealType, Policy>& dist);
-
-

- Returns the median of the distribution dist. -

-
- - mode -
-
template<class RealType, Policy>
-RealType mode(const Distribution-Type<RealType, Policy>& dist);
-
-

- Returns the mode of the distribution dist. -

-

- This function may return a domain_error - if the distribution does not have a defined mode. -

-
- - Probability - Density Function -
-
template <class RealType, class Policy>
-RealType pdf(const Distribution-Type<RealType, Policy>& dist, const RealType& x);
-
-

- For a continuous function, the probability density function (pdf) returns - the probability that the variate has the value x. Since for continuous distributions - the probability at a single point is actually zero, the probability is better - expressed as the integral of the pdf between two points: see the Cumulative - Distribution Function. -

-

- For a discrete distribution, the pdf is the probability that the variate - takes the value x. -

-

- This function may return a domain_error - if the random variable is outside the defined range for the distribution. -

-

- For example, for a standard normal distribution the pdf looks like this: -

-

- -

-
- - Range -
-
template<class RealType, class Policy>
-std::pair<RealType, RealType> range(const Distribution-Type<RealType, Policy>& dist);
-
-

- Returns the valid range of the random variable over distribution dist. -

-
- - Quantile -
-
template <class RealType, class Policy>
-RealType quantile(const Distribution-Type<RealType, Policy>& dist, const RealType& p);
-
-

- The quantile is best viewed as the inverse of the Cumulative - Distribution Function, it returns a value x such - that cdf(dist, x) == - p. -

-

- This is also known as the percent point function, or - percentile, or fractile, it is - also the same as calculating the lower critical value - of a distribution. -

-

- This function returns a domain_error - if the probability lies outside [0,1]. The function may return an overflow_error - if there is no finite value that has the specified probability. -

-

- The following graph shows the quantile function for a standard normal distribution: -

-

- -

-
- - Quantile - from the complement of the probability. -
-

- See also complements. -

-
template <class Distribution, class RealType>
-RealType quantile(const Unspecified-Complement-Type<Distribution, RealType>& comp);
-
-

- This is the inverse of the Complement - of the Cumulative Distribution Function. It is calculated by wrapping - the arguments in a call to the quantile function in a call to complement. - For example: -

-
// define a standard normal distribution:
-boost::math::normal norm;
-// print the value of x for which the complement
-// of the probability is 0.05:
-std::cout << quantile(complement(norm, 0.05)) << std::endl;
-
-

- The function computes a value x such that cdf(complement(dist, - x)) == q where - q is complement of the probability. -

-

- Why complements? -

-

- This function is also called the inverse survival function, and is the same - as calculating the upper critical value of a distribution. -

-

- This function returns a domain_error - if the probablity lies outside [0,1]. The function may return an overflow_error - if there is no finite value that has the specified probability. -

-

- The following graph show the inverse survival function for the normal distribution: -

-

- -

-
- - Standard - Deviation -
-
template <class RealType, class Policy>
-RealType standard_deviation(const Distribution-Type<RealType, Policy>& dist);
-
-

- Returns the standard deviation of distribution dist. -

-

- This function may return a domain_error - if the distribution does not have a defined standard deviation. -

-
- - support -
-
template<class RealType, class Policy>
-std::pair<RealType, RealType> support(const Distribution-Type<RealType, Policy>& dist);
-
-

- Returns the supported range of random variable over the distribution dist. -

-

- The distribution is said to be 'supported' over a range that is "the - smallest closed set whose complement has probability zero". - Non-mathematicians might say it means the 'interesting' smallest range of - random variate x that has the cdf going from zero to unity. Outside are uninteresting - zones where the pdf is zero, and the cdf zero or unity. -

-
- - Variance -
-
template <class RealType, class Policy>
-RealType variance(const Distribution-Type<RealType, Policy>& dist);
-
-

- Returns the variance of the distribution dist. -

-

- This function may return a domain_error - if the distribution does not have a defined variance. -

-
- - Skewness -
-
template <class RealType, class Policy>
-RealType skewness(const Distribution-Type<RealType, Policy>& dist);
-
-

- Returns the skewness of the distribution dist. -

-

- This function may return a domain_error - if the distribution does not have a defined skewness. -

-
- - Kurtosis -
-
template <class RealType, class Policy>
-RealType kurtosis(const Distribution-Type<RealType, Policy>& dist);
-
-

- Returns the 'proper' kurtosis (normalized fourth moment) of the distribution - dist. -

-

- kertosis = β2  = μ4   / μ22 -

-

- Where μi   is the i'th central moment of the distribution, and in particular - μ2   is the variance of the distribution. -

-

- The kurtosis is a measure of the "peakedness" of a distribution. -

-

- Note that the literature definition of kurtosis is confusing. The definition - used here is that used by for example Wolfram - MathWorld (that includes a table of formulae for kurtosis excess - for various distributions) but NOT the definition of kurtosis - used by Wikipedia which treats "kurtosis" and "kurtosis - excess" as the same quantity. -

-
kurtosis_excess = 'proper' kurtosis - 3
-
-

- This subtraction of 3 is convenient so that the kurtosis excess - of a normal distribution is zero. -

-

- This function may return a domain_error - if the distribution does not have a defined kurtosis. -

-

- 'Proper' kurtosis can have a value from zero to + infinity. -

-
- - Kurtosis - excess -
-
template <class RealType, Policy>
-RealType kurtosis_excess(const Distribution-Type<RealType, Policy>& dist);
-
-

- Returns the kurtosis excess of the distribution dist. -

-

- kurtosis excess = γ2  = μ4   / μ22  - 3 = kurtosis - 3 -

-

- Where μi   is the i'th central moment of the distribution, and in particular - μ2   is the variance of the distribution. -

-

- The kurtosis excess is a measure of the "peakedness" of a distribution, - and is more widely used than the "kurtosis proper". It is defined - so that the kurtosis excess of a normal distribution is zero. -

-

- This function may return a domain_error - if the distribution does not have a defined kurtosis excess. -

-

- Kurtosis excess can have a value from -2 to + infinity. -

-
kurtosis = kurtosis_excess +3;
-
-

- The kurtosis excess of a normal distribution is zero. -

-
- - P - and Q -
-

- The terms P and Q are sometimes used to refer to the Cumulative - Distribution Function and its complement - respectively. Lowercase p and q are sometimes used to refer to the values - returned by these functions. -

-
- - Percent - Point Function or Percentile -
-

- The percent point function, also known as the percentile, is the same as - the Quantile. -

-
- - Inverse - CDF Function. -
-

- The inverse of the cumulative distribution function, is the same as the - Quantile. -

-
- - Inverse - Survival Function. -
-

- The inverse of the survival function, is the same as computing the quantile from the complement - of the probability. -

-
- - Probability - Mass Function -
-

- The Probability Mass Function is the same as the Probability - Density Function. -

-

- The term Mass Function is usually applied to discrete distributions, while - the term Probability Density - Function applies to continuous distributions. -

-
- - Lower - Critical Value. -
-

- The lower critical value calculates the value of the random variable given - the area under the left tail of the distribution. It is equivalent to calculating - the Quantile. -

-
- - Upper - Critical Value. -
-

- The upper critical value calculates the value of the random variable given - the area under the right tail of the distribution. It is equivalent to calculating - the quantile from the - complement of the probability. -

-
- - Survival - Function -
-

- Refer to the Complement of - the Cumulative Distribution Function. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/ellint.html b/boost/libs/math/doc/html/math_toolkit/ellint.html deleted file mode 100644 index dbdf7d38..00000000 --- a/boost/libs/math/doc/html/math_toolkit/ellint.html +++ /dev/null @@ -1,61 +0,0 @@ - - - -Elliptic Integrals - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_1.html b/boost/libs/math/doc/html/math_toolkit/ellint/ellint_1.html deleted file mode 100644 index 3f10da2d..00000000 --- a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_1.html +++ /dev/null @@ -1,268 +0,0 @@ - - - -Elliptic Integrals of the First Kind - Legendre Form - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/ellint_1.hpp>
-
-
namespace boost { namespace math {
-
-template <class T1, class T2>
-calculated-result-type ellint_1(T1 k, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type ellint_1(T1 k, T2 phi, const Policy&);
-
-template <class T>
-calculated-result-type ellint_1(T k);
-
-template <class T, class Policy>
-calculated-result-type ellint_1(T k, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- These two functions evaluate the incomplete elliptic integral of the first - kind F(φ, k) and its complete counterpart K(k) - = F(π/2, k). -

-

- -

-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types: - when they are the same type then the result is the same type as the arguments. -

-
template <class T1, class T2>
-calculated-result-type ellint_1(T1 k, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type ellint_1(T1 k, T2 phi, const Policy&);
-
-

- Returns the incomplete elliptic integral of the first kind F(φ, - k): -

-

- -

-

- Requires -1 <= k <= 1, otherwise returns the result of domain_error. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T>
-calculated-result-type ellint_1(T k);
-
-template <class T>
-calculated-result-type ellint_1(T k, const Policy&);
-
-

- Returns the complete elliptic integral of the first kind K(k): -

-

- -

-

- Requires -1 <= k <= 1, otherwise returns the result of domain_error. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Accuracy -
-

- These functions are computed using only basic arithmetic operations, so there - isn't much variation in accuracy over differing platforms. Note that only - results for the widest floating point type on the system are given as narrower - types have effectively - zero error. All values are relative errors in units of epsilon. -

-
-

Table 6.63. Error rates for ellint_1

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral F: Mathworld Data -

-
-

- Max = 0.919ε (Mean = 0.542ε) -

-
-

- Max = 0.94ε (Mean = 0.509ε)

- (<tr1/cmath>: Max - = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.919ε (Mean = 0.544ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 0.94ε (Mean = 0.509ε) -

-
-

- Elliptic Integral F: Random Data -

-
-

- Max = 2.26ε (Mean = 0.631ε) -

-
-

- Max = 1.57ε (Mean = 0.56ε)

- (<tr1/cmath>: Max = 2.56ε (Mean = 0.816ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.99ε (Mean = 0.797ε))
(Cephes: - Max = 2.18ε (Mean = 0.535ε)) -

-
-

- Max = 1.57ε (Mean = 0.561ε) -

-
-
-
- - Testing -
-

- The tests use a mixture of spot test values calculated using the online calculator - at functions.wolfram.com, - and random test data generated using NTL::RR at 1000-bit precision and this - implementation. -

-
- - Implementation -
-

- These functions are implemented in terms of Carlson's integrals using the - relations: -

-

- -

-

- and -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_2.html b/boost/libs/math/doc/html/math_toolkit/ellint/ellint_2.html deleted file mode 100644 index 85451b36..00000000 --- a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_2.html +++ /dev/null @@ -1,269 +0,0 @@ - - - -Elliptic Integrals of the Second Kind - Legendre Form - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/ellint_2.hpp>
-
-
namespace boost { namespace math {
-
-template <class T1, class T2>
-calculated-result-type ellint_2(T1 k, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type ellint_2(T1 k, T2 phi, const Policy&);
-
-template <class T>
-calculated-result-type ellint_2(T k);
-
-template <class T, class Policy>
-calculated-result-type ellint_2(T k, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- These two functions evaluate the incomplete elliptic integral of the second - kind E(φ, k) and its complete counterpart E(k) - = E(π/2, k). -

-

- -

-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types: - when they are the same type then the result is the same type as the arguments. -

-
template <class T1, class T2>
-calculated-result-type ellint_2(T1 k, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type ellint_2(T1 k, T2 phi, const Policy&);
-
-

- Returns the incomplete elliptic integral of the second kind E(φ, - k): -

-

- -

-

- Requires -1 <= k <= 1, otherwise returns the result of domain_error. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T>
-calculated-result-type ellint_2(T k);
-
-template <class T>
-calculated-result-type ellint_2(T k, const Policy&);
-
-

- Returns the complete elliptic integral of the second kind E(k): -

-

- -

-

- Requires -1 <= k <= 1, otherwise returns the result of domain_error. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Accuracy -
-

- These functions are computed using only basic arithmetic operations, so there - isn't much variation in accuracy over differing platforms. Note that only - results for the widest floating point type on the system are given as narrower - types have effectively - zero error. All values are relative errors in units of epsilon. -

-
-

Table 6.64. Error rates for ellint_2

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral E: Mathworld Data -

-
-

- Max = 1.31ε (Mean = 0.727ε) -

-
-

- Max = 0.656ε (Mean = 0.317ε)

- (<tr1/cmath>: Max - = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.63ε (Mean = 0.325ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 0.656ε (Mean = 0.317ε) -

-
-

- Elliptic Integral E: Random Data -

-
-

- Max = 2.23ε (Mean = 0.639ε) -

-
-

- Max = 2.05ε (Mean = 0.632ε)

- (<tr1/cmath>: Max = 3.08e+04ε (Mean = - 3.84e+03ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.4ε (Mean = 1.16ε))
(Cephes: - Max = 8.92ε (Mean = 1.48ε)) -

-
-

- Max = 2.05ε (Mean = 0.632ε) -

-
-
-
- - Testing -
-

- The tests use a mixture of spot test values calculated using the online calculator - at functions.wolfram.com, - and random test data generated using NTL::RR at 1000-bit precision and this - implementation. -

-
- - Implementation -
-

- These functions are implemented in terms of Carlson's integrals using the - relations: -

-

- -

-

- and -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_3.html b/boost/libs/math/doc/html/math_toolkit/ellint/ellint_3.html deleted file mode 100644 index 33c45f7a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_3.html +++ /dev/null @@ -1,352 +0,0 @@ - - - -Elliptic Integrals of the Third Kind - Legendre Form - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/ellint_3.hpp>
-
-
namespace boost { namespace math {
-
-template <class T1, class T2, class T3>
-calculated-result-type ellint_3(T1 k, T2 n, T3 phi);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ellint_3(T1 k, T2 n, T3 phi, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type ellint_3(T1 k, T2 n);
-
-template <class T1, class T2, class Policy>
-calculated-result-type ellint_3(T1 k, T2 n, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- These two functions evaluate the incomplete elliptic integral of the third - kind Π(n, φ, k) and its complete counterpart Π(n, - k) = E(n, π/2, k). -

-

- -

-

- The return type of these functions is computed using the result - type calculation rules when the arguments are of different - types: when they are the same type then the result is the same type as the - arguments. -

-
template <class T1, class T2, class T3>
-calculated-result-type ellint_3(T1 k, T2 n, T3 phi);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ellint_3(T1 k, T2 n, T3 phi, const Policy&);
-
-

- Returns the incomplete elliptic integral of the third kind Π(n, - φ, k): -

-

- -

-

- Requires -1 <= k <= 1 and n < 1/sin2(φ), - otherwise returns the result of domain_error - (outside this range the result would be complex). -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T1, class T2>
-calculated-result-type ellint_3(T1 k, T2 n);
-
-template <class T1, class T2, class Policy>
-calculated-result-type ellint_3(T1 k, T2 n, const Policy&);
-
-

- Returns the complete elliptic integral of the first kind Π(n, k): -

-

- -

-

- Requires -1 <= k <= 1 and n < 1, - otherwise returns the result of domain_error - (outside this range the result would be complex). -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Accuracy -
-

- These functions are computed using only basic arithmetic operations, so there - isn't much variation in accuracy over differing platforms. Note that only - results for the widest floating point type on the system are given as narrower - types have effectively - zero error. All values are relative errors in units of epsilon. -

-
-

Table 6.65. Error rates for ellint_3

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral PI: Mathworld Data -

-
-

- Max = 565ε (Mean = 102ε) -

-
-

- Max = 475ε (Mean = 86.3ε)

- (<tr1/cmath>: Max - = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.48e+05ε (Mean = 2.54e+04ε) And - other failures.) -

-
-

- Max = 475ε (Mean = 86.3ε) -

-
-

- Elliptic Integral PI: Random Data -

-
-

- Max = 9.08ε (Mean = 0.99ε) -

-
-

- Max = 4.54ε (Mean = 0.895ε)

- (<tr1/cmath>: Max - = 3.37e+20ε (Mean = 3.47e+19ε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 633ε (Mean = 50.1ε)) -

-
-

- Max = 4.49ε (Mean = 0.891ε) -

-
-

- Elliptic Integral PI: Large Random Data -

-
-

- Max = 2.86ε (Mean = 0.944ε) -

-
-

- Max = 3.7ε (Mean = 0.893ε)

- (<tr1/cmath>: Max - = 2.52e+18ε (Mean = 4.83e+17ε) And - other failures.) -

-
-

- Max = 0.557ε (Mean = 0.0389ε)
-
(GSL 1.16: Max = 40.1ε (Mean = 7.77ε)) -

-
-

- Max = 3.7ε (Mean = 0.892ε) -

-
-
-
- - Testing -
-

- The tests use a mixture of spot test values calculated using the online calculator - at functions.wolfram.com, - and random test data generated using NTL::RR at 1000-bit precision and this - implementation. -

-
- - Implementation -
-

- The implementation for Π(n, φ, k) first siphons off the special cases: -

-

- Π(0, φ, k) = F(φ, k) -

-

- Π(n, π/2, k) = Π(n, k) -

-

- and -

-

- -

-

- Then if n < 0 the relations (A&S 17.7.15/16): -

-

- -

-

- are used to shift n to the range [0, 1]. -

-

- Then the relations: -

-

- Π(n, -φ, k) = -Π(n, φ, k) -

-

- Π(n, φ+mπ, k) = Π(n, φ, k) + 2mΠ(n, k) ; n <= 1 -

-

- Π(n, φ+mπ, k) = Π(n, φ, k) ; n > 1 [1] -

-

- are used to move φ   to the range [0, π/2]. -

-

- The functions are then implemented in terms of Carlson's integrals using - the relations: -

-

- -

-

- and -

-

- -

-
-

-

[1] - I haven't been able to find a literature reference for this relation, but - it appears to be the convention used by Mathematica. Intuitively the first - 2 * m * Π(n, k) terms cancel out as the derivative - alternates between +∞ and -∞. -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_carlson.html b/boost/libs/math/doc/html/math_toolkit/ellint/ellint_carlson.html deleted file mode 100644 index e6ee2a00..00000000 --- a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_carlson.html +++ /dev/null @@ -1,1128 +0,0 @@ - - - -Elliptic Integrals - Carlson Form - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/ellint_rf.hpp>
-
-
namespace boost { namespace math {
-
-template <class T1, class T2, class T3>
-calculated-result-type ellint_rf(T1 x, T2 y, T3 z)
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ellint_rf(T1 x, T2 y, T3 z, const Policy&)
-
-}} // namespaces
-
-
#include <boost/math/special_functions/ellint_rd.hpp>
-
-
namespace boost { namespace math {
-
-template <class T1, class T2, class T3>
-calculated-result-type ellint_rd(T1 x, T2 y, T3 z)
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ellint_rd(T1 x, T2 y, T3 z, const Policy&)
-
-}} // namespaces
-
-
#include <boost/math/special_functions/ellint_rj.hpp>
-
-
namespace boost { namespace math {
-
-template <class T1, class T2, class T3, class T4>
-calculated-result-type ellint_rj(T1 x, T2 y, T3 z, T4 p)
-
-template <class T1, class T2, class T3, class T4, class Policy>
-calculated-result-type ellint_rj(T1 x, T2 y, T3 z, T4 p, const Policy&)
-
-}} // namespaces
-
-
#include <boost/math/special_functions/ellint_rc.hpp>
-
-
namespace boost { namespace math {
-
-template <class T1, class T2>
-calculated-result-type ellint_rc(T1 x, T2 y)
-
-template <class T1, class T2, class Policy>
-calculated-result-type ellint_rc(T1 x, T2 y, const Policy&)
-
-}} // namespaces
-
-
#include <boost/math/special_functions/ellint_rg.hpp>
-
-
namespace boost { namespace math {
-
-template <class T1, class T2, class T3>
-calculated-result-type ellint_rg(T1 x, T2 y, T3 z)
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ellint_rg(T1 x, T2 y, T3 z, const Policy&)
-
-}} // namespaces
-
-
- - Description -
-

- These functions return Carlson's symmetrical elliptic integrals, the functions - have complicated behavior over all their possible domains, but the following - graph gives an idea of their behavior: -

-

- -

-

- The return type of these functions is computed using the result - type calculation rules when the arguments are of different - types: otherwise the return is the same type as the arguments. -

-
template <class T1, class T2, class T3>
-calculated-result-type ellint_rf(T1 x, T2 y, T3 z)
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ellint_rf(T1 x, T2 y, T3 z, const Policy&)
-
-

- Returns Carlson's Elliptic Integral RF: -

-

- -

-

- Requires that all of the arguments are non-negative, and at most one may - be zero. Otherwise returns the result of domain_error. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T1, class T2, class T3>
-calculated-result-type ellint_rd(T1 x, T2 y, T3 z)
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ellint_rd(T1 x, T2 y, T3 z, const Policy&)
-
-

- Returns Carlson's elliptic integral RD: -

-

- -

-

- Requires that x and y are non-negative, with at most one of them zero, and - that z >= 0. Otherwise returns the result of domain_error. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T1, class T2, class T3, class T4>
-calculated-result-type ellint_rj(T1 x, T2 y, T3 z, T4 p)
-
-template <class T1, class T2, class T3, class T4, class Policy>
-calculated-result-type ellint_rj(T1 x, T2 y, T3 z, T4 p, const Policy&)
-
-

- Returns Carlson's elliptic integral RJ: -

-

- -

-

- Requires that x, y and z are non-negative, with at most one of them zero, - and that p != 0. Otherwise returns the result of domain_error. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- When p < 0 the function returns the Cauchy - principal value using the relation: -

-

- -

-
template <class T1, class T2>
-calculated-result-type ellint_rc(T1 x, T2 y)
-
-template <class T1, class T2, class Policy>
-calculated-result-type ellint_rc(T1 x, T2 y, const Policy&)
-
-

- Returns Carlson's elliptic integral RC: -

-

- -

-

- Requires that x > 0 and that y != 0. - Otherwise returns the result of domain_error. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- When y < 0 the function returns the Cauchy - principal value using the relation: -

-

- -

-
template <class T1, class T2, class T3>
-calculated-result-type ellint_rg(T1 x, T2 y, T3 z)
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ellint_rg(T1 x, T2 y, T3 z, const Policy&)
-
-

- Returns Carlson's elliptic integral RG: -

-

- -

-

- Requires that x and y are non-negative, otherwise returns the result of - domain_error. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Testing -
-

- There are two sets of tests. -

-

- Spot tests compare selected values with test data given in: -

-

- B. C. Carlson, Numerical - computation of real or complex elliptic integrals. Numerical - Algorithms, Volume 10, Number 1 / March, 1995, pp 13-26. -

-

- Random test data generated using NTL::RR at 1000-bit precision and our implementation - checks for rounding-errors and/or regressions. -

-

- There are also sanity checks that use the inter-relations between the integrals - to verify their correctness: see the above Carlson paper for details. -

-
- - Accuracy -
-

- These functions are computed using only basic arithmetic operations, so there - isn't much variation in accuracy over differing platforms. Note that only - results for the widest floating-point type on the system are given as narrower - types have effectively - zero error. All values are relative errors in units of epsilon. -

-
-

Table 6.58. Error rates for ellint_rc

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- RC: Random data -

-
-

- Max = 0.962ε (Mean = 0.407ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.4ε (Mean = 0.624ε)) -

-
-

- Max = 0.995ε (Mean = 0.433ε) -

-
-

- Max = 0.995ε (Mean = 0.438ε) -

-
-
-
-

Table 6.59. Error rates for ellint_rd

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- RD: Random data -

-
-

- Max = 2.16ε (Mean = 0.803ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.59ε (Mean = 0.878ε)) -

-
-

- Max = 2.73ε (Mean = 0.831ε) -

-
-

- Max = 2.73ε (Mean = 0.829ε) -

-
-

- RD: y = z -

-
-

- Max = 16.5ε (Mean = 0.843ε) -

-
-

- Max = 0.896ε (Mean = 0.022ε)

- (GSL 1.16: Max = 2.88ε (Mean = 0.839ε)) -

-
-

- Max = 2.65ε (Mean = 0.82ε) -

-
-

- Max = 2.65ε (Mean = 0.819ε) -

-
-

- RD: x = y -

-
-

- Max = 3.51ε (Mean = 0.816ε) -

-
-

- Max = 0.824ε (Mean = 0.0272ε)
-
(GSL 1.16: Max = 3.74ε (Mean = 0.84ε)) -

-
-

- Max = 2.85ε (Mean = 0.865ε) -

-
-

- Max = 2.85ε (Mean = 0.865ε) -

-
-

- RD: x = 0, y = z -

-
-

- Max = 1.16ε (Mean = 0.493ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2ε (Mean = 0.656ε)) -

-
-

- Max = 1.19ε (Mean = 0.522ε) -

-
-

- Max = 1.19ε (Mean = 0.522ε) -

-
-

- RD: x = y = z -

-
-

- Max = 1.03ε (Mean = 0.418ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.03ε (Mean = 0.418ε)) -

-
-

- Max = 0.998ε (Mean = 0.387ε) -

-
-

- Max = 0.998ε (Mean = 0.387ε) -

-
-

- RD: x = 0 -

-
-

- Max = 2.64ε (Mean = 0.894ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.85ε (Mean = 0.781ε)) -

-
-

- Max = 2.79ε (Mean = 0.883ε) -

-
-

- Max = 2.79ε (Mean = 0.883ε) -

-
-
-
-

Table 6.60. Error rates for ellint_rg

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- RG: Random Data -

-
-

- Max = 3.65ε (Mean = 0.929ε) -

-
-

- Max = 0.983ε (Mean = 0.0172ε)
-
(GSL 1.16: Max = 0.983ε (Mean = 0.0172ε)) -

-
-

- Max = 3.95ε (Mean = 0.951ε) -

-
-

- Max = 3.95ε (Mean = 0.951ε) -

-
-

- RG: two values 0 -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- RG: All values the same or zero -

-
-

- Max = 1.06ε (Mean = 0.348ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0.992ε (Mean = 0.288ε) -

-
-

- Max = 0.992ε (Mean = 0.288ε) -

-
-

- RG: two values the same -

-
-

- Max = 1.96ε (Mean = 0.374ε) -

-
-

- Max = 0.594ε (Mean = 0.0103ε)
-
(GSL 1.16: Max = 0.594ε (Mean = 0.0103ε)) -

-
-

- Max = 1.51ε (Mean = 0.404ε) -

-
-

- Max = 1.51ε (Mean = 0.404ε) -

-
-

- RG: one value zero -

-
-

- Max = 1.96ε (Mean = 0.674ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 2.14ε (Mean = 0.722ε) -

-
-

- Max = 2.14ε (Mean = 0.722ε) -

-
-
-
-

Table 6.61. Error rates for ellint_rf

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- RF: Random data -

-
-

- Max = 2.02ε (Mean = 0.677ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.73ε (Mean = 0.804ε)) -

-
-

- Max = 2.54ε (Mean = 0.674ε) -

-
-

- Max = 2.54ε (Mean = 0.674ε) -

-
-

- RF: x = y = z -

-
-

- Max = 0.999ε (Mean = 0.335ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.999ε (Mean = 0.34ε)) -

-
-

- Max = 0.991ε (Mean = 0.345ε) -

-
-

- Max = 0.991ε (Mean = 0.345ε) -

-
-

- RF: x = y or y = z or x = z -

-
-

- Max = 1.21ε (Mean = 0.394ε) -

-
-

- Max = 0.536ε (Mean = 0.00658ε)
-
(GSL 1.16: Max = 2.89ε (Mean = 0.749ε)) -

-
-

- Max = 1.95ε (Mean = 0.418ε) -

-
-

- Max = 1.57ε (Mean = 0.418ε) -

-
-

- RF: x = 0, y = z -

-
-

- Max = 0.999ε (Mean = 0.407ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.29ε (Mean = 0.527ε)) -

-
-

- Max = 0.894ε (Mean = 0.338ε) -

-
-

- Max = 0.894ε (Mean = 0.338ε) -

-
-

- RF: z = 0 -

-
-

- Max = 1.89ε (Mean = 0.587ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.54ε (Mean = 0.781ε)) -

-
-

- Max = 1.7ε (Mean = 0.539ε) -

-
-

- Max = 1.7ε (Mean = 0.539ε) -

-
-
-
-

Table 6.62. Error rates for ellint_rj

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- RJ: Random data -

-
-

- Max = 119ε (Mean = 4.32ε) -

-
-

- Max = 0.52ε (Mean = 0.0184ε)

- (GSL 1.16: Max = 3.57ε (Mean = 0.704ε) And - other failures.) -

-
-

- Max = 186ε (Mean = 6.67ε) -

-
-

- Max = 186ε (Mean = 6.7ε) -

-
-

- RJ: 4 Equal Values -

-
-

- Max = 1.03ε (Mean = 0.418ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.03ε (Mean = 0.418ε)) -

-
-

- Max = 0.998ε (Mean = 0.387ε) -

-
-

- Max = 0.998ε (Mean = 0.387ε) -

-
-

- RJ: 3 Equal Values -

-
-

- Max = 39.9ε (Mean = 1.12ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.96ε (Mean = 1.06ε)) -

-
-

- Max = 20.8ε (Mean = 0.986ε) -

-
-

- Max = 18.2ε (Mean = 0.917ε) -

-
-

- RJ: 2 Equal Values -

-
-

- Max = 214ε (Mean = 5.05ε) -

-
-

- Max = 0.6ε (Mean = 0.0228ε)

- (GSL 1.16: Max = 2.57ε (Mean = 0.754ε)) -

-
-

- Max = 220ε (Mean = 6.64ε) -

-
-

- Max = 135ε (Mean = 5.3ε) -

-
-

- RJ: Equal z and p -

-
-

- Max = 15.4ε (Mean = 1.05ε) -

-
-

- Max = 0.742ε (Mean = 0.0166ε)
-
(GSL 1.16: Max = 2.62ε (Mean = 0.699ε)) -

-
-

- Max = 17.2ε (Mean = 1.16ε) -

-
-

- Max = 16.6ε (Mean = 1.15ε) -

-
-
-
- - Implementation -
-

- The key of Carlson's algorithm [Carlson79] - is the duplication theorem: -

-

- -

-

- By applying it repeatedly, x, y, - z get closer and closer. When they are nearly equal, - the special case equation -

-

- -

-

- is used. More specifically, [R F] is evaluated from - a Taylor series expansion to the fifth order. The calculations of the other - three integrals are analogous, except for RC which can be computed from elementary - functions. -

-

- For p < 0 in RJ(x, y, z, p) - and y < 0 in RC(x, y), the integrals - are singular and their Cauchy - principal values are returned via the relations: -

-

- -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_d.html b/boost/libs/math/doc/html/math_toolkit/ellint/ellint_d.html deleted file mode 100644 index 0a8bd939..00000000 --- a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_d.html +++ /dev/null @@ -1,360 +0,0 @@ - - - -Elliptic Integral D - Legendre Form - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/ellint_d.hpp>
-
-
namespace boost { namespace math {
-
-template <class T1, class T2>
-calculated-result-type ellint_d(T1 k, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type ellint_d(T1 k, T2 phi, const Policy&);
-
-template <class T1>
-calculated-result-type ellint_d(T1 k);
-
-template <class T1, class Policy>
-calculated-result-type ellint_d(T1 k, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- These two functions evaluate the incomplete elliptic integral D(φ, - k) and its complete counterpart D(k) = D(π/2, k). -

-

- The return type of these functions is computed using the __arg_pomotion_rules - when the arguments are of different types: when they are the same type then - the result is the same type as the arguments. -

-
template <class T1, class T2>
-calculated-result-type ellint_d(T1 k, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type ellint_3(T1 k, T2 phi, const Policy&);
-
-

- Returns the incomplete elliptic integral: -

-

- -

-

- Requires -1 <= k <= 1, otherwise returns the result - of domain_error - (outside this range the result would be complex). -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T1>
-calculated-result-type ellint_d(T1 k);
-
-template <class T1, class Policy>
-calculated-result-type ellint_d(T1 k, const Policy&);
-
-

- Returns the complete elliptic integral D(k) = D(π/2, k) -

-

- Requires -1 <= k <= 1 otherwise returns the result - of domain_error - (outside this range the result would be complex). -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Accuracy -
-

- These functions are trivially computed in terms of other elliptic integrals - and generally have very low error rates (a few epsilon) unless parameter - φ -is very large, in which case the usual trigonometric function argument-reduction - issues apply. -

-
-

Table 6.66. Error rates for ellint_d (complete)

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral E: Mathworld Data -

-
-

- Max = 0.637ε (Mean = 0.368ε) -

-
-

- Max = 0.637ε (Mean = 0.368ε) -

-
-

- Max = 1.27ε (Mean = 0.735ε) -

-
-

- Max = 1.27ε (Mean = 0.735ε) -

-
-

- Elliptic Integral D: Random Data -

-
-

- Max = 1.27ε (Mean = 0.355ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.27ε (Mean = 0.334ε) -

-
-

- Max = 1.27ε (Mean = 0.334ε) -

-
-
-
-

Table 6.67. Error rates for ellint_d

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral E: Mathworld Data -

-
-

- Max = 0.862ε (Mean = 0.457ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.862ε (Mean = 0.568ε)) -

-
-

- Max = 1.3ε (Mean = 0.813ε) -

-
-

- Max = 1.3ε (Mean = 0.813ε) -

-
-

- Elliptic Integral D: Random Data -

-
-

- Max = 2.87ε (Mean = 0.805ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.01ε (Mean = 0.928ε)) -

-
-

- Max = 2.51ε (Mean = 0.883ε) -

-
-

- Max = 2.51ε (Mean = 0.883ε) -

-
-
-
- - Testing -
-

- The tests use a mixture of spot test values calculated using values calculated - at wolframalpha.com, and random test data generated using MPFR at 1000-bit - precision and a deliberately naive implementation in terms of the Legendre - integrals. -

-
- - Implementation -
-

- The implementation for D(φ, k) first performs argument reduction using the - relations: -

-

- D(-φ, k) = -D(φ, k) -

-

- and -

-

- D(nπ+φ, k) = 2nD(k) + D(φ, k) -

-

- to move φ   to the range [0, π/2]. -

-

- The functions are then implemented in terms of Carlson's integral RD -using - the relation: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_intro.html b/boost/libs/math/doc/html/math_toolkit/ellint/ellint_intro.html deleted file mode 100644 index 7c08de72..00000000 --- a/boost/libs/math/doc/html/math_toolkit/ellint/ellint_intro.html +++ /dev/null @@ -1,451 +0,0 @@ - - - -Elliptic Integral Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The main reference for the elliptic integrals is: -

-

- M. Abramowitz and I. A. Stegun (Eds.) (1964) Handbook of Mathematical Functions - with Formulas, Graphs, and Mathematical Tables, National Bureau of Standards - Applied Mathematics Series, U.S. Government Printing Office, Washington, - D.C. -

-

- Mathworld also contain a lot of useful background information: -

- -

- As does Wikipedia - Elliptic integral. -

-
- - Notation -
-

- All variables are real numbers unless otherwise noted. -

-
- - Definition -
-

- -

-

- is called elliptic integral if R(t, s) is a rational - function of t and s, and s2 - is a cubic or quartic polynomial in t. -

-

- Elliptic integrals generally can not be expressed in terms of elementary - functions. However, Legendre showed that all elliptic integrals can be reduced - to the following three canonical forms: -

-

- Elliptic Integral of the First Kind (Legendre form) -

-

- -

-

- Elliptic Integral of the Second Kind (Legendre form) -

-

- -

-

- Elliptic Integral of the Third Kind (Legendre form) -

-

- -

-

- where -

-

- -

-
- - - - - -
[Note]Note
-

- φ is called the amplitude. -

-

- k is called the modulus. -

-

- α is called the modular angle. -

-

- n is called the characteristic. -

-
-
- - - - - -
[Caution]Caution
-

- Perhaps more than any other special functions the elliptic integrals are - expressed in a variety of different ways. In particular, the final parameter - k (the modulus) may be expressed using a modular angle - α, or a parameter m. These are related by: -

-

- k = sinα -

-

- m = k2 = sin2α -

-

- So that the integral of the third kind (for example) may be expressed as - either: -

-

- Π(n, φ, k) -

-

- Π(n, φ \ α) -

-

- Π(n, φ| m) -

-

- To further complicate matters, some texts refer to the complement - of the parameter m, or 1 - m, where: -

-

- 1 - m = 1 - k2 = cos2α -

-

- This implementation uses k throughout: this matches - the requirements of the Technical - Report on C++ Library Extensions. However, you should be extra - careful when using these functions! -

-
-

- When φ = π / 2, the elliptic integrals - are called complete. -

-

- Complete Elliptic Integral of the First Kind (Legendre form) -

-

- -

-

- Complete Elliptic Integral of the Second Kind (Legendre form) -

-

- -

-

- Complete Elliptic Integral of the Third Kind (Legendre form) -

-

- -

-

- Legendre also defined a forth integral D(φ,k) which is a combination of the - other three: -

-

- -

-

- Like the other Legendre integrals this comes in both complete and incomplete - forms. -

-
- - Carlson - Elliptic Integrals -
-

- Carlson [Carlson77] [Carlson78] - gives an alternative definition of elliptic integral's canonical forms: -

-

- Carlson's Elliptic Integral of the First Kind -

-

- -

-

- where x, y, z - are nonnegative and at most one of them may be zero. -

-

- Carlson's Elliptic Integral of the Second Kind -

-

- -

-

- where x, y are nonnegative, at - most one of them may be zero, and z must be positive. -

-

- Carlson's Elliptic Integral of the Third Kind -

-

- -

-

- where x, y, z - are nonnegative, at most one of them may be zero, and p - must be nonzero. -

-

- Carlson's Degenerate Elliptic Integral -

-

- -

-

- where x is nonnegative and y is - nonzero. -

-
- - - - - -
[Note]Note
-

- RC(x, y) = RF(x, y, y) -

-

- RD(x, y, z) = RJ(x, y, z, z) -

-
-

- Carlson's Symmetric Integral -

-

- -

-
- - Duplication - Theorem -
-

- Carlson proved in [Carlson78] - that -

-

- -

-
- - Carlson's - Formulas -
-

- The Legendre form and Carlson form of elliptic integrals are related by equations: -

-

- -

-

- In particular, -

-

- -

-
- - Miscellaneous - Elliptic Integrals -
-

- There are two functions related to the elliptic integrals which otherwise - defy categorisation, these are the Jacobi Zeta function: -

-

- -

-

- and the Heuman Lambda function: -

-

- -

-

- Both of these functions are easily implemented in terms of Carlson's integrals, - and are provided in this library as jacobi_zeta - and heuman_lambda. -

-
- - Numerical - Algorithms -
-

- The conventional methods for computing elliptic integrals are Gauss and Landen - transformations, which converge quadratically and work well for elliptic - integrals of the first and second kinds. Unfortunately they suffer from loss - of significant digits for the third kind. Carlson's algorithm [Carlson79] - [Carlson78], by contrast, provides - a unified method for all three kinds of elliptic integrals with satisfactory - precisions. -

-
- - References -
-

- Special mention goes to: -

-

- A. M. Legendre, Traitd des Fonctions Elliptiques et des Integrales - Euleriennes, Vol. 1. Paris (1825). -

-

- However the main references are: -

-
    -
  1. - M. Abramowitz and I. A. Stegun (Eds.) (1964) - Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical - Tables, National Bureau of Standards Applied Mathematics Series, U.S. - Government Printing Office, Washington, D.C. -
  2. -
  3. - B.C. Carlson, Computing - elliptic integrals by duplication, Numerische Mathematik, - vol 33, 1 (1979). -
  4. -
  5. - B.C. Carlson, Elliptic Integrals - of the First Kind, SIAM Journal on Mathematical Analysis, - vol 8, 231 (1977). -
  6. -
  7. - B.C. Carlson, Short Proofs - of Three Theorems on Elliptic Integrals, SIAM Journal on Mathematical - Analysis, vol 9, 524 (1978). -
  8. -
  9. - B.C. Carlson and E.M. Notis, ALGORITHM - 577: Algorithms for Incomplete Elliptic Integrals, ACM Transactions - on Mathematmal Software, vol 7, 398 (1981). -
  10. -
  11. - B. C. Carlson, On computing elliptic integrals and functions. - J. Math. and Phys., 44 (1965), pp. 36-51. -
  12. -
  13. - B. C. Carlson, A table of elliptic integrals of the second - kind. Math. Comp., 49 (1987), pp. 595-606. (Supplement, ibid., - pp. S13-S17.) -
  14. -
  15. - B. C. Carlson, A table of elliptic integrals of the third kind. - Math. Comp., 51 (1988), pp. 267-280. (Supplement, ibid., pp. S1-S5.) -
  16. -
  17. - B. C. Carlson, A table of elliptic integrals: cubic cases. - Math. Comp., 53 (1989), pp. 327-333. -
  18. -
  19. - B. C. Carlson, A table of elliptic integrals: one quadratic - factor. Math. Comp., 56 (1991), pp. 267-280. -
  20. -
  21. - B. C. Carlson, A table of elliptic integrals: two quadratic - factors. Math. Comp., 59 (1992), pp. 165-180. -
  22. -
  23. - B. C. Carlson, Numerical - computation of real or complex elliptic integrals. - Numerical Algorithms, Volume 10, Number 1 / March, 1995, p13-26. -
  24. -
  25. - B. C. Carlson and John L. Gustafson, Asymptotic - Approximations for Symmetric Elliptic Integrals, SIAM - Journal on Mathematical Analysis, Volume 25, Issue 2 (March 1994), 288-303. -
  26. -
-

- The following references, while not directly relevent to our implementation, - may also be of interest: -

-
    -
  1. - R. Burlisch, Numerical Compuation of Elliptic Integrals and - Elliptic Functions. Numerical Mathematik 7, 78-90. -
  2. -
  3. - R. Burlisch, An extension of the Bartky Transformation to Incomplete - Elliptic Integrals of the Third Kind. Numerical Mathematik - 13, 266-284. -
  4. -
  5. - R. Burlisch, Numerical Compuation of Elliptic Integrals and - Elliptic Functions. III. Numerical Mathematik 13, 305-315. -
  6. -
  7. - T. Fukushima and H. Ishizaki, Numerical - Computation of Incomplete Elliptic Integrals of a General Form. - Celestial Mechanics and Dynamical Astronomy, Volume 59, Number 3 / July, - 1994, 237-251. -
  8. -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/ellint/heuman_lambda.html b/boost/libs/math/doc/html/math_toolkit/ellint/heuman_lambda.html deleted file mode 100644 index 1e1afc43..00000000 --- a/boost/libs/math/doc/html/math_toolkit/ellint/heuman_lambda.html +++ /dev/null @@ -1,221 +0,0 @@ - - - -Heuman Lambda Function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/heuman_lambda.hpp>
-
-
namespace boost { namespace math {
-
-template <class T1, class T2>
-calculated-result-type heuman_lambda(T1 k, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type heuman_lambda(T1 k, T2 phi, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- This function evaluates the Heuman Lambda Function Λ0(φ, k) -

-

- -

-

- The return type of this function is computed using the __arg_pomotion_rules - when the arguments are of different types: when they are the same type then - the result is the same type as the arguments. -

-

- Requires -1 <= k <= 1, otherwise returns the result - of domain_error - (outside this range the result would be complex). -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- Note that there is no complete analogue of this function (where φ = π / 2) as - this takes the value 1 for all k. -

-
- - Accuracy -
-

- These functions are trivially computed in terms of other elliptic integrals - and generally have very low error rates (a few epsilon) unless parameter - φ -is very large, in which case the usual trigonometric function argument-reduction - issues apply. -

-
-

Table 6.69. Error rates for heuman_lambda

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral Jacobi Zeta: Mathworld Data -

-
-

- Max = 1.08ε (Mean = 0.734ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.89ε (Mean = 0.887ε) -

-
-

- Max = 1.89ε (Mean = 0.887ε) -

-
-

- Elliptic Integral Heuman Lambda: Random Data -

-
-

- Max = 2.12ε (Mean = 0.59ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 3.82ε (Mean = 0.609ε) -

-
-

- Max = 3.82ε (Mean = 0.608ε) -

-
-
-
- - Testing -
-

- The tests use a mixture of spot test values calculated using values calculated - at wolframalpha.com, and random test data generated using MPFR at 1000-bit - precision and a deliberately naive implementation in terms of the Legendre - integrals. -

-
- - Implementation -
-

- The function is then implemented in terms of Carlson's integrals RJ and RF -using - the relation: -

-

- -

-

- This relation fails for |φ| >= π/2 in which case the - definition in terms of the Jacobi Zeta is used. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/ellint/jacobi_zeta.html b/boost/libs/math/doc/html/math_toolkit/ellint/jacobi_zeta.html deleted file mode 100644 index da00b4c1..00000000 --- a/boost/libs/math/doc/html/math_toolkit/ellint/jacobi_zeta.html +++ /dev/null @@ -1,257 +0,0 @@ - - - -Jacobi Zeta Function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_zeta.hpp>
-
-
namespace boost { namespace math {
-
-template <class T1, class T2>
-calculated-result-type jacobi_zeta(T1 k, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type jacobi_zeta(T1 k, T2 phi, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- This function evaluates the Jacobi Zeta Function Z(φ, k) -

-

- -

-

- The return type of this function is computed using the __arg_pomotion_rules - when the arguments are of different types: when they are the same type then - the result is the same type as the arguments. -

-

- Requires -1 <= k <= 1, otherwise returns the result - of domain_error - (outside this range the result would be complex). -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- Note that there is no complete analogue of this function (where φ = π / 2) as - this takes the value 0 for all k. -

-
- - Accuracy -
-

- These functions are trivially computed in terms of other elliptic integrals - and generally have very low error rates (a few epsilon) unless parameter - φ -is very large, in which case the usual trigonometric function argument-reduction - issues apply. -

-
-

Table 6.68. Error rates for jacobi_zeta

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral Jacobi Zeta: Mathworld Data -

-
-

- Max = 0.505ε (Mean = 0.119ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.66ε (Mean = 0.48ε) -

-
-

- Max = 1.66ε (Mean = 0.48ε) -

-
-

- Elliptic Integral Jacobi Zeta: Random Data -

-
-

- Max = 3.89ε (Mean = 0.818ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.99ε (Mean = 0.824ε) -

-
-

- Max = 3.96ε (Mean = 1.06ε) -

-
-

- Elliptic Integral Jacobi Zeta: Large Phi Values -

-
-

- Max = 2.92ε (Mean = 0.964ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.92ε (Mean = 0.951ε) -

-
-

- Max = 3.05ε (Mean = 1.13ε) -

-
-
-
- - Testing -
-

- The tests use a mixture of spot test values calculated using values calculated - at wolframalpha.com, and random test data generated using MPFR at 1000-bit - precision and a deliberately naive implementation in terms of the Legendre - integrals. -

-
- - Implementation -
-

- The implementation for Z(φ, k) first makes the argument φ positive using: -

-

- Z(-φ, k) = -Z(φ, k) -

-

- The function is then implemented in terms of Carlson's integral RJ -using the - relation: -

-

- -

-

- There is one special case where the above relation fails: when k - = 1, in that case the function simplifies to -

-

- Z(φ, 1) = sign(cos(φ)) sin(φ) -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/error_handling.html b/boost/libs/math/doc/html/math_toolkit/error_handling.html deleted file mode 100644 index 6e3a28aa..00000000 --- a/boost/libs/math/doc/html/math_toolkit/error_handling.html +++ /dev/null @@ -1,1128 +0,0 @@ - - - -Error Handling - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- - Quick - Reference -

-

- Handling of errors by this library is split into two orthogonal parts: -

-
    -
  • - What kind of error has been raised? -
  • -
  • - What should be done when the error is raised? -
  • -
-
- - - - - -
[Warning]Warning

- The default error actions are to throw an exception with an informative error - message. If you do not try to catch the exception, you will not see the message! -

-

- The kinds of errors that can be raised are: -

-
-

-
-
Domain Error
-

- Occurs when one or more arguments to a function are out of range. -

-
Pole Error
-

- Occurs when the particular arguments cause the function to be evaluated - at a pole with no well defined residual value. For example if tgamma - is evaluated at exactly -2, the function approaches different limiting - values depending upon whether you approach from just above or just below - -2. Hence the function has no well defined value at this point and a - Pole Error will be raised. -

-
Overflow Error
-

- Occurs when the result is either infinite, or too large to represent - in the numeric type being returned by the function. -

-
Underflow Error
-

- Occurs when the result is not zero, but is too small to be represented - by any other value in the type being returned by the function. -

-
Denormalisation Error
-

- Occurs when the returned result would be a denormalised value. -

-
Rounding Error
-

- Occurs when the argument to one of the rounding functions trunc, - round and modf - can not be represented as an integer type, is outside the range of the - result type. -

-
Evaluation Error
-

- Occurs if no method of evaluation is known, or when an internal error - occurred that prevented the result from being evaluated: this should - never occur, but if it does, then it's likely to be due to an iterative - method not converging fast enough. -

-
Indeterminate Result Error
-

- Occurs when the result of a function is not defined for the values that - were passed to it. -

-
-
-

- The action undertaken by each error condition is determined by the current - Policy in effect. This can be changed program-wide - by setting some configuration macros, or at namespace scope, or at the call - site (by specifying a specific policy in the function call). -

-

- The available actions are: -

-
-

-
-
throw_on_error
-

- Throws the exception most appropriate to the error condition. -

-
errno_on_error
-

- Sets ::errno to an appropriate value, and then returns the most appropriate - result -

-
ignore_error
-

- Ignores the error and simply the returns the most appropriate result. -

-
user_error
-

- Calls a user-supplied - error handler. -

-
-
-

- The following tables show all the permutations of errors and actions, with - the default action for each error shown in bold: -

-
-

Table 1.1. Possible Actions for Domain Errors

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Action -

-
-

- Behaviour -

-
-

- throw_on_error -

-
-

- Throws std::domain_error -

-
-

- errno_on_error -

-
-

- Sets ::errno - to EDOM and returns - std::numeric_limits<T>::quiet_NaN() -

-
-

- ignore_error -

-
-

- Returns std::numeric_limits<T>::quiet_NaN() -

-
-

- user_error -

-
-

- Returns the result of boost::math::policies::user_domain_error: - this function - must be defined by the user. -

-
-
-
-

Table 1.2. Possible Actions for Pole Errors

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Action -

-
-

- Behaviour -

-
-

- throw_on_error -

-
-

- Throws std::domain_error -

-
-

- errno_on_error -

-
-

- Sets ::errno - to EDOM and returns - std::numeric_limits<T>::quiet_NaN() -

-
-

- ignore_error -

-
-

- Returns std::numeric_limits<T>::quiet_NaN() -

-
-

- user_error -

-
-

- Returns the result of boost::math::policies::user_pole_error: - this function - must be defined by the user. -

-
-
-
-

Table 1.3. Possible Actions for Overflow Errors

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Action -

-
-

- Behaviour -

-
-

- throw_on_error -

-
-

- Throws std::overflow_error -

-
-

- errno_on_error -

-
-

- Sets ::errno - to ERANGE and returns - std::numeric_limits<T>::infinity() -

-
-

- ignore_error -

-
-

- Returns std::numeric_limits<T>::infinity() -

-
-

- user_error -

-
-

- Returns the result of boost::math::policies::user_overflow_error: - this function - must be defined by the user. -

-
-
-
-

Table 1.4. Possible Actions for Underflow Errors

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Action -

-
-

- Behaviour -

-
-

- throw_on_error -

-
-

- Throws std::underflow_error -

-
-

- errno_on_error -

-
-

- Sets ::errno - to ERANGE and returns - 0. -

-
-

- ignore_error -

-
-

- Returns 0 -

-
-

- user_error -

-
-

- Returns the result of boost::math::policies::user_underflow_error: - this function - must be defined by the user. -

-
-
-
-

Table 1.5. Possible Actions for Denorm Errors

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Action -

-
-

- Behaviour -

-
-

- throw_on_error -

-
-

- Throws std::underflow_error -

-
-

- errno_on_error -

-
-

- Sets ::errno - to ERANGE and returns - the denormalised value. -

-
-

- ignore_error -

-
-

- Returns the denormalised value. -

-
-

- user_error -

-
-

- Returns the result of boost::math::policies::user_denorm_error: - this function - must be defined by the user. -

-
-
-
-

Table 1.6. Possible Actions for Rounding Errors

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Action -

-
-

- Behaviour -

-
-

- throw_on_error -

-
-

- Throws boost::math::rounding_error -

-
-

- errno_on_error -

-
-

- Sets ::errno - to ERANGE and returns - the largest representable value of the target integer type (or the - most negative value if the argument to the function was less than - zero). -

-
-

- ignore_error -

-
-

- Returns the largest representable value of - the target integer type (or the most negative value if the argument - to the function was less than zero). -

-
-

- user_error -

-
-

- Returns the result of boost::math::policies::user_rounding_error: - this function - must be defined by the user. -

-
-
-
-

Table 1.7. Possible Actions for Internal Evaluation Errors

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Action -

-
-

- Behaviour -

-
-

- throw_on_error -

-
-

- Throws boost::math::evaluation_error -

-
-

- errno_on_error -

-
-

- Sets ::errno - to EDOM and returns - the closest approximation found. -

-
-

- ignore_error -

-
-

- Returns the closest approximation found. -

-
-

- user_error -

-
-

- Returns the result of boost::math::policies::user_evaluation_error: - this function - must be defined by the user. -

-
-
-
-

Table 1.8. Possible Actions for Indeterminate Result Errors

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Action -

-
-

- Behaviour -

-
-

- throw_on_error -

-
-

- Throws std::domain_error -

-
-

- errno_on_error -

-
-

- Sets ::errno - to EDOM and returns - the same value as ignore_error. -

-
-

- ignore_error -

-
-

- Returns a default result that depends on the - function where the error occurred. -

-
-

- user_error -

-
-

- Returns the result of boost::math::policies::user_indeterminate_result_error: - this function - must be defined by the user. -

-
-
-

- All these error conditions are in namespace boost::math::policies, made available, - for example, a by namespace declaration using namespace - boost::math::policies; or individual using declarations using boost::math::policies::overflow_error;. -

-

- - Rationale -

-

- The flexibility of the current implementation should be reasonably obvious: - the default behaviours were chosen based on feedback during the formal review - of this library. It was felt that: -

-
    -
  • - Genuine errors should be flagged with exceptions rather than following - C-compatible behaviour and setting ::errno. -
  • -
  • - Numeric underflow and denormalised results were not considered to be fatal - errors in most cases, so it was felt that these should be ignored. -
  • -
  • - If there is more than one error, only the first detected will be reported - in the throw message. -
  • -
-

- - Finding - More Information -

-

- There are some pre-processor macro defines that can be used to change - the policy defaults. See also the policy section. -

-

- An example is at the Policy tutorial in Changing - the Policy Defaults. -

-

- Full source code of this typical example of passing a 'bad' argument (negative - degrees of freedom) to Student's t distribution is in - the error handling example. -

-

- The various kind of errors are described in more detail below. -

-

- - Domain - Errors -

-

- When a special function is passed an argument that is outside the range of - values for which that function is defined, then the function returns the result - of: -

-
boost::math::policies::raise_domain_error<T>(FunctionName, Message, Val, Policy);
-
-

- Where T is the floating-point - type passed to the function, FunctionName - is the name of the function, Message - is an error message describing the problem, Val is the value that was out of - range, and Policy is the current policy in use - for the function that was called. -

-

- The default policy behaviour of this function is to throw a std::domain_error - C++ exception. But if the Policy is to ignore - the error, or set global ::errno, - then a NaN will be returned. -

-

- This behaviour is chosen to assist compatibility with the behaviour of ISO/IEC - 9899:1999 Programming languages - C and with the Draft - Technical Report on C++ Library Extensions, 2005-06-24, section 5.2.1, paragraph - 6: -

-

- "Each of the functions declared above shall return a NaN (Not - a Number) if any argument value is a NaN, but it shall not report a domain - error. Otherwise, each of the functions declared above shall report a domain - error for just those argument values for which: -

-
-

- "the function description's Returns clause explicitly specifies - a domain, and those arguments fall outside the specified domain; or -

-

- "the corresponding mathematical function value has a non-zero - imaginary component; or -

-

- "the corresponding mathematical function is not mathematically - defined. -

-
-

- "Note 2: A mathematical function is mathematically defined - for a given set of argument values if it is explicitly defined for that set - of argument values or if its limiting value exists and does not depend on - the direction of approach." -

-

- Note that in order to support information-rich error messages when throwing - exceptions, Message must contain - a Boost.Format recognised format - specifier: the argument Val - is inserted into the error message according to the specifier used. -

-

- For example if Message contains - a "%1%" then it is replaced by the value of Val - to the full precision of T, where as "%.3g" would contain the value - of Val to 3 digits. See the - Boost.Format documentation - for more details. -

-

- - Evaluation - at a pole -

-

- When a special function is passed an argument that is at a pole without a well - defined residual value, then the function returns the result of: -

-
boost::math::policies::raise_pole_error<T>(FunctionName, Message, Val, Policy);
-
-

- Where T is the floating point - type passed to the function, FunctionName - is the name of the function, Message - is an error message describing the problem, Val - is the value of the argument that is at a pole, and Policy - is the current policy in use for the function that was called. -

-

- The default behaviour of this function is to throw a std::domain_error exception. - But error handling - policies can be used to change this, for example to ignore_error - and return NaN. -

-

- Note that in order to support information-rich error messages when throwing - exceptions, Message must contain - a Boost.Format recognised format - specifier: the argument val - is inserted into the error message according to the specifier used. -

-

- For example if Message contains - a "%1%" then it is replaced by the value of val - to the full precision of T, where as "%.3g" would contain the value - of val to 3 digits. See the - Boost.Format documentation - for more details. -

-

- - Numeric - Overflow -

-

- When the result of a special function is too large to fit in the argument floating-point - type, then the function returns the result of: -

-
boost::math::policies::raise_overflow_error<T>(FunctionName, Message, Policy);
-
-

- Where T is the floating-point - type passed to the function, FunctionName - is the name of the function, Message - is an error message describing the problem, and Policy - is the current policy in use for the function that was called. -

-

- The default policy for this function is that std::overflow_error - C++ exception is thrown. But if, for example, an ignore_error - policy is used, then returns std::numeric_limits<T>::infinity(). - In this situation if the type T - doesn't support infinities, the maximum value for the type is returned. -

-

- - Numeric - Underflow -

-

- If the result of a special function is known to be non-zero, but the calculated - result underflows to zero, then the function returns the result of: -

-
boost::math::policies::raise_underflow_error<T>(FunctionName, Message, Policy);
-
-

- Where T is the floating point - type passed to the function, FunctionName - is the name of the function, Message - is an error message describing the problem, and Policy - is the current policy in use for the called function. -

-

- The default version of this function returns zero. But with another policy, - like throw_on_error, throws - an std::underflow_error C++ exception. -

-

- - Denormalisation - Errors -

-

- If the result of a special function is a denormalised value z - then the function returns the result of: -

-
boost::math::policies::raise_denorm_error<T>(z, FunctionName, Message, Policy);
-
-

- Where T is the floating point - type passed to the function, FunctionName - is the name of the function, Message - is an error message describing the problem, and Policy - is the current policy in use for the called function. -

-

- The default version of this function returns z. But with - another policy, like throw_on_error - throws an std::underflow_error C++ exception. -

-

- - Evaluation - Errors -

-

- When a special function calculates a result that is known to be erroneous, - or where the result is incalculable then it calls: -

-
boost::math::policies::raise_evaluation_error<T>(FunctionName, Message, Val, Policy);
-
-

- Where T is the floating point - type passed to the function, FunctionName - is the name of the function, Message - is an error message describing the problem, Val - is the erroneous value, and Policy is the current - policy in use for the called function. -

-

- The default behaviour of this function is to throw a boost::math::evaluation_error. -

-

- Note that in order to support information rich error messages when throwing - exceptions, Message must contain - a Boost.Format recognised format - specifier: the argument val - is inserted into the error message according to the specifier used. -

-

- For example if Message contains - a "%1%" then it is replaced by the value of val - to the full precision of T, where as "%.3g" would contain the value - of val to 3 digits. See the - Boost.Format documentation - for more details. -

-

- - Indeterminate - Result Errors -

-

- When the result of a special function is indeterminate for the value that was - passed to it, then the function returns the result of: -

-
boost::math::policies::raise_overflow_error<T>(FunctionName, Message, Val, Default, Policy);
-
-

- Where T is the floating-point - type passed to the function, FunctionName - is the name of the function, Message - is an error message describing the problem, Val is the value for which the - result is indeterminate, Default is an alternative default result that must - be returned for ignore_error - and errno_on_erro policies, - and Policy is the current policy in use for the - function that was called. -

-

- The default policy for this function is ignore_error: - note that this error type is reserved for situations where the result is mathematically - undefined or indeterminate, but there is none the less a convention for what - the result should be: for example the C99 standard specifies that the result - of 00 is 1, even though the result is actually mathematically indeterminate. -

-

- - Rounding - Errors -

-

- When one of the rounding functions round, - trunc or modf - is called with an argument that has no integer representation, or is too large - to be represented in the result type then the value returned is the result - of a call to: -

-
boost::math::policies::raise_rounding_error<T>(FunctionName, Message, Val, Policy);
-
-

- Where T is the floating point - type passed to the function, FunctionName - is the name of the function, Message - is an error message describing the problem, Val - is the erroneous argument, and Policy is the - current policy in use for the called function. -

-

- The default behaviour of this function is to throw a boost::math::rounding_error. -

-

- Note that in order to support information rich error messages when throwing - exceptions, Message must contain - a Boost.Format recognised format - specifier: the argument val - is inserted into the error message according to the specifier used. -

-

- For example if Message contains - a "%1%" then it is replaced by the value of val - to the full precision of T, where as "%.3g" would contain the value - of val to 3 digits. See the - Boost.Format documentation - for more details. -

-

- - Errors - from typecasts -

-

- Many special functions evaluate their results at a higher precision than their - arguments in order to ensure full machine precision in the result: for example, - a function passed a float argument may evaluate its result using double precision - internally. Many of the errors listed above may therefore occur not during - evaluation, but when converting the result to the narrower result type. The - function: -

-
template <class T, class Policy, class U>
-T checked_narrowing_cast(U const& val, const char* function);
-
-

- Is used to perform these conversions, and will call the error handlers listed - above on overflow, - underflow - or denormalisation. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/exact_typdefs.html b/boost/libs/math/doc/html/math_toolkit/exact_typdefs.html deleted file mode 100644 index 59ecaa06..00000000 --- a/boost/libs/math/doc/html/math_toolkit/exact_typdefs.html +++ /dev/null @@ -1,175 +0,0 @@ - - - -Exact-Width Floating-Point typedefs - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The typedef float#_t, with - # replaced by the width, designates a floating-point type of exactly # bits. - For example float32_t denotes - a single-precision floating-point type with approximately 7 decimal digits - of precision (equivalent to binary32 in IEEE_floating_point). -

-

- Floating-point types in C and C++ are specified to be allowed to have (optionally) - implementation-specific widths and formats. However, if a platform supports - underlying floating-point types (conformant with IEEE_floating_point) - with widths of 16, 32, 64, 80, 128 bits, or any combination thereof, then - <boost/cstdfloat.hpp> - does provide the corresponding typedefs - float16_t, - float32_t, - float64_t, - float80_t, - float128_t, - their corresponding least and fast types, and the corresponding maximum-width - type. -

-
- - How to - tell which widths are supported -
-

- The definition (or not) of a floating-point - constant macro is a way to test if a specific - width floating-point is available on a platform. -

-
#if defined(BOOST_FLOAT16_C)
-// Can use boost::float16_t, perhaps a proposed __short_float.
-// P0192R1, Adding Fundamental Type for Short Float,
-// Boris Fomitchev, Sergei Nikolaev, Olivier Giroux, Lawrence Crowl, 2016 Feb14
-// http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2016.pdf
-#endif
-
-#if defined(BOOST_FLOAT32_C)
-// Can use boost::float32_t, usually type `float`.
-#endif
-
-#if defined(BOOST_FLOAT64_C)
-// Can use boost::float64_t, usually type `double`, and sometimes also type `long double`.
-#endif
-
-#if defined(BOOST_FLOAT80_C)
-// Can use boost::float80_t, sometimes type `long double`.
-#endif
-
-#if defined(BOOST_FLOAT128_C)
-// Can use boost::float128_t. Sometimes type `__float128` or `_Quad`.
-#endif
-
-

- This can be used to write code which will compile and run (albeit differently) - on several platforms. Without these tests, if a width, say float128_t - is not supported, then compilation would fail. (It is, of course, rare for - float64_t or float32_t not to be supported). -

-

- The number of bits in just the significand can be determined using: -

-
std::numeric_limits<boost::floatmax_t>::digits
-
-

- and from this one can safely infer the total number of bits because the type - must be IEEE754 format, std::numeric_limits<boost::floatmax_t>::is_iec559 - == true, - so, for example, if std::numeric_limits<boost::floatmax_t>::digits == 113, then - floatmax_t must be float128_t. -

-

- The total number of bits using floatmax_t can be found thus: -

-
const int fpbits =
-  (std::numeric_limits<boost::floatmax_t>::digits == 113) ? 128 :
-  (std::numeric_limits<boost::floatmax_t>::digits == 64) ? 80 :
-  (std::numeric_limits<boost::floatmax_t>::digits == 53) ? 64 :
-  (std::numeric_limits<boost::floatmax_t>::digits == 24) ? 32 :
-  (std::numeric_limits<boost::floatmax_t>::digits == 11) ? 16 :
-  0; // Unknown - not IEEE754 format.
- std::cout << fpbits << " bits." << std::endl;
-
-

- and the number of 'guaranteed' decimal digits using -

-
std::numeric_limits<boost::floatmax_t>::digits10
-
-

- and the maximum number of possibly significant decimal digits using -

-
std::numeric_limits<boost::floatmax_t>::max_digits10
-
-
- - - - - -
[Tip]Tip

- max_digits10 is not always - supported, but can be calculated at compile-time using the Kahan formula, - 2 + - binary_digits * - 0.3010 which can be calculated at compile time using 2 - + binary_digits - * 3010/10000. -

-
- - - - - -
[Note]Note
-

- One could test that -

-

- std::is_same<boost::floatmax_t, boost::float128_t>::value == true -

-

- but this would fail to compile on a platform where boost::float128_t - is not defined. So it is better to use the MACROs BOOST_FLOATnnn_C. -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/examples.html b/boost/libs/math/doc/html/math_toolkit/examples.html deleted file mode 100644 index 41362813..00000000 --- a/boost/libs/math/doc/html/math_toolkit/examples.html +++ /dev/null @@ -1,140 +0,0 @@ - - - -Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- - Jahnke-Emden-Lambda - function -

-

- The following code uses <boost/cstdfloat.hpp> - in combination with <boost/math/special_functions.hpp> to - compute a simplified version of the Jahnke-Emden-Lambda - function. Here, we specify a floating-point type with exactly - 64 bits (i.e., float64_t). - If we were to use, for instance, built-in double, - then there would be no guarantee that the code would behave identically on - all platforms. With float64_t - from <boost/cstdfloat.hpp>, - however, it is very likely to be identical. -

-

- Using float64_t, we know that - this code is as portable as possible and uses a floating-point type with approximately - 15 decimal digits of precision, regardless of the compiler or version or operating - system. -

-
#include <boost/cstdfloat.hpp> // For float_64_t, float128_t. Must be first include!
-#include <cmath>  // for pow function.
-#include <boost/math/special_functions.hpp> // For gamma function.
-
-
boost::float64_t jahnke_emden_lambda(boost::float64_t v, boost::float64_t x)
-{
-  const boost::float64_t gamma_v_plus_one = boost::math::tgamma(v + 1);
-  const boost::float64_t x_half_pow_v     = std::pow(x /2, v);
-
-  return gamma_v_plus_one * boost::math::cyl_bessel_j(x, v) / x_half_pow_v;
-}
-
-

- Ensure that all possibly significant digits (17) including trailing zeros are - shown. -

-
std::cout.precision(std::numeric_limits<boost::float64_t>::max_digits10);
-std::cout.setf(std::ios::showpoint); // Show trailing zeros.
-
-try
-{ // Always use try'n'catch blocks to ensure any error messages are displayed.
-
-// Evaluate and display an evaluation of the Jahnke-Emden lambda function:
-boost::float64_t v = 1.;
-boost::float64_t x = 1.;
-std::cout << jahnke_emden_lambda(v, x) << std::endl; // 0.88010117148986700
-
-

- For details, see cstdfloat_example.cpp - - a extensive example program. -

-

- - Normal - distribution table -

-

- This example shows printing tables of a normal distribution's PDF and CDF, - using boost::math implementation of normal distribution. -

-

- A function templated on floating-point type prints a table for a range of standard - variate z values. -

-

- The example shows use of the specified-width typedefs to either use a specific - width, or to use the maximum available on the platform, perhaps a high as 128-bit. -

-

- The number of digits displayed is controlled by the precision of the type, - so there are no spurious insignificant decimal digits: -

-
float_32_t    0    0.39894228
-float_128_t  0    0.398942280401432702863218082711682655
-
-

- Some sample output for two different platforms is appended to the code at - normal_tables.cpp. -

-
#ifdef BOOST_FLOAT32_C
-    normal_table<boost::float32_t>(); // Usually type float
-#endif
-    normal_table<boost::float64_t>(); // Uusually type double. Assume that float64_t is always available.
-#ifdef BOOST_FLOAT80_C
-    normal_table<boost::float80_t>(); // Type long double on some X86 platforms.
-#endif
-#ifdef BOOST_FLOAT128_C
-    normal_table<boost::float128_t>(); // Type _Quad on some Intel and __float128 on some GCC platforms.
-#endif
-    normal_table<boost::floatmax_t>();
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/exp.html b/boost/libs/math/doc/html/math_toolkit/exp.html deleted file mode 100644 index 6a93c280..00000000 --- a/boost/libs/math/doc/html/math_toolkit/exp.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -The Quaternionic Exponential - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/expint.html b/boost/libs/math/doc/html/math_toolkit/expint.html deleted file mode 100644 index c39b1f91..00000000 --- a/boost/libs/math/doc/html/math_toolkit/expint.html +++ /dev/null @@ -1,50 +0,0 @@ - - - -Exponential Integrals - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/expint/expint_i.html b/boost/libs/math/doc/html/math_toolkit/expint/expint_i.html deleted file mode 100644 index e9b949c1..00000000 --- a/boost/libs/math/doc/html/math_toolkit/expint/expint_i.html +++ /dev/null @@ -1,317 +0,0 @@ - - - -Exponential Integral Ei - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/expint.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type expint(T z);
-
-template <class T, class Policy>
-calculated-result-type expint(T z, const Policy&);
-
-}} // namespaces
-
-

- The return type of these functions is computed using the result - type calculation rules: the return type is double if T is an integer type, and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Description -
-
template <class T>
-calculated-result-type expint(T z);
-
-template <class T, class Policy>
-calculated-result-type expint(T z, const Policy&);
-
-

- Returns the exponential - integral of z: -

-

- -

-

- -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types, along with comparisons - to Cody's SPECFUN implementation and the GSL-1.9 - library. Unless otherwise specified any floating point type that is narrower - than the one shown will have effectively - zero error. -

-
-

Table 6.75. Error rates for expint (Ei)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Exponential Integral Ei -

-
-

- Max = 1.43ε (Mean = 0.541ε) -

-
-

- Max = 5.05ε (Mean = 0.821ε)

- (<tr1/cmath>: Max = 14.1ε (Mean = 2.43ε) - And - other failures.) -

-
-

- Max = 0.994ε (Mean = 0.142ε)

- (GSL 1.16: Max = 8.96ε (Mean = 0.703ε))
- (Cephes: Max = +INFε (Mean - = +INFε) And - other failures.) -

-
-

- Max = 3.34ε (Mean = 0.631ε) -

-
-

- Exponential Integral Ei: double exponent range -

-
-

- Max = 1.7ε (Mean = 0.66ε) -

-
-

- Max = 1.72ε (Mean = 0.593ε)

- (<tr1/cmath>: Max = 3.11ε (Mean = 1.13ε)) -

-
-

- Max = 0.998ε (Mean = 0.156ε)

- (GSL 1.16: Max = 1.5ε (Mean = 0.612ε))
- (Cephes: Max = 1.77ε (Mean = 0.644ε)) -

-
-

- Max = 1.72ε (Mean = 0.618ε) -

-
-

- Exponential Integral Ei: long exponent range -

-
- -

- Max = 1.98ε (Mean = 0.595ε)

- (<tr1/cmath>: Max = 1.93ε (Mean = 0.855ε)) -

-
- -

- Max = 1.98ε (Mean = 0.575ε) -

-
-
-

- It should be noted that all three libraries tested above offer sub-epsilon - precision over most of their range. -

-

- GSL has the greatest difficulty near the positive root of En, while Cody's - SPECFUN along with this implementation increase their error rates very slightly - over the range [4,6]. -

-
- - Testing -
-

- The tests for these functions come in two parts: basic sanity checks use - spot values calculated using Mathworld's - online evaluator, while accuracy checks use high-precision test values - calculated at 1000-bit precision with NTL::RR - and this implementation. Note that the generic and type-specific versions - of these functions use differing implementations internally, so this gives - us reasonably independent test data. Using our test data to test other "known - good" implementations also provides an additional sanity check. -

-
- - Implementation -
-

- For x < 0 this function just calls zeta(1, - -x): which in turn is implemented in terms of rational approximations when - the type of x has 113 or fewer bits of precision. -

-

- For x > 0 the generic version is implemented using the infinte series: -

-

- -

-

- However, when the precision of the argument type is known at compile time - and is 113 bits or less, then rational approximations devised - by JM are used. -

-

- For 0 < z < 6 a root-preserving approximation of the form: -

-

- -

-

- is used, where z0 is the positive root of the function, and R(z/3 - 1) is - a minimax rational approximation rescaled so that it is evaluated over [-1,1]. - Note that while the rational approximation over [0,6] converges rapidly to - the minimax solution it is rather ill-conditioned in practice. Cody and Thacher - [5] experienced the same issue and converted the polynomials into - Chebeshev form to ensure stable computation. By experiment we found that - the polynomials are just as stable in polynomial as Chebyshev form, provided - they are computed over the interval [-1,1]. -

-

- Over the a series of intervals [a,b] and [b,INF] the rational approximation - takes the form: -

-

- -

-

- where c is a constant, and R(t) is a minimax solution - optimised for low absolute error compared to c. Variable - t is 1/z when the range in infinite and 2z/(b-a) - (2a/(b-a) + 1) otherwise: this has the effect of scaling - z to the interval [-1,1]. As before rational approximations over arbitrary - intervals were found to be ill-conditioned: Cody and Thacher solved this - issue by converting the polynomials to their J-Fraction equivalent. However, - as long as the interval of evaluation was [-1,1] and the number of terms - carefully chosen, it was found that the polynomials could - be evaluated to suitable precision: error rates are typically 2 to 3 epsilon - which is comparible to the error rate that Cody and Thacher achieved using - J-Fractions, but marginally more efficient given that fewer divisions are - involved. -

-
-

-

[5] - W. J. Cody and H. C. Thacher, Jr., Rational Chebyshev approximations for - the exponential integral E1(x), Math. Comp. 22 (1968), 641-649, and W. - J. Cody and H. C. Thacher, Jr., Chebyshev approximations for the exponential - integral Ei(x), Math. Comp. 23 (1969), 289-303. -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/expint/expint_n.html b/boost/libs/math/doc/html/math_toolkit/expint/expint_n.html deleted file mode 100644 index 89466724..00000000 --- a/boost/libs/math/doc/html/math_toolkit/expint/expint_n.html +++ /dev/null @@ -1,284 +0,0 @@ - - - -Exponential Integral En - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/expint.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type expint(unsigned n, T z);
-
-template <class T, class Policy>
-calculated-result-type expint(unsigned n, T z, const Policy&);
-
-}} // namespaces
-
-

- The return type of these functions is computed using the result - type calculation rules: the return type is double if T is an integer type, and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Description -
-
template <class T>
-calculated-result-type expint(unsigned n, T z);
-
-template <class T, class Policy>
-calculated-result-type expint(unsigned n, T z, const Policy&);
-
-

- Returns the exponential - integral En of z: -

-

- -

-

- -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types, along with comparisons - to other libraries. Unless otherwise specified any floating point type that - is narrower than the one shown will have effectively - zero error. -

-
-

Table 6.74. Error rates for expint (En)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Exponential Integral En -

-
-

- Max = 7.16ε (Mean = 1.85ε) -

-
-

- Max = 0.589ε (Mean = 0.0331ε)
-
(GSL 1.16: Max = 58.5ε (Mean = 17.1ε)) -

-
-

- Max = 9.97ε (Mean = 2.13ε) -

-
-

- Max = 9.97ε (Mean = 2.13ε) -

-
-

- Exponential Integral En: small z values -

-
-

- Max = 2.62ε (Mean = 0.531ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 115ε (Mean = 23.6ε)) -

-
-

- Max = 1.99ε (Mean = 0.559ε) -

-
-

- Max = 1.99ε (Mean = 0.559ε) -

-
-

- Exponential Integral E1 -

-
-

- Max = 0.988ε (Mean = 0.486ε) -

-
-

- Max = 0.556ε (Mean = 0.0625ε)
-
(GSL 1.16: Max = 0.988ε (Mean = 0.469ε)) -

-
-

- Max = 0.965ε (Mean = 0.414ε) -

-
-

- Max = 0.965ε (Mean = 0.409ε) -

-
-
-
- - Testing -
-

- The tests for these functions come in two parts: basic sanity checks use - spot values calculated using Mathworld's - online evaluator, while accuracy checks use high-precision test values - calculated at 1000-bit precision with NTL::RR - and this implementation. Note that the generic and type-specific versions - of these functions use differing implementations internally, so this gives - us reasonably independent test data. Using our test data to test other "known - good" implementations also provides an additional sanity check. -

-
- - Implementation -
-

- The generic version of this function uses the continued fraction: -

-

- -

-

- for large x and the infinite series: -

-

- -

-

- for small x. -

-

- Where the precision of x is known at compile time and - is 113 bits or fewer in precision, then rational approximations devised - by JM are used for the n - == 1 - case. -

-

- For x < - 1 the approximating form is a minimax - approximation: -

-

- -

-

- and for x > - 1 a Chebyshev interpolated approximation - of the form: -

-

- -

-

- is used. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/factorials.html b/boost/libs/math/doc/html/math_toolkit/factorials.html deleted file mode 100644 index fadf3a6e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/factorials.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -Factorials and Binomial Coefficients - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/factorials/sf_binomial.html b/boost/libs/math/doc/html/math_toolkit/factorials/sf_binomial.html deleted file mode 100644 index 4c03acdc..00000000 --- a/boost/libs/math/doc/html/math_toolkit/factorials/sf_binomial.html +++ /dev/null @@ -1,145 +0,0 @@ - - - -Binomial Coefficients - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/binomial.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-T binomial_coefficient(unsigned n, unsigned k);
-
-template <class T, class Policy>
-T binomial_coefficient(unsigned n, unsigned k, const Policy&);
-
-}} // namespaces
-
-

- Returns the binomial coefficient: nCk. -

-

- Requires k <= n. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- May return the result of overflow_error - if the result is too large to represent in type T. -

-
- - - - - -
[Important]Important
-

- The functions described above are templates where the template argument - T can not be deduced from the arguments passed to the function. Therefore - if you write something like: -

-

- boost::math::binomial_coefficient(10, 2); -

-

- You will get a compiler error, ususally indicating that there is no such - function to be found. Instead you need to specifiy the return type explicity - and write: -

-

- boost::math::binomial_coefficient<double>(10, 2); -

-

- So that the return type is known. Further, the template argument must be - a real-valued type such as float - or double and not an integer - type - that would overflow far too easily! -

-
-
- - Accuracy -
-

- The accuracy will be the same as for the factorials for small arguments (i.e. - no more than one or two epsilon), and the beta - function for larger arguments. -

-
- - Testing -
-

- The spot tests for the binomial coefficients use data generated by functions.wolfram.com. -

-
- - Implementation -
-

- Binomial coefficients are calculated using table lookup of factorials where - possible using: -

-

- nCk = n! / (k!(n-k)!) -

-

- Otherwise it is implemented in terms of the beta function using the relations: -

-

- nCk = 1 / (k * beta(k, - n-k+1)) -

-

- and -

-

- nCk = 1 / ((n-k) * beta(k+1, - n-k)) -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/factorials/sf_double_factorial.html b/boost/libs/math/doc/html/math_toolkit/factorials/sf_double_factorial.html deleted file mode 100644 index da12c54b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/factorials/sf_double_factorial.html +++ /dev/null @@ -1,161 +0,0 @@ - - - -Double Factorial - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/factorials.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-T double_factorial(unsigned i);
-
-template <class T, class Policy>
-T double_factorial(unsigned i, const Policy&);
-
-}} // namespaces
-
-

- Returns i!!. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- May return the result of overflow_error - if the result is too large to represent in type T. The implementation is - designed to be optimised for small i where table lookup - of i! is possible. -

-
- - - - - -
[Important]Important
-

- The functions described above are templates where the template argument - T can not be deduced from the arguments passed to the function. Therefore - if you write something like: -

-

- boost::math::double_factorial(2); -

-

- You will get a (possibly perplexing) compiler error, ususally indicating - that there is no such function to be found. Instead you need to specifiy - the return type explicity and write: -

-

- boost::math::double_factorial<double>(2); -

-

- So that the return type is known. Further, the template argument must be - a real-valued type such as float - or double and not an integer - type - that would overflow far too easily! -

-

- The source code static_assert - and comment just after the will be: -

-
BOOST_STATIC_ASSERT(!boost::is_integral<T>::value);
-// factorial<unsigned int>(n) is not implemented
-// because it would overflow integral type T for too small n
-// to be useful. Use instead a floating-point type,
-// and convert to an unsigned type if essential, for example:
-// unsigned int nfac = static_cast<unsigned int>(factorial<double>(n));
-// See factorial documentation for more detail.
-
-
-
- - - - - -
[Note]Note

- The argument to double_factorial - is type unsigned even though - technically -1!! is defined. -

-
- - Accuracy -
-

- The implementation uses a trivial adaptation of the factorial function, so - error rates should be no more than a couple of epsilon higher. -

-
- - Testing -
-

- The spot tests for the double factorial use data generated by functions.wolfram.com. -

-
- - Implementation -
-

- The double factorial is implemented in terms of the factorial and gamma functions - using the relations: -

-

- (2n)!! = 2n * n! -

-

- (2n+1)!! = (2n+1)! / (2n n!) -

-

- and -

-

- (2n-1)!! = Γ((2n+1)/2) * 2n / sqrt(pi) -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/factorials/sf_factorial.html b/boost/libs/math/doc/html/math_toolkit/factorials/sf_factorial.html deleted file mode 100644 index 37bd26ff..00000000 --- a/boost/libs/math/doc/html/math_toolkit/factorials/sf_factorial.html +++ /dev/null @@ -1,193 +0,0 @@ - - - -Factorial - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/factorials.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-T factorial(unsigned i);
-
-template <class T, class Policy>
-T factorial(unsigned i, const Policy&);
-
-template <class T>
-T unchecked_factorial(unsigned i);
-
-template <class T>
-struct max_factorial;
-
-}} // namespaces
-
-
- - Description -
-
- - - - - -
[Important]Important
-

- The functions described below are templates where the template argument - T CANNOT be deduced from the arguments passed to the function. Therefore - if you write something like: -

-

- boost::math::factorial(2); -

-

- You will get a (perhaps perplexing) compiler error, ususally indicating - that there is no such function to be found. Instead you need to specify - the return type explicity and write: -

-

- boost::math::factorial<double>(2); -

-

- So that the return type is known. -

-

- Furthermore, the template argument must be a real-valued type such as - float or double - and not an integer type - that would overflow far too easily for quite - small values of parameter i! -

-

- The source code static_assert - and comment just after the will be: -

-
BOOST_STATIC_ASSERT(!boost::is_integral<T>::value);
-// factorial<unsigned int>(n) is not implemented
-// because it would overflow integral type T for too small n
-// to be useful. Use instead a floating-point type,
-// and convert to an unsigned type if essential, for example:
-// unsigned int nfac = static_cast<unsigned int>(factorial<double>(n));
-// See factorial documentation for more detail.
-
-
-
template <class T>
-T factorial(unsigned i);
-
-template <class T, class Policy>
-T factorial(unsigned i, const Policy&);
-
-

- Returns i!. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- For i <= max_factorial<T>::value this is implemented - by table lookup, for larger values of i, this function - is implemented in terms of tgamma. -

-

- If i is so large that the result can not be represented - in type T, then calls overflow_error. -

-
template <class T>
-T unchecked_factorial(unsigned i);
-
-

- Returns i!. -

-

- Internally this function performs table lookup of the result. Further it - performs no range checking on the value of i: it is up to the caller to ensure - that i <= max_factorial<T>::value. This function - is intended to be used inside inner loops that require fast table lookup - of factorials, but requires care to ensure that argument i - never grows too large. -

-
template <class T>
-struct max_factorial
-{
-   static const unsigned value = X;
-};
-
-

- This traits class defines the largest value that can be passed to unchecked_factorial. - The member value can be used - where integral constant expressions are required: for example to define the - size of further tables that depend on the factorials. -

-
- - Accuracy -
-

- For arguments smaller than max_factorial<T>::value the result should be correctly rounded. - For larger arguments the accuracy will be the same as for tgamma. -

-
- - Testing -
-

- Basic sanity checks and spot values to verify the data tables: the main tests - for the tgamma function - handle those cases already. -

-
- - Implementation -
-

- The factorial function is table driven for small arguments, and is implemented - in terms of tgamma for - larger arguments. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/factorials/sf_falling_factorial.html b/boost/libs/math/doc/html/math_toolkit/factorials/sf_falling_factorial.html deleted file mode 100644 index b9f8d67e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/factorials/sf_falling_factorial.html +++ /dev/null @@ -1,110 +0,0 @@ - - - -Falling Factorial - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/factorials.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type falling_factorial(T x, unsigned i);
-
-template <class T, class Policy>
-calculated-result-type falling_factorial(T x, unsigned i, const Policy&);
-
-}} // namespaces
-
-

- Returns the falling factorial of x and i: -

-

- falling_factorial(x, i) = x(x-1)(x-2)(x-3)...(x-i+1) -

-

- Note that this function is only defined for positive i, - hence the unsigned second argument. - Argument x can be either positive or negative however. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- May return the result of overflow_error - if the result is too large to represent in type T. -

-

- The return type of these functions is computed using the result - type calculation rules: the type of the result is double if T is an integer type, otherwise - the type of the result is T. -

-
- - Accuracy -
-

- The accuracy will be the same as the tgamma_delta_ratio - function. -

-
- - Testing -
-

- The spot tests for the falling factorials use data generated by functions.wolfram.com. -

-
- - Implementation -
-

- Rising and falling factorials are implemented as ratios of gamma functions - using tgamma_delta_ratio. - Optimisations for small integer arguments are handled internally by that - function. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/factorials/sf_rising_factorial.html b/boost/libs/math/doc/html/math_toolkit/factorials/sf_rising_factorial.html deleted file mode 100644 index a98c40d9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/factorials/sf_rising_factorial.html +++ /dev/null @@ -1,114 +0,0 @@ - - - -Rising Factorial - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/factorials.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type rising_factorial(T x, int i);
-
-template <class T, class Policy>
-calculated-result-type rising_factorial(T x, int i, const Policy&);
-
-}} // namespaces
-
-

- Returns the rising factorial of x and i: -

-

- rising_factorial(x, i) = Γ(x + i) / Γ(x); -

-

- or -

-

- rising_factorial(x, i) = x(x+1)(x+2)(x+3)...(x+i-1) -

-

- Note that both x and i can be negative - as well as positive. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- May return the result of overflow_error - if the result is too large to represent in type T. -

-

- The return type of these functions is computed using the result - type calculation rules: the type of the result is double if T is an integer type, otherwise - the type of the result is T. -

-
- - Accuracy -
-

- The accuracy will be the same as the tgamma_delta_ratio - function. -

-
- - Testing -
-

- The spot tests for the rising factorials use data generated by functions.wolfram.com. -

-
- - Implementation -
-

- Rising and falling factorials are implemented as ratios of gamma functions - using tgamma_delta_ratio. - Optimisations for small integer arguments are handled internally by that - function. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/fastest_typdefs.html b/boost/libs/math/doc/html/math_toolkit/fastest_typdefs.html deleted file mode 100644 index 7eada99e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/fastest_typdefs.html +++ /dev/null @@ -1,64 +0,0 @@ - - - -Fastest floating-point typedefs - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The typedef float_fast#_t, with - # replaced by the width, designates the fastest - floating-point type with a width of at least # bits. -

-

- There is no absolute guarantee that these types are the fastest for all purposes. - In any case, however, they satisfy the precision and width requirements. -

-

- Fastest minimum-width floating-point types are provided for all existing exact-width - floating-point types on a given platform. -

-

- For example, if a platform supports float32_t - and float64_t, then float_fast32_t and float_fast64_t - will also be supported, etc. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/float128.html b/boost/libs/math/doc/html/math_toolkit/float128.html deleted file mode 100644 index 818ccdaf..00000000 --- a/boost/libs/math/doc/html/math_toolkit/float128.html +++ /dev/null @@ -1,175 +0,0 @@ - - - -Implementation of Float128 type - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- - -

- Since few compilers implement a true 128-bit floating-point, and language features - like the suffix Q (which may need an option -fext-numeric-literals - to enable), and C++ Standard library functions are as-yet missing or incomplete - in C++11, this Boost.Math implementation wraps __float128 - provided by the GCC compiler GCC - floating-point types or the _Quad - type provided by the Intel compiler. -

-

- This is provided to in order to demonstrate, and users to evaluate, the feasibility - and benefits of higher-precision floating-point, especially to allow use of - the full <cmath> and Boost.Math library of functions and distributions - at high precision. -

-

- (It is also possible to use Boost.Math with Boost.Multiprecision decimal and - binary, but since these are entirely software solutions, allowing much higher - precision or arbitrary precision, they are likely to be slower). -

-

- We also provide (we believe full) support for <limits>, <cmath>, I/O stream operations in <iostream>, and <complex>. -

-

- As a prototype for a future C++ standard, we place all these in namespace std. - This contravenes the existing C++ standard of course, so selecting any compiler - that promises to check conformance will fail. -

-
- - - - - -
[Tip]Tip

- For GCC, compile with -std=gnu++11 or -std=gnu++03 and do - not use -std=stdc++11 or any 'strict' options, as these turn off - full support for __float128. - These requirements also apply to the Intel compiler on Linux, for Intel on - Windows you need to compile with -Qoption,cpp,--extended_float_type -DBOOST_MATH_USE_FLOAT128 in order to activate - 128-bit floating point support. -

-

- The __float128 type is provided - by the libquadmath - library on GCC or by Intel's FORTRAN library with Intel C++. THey also - provide a full set of <cmath> functions in namespace - std. -

-
- - Using - C __float128 quadmath type -
-

- [quadmath_snprintf_1] -

-

- The source code is at quadmath_snprintf.c. -

-
- - Using - C++ float128 quadmath type -
-

- For C++ programs, you will want to use the C++ type float128 -

-

- See example at cstdfloat_example.cpp. -

-

- A typical invocation of the compiler is -

-
g++ -O3 -std=gnu++11 test.cpp -I/c/modular-boost -lquadmath -o test.exe
-
-
- - - - - -
[Tip]Tip

- If you are trying to use the develop branch of Boost.Math, then make -I/c/modular-boost/libs/math/include - the first include directory. -

-
g++ -O3 -std=gnu++11 test.cpp -I/c/modular-boost/libs/math/include -I/c/modular-boost -lquadmath -o test.exe
-
-
- - - - - -
[Note]Note
-

- So far, the only missing detail that we had noted was in trying to use <typeinfo>, for example for std::cout << typeid<__float_128>.name();. -

-
Link fails: undefined reference to typeinfo for __float128.
-
-

- See GCC Bug - 43622 - no C++ typeinfo for __float128. But this is reported (Marc - Glisse 2015-04-04 ) fixed in GCC 5 (and above). -

-

- For example, with GCC6.1.1 this works as expected to a mangled - string name, and output (if possible - not always). -

-
const std::type_info& tifu128 = typeid(__float128); // OK.
-//std::cout << tifu128.name() << std::endl; // On GCC, aborts (because not printable string).
-//std::cout << typeid(__float128).name() << std::endl; // Aborts - string name cannot be output.
-
-const std::type_info& tif128 = typeid(float128); // OK.
-std::cout << tif128.name() << std::endl; // OK.
-std::cout << typeid(float128).name() << std::endl; // OK.
-
-const std::type_info& tpi = typeid(pi1); // OK GCC 6.1.1 (from GCC 5 according to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43622)
-std::cout << tpi.name() << std::endl; // Output mangled name:
-
-// N5boost14multiprecision6numberINS0_8backends16float128_backendELNS0_26expression_template_optionE0EEE
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/float128/exp_function.html b/boost/libs/math/doc/html/math_toolkit/float128/exp_function.html deleted file mode 100644 index ef51ee7c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/float128/exp_function.html +++ /dev/null @@ -1,71 +0,0 @@ - - - -Exponential function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There was a bug when using any quadmath expq - function on GCC : GCC - bug #60349 caused by mingw-64 - bug #368. -

-

- To work round this defect, an alternative implementation of 128-bit exp was - temporarily provided by boost/cstdfloat.hpp. -

-

- The mingw bug was fixed at 2014-03-12 and GCC 6.1.1 now works as expected. -

-
- - - - - -
[Tip]Tip

- It is essential to link to the quadmath library -

-

- . -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/float128/overloading.html b/boost/libs/math/doc/html/math_toolkit/float128/overloading.html deleted file mode 100644 index e8d9271b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/float128/overloading.html +++ /dev/null @@ -1,97 +0,0 @@ - - - -Overloading template functions with float128_t - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- An artifact of providing C++ standard library support for quadmath may mandate - the inclusion of <boost/cstdfloat.hpp> - before the inclusion of other headers. -

-

- Consider a function that calls fabs(x) - and has previously injected std::fabs() into local scope via a using - directive: -

-
template <class T>
-bool unsigned_compare(T a, T b)
-{
-   using std::fabs;
-   return fabs(a) == fabs(b);
-}
-
-

- In this function, the correct overload of fabs - may be found via argument-dependent-lookup - (ADL) or by calling one of the std::fabs - overloads. There is a key difference between them however: an overload in - the same namespace as T and found via ADL need not - be defined at the time the function is declared. However, - all the types declared in <boost/cstdfloat.hpp> - are fundamental types, so for these types we are relying on finding an overload - declared in namespace std. - In that case however, all such overloads - must be declared prior to the definition of function unsigned_compare - otherwise they are not considered. -

-

- In the event that <boost/cstdfloat.hpp> - has been included after the definition of - the above function, the correct overload of fabs, - while present, is simply not considered as part of the overload set. So the - compiler tries to downcast the float128_t - argument first to long double, - then to double, then to float; the compilation fails because the result - is ambiguous. However the compiler error message will appear cruelly inscrutable, - at an apparently irelevant line number and making no mention of float128: the word ambiguous - is the clue to what is wrong. -

-

- Provided you #include <boost/cstdfloat.hpp> - before the inclusion of the any header containing - generic floating point code (such as other Boost.Math headers, then the compiler - will know about and use the std::fabs(std::float128_t) - that we provide in #include <boost/cstdfloat.hpp>. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/float128/overloading_template_functions_w.html b/boost/libs/math/doc/html/math_toolkit/float128/overloading_template_functions_w.html deleted file mode 100644 index bb8986af..00000000 --- a/boost/libs/math/doc/html/math_toolkit/float128/overloading_template_functions_w.html +++ /dev/null @@ -1,97 +0,0 @@ - - - -Overloading template functions with float128_t - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- An artifact of providing C++ standard library support for quadmath may mandate - the inclusion of <boost/cstdfloat.hpp> - before the inclusion of other headers. -

-

- Consider a function that calls fabs(x) - and has previously injected std::fabs() into local scope via a using - directive: -

-
template <class T>
-bool unsigned_compare(T a, T b)
-{
-   using std::fabs;
-   return fabs(a) == fabs(b);
-}
-
-

- In this function, the correct overload of fabs - may be found via argument-dependent-lookup - (ADL) or by calling one of the std::fabs - overloads. There is a key difference between them however: an overload in - the same namespace as T and found via ADL need not - be defined at the time the function is declared. However, - all the types declared in <boost/cstdfloat.hpp> - are fundamental types, so for these types we are relying on finding an overload - declared in namespace std. - In that case however, all such overloads - must be declared prior to the definition of function unsigned_compare - otherwise they are not considered. -

-

- In the event that <boost/cstdfloat.hpp> - has been included after the definition of - the above function, the correct overload of fabs, - while present, is simply not considered as part of the overload set. So the - compiler tries to downcast the float128_t - argument first to long double, - then to double, then to float; the compilation fails because the result - is ambiguous. However the compiler error message will appear cruelly inscrutable, - at an apparently irelevant line number and making no mention of float128: the word ambiguous - is the clue to what is wrong. -

-

- Provided you #include <boost/cstdfloat.hpp> - before the inclusion of the any header containing - generic floating point code (such as other Boost.Math headers, then the compiler - will know about and use the std::fabs(std::float128_t) - that we provide in #include <boost/cstdfloat.hpp>. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/float128/typeinfo.html b/boost/libs/math/doc/html/math_toolkit/float128/typeinfo.html deleted file mode 100644 index 88467ff4..00000000 --- a/boost/libs/math/doc/html/math_toolkit/float128/typeinfo.html +++ /dev/null @@ -1,78 +0,0 @@ - - - -typeinfo - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- For GCC 4.8.1 it was not yet possible to use typeinfo - for float_128 on GCC: see - GCC 43622. -

-

- So this code (to display the mangled name) failed to link undefined - reference to - typeinfo for - __float128 -

-
std::cout << typeid(boost::float128_t).name() << std::endl;
-
-

- This prevent using the existing tests for Boost.Math distributions, (unless - a few lines are commented out) and if a MACRO BOOST_MATH_INSTRUMENT controlling - them is defined then some diagnostic displays in Boost.Math will not work. -

-

- However this was only used for display purposes and could be commented out - until this was fixed in GCC 5. -

-
- - - - - -
[Tip]Tip

- Not all managed names can be displayed - using std::cout. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/float128_hints.html b/boost/libs/math/doc/html/math_toolkit/float128_hints.html deleted file mode 100644 index a181bf5a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/float128_hints.html +++ /dev/null @@ -1,107 +0,0 @@ - - - -Hints on using float128 (and __float128) - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - __float128 - versus float128 -
-
    -
  • - __float128 is the (optionally) compiler supplied hardware type, it's an - C-ish extension to C++ and there is only minimal support for it in normal - C++ (no IO streams or numeric_limits - support, function names in libquadmath all have different names to the - std:: - ones etc.) So you can program type __float128 - directly, but it's harder work. -
  • -
  • - Type float128 uses __float128 - and makes it C++ and generic code friendly, with all the usual standard - iostream, numeric_limits, complex - in namspace std:: - available, so strongly recommended for C++ use. -
  • -
-
- - Hints - and tips -
-
    -
  • - Make sure you declare variables with the correct type, here float128. -
  • -
  • - Make sure that if you pass a variable to a function then it is casted to - float128. -
  • -
  • - Make sure you declare literals with the correct suffix - otherwise they'll - be treated as type double - with catastrophic loss of precision. So make sure they have a Q suffix - for 128-bit floating-point literals. -
  • -
  • - All the std library functions, cmath functions, plus all the constants, - and special functions from Boost.Math should then just work. -
  • -
  • - Make sure std lib functions are called unqualified - so that the correct overload is found via Argument - Dependent Lookup (ADL). So write sqrt(variable) and not std::sqrt(variable). -
  • -
  • - In general, try not to reinvent stuff - using constants from Boost.Math - is probably less error prone than declaring your own, likewise the special - functions etc. -
  • -
-

- Some examples of what can go horribly and silently wrong are at float128_example.cpp. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/float_comparison.html b/boost/libs/math/doc/html/math_toolkit/float_comparison.html deleted file mode 100644 index accc4f49..00000000 --- a/boost/libs/math/doc/html/math_toolkit/float_comparison.html +++ /dev/null @@ -1,413 +0,0 @@ - - - -Floating-point Comparison - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Comparison of floating-point values has always been a source of endless difficulty - and confusion. -

-

- Unlike integral values that are exact, all floating-point operations will potentially - produce an inexact result that will be rounded to the nearest available binary - representation. Even apparently inocuous operations such as assigning 0.1 to - a double produces an inexact result (as this decimal number has no exact binary - representation). -

-

- Floating-point computations also involve rounding so that some 'computational - noise' is added, and hence results are also not exact (although repeatable, - at least under identical platforms and compile options). -

-

- Sadly, this conflicts with the expectation of most users, as many articles - and innumerable cries for help show all too well. -

-

- Some background reading is: -

-
-

- Boost provides a number of ways to compare floating-point values to see if - they are tolerably close enough to each other, but first we must decide what - kind of comparison we require: -

-
    -
  • - Absolute difference/error: the absolute difference between two values - a and b is simply fabs(a-b). This is the only meaningful comparison - to make if we know that the result may have cancellation error (see below). -
  • -
  • - The edit distance between the two values: i.e. how many (binary) floating-point - values are between two values a and b? - This is provided by the function Boost.Math - float_distance, but is probably only useful when you know that - the distance should be very small. This function is somewhat difficult - to compute, and doesn't scale to values that are very far apart. In other - words, use with care. -
  • -
  • - The relative distance/error between two values. This is quick and easy - to compute, and is generally the method of choice when checking that your - results are "tolerably close" to one another. However, it is - not as exact as the edit distance when dealing with small differences, - and due to the way floating-point values are encoded can "wobble" - by a factor of 2 compared to the "true" edit distance. This is - the method documented below: if float_distance - is a surgeon's scalpel, then relative_difference - is more like a Swiss army knife: both have important but different use - cases. -
  • -
-
- - Relative - Comparison of Floating-point Values -
-

- #include <boost/math/special_functions/relative_difference.hpp> -

-
template <class T, class U>
-calculated-result-type relative_difference(T a, U b);
-
-template <class T, class U>
-calculated-result-type epsilon_difference(T a, U b);
-
-

- The function relative_difference - returns the relative distance/error E between two values - as defined by: -

-
E = fabs((a - b) / min(a,b))
-

- The function epsilon_difference - is a convenience function that returns relative_difference(a, - b) / eps where - eps is the machine epsilon - for the result type. -

-

- The following special cases are handled as follows: -

-
    -
  • - If either of a or b is a NaN, - then returns the largest representable value for T: for example for type - double, this is std::numeric_limits<double>::max() - which is the same as DBL_MAX - or 1.7976931348623157e+308. -
  • -
  • - If a and b differ in sign then - returns the largest representable value for T. -
  • -
  • - If both a and b are both infinities - (of the same sign), then returns zero. -
  • -
  • - If just one of a and b is an - infinity, then returns the largest representable value for T. -
  • -
  • - If both a and b are zero then - returns zero. -
  • -
  • - If just one of a or b is a zero - or a denormalized value, then it is treated as if it were the smallest - (non-denormalized) value representable in T for the purposes of the above - calculation. -
  • -
-

- These rules were primarily designed to assist with our own test suite, they - are designed to be robust enough that the function can in most cases be used - blindly, including in cases where the expected result is actually too small - to represent in type T and underflows to zero. -

-
- - Examples -
-

- Some using statements will ensure that the functions we need are accessible. -

-
using namespace boost::math;
-
-

- or -

-
using boost::math::relative_difference;
-using boost::math::epsilon_difference;
-using boost::math::float_next;
-using boost::math::float_prior;
-
-

- The following examples display values with all possibly significant digits. - Newer compilers should provide std::numeric_limitsFPT>::max_digits10 - for this purpose, and here we use float - precision where max_digits10 - = 9 to avoid displaying a distracting number of decimal digits. -

-
- - - - - -
[Note]Note

- Older compilers can use this formula to calculate max_digits10 - from std::numeric_limits<FPT>::digits10:
   int - max_digits10 = - 2 + std::numeric_limits<FPT>::digits10 - * 3010/10000; -

-

- One can set the display including all trailing zeros (helpful for this example - to show all potentially significant digits), and also to display bool values as words rather than integers: -

-
std::cout.precision(std::numeric_limits<float>::max_digits10);
-std::cout << std::boolalpha << std::showpoint << std::endl;
-
-

- When comparing values that are quite close or approximately - equal, we could use either float_distance - or relative_difference/epsilon_difference, for example with type - float, these two values are adjacent - to each other: -

-
float a = 1;
-float b = 1 + std::numeric_limits<float>::epsilon();
-std::cout << "a = " << a << std::endl;
-std::cout << "b = " << b << std::endl;
-std::cout << "float_distance = " << float_distance(a, b) << std::endl;
-std::cout << "relative_difference = " << relative_difference(a, b) << std::endl;
-std::cout << "epsilon_difference = " << epsilon_difference(a, b) << std::endl;
-
-

- Which produces the output: -

-
a = 1.00000000
-b = 1.00000012
-float_distance = 1.00000000
-relative_difference = 1.19209290e-007
-epsilon_difference = 1.00000000
-
-

- In the example above, it just so happens that the edit distance as measured - by float_distance, and the - difference measured in units of epsilon were equal. However, due to the way - floating point values are represented, that is not always the case: -

-
a = 2.0f / 3.0f;   // 2/3 inexactly represented as a float
-b = float_next(float_next(float_next(a))); // 3 floating point values above a
-std::cout << "a = " << a << std::endl;
-std::cout << "b = " << b << std::endl;
-std::cout << "float_distance = " << float_distance(a, b) << std::endl;
-std::cout << "relative_difference = " << relative_difference(a, b) << std::endl;
-std::cout << "epsilon_difference = " << epsilon_difference(a, b) << std::endl;
-
-

- Which produces the output: -

-
a = 0.666666687
-b = 0.666666865
-float_distance = 3.00000000
-relative_difference = 2.68220901e-007
-epsilon_difference = 2.25000000
-
-

- There is another important difference between float_distance - and the relative_difference/epsilon_difference - functions in that float_distance - returns a signed result that reflects which argument is larger in magnitude, - where as relative_difference/epsilon_difference - simply return an unsigned value that represents how far apart the values are. - For example if we swap the order of the arguments: -

-
std::cout << "float_distance = " << float_distance(b, a) << std::endl;
-std::cout << "relative_difference = " << relative_difference(b, a) << std::endl;
-std::cout << "epsilon_difference = " << epsilon_difference(b, a) << std::endl;
-
-

- The output is now: -

-
float_distance = -3.00000000
-relative_difference = 2.68220901e-007
-epsilon_difference = 2.25000000
-
-

- Zeros are always treated as equal, as are infinities as long as they have the - same sign: -

-
a = 0;
-b = -0;  // signed zero
-std::cout << "relative_difference = " << relative_difference(a, b) << std::endl;
-a = b = std::numeric_limits<float>::infinity();
-std::cout << "relative_difference = " << relative_difference(a, b) << std::endl;
-std::cout << "relative_difference = " << relative_difference(a, -b) << std::endl;
-
-

- Which produces the output: -

-
relative_difference = 0.000000000
-relative_difference = 0.000000000
-relative_difference = 3.40282347e+038
-
-

- Note that finite values are always infinitely far away from infinities even - if those finite values are very large: -

-
a = (std::numeric_limits<float>::max)();
-b = std::numeric_limits<float>::infinity();
-std::cout << "a = " << a << std::endl;
-std::cout << "b = " << b << std::endl;
-std::cout << "relative_difference = " << relative_difference(a, b) << std::endl;
-std::cout << "epsilon_difference = " << epsilon_difference(a, b) << std::endl;
-
-

- Which produces the output: -

-
a = 3.40282347e+038
-b = 1.#INF0000
-relative_difference = 3.40282347e+038
-epsilon_difference = 3.40282347e+038
-
-

- Finally, all denormalized values and zeros are treated as being effectively - equal: -

-
a = std::numeric_limits<float>::denorm_min();
-b = a * 2;
-std::cout << "a = " << a << std::endl;
-std::cout << "b = " << b << std::endl;
-std::cout << "float_distance = " << float_distance(a, b) << std::endl;
-std::cout << "relative_difference = " << relative_difference(a, b) << std::endl;
-std::cout << "epsilon_difference = " << epsilon_difference(a, b) << std::endl;
-a = 0;
-std::cout << "a = " << a << std::endl;
-std::cout << "b = " << b << std::endl;
-std::cout << "float_distance = " << float_distance(a, b) << std::endl;
-std::cout << "relative_difference = " << relative_difference(a, b) << std::endl;
-std::cout << "epsilon_difference = " << epsilon_difference(a, b) << std::endl;
-
-

- Which produces the output: -

-
a = 1.40129846e-045
-b = 2.80259693e-045
-float_distance = 1.00000000
-relative_difference = 0.000000000
-epsilon_difference = 0.000000000
-a = 0.000000000
-b = 2.80259693e-045
-float_distance = 2.00000000
-relative_difference = 0.000000000
-epsilon_difference = 0.000000000
-

- Notice how, in the above example, two denormalized values that are a factor - of 2 apart are none the less only one representation apart! -

-

- All the above examples are contained in float_comparison_example.cpp. -

-
- - Handling - Absolute Errors -
-

- Imagine we're testing the following function: -

-
double myspecial(double x)
-{
-   return sin(x) - sin(4 * x);
-}
-
-

- This function has multiple roots, some of which are quite predicable in that - both sin(x) and sin(4x) are zero - together. Others occur because the values returned from those two functions - precisely cancel out. At such points the relative difference between the true - value of the function and the actual value returned may be arbitrarily - large due to cancellation - error. -

-

- In such a case, testing the function above by requiring that the values returned - by relative_error or epsilon_error are below some threshold is - pointless: the best we can do is to verify that the absolute difference - between the true and calculated values is below some threshold. -

-

- Of course, determining what that threshold should be is often tricky, but a - good starting point would be machine epsilon multiplied by the largest of the - values being summed. In the example above, the largest value returned by sin(whatever) is 1, so simply using machine epsilon as the - target for maximum absolute difference might be a good start (though in practice - we may need a slightly higher value - some trial and error will be necessary). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/fp_facets.html b/boost/libs/math/doc/html/math_toolkit/fp_facets.html deleted file mode 100644 index 87b87adb..00000000 --- a/boost/libs/math/doc/html/math_toolkit/fp_facets.html +++ /dev/null @@ -1,92 +0,0 @@ - - - -Facets for Floating-Point Infinities and NaNs - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- - -
- - Synopsis -
-
namespace boost{ namespace math
-{
-  // Values for flags.
-  const int legacy;
-  const int signed_zero;
-  const int trap_infinity;
-  const int trap_nan;
-
-  template<
-      class CharType,
-      class OutputIterator = std::ostreambuf_iterator<CharType>
-  >
-  class nonfinite_num_put : public std::num_put<CharType, OutputIterator>
-  {
-  public:
-      explicit nonfinite_num_put(int flags = 0);
-  };
-
-  template<
-      class CharType,
-      class InputIterator = std::istreambuf_iterator<CharType>
-  >
-  class nonfinite_num_get : public std::num_get<CharType, InputIterator>
-  {
-  public:
-      explicit nonfinite_num_get(int flags = 0);  // legacy, sign_zero ...
-  };
-}} // namespace boost namespace math
-
-

- To use these facets -

-
#include <boost\math\special_functions\nonfinite_num_facets.hpp>
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/fp_facets/examples.html b/boost/libs/math/doc/html/math_toolkit/fp_facets/examples.html deleted file mode 100644 index 74639419..00000000 --- a/boost/libs/math/doc/html/math_toolkit/fp_facets/examples.html +++ /dev/null @@ -1,258 +0,0 @@ - - - -Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Simple - example with std::stringstreams -
-
locale old_locale;
-locale tmp_locale(old_locale, new nonfinite_num_put<char>);
-locale new_locale(tmp_locale, new nonfinite_num_get<char>);
-
-
stringstream ss;
-ss.imbue(new_locale);
-double inf = numeric_limits<double>::infinity();
-ss << inf; // Write out.
-assert(ss.str() == "inf");
-double r;
-ss >> r; // Read back in.
-assert(inf == r); // Confirms that the double values really are identical.
-
-cout << "infinity output was " << ss.str() << endl;
-cout << "infinity input was " << r << endl;
-// But the string representation of r displayed will be the native type
-// because, when it was constructed, cout had NOT been imbued
-// with the new locale containing the nonfinite_numput facet.
-// So the cout output will be "1.#INF on MS platforms
-// and may be "inf" or other string representation on other platforms.
-
-
- - Use with - lexical_cast -
-
- - - - - -
[Note]Note

- From Boost 1.48, lexical_cast no longer uses stringstreams internally, - and is now able to handle infinities and NaNs natively on most platforms. -

-

- Without using a new locale that contains the nonfinite facets, previous versions - of lexical_cast using stringstream - were not portable (and often failed) if nonfinite values are found. -

-
locale old_locale;
-locale tmp_locale(old_locale, new nonfinite_num_put<char>);
-locale new_locale(tmp_locale, new nonfinite_num_get<char>);
-
-

- Although other examples imbue individual streams with the new locale, for - the streams constructed inside lexical_cast, it was necesary to assign to - a global locale. -

-
locale::global(new_locale);
-
-

- lexical_cast then works as - expected, even with infinity and NaNs. -

-
double x = boost::lexical_cast<double>("inf");
-assert(x == std::numeric:limits<double>::infinity());
-
-string s = boost::lexical_cast<string>(numeric_limits<double>::infinity());
-assert(s == "inf");
-
-
- - - - - -
[Warning]Warning

- If you use stringstream inside your functions, you may still need to use - a global locale to handle nonfinites correctly. Or you need to imbue your - stringstream with suitable get and put facets. -

-
- - - - - -
[Warning]Warning

- You should be aware that the C++ specification does not explicitly require - that input from decimal digits strings converts with rounding to the nearest - representable floating-point binary value. (In contrast, decimal digits - read by the compiler, for example by an assignment like double - d = - 1.234567890123456789, are guaranteed - to assign the nearest representable value to double d). This implies that, - no matter how many decimal digits you provide, there is a potential uncertainty - of 1 least significant bit in the resulting binary value. -

-

- See conversion - and rounding for more information on nearest representable - and rounding and Exploring - Binary for much detail on input and round-tripping difficulties. -

-

- Most iostream libraries do in fact achieve the desirable nearest - representable floating-point binary value for all values of input. - However one popular STL library does not quite achieve this for 64-bit doubles. - See Decimal - digit string input to double may be 1 bit wrong for the bizarre full - details. -

-

- If you are expecting to 'round-trip' lexical_cast - or serialization, for example - archiving and loading, and want to be absolutely certain - that you will always get an exactly identical double value binary pattern, - you should use the suggested 'workaround' below that is believed to work - on all platforms. -

-

- You should output using all potentially significant decimal digits, by setting - stream precision to std::numeric_limits<double>::max_digits10, (or for the appropriate floating-point - type, if not double) and crucially, require scientific format, not fixed or automatic (default), for example: -

-
double output_value = any value;
-std::stringstream s;
-s << setprecison(std::numeric_limits<double>::max_digits10) << scientific << output_value;
-s >> input_value;
-
-
- - Use - with serialization archives -
-

- It is vital that the same locale is used when an archive is saved and when - it is loaded. Otherwise, loading the archive may fail. By default, archives - are saved and loaded with a classic C locale with a boost::archive::codecvt_null - facet added. Normally you do not have to worry about that. -

-

- The constructors for the archive classes, as a side-effect, imbue the stream - with such a locale. However, if you want to use the facets nonfinite_num_put and nonfinite_num_get - with archives, then you have to manage the locale manually. That is done - by calling the archive constructor with the flag boost::archive::no_codecvt, - thereby ensuring that the archive constructor will not - imbue the stream with a new locale. -

-

- The following code shows how to use nonfinite_num_put - with a text_oarchive. -

-
locale default_locale(locale::classic(), new boost::archive::codecvt_null<char>);
-locale my_locale(default_locale, new nonfinite_num_put<char>);
-
-ofstream ofs("test.txt");
-ofs.imbue(my_locale);
-
-boost::archive::text_oarchive oa(ofs, no_codecvt);
-
-double x = numeric_limits<double>::infinity();
-oa & x;
-
-

- The same method works with nonfinite_num_get - and text_iarchive. -

-

- If you use the nonfinite_num_put - with trap_infinity and/or - trap_nan flag with a serialization - archive, then you must set the exception mask of the stream. Serialization - archives do not check the stream state. -

-
- - Other - examples -
-

- nonfinite_facet_simple.cpp - give some more simple demonstrations of the difference between using classic - C locale and constructing a C99 infinty and NaN compliant locale for input - and output. -

-

- See nonfinite_facet_sstream.cpp - for this example of use with std::stringstreams. -

-

- For an example of how to enforce the MSVC 'legacy' "1.#INF" and - "1.#QNAN" representations of infinity and NaNs, for input and output, - see nonfinite_legacy.cpp. -

-

- Treatment of signaling NaN is demonstrated at ../../example/nonfinite_signaling_NaN.cpp -

-

- Example ../../example/nonfinite_loopback_ok.cpp - shows loopback works OK. -

-

- Example ../../example/nonfinite_num_facet.cpp - shows output and re-input of various finite and nonfinite values. -

-

- A simple example of trapping nonfinite output is at nonfinite_num_facet_trap.cpp. -

-

- A very basic example of using Boost.Archive is at ../../example/nonfinite_serialization_archives.cpp. -

-

- A full demonstration of serialization by Francois Mauger is at ../../example/nonfinite_num_facet_serialization.cpp -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/fp_facets/facets_intro.html b/boost/libs/math/doc/html/math_toolkit/fp_facets/facets_intro.html deleted file mode 100644 index 73d13c56..00000000 --- a/boost/libs/math/doc/html/math_toolkit/fp_facets/facets_intro.html +++ /dev/null @@ -1,380 +0,0 @@ - - - -Introduction - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - The - Problem -
-

- The C++98 standard does not specify how infinity and - NaN are represented in text streams. As a result, different - platforms use different string representations. This can cause undefined - behavior when text files are moved between different platforms. Some platforms - cannot even input parse their own output! So 'route-tripping' or loopback - of output to input is not possible. For instance, the following test fails - with MSVC: -

-
stringstream ss;
-double inf = numeric_limits<double>::infinity();
-double r;
-ss << inf; // Write out.
-ss >> r; // Read back in.
-
-cout << "infinity output was " << inf << endl; // 1.#INF
-cout << "infinity input was " << r << endl; // 1
-
-assert(inf == y); // Fails!
-
-
- - The - Solution -
-

- The facets nonfinite_num_put - and nonfinite_num_get format - and parse all floating-point numbers, including infinity - and NaN, in a consistent - and portable manner. -

-

- The following test succeeds with MSVC. -

-
locale old_locale;
-locale tmp_locale(old_locale, new nonfinite_num_put<char>);
-locale new_locale(tmp_locale, new nonfinite_num_get<char>);
-
-
- - - - - -
[Tip]Tip
-

- To add two facets, nonfinite_num_put - and nonfinite_num_get, - you may have to add one at a time, using a temporary locale. -

-

- Or you can create a new locale in one step -

-

- std::locale new_locale(std::locale(std::locale(std::locale(), new boost::math::nonfinite_num_put<char>), new boost::math::nonfinite_num_get<char>)); -

-

- and, for example, use it to imbue an input and output stringstream. -

-
-
- - - - - -
[Tip]Tip

- To just change an input or output stream, you can concisely write cout.imbue (std::locale(std::locale(), new boost::math::nonfinite_num_put<char>)); or cin.imbue (std::locale(std::locale(), new boost::math::nonfinite_num_get<char>)); -

-
stringstream ss;
-ss.imbue(new_locale);
-double inf = numeric_limits<double>::infinity();
-ss << inf; // Write out.
-assert(ss.str() == "inf");
-double r;
-ss >> r; // Read back in.
-assert(inf == r); // Confirms that the double values really are identical.
-
-cout << "infinity output was " << ss.str() << endl;
-cout << "infinity input was " << r << endl;
-// But the string representation of r displayed will be the native type
-// because, when it was constructed, cout had NOT been imbued
-// with the new locale containing the nonfinite_numput facet.
-// So the cout output will be "1.#INF on MS platforms
-// and may be "inf" or other string representation on other platforms.
-
-
- - C++0X - standard for output of infinity and NaN -
-

- C++0X - (final) draft standard does not explicitly specify the representation - (and input) of nonfinite values, leaving it implementation-defined. So without - some specific action, input and output of nonfinite values is not portable. -

-
- - C99 - standard for output of infinity and NaN -
-

- The C99 - standard does specify how infinity - and NaN are formatted by printf and similar output functions, and parsed - by scanf and similar input functions. -

-

- The following string representations are used: -

-
-

Table 2.1. C99 Representation of Infinity and NaN

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- number -

-
-

- string -

-
-

- Positive infinity -

-
-

- "inf" or "infinity" -

-
-

- Positive NaN -

-
-

- "nan" or "nan(...)" -

-
-

- Negative infinity -

-
-

- "-inf" or "-infinity" -

-
-

- Negative NaN -

-
-

- "-nan" or "-nan(...)" -

-
-
-

- So following C99 provides a sensible 'standard' way of handling input and - output of nonfinites in C++, and this implementation follows most of these - formats. -

-
- - Signaling - NaNs -
-

- A particular type of NaN is the signaling NaN. The usual mechanism of signaling - is by raising a floating-point exception. Signaling NaNs are defined by - IEEE - 754-2008. -

-

- Floating-point values with layout s111 1111 1axx - xxxx xxxx xxxx xxxx xxxx where s is the sign, x - is the payload, and bit a determines the type of NaN. -

-

- If bit a = 1, it is a quiet NaN. -

-

- If bit a is zero and the payload x - is nonzero, then it is a signaling NaN. -

-

- Although there has been theoretical interest in the ability of a signaling - NaN to raise an exception, for example to prevent use of an uninitialised - variable, in practice there appears to be no useful application of signaling - NaNs for most current processors. C++0X - 18.3.2.2 still specifies a (implementation-defined) representation - for signaling NaN, and static constexpr bool has_signaling_NaN a method of checking - if a floating-point type has a representation for signaling NaN. -

-

- But in practice, most platforms treat signaling NaNs in the same as quiet - NaNs. So, for example, they are represented by "nan" on output - in C99 - format, and output as 1.#QNAN by Microsoft compilers. -

-
- - - - - -
[Note]Note
-

- The C99 standard does not distinguish between the quiet NaN and signaling - NaN values. A quiet NaN propagates through almost every arithmetic operation - without raising a floating-point exception; a signaling NaN generally raises - a floating-point exception when occurring as an arithmetic operand. -

-

- C99 specification does not define the behavior of signaling NaNs. NaNs - created by IEC 60559 operations are always quiet. Therefore this implementation - follows C99, and treats the signaling NaN bit as just a part of the NaN - payload field. So this implementation does not distinguish between the - two classes of NaN. -

-
-
- - - - - -
[Note]Note
-

- An implementation may give zero and non-numeric values (such as infinities - and NaNs) a sign or may leave them unsigned. Wherever such values are unsigned, - any requirement in the C99 Standard to retrieve the sign shall produce - an unspecified sign, and any requirement to set the sign shall be ignored. -

-

- This might apply to user-defined types, but in practice built-in floating-point - types float, double and long - double have well-behaved signs. -

-
-

- The numbers can be of type float, - double and long - double. An optional + sign can be - used with positive numbers (controlled by ios manipulator showpos). - The function printf and similar - C++ functions use standard formatting flags to put all lower or all upper - case (controlled by std::ios manipulator uppercase - and lowercase). -

-

- The function scanf and similar - input functions are case-insensitive. -

-

- The dots in nan(...) - stand for an arbitrary string. The meaning of that string is implementation - dependent. It can be used to convey extra information about the NaN, from - the 'payload'. A particular value of the payload might be used to indicate - a missing value, for example. -

-

- This library uses the string representations specified by the C99 standard. -

-

- An example of an implementation that optionally includes the NaN payload - information is at AIX - NaN fprintf. That implementation specifies for Binary Floating Point - NANs: -

-
    -
  • - A NaN ordinal sequence is a left-parenthesis character '(', followed - by a digit sequence representing an integer n, where 1 <= n <= - INT_MAX-1, followed by a right-parenthesis character ')'. -
  • -
  • - The integer value, n, is determined by the fraction bits of the NaN argument - value as follows: -
  • -
  • - For a signalling NaN value, NaN fraction bits are reversed (left to right) - to produce bits (right to left) of an even integer value, 2*n. Then formatted - output functions produce a (signalling) NaN ordinal sequence corresponding - to the integer value n. -
  • -
  • - For a quiet NaN value, NaN fraction bits are reversed (left to right) - to produce bits (right to left) of an odd integer value, 2*n-1. Then - formatted output functions produce a (quiet) NaN ordinal sequence corresponding - to the integer value n. -
  • -
-
- - - - - -
[Warning]Warning

- This implementation does not (yet) provide output of, or access to, the - NaN payload. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/fp_facets/portability.html b/boost/libs/math/doc/html/math_toolkit/fp_facets/portability.html deleted file mode 100644 index 4980c55a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/fp_facets/portability.html +++ /dev/null @@ -1,51 +0,0 @@ - - - -Portability - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- This library uses the floating-point number classification and sign-bit from - Boost.Math library, and should work on all platforms where that library works. - See the portability information for that library. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/fp_facets/rationale.html b/boost/libs/math/doc/html/math_toolkit/fp_facets/rationale.html deleted file mode 100644 index e5001b27..00000000 --- a/boost/libs/math/doc/html/math_toolkit/fp_facets/rationale.html +++ /dev/null @@ -1,68 +0,0 @@ - - - -Design Rationale - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
    -
  • - The flags are implemented as a const data member of the facet. Facets - are reference counted, and locales can share facets. Therefore changing - the flags of a facet would have effects that are hard to predict. An - alternative design would be to implement the flags using std::ios_base::xalloc and std::ios_base::iword. - Then one could safely modify the flags, and one could define manipulators - that do so. However, for that to work with dynamically linked libraries, - a .cpp - file would have to be added to the library. It was judged be more desirable - to have a header-only library, than to have mutable flags and manipulators. -
  • -
  • - The facet nonfinite_num_put - throws an exception when the trap_infinity - or trap_nan flag is set - and an attempt is made to format infinity or NaN. It would be better - if the facet set the fail bit of the stream. However, facets - derived from std::num_put do not have access to the stream - state. -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/fp_facets/reference.html b/boost/libs/math/doc/html/math_toolkit/fp_facets/reference.html deleted file mode 100644 index 7d7b3b2e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/fp_facets/reference.html +++ /dev/null @@ -1,491 +0,0 @@ - - - -Reference - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - The - Facet nonfinite_num_put -
-
template<
-  class CharType, class OutputIterator = std::ostreambuf_iterator<CharType>
-        >
-class nonfinite_num_put;
-
-

- The class nonfinite_num_put<CharType, OutputIterator> is derived from std::num_put<CharType, OutputIterator>. Thus it is a facet that formats numbers. - The first template argument is the character type of the formatted strings, - usually char or wchar_t. The second template argument is the - type of iterator used to write the strings. It is required to be an output - iterator. Usually the default std::ostreambuf_iterator - is used. The public interface of the class consists of a single constructor - only: -

-
nonfinite_num_put(int flags = 0);
-
-

- The flags argument (effectively optional because a default of no_flags is provided) is discussed below. - The class template nonfinite_num_put - is defined in the header boost/math/nonfinite_num_facets.hpp and lives in the namespace boost::math. -

-

- Unlike the C++ Standard facet std::num_put, - the facet nonfinite_num_put - formats infinity and NaN in a consistent and portable manner. - It uses the following string representations: -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Number -

-
-

- String -

-
-

- Positive infinity -

-
-

- inf -

-
-

- Positive NaN -

-
-

- nan -

-
-

- Negative infinity -

-
-

- -inf -

-
-

- Negative NaN -

-
-

- -nan -

-
-

- The numbers can be of type float, - double and long - double. The strings can be in all - lower case or all upper case. An optional + sign can be used with positive - numbers. This can be controlled with the uppercase, - lowercase, showpos and noshowpos - manipulators. Formatting of integers, boolean values and finite floating-point - numbers is simply delegated to the normal std::num_put. -

-
- - Facet - nonfinite_num_get -
-
template<class CharType, class InputIterator = std::istreambuf_iterator<CharType> > class nonfinite_num_get;
-
-

- The class nonfinite_num_get<CharType, InputIterator> is derived from std::num_get<CharType, IntputIterator>. Thus it is a facet that parses strings - that represent numbers. The first template argument is the character type - of the strings, usually char - or wchar_t. The second template - argument is the type of iterator used to read the strings. It is required - to be an input iterator. Usually the default is used. The public interface - of the class consists of a single constructor only: -

-
nonfinite_num_get(int flags = 0);
-
-

- The flags argument is discussed below. The class - template nonfinite_num_get - is defined in the header boost/math/nonfinite_num_facets.hpp and lives in the namespace - boost::math. -

-

- Unlike the facet std::num_get, the facet nonfinite_num_get - parses strings that represent infinity - and NaN in a consistent and - portable manner. It recognizes precisely the string representations specified - by the C99 standard: -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Number -

-
-

- String -

-
-

- Positive infinity -

-
-

- inf, infinity -

-
-

- Positive NaN -

-
-

- nan, nan(...) -

-
-

- Negative infinity -

-
-

- -inf, -infinity -

-
-

- Negative NaN -

-
-

- -nan, -nan(...) -

-
-

- The numbers can be of type float, - double and long - double. The facet is case-insensitive. - An optional + sign can be used with positive numbers. The dots in nan(...) - stand for an arbitrary string usually containing the NaN payload. - Parsing of strings that represent integers, boolean values and finite floating-point - numbers is delegated to std::num_get. -

-

- When the facet parses a string that represents infinity - on a platform that lacks infinity, then the fail bit of the stream is set. -

-

- When the facet parses a string that represents NaN - on a platform that lacks NaN, then the fail bit of the stream is set. -

-
- - Flags -
-

- The constructors for nonfinite_num_put - and nonfinite_num_get take - an optional bit flags argument. There are four different bit flags: -

-
    -
  • - legacy -
  • -
  • - signed_zero -
  • -
  • - trap_infinity -
  • -
  • - trap_nan -
  • -
-

- The flags can be combined with the OR operator|. -

-

- The flags are defined in the header boost/math/nonfinite_num_facets.hpp and live in the namespace - boost::math. -

-
- - legacy -
-

- The legacy flag has no effect with the output facet nonfinite_num_put. -

-

- If the legacy flag is used with the nonfinite_num_get - input facet, then the facet will recognize all the following string representations - of infinity and NaN: -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Number -

-
-

- String -

-
-

- Positive infinity -

-
-

- inf, infinity, one#inf -

-
-

- Positive NaN -

-
-

- nan, nan(...), nanq, nans, qnan, snan, one#ind, one#qnan, one#snan -

-
-

- Negative infinity -

-
-

- -inf, -infinity, -one#inf -

-
-

- Negative NaN -

-
-

- -nan, -nan(...), -nanq, -nans, -qnan, -snan, -one#ind, - one#qnan, - -one#snan -

-
-
    -
  • - The numbers can be of type float, - double and long double. -
  • -
  • - The facet is case-insensitive. -
  • -
  • - An optional + sign can be - used with the positive values. -
  • -
  • - The dots in nan(...) - stand for an arbitrary string. -
  • -
  • - one stands for any string - that std::num_get parses as the number 1, typically "1.#INF", "1.QNAN" - but also "000001.#INF"... -
  • -
-

- The list includes a number of non-standard string representations of infinity - and NaN that are used by various existing implementations of the C++ standard - library, and also string representations used by other programming languages. -

-
- - signed_zero -
-

- If the signed_zero flag is - used with nonfinite_num_put, - then the facet will always distinguish between positive and negative zero. - It will format positive zero as "0" or "+0" and negative - zero as "-0". The string representation of positive zero can be - controlled with the showpos - and noshowpos manipulators. -

-

- The signed_zero flag - has no effect with the input facet nonfinite_num_get. - The input facet nonfinite_num_get - always parses "0" and "+0" as positive zero and "-0" - as negative zero, as do most implementations of std::num_get. -

-
- - - - - -
[Note]Note

- If the signed_zero flag - is not set (the default), then a negative zero value will be displayed - on output in whatever way the platform normally handles it. For most platforms, - this it will format positive zero as "0" or "+0" and - negative zero as "-0". But setting the signed_zero - flag may be more portable. -

-
- - - - - -
[Tip]Tip

- A negative zero value can be portably produced using the changesign function - (changesign)(static_cast<ValType>(0)) - where ValType is float, double - or long double, - or a User-Defined floating-point type (UDT) provided that this UDT has - a sign and that the changesign function is implemented. -

-
- - trap_infinity -
-

- If the trap_infinity flag - is used with nonfinite_num_put, - then the facet will throw an exception of type std::ios_base::failure - when an attempt is made to format positive or negative infinity. If the facet - is called from a stream insertion operator, then the stream will catch that - exception and set either its fail - bit or its bad - bit. Which bit is set is platform - dependent. -

-

- If the trap_infinity flag - is used with nonfinite_num_get, - then the facet will set the fail - bit of the stream when an attempt - is made to parse a string that represents positive or negative infinity. -

-

- (See Design Rationale below for a discussion of this inconsistency.) -

-
- - trap_nan -
-

- Same as trap_infinity, but - positive and negative NaN are trapped instead. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/fpclass.html b/boost/libs/math/doc/html/math_toolkit/fpclass.html deleted file mode 100644 index 15e10c3f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/fpclass.html +++ /dev/null @@ -1,252 +0,0 @@ - - - -Floating-Point Classification: Infinities and NaNs - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#define FP_ZERO        /* implementation specific value */
-#define FP_NORMAL      /* implementation specific value */
-#define FP_INFINITE    /* implementation specific value */
-#define FP_NAN         /* implementation specific value */
-#define FP_SUBNORMAL   /* implementation specific value */
-
-template <class T>
-int fpclassify(T t);
-
-template <class T>
-bool isfinite(T z); // Neither infinity nor NaN.
-
-template <class T>
-bool isinf(T t); // Infinity (+ or -).
-
-template <class T>
-bool isnan(T t); // NaN.
-
-template <class T>
-bool isnormal(T t); // isfinite and not denormalised.
-
-#include <boost\math\special_functions\fpclassify.hpp>
-
-

- to use these functions. -

-
- - Description -
-

- These functions provide the same functionality as the macros with the same - name in C99, indeed if the C99 macros are available, then these functions are - implemented in terms of them, otherwise they rely on std::numeric_limits<> to function. -

-

- Note that the definition of these functions does not suppress the - definition of these names as macros by math.h on those platforms - that already provide these as macros. That mean that the following have differing - meanings: -

-
using namespace boost::math;
-
-// This might call a global macro if defined,
-// but might not work if the type of z is unsupported
-// by the std lib macro:
-isnan(z);
-//
-// This calls the Boost version
-// (found via the "using namespace boost::math" declaration)
-// it works for any type that has numeric_limits support for type z:
-(isnan)(z);
-//
-// As above but with explicit namespace qualification.
-(boost::math::isnan)(z);
-//
-// This will cause a compiler error if isnan is a native macro:
-boost::math::isnan(z);
-// So always use instead:
-(boost::math::isnan)(z);
-//
-// You can also add a using statement,
-// globally to a .cpp file, or to a local function in a .hpp file.
-using boost::math::isnan;
-// so you can write the shorter and less cluttered
-(isnan)(z)
-// But, as above, if isnan is a native macro, this causes a compiler error,
-// because the macro always 'gets' the name first, unless enclosed in () brackets.
-
-

- Detailed descriptions for each of these functions follows: -

-
template <class T>
-int fpclassify(T t);
-
-

- Returns an integer value that classifies the value t: -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- fpclassify value -

-
-

- class of t. -

-
-

- FP_ZERO -

-
-

- If t is zero. -

-
-

- FP_NORMAL -

-
-

- If t is a non-zero, non-denormalised finite - value. -

-
-

- FP_INFINITE -

-
-

- If t is plus or minus infinity. -

-
-

- FP_NAN -

-
-

- If t is a NaN. -

-
-

- FP_SUBNORMAL -

-
-

- If t is a denormalised number. -

-
-
template <class T>
-bool isfinite(T z);
-
-

- Returns true only if z is not an infinity or a NaN. -

-
template <class T>
-bool isinf(T t);
-
-

- Returns true only if z is plus or minus infinity. -

-
template <class T>
-bool isnan(T t);
-
-

- Returns true only if z is a NaN. -

-
template <class T>
-bool isnormal(T t);
-
-

- Returns true only if z is a normal number (not zero, infinite, - NaN, or denormalised). -

-
- - Floating-point - format -
-

- If you wish to find details of the floating-point format for any particular - processor, there is a program -

-

- inspect_fp.cpp -

-

- by Johan Rade which can be used to print out the processor type, endianness, - and detailed bit layout of a selection of floating-point values, including - infinity and NaNs. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/future.html b/boost/libs/math/doc/html/math_toolkit/future.html deleted file mode 100644 index 9b409ff3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/future.html +++ /dev/null @@ -1,148 +0,0 @@ - - - -Extras/Future Directions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Adding - Additional Location and Scale Parameters -
-

- In some modelling applications we require a distribution with a specific location - and scale: often this equates to a specific mean and standard deviation, although - for many distributions the relationship between these properties and the location - and scale parameters are non-trivial. See http://www.itl.nist.gov/div898/handbook/eda/section3/eda364.htm - for more information. -

-

- The obvious way to handle this is via an adapter template: -

-
template <class Dist>
-class scaled_distribution
-{
-   scaled_distribution(
-     const Dist dist,
-     typename Dist::value_type location,
-     typename Dist::value_type scale = 0);
-};
-
-

- Which would then have its own set of overloads for the non-member accessor - functions. -

-
- - An - "any_distribution" class -
-

- It is easy to add a distribution object that virtualises the actual type of - the distribution, and can therefore hold "any" object that conforms - to the conceptual requirements of a distribution: -

-
template <class RealType>
-class any_distribution
-{
-public:
-   template <class Distribution>
-   any_distribution(const Distribution& d);
-};
-
-// Get the cdf of the underlying distribution:
-template <class RealType>
-RealType cdf(const any_distribution<RealType>& d, RealType x);
-// etc....
-
-

- Such a class would facilitate the writing of non-template code that can function - with any distribution type. -

-

- The Statistical - Distribution Explorer utility for Windows is a usage example. -

-

- It's not clear yet whether there is a compelling use case though. Possibly - tests for goodness of fit might provide such a use case: this needs more investigation. -

-
- - Higher - Level Hypothesis Tests -
-

- Higher-level tests roughly corresponding to the Mathematica - Hypothesis Tests package could be added reasonably easily, for example: -

-
template <class InputIterator>
-typename std::iterator_traits<InputIterator>::value_type
-   test_equal_mean(
-     InputIterator a,
-     InputIterator b,
-     typename std::iterator_traits<InputIterator>::value_type expected_mean);
-
-

- Returns the probability that the data in the sequence [a,b) has the mean expected_mean. -

-
- - Integration - With Statistical Accumulators -
-

- Eric - Niebler's accumulator framework - also work in progress - provides - the means to calculate various statistical properties from experimental data. - There is an opportunity to integrate the statistical tests with this framework - at some later date: -

-
// Define an accumulator, all required statistics to calculate the test
-// are calculated automatically:
-accumulator_set<double, features<tag::test_expected_mean> > acc(expected_mean=4);
-// Pass our data to the accumulator:
-acc = std::for_each(mydata.begin(), mydata.end(), acc);
-// Extract the result:
-double p = probability(acc);
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/gcd_credits.html b/boost/libs/math/doc/html/math_toolkit/gcd_credits.html deleted file mode 100644 index 1e94037e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/gcd_credits.html +++ /dev/null @@ -1,52 +0,0 @@ - - - -Credits - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The author of the Boost compilation of GCD and LCM computations is Daryle Walker. - The code was prompted by existing code hiding in the implementations of Paul - Moore's rational library and Steve Cleary's pool library. The code had updates - by Helmut Zeisel. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/gcd_function_object.html b/boost/libs/math/doc/html/math_toolkit/gcd_function_object.html deleted file mode 100644 index 4176e5bb..00000000 --- a/boost/libs/math/doc/html/math_toolkit/gcd_function_object.html +++ /dev/null @@ -1,76 +0,0 @@ - - - -GCD Function Object - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Header: <boost/math/common_factor_rt.hpp> -

-
template < typename IntegerType >
-class boost::math::gcd_evaluator
-{
-public:
-   // Types
-   typedef IntegerType  result_type;
-   typedef IntegerType  first_argument_type;
-   typedef IntegerType  second_argument_type;
-
-   // Function object interface
-   result_type  operator ()( first_argument_type const &a,
-   second_argument_type const &b ) const;
-};
-
-

- The boost::math::gcd_evaluator - class template defines a function object class to return the greatest common - divisor of two integers. The template is parameterized by a single type, called - IntegerType here. This type - should be a numeric type that represents integers. The result of the function - object is always nonnegative, even if either of the operator arguments is negative. -

-

- This function object class template is used in the corresponding version of - the GCD function template. If a numeric type wants to customize evaluations - of its greatest common divisors, then the type should specialize on the gcd_evaluator class template. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/gcd_header.html b/boost/libs/math/doc/html/math_toolkit/gcd_header.html deleted file mode 100644 index d8a70134..00000000 --- a/boost/libs/math/doc/html/math_toolkit/gcd_header.html +++ /dev/null @@ -1,61 +0,0 @@ - - - -Header <boost/math/common_factor.hpp> - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- This header simply includes the headers <boost/math/common_factor_ct.hpp> - and <boost/math/common_factor_rt.hpp>. -

-
- - - - - -
[Note]Note

- This is a legacy header: it used to contain the actual implementation, but - the compile-time and run-time facilities were moved to separate headers (since - they were independent of each other). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/gcd_history.html b/boost/libs/math/doc/html/math_toolkit/gcd_history.html deleted file mode 100644 index 8a7b0546..00000000 --- a/boost/libs/math/doc/html/math_toolkit/gcd_history.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -History - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
    -
  • - 13 May 2013 Moved into main Boost.Math Quickbook documentation. -
  • -
  • - 17 Dec 2005: Converted documentation to Quickbook Format. -
  • -
  • - 2 Jul 2002: Compile-time and run-time items separated to new headers. -
  • -
  • - 7 Nov 2001: Initial version -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/getting_best.html b/boost/libs/math/doc/html/math_toolkit/getting_best.html deleted file mode 100644 index fcd78c3c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/getting_best.html +++ /dev/null @@ -1,177 +0,0 @@ - - - -Getting the Best Performance from this Library: Compiler and Compiler Options - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- By far the most important thing you can do when using this library is turn - on your compiler's optimisation options. As the following table shows the penalty - for using the library in debug mode can be quite large. In addition switching - to 64-bit code has a small but noticeable improvement in performance, as does - switching to a different compiler (Intel C++ 15 in this example). -

-
-

Table 16.1. Compiler Option Comparison on Windows x64

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- cl /Od (x86 build) -

-
-

- cl /arch:sse2 /Ox (x86 build) -

-
-

- cl /Ox (x64 build) -

-
-

- icl /Ox (x64 build) -

-
-

- boost::math::cbrt -

-
-

- 18.29
(256ns)
-

-
-

- 4.29
(60ns)
-

-
-

- 3.14
(44ns)
-

-
-

- 1.00
(14ns)
-

-
-

- boost::math::cyl_bessel_j (integer orders) -

-
-

- 10.03
(742ns)
-

-
-

- 1.77
(131ns)
-

-
-

- 1.36
(101ns)
-

-
-

- 1.00
(74ns)
-

-
-

- boost::math::ibeta_inv -

-
-

- 4.32
(6583ns)
-

-
-

- 1.29
(1963ns)
-

-
-

- 1.28
(1957ns)
-

-
-

- 1.00
(1523ns)
-

-
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/greatest_typdefs.html b/boost/libs/math/doc/html/math_toolkit/greatest_typdefs.html deleted file mode 100644 index 00eff65e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/greatest_typdefs.html +++ /dev/null @@ -1,96 +0,0 @@ - - - -Greatest-width floating-point typedef - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The typedef floatmax_t - designates a floating-point type capable of representing any value of any floating-point - type in a given platform most precisely. -

-

- The greatest-width typedef is - provided for all platforms, but, of course, the size may vary. -

-

- To provide floating-point constants most precisely - representable for a floatmax_t - type, use the macro BOOST_FLOATMAX_C. -

-

- For example, replace a constant 123.4567890123456789012345678901234567890 - with -

-
BOOST_FLOATMAX_C(123.4567890123456789012345678901234567890)
-
-

- If, for example, floatmax_t - is float64_t then the result - will be equivalent to a long double suffixed with L, but if floatmax_t is float128_t - then the result will be equivalent to a quad - type suffixed with Q (assuming, of - course, that float128_t (__float128 or Quad) - is supported). -

-

- If we display with max_digits10, - the maximum possibly significant decimal digits: -

-
#ifdef BOOST_FLOAT32_C
-  std::cout.precision(boost::max_digits10<boost::float32_t>()); // Show all significant decimal digits,
-  std::cout.setf(std::ios::showpoint); // including all significant trailing zeros.
-  std::cout << "BOOST_FLOAT32_C(123.4567890123456789012345678901234567890) = "
-    << BOOST_FLOAT32_C(123.4567890123456789012345678901234567890) << std::endl;
-  //   BOOST_FLOAT32_C(123.4567890123456789012345678901234567890) = 123.456787
-#endif
-
-

- then on a 128-bit platform (GCC 4.8.1 or higher with quadmath): -

-
BOOST_FLOAT32_C(123.4567890123456789012345678901234567890) = 123.456787
-BOOST_FLOAT64_C(123.4567890123456789012345678901234567890) = 123.45678901234568
-BOOST_FLOAT80_C(123.4567890123456789012345678901234567890) = 123.456789012345678903
-BOOST_FLOAT128_C(123.4567890123456789012345678901234567890) = 123.456789012345678901234567890123453
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/hankel.html b/boost/libs/math/doc/html/math_toolkit/hankel.html deleted file mode 100644 index 0051aa89..00000000 --- a/boost/libs/math/doc/html/math_toolkit/hankel.html +++ /dev/null @@ -1,50 +0,0 @@ - - - -Hankel Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/hankel/cyl_hankel.html b/boost/libs/math/doc/html/math_toolkit/hankel/cyl_hankel.html deleted file mode 100644 index d6dc9956..00000000 --- a/boost/libs/math/doc/html/math_toolkit/hankel/cyl_hankel.html +++ /dev/null @@ -1,162 +0,0 @@ - - - -Cyclic Hankel Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
template <class T1, class T2>
-std::complex<calculated-result-type> cyl_hankel_1(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-std::complex<calculated-result-type> cyl_hankel_1(T1 v, T2 x, const Policy&);
-
-template <class T1, class T2>
-std::complex<calculated-result-type> cyl_hankel_2(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-std::complex<calculated-result-type> cyl_hankel_2(T1 v, T2 x, const Policy&);
-
-
- - Description -
-

- The functions cyl_hankel_1 - and cyl_hankel_2 return - the result of the Hankel functions - of the first and second kind respectively: -

-

- cyl_hankel_1(v, x) = Hv(1)(x) = Jv(x) + i Yv(x) -

-

- cyl_hankel_2(v, x) = Hv(2)(x) = Jv(x) - i Yv(x) -

-

- where: -

-

- Jv(x) is the Bessel function of the first kind, and - Yv(x) is the Bessel function of the second kind. -

-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types. - The functions are also optimised for the relatively common case that T1 is - an integer. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- Note that while the arguments to these functions are real values, the results - are complex. That means that the functions can only be instantiated on types - float, double - and long double. - The functions have also been extended to operate over the whole range of - v and x (unlike cyl_bessel_j - and cyl_neumann). -

-
- - Performance -
-

- These functions are generally more efficient than two separate calls to the - underlying Bessel functions as internally Bessel J and Y can be computed - simultaneously. -

-
- - Testing -
-

- There are just a few spot tests to exercise all the special case handling - - the bulk of the testing is done on the Bessel functions upon which these - are based. -

-
- - Accuracy -
-

- Refer to cyl_bessel_j - and cyl_neumann. -

-
- - Implementation -
-

- For x < 0 the following reflection formulae are used: -

-

- - -

-

- - -

-

- - -

-

- Otherwise the implementation is trivially in terms of the Bessel J and Y - functions. -

-

- Note however, that the Hankel functions compute the Bessel J and Y functions - simultaneously, and therefore a single Hankel function call is more efficient - than two Bessel function calls. The one exception is when v - is a small positive integer, in which case the usual Bessel function routines - for integer order are used. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/hankel/sph_hankel.html b/boost/libs/math/doc/html/math_toolkit/hankel/sph_hankel.html deleted file mode 100644 index e9074786..00000000 --- a/boost/libs/math/doc/html/math_toolkit/hankel/sph_hankel.html +++ /dev/null @@ -1,124 +0,0 @@ - - - -Spherical Hankel Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
template <class T1, class T2>
-std::complex<calculated-result-type> sph_hankel_1(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-std::complex<calculated-result-type> sph_hankel_1(T1 v, T2 x, const Policy&);
-
-template <class T1, class T2>
-std::complex<calculated-result-type> sph_hankel_2(T1 v, T2 x);
-
-template <class T1, class T2, class Policy>
-std::complex<calculated-result-type> sph_hankel_2(T1 v, T2 x, const Policy&);
-
-
- - Description -
-

- The functions sph_hankel_1 - and sph_hankel_2 return - the result of the spherical Hankel - functions of the first and second kind respectively: -

-

- -

-

- -

-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types. - The functions are also optimised for the relatively common case that T1 is - an integer. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- Note that while the arguments to these functions are real values, the results - are complex. That means that the functions can only be instantiated on types - float, double - and long double. - The functions have also been extended to operate over the whole range of - v and x (unlike cyl_bessel_j - and cyl_neumann). -

-
- - Testing -
-

- There are just a few spot tests to exercise all the special case handling - - the bulk of the testing is done on the Bessel functions upon which these - are based. -

-
- - Accuracy -
-

- Refer to cyl_bessel_j - and cyl_neumann. -

-
- - Implementation -
-

- These functions are trivially implemented in terms of cyl_hankel_1 - and cyl_hankel_2. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/high_precision.html b/boost/libs/math/doc/html/math_toolkit/high_precision.html deleted file mode 100644 index fffec5c3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/high_precision.html +++ /dev/null @@ -1,111 +0,0 @@ - - - -Using Boost.Math with High-Precision Floating-Point Libraries - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- - -

- The special functions, distributions, constants and tools in this library can - be used with a number of high-precision libraries, including: -

- -

- The last four have some license restrictions; only Boost.Multiprecision - when using the cpp_float backend - can provide an unrestricted Boost - license. -

-

- At present, the price of a free license is slightly lower speed. -

-

- Of course, the main cost of higher precision is very much decreased (usually - at least hundred-fold) computation speed, and big increases in memory use. -

-

- Some libraries offer true arbitrary-precision - arithmetic where the precision is limited only by available memory - and compute time, but most are used at some arbitrarily-fixed precision, say - 100 decimal digits, like Boost.Multiprecision - cpp_dec_float_100. -

-

- Boost.Multiprecision - can operate in both ways, but the most popular choice is likely to be about - a hundred decimal digits, though examples of computing about a million digits - have been demonstrated. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/high_precision/e_float.html b/boost/libs/math/doc/html/math_toolkit/high_precision/e_float.html deleted file mode 100644 index 2853c20c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/high_precision/e_float.html +++ /dev/null @@ -1,68 +0,0 @@ - - - -Using e_float Library - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Boost.Multiprecision - was a development from the e_float - (TOMS Algorithm 910) library by Christopher Kormanyos. -

-

- e_float can still be used with Boost.Math library via the header: -

-
<boost/math/bindings/e_float.hpp>
-
-

- And the type boost::math::ef::e_float: - this type is a thin wrapper class around ::e_float which provides the necessary - syntactic sugar to make everything "just work". -

-

- There is also a concept checking test program for e_float support here. -

-

- New projects are recommended to use Boost.Multiprecision - with cpp_float backend instead. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/high_precision/float128.html b/boost/libs/math/doc/html/math_toolkit/high_precision/float128.html deleted file mode 100644 index 1c3dbf0b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/high_precision/float128.html +++ /dev/null @@ -1,65 +0,0 @@ - - - -Using with GCC's __float128 datatype - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- At present support for GCC's native __float128 - datatype is extremely limited: the numeric constants will all work with that - type, and that's about it. If you want to use the distributions or special - functions then you will need to provide your own wrapper header that: -

-
    -
  • - Provides std::numeric_limits<__float128> support. -
  • -
  • - Provides overloads of the standard library math function for type __float128and which forward to the - libquadmath equivalents. -
  • -
-

- Ultimately these facilities should be provided by GCC and libstdc++. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/high_precision/use_mpfr.html b/boost/libs/math/doc/html/math_toolkit/high_precision/use_mpfr.html deleted file mode 100644 index a8482be3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/high_precision/use_mpfr.html +++ /dev/null @@ -1,117 +0,0 @@ - - - -Using With MPFR or GMP - High-Precision Floating-Point Library - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The special functions and tools in this library can be used with MPFR - (an arbitrary precision number type based on the GNU - Multiple Precision Arithmetic Library), either via the bindings in - boost/math/bindings/mpfr.hpp, - or via boost/math/bindings/mpreal.hpp. -

-

- New projects are recommended to use Boost.Multiprecision - with GMP/MPFR backend instead. -

-

- In order to use these bindings you will need to have installed MPFR - plus its dependency the GMP library. - You will also need one of the two supported C++ wrappers for MPFR: gmpfrxx (or mpfr_class), - or mpfr-C++ (mpreal). -

-

- Unfortunately neither mpfr_class - nor mpreal quite satisfy - our conceptual requirements, so there is a very thin set of additional interfaces - and some helper traits defined in boost/math/bindings/mpfr.hpp - and boost/math/bindings/mpreal.hpp - that you should use in place of including 'gmpfrxx.h' or 'mpreal.h' directly. - The classes mpfr_class or - mpreal are then usable unchanged - once this header is included, so for example mpfr_class's - performance-enhancing expression templates are preserved and fully supported - by this library: -

-
#include <boost/math/bindings/mpfr.hpp>
-#include <boost/math/special_functions/gamma.hpp>
-
-int main()
-{
-   mpfr_class::set_dprec(500); // 500 bit precision
-   //
-   // Note that the argument to tgamma is
-   // an expression template - that's just fine here.
-   //
-   mpfr_class v = boost::math::tgamma(sqrt(mpfr_class(2)));
-   std::cout << std::setprecision(50) << v << std::endl;
-}
-
-

- Alternatively use with mpreal - would look like: -

-
#include <boost/math/bindings/mpreal.hpp>
-#include <boost/math/special_functions/gamma.hpp>
-
-int main()
-{
-   mpfr::mpreal::set_precision(500); // 500 bit precision
-   mpfr::mpreal v = boost::math::tgamma(sqrt(mpfr::mpreal(2)));
-   std::cout << std::setprecision(50) << v << std::endl;
-}
-
-

- For those functions that are based upon the Lanczos - approximation, the bindings defines a series of approximations with - up to 61 terms and accuracy up to approximately 3e-113. This therefore sets - the upper limit for accuracy to the majority of functions defined this library - when used with either mpfr_class - or mpreal. -

-

- There is a concept checking test program for mpfr support here - and here. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/high_precision/use_multiprecision.html b/boost/libs/math/doc/html/math_toolkit/high_precision/use_multiprecision.html deleted file mode 100644 index db2192df..00000000 --- a/boost/libs/math/doc/html/math_toolkit/high_precision/use_multiprecision.html +++ /dev/null @@ -1,364 +0,0 @@ - - - -Using Boost.Multiprecision - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- All new projects are recommended to use Boost.Multiprecision. -

-
- - Using - Boost.Multiprecision cpp_float - for numerical calculations with high precision. -
-

- The Boost.Multiprecision library can be used for computations requiring precision - exceeding that of standard built-in types such as float, double and long - double. For extended-precision calculations, Boost.Multiprecision supplies - a template data type called cpp_dec_float. The number of decimal digits of - precision is fixed at compile-time via template parameter. -

-

- To use these floating-point types and constants, we need some includes: -

-
#include <boost/math/constants/constants.hpp>
-
-#include <boost/multiprecision/cpp_dec_float.hpp>
-// using boost::multiprecision::cpp_dec_float
-
-#include <iostream>
-#include <limits>
-
-

- So now we can demonstrate with some trivial calculations: -

-
int main()
-{
-
-

- Using typedef cpp_dec_float_50 - hides the complexity of multiprecision to allow us to define variables with - 50 decimal digit precision just like built-in double. -

-
using boost::multiprecision::cpp_dec_float_50;
-
-cpp_dec_float_50 seventh = cpp_dec_float_50(1) / 7;
-
-

- By default, output would only show the standard 6 decimal digits, so set - precision to show all 50 significant digits. -

-
std::cout.precision(std::numeric_limits<cpp_dec_float_50>::digits10);
-std::cout << seventh << std::endl;
-
-

- which outputs: -

-
0.14285714285714285714285714285714285714285714285714
-
-

- We can also use constants, guaranteed to be initialized with the very last - bit of precision. -

-
cpp_dec_float_50 circumference = boost::math::constants::pi<cpp_dec_float_50>() * 2 * seventh;
-
-std::cout << circumference << std::endl;
-
-

- which outputs -

-
0.89759790102565521098932668093700082405633411410717
-
-
- - Using - Boost.Multiprecision to generate a high-precision array of sin coefficents - for use with FFT. -
-

- The Boost.Multiprecision library can be used for computations requiring precision - exceeding that of standard built-in types such as float, - double and long - double. For extended-precision calculations, - Boost.Multiprecision supplies a template data type called cpp_dec_float. - The number of decimal digits of precision is fixed at compile-time via template - parameter. -

-

- To use these floating-point types and constants, we need some includes: -

-
#include <boost/math/constants/constants.hpp>
-// using boost::math::constants::pi;
-
-#include <boost/multiprecision/cpp_dec_float.hpp>
-// using boost::multiprecision::cpp_dec_float
-
-#include <iostream>
-#include <limits>
-#include <vector>
-#include <algorithm>
-#include <iomanip>
-#include <iterator>
-#include <fstream>
-
-

- Define a text string which is a C++ comment with the program licence, copyright - etc. You could of course, tailor this to your needs, including your copyright - claim. There are versions of array - provided by Boost.Array in boost::array - or the C++11 std::array, but since not all platforms provide C++11 support, - this program provides the Boost version as fallback. -

-
static const char* prolog =
-{
-  "// Use, modification and distribution are subject to the\n"
-  "// Boost Software License, Version 1.0.\n"
-  "// (See accompanying file LICENSE_1_0.txt\n"
-  "// or copy at ""http://www.boost.org/LICENSE_1_0.txt)\n\n"
-
-  "// Copyright ???? 2013.\n\n"
-
-  "// Use boost/array if std::array (C++11 feature) is not available.\n"
-  "#ifdef  BOOST_NO_CXX11_HDR_ARRAY\n"
-  "#include <boost/array/array.hpp>\n"
-  "#else\n"
-  "#include <array>\n"
-  "#endif\n\n"
-};
-
-
-using boost::multiprecision::cpp_dec_float_50;
-using boost::math::constants::pi;
-// VS 2010 (wrongly) requires these at file scope, not local scope in `main`.
-// This program also requires `-std=c++11` option to compile using Clang and GCC.
-
-int main()
-{
-
-

- One often needs to compute tables of numbers in mathematical software. -

-

- A fast Fourier transform (FFT), for example, may use a table of the values - of sin((π/2n) in its implementation details. In order to maximize the precision - in the FFT implementation, the precision of the tabulated trigonometric values - should exceed that of the built-in floating-point type used in the FFT. -

-

- The sample below computes a table of the values of sin(π/2n) in the range - 1 <= n <= 31. -

-

- This program makes use of, among other program elements, the data type boost::multiprecision::cpp_dec_float_50 for a precision of 50 - decimal digits from Boost.Multiprecision, the value of constant π retrieved - from Boost.Math, guaranteed to be initialized with the very last bit of precision - for the type, here cpp_dec_float_50, - and a C++11 lambda function combined with std::for_each(). -

-

- define the number of values in the array. -

-
std::size_t size = 32U;
-cpp_dec_float_50 p = pi<cpp_dec_float_50>();
-cpp_dec_float_50 p2 = boost::math::constants::pi<cpp_dec_float_50>();
-
-std::vector <cpp_dec_float_50> sin_values (size);
-unsigned n = 1U;
-// Generate the sine values.
-std::for_each
-(
-  sin_values.begin (),
-  sin_values.end (),
-  [&n](cpp_dec_float_50& y)
-  {
-    y = sin( pi<cpp_dec_float_50>() / pow(cpp_dec_float_50 (2), n));
-    ++n;
-  }
-);
-
-

- Define the floating-point type for the generated file, either built-in double, float, - or long double, - or a user defined type like cpp_dec_float_50. -

-
std::string fp_type = "double";
-
-std::cout << "Generating an `std::array` or `boost::array` for floating-point type: "
-  << fp_type << ". " << std::endl;
-
-

- By default, output would only show the standard 6 decimal digits, so set - precision to show enough significant digits for the chosen floating-point - type. For cpp_dec_float_50 - is 50. (50 decimal digits should be ample for most applications). -

-
std::streamsize precision = std::numeric_limits<cpp_dec_float_50>::digits10;
-
-//  std::cout.precision(std::numeric_limits<cpp_dec_float_50>::digits10);
-std::cout << precision << " decimal digits precision. " << std::endl;
-
-

- Of course, one could also choose less, for example, 36 would be sufficient - for the most precise current long - double implementations using 128-bit. - In general, it should be a couple of decimal digits more (guard digits) than - std::numeric_limits<RealType>::max_digits10 for the target system floating-point - type. If the implementation does not provide max_digits10, - the the Kahan formula std::numeric_limits<RealType>::digits - * 3010/10000 + - 2 can be used instead. -

-

- The compiler will read these values as decimal digits strings and use the - nearest representation for the floating-point type. -

-

- Now output all the sine table, to a file of your chosen name. -

-
  const char sines_name[] = "sines.hpp";  // In same directory as .exe
-
-  std::ofstream fout(sines_name, std::ios_base::out);  // Creates if no file exists,
-  // & uses default overwrite/ ios::replace.
-  if (fout.is_open() == false)
-  {  // failed to open OK!
-    std::cout << "Open file " << sines_name << " failed!" << std::endl;
-    return EXIT_FAILURE;
-  }
-  else
-  {
-    std::cout << "Open file " << sines_name << " for output OK." << std::endl;
-    fout << prolog << "// Table of " << sin_values.size() << " values with "
-      << precision << " decimal digits precision,\n"
-      "// generated by program fft_sines_table.cpp.\n" << std::endl;
-
-    fout <<
-"#ifdef BOOST_NO_CXX11_HDR_ARRAY""\n"
- "  static const boost::array<double, " << size << "> sines =\n"
-"#else""\n"
-"  static const std::array<double, " << size << "> sines =\n"
-"#endif""\n"
-    "{{\n"; // 2nd { needed for some GCC compiler versions.
-    fout.precision(precision);
-
-    for (unsigned int i = 0U; ;)
-    {
-      fout << "  " << sin_values[i];
-      if (i == sin_values.size()-1)
-      { // next is last value.
-        fout << "\n}};\n"; // 2nd } needed for some earlier GCC compiler versions.
-        break;
-      }
-      else
-      {
-        fout << ",\n";
-        i++;
-      }
-    }
-
-    fout.close();
-    std::cout << "Close file " << sines_name << " for output OK." << std::endl;
-
-  }
-
-

- The output file generated can be seen at ../../example/sines.hpp -

-

- The table output is: -

-
The printed table is:
-
-  1
-  0.70710678118654752440084436210484903928483593768847
-  0.38268343236508977172845998403039886676134456248563
-  0.19509032201612826784828486847702224092769161775195
-  0.098017140329560601994195563888641845861136673167501
-  0.049067674327418014254954976942682658314745363025753
-  0.024541228522912288031734529459282925065466119239451
-  0.012271538285719926079408261951003212140372319591769
-  0.0061358846491544753596402345903725809170578863173913
-  0.003067956762965976270145365490919842518944610213452
-  0.0015339801862847656123036971502640790799548645752374
-  0.00076699031874270452693856835794857664314091945206328
-  0.00038349518757139558907246168118138126339502603496474
-  0.00019174759731070330743990956198900093346887403385916
-  9.5873799095977345870517210976476351187065612851145e-05
-  4.7936899603066884549003990494658872746866687685767e-05
-  2.3968449808418218729186577165021820094761474895673e-05
-  1.1984224905069706421521561596988984804731977538387e-05
-  5.9921124526424278428797118088908617299871778780951e-06
-  2.9960562263346607504548128083570598118251878683408e-06
-  1.4980281131690112288542788461553611206917585861527e-06
-  7.4901405658471572113049856673065563715595930217207e-07
-  3.7450702829238412390316917908463317739740476297248e-07
-  1.8725351414619534486882457659356361712045272098287e-07
-  9.3626757073098082799067286680885620193236507169473e-08
-  4.681337853654909269511551813854009695950362701667e-08
-  2.3406689268274552759505493419034844037886207223779e-08
-  1.1703344634137277181246213503238103798093456639976e-08
-  5.8516723170686386908097901008341396943900085051757e-09
-  2.9258361585343193579282304690689559020175857150074e-09
-  1.4629180792671596805295321618659637103742615227834e-09
-*/
-
-

- The output can be copied as text and readily integrated into a given source - code. Alternatively, the output can be written to a text or even be used - within a self-written automatic code generator as this example. -

-

- A computer algebra system can be used to verify the results obtained from - Boost.Math and Boost.Multiprecision. For example, the Wolfram - Mathematica computer algebra system can obtain a similar table with - the command: -

-
Table[N[Sin[Pi / (2^n)], 50], {n, 1, 31, 1}]
-
-

- The Wolfram Alpha computational - knowledge engine can also be used to generate this table. The same command - can be pasted into the compute box. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/high_precision/use_ntl.html b/boost/libs/math/doc/html/math_toolkit/high_precision/use_ntl.html deleted file mode 100644 index 4c645152..00000000 --- a/boost/libs/math/doc/html/math_toolkit/high_precision/use_ntl.html +++ /dev/null @@ -1,74 +0,0 @@ - - - -Using NTL Library - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- NTL::RR (an arbitrarily-fixed - precision floating-point number type), can be used via the bindings in boost/math/bindings/rr.hpp. - For details, see NTL: A Library for doing - Number Theory by Victor Shoup. -

-

- New projects are recommended to use Boost.Multiprecision - instead. -

-

- Unfortunately NTL::RR doesn't quite satisfy our conceptual - requirements, so there is a very thin wrapper class boost::math::ntl::RR defined in boost/math/bindings/rr.hpp - that you should use in place of NTL::RR. The - class is intended to be a drop-in replacement for the "real" NTL::RR - that adds some syntactic sugar to keep this library happy, plus some of the - standard library functions not implemented in NTL. -

-

- For those functions that are based upon the Lanczos - approximation, the bindings defines a series of approximations with - up to 61 terms and accuracy up to approximately 3e-113. This therefore sets - the upper limit for accuracy to the majority of functions defined this library - when used with NTL::RR. -

-

- There is a concept checking test program for NTL support here. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/high_precision/using_test.html b/boost/libs/math/doc/html/math_toolkit/high_precision/using_test.html deleted file mode 100644 index d5b886cf..00000000 --- a/boost/libs/math/doc/html/math_toolkit/high_precision/using_test.html +++ /dev/null @@ -1,144 +0,0 @@ - - - -Using without expression templates for Boost.Test and others - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- As noted in the Boost.Multiprecision - documentation, certain program constructs will not compile when using expression - templates. One example that many users may encounter is Boost.Test (1.54 - and earlier) when using macro BOOST_CHECK_CLOSE and BOOST_CHECK_CLOSE_FRACTION. -

-

- If, for example, you wish to use any multiprecision type like cpp_dec_float_50 in place of double to give more precision, you will need - to override the default boost::multiprecision::et_on - with boost::multiprecision::et_off. -

-
#include <boost/multiprecision/cpp_dec_float.hpp>
-
-

- To define a 50 decimal digit type using cpp_dec_float, - you must pass two template parameters to boost::multiprecision::number. -

-

- It may be more legible to use a two-staged type definition such as this: -

-
typedef boost::multiprecision::cpp_dec_float<50> mp_backend;
-typedef boost::multiprecision::number<mp_backend, boost::multiprecision::et_off> cpp_dec_float_50_noet;
-
-

- Here, we first define mp_backend - as cpp_dec_float with 50 - digits. The second step passes this backend to boost::multiprecision::number - with boost::multiprecision::et_off, an enumerated type. -

-
typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<50>, boost::multiprecision::et_off>
-cpp_dec_float_50_noet;
-
-

- You can reduce typing with a using - directive using namespace - boost::multiprecision; - if desired, as shown below. -

-
using namespace boost::multiprecision;
-
-

- Now cpp_dec_float_50_noet - or cpp_dec_float_50_et can - be used as a direct replacement for built-in types like double - etc. -

-
BOOST_AUTO_TEST_CASE(cpp_float_test_check_close_noet)
-{ // No expression templates/
-  typedef number<cpp_dec_float<50>, et_off> cpp_dec_float_50_noet;
-
-  std::cout.precision(std::numeric_limits<cpp_dec_float_50_noet>::digits10); // All significant digits.
-  std::cout << std::showpoint << std::endl; // Show trailing zeros.
-
-  cpp_dec_float_50_noet a ("1.0");
-  cpp_dec_float_50_noet b ("1.0");
-  b += std::numeric_limits<cpp_dec_float_50_noet>::epsilon(); // Increment least significant decimal digit.
-
-  cpp_dec_float_50_noet eps = std::numeric_limits<cpp_dec_float_50_noet>::epsilon();
-
-  std::cout <<"a = " << a << ",\nb = " << b << ",\neps = " << eps << std::endl;
-
-  BOOST_CHECK_CLOSE(a, b, eps * 100); // Expected to pass (because tolerance is as percent).
-  BOOST_CHECK_CLOSE_FRACTION(a, b, eps); // Expected to pass (because tolerance is as fraction).
-
-
-
-} // BOOST_AUTO_TEST_CASE(cpp_float_test_check_close)
-
-BOOST_AUTO_TEST_CASE(cpp_float_test_check_close_et)
-{ // Using expression templates.
-  typedef number<cpp_dec_float<50>, et_on> cpp_dec_float_50_et;
-
-  std::cout.precision(std::numeric_limits<cpp_dec_float_50_et>::digits10); // All significant digits.
-  std::cout << std::showpoint << std::endl; // Show trailing zeros.
-
-  cpp_dec_float_50_et a("1.0");
-  cpp_dec_float_50_et b("1.0");
-  b += std::numeric_limits<cpp_dec_float_50_et>::epsilon(); // Increment least significant decimal digit.
-
-  cpp_dec_float_50_et eps = std::numeric_limits<cpp_dec_float_50_et>::epsilon();
-
-  std::cout << "a = " << a << ",\nb = " << b << ",\neps = " << eps << std::endl;
-
-  BOOST_CHECK_CLOSE(a, b, eps * 100); // Expected to pass (because tolerance is as percent).
-  BOOST_CHECK_CLOSE_FRACTION(a, b, eps); // Expected to pass (because tolerance is as fraction).
-
-

- Using cpp_dec_float_50 with - the default expression template use switched on, the compiler error message - for `BOOST_CHECK_CLOSE_FRACTION(a, b, eps); would be: -

-
// failure floating_point_comparison.hpp(59): error C2440: 'static_cast' :
-// cannot convert from 'int' to 'boost::multiprecision::detail::expression<tag,Arg1,Arg2,Arg3,Arg4>'
-
-

- A full example code is at test_cpp_float_close_fraction.cpp -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/high_precision/why_high_precision.html b/boost/libs/math/doc/html/math_toolkit/high_precision/why_high_precision.html deleted file mode 100644 index 5ff2b0dc..00000000 --- a/boost/libs/math/doc/html/math_toolkit/high_precision/why_high_precision.html +++ /dev/null @@ -1,139 +0,0 @@ - - - -Why use a high-precision library rather than built-in floating-point types? - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- For nearly all applications, the built-in floating-point types, double (and long - double if this offers higher precision - than double) offer enough precision, - typically a dozen decimal digits. -

-

- Some reasons why one would want to use a higher precision: -

-
    -
  • - A much more precise result (many more digits) is just a requirement. -
  • -
  • - The range of the computed value exceeds the range of the type: factorials - are the textbook example. -
  • -
  • - Using double is (or may - be) too inaccurate. -
  • -
  • - Using long double - (or may be) is too inaccurate. -
  • -
  • - Using an extended-precision type implemented in software as double-double - (Darwin) - is sometimes unpredictably inaccurate. -
  • -
  • - Loss of precision or inaccuracy caused by extreme arguments or cancellation - error. -
  • -
  • - An accuracy as good as possible for a chosen built-in floating-point - type is required. -
  • -
  • - As a reference value, for example, to determine the inaccuracy of a value - computed with a built-in floating point type, (perhaps even using some - quick'n'dirty algorithm). The accuracy of many functions and distributions - in Boost.Math has been measured in this way from tables of very high - precision (up to 1000 decimal digits). -
  • -
-

- Many functions and distributions have differences from exact values that - are only a few least significant bits - computation noise. Others, often - those for which analytical solutions are not available, require approximations - and iteration: these may lose several decimal digits of precision. -

-

- Much larger loss of precision can occur for boundary - or corner cases, - often caused by cancellation - errors. -

-

- (Some of the worst and most common examples of cancellation - error or loss of significance can be avoided by using complements: - see why complements?). -

-

- If you require a value which is as accurate as can be represented in the - floating-point type, and is thus the closest representable value and has - an error less than 1/2 a least - significant bit or ulp - it may be useful to use a higher-precision type, for example, cpp_dec_float_50, to generate this value. - Conversion of this value to a built-in floating-point type ('float', double or long - double) will not cause any further - loss of precision. A decimal digit string will also be 'read' precisely by - the compiler into a built-in floating-point type to the nearest representable - value. -

-
- - - - - -
[Note]Note

- In contrast, reading a value from an std::istream - into a built-in floating-point type is not guaranteed - by the C++ Standard to give the nearest representable value. -

-

- William Kahan coined the term Table-Maker's - Dilemma for the problem of correctly rounding functions. Using a - much higher precision (50 or 100 decimal digits) is a practical way of generating - (almost always) correctly rounded values. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/hints.html b/boost/libs/math/doc/html/math_toolkit/hints.html deleted file mode 100644 index 0a9a2ce4..00000000 --- a/boost/libs/math/doc/html/math_toolkit/hints.html +++ /dev/null @@ -1,110 +0,0 @@ - - - -Other Hints and tips - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
    -
  • - If you have a feature request, or if it appears that the implementation - is in error, please search first in the Boost - Trac. -
  • -
  • - Trac entries may - indicate that updates or corrections that solve your problem are in Boost-trunk where changes - are being assembled and tested ready for the next release. You may, at - your own risk, download new versions from there. -
  • -
  • - If you do not understand why things work the way they do, see the rationale - section. -
  • -
  • - If you do not find your idea/feature/complaint, please reach the author - preferably through the Boost development list, or email the author(s) direct. -
  • -
-
- - Admonishments -
-
- - - - - -
[Note]Note

- In addition, notes such as this one specify non-essential information that - provides additional background or rationale. -

-
- - - - - -
[Tip]Tip

- These blocks contain information that you may find helpful while coding. -

-
- - - - - -
[Important]Important

- These contain information that is imperative to understanding a concept. - Failure to follow suggestions in these blocks will probably result in undesired - behavior. Read all of these you find. -

-
- - - - - -
[Warning]Warning

- Failure to heed this will lead to incorrect, and very likely undesired, results. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/history1.html b/boost/libs/math/doc/html/math_toolkit/history1.html deleted file mode 100644 index 89455584..00000000 --- a/boost/libs/math/doc/html/math_toolkit/history1.html +++ /dev/null @@ -1,1047 +0,0 @@ - - - -History and What's New - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Currently open bug reports can be viewed here. -

-

- All bug reports including closed ones can be viewed here. -

-
- - Math-2.5.1 - (Boost-1.63) -
-

- Patches: -

-
    -
  • - Fixed evaluation of zero polynomial in polynomial.hpp, see 12532. -
  • -
  • - Fixed missing header include in boost/math/tools/tuple.hpp, see 12537. -
  • -
-
- - Math-2.5.0 - (Boost-1.62) -
-

- New Features: -

-
  • - Enabled all the special function code to work correctly with types whose - precision can change at runtime: for example type mpfr_float - from Boost.Multiprecision. -
-

- Patches: -

-
    -
  • - Fix tgamma_delta_ratio for cases where the delta is small compared to the - base. -
  • -
  • - Fix misc GCC-4.4 test failures. -
  • -
-
- - Math-2.4.0 - (Boost-1.61) -
-

- New Features: -

-
  • - Polynomial arithmetic added to tools. -
-
- - Math-2.3.0 - (Boost-1.60) -
-

- New Features: -

-
    -
  • - Promote the root finding and function minimization code to first class - citizens - these are now officially supported as part of the library. -
  • -
  • - Allow the library to be used and tested with compiler exception handling - support turned off. To better facilitate this the default error handling - policies have been changed to errno_on_error but only - when the compiler has no exception handling support. -
  • -
-

- Patches: -

-
    -
  • - Fix behaviour of the non-central chi-squared distribution when the non-centrality - parameter is zero to match the chi-squared, see 11557. -
  • -
  • - Fix comments in code for the hypergeometric to match what it actually does, - also fixes the parameter access functions to return the correct values. - See 11556. -
  • -
  • - Stopped using hidden visiblity library build with the Oracle compiler as - it leads to unresolved externals from the C++ standard library. See 11547. -
  • -
  • - Fix unintended use of __declspec when building with Oracle C++. See 11546. -
  • -
  • - Fix corner case bug in root bracketing code, see 11532. -
  • -
  • - Add some missing typecasts in arguments to std::max in Bernoulli code. - See 11453. -
  • -
  • - Fix mistaken assumptions about the possible values for FLT_EVAL_METHOD. - See 11429. -
  • -
  • - Completely revamped performance testing and error-rate measuring code so - we can more easily document how well (or not!) we're doing. This information - will hopefully get more frequently updated in future as it's more or less - automatically generated - see the reporting sub-directory - for more information. -
  • -
  • - Fix some corner cases in the beta, incomplete beta, and incomplete beta - derivative. With thanks to Rocco Romeo. -
  • -
  • - Reorganized the Bessel functions internally to improve the performance - of Jn and Yn. -
  • -
  • - Fixed skewness formula for triangular distribution, see #11768. -
  • -
  • - Fixed some examples so they compile on Unix platforms which have an ::exception - struct declared, see #11827. -
  • -
  • - Correct mistake in triangular distribution skewness formula 11768, - reported by Juan Leni. -
  • -
-
- - Math-2.2.1 -
-

- Patch release for Boost-1.58: -

-
    -
  • - Minor patch - for Haiku support. -
  • -
  • - Fix the decimal digit count for 128-bit floating point types. -
  • -
  • - Fix a few documentation typos. -
  • -
-
- - Math-2.2.0 - (boost-1.58.0) -
-
    -
  • - Added two new special functions - trigamma - and polygamma. -
  • -
  • - Fixed namespace scope constants so they are constexpr on conforming compilers, - see https://svn.boost.org/trac/boost/ticket/10901. -
  • -
  • - Fixed various cases of spurious under/overflow in the incomplete beta and - gamma functions, plus the elliptic integrals, with thanks to Rocco Romeo. -
  • -
  • - Fix 3-arg legendre_p - and legendre_q functions - to not call the policy based overload if the final argument is not actually - a policy. -
  • -
  • - Cleaned up some dead code in the incomplete beta function, see #10985. -
  • -
  • - Fixed extreme-value pdf for large valued inputs, see #10938. -
  • -
  • - Large update to the Elliptic integral code to use Carlson's latest algorithms - - these should be more stable, more accurate and slightly faster than before. - Also added support for Carlson's RG integral. -
  • -
  • - Added ellint_d, jacobi_zeta and heuman_lambda elliptic - integrals. -
  • -
  • - Switched documentation to use SVG rather than PNG graphs and equations - - browsers seem to have finally caught up! -
  • -
-
- - Math-2.1.0 - (boost-1.57.0) -
-
    -
  • - Added Hyperexponential - Distribution. -
  • -
  • - Fix some spurious overflows in the incomplete gamma functions (with thanks - to Rocco Romeo). -
  • -
  • - Fix bug in derivative of incomplete beta when a = b = 0.5 - this also effects - several non-central distributions, see 10480. -
  • -
  • - Fixed some corner cases in round. -
  • -
  • - Don't support 80-bit floats in cstdfloat.hpp if standard library support - is broken. -
  • -
-
- - Math-2.0.0 - (Boost-1.56.0) -
-
-
- - Math-1.9.1 -
-
    -
  • - Fix Geometric distribution use of Policies, see #9833. -
  • -
  • - Fix corner cases in the negative binomial distribution, see #9834. -
  • -
  • - Fix compilation failures on Mac OS. -
  • -
-
- - Math-1.9.0 -
-
-
- - Boost-1.55 -
-
    -
  • - Suppress numerous warnings (mostly from GCC-4.8 and MSVC) #8384, - #8855, - #9107, - #9109.. -
  • -
  • - Fixed PGI compilation issue #8333. -
  • -
  • - Fixed PGI constant value initialization issue that caused erf to generate - incorrect results #8621. -
  • -
  • - Prevent macro expansion of some C99 macros that are also C++ functions - #8732 - and #8733.. -
  • -
  • - Fixed Student's T distribution to behave correctly with huge degrees of - freedom (larger than the largest representable integer) #8837. -
  • -
  • - Make some core functions usable with long - double even when the platform has - no standard library long double support #8940. -
  • -
  • - Fix error handling of distributions to catch invalid scale and location - parameters when the random variable is infinite #9042 - and #9126. -
  • -
  • - Add workaround for broken <tuple> in Intel C++ 14 #9087. -
  • -
  • - Improve consistency of argument reduction in the elliptic integrals #9104. -
  • -
  • - Fix bug in inverse incomplete beta that results in cancellation errors - when the beta function is really an arcsine or Student's T distribution. -
  • -
  • - Fix issue in Bessel I and K function continued fractions that causes spurious - over/underflow. -
  • -
  • -

    - Add improvement to non-central chi squared distribution quantile due to - Thomas Luu, Fast and accurate - parallel computation of quantile functions for random number generation, - Doctorial Thesis 2016. Efficient - and Accurate Parallel Inversion of the Gamma Distribution, Thomas Luu -

    -
    - - Boost-1.54 -
    -
  • -
  • - Major reorganization to incorporate other Boost.Math like Integer Utilities - Integer Utilities (Greatest Common Divisor and Least Common Multiple), - quaternions and octonions. Making new chapter headings. -
  • -
  • - Added many references to Boost.Multiprecision and cpp_dec_float_50 - as an example of a User-defined Type (UDT). -
  • -
  • - Added Clang to list of supported compilers. -
  • -
  • - Fixed constants to use a thread-safe cache of computed values when used - at arbitrary precision. -
  • -
  • - Added finding zeros of Bessel functions cyl_bessel_j_zero, - cyl_neumann_zero, airy_ai_zero and airy_bi_zero(by - Christopher Kormanyos). -
  • -
  • - More accuracy improvements to the Bessel J and Y functions from Rocco Romeo. -
  • -
  • - Fixed nasty cyclic dependency bug that caused some headers to not compile - #7999. -
  • -
  • - Fixed bug in tgamma - that caused spurious overflow for arguments between 142.5 and 143. -
  • -
  • - Fixed bug in raise_rounding_error that caused it to return an incorrect - result when throwing an exception is turned off #7905. -
  • -
  • - Added minimal __float128 support. -
  • -
  • - Fixed bug in edge-cases of poisson quantile #8308. -
  • -
  • - Adjusted heuristics used in Halley iteration to cope with inverting the - incomplete beta in tricky regions where the derivative is flatlining. Example - is computing the quantile of the Fisher F distribution for probabilities - smaller than machine epsilon. See ticket #8314. -
  • -
-
- - Boost-1.53 -
-
    -
  • - Fixed issues #7325, - #7415 - and #7416, - #7183, - #7649, - #7694, - #4445, - #7492, - #7891, - #7429. -
  • -
  • - Fixed mistake in calculating pooled standard deviation in two-sample students - t example #7402. -
  • -
  • - Improve complex acos/asin/atan, see #7290, - #7291. -
  • -
  • - Improve accuracy in some corner cases of cyl_bessel_j - and gamma_p/gamma_q - thanks to suggestions from Rocco Romeo. -
  • -
  • - Improve accuracy of Bessel J and Y for integer orders thanks to suggestions - from Rocco Romeo. -
  • -
-
- - Boost-1.52 -
-
    -
  • - Corrected moments for small degrees of freedom #7177 - (reported by Thomas Mang). -
  • -
  • - Added Airy functions and Jacobi Elliptic functions. -
  • -
  • - Corrected failure to detect bad parameters in many distributions #6934 (reported - by Florian Schoppmann) by adding a function check_out_of_range to test - many possible bad parameters. This test revealed several distributions - where the checks for bad parameters were ineffective, and these have been - rectified. -
  • -
  • - Fixed issue in Hankel functions that causes incorrect values to be returned - for x < 0 and ν odd, see #7135. -
  • -
  • - Fixed issues #6517, - #6362, - #7053, - #2693, - #6937, - #7099. -
  • -
  • - Permitted infinite degrees of freedom #7259 - implemented using the normal distribution (requested by Thomas Mang). -
  • -
  • - Much enhanced accuracy for large degrees of freedom ν and/or large non-centrality - δ -by switching to use the Students t distribution (or Normal distribution - for infinite degrees of freedom) centered at delta, when δ / (4 * ν) < - epsilon for the floating-point type in use. #7259. - It was found that the incomplete beta was suffering from serious cancellation - errors when degrees of freedom was very large. (That has now been fixed - in our code, but any code based on Didonato and Morris's original papers - (probably every implementation out there actually) will have the same issue). -
  • -
-
- - Boost-1.51 -
-

- See Boost-1.52 - some items were added but not listed in time for the release. -

-
- - Boost-1.50 -
-
    -
  • - Promoted math constants to be 1st class citizens, including convenient - access to the most widely used built-in float, double, long double via - three namespaces. -
  • -
  • - Added the Owen's T function and Skew Normal distribution written by Benjamin - Sobotta: see Owens T and skew_normal_distrib. -
  • -
  • - Added Hankel functions cyl_hankel_1, - cyl_hankel_2, sph_hankel_1 and sph_hankel_2. -
  • -
  • - Corrected issue #6627 - nonfinite_num_put formatting of 0.0 is incorrect based on a patch - submitted by K R Walker. -
  • -
  • - Changed constant initialization mechanism so that it is thread safe even - for user-defined types, also so that user defined types get the full precision - of the constant, even when long - double does not. So for example - 128-bit rational approximations will work with UDT's and do the right thing, - even though long double - may be only 64 or 80 bits. -
  • -
  • - Fixed issue in bessel_jy - which causes Y8.5(4π) to yield a NaN. -
  • -
-
- - Boost-1.49 -
-
    -
  • - Deprecated wrongly named twothirds - math constant in favour of two_thirds - (with underscore separator). (issue #6199). -
  • -
  • - Refactored test data and some special function code to improve support - for arbitary precision and/or expression-template-enabled types. -
  • -
  • - Added new faster zeta function evaluation method. -
  • -
-

- Fixed issues: -

-
    -
  • - Corrected CDF complement for Laplace distribution (issue #6151). -
  • -
  • - Corrected branch cuts on the complex inverse trig functions, to handle - signed zeros (issue #6171). -
  • -
  • - Fixed bug in bessel_yn - which caused incorrect overflow errors to be raised for negative n - (issue #6367). -
  • -
  • - Also fixed minor/cosmetic/configuration issues #6120, - #6191, - #5982, - #6130, - #6234, - #6307, - #6192. -
  • -
-
- - Boost-1.48 -
-
    -
  • - Added new series evaluation methods to the cyclic Bessel I, J, K and Y - functions. Also taken great care to avoid spurious over and underflow of - these functions. Fixes issue #5560 -
  • -
  • - Added an example of using Inverse Chi-Squared distribution for Bayesian - statistics, provided by Thomas Mang. -
  • -
  • - Added tests to use improved version of lexical_cast which handles C99 nonfinites - without using globale facets. -
  • -
  • - Corrected wrong out-of-bound uniform distribution CDF complement values - #5733. -
  • -
  • - Enabled long double support on OpenBSD (issue #6014). -
  • -
  • - Changed nextafter and related functions to behave in the same way as other - implementations - so that nextafter(+INF, 0) is a finite value (issue - #5832). -
  • -
  • - Changed tuple include configuration to fix issue when using in conjunction - with Boost.Tr1 (issue #5934). -
  • -
  • - Changed class eps_tolerance to behave correctly when both ends of the range - are zero (issue #6001). -
  • -
  • - Fixed missing include guards on prime.hpp (issue #5927). -
  • -
  • - Removed unused/undocumented constants from constants.hpp (issue #5982). -
  • -
  • - Fixed missing std:: prefix in nonfinite_num_facets.hpp (issue #5914). -
  • -
  • - Minor patches for Cray compiler compatibility. -
  • -
-
- - Boost-1.47 -
-
    -
  • - Added changesign function to sign.hpp to facilitate addition of nonfinite - facets. -
  • -
  • - Addition of nonfinite facets from Johan Rade, with tests, examples of use - for C99 format infinity and NaN, and documentation. -
  • -
  • - Added tests and documentation of changesign from Johan Rade. -
  • -
-
- - Boost-1.46.1 -
-
-
- - Boost-1.46.0 -
-
    -
  • - Added Wald, Inverse Gaussian and geometric distributions. -
  • -
  • - Added information about configuration macros. -
  • -
  • - Added support for mpreal as a real-numbered type. -
  • -
-
- - Boost-1.45.0 -
-
    -
  • - Added warnings about potential ambiguity with std random library in distribution - and function names. -
  • -
  • - Added inverse gamma distribution and inverse chi_square and scaled inverse - chi_square. -
  • -
  • - Editorial revision of documentation, and added FAQ. -
  • -
-
- - Boost-1.44.0 -
-
    -
  • - Fixed incorrect range and support for Rayleigh distribution. -
  • -
  • - Fixed numerical error in the quantile of the Student's T distribution: - the function was returning garbage values for non-integer degrees of freedom - between 2 and 3. -
  • -
-
- - Boost-1.41.0 -
-
  • - Significantly improved performance for the incomplete gamma function and - its inverse. -
-
- - Boost-1.40.0 -
-
    -
  • - Added support for MPFR as a bignum type. -
  • -
  • - Added some full specializations of the policy classes to reduce compile - times. -
  • -
  • - Added logistic and hypergeometric distributions, from Gautam Sewani's Google - Summer of Code project. -
  • -
  • - Added Laplace distribution submitted by Thijs van den Berg. -
  • -
  • - Updated performance test code to include new distributions, and improved - the performance of the non-central distributions. -
  • -
  • - Added SSE2 optimised Lanczos approximation - code, from Gautam Sewani's Google Summer of Code project. -
  • -
  • - Fixed bug in cyl_bessel_i that used an incorrect approximation for ν = 0.5, - also effects the non-central Chi Square Distribution when ν = 3, see bug - report #2877. -
  • -
  • - Fixed minor bugs #2873. -
  • -
-
- - Boost-1.38.0 -
-
    -
  • - Added Johan Råde's optimised floating point classification routines. -
  • -
  • - Fixed code so that it compiles in GCC's -pedantic mode (bug report #1451). -
  • -
-
- - Boost-1.37.0 -
-
  • - Improved accuracy and testing of the inverse hypergeometric functions. -
-
- - Boost-1.36.0 -
-
    -
  • - Added Noncentral Chi Squared Distribution. -
  • -
  • - Added Noncentral Beta Distribution. -
  • -
  • - Added Noncentral F Distribution. -
  • -
  • - Added Noncentral T Distribution. -
  • -
  • - Added Exponential Integral Functions. -
  • -
  • - Added Zeta Function. -
  • -
  • - Added Rounding and Truncation functions. -
  • -
  • - Added Compile time powers of runtime bases. -
  • -
  • - Added SSE2 optimizations for Lanczos evaluation. -
  • -
-
- - Boost-1.35.0: - Post Review First Official Release -
-
    -
  • - Added Policy based framework that allows fine grained control over function - behaviour. -
  • -
  • - Breaking change: Changed default behaviour - for domain, pole and overflow errors to throw an exception (based on review - feedback), this behaviour can be customised using Policy's. -
  • -
  • - Breaking change: Changed exception thrown - when an internal evaluation error occurs to boost::math::evaluation_error. -
  • -
  • - Breaking change: Changed discrete quantiles - to return an integer result: this is anything up to 20 times faster than - finding the true root, this behaviour can be customised using Policy's. -
  • -
  • - Polynomial/rational function evaluation is now customisable and hopefully - faster than before. -
  • -
  • - Added performance test program. -
  • -
-
- - Milestone - 4: Second Review Candidate (1st March 2007) -
-
    -
  • - Moved Xiaogang Zhang's Bessel Functions code into the library, and brought - them into line with the rest of the code. -
  • -
  • - Added C# "Distribution Explorer" demo application. -
  • -
-
- - Milestone - 3: First Review Candidate (31st Dec 2006) -
-
    -
  • - Implemented the main probability distribution and density functions. -
  • -
  • - Implemented digamma. -
  • -
  • - Added more factorial functions. -
  • -
  • - Implemented the Hermite, Legendre and Laguerre polynomials plus the spherical - harmonic functions from TR1. -
  • -
  • - Moved Xiaogang Zhang's elliptic integral code into the library, and brought - them into line with the rest of the code. -
  • -
  • - Moved Hubert Holin's existing Boost.Math special functions into this library - and brought them into line with the rest of the code. -
  • -
-
- - Milestone - 2: Released September 10th 2006 -
-
    -
  • - Implement preview release of the statistical distributions. -
  • -
  • - Added statistical distributions tutorial. -
  • -
  • - Implemented root finding algorithms. -
  • -
  • - Implemented the inverses of the incomplete gamma and beta functions. -
  • -
  • - Rewrite erf/erfc as rational approximations (valid to 128-bit precision). -
  • -
  • - Integrated the statistical results generated from the test data with Boost.Test: - uses a database of expected results, indexed by test, floating point type, - platform, and compiler. -
  • -
  • - Improved lgamma near 1 and 2 (rational approximations). -
  • -
  • - Improved erf/erfc inverses (rational approximations). -
  • -
  • - Implemented Rational function generation (the Remez method). -
  • -
-
- - Milestone - 1: Released March 31st 2006 -
-
    -
  • - Implement gamma/beta/erf functions along with their incomplete counterparts. -
  • -
  • - Generate high quality test data, against which future improvements can - be judged. -
  • -
  • - Provide tools for the evaluation of infinite series, continued fractions, - and rational functions. -
  • -
  • - Provide tools for testing against tabulated test data, and collecting statistics - on error rates. -
  • -
  • - Provide sufficient docs for people to be able to find their way around - the library. -
  • -
-

- SVN Revisions: -

-

- Sandbox and trunk last synchonised at revision: . -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/history2.html b/boost/libs/math/doc/html/math_toolkit/history2.html deleted file mode 100644 index 208a328f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/history2.html +++ /dev/null @@ -1,1047 +0,0 @@ - - - -History and What's New - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Currently open bug reports can be viewed here. -

-

- All bug reports including closed ones can be viewed here. -

-
- - Math-2.5.1 - (Boost-1.63) -
-

- Patches: -

-
    -
  • - Fixed evaluation of zero polynomial in polynomial.hpp, see 12532. -
  • -
  • - Fixed missing header include in boost/math/tools/tuple.hpp, see 12537. -
  • -
-
- - Math-2.5.0 - (Boost-1.62) -
-

- New Features: -

-
  • - Enabled all the special function code to work correctly with types whose - precision can change at runtime: for example type mpfr_float - from Boost.Multiprecision. -
-

- Patches: -

-
    -
  • - Fix tgamma_delta_ratio for cases where the delta is small compared to the - base. -
  • -
  • - Fix misc GCC-4.4 test failures. -
  • -
-
- - Math-2.4.0 - (Boost-1.61) -
-

- New Features: -

-
  • - Polynomial arithmetic added to tools. -
-
- - Math-2.3.0 - (Boost-1.60) -
-

- New Features: -

-
    -
  • - Promote the root finding and function minimization code to first class - citizens - these are now officially supported as part of the library. -
  • -
  • - Allow the library to be used and tested with compiler exception handling - support turned off. To better facilitate this the default error handling - policies have been changed to errno_on_error but only - when the compiler has no exception handling support. -
  • -
-

- Patches: -

-
    -
  • - Fix behaviour of the non-central chi-squared distribution when the non-centrality - parameter is zero to match the chi-squared, see 11557. -
  • -
  • - Fix comments in code for the hypergeometric to match what it actually does, - also fixes the parameter access functions to return the correct values. - See 11556. -
  • -
  • - Stopped using hidden visiblity library build with the Oracle compiler as - it leads to unresolved externals from the C++ standard library. See 11547. -
  • -
  • - Fix unintended use of __declspec when building with Oracle C++. See 11546. -
  • -
  • - Fix corner case bug in root bracketing code, see 11532. -
  • -
  • - Add some missing typecasts in arguments to std::max in Bernoulli code. - See 11453. -
  • -
  • - Fix mistaken assumptions about the possible values for FLT_EVAL_METHOD. - See 11429. -
  • -
  • - Completely revamped performance testing and error-rate measuring code so - we can more easily document how well (or not!) we're doing. This information - will hopefully get more frequently updated in future as it's more or less - automatically generated - see the reporting sub-directory - for more information. -
  • -
  • - Fix some corner cases in the beta, incomplete beta, and incomplete beta - derivative. With thanks to Rocco Romeo. -
  • -
  • - Reorganized the Bessel functions internally to improve the performance - of Jn and Yn. -
  • -
  • - Fixed skewness formula for triangular distribution, see #11768. -
  • -
  • - Fixed some examples so they compile on Unix platforms which have an ::exception - struct declared, see #11827. -
  • -
  • - Correct mistake in triangular distribution skewness formula 11768, - reported by Juan Leni. -
  • -
-
- - Math-2.2.1 -
-

- Patch release for Boost-1.58: -

-
    -
  • - Minor patch - for Haiku support. -
  • -
  • - Fix the decimal digit count for 128-bit floating point types. -
  • -
  • - Fix a few documentation typos. -
  • -
-
- - Math-2.2.0 - (boost-1.58.0) -
-
    -
  • - Added two new special functions - trigamma - and polygamma. -
  • -
  • - Fixed namespace scope constants so they are constexpr on conforming compilers, - see https://svn.boost.org/trac/boost/ticket/10901. -
  • -
  • - Fixed various cases of spurious under/overflow in the incomplete beta and - gamma functions, plus the elliptic integrals, with thanks to Rocco Romeo. -
  • -
  • - Fix 3-arg legendre_p - and legendre_q functions - to not call the policy based overload if the final argument is not actually - a policy. -
  • -
  • - Cleaned up some dead code in the incomplete beta function, see #10985. -
  • -
  • - Fixed extreme-value pdf for large valued inputs, see #10938. -
  • -
  • - Large update to the Elliptic integral code to use Carlson's latest algorithms - - these should be more stable, more accurate and slightly faster than before. - Also added support for Carlson's RG integral. -
  • -
  • - Added ellint_d, jacobi_zeta and heuman_lambda elliptic - integrals. -
  • -
  • - Switched documentation to use SVG rather than PNG graphs and equations - - browsers seem to have finally caught up! -
  • -
-
- - Math-2.1.0 - (boost-1.57.0) -
-
    -
  • - Added Hyperexponential - Distribution. -
  • -
  • - Fix some spurious overflows in the incomplete gamma functions (with thanks - to Rocco Romeo). -
  • -
  • - Fix bug in derivative of incomplete beta when a = b = 0.5 - this also effects - several non-central distributions, see 10480. -
  • -
  • - Fixed some corner cases in round. -
  • -
  • - Don't support 80-bit floats in cstdfloat.hpp if standard library support - is broken. -
  • -
-
- - Math-2.0.0 - (Boost-1.56.0) -
-
-
- - Math-1.9.1 -
-
    -
  • - Fix Geometric distribution use of Policies, see #9833. -
  • -
  • - Fix corner cases in the negative binomial distribution, see #9834. -
  • -
  • - Fix compilation failures on Mac OS. -
  • -
-
- - Math-1.9.0 -
-
-
- - Boost-1.55 -
-
    -
  • - Suppress numerous warnings (mostly from GCC-4.8 and MSVC) #8384, - #8855, - #9107, - #9109.. -
  • -
  • - Fixed PGI compilation issue #8333. -
  • -
  • - Fixed PGI constant value initialization issue that caused erf to generate - incorrect results #8621. -
  • -
  • - Prevent macro expansion of some C99 macros that are also C++ functions - #8732 - and #8733.. -
  • -
  • - Fixed Student's T distribution to behave correctly with huge degrees of - freedom (larger than the largest representable integer) #8837. -
  • -
  • - Make some core functions usable with long - double even when the platform has - no standard library long double support #8940. -
  • -
  • - Fix error handling of distributions to catch invalid scale and location - parameters when the random variable is infinite #9042 - and #9126. -
  • -
  • - Add workaround for broken <tuple> in Intel C++ 14 #9087. -
  • -
  • - Improve consistency of argument reduction in the elliptic integrals #9104. -
  • -
  • - Fix bug in inverse incomplete beta that results in cancellation errors - when the beta function is really an arcsine or Student's T distribution. -
  • -
  • - Fix issue in Bessel I and K function continued fractions that causes spurious - over/underflow. -
  • -
  • -

    - Add improvement to non-central chi squared distribution quantile due to - Thomas Luu, Fast and accurate - parallel computation of quantile functions for random number generation, - Doctorial Thesis 2016. Efficient - and Accurate Parallel Inversion of the Gamma Distribution, Thomas Luu -

    -
    - - Boost-1.54 -
    -
  • -
  • - Major reorganization to incorporate other Boost.Math like Integer Utilities - Integer Utilities (Greatest Common Divisor and Least Common Multiple), - quaternions and octonions. Making new chapter headings. -
  • -
  • - Added many references to Boost.Multiprecision and cpp_dec_float_50 - as an example of a User-defined Type (UDT). -
  • -
  • - Added Clang to list of supported compilers. -
  • -
  • - Fixed constants to use a thread-safe cache of computed values when used - at arbitrary precision. -
  • -
  • - Added finding zeros of Bessel functions cyl_bessel_j_zero, - cyl_neumann_zero, airy_ai_zero and airy_bi_zero(by - Christopher Kormanyos). -
  • -
  • - More accuracy improvements to the Bessel J and Y functions from Rocco Romeo. -
  • -
  • - Fixed nasty cyclic dependency bug that caused some headers to not compile - #7999. -
  • -
  • - Fixed bug in tgamma - that caused spurious overflow for arguments between 142.5 and 143. -
  • -
  • - Fixed bug in raise_rounding_error that caused it to return an incorrect - result when throwing an exception is turned off #7905. -
  • -
  • - Added minimal __float128 support. -
  • -
  • - Fixed bug in edge-cases of poisson quantile #8308. -
  • -
  • - Adjusted heuristics used in Halley iteration to cope with inverting the - incomplete beta in tricky regions where the derivative is flatlining. Example - is computing the quantile of the Fisher F distribution for probabilities - smaller than machine epsilon. See ticket #8314. -
  • -
-
- - Boost-1.53 -
-
    -
  • - Fixed issues #7325, - #7415 - and #7416, - #7183, - #7649, - #7694, - #4445, - #7492, - #7891, - #7429. -
  • -
  • - Fixed mistake in calculating pooled standard deviation in two-sample students - t example #7402. -
  • -
  • - Improve complex acos/asin/atan, see #7290, - #7291. -
  • -
  • - Improve accuracy in some corner cases of cyl_bessel_j - and gamma_p/gamma_q - thanks to suggestions from Rocco Romeo. -
  • -
  • - Improve accuracy of Bessel J and Y for integer orders thanks to suggestions - from Rocco Romeo. -
  • -
-
- - Boost-1.52 -
-
    -
  • - Corrected moments for small degrees of freedom #7177 - (reported by Thomas Mang). -
  • -
  • - Added Airy functions and Jacobi Elliptic functions. -
  • -
  • - Corrected failure to detect bad parameters in many distributions #6934 (reported - by Florian Schoppmann) by adding a function check_out_of_range to test - many possible bad parameters. This test revealed several distributions - where the checks for bad parameters were ineffective, and these have been - rectified. -
  • -
  • - Fixed issue in Hankel functions that causes incorrect values to be returned - for x < 0 and ν odd, see #7135. -
  • -
  • - Fixed issues #6517, - #6362, - #7053, - #2693, - #6937, - #7099. -
  • -
  • - Permitted infinite degrees of freedom #7259 - implemented using the normal distribution (requested by Thomas Mang). -
  • -
  • - Much enhanced accuracy for large degrees of freedom ν and/or large non-centrality - δ -by switching to use the Students t distribution (or Normal distribution - for infinite degrees of freedom) centered at delta, when δ / (4 * ν) < - epsilon for the floating-point type in use. #7259. - It was found that the incomplete beta was suffering from serious cancellation - errors when degrees of freedom was very large. (That has now been fixed - in our code, but any code based on Didonato and Morris's original papers - (probably every implementation out there actually) will have the same issue). -
  • -
-
- - Boost-1.51 -
-

- See Boost-1.52 - some items were added but not listed in time for the release. -

-
- - Boost-1.50 -
-
    -
  • - Promoted math constants to be 1st class citizens, including convenient - access to the most widely used built-in float, double, long double via - three namespaces. -
  • -
  • - Added the Owen's T function and Skew Normal distribution written by Benjamin - Sobotta: see Owens T and skew_normal_distrib. -
  • -
  • - Added Hankel functions cyl_hankel_1, - cyl_hankel_2, sph_hankel_1 and sph_hankel_2. -
  • -
  • - Corrected issue #6627 - nonfinite_num_put formatting of 0.0 is incorrect based on a patch - submitted by K R Walker. -
  • -
  • - Changed constant initialization mechanism so that it is thread safe even - for user-defined types, also so that user defined types get the full precision - of the constant, even when long - double does not. So for example - 128-bit rational approximations will work with UDT's and do the right thing, - even though long double - may be only 64 or 80 bits. -
  • -
  • - Fixed issue in bessel_jy - which causes Y8.5(4π) to yield a NaN. -
  • -
-
- - Boost-1.49 -
-
    -
  • - Deprecated wrongly named twothirds - math constant in favour of two_thirds - (with underscore separator). (issue #6199). -
  • -
  • - Refactored test data and some special function code to improve support - for arbitary precision and/or expression-template-enabled types. -
  • -
  • - Added new faster zeta function evaluation method. -
  • -
-

- Fixed issues: -

-
    -
  • - Corrected CDF complement for Laplace distribution (issue #6151). -
  • -
  • - Corrected branch cuts on the complex inverse trig functions, to handle - signed zeros (issue #6171). -
  • -
  • - Fixed bug in bessel_yn - which caused incorrect overflow errors to be raised for negative n - (issue #6367). -
  • -
  • - Also fixed minor/cosmetic/configuration issues #6120, - #6191, - #5982, - #6130, - #6234, - #6307, - #6192. -
  • -
-
- - Boost-1.48 -
-
    -
  • - Added new series evaluation methods to the cyclic Bessel I, J, K and Y - functions. Also taken great care to avoid spurious over and underflow of - these functions. Fixes issue #5560 -
  • -
  • - Added an example of using Inverse Chi-Squared distribution for Bayesian - statistics, provided by Thomas Mang. -
  • -
  • - Added tests to use improved version of lexical_cast which handles C99 nonfinites - without using globale facets. -
  • -
  • - Corrected wrong out-of-bound uniform distribution CDF complement values - #5733. -
  • -
  • - Enabled long double support on OpenBSD (issue #6014). -
  • -
  • - Changed nextafter and related functions to behave in the same way as other - implementations - so that nextafter(+INF, 0) is a finite value (issue - #5832). -
  • -
  • - Changed tuple include configuration to fix issue when using in conjunction - with Boost.Tr1 (issue #5934). -
  • -
  • - Changed class eps_tolerance to behave correctly when both ends of the range - are zero (issue #6001). -
  • -
  • - Fixed missing include guards on prime.hpp (issue #5927). -
  • -
  • - Removed unused/undocumented constants from constants.hpp (issue #5982). -
  • -
  • - Fixed missing std:: prefix in nonfinite_num_facets.hpp (issue #5914). -
  • -
  • - Minor patches for Cray compiler compatibility. -
  • -
-
- - Boost-1.47 -
-
    -
  • - Added changesign function to sign.hpp to facilitate addition of nonfinite - facets. -
  • -
  • - Addition of nonfinite facets from Johan Rade, with tests, examples of use - for C99 format infinity and NaN, and documentation. -
  • -
  • - Added tests and documentation of changesign from Johan Rade. -
  • -
-
- - Boost-1.46.1 -
-
-
- - Boost-1.46.0 -
-
    -
  • - Added Wald, Inverse Gaussian and geometric distributions. -
  • -
  • - Added information about configuration macros. -
  • -
  • - Added support for mpreal as a real-numbered type. -
  • -
-
- - Boost-1.45.0 -
-
    -
  • - Added warnings about potential ambiguity with std random library in distribution - and function names. -
  • -
  • - Added inverse gamma distribution and inverse chi_square and scaled inverse - chi_square. -
  • -
  • - Editorial revision of documentation, and added FAQ. -
  • -
-
- - Boost-1.44.0 -
-
    -
  • - Fixed incorrect range and support for Rayleigh distribution. -
  • -
  • - Fixed numerical error in the quantile of the Student's T distribution: - the function was returning garbage values for non-integer degrees of freedom - between 2 and 3. -
  • -
-
- - Boost-1.41.0 -
-
  • - Significantly improved performance for the incomplete gamma function and - its inverse. -
-
- - Boost-1.40.0 -
-
    -
  • - Added support for MPFR as a bignum type. -
  • -
  • - Added some full specializations of the policy classes to reduce compile - times. -
  • -
  • - Added logistic and hypergeometric distributions, from Gautam Sewani's Google - Summer of Code project. -
  • -
  • - Added Laplace distribution submitted by Thijs van den Berg. -
  • -
  • - Updated performance test code to include new distributions, and improved - the performance of the non-central distributions. -
  • -
  • - Added SSE2 optimised Lanczos approximation - code, from Gautam Sewani's Google Summer of Code project. -
  • -
  • - Fixed bug in cyl_bessel_i that used an incorrect approximation for ν = 0.5, - also effects the non-central Chi Square Distribution when ν = 3, see bug - report #2877. -
  • -
  • - Fixed minor bugs #2873. -
  • -
-
- - Boost-1.38.0 -
-
    -
  • - Added Johan Råde's optimised floating point classification routines. -
  • -
  • - Fixed code so that it compiles in GCC's -pedantic mode (bug report #1451). -
  • -
-
- - Boost-1.37.0 -
-
  • - Improved accuracy and testing of the inverse hypergeometric functions. -
-
- - Boost-1.36.0 -
-
    -
  • - Added Noncentral Chi Squared Distribution. -
  • -
  • - Added Noncentral Beta Distribution. -
  • -
  • - Added Noncentral F Distribution. -
  • -
  • - Added Noncentral T Distribution. -
  • -
  • - Added Exponential Integral Functions. -
  • -
  • - Added Zeta Function. -
  • -
  • - Added Rounding and Truncation functions. -
  • -
  • - Added Compile time powers of runtime bases. -
  • -
  • - Added SSE2 optimizations for Lanczos evaluation. -
  • -
-
- - Boost-1.35.0: - Post Review First Official Release -
-
    -
  • - Added Policy based framework that allows fine grained control over function - behaviour. -
  • -
  • - Breaking change: Changed default behaviour - for domain, pole and overflow errors to throw an exception (based on review - feedback), this behaviour can be customised using Policy's. -
  • -
  • - Breaking change: Changed exception thrown - when an internal evaluation error occurs to boost::math::evaluation_error. -
  • -
  • - Breaking change: Changed discrete quantiles - to return an integer result: this is anything up to 20 times faster than - finding the true root, this behaviour can be customised using Policy's. -
  • -
  • - Polynomial/rational function evaluation is now customisable and hopefully - faster than before. -
  • -
  • - Added performance test program. -
  • -
-
- - Milestone - 4: Second Review Candidate (1st March 2007) -
-
    -
  • - Moved Xiaogang Zhang's Bessel Functions code into the library, and brought - them into line with the rest of the code. -
  • -
  • - Added C# "Distribution Explorer" demo application. -
  • -
-
- - Milestone - 3: First Review Candidate (31st Dec 2006) -
-
    -
  • - Implemented the main probability distribution and density functions. -
  • -
  • - Implemented digamma. -
  • -
  • - Added more factorial functions. -
  • -
  • - Implemented the Hermite, Legendre and Laguerre polynomials plus the spherical - harmonic functions from TR1. -
  • -
  • - Moved Xiaogang Zhang's elliptic integral code into the library, and brought - them into line with the rest of the code. -
  • -
  • - Moved Hubert Holin's existing Boost.Math special functions into this library - and brought them into line with the rest of the code. -
  • -
-
- - Milestone - 2: Released September 10th 2006 -
-
    -
  • - Implement preview release of the statistical distributions. -
  • -
  • - Added statistical distributions tutorial. -
  • -
  • - Implemented root finding algorithms. -
  • -
  • - Implemented the inverses of the incomplete gamma and beta functions. -
  • -
  • - Rewrite erf/erfc as rational approximations (valid to 128-bit precision). -
  • -
  • - Integrated the statistical results generated from the test data with Boost.Test: - uses a database of expected results, indexed by test, floating point type, - platform, and compiler. -
  • -
  • - Improved lgamma near 1 and 2 (rational approximations). -
  • -
  • - Improved erf/erfc inverses (rational approximations). -
  • -
  • - Implemented Rational function generation (the Remez method). -
  • -
-
- - Milestone - 1: Released March 31st 2006 -
-
    -
  • - Implement gamma/beta/erf functions along with their incomplete counterparts. -
  • -
  • - Generate high quality test data, against which future improvements can - be judged. -
  • -
  • - Provide tools for the evaluation of infinite series, continued fractions, - and rational functions. -
  • -
  • - Provide tools for testing against tabulated test data, and collecting statistics - on error rates. -
  • -
  • - Provide sufficient docs for people to be able to find their way around - the library. -
  • -
-

- SVN Revisions: -

-

- Sandbox and trunk last synchonised at revision: . -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/internals.html b/boost/libs/math/doc/html/math_toolkit/internals.html deleted file mode 100644 index 651607f6..00000000 --- a/boost/libs/math/doc/html/math_toolkit/internals.html +++ /dev/null @@ -1,57 +0,0 @@ - - - -Internal tools - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/internals/cf.html b/boost/libs/math/doc/html/math_toolkit/internals/cf.html deleted file mode 100644 index 47fe44a6..00000000 --- a/boost/libs/math/doc/html/math_toolkit/internals/cf.html +++ /dev/null @@ -1,281 +0,0 @@ - - - -Continued Fraction Evaluation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/tools/fraction.hpp>
-
-
namespace boost{ namespace math{ namespace tools{
-
-template <class Gen, class U>
-typename detail::fraction_traits<Gen>::result_type
-   continued_fraction_b(Gen& g, const U& tolerance, boost::uintmax_t& max_terms)
-
-template <class Gen, class U>
-typename detail::fraction_traits<Gen>::result_type
-   continued_fraction_b(Gen& g, const U& tolerance)
-
-template <class Gen, class U>
-typename detail::fraction_traits<Gen>::result_type
-   continued_fraction_a(Gen& g, const U& tolerance, boost::uintmax_t& max_terms)
-
-template <class Gen, class U>
-typename detail::fraction_traits<Gen>::result_type
-   continued_fraction_a(Gen& g, const U& tolerance)
-
-//
-// These interfaces are present for legacy reasons, and are now deprecated:
-//
-template <class Gen>
-typename detail::fraction_traits<Gen>::result_type
-   continued_fraction_b(Gen& g, int bits);
-
-template <class Gen>
-typename detail::fraction_traits<Gen>::result_type
-   continued_fraction_b(Gen& g, int bits, boost::uintmax_t& max_terms);
-
-template <class Gen>
-typename detail::fraction_traits<Gen>::result_type
-   continued_fraction_a(Gen& g, int bits);
-
-template <class Gen>
-typename detail::fraction_traits<Gen>::result_type
-   continued_fraction_a(Gen& g, int bits, boost::uintmax_t& max_terms);
-
-}}} // namespaces
-
-
- - Description -
-

- Continued fractions - are a common method of approximation. These functions all evaluate - the continued fraction described by the generator type - argument. The functions with an "_a" suffix evaluate the fraction: -

-

- -

-

- and those with a "_b" suffix evaluate the fraction: -

-

- -

-

- This latter form is somewhat more natural in that it corresponds with the - usual definition of a continued fraction, but note that the first a - value returned by the generator is discarded. Further, often the first a - and b values in a continued fraction have different - defining equations to the remaining terms, which may make the "_a" - suffixed form more appropriate. -

-

- The generator type should be a function object which supports the following - operations: -

-
---- - - - - - - - - - - - - - - -
-

- Expression -

-
-

- Description -

-
-

- Gen::result_type -

-
-

- The type that is the result of invoking operator(). This can be - either an arithmetic type, or a std::pair<> of arithmetic - types. -

-
-

- g() -

-
-

- Returns an object of type Gen::result_type. -

-

- Each time this operator is called then the next pair of a - and b values is returned. Or, if result_type - is an arithmetic type, then the next b value - is returned and all the a values are assumed - to 1. -

-
-

- In all the continued fraction evaluation functions the tolerance - parameter is the precision desired in the result, evaluation of the fraction - will continue until the last term evaluated leaves the relative error in - the result less than tolerance. The deprecated interfaces - take a number of digits precision here, internally they just convert this - to a tolerance and forward call. -

-

- If the optional max_terms parameter is specified then - no more than max_terms calls to the generator will be - made, and on output, max_terms will be set to actual - number of calls made. This facility is particularly useful when profiling - a continued fraction for convergence. -

-
- - Implementation -
-

- Internally these algorithms all use the modified Lentz algorithm: refer to - Numeric Recipes in C++, W. H. Press et all, chapter 5, (especially 5.2 Evaluation - of continued fractions, p 175 - 179) for more information, also Lentz, W.J. - 1976, Applied Optics, vol. 15, pp. 668-671. -

-
- - Examples -
-

- The golden ratio phi - = 1.618033989... can be computed from the simplest continued fraction - of all: -

-

- -

-

- We begin by defining a generator function: -

-
template <class T>
-struct golden_ratio_fraction
-{
-   typedef T result_type;
-
-   result_type operator()
-   {
-      return 1;
-   }
-};
-
-

- The golden ratio can then be computed to double precision using: -

-
continued_fraction_a(
-   golden_ratio_fraction<double>(),
-   std::numeric_limits<double>::epsilon());
-
-

- It's more usual though to have to define both the a's - and the b's when evaluating special functions by continued - fractions, for example the tan function is defined by: -

-

- -

-

- So its generator object would look like: -

-
template <class T>
-struct tan_fraction
-{
-private:
-   T a, b;
-public:
-   tan_fraction(T v)
-      : a(-v*v), b(-1)
-   {}
-
-   typedef std::pair<T,T> result_type;
-
-   std::pair<T,T> operator()()
-   {
-      b += 2;
-      return std::make_pair(a, b);
-   }
-};
-
-

- Notice that if the continuant is subtracted from the b - terms, as is the case here, then all the a terms returned - by the generator will be negative. The tangent function can now be evaluated - using: -

-
template <class T>
-T tan(T a)
-{
-   tan_fraction<T> fract(a);
-   return a / continued_fraction_b(fract, std::numeric_limits<T>::epsilon());
-}
-
-

- Notice that this time we're using the "_b" suffixed version to - evaluate the fraction: we're removing the leading a - term during fraction evaluation as it's different from all the others. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/internals/error_test.html b/boost/libs/math/doc/html/math_toolkit/internals/error_test.html deleted file mode 100644 index 81d4ee95..00000000 --- a/boost/libs/math/doc/html/math_toolkit/internals/error_test.html +++ /dev/null @@ -1,237 +0,0 @@ - - - -Relative Error and Testing - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/tools/test.hpp>
-
-
- - - - - -
[Important]Important

- The header boost/math/tools/test.hpp is located under libs/math/include_private - and is not installed to the usual locations by default, you will need to - add libs/math/include_private to your compiler's include - path in order to use this header. -

-
template <class T>
-T relative_error(T a, T b);
-
-template <class A, class F1, class F2>
-test_result<see-below> test(const A& a, F1 test_func, F2 expect_func);
-
-
- - Description -
-
template <class T>
-T relative_error(T a, T v);
-
-

- Returns the relative error between a and v - using the usual formula: -

-

- -

-

- In addition the value returned is zero if: -

-
    -
  • - Both a and v are infinite. -
  • -
  • - Both a and v are denormalised - numbers or zero. -
  • -
-

- Otherwise if only one of a and v - is zero then the value returned is 1. -

-
template <class A, class F1, class F2>
-test_result<see-below> test(const A& a, F1 test_func, F2 expect_func);
-
-

- This function is used for testing a function against tabulated test data. -

-

- The return type contains statistical data on the relative errors (max, mean, - variance, and the number of test cases etc), as well as the row of test data - that caused the largest relative error. Public members of type test_result - are: -

-
-

-
-
unsigned worst()const;
-

- Returns the row at which the worst error occurred. -

-
T min()const;
-

- Returns the smallest relative error found. -

-
T max()const;
-

- Returns the largest relative error found. -

-
T mean()const;
-

- Returns the mean error found. -

-
boost::uintmax_t count()const;
-

- Returns the number of test cases. -

-
T variance()const;
-

- Returns the variance of the errors found. -

-
T variance1()const;
-

- Returns the unbiased variance of the errors found. -

-
T rms()const
-

- Returns the Root Mean Square, or quadratic mean of the errors. -

-
test_result& - operator+=(const test_result& t)
-

- Combines two test_result's into a single result. -

-
-
-

- The template parameter of test_result, is the same type as the values in - the two dimensional array passed to function test, roughly - that's A::value_type::value_type. -

-

- Parameter a is a matrix of test data: and must be a - standard library Sequence type, that contains another Sequence type: typically - it will be a two dimensional instance of boost::array. - Each row of a should contain all the parameters that - are passed to the function under test as well as the expected result. -

-

- Parameter test_func is the function under test, it is - invoked with each row of test data in a. Typically type - F1 is created with Boost.Lambda: see the example below. -

-

- Parameter expect_func is a functor that extracts the - expected result from a row of test data in a. Typically - type F2 is created with Boost.Lambda: see the example below. -

-

- If the function under test returns a non-finite value when a finite result - is expected, or if a gross error is found, then a message is sent to std::cerr, - and a call to BOOST_ERROR() made (which means that including this header - requires you use Boost.Test). This is mainly a debugging/development aid - (and a good place for a breakpoint). -

-
- - Example -
-

- Suppose we want to test the tgamma and lgamma functions, we can create a - two dimensional matrix of test data, each row is one test case, and contains - three elements: the input value, and the expected results for the tgamma - and lgamma functions respectively. -

-
static const boost::array<boost::array<TestType, 3>, NumberOfTests>
-   factorials = {
-      /* big array of test data goes here */
-   };
-
-

- Now we can invoke the test function to test tgamma: -

-
using namespace boost::math::tools;
-using namespace boost::lambda;
-
-// get a pointer to the function under test:
-TestType (*funcp)(TestType) = boost::math::tgamma;
-
-// declare something to hold the result:
-test_result<TestType> result;
-//
-// and test tgamma against data:
-//
-result = test(
-   factorials,
-   bind(funcp, ret<TestType>(_1[0])), // calls tgamma with factorials[row][0]
-   ret<TestType>(_1[1])               // extracts the expected result from factorials[row][1]
-);
-//
-// Print out some results:
-//
-std::cout << "The Mean was " << result.mean() << std::endl;
-std::cout << "The worst error was " << (result.max)() << std::endl;
-std::cout << "The worst error was at row " << result.worst_case() << std::endl;
-//
-// same again with lgamma this time:
-//
-funcp = boost::math::lgamma;
-result = test(
-   factorials,
-   bind(funcp, ret<TestType>(_1[0])), // calls tgamma with factorials[row][0]
-   ret<TestType>(_1[2])               // extracts the expected result from factorials[row][2]
-);
-//
-// etc ...
-//
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/internals/minimax.html b/boost/libs/math/doc/html/math_toolkit/internals/minimax.html deleted file mode 100644 index f641a5b8..00000000 --- a/boost/libs/math/doc/html/math_toolkit/internals/minimax.html +++ /dev/null @@ -1,283 +0,0 @@ - - - -Minimax Approximations and the Remez Algorithm - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The directory libs/math/minimax contains a command line driven program for - the generation of minimax approximations using the Remez algorithm. Both - polynomial and rational approximations are supported, although the latter - are tricky to converge: it is not uncommon for convergence of rational forms - to fail. No such limitations are present for polynomial approximations which - should always converge smoothly. -

-

- It's worth stressing that developing rational approximations to functions - is often not an easy task, and one to which many books have been devoted. - To use this tool, you will need to have a reasonable grasp of what the Remez - algorithm is, and the general form of the approximation you want to achieve. -

-

- Unless you already familar with the Remez method, you should first read the - brief background article explaining the - principles behind the Remez algorithm. -

-

- The program consists of two parts: -

-
-

-
-
main.cpp
-

- Contains the command line parser, and all the calls to the Remez code. -

-
f.cpp
-

- Contains the function to approximate. -

-
-
-

- Therefore to use this tool, you must modify f.cpp to return the function - to approximate. The tools supports multiple function approximations within - the same compiled program: each as a separate variant: -

-
NTL::RR f(const NTL::RR& x, int variant);
-
-

- Returns the value of the function variant at point - x. So if you wish you can just add the function to approximate - as a new variant after the existing examples. -

-

- In addition to those two files, the program needs to be linked to a patched NTL library to compile. -

-

- Note that the function f must return the rational part - of the approximation: for example if you are approximating a function f(x) - then it is quite common to use: -

-
f(x) = g(x)(Y + R(x))
-
-

- where g(x) is the dominant part of f(x), - Y is some constant, and R(x) is - the rational approximation part, usually optimised for a low absolute error - compared to |Y|. -

-

- In this case you would define f to return f(x)/g(x) - and then set the y-offset of the approximation to Y - (see command line options below). -

-

- Many other forms are possible, but in all cases the objective is to split - f(x) into a dominant part that you can evaluate easily - using standard math functions, and a smooth and slowly changing rational - approximation part. Refer to your favourite textbook for more examples. -

-

- Command line options for the program are as follows: -

-
-

-
-
variant N
-

- Sets the current function variant to N. This allows multiple functions - that are to be approximated to be compiled into the same executable. - Defaults to 0. -

-
range a b
-

- Sets the domain for the approximation to the range [a,b], defaults - to [0,1]. -

-
relative
-

- Sets the Remez code to optimise for relative error. This is the default - at program startup. Note that relative error can only be used if f(x) - has no roots over the range being optimised. -

-
absolute
-

- Sets the Remez code to optimise for absolute error. -

-
pin [true|false]
-

- "Pins" the code so that the rational approximation passes - through the origin. Obviously only set this to true - if R(0) must be zero. This is typically used when trying to preserve - a root at [0,0] while also optimising for relative error. -

-
order N D
-

- Sets the order of the approximation to N in the - numerator and D in the denominator. If D - is zero then the result will be a polynomial approximation. There will - be N+D+2 coefficients in total, the first coefficient of the numerator - is zero if pin was set to true, and the first - coefficient of the denominator is always one. -

-
working-precision N
-

- Sets the working precision of NTL::RR to N binary - digits. Defaults to 250. -

-
target-precision N
-

- Sets the precision of printed output to N binary - digits: set to the same number of digits as the type that will be used - to evaluate the approximation. Defaults to 53 (for double precision). -

-
skew val
-

- "Skews" the initial interpolated control points towards one - end or the other of the range. Positive values skew the initial control - points towards the left hand side of the range, and negative values - towards the right hand side. If an approximation won't converge (a - common situation) try adjusting the skew parameter until the first - step yields the smallest possible error. val should - be in the range [-100,+100], the default is zero. -

-
brake val
-

- Sets a brake on each step so that the change in the control points - is braked by val%. Defaults to 50, try a higher - value if an approximation won't converge, or a lower value to get speedier - convergence. -

-
x-offset val
-

- Sets the x-offset to val: the approximation will - be generated for f(S * (x + X)) + Y - where X is the x-offset, S - is the x-scale and Y is the y-offset. Defaults - to zero. To avoid rounding errors, take care to specify a value that - can be exactly represented as a floating point number. -

-
x-scale val
-

- Sets the x-scale to val: the approximation will - be generated for f(S * (x + X)) + Y - where S is the x-scale, X - is the x-offset and Y is the y-offset. Defaults - to one. To avoid rounding errors, take care to specify a value that - can be exactly represented as a floating point number. -

-
y-offset val
-

- Sets the y-offset to val: the approximation will - be generated for f(S * (x + X)) + Y - where X is the x-offset, S - is the x-scale and Y is the y-offset. Defaults - to zero. To avoid rounding errors, take care to specify a value that - can be exactly represented as a floating point number. -

-
y-offset auto
-

- Sets the y-offset to the average value of f(x) evaluated at the two - endpoints of the range plus the midpoint of the range. The calculated - value is deliberately truncated to float precision - (and should be stored as a float in your code). - The approximation will be generated for f(x + X) + Y where X is - the x-offset and Y is the y-offset. Defaults to - zero. -

-
graph N
-

- Prints N evaluations of f(x) at evenly spaced points over the range - being optimised. If unspecified then N defaults - to 3. Use to check that f(x) is indeed smooth over the range of interest. -

-
step N
-

- Performs N steps, or one step if N - is unspecified. After each step prints: the peek error at the extrema - of the error function of the approximation, the theoretical error term - solved for on the last step, and the maximum relative change in the - location of the Chebyshev control points. The approximation is converged - on the minimax solution when the two error terms are (approximately) - equal, and the change in the control points has decreased to a suitably - small value. -

-
test [float|double|long]
-

- Tests the current approximation at float, double, or long double precision. - Useful to check for rounding errors in evaluating the approximation - at fixed precision. Tests are conducted at the extrema of the error - function of the approximation, and at the zeros of the error function. -

-
test [float|double|long] N
-

- Tests the current approximation at float, double, or long double precision. - Useful to check for rounding errors in evaluating the approximation - at fixed precision. Tests are conducted at N evenly spaced points over - the range of the approximation. If none of [float|double|long] are - specified then tests using NTL::RR, this can be used to obtain the - error function of the approximation. -

-
rescale a b
-

- Takes the current Chebeshev control points, and rescales them over - a new interval [a,b]. Sometimes this can be used to obtain starting - control points for an approximation that can not otherwise be converged. -

-
rotate
-

- Moves one term from the numerator to the denominator, but keeps the - Chebyshev control points the same. Sometimes this can be used to obtain - starting control points for an approximation that can not otherwise - be converged. -

-
info
-

- Prints out the current approximation: the location of the zeros of - the error function, the location of the Chebyshev control points, the - x and y offsets, and of course the coefficients of the polynomials. -

-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/internals/polynomials.html b/boost/libs/math/doc/html/math_toolkit/internals/polynomials.html deleted file mode 100644 index eac94197..00000000 --- a/boost/libs/math/doc/html/math_toolkit/internals/polynomials.html +++ /dev/null @@ -1,278 +0,0 @@ - - - -Polynomials - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/tools/polynomial.hpp>
-
-
namespace boost{ namespace math{ namespace tools{
-
-template <class T>
-class polynomial
-{
-public:
-   // typedefs:
-   typedef typename std::vector<T>::value_type value_type;
-   typedef typename std::vector<T>::size_type  size_type;
-
-   // construct:
-   polynomial(){}
-   template <class U>
-   polynomial(const U* data, unsigned order);
-   template <class I>
-   polynomial(I first, I last);
-   template <class U>
-   explicit polynomial(const U& point);
-
-   // access:
-   size_type size()const;
-   size_type degree()const;
-   value_type& operator[](size_type i);
-   const value_type& operator[](size_type i)const;
-   std::vector<T> const& data() const;
-   std::vector<T>& data();
-
-   // operators:
-   template <class U>
-   polynomial& operator +=(const U& value);
-   template <class U>
-   polynomial& operator -=(const U& value);
-   template <class U>
-   polynomial& operator *=(const U& value);
-   template <class U>
-   polynomial& operator /=(const U& value);
-   template <class U>
-   polynomial& operator %=(const U& value);
-   template <class U>
-   polynomial& operator +=(const polynomial<U>& value);
-   template <class U>
-   polynomial& operator -=(const polynomial<U>& value);
-   template <class U>
-   polynomial& operator *=(const polynomial<U>& value);
-   template <class U>
-   polynomial& operator /=(const polynomial<U>& value);
-   template <class U>
-   polynomial& operator %=(const polynomial<U>& value);
-};
-
-template <class T>
-polynomial<T> operator + (const polynomial<T>& a, const polynomial<T>& b);
-template <class T>
-polynomial<T> operator - (const polynomial<T>& a, const polynomial<T>& b);
-template <class T>
-polynomial<T> operator * (const polynomial<T>& a, const polynomial<T>& b);
-template <class T>
-polynomial<T> operator / (const polynomial<T>& a, const polynomial<T>& b);
-template <class T>
-polynomial<T> operator % (const polynomial<T>& a, const polynomial<T>& b);
-
-template <class T, class U>
-polynomial<T> operator + (const polynomial<T>& a, const U& b);
-template <class T, class U>
-polynomial<T> operator - (const polynomial<T>& a, const U& b);
-template <class T, class U>
-polynomial<T> operator * (const polynomial<T>& a, const U& b);
-template <class T, class U>
-polynomial<T> operator / (const polynomial<T>& a, const U& b);
-template <class T, class U>
-polynomial<T> operator % (const polynomial<T>& a, const U& b);
-
-template <class U, class T>
-polynomial<T> operator + (const U& a, const polynomial<T>& b);
-template <class U, class T>
-polynomial<T> operator - (const U& a, const polynomial<T>& b);
-template <class U, class T>
-polynomial<T> operator * (const U& a, const polynomial<T>& b);
-
-template <class T>
-polynomial<T> operator - (const polynomial<T>& a);
-
-template <class T>
-bool operator == (const polynomial<T> &a, const polynomial<T> &b);
-template <class T>
-bool operator != (const polynomial<T> &a, const polynomial<T> &b);
-
-template <class charT, class traits, class T>
-std::basic_ostream<charT, traits>& operator <<
-   (std::basic_ostream<charT, traits>& os, const polynomial<T>& poly);
-
-template <typename T>
-std::pair< polynomial<T>, polynomial<T> >
-quotient_remainder(const polynomial<T>& a, const polynomial<T>& b);
-
-}}} // namespaces
-
-
- - Description -
-

- This is a somewhat trivial class for polynomial manipulation. -

-

- Implementation is currently of the "naive" variety, with 𝑶(N2) multiplication, - for example. This class should not be used in high-performance computing - environments: it is intended for the simple manipulation of small polynomials, - typically generated for special function approximation. -

-

- It does has division for polynomials over a field (floating point, complex, - etc) and over a unique factorization domain (integers). Division of polynomials - over a field is compatible with Euclidean GCD. -

-

- Advanced manipulations: the FFT, factorisation etc are not currently provided. - Submissions for these are of course welcome :-) -

-
- - Polynomial - Arithmetic Examples -
-

- First include the essential polynomial header (and others) to make the example: -

-
#include <boost/math/tools/polynomial.hpp>
-
-

- and some using statements are convenient: -

-
using std::string;
-using std::exception;
-using std::cout;
-using std::abs;
-using std::pair;
-
-using namespace boost::math;
-using namespace boost::math::tools;
-using boost::lexical_cast;
-
-

- Store the coefficients in a convenient way to access them, then create some - polynomials using construction from an iterator range, and finally output - in a 'pretty' formula format. -

-
- - - - - -
[Tip]Tip

- Although we might conventionally write a polynomial from left to right - in descending order of degree, Boost.Math stores in ascending - order of degree. -

-
Read/write for humans:    3x^3 - 4x^2 - 6x + 10
-Boost polynomial storage: [ 10, -6, -4, 3 ]
-
-
  boost::array<double, 4> const d3a = {{10, -6, -4, 3}};
-  boost::array<double, 2> const d1a = {{-2, 1}};
-  polynomial<double> const a(d3a.begin(), d3a.end());
-  polynomial<double> const b(d1a.begin(), d1a.end());
-// pretty_format() converts from Boost storage to human notation.
-  cout << "a = " << pretty_format(a)
-  << "\nb = " << pretty_format(b) << "\n\n";
-
-

- for output: -

-
a = 3x^3 - 4x^2 - 6x + 10
-b = x - 2
-
-
// Now we can do arithmetic with the usual infix operators: + - * / and %.
-  polynomial<double> s = a + b;
-  cout << "a + b = " << pretty_format(s) << "\n";
-  polynomial<double> d = a - b;
-  cout << "a - b = " << pretty_format(d) << "\n";
-  polynomial<double> p = a * b;
-  cout << "a * b = " << pretty_format(p) << "\n";
-  polynomial<double> q = a / b;
-  cout << "a / b = " << pretty_format(q) << "\n";
-  polynomial<double> r = a % b;
-  cout << "a % b = " << pretty_format(r) << "\n";
-
-

- for output -

-
a + b = 3x^3 - 4x^2 - 5x + 8
-a - b = 3x^3 - 4x^2 - 7x + 12
-a * b = 3x^4 - 10x^3 + 2x^2 + 22x - 20
-a / b = 3x^2 + 2x - 2
-a % b = 6
-
-
- - Division, - Quotient and Remainder -
-

- Division is a special case where you can calculate two for the price of one. -

-

- Actually, quotient and remainder are always calculated together due to the - nature of the algorithm: the infix operators return one result and throw - the other away. -

-

- If you are doing a lot of division and want both the quotient and remainder, - then you don't want to do twice the work necessary. -

-

- In that case you can call the underlying function, quotient_remainder, - to get both results together as a pair. -

-
  pair< polynomial<double>, polynomial<double> > result;
-  result = quotient_remainder(a, b);
-// Reassure ourselves that the result is the same.
-  BOOST_ASSERT(result.first == q);
-  BOOST_ASSERT(result.second == r);
-
-

- The source code is at polynomial_arithmetic.cpp -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/internals/rational.html b/boost/libs/math/doc/html/math_toolkit/internals/rational.html deleted file mode 100644 index b19db565..00000000 --- a/boost/libs/math/doc/html/math_toolkit/internals/rational.html +++ /dev/null @@ -1,232 +0,0 @@ - - - -Polynomial and Rational Function Evaluation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - synopsis -
-
#include <boost/math/tools/rational.hpp>
-
-
// Polynomials:
-template <std::size_t N, class T, class V>
-V evaluate_polynomial(const T(&poly)[N], const V& val);
-
-template <std::size_t N, class T, class V>
-V evaluate_polynomial(const boost::array<T,N>& poly, const V& val);
-
-template <class T, class U>
-U evaluate_polynomial(const T* poly, U z, std::size_t count);
-
-// Even polynomials:
-template <std::size_t N, class T, class V>
-V evaluate_even_polynomial(const T(&poly)[N], const V& z);
-
-template <std::size_t N, class T, class V>
-V evaluate_even_polynomial(const boost::array<T,N>& poly, const V& z);
-
-template <class T, class U>
-U evaluate_even_polynomial(const T* poly, U z, std::size_t count);
-
-// Odd polynomials   
-template <std::size_t N, class T, class V>
-V evaluate_odd_polynomial(const T(&a)[N], const V& z);
-
-template <std::size_t N, class T, class V>
-V evaluate_odd_polynomial(const boost::array<T,N>& a, const V& z);
-
-template <class T, class U>
-U evaluate_odd_polynomial(const T* poly, U z, std::size_t count);
-
-// Rational Functions:
-template <std::size_t N, class T, class V>
-V evaluate_rational(const T(&a)[N], const T(&b)[N], const V& z);
-
-template <std::size_t N, class T, class V>
-V evaluate_rational(const boost::array<T,N>& a, const boost::array<T,N>& b, const V& z);
-
-template <class T, class U, class V>
-V evaluate_rational(const T* num, const U* denom, V z, unsigned count);
-
-
- - Description -
-

- Each of the functions come in three variants: a pair of overloaded functions - where the order of the polynomial or rational function is evaluated at compile - time, and an overload that accepts a runtime variable for the size of the - coefficient array. Generally speaking, compile time evaluation of the array - size results in better type safety, is less prone to programmer errors, and - may result in better optimised code. The polynomial evaluation functions - in particular, are specialised for various array sizes, allowing for loop - unrolling, and one hopes, optimal inline expansion. -

-
template <std::size_t N, class T, class V>
-V evaluate_polynomial(const T(&poly)[N], const V& val);
-
-template <std::size_t N, class T, class V>
-V evaluate_polynomial(const boost::array<T,N>& poly, const V& val);
-
-template <class T, class U>
-U evaluate_polynomial(const T* poly, U z, std::size_t count);
-
-

- Evaluates the polynomial - described by the coefficients stored in poly. -

-

- If the size of the array is specified at runtime, then the polynomial most - have order count-1 with count coefficients. - Otherwise it has order N-1 with N - coefficients. -

-

- Coefficients should be stored such that the coefficients for the xi terms - are in poly[i]. -

-

- The types of the coefficients and of variable z may - differ as long as *poly is convertible to type U. - This allows, for example, for the coefficient table to be a table of integers - if this is appropriate. -

-
template <std::size_t N, class T, class V>
-V evaluate_even_polynomial(const T(&poly)[N], const V& z);
-
-template <std::size_t N, class T, class V>
-V evaluate_even_polynomial(const boost::array<T,N>& poly, const V& z);
-
-template <class T, class U>
-U evaluate_even_polynomial(const T* poly, U z, std::size_t count);
-
-

- As above, but evaluates an even polynomial: one where all the powers of - z are even numbers. Equivalent to calling evaluate_polynomial(poly, z*z, count). -

-
template <std::size_t N, class T, class V>
-V evaluate_odd_polynomial(const T(&a)[N], const V& z);
-
-template <std::size_t N, class T, class V>
-V evaluate_odd_polynomial(const boost::array<T,N>& a, const V& z);
-
-template <class T, class U>
-U evaluate_odd_polynomial(const T* poly, U z, std::size_t count);
-
-

- As above but evaluates a polynomial where all the powers are odd numbers. - Equivalent to evaluate_polynomial(poly+1, z*z, - count-1) * - z + poly[0]. -

-
template <std::size_t N, class T, class U, class V>
-V evaluate_rational(const T(&num)[N], const U(&denom)[N], const V& z);
-
-template <std::size_t N, class T, class U, class V>
-V evaluate_rational(const boost::array<T,N>& num, const boost::array<U,N>& denom, const V& z);
-
-template <class T, class U, class V>
-V evaluate_rational(const T* num, const U* denom, V z, unsigned count);
-
-

- Evaluates the rational function (the ratio of two polynomials) described - by the coefficients stored in num and demom. -

-

- If the size of the array is specified at runtime then both polynomials most - have order count-1 with count coefficients. - Otherwise both polynomials have order N-1 with N - coefficients. -

-

- Array num describes the numerator, and demon - the denominator. -

-

- Coefficients should be stored such that the coefficients for the xi terms - are in num[i] and denom[i]. -

-

- The types of the coefficients and of variable v may - differ as long as *num and *denom - are convertible to type V. This allows, for example, - for one or both of the coefficient tables to be a table of integers if this - is appropriate. -

-

- These functions are designed to safely evaluate the result, even when the - value z is very large. As such they do not take advantage - of compile time array sizes to make any optimisations. These functions are - best reserved for situations where z may be large: if - you can be sure that numerical overflow will not occur then polynomial evaluation - with compile-time array sizes may offer slightly better performance. -

-
- - Implementation -
-

- Polynomials are evaluated by Horners - method. If the array size is known at compile time then the functions - dispatch to size-specific implementations that unroll the evaluation loop. -

-

- Rational evaluation is by Horners - method: with the two polynomials being evaluated in parallel to make - the most of the processors floating-point pipeline. If v - is greater than one, then the polynomials are evaluated in reverse order - as polynomials in 1/v: this avoids unnecessary numerical - overflow when the coefficients are large. -

-

- Both the polynomial and rational function evaluation algorithms can be tuned - using various configuration macros to provide optimal performance for a particular - combination of compiler and platform. This includes support for second-order - Horner's methods. The various options are documented - here. However, the performance benefits to be gained from these are - marginal on most current hardware, consequently it's best to run the performance test application - before changing the default settings. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/internals/series_evaluation.html b/boost/libs/math/doc/html/math_toolkit/internals/series_evaluation.html deleted file mode 100644 index dca2d763..00000000 --- a/boost/libs/math/doc/html/math_toolkit/internals/series_evaluation.html +++ /dev/null @@ -1,197 +0,0 @@ - - - -Series Evaluation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/tools/series.hpp>
-
-
namespace boost{ namespace math{ namespace tools{
-
-template <class Functor, class U, class V>
-inline typename Functor::result_type sum_series(Functor& func, const U& tolerance, boost::uintmax_t& max_terms, const V& init_value);
-
-template <class Functor, class U, class V>
-inline typename Functor::result_type sum_series(Functor& func, const U& tolerance, boost::uintmax_t& max_terms);
-
-//
-// The following interfaces are now deprecated:
-//   
-template <class Functor>
-typename Functor::result_type sum_series(Functor& func, int bits);
-
-template <class Functor>
-typename Functor::result_type sum_series(Functor& func, int bits, boost::uintmax_t& max_terms);
-
-template <class Functor, class U>
-typename Functor::result_type sum_series(Functor& func, int bits, U init_value);
-
-template <class Functor, class U>
-typename Functor::result_type sum_series(Functor& func, int bits, boost::uintmax_t& max_terms, U init_value);
-
-template <class Functor>
-typename Functor::result_type kahan_sum_series(Functor& func, int bits);
-
-template <class Functor>
-typename Functor::result_type kahan_sum_series(Functor& func, int bits, boost::uintmax_t& max_terms);
-
-}}} // namespaces
-
-
- - Description -
-

- These algorithms are intended for the summation - of infinite series. -

-

- Each of the algorithms takes a nullary-function object as the first argument: - the function object will be repeatedly invoked to pull successive terms from - the series being summed. -

-

- The second argument is the precision required, summation will stop when the - next term is less than tolerance times the result. The - deprecated versions of sum_series take an integer number of bits here - internally - they just convert this to a tolerance and forward the call. -

-

- The third argument max_terms sets an upper limit on - the number of terms of the series to evaluate. In addition, on exit the function - will set max_terms to the actual number of terms of - the series that were evaluated: this is particularly useful for profiling - the convergence properties of a new series. -

-

- The final optional argument init_value is the initial - value of the sum to which the terms of the series should be added. This is - useful in two situations: -

-
    -
  • - Where the first value of the series has a different formula to successive - terms. In this case the first value in the series can be passed as the - last argument and the logic of the function object can then be simplified - to return subsequent terms. -
  • -
  • - Where the series is being added (or subtracted) from some other value: - termination of the series will likely occur much more rapidly if that - other value is passed as the last argument. For example, there are several - functions that can be expressed as 1 - S(z) where - S(z) is an infinite series. In this case, pass -1 as the last argument - and then negate the result of the summation to get the result of 1 - - S(z). -
  • -
-

- The two kahan_sum_series variants of these algorithms - maintain a carry term that corrects for roundoff error during summation. - They are inspired by the Kahan - Summation Formula that appears in What - Every Computer Scientist Should Know About Floating-Point Arithmetic. - However, it should be pointed out that there are very few series that require - summation in this way. -

-
- - Example -
-

- Let's suppose we want to implement log(1+x) via its - infinite series, -

-

- -

-

- We begin by writing a small function object to return successive terms of - the series: -

-
template <class T>
-struct log1p_series
-{
-   // we must define a result_type typedef:
-   typedef T result_type;
-
-   log1p_series(T x)
-      : k(0), m_mult(-x), m_prod(-1){}
-
-   T operator()()
-   {
-      // This is the function operator invoked by the summation
-      // algorithm, the first call to this operator should return
-      // the first term of the series, the second call the second 
-      // term and so on.
-      m_prod *= m_mult;
-      return m_prod / ++k;
-   }
-
-private:
-   int k;
-   const T m_mult;
-   T m_prod;
-};
-
-

- Implementing log(1+x) is now fairly trivial: -

-
template <class T>
-T log1p(T x)
-{
-   // We really should add some error checking on x here!
-   assert(std::fabs(x) < 1);
-
-   // Construct the series functor:
-   log1p_series<T> s(x);
-   // Set a limit on how many iterations we permit:
-   boost::uintmax_t max_iter = 1000;
-   // Add it up, with enough precision for full machine precision:
-   return tools::sum_series(s, std::numeric_limits<T>::epsilon(), max_iter);
-}
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/internals/test_data.html b/boost/libs/math/doc/html/math_toolkit/internals/test_data.html deleted file mode 100644 index 62a7b04d..00000000 --- a/boost/libs/math/doc/html/math_toolkit/internals/test_data.html +++ /dev/null @@ -1,563 +0,0 @@ - - - -Graphing, Profiling, and Generating Test Data for Special Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The class test_data and associated - helper functions are designed so that in just a few lines of code you should - be able to: -

-
    -
  • - Profile a continued fraction, or infinite series for convergence and - accuracy. -
  • -
  • - Generate csv data from a special function that can be imported into your - favorite graphing program (or spreadsheet) for further analysis. -
  • -
  • - Generate high precision test data. -
  • -
-
- - Synopsis -
-
#include <boost/math/tools/test_data.hpp>
-
-
- - - - - -
[Important]Important

- This is a non-core Boost.Math header that is predominantly used for internal - maintenance of the library: as a result the library is located under libs/math/include_private and you will need to - add that directory to your include path in order to use this feature. -

-
namespace boost{ namespace math{ namespace tools{
-
-enum parameter_type
-{
-   random_in_range = 0,
-   periodic_in_range = 1,
-   power_series = 2,
-   dummy_param = 0x80,
-};
-
-template <class T>
-struct parameter_info;
-
-template <class T>
-parameter_info<T> make_random_param(T start_range, T end_range, int n_points);
-
-template <class T>
-parameter_info<T> make_periodic_param(T start_range, T end_range, int n_points);
-
-template <class T>
-parameter_info<T> make_power_param(T basis, int start_exponent, int end_exponent);
-
-template <class T>
-bool get_user_parameter_info(parameter_info<T>& info, const char* param_name);
-
-template <class T>
-class test_data
-{
-public:
-   typedef std::vector<T> row_type;
-   typedef row_type value_type;
-private:
-   typedef std::set<row_type> container_type;
-public:
-   typedef typename container_type::reference reference;
-   typedef typename container_type::const_reference const_reference;
-   typedef typename container_type::iterator iterator;
-   typedef typename container_type::const_iterator const_iterator;
-   typedef typename container_type::difference_type difference_type;
-   typedef typename container_type::size_type size_type;
-
-   // creation:
-   test_data(){}
-   template <class F>
-   test_data(F func, const parameter_info<T>& arg1);
-
-   // insertion:
-   template <class F>
-   test_data& insert(F func, const parameter_info<T>& arg1);
-
-   template <class F>
-   test_data& insert(F func, const parameter_info<T>& arg1,
-                     const parameter_info<T>& arg2);
-
-   template <class F>
-   test_data& insert(F func, const parameter_info<T>& arg1,
-                     const parameter_info<T>& arg2,
-                     const parameter_info<T>& arg3);
-
-   void clear();
-
-   // access:
-   iterator begin();
-   iterator end();
-   const_iterator begin()const;
-   const_iterator end()const;
-   bool operator==(const test_data& d)const;
-   bool operator!=(const test_data& d)const;
-   void swap(test_data& other);
-   size_type size()const;
-   size_type max_size()const;
-   bool empty()const;
-
-   bool operator < (const test_data& dat)const;
-   bool operator <= (const test_data& dat)const;
-   bool operator > (const test_data& dat)const;
-   bool operator >= (const test_data& dat)const;
-};
-
-template <class charT, class traits, class T>
-std::basic_ostream<charT, traits>& write_csv(
-            std::basic_ostream<charT, traits>& os,
-            const test_data<T>& data);
-
-template <class charT, class traits, class T>
-std::basic_ostream<charT, traits>& write_csv(
-            std::basic_ostream<charT, traits>& os,
-            const test_data<T>& data,
-            const charT* separator);
-
-template <class T>
-std::ostream& write_code(std::ostream& os,
-                         const test_data<T>& data,
-                         const char* name);
-
-}}} // namespaces
-
-
- - Description -
-

- This tool is best illustrated with the following series of examples. -

-

- The functionality of test_data is split into the following parts: -

-
    -
  • - A functor that implements the function for which data is being generated: - this is the bit you have to write. -
  • -
  • - One of more parameters that are to be passed to the functor, these are - described in fairly abstract terms: give me N points distributed like - this etc. -
  • -
  • - The class test_data, that takes the functor and descriptions of the parameters - and computes how ever many output points have been requested, these are - stored in a sorted container. -
  • -
  • - Routines to iterate over the test_data container and output the data - in either csv format, or as C++ source code (as a table using Boost.Array). -
  • -
-
- - Example - 1: Output Data for Graph Plotting -
-

- For example, lets say we want to graph the lgamma function between -3 and - 100, one could do this like so: -

-
#include <boost/math/tools/test_data.hpp>
-#include <boost/math/special_functions/gamma.hpp>
-
-int main()
-{
-   using namespace boost::math::tools;
-
-   // create an object to hold the data:
-   test_data<double> data;
-
-   // insert 500 points at uniform intervals between just after -3 and 100:
-   double (*pf)(double) = boost::math::lgamma;
-   data.insert(pf, make_periodic_param(-3.0 + 0.00001, 100.0, 500));
-
-   // print out in csv format:
-   write_csv(std::cout, data, ", ");
-   return 0;
-}
-
-

- Which, when plotted, results in: -

-

- -

-
- - Example - 2: Creating Test Data -
-

- As a second example, let's suppose we want to create highly accurate test - data for a special function. Since many special functions have two or more - independent parameters, it's very hard to effectively cover all of the possible - parameter space without generating gigabytes of data at great computational - expense. A second best approach is to provide the tools by which a user (or - the library maintainer) can quickly generate more data on demand to probe - the function over a particular domain of interest. -

-

- In this example we'll generate test data for the beta function using NTL::RR at 1000 bit precision. - Rather than call our generic version of the beta function, we'll implement - a deliberately naive version of the beta function using lgamma, and rely - on the high precision of the data type used to get results accurate to at - least 128-bit precision. In this way our test data is independent of whatever - clever tricks we may wish to use inside the our beta function. -

-

- To start with then, here's the function object that creates the test data: -

-
#include <boost/math/tools/ntl.hpp>
-#include <boost/math/special_functions/gamma.hpp>
-#include <boost/math/tools/test_data.hpp>
-#include <fstream>
-
-#include <boost/math/tools/test_data.hpp>
-
-using namespace boost::math::tools;
-
-struct beta_data_generator
-{
-   NTL::RR operator()(NTL::RR a, NTL::RR b)
-   {
-      //
-      // If we throw a domain error then test_data will
-      // ignore this input point. We'll use this to filter
-      // out all cases where a < b since the beta function
-      // is symmetrical in a and b:
-      //
-      if(a < b)
-         throw std::domain_error("");
-
-      // very naively calculate spots with lgamma:
-      NTL::RR g1, g2, g3;
-      int s1, s2, s3;
-      g1 = boost::math::lgamma(a, &s1);
-      g2 = boost::math::lgamma(b, &s2);
-      g3 = boost::math::lgamma(a+b, &s3);
-      g1 += g2 - g3;
-      g1 = exp(g1);
-      g1 *= s1 * s2 * s3;
-      return g1;
-   }
-};
-
-

- To create the data, we'll need to input the domains for a and b for which - the function will be tested: the function get_user_parameter_info - is designed for just that purpose. The start of main will look something - like: -

-
// Set the precision on RR:
-NTL::RR::SetPrecision(1000); // bits.
-NTL::RR::SetOutputPrecision(40); // decimal digits.
-
-parameter_info<NTL::RR> arg1, arg2;
-test_data<NTL::RR> data;
-
-std::cout << "Welcome.\n"
-   "This program will generate spot tests for the beta function:\n"
-   "  beta(a, b)\n\n";
-
-bool cont;
-std::string line;
-
-do{
-   // prompt the user for the domain of a and b to test:
-   get_user_parameter_info(arg1, "a");
-   get_user_parameter_info(arg2, "b");
-
-   // create the data:
-   data.insert(beta_data_generator(), arg1, arg2);
-
-   // see if the user want's any more domains tested:
-   std::cout << "Any more data [y/n]?";
-   std::getline(std::cin, line);
-   boost::algorithm::trim(line);
-   cont = (line == "y");
-}while(cont);
-
-
- - - - - -
[Caution]Caution

- At this point one potential stumbling block should be mentioned: test_data<>::insert - will create a matrix of test data when there are two or more parameters, - so if we have two parameters and we're asked for a thousand points on each, - that's a million test points in total. Don't say you - weren't warned! -

-

- There's just one final step now, and that's to write the test data to file: -

-
std::cout << "Enter name of test data file [default=beta_data.ipp]";
-std::getline(std::cin, line);
-boost::algorithm::trim(line);
-if(line == "")
-   line = "beta_data.ipp";
-std::ofstream ofs(line.c_str());
-write_code(ofs, data, "beta_data");
-
-

- The format of the test data looks something like: -

-
#define SC_(x) static_cast<T>(BOOST_JOIN(x, L))
-   static const boost::array<boost::array<T, 3>, 1830>
-   beta_med_data = {
-      SC_(0.4883005917072296142578125),
-      SC_(0.4883005917072296142578125),
-      SC_(3.245912809500479157065104747353807392371),
-      SC_(3.5808107852935791015625),
-      SC_(0.4883005917072296142578125),
-      SC_(1.007653173802923954909901438393379243537),
-      /* ... lots of rows skipped */
-};
-
-

- The first two values in each row are the input parameters that were passed - to our functor and the last value is the return value from the functor. Had - our functor returned a boost::math::tuple - rather than a value, then we would have had one entry for each element in - the tuple in addition to the input parameters. -

-

- The first #define serves two purposes: -

-
    -
  • - It reduces the file sizes considerably: all those static_cast's - add up to a lot of bytes otherwise (they are needed to suppress compiler - warnings when T is narrower - than a long double). -
  • -
  • - It provides a useful customisation point: for example if we were testing - a user-defined type that has more precision than a long - double we could change it to: -
  • -
-

- #define SC_(x) lexical_cast<T>(BOOST_STRINGIZE(x)) -

-

- in order to ensure that no truncation of the values occurs prior to conversion - to T. Note that this isn't - used by default as it's rather hard on the compiler when the table is large. -

-
- - Example - 3: Profiling a Continued Fraction for Convergence and Accuracy -
-

- Alternatively, lets say we want to profile a continued fraction for convergence - and error. As an example, we'll use the continued fraction for the upper - incomplete gamma function, the following function object returns the next - aN and bN of the continued fraction each time it's invoked: -

-
template <class T>
-struct upper_incomplete_gamma_fract
-{
-private:
-   T z, a;
-   int k;
-public:
-   typedef std::pair<T,T> result_type;
-
-   upper_incomplete_gamma_fract(T a1, T z1)
-      : z(z1-a1+1), a(a1), k(0)
-   {
-   }
-
-   result_type operator()()
-   {
-      ++k;
-      z += 2;
-      return result_type(k * (a - k), z);
-   }
-};
-
-

- We want to measure both the relative error, and the rate of convergence of - this fraction, so we'll write a functor that returns both as a boost::math::tuple: - class test_data will unpack the tuple for us, and create one column of data - for each element in the tuple (in addition to the input parameters): -

-
#include <boost/math/tools/test_data.hpp>
-#include <boost/math/tools/test.hpp>
-#include <boost/math/special_functions/gamma.hpp>
-#include <boost/math/tools/ntl.hpp>
-#include <boost/math/tools/tuple.hpp>
-
-template <class T>
-struct profile_gamma_fraction
-{
-   typedef boost::math::tuple<T, T> result_type;
-
-   result_type operator()(T val)
-   {
-      using namespace boost::math::tools;
-      // estimate the true value, using arbitary precision
-      // arithmetic and NTL::RR:
-      NTL::RR rval(val);
-      upper_incomplete_gamma_fract<NTL::RR> f1(rval, rval);
-      NTL::RR true_val = continued_fraction_a(f1, 1000);
-      //
-      // Now get the aproximation at double precision, along with the number of
-      // iterations required:
-      boost::uintmax_t iters = std::numeric_limits<boost::uintmax_t>::max();
-      upper_incomplete_gamma_fract<T> f2(val, val);
-      T found_val = continued_fraction_a(f2, std::numeric_limits<T>::digits, iters);
-      //
-      // Work out the relative error, as measured in units of epsilon:
-      T err = real_cast<T>(relative_error(true_val, NTL::RR(found_val)) / std::numeric_limits<T>::epsilon());
-      //
-      // now just return the results as a tuple:
-      return boost::math::make_tuple(err, iters);
-   }
-};
-
-

- Feeding that functor into test_data allows rapid output of csv data, for - whatever type T we may be - interested in: -

-
int main()
-{
-   using namespace boost::math::tools;
-   // create an object to hold the data:
-   test_data<double> data;
-   // insert 500 points at uniform intervals between just after 0 and 100:
-   data.insert(profile_gamma_fraction<double>(), make_periodic_param(0.01, 100.0, 100));
-   // print out in csv format:
-   write_csv(std::cout, data, ", ");
-   return 0;
-}
-
-

- This time there's no need to plot a graph, the first few rows are: -

-
a and z,  Error/epsilon,  Iterations required
-
-0.01,     9723.14,        4726
-1.0099,   9.54818,        87
-2.0098,   3.84777,        40
-3.0097,   0.728358,       25
-4.0096,   2.39712,        21
-5.0095,   0.233263,       16
-
-

- So it's pretty clear that this fraction shouldn't be used for small values - of a and z. -

-
- - reference -
-

- Most of this tool has been described already in the examples above, we'll - just add the following notes on the non-member functions: -

-
template <class T>
-parameter_info<T> make_random_param(T start_range, T end_range, int n_points);
-
-

- Tells class test_data to test n_points random values - in the range [start_range,end_range]. -

-
template <class T>
-parameter_info<T> make_periodic_param(T start_range, T end_range, int n_points);
-
-

- Tells class test_data to test n_points evenly spaced - values in the range [start_range,end_range]. -

-
template <class T>
-parameter_info<T> make_power_param(T basis, int start_exponent, int end_exponent);
-
-

- Tells class test_data to test points of the form basis + R * 2expon - for each expon in the range [start_exponent, end_exponent], - and R a random number in [0.5, 1]. -

-
template <class T>
-bool get_user_parameter_info(parameter_info<T>& info, const char* param_name);
-
-

- Prompts the user for the parameter range and form to use. -

-

- Finally, if we don't want the parameter to be included in the output, we - can tell test_data by setting it a "dummy parameter": -

-
parameter_info<double> p = make_random_param(2.0, 5.0, 10);
-p.type |= dummy_param;
-
-

- This is useful when the functor used transforms the parameter in some way - before passing it to the function under test, usually the functor will then - return both the transformed input and the result in a tuple, so there's no - need for the original pseudo-parameter to be included in program output. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/internals/tuples.html b/boost/libs/math/doc/html/math_toolkit/internals/tuples.html deleted file mode 100644 index 04c44115..00000000 --- a/boost/libs/math/doc/html/math_toolkit/internals/tuples.html +++ /dev/null @@ -1,85 +0,0 @@ - - - -Tuples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Tuples -

-
- - Synopsis -
-
#include <boost/math/tools/tuple.hpp>
-
-
- - Description -
-

- This header defines the type boost::math::tuple, - the associated free functions ignore, - tie, make_tuple, - get, and associated types - tuple_size and tuple_element. -

-

- These types and functions are aliases for: -

-
    -
  • - std::tuple etc when available, otherwise: -
  • -
  • - std::tr1::tuple etc when available, otherwise: -
  • -
  • - boost::fusion::tuple etc if the compiler supports - it, otherwise: -
  • -
  • - boost::tuple. -
  • -
-

- So this boost::math::tuple is strongly recommended for maximum - portability. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/internals_overview.html b/boost/libs/math/doc/html/math_toolkit/internals_overview.html deleted file mode 100644 index 5b03410f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/internals_overview.html +++ /dev/null @@ -1,61 +0,0 @@ - - - -Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- This section contains internal utilities used by the library's implementation - along with tools used in development and testing. These tools have limitied - documentation, but now have quite stable interfaces and may also be useful - outside Boost.Math. -

-

- There is no doubt that these components can be improved, but they are also - largely incidental to the main purpose of this library. -

-

- These tools are designed to "just get the job done", and receive - minimal documentation here, in the hopes that they will help stimulate further - submissions to this library. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/interp.html b/boost/libs/math/doc/html/math_toolkit/interp.html deleted file mode 100644 index 0f392ae1..00000000 --- a/boost/libs/math/doc/html/math_toolkit/interp.html +++ /dev/null @@ -1,74 +0,0 @@ - - - -Interpreting these Results - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- In all of the following tables, the best performing result in each row, is - assigned a relative value of "1" and shown in bold, so a score of - "2" means "twice as slow as the best performing result". - Actual timings in nano-seconds per function call are also shown in parenthesis. - To make the results easier to read, they are color-coded as follows: the best - result and everything within 20% of it is green, anything that's more than - twice as slow as the best result is red, and results in between are blue. -

-

- Result were obtained on a system with an Intel core i7 4710MQ with 16Gb RAM - and running either Windows 8.1 or Xubuntu Linux. -

-
- - - - - -
[Caution]Caution

- As usual with performance results these should be taken with a large pinch - of salt: relative performance is known to shift quite a bit depending upon - the architecture of the particular test system used. Further more, our performance - results were obtained using our own test data: these test values are designed - to provide good coverage of our code and test all the appropriate corner - cases. They do not necessarily represent "typical" usage: whatever - that may be! -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/intro_pol_overview.html b/boost/libs/math/doc/html/math_toolkit/intro_pol_overview.html deleted file mode 100644 index d0c52fd5..00000000 --- a/boost/libs/math/doc/html/math_toolkit/intro_pol_overview.html +++ /dev/null @@ -1,118 +0,0 @@ - - - -Policies - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Policies are a powerful fine-grain mechanism that allow you to customise the - behaviour of this library according to your needs. There is more information - available in the policy tutorial - and the policy reference. -

-

- Generally speaking, unless you find that the default - policy behaviour when encountering 'bad' argument values does not meet - your needs, you should not need to worry about policies. -

-

- Policies are a compile-time mechanism that allow you to change error-handling - or calculation precision either program wide, or at the call site. -

-

- Although the policy mechanism itself is rather complicated, in practice it - is easy to use, and very flexible. -

-

- Using policies you can control: -

-
-

- You can control policies: -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/introduction.html b/boost/libs/math/doc/html/math_toolkit/introduction.html deleted file mode 100644 index 21285fd6..00000000 --- a/boost/libs/math/doc/html/math_toolkit/introduction.html +++ /dev/null @@ -1,52 +0,0 @@ - - - -Introduction - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The class and function templates in <boost/math/common_factor.hpp> - provide both run-time and compile-time evaluation of the greatest common divisor - (GCD) or least common multiple (LCM) of two integers. These facilities are - useful for many numeric-oriented generic programming problems. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/inv_hyper.html b/boost/libs/math/doc/html/math_toolkit/inv_hyper.html deleted file mode 100644 index 18abdf65..00000000 --- a/boost/libs/math/doc/html/math_toolkit/inv_hyper.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Inverse Hyperbolic Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/inv_hyper/acosh.html b/boost/libs/math/doc/html/math_toolkit/inv_hyper/acosh.html deleted file mode 100644 index f32ed804..00000000 --- a/boost/libs/math/doc/html/math_toolkit/inv_hyper/acosh.html +++ /dev/null @@ -1,129 +0,0 @@ - - - -acosh - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-acosh -

-
#include <boost/math/special_functions/acosh.hpp>
-
-
template<class T>
-calculated-result-type acosh(const T x);
-
-template<class T, class Policy>
-calculated-result-type acosh(const T x, const Policy&);
-
-

- Computes the reciprocal of (the restriction to the range of [0;+∞[) - the hyperbolic cosine - function, at x. Values returned are positive. -

-

- If x is in the range ]-∞;+1[ then returns the result of - domain_error. -

-

- The return type of this function is computed using the result - type calculation rules: the return type is double when T is an integer type, and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- -

-
- - Accuracy -
-

- Generally accuracy is to within 1 or 2 epsilon across all supported platforms. -

-
- - Testing -
-

- This function is tested using a combination of random test values designed - to give full function coverage computed at high precision using the "naive" - formula: -

-

- -

-

- along with a selection of sanity check values computed using functions.wolfram.com - to at least 50 decimal digits. -

-
- - Implementation -
-

- For sufficiently large x, we can use the approximation: -

-

- -

-

- For x sufficiently close to 1 we can use the approximation: -

-

- -

-

- Otherwise for x close to 1 we can use the following rearrangement of the - primary definition to preserve accuracy: -

-

- -

-

- Otherwise the primary - definition is used: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/inv_hyper/asinh.html b/boost/libs/math/doc/html/math_toolkit/inv_hyper/asinh.html deleted file mode 100644 index 9dc5d374..00000000 --- a/boost/libs/math/doc/html/math_toolkit/inv_hyper/asinh.html +++ /dev/null @@ -1,124 +0,0 @@ - - - -asinh - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-asinh -

-
#include <boost/math/special_functions/asinh.hpp>
-
-
template<class T>
-calculated-result-type asinh(const T x);
-
-template<class T, class Policy>
-calculated-result-type asinh(const T x, const Policy&);
-
-

- Computes the reciprocal of the - hyperbolic sine function. -

-

- The return type of this function is computed using the result - type calculation rules: the return type is double when T is an integer type, and T otherwise. -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Accuracy -
-

- Generally accuracy is to within 1 or 2 epsilon across all supported platforms. -

-
- - Testing -
-

- This function is tested using a combination of random test values designed - to give full function coverage computed at high precision using the "naive" - formula: -

-

- -

-

- along with a selection of sanity check values computed using functions.wolfram.com - to at least 50 decimal digits. -

-
- - Implementation -
-

- For sufficiently large x we can use the approximation: -

-

- -

-

- While for very small x we can use the approximation: -

-

- -

-

- For 0.5 > x > ε the following rearrangement of the primary definition - is used: -

-

- -

-

- Otherwise evalution is via the primary - definition: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/inv_hyper/atanh.html b/boost/libs/math/doc/html/math_toolkit/inv_hyper/atanh.html deleted file mode 100644 index d85505bb..00000000 --- a/boost/libs/math/doc/html/math_toolkit/inv_hyper/atanh.html +++ /dev/null @@ -1,134 +0,0 @@ - - - -atanh - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-atanh -

-
#include <boost/math/special_functions/atanh.hpp>
-
-
template<class T>
-calculated-result-type atanh(const T x);
-
-template<class T, class Policy>
-calculated-result-type atanh(const T x, const Policy&);
-
-

- Computes the reciprocal of the - hyperbolic tangent function, at x. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- If x is in the range ]-∞;-1[ or in the range ]+1;+∞[ - then returns the result of domain_error. -

-

- If x is in the range [-1;-1+ε[, then the result of -overflow_error - is returned, with ε   -denoting numeric_limits<T>::epsilon(). -

-

- If x is in the range ]+1-ε;+1], then the result of overflow_error - is returned, with ε   -denoting numeric_limits<T>::epsilon(). -

-

- The return type of this function is computed using the result - type calculation rules: the return type is double when T is an integer type, and T otherwise. -

-

- -

-
- - Accuracy -
-

- Generally accuracy is to within 1 or 2 epsilon across all supported platforms. -

-
- - Testing -
-

- This function is tested using a combination of random test values designed - to give full function coverage computed at high precision using the "naive" - formula: -

-

- -

-

- along with a selection of sanity check values computed using functions.wolfram.com - to at least 50 decimal digits. -

-
- - Implementation -
-

- For sufficiently small x we can use the approximation: -

-

- -

-

- Otherwise the primary - definition: -

-

- -

-

- or its equivalent form: -

-

- -

-

- is used. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/inv_hyper/inv_hyper_over.html b/boost/libs/math/doc/html/math_toolkit/inv_hyper/inv_hyper_over.html deleted file mode 100644 index 3264957a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/inv_hyper/inv_hyper_over.html +++ /dev/null @@ -1,116 +0,0 @@ - - - -Inverse Hyperbolic Functions Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The exponential funtion is defined, for all objects for which this makes - sense, as the power series , - with n! = 1x2x3x4x5...xn (and 0! - = 1 by definition) being the factorial of n. - In particular, the exponential function is well defined for real numbers, - complex number, quaternions, octonions, and matrices of complex numbers, - among others. -

-

- Graph of exp on R -

-

- -

-

- Real and Imaginary parts of exp on C -

-

- -

-

- The hyperbolic functions are defined as power series which can be computed - (for reals, complex, quaternions and octonions) as: -

-

- Hyperbolic cosine: -

-

- Hyperbolic sine: -

-

- Hyperbolic tangent: -

-

- Trigonometric functions on R (cos: purple; - sin: red; tan: blue) -

-

- -

-

- Hyperbolic functions on r (cosh: purple; - sinh: red; tanh: blue) -

-

- -

-

- The hyperbolic sine is one to one on the set of real numbers, with range - the full set of reals, while the hyperbolic tangent is also one to one on - the set of real numbers but with range [0;+∞[, and therefore - both have inverses. The hyperbolic cosine is one to one from ]-∞;+1[ - onto ]-∞;-1[ (and from ]+1;+∞[ onto - ]-∞;-1[); the inverse function we use here is defined on - ]-∞;-1[ with range ]-∞;+1[. -

-

- The inverse of the hyperbolic tangent is called the Argument hyperbolic tangent, - and can be computed as . -

-

- The inverse of the hyperbolic sine is called the Argument hyperbolic sine, - and can be computed (for [-1;-1+ε[) as . -

-

- The inverse of the hyperbolic cosine is called the Argument hyperbolic cosine, - and can be computed as . -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/issues.html b/boost/libs/math/doc/html/math_toolkit/issues.html deleted file mode 100644 index c7011088..00000000 --- a/boost/libs/math/doc/html/math_toolkit/issues.html +++ /dev/null @@ -1,1234 +0,0 @@ - - - -Known Issues, and TODO List - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Predominantly this is a TODO list, or a list of possible future enhancements. - Items labled "High Priority" effect the proper functioning of the - component, and should be fixed as soon as possible. Items labled "Medium - Priority" are desirable enhancements, often pertaining to the performance - of the component, but do not effect it's accuracy or functionality. Items labled - "Low Priority" should probably be investigated at some point. Such - classifications are obviously highly subjective. -

-

- If you don't see a component listed here, then we don't have any known issues - with it. -

-
- - Derivatives - of Bessel functions (and their zeros) -
-

- Potentially, there could be native support for cyl_bessel_j_prime() and cyl_neumann_prime(). One could also imagine supporting the zeros - thereof, but they might be slower to calculate since root bracketing might - be needed instead of Newton iteration (for the lack of 2nd derivatives). -

-

- Since Boost.Math's Bessel functions are so excellent, the quick way to cyl_bessel_j_prime() - and cyl_neumann_prime() - would be via relationship with cyl_bessel_j() and cyl_neumann(). -

-
- - tgamma -
-
-
- - Incomplete - Beta -
-
  • - Investigate Didonato and Morris' asymptotic expansion for large a and b - (medium priority). -
-
- - Inverse - Gamma -
-
  • - Investigate whether we can skip iteration altogether if the first approximation - is good enough (Medium Priority). -
-
- - Polynomials -
-
  • - The Legendre and Laguerre Polynomials have surprisingly different error - rates on different platforms, considering they are evaluated with only - basic arithmetic operations. Maybe this is telling us something, or maybe - not (Low Priority). -
-
- - Elliptic - Integrals -
-
    -
  • - [para Carlson's algorithms (mainly RJ) are somewhat prone to internal overflow/underflow - when the arguments are very large or small. The homogeneity relations:] - [para RF(ka, kb, kc) = k-1/2 RF(a, b, c)] [para and] [para RJ(ka, kb, kc, - kr) = k-3/2 RJ(a, b, c, r)] [para could be used to sidestep trouble here: - provided the problem domains can be accurately identified. (Medium Priority).] -
  • -
  • - There are a several other integrals: Bulirsch's el - functions that could be implemented using Carlson's integrals (Low Priority). -
  • -
  • - The integrals K(k) and E(k) could be implemented using rational approximations - (both for efficiency and accuracy), assuming we can find them. (Medium - Priority). -
  • -
-
- - Owen's - T Function -
-

- There is a problem area at arbitrary precision when a - is very close to 1. However, note that the value for T(h, 1) - is well known and easy to compute, and if we replaced the ak - terms in series T1, T2 or T4 by (ak - 1) then we would - have the difference between T(h, a) and T(h, - 1). Unfortunately this doesn't improve the convergence of those - series in that area. It certainly looks as though a new series in terms of - (1-a)k is both possible and desirable in this area, but - it remains elusive at present. -

-
- - Jocobi - elliptic functions -
-

- These are useful in engineering applications - we have had a request to add - these. -

-
- - Statistical - distributions -
-
  • - Student's t Perhaps switch to normal distribution as a better approximation - for very large degrees of freedom? -
-
- - Feature - Requests -
-

- We have a request for the Lambert W function, see #11027. -

-

- The following table lists distributions that are found in other packages but - which are not yet present here, the more frequently the distribution is found, - the higher the priority for implementing it: -

-
-------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Distribution -

-
-

- R -

-
-

- Mathematica 6 -

-
-

- NIST -

-
-

- Regress+ -

-
-

- Matlab -

-
-

- Geometric -

-
-

- X -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- Multinomial -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- Tukey Lambda -

-
-

- X -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- Half Normal / Folded Normal -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Chi -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Gumbel -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Discrete Uniform -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- Log Series -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Nakagami (generalised Chi) -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- X -

-
-

- Log Logistic -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- Tukey (Studentized range) -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- Wilcoxon rank sum -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- Wincoxon signed rank -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- Non-central Beta -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- Maxwell -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- Beta-Binomial -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- Beta-negative Binomial -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- Zipf -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- Birnbaum-Saunders / Fatigue Life -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- Double Exponential -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- Power Normal -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- Power Lognormal -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- - -

-
-

- Cosine -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Double Gamma -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Double Weibul -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Hyperbolic Secant -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Semicircular -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Bradford -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Birr / Fisk -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Reciprocal -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- X -

-
-

- - -

-
-

- Kolmogorov Distribution -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- - -

-
-

- Also asked for more than once: -

-
    -
  • - Add support for interpolated distributions, possibly combine with numeric - integration and differentiation. -
  • -
  • - Add support for bivariate and multivariate distributions: most especially - the normal. -
  • -
  • - Add support for the log of the cdf and pdf: this is mainly a performance - optimisation since we can avoid some special function calls for some distributions - by returning the log of the result. -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi.html b/boost/libs/math/doc/html/math_toolkit/jacobi.html deleted file mode 100644 index 00911871..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi.html +++ /dev/null @@ -1,76 +0,0 @@ - - - -Jacobi Elliptic Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jac_over.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jac_over.html deleted file mode 100644 index 3823e1da..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jac_over.html +++ /dev/null @@ -1,123 +0,0 @@ - - - -Overvew of the Jacobi Elliptic Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There are twelve Jacobi Elliptic functions, of which the three copolar functions - sn, cn and dn - are the most important as the other nine can be computed from these three - [2] [3] [4]. -

-

- These functions each take two arguments: a parameter, and a variable as described - below. -

-

- Like all elliptic functions these can be parameterised in a number of ways: -

-
    -
  • - In terms of a parameter m. -
  • -
  • - In terms of the elliptic modulus k where m - = k2. -
  • -
  • - In terms of the modular angle α, where m = sin2α. -
  • -
-

- In our implementation, these functions all take the elliptic modulus k - as the parameter. -

-

- In addition the variable u is sometimes expressed as - an amplitude φ, in our implementation we always use u. -

-

- Finally note that our functions all take the elliptic modulus as the first - argument - this is for alignment with the Elliptic Integrals. -

-

- There are twenve functions for computing the twelve individual Jacobi elliptic - functions: jacobi_cd, - jacobi_cn, jacobi_cs, - jacobi_dc, jacobi_dn, - jacobi_ds, jacobi_nc, - jacobi_nd, jacobi_ns, - jacobi_sc, jacobi_sd - and jacobi_sn. -

-

- They are all called as for example: -

-
jacobi_cs(k, u);
-
-

- Note however that these individual functions are all really thin wrappers - around the function jacobi_elliptic - which calculates the three copolar functions sn, cn - and dn in a single function call. Thus if you need more - than one of these functions for a given set of arguments, it's most efficient - to use jacobi_elliptic. -

- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cd.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cd.html deleted file mode 100644 index d95ecbd7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cd.html +++ /dev/null @@ -1,86 +0,0 @@ - - - -Jacobi Elliptic Function cd - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_cd(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_cd(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function cd. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic, - with: -

-

- cd(u, k) = cn(u, k) / dn(u, k) -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cn.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cn.html deleted file mode 100644 index 2d5f807f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cn.html +++ /dev/null @@ -1,82 +0,0 @@ - - - -Jacobi Elliptic Function cn - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_cn(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_cn(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function cn. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic. -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cs.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cs.html deleted file mode 100644 index 32b3d6b3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_cs.html +++ /dev/null @@ -1,86 +0,0 @@ - - - -Jacobi Elliptic Function cs - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_cs(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_cs(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function cs. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic, - with: -

-

- cs(u, k) = cn(u, k) / sn(u, k) -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_dc.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_dc.html deleted file mode 100644 index 7e5b3e3e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_dc.html +++ /dev/null @@ -1,86 +0,0 @@ - - - -Jacobi Elliptic Function dc - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_dc(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_dc(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function dc. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic, - with: -

-

- dc(u, k) = dn(u, k) / cn(u, k) -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_dn.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_dn.html deleted file mode 100644 index 4a68de03..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_dn.html +++ /dev/null @@ -1,82 +0,0 @@ - - - -Jacobi Elliptic Function dn - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_dn(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_dn(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function dn. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic. -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_ds.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_ds.html deleted file mode 100644 index 5488d66e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_ds.html +++ /dev/null @@ -1,86 +0,0 @@ - - - -Jacobi Elliptic Function ds - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_ds(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_ds(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function ds. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic, - with: -

-

- ds(u, k) = dn(u, k) / sn(u, k) -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_elliptic.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_elliptic.html deleted file mode 100644 index b9b5f691..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_elliptic.html +++ /dev/null @@ -1,781 +0,0 @@ - - - -Jacobi Elliptic SN, CN and DN - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U, class V>
- calculated-result-type jacobi_elliptic(T k, U u, V* pcn, V* pdn);
-
- template <class T, class U, class V, class Policy>
- calculated-result-type jacobi_elliptic(T k, U u, V* pcn, V* pdn, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- The function jacobi_elliptic - calculates the three copolar Jacobi elliptic functions sn(u, k), - cn(u, k) and dn(u, k). The returned - value is sn(u, k), and if provided, *pcn - is set to cn(u, k), and *pdn is - set to dn(u, k). -

-

- The functions are defined as follows, given: -

-

- -

-

- The the angle φ is called the amplitude and: -

-

- -

-
- - - - - -
[Note]Note
-

- φ is called the amplitude. -

-

- k is called the modulus. -

-
-
- - - - - -
[Caution]Caution
-

- Rather like other elliptic functions, the Jacobi functions are expressed - in a variety of different ways. In particular, the parameter k - (the modulus) may also be expressed using a modular angle α, or a parameter - m. These are related by: -

-

- k = sinα -

-

- m = k2 = sin2α -

-

- So that the function sn (for example) may be expressed - as either: -

-

- sn(u, k) -

-

- sn(u \ α) -

-

- sn(u| m) -

-

- To further complicate matters, some texts refer to the complement - of the parameter m, or 1 - m, where: -

-

- 1 - m = 1 - k2 = cos2α -

-

- This implementation uses k throughout, and makes this - the first argument to the functions: this is for alignment with the elliptic - integrals which match the requirements of the Technical - Report on C++ Library Extensions. However, you should be extra - careful when using these functions! -

-
-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The following graphs illustrate how these functions change as k - changes: for small k these are sine waves, while as - k tends to 1 they become hyperbolic functions: -

-

- -

-

- -

-

- -

-
- - Accuracy -
-

- These functions are computed using only basic arithmetic operations and trigomometric - functions, so there isn't much variation in accuracy over differing platforms. - Typically errors are trivially small for small angles, and as is typical - for cyclic functions, grow as the angle increases. Note that only results - for the widest floating point type on the system are given as narrower types - have effectively zero - error. All values are relative errors in units of epsilon. -

-
-

Table 6.70. Error rates for jacobi_cn

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Jacobi Elliptic: Mathworld Data -

-
-

- Max = 45.8ε (Mean = 11.4ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 17.3ε (Mean = 4.29ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 71.6ε (Mean = 19.3ε) -

-
-

- Max = 71.6ε (Mean = 19.4ε) -

-
-

- Jacobi Elliptic: Random Data -

-
-

- Max = 1.83ε (Mean = 0.455ε) -

-
-

- Max = 0.816ε (Mean = 0.0563ε)
-
(GSL 1.16: Max = 2.43ε (Mean = 0.803ε))
- (Cephes: Max = 1.83ε (Mean = 0.437ε)) -

-
-

- Max = 1.68ε (Mean = 0.443ε) -

-
-

- Max = 1.68ε (Mean = 0.454ε) -

-
-

- Jacobi Elliptic: Random Small Values -

-
-

- Max = 26.2ε (Mean = 1.17ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 55.2ε (Mean = 1.64ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 10.4ε (Mean = 0.594ε) -

-
-

- Max = 10.4ε (Mean = 0.602ε) -

-
-

- Jacobi Elliptic: Modulus near 1 -

-
-

- Max = 513ε (Mean = 126ε) -

-
-

- Max = 0.919ε (Mean = 0.127ε)

- (GSL 1.16: Max = 0ε (Mean = 0ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 675ε (Mean = 87.1ε) -

-
-

- Max = 675ε (Mean = 86.8ε) -

-
-

- Jacobi Elliptic: Large Phi -

-
-

- Max = 3.27e+004ε (Mean = 1.93e+003ε) -

-
-

- Max = 14.2ε (Mean = 0.927ε)

- (GSL 1.16: Max = 5.92e+03ε (Mean = 477ε))
- (Cephes: Max = 3.27e+04ε (Mean = 1.93e+03ε)) -

-
-

- Max = 2.97e+04ε (Mean = 1.9e+03ε) -

-
-

- Max = 2.97e+04ε (Mean = 1.9e+03ε) -

-
-
-
-

Table 6.71. Error rates for jacobi_dn

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Jacobi Elliptic: Mathworld Data -

-
-

- Max = 34.3ε (Mean = 8.71ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.82ε (Mean = 1.18ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 49ε (Mean = 14ε) -

-
-

- Max = 49ε (Mean = 14ε) -

-
-

- Jacobi Elliptic: Random Data -

-
-

- Max = 1.52ε (Mean = 0.466ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3ε (Mean = 0.61ε))
(Cephes: - Max = 1.49ε (Mean = 0.321ε)) -

-
-

- Max = 1.53ε (Mean = 0.473ε) -

-
-

- Max = 1.53ε (Mean = 0.481ε) -

-
-

- Jacobi Elliptic: Random Small Values -

-
-

- Max = 16.1ε (Mean = 0.685ε) -

-
-

- Max = 0.5ε (Mean = 0.0122ε)

- (GSL 1.16: Max = 1.5ε (Mean = 0.391ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 22.4ε (Mean = 0.777ε) -

-
-

- Max = 22.4ε (Mean = 0.763ε) -

-
-

- Jacobi Elliptic: Modulus near 1 -

-
-

- Max = 6.24e+003ε (Mean = 482ε) -

-
-

- Max = 2.28ε (Mean = 0.194ε)

- (GSL 1.16: Max = 0ε (Mean = 0ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 3.75e+03ε (Mean = 293ε) -

-
-

- Max = 3.75e+03ε (Mean = 293ε) -

-
-

- Jacobi Elliptic: Large Phi -

-
-

- Max = 1.67e+004ε (Mean = 1e+003ε) -

-
-

- Max = 14.1ε (Mean = 0.897ε)

- (GSL 1.16: Max = 121ε (Mean = 22ε))
(Cephes: - Max = 196ε (Mean = 30.2ε)) -

-
-

- Max = 2.82e+04ε (Mean = 1.79e+03ε) -

-
-

- Max = 2.82e+04ε (Mean = 1.79e+03ε) -

-
-
-
-

Table 6.72. Error rates for jacobi_sn

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Jacobi Elliptic: Mathworld Data -

-
-

- Max = 481ε (Mean = 113ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 588ε (Mean = 146ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 341ε (Mean = 80.7ε) -

-
-

- Max = 341ε (Mean = 80.7ε) -

-
-

- Jacobi Elliptic: Random Data -

-
-

- Max = 1.92ε (Mean = 0.567ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.02ε (Mean = 1.07ε))
(Cephes: - Max = 1.92ε (Mean = 0.567ε)) -

-
-

- Max = 2.01ε (Mean = 0.584ε) -

-
-

- Max = 2.01ε (Mean = 0.593ε) -

-
-

- Jacobi Elliptic: Random Small Values -

-
-

- Max = 2.11ε (Mean = 0.385ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 11.7ε (Mean = 1.65ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 1.99ε (Mean = 0.347ε) -

-
-

- Max = 1.99ε (Mean = 0.347ε) -

-
-

- Jacobi Elliptic: Modulus near 1 -

-
-

- Max = 23.2ε (Mean = 1.85ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 109ε (Mean = 7.35ε) -

-
-

- Max = 109ε (Mean = 7.38ε) -

-
-

- Jacobi Elliptic: Large Phi -

-
-

- Max = 4.36e+004ε (Mean = 2.54e+003ε) -

-
-

- Max = 12ε (Mean = 0.771ε)

- (GSL 1.16: Max = 4.54e+04ε (Mean = 2.63e+03ε))
- (Cephes: Max = 4.36e+04ε (Mean = 2.54e+03ε)) -

-
-

- Max = 2.45e+04ε (Mean = 1.51e+03ε) -

-
-

- Max = 2.45e+04ε (Mean = 1.51e+03ε) -

-
-
-
- - Testing -
-

- The tests use a mixture of spot test values calculated using the online calculator - at functions.wolfram.com, - and random test data generated using MPFR at 1000-bit precision and this - implementation. -

-
- - Implementation -
-

- For k > 1 we apply the relations: -

-

- -

-

- Then filter off the special cases: -

-

- sn(0, k) = 0 and cn(0, k) = dn(0, k) = 1. -

-

- sn(u, 0) = sin(u), cn(u, 0) = cos(u) and dn(u, 0) = 1. -

-

- sn(u, 1) = tanh(u), cn(u, 1) = dn(u, 1) = 1 / cosh(u). -

-

- And for k4 < ε we have: -

-

- -

-

- Otherwise the values are calculated using the method of arithmetic - geometric means. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_nc.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_nc.html deleted file mode 100644 index 98c2b2c7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_nc.html +++ /dev/null @@ -1,86 +0,0 @@ - - - -Jacobi Elliptic Function nc - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_nc(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_nc(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function nc. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic, - with: -

-

- nc(u, k) = 1 / cn(u, k) -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_nd.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_nd.html deleted file mode 100644 index d541189e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_nd.html +++ /dev/null @@ -1,86 +0,0 @@ - - - -Jacobi Elliptic Function nd - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_nd(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_nd(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function nd. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic, - with: -

-

- nd(u, k) = 1 / dn(u, k) -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_ns.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_ns.html deleted file mode 100644 index f5afb244..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_ns.html +++ /dev/null @@ -1,86 +0,0 @@ - - - -Jacobi Elliptic Function ns - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_ns(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_ns(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function ns. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic, - with: -

-

- ns(u, k) = 1 / sn(u, k) -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sc.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sc.html deleted file mode 100644 index a615bf27..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sc.html +++ /dev/null @@ -1,86 +0,0 @@ - - - -Jacobi Elliptic Function sc - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_sc(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_sc(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function sc. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic, - with: -

-

- sc(u, k) = sn(u, k) / cn(u, k) -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sd.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sd.html deleted file mode 100644 index 362cfbae..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sd.html +++ /dev/null @@ -1,86 +0,0 @@ - - - -Jacobi Elliptic Function sd - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_sd(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_sd(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function sd. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic, - with: -

-

- sd(u, k) = sn(u, k) / dn(u, k) -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sn.html b/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sn.html deleted file mode 100644 index 1da567f8..00000000 --- a/boost/libs/math/doc/html/math_toolkit/jacobi/jacobi_sn.html +++ /dev/null @@ -1,82 +0,0 @@ - - - -Jacobi Elliptic Function sn - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/jacobi_elliptic.hpp>
-
-
namespace boost { namespace math {
-
- template <class T, class U>
- calculated-result-type jacobi_sn(T k, U u);
-
- template <class T, class U, class Policy>
- calculated-result-type jacobi_sn(T k, U u, const Policy& pol);
-
-}} // namespaces
-
-
- - Description -
-

- This function returns the Jacobi elliptic function sn. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is a trivial wrapper around jacobi_elliptic. -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/lanczos.html b/boost/libs/math/doc/html/math_toolkit/lanczos.html deleted file mode 100644 index 97497b6a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/lanczos.html +++ /dev/null @@ -1,577 +0,0 @@ - - - -The Lanczos Approximation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Motivation -
-

- Why base gamma and gamma-like functions on the Lanczos approximation? -

-

- First of all I should make clear that for the gamma function over real numbers - (as opposed to complex ones) the Lanczos approximation (See Wikipedia - or Mathworld) - appears to offer no clear advantage over more traditional methods such as - Stirling's - approximation. Pugh carried out an extensive - comparison of the various methods available and discovered that they were all - very similar in terms of complexity and relative error. However, the Lanczos - approximation does have a couple of properties that make it worthy of further - consideration: -

-
    -
  • - The approximation has an easy to compute truncation error that holds for - all z > 0. In practice that means we can use the - same approximation for all z > 0, and be certain - that no matter how large or small z is, the truncation - error will at worst be bounded by some finite value. -
  • -
  • - The approximation has a form that is particularly amenable to analytic - manipulation, in particular ratios of gamma or gamma-like functions are - particularly easy to compute without resorting to logarithms. -
  • -
-

- It is the combination of these two properties that make the approximation attractive: - Stirling's approximation is highly accurate for large z, and has some of the - same analytic properties as the Lanczos approximation, but can't easily be - used across the whole range of z. -

-

- As the simplest example, consider the ratio of two gamma functions: one could - compute the result via lgamma: -

-
exp(lgamma(a) - lgamma(b));
-
-

- However, even if lgamma is uniformly accurate to 0.5ulp, the worst case relative - error in the above can easily be shown to be: -

-
Erel > a * log(a)/2 + b * log(b)/2
-
-

- For small a and b that's not a problem, - but to put the relationship another way: each time a and b increase - in magnitude by a factor of 10, at least one decimal digit of precision will - be lost. -

-

- In contrast, by analytically combining like power terms in a ratio of Lanczos - approximation's, these errors can be virtually eliminated for small a - and b, and kept under control for very large (or very - small for that matter) a and b. Of - course, computing large powers is itself a notoriously hard problem, but even - so, analytic combinations of Lanczos approximations can make the difference - between obtaining a valid result, or simply garbage. Refer to the implementation - notes for the beta - function for an example of this method in practice. The incomplete gamma_p - gamma and beta - functions use similar analytic combinations of power terms, to combine gamma - and beta functions divided by large powers into single (simpler) expressions. -

-
- - The - Approximation -
-

- The Lanczos Approximation to the Gamma Function is given by: -

-

- -

-

- Where Sg(z) is an infinite sum, that is convergent for all z > 0, and g - is an arbitrary parameter that controls the "shape" of the terms - in the sum which is given by: -

-

- -

-

- With individual coefficients defined in closed form by: -

-

- -

-

- However, evaluation of the sum in that form can lead to numerical instability - in the computation of the ratios of rising and falling factorials (effectively - we're multiplying by a series of numbers very close to 1, so roundoff errors - can accumulate quite rapidly). -

-

- The Lanczos approximation is therefore often written in partial fraction form - with the leading constants absorbed by the coefficients in the sum: -

-

- -

-

- where: -

-

- -

-

- Again parameter g is an arbitrarily chosen constant, and - N is an arbitrarily chosen number of terms to evaluate - in the "Lanczos sum" part. -

-
- - - - - -
[Note]Note

- Some authors choose to define the sum from k=1 to N, and hence end up with - N+1 coefficients. This happens to confuse both the following discussion and - the code (since C++ deals with half open array ranges, rather than the closed - range of the sum). This convention is consistent with Godfrey, - but not Pugh, so take care when referring to - the literature in this field. -

-
- - Computing - the Coefficients -
-

- The coefficients C0..CN-1 need to be computed from N and - g at high precision, and then stored as part of the program. - Calculation of the coefficients is performed via the method of Godfrey; - let the constants be contained in a column vector P, then: -

-

- P = D B C F -

-

- where B is an NxN matrix: -

-

- -

-

- D is an NxN matrix: -

-

- -

-

- C is an NxN matrix: -

-

- -

-

- and F is an N element column vector: -

-

- -

-

- Note than the matrices B, D and C contain all integer terms and depend only - on N, this product should be computed first, and then - multiplied by F as the last step. -

-
- - Choosing - the Right Parameters -
-

- The trick is to choose N and g to - give the desired level of accuracy: choosing a small value for g - leads to a strictly convergent series, but one which converges only slowly. - Choosing a larger value of g causes the terms in the series - to be large and/or divergent for about the first g-1 terms, - and to then suddenly converge with a "crunch". -

-

- Pugh has determined the optimal value of g - for N in the range 1 <= N <= 60: - unfortunately in practice choosing these values leads to cancellation errors - in the Lanczos sum as the largest term in the (alternating) series is approximately - 1000 times larger than the result. These optimal values appear not to be useful - in practice unless the evaluation can be done with a number of guard digits - and the coefficients are stored at higher precision than - that desired in the result. These values are best reserved for say, computing - to float precision with double precision arithmetic. -

-
-

Table 17.1. Optimal choices for N and g when computing with guard digits (source: - Pugh)

-
------ - - - - - - - - - - - - - - - - - - - - -
-

- Significand Size -

-
-

- N -

-
-

- g -

-
-

- Max Error -

-
-

- 24 -

-
-

- 6 -

-
-

- 5.581 -

-
-

- 9.51e-12 -

-
-

- 53 -

-
-

- 13 -

-
-

- 13.144565 -

-
-

- 9.2213e-23 -

-
-
-

- The alternative described by Godfrey is to perform - an exhaustive search of the N and g - parameter space to determine the optimal combination for a given p - digit floating-point type. Repeating this work found a good approximation for - double precision arithmetic (close to the one Godfrey - found), but failed to find really good approximations for 80 or 128-bit long - doubles. Further it was observed that the approximations obtained tended to - optimised for the small values of z (1 < z < 200) used to test the implementation - against the factorials. Computing ratios of gamma functions with large arguments - were observed to suffer from error resulting from the truncation of the Lancozos - series. -

-

- Pugh identified all the locations where the theoretical - error of the approximation were at a minimum, but unfortunately has published - only the largest of these minima. However, he makes the observation that the - minima coincide closely with the location where the first neglected term (aN) - in the Lanczos series Sg(z) changes sign. These locations are quite easy to - locate, albeit with considerable computer time. These "sweet spots" - need only be computed once, tabulated, and then searched when required for - an approximation that delivers the required precision for some fixed precision - type. -

-

- Unfortunately, following this path failed to find a really good approximation - for 128-bit long doubles, and those found for 64 and 80-bit reals required - an excessive number of terms. There are two competing issues here: high precision - requires a large value of g, but avoiding cancellation - errors in the evaluation requires a small g. -

-

- At this point note that the Lanczos sum can be converted into rational form - (a ratio of two polynomials, obtained from the partial-fraction form using - polynomial arithmetic), and doing so changes the coefficients so that they - are all positive. That means that the sum in rational form can be - evaluated without cancellation error, albeit with double the number of coefficients - for a given N. Repeating the search of the "sweet spots", this time - evaluating the Lanczos sum in rational form, and testing only those "sweet - spots" whose theoretical error is less than the machine epsilon for the - type being tested, yielded good approximations for all the types tested. The - optimal values found were quite close to the best cases reported by Pugh - (just slightly larger N and slightly smaller g - for a given precision than Pugh reports), and even - though converting to rational form doubles the number of stored coefficients, - it should be noted that half of them are integers (and therefore require less - storage space) and the approximations require a smaller N - than would otherwise be required, so fewer floating point operations may be - required overall. -

-

- The following table shows the optimal values for N and - g when computing at fixed precision. These should be taken - as work in progress: there are no values for 106-bit significand machines (Darwin - long doubles & NTL quad_float), and further optimisation of the values - of g may be possible. Errors given in the table are estimates - of the error due to truncation of the Lanczos infinite series to N - terms. They are calculated from the sum of the first five neglected terms - - and are known to be rather pessimistic estimates - although it is noticeable - that the best combinations of N and g - occurred when the estimated truncation error almost exactly matches the machine - epsilon for the type in question. -

-
-

Table 17.2. Optimum value for N and g when computing at fixed precision

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Significand Size -

-
-

- Platform/Compiler Used -

-
-

- N -

-
-

- g -

-
-

- Max Truncation Error -

-
-

- 24 -

-
-

- Win32, VC++ 7.1 -

-
-

- 6 -

-
-

- 1.428456135094165802001953125 -

-
-

- 9.41e-007 -

-
-

- 53 -

-
-

- Win32, VC++ 7.1 -

-
-

- 13 -

-
-

- 6.024680040776729583740234375 -

-
-

- 3.23e-016 -

-
-

- 64 -

-
-

- Suse Linux 9 IA64, gcc-3.3.3 -

-
-

- 17 -

-
-

- 12.2252227365970611572265625 -

-
-

- 2.34e-024 -

-
-

- 116 -

-
-

- HP Tru64 Unix 5.1B / Alpha, Compaq C++ V7.1-006 -

-
-

- 24 -

-
-

- 20.3209821879863739013671875 -

-
-

- 4.75e-035 -

-
-
-

- Finally note that the Lanczos approximation can be written as follows by removing - a factor of exp(g) from the denominator, and then dividing all the coefficients - by exp(g): -

-

- -

-

- This form is more convenient for calculating lgamma, but for the gamma function - the division by e turns a possibly exact quality into - an inexact value: this reduces accuracy in the common case that the input is - exact, and so isn't used for the gamma function. -

-
- - References -
- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/lcm_function_object.html b/boost/libs/math/doc/html/math_toolkit/lcm_function_object.html deleted file mode 100644 index b4b31ab5..00000000 --- a/boost/libs/math/doc/html/math_toolkit/lcm_function_object.html +++ /dev/null @@ -1,76 +0,0 @@ - - - -LCM Function Object - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Header: <boost/math/common_factor_rt.hpp> -

-
template < typename IntegerType >
-class boost::math::lcm_evaluator
-{
-public:
-   // Types
-   typedef IntegerType  result_type;
-   typedef IntegerType  first_argument_type;
-   typedef IntegerType  second_argument_type;
-
-   // Function object interface
-   result_type  operator ()( first_argument_type const &a,
-   second_argument_type const &b ) const;
-};
-
-

- The boost::math::lcm_evaluator - class template defines a function object class to return the least common multiple - of two integers. The template is parameterized by a single type, called IntegerType here. This type should be a numeric - type that represents integers. The result of the function object is always - nonnegative, even if either of the operator arguments is negative. If the least - common multiple is beyond the range of the integer type, the results are undefined. -

-

- This function object class template is used in the corresponding version of - the LCM function template. If a numeric type wants to customize evaluations - of its least common multiples, then the type should specialize on the lcm_evaluator class template. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/logs_and_tables.html b/boost/libs/math/doc/html/math_toolkit/logs_and_tables.html deleted file mode 100644 index 4125a36a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/logs_and_tables.html +++ /dev/null @@ -1,52 +0,0 @@ - - - -Error logs and tables - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/logs_and_tables/all_table.html b/boost/libs/math/doc/html/math_toolkit/logs_and_tables/all_table.html deleted file mode 100644 index c75b68b3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/logs_and_tables/all_table.html +++ /dev/null @@ -1,12270 +0,0 @@ - - - -Tables of Error Rates for all Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
-

Table 17.3. Error rates for beta

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Beta Function: Small Values -

-
-

- Max = 1.75ε (Mean = 0.828ε) -

-
-

- Max = 2.65ε (Mean = 1.22ε)

- (<tr1/cmath>: Max = 11.9ε (Mean = 7.03ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.94ε (Mean = 1.44ε))
(Rmath - 3.0.2: Max = 1.14ε (Mean = 0.601ε))
(Cephes: - Max = 1.97ε (Mean = 0.934ε)) -

-
-

- Max = 2.86ε (Mean = 1.31ε) -

-
-

- Beta Function: Medium Values -

-
-

- Max = 99.1ε (Mean = 22.4ε) -

-
-

- Max = 60.4ε (Mean = 19.4ε)

- (<tr1/cmath>: Max = 1.07e+03ε (Mean = - 264ε)) -

-
-

- Max = 0.978ε (Mean = 0.0578ε)
-
(GSL 1.16: Max = 1.18e+03ε (Mean = 238ε))
- (Rmath 3.0.2: Max = 1.09e+03ε (Mean = 265ε))
- (Cephes: Max = 1.5e+03ε (Mean = 329ε)) -

-
-

- Max = 107ε (Mean = 24.5ε) -

-
-

- Beta Function: Divergent Values -

-
-

- Max = 10.7ε (Mean = 2.22ε) -

-
-

- Max = 10.3ε (Mean = 2.41ε)

- (<tr1/cmath>: Max = 128ε (Mean = 23.8ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 12.1ε (Mean = 1.99ε))
(Rmath - 3.0.2: Max = 176ε (Mean = 28ε))
(Cephes: - Max = 175ε (Mean = 22ε)) -

-
-

- Max = 19.7ε (Mean = 2.75ε) -

-
-
-
-

Table 17.4. Error rates for beta (incomplete)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete Beta Function: Small Values -

-
-

- Max = 11.1ε (Mean = 2.28ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 12.5ε (Mean = 2.01ε) -

-
-

- Max = 18.7ε (Mean = 3.19ε) -

-
-

- Incomplete Beta Function: Medium Values -

-
-

- Max = 91.1ε (Mean = 12.7ε) -

-
-

- Max = 0.568ε (Mean = 0.0342ε) -

-
-

- Max = 67.1ε (Mean = 13.3ε) -

-
-

- Max = 174ε (Mean = 25ε) -

-
-

- Incomplete Beta Function: Large and Diverse Values -

-
-

- Max = 635ε (Mean = 29.5ε) -

-
-

- Max = 0.999ε (Mean = 0.0399ε) -

-
-

- Max = 6.84e+04ε (Mean = 2.76e+03ε) -

-
-

- Max = 6.86e+04ε (Mean = 2.79e+03ε) -

-
-

- Incomplete Beta Function: Small Integer Values -

-
-

- Max = 26.8ε (Mean = 6.61ε) -

-
-

- Max = 0.786ε (Mean = 0.0248ε) -

-
-

- Max = 10.2ε (Mean = 3.49ε) -

-
-

- Max = 51.8ε (Mean = 11ε) -

-
-
-
-

Table 17.5. Error rates for betac

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete Beta Function: Small Values -

-
-

- Max = 12ε (Mean = 2.43ε) -

-
-

- Max = 0.676ε (Mean = 0.0302ε) -

-
-

- Max = 7.75ε (Mean = 1.91ε) -

-
-

- Max = 12.6ε (Mean = 3.02ε) -

-
-

- Incomplete Beta Function: Medium Values -

-
-

- Max = 91.3ε (Mean = 14.8ε) -

-
-

- Max = 0.949ε (Mean = 0.0944ε) -

-
-

- Max = 63.5ε (Mean = 13.4ε) -

-
-

- Max = 97.6ε (Mean = 24.3ε) -

-
-

- Incomplete Beta Function: Large and Diverse Values -

-
-

- Max = 3.72e+003ε (Mean = 113ε) -

-
-

- Max = 1.12ε (Mean = 0.0458ε) -

-
-

- Max = 1.05e+05ε (Mean = 5.45e+03ε) -

-
-

- Max = 1.04e+05ε (Mean = 5.46e+03ε) -

-
-

- Incomplete Beta Function: Small Integer Values -

-
-

- Max = 26.7ε (Mean = 6.67ε) -

-
-

- Max = 0.586ε (Mean = 0.0314ε) -

-
-

- Max = 10.4ε (Mean = 3.54ε) -

-
-

- Max = 103ε (Mean = 17.4ε) -

-
-
-
-

Table 17.6. Error rates for binomial_coefficient

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Binomials: small arguments -

-
-

- Max = 1ε (Mean = 0.369ε) -

-
-

- Max = 1ε (Mean = 0.369ε) -

-
-

- Max = 1.5ε (Mean = 0.339ε) -

-
-

- Max = 1.5ε (Mean = 0.339ε) -

-
-

- Binomials: large arguments -

-
-

- Max = 24.3ε (Mean = 6.3ε) -

-
-

- Max = 0.939ε (Mean = 0.314ε) -

-
-

- Max = 26ε (Mean = 6.09ε) -

-
-

- Max = 54.1ε (Mean = 10.9ε) -

-
-
-
-

Table 17.7. Error rates for cbrt

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- cbrt Function -

-
-

- Max = 1.7ε (Mean = 0.565ε)

- (<math.h>: Max = 1.7ε (Mean = 0.565ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(Cephes: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 1.34ε (Mean = 0.471ε)

- (<tr1/cmath>: Max = 1.34ε (Mean = 0.471ε))
- (<math.h>: Max = 1.34ε (Mean = 0.471ε)) -

-
-

- Max = 1.11ε (Mean = 0.424ε)

- (<math.h>: Max = 1.11ε (Mean = 0.424ε)) -

-
-
-
-

Table 17.8. Error rates for cos_pi

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- sin_pi and cos_pi -

-
-

- Max = 0.996ε (Mean = 0.281ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.991ε (Mean = 0.302ε) -

-
-

- Max = 0.991ε (Mean = 0.302ε) -

-
-

- sin_pi and cos_pi near integers and half integers -

-
-

- Max = 0.996ε (Mean = 0.298ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.976ε (Mean = 0.28ε) -

-
-

- Max = 0.976ε (Mean = 0.28ε) -

-
-
-
-

Table 17.9. Error rates for cyl_bessel_i

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel I0: Mathworld Data -

-
-

- Max = 0.877ε (Mean = 0.549ε) -

-
-

- Max = 4.57ε (Mean = 2.1ε)

- (<tr1/cmath>: Max = 8.49ε (Mean = 3.46ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 270ε (Mean = 91.6ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 2.55e+43ε (Mean = 8.06e+42ε) And - other failures.) -

-
-

- Max = 4.54ε (Mean = 2.11ε) -

-
-

- Bessel I1: Mathworld Data -

-
-

- Max = 0.885ε (Mean = 0.55ε) -

-
-

- Max = 7.83ε (Mean = 2.79ε)

- (<tr1/cmath>: Max = 5ε (Mean = 2.15ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 128ε (Mean = 41ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 1.28e+43ε (Mean = 4.05e+42ε) And - other failures.) -

-
-

- Max = 6.52ε (Mean = 2.25ε) -

-
-

- Bessel In: Mathworld Data -

-
-

- Max = 3.46ε (Mean = 1.32ε) -

-
-

- Max = 1.8ε (Mean = 1.33ε)

- (<tr1/cmath>: Max = 430ε (Mean = 163ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.31ε (Mean = 0.838ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 3.67e+177ε (Mean = +INFε) And - other failures.) -

-
-

- Max = 463ε (Mean = 140ε) -

-
-

- Bessel Iv: Mathworld Data -

-
-

- Max = 2.97ε (Mean = 1.33ε) -

-
-

- Max = 4.12ε (Mean = 1.85ε)

- (<tr1/cmath>: Max = 616ε (Mean = 221ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 5.95ε (Mean = 2.08ε) And - other failures.)
(Rmath 3.0.2: - Max = 1e+04ε (Mean = 3.18e+03ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 4.12ε (Mean = 1.95ε) -

-
-

- Bessel In: Random Data -

-
-

- Max = 9.67ε (Mean = 1.89ε) -

-
-

- Max = 6.79ε (Mean = 1.15ε)

- (<tr1/cmath>: Max = 645ε (Mean = 132ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 261ε (Mean = 53.2ε) And - other failures.)
(Rmath 3.0.2: - Max = 7.37ε (Mean = 2.4ε))
(Cephes: Max - = 4.22e+06ε (Mean = 2.26e+05ε)) -

-
-

- Max = 176ε (Mean = 39.2ε) -

-
-

- Bessel Iv: Random Data -

-
-

- Max = 7.46ε (Mean = 1.54ε) -

-
-

- Max = 8.35ε (Mean = 1.49ε)

- (<tr1/cmath>: Max = 1.05e+03ε (Mean = - 224ε) And - other failures.) -

-
-

- Max = 0.661ε (Mean = 0.0441ε)
-
(GSL 1.16: Max = 6.18e+03ε (Mean = 1.55e+03ε) - And - other failures.)
(Rmath 3.0.2: - Max = 4.28e+08ε (Mean = 2.85e+07ε))
- (Cephes: Max = 6e+30ε (Mean - = 4e+29ε) And - other failures.) -

-
-

- Max = 283ε (Mean = 88.4ε) -

-
-

- Bessel Iv: Mathworld Data (large values) -

-
-

- Max = 3.67ε (Mean = 1.64ε) -

-
-

- Max = 14.7ε (Mean = 6.57ε)

- (<tr1/cmath>: Max = 118ε (Mean = 57.2ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 37ε (Mean = 18ε) And - other failures.)
(Rmath 3.0.2: - Max = 3.77e+168ε (Mean = 2.39e+168ε) And - other failures.)
(Cephes: - Max = 73.7ε (Mean = 58.5ε)) -

-
-

- Max = 14.7ε (Mean = 6.59ε) -

-
-
-
-

Table 17.10. Error rates for cyl_bessel_i (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel I0: Mathworld Data (Integer Version) -

-
-

- Max = 0.877ε (Mean = 0.549ε) -

-
-

- Max = 4.57ε (Mean = 2.1ε)

- (<tr1/cmath>: Max = 8.49ε (Mean = 3.46ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.79ε (Mean = 0.482ε))
(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 2.55e+43ε (Mean = 8.06e+42ε) And - other failures.) -

-
-

- Max = 4.54ε (Mean = 2.11ε) -

-
-

- Bessel I1: Mathworld Data (Integer Version) -

-
-

- Max = 0.885ε (Mean = 0.55ε) -

-
-

- Max = 7.83ε (Mean = 2.79ε)

- (<tr1/cmath>: Max = 5ε (Mean = 2.15ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.82ε (Mean = 0.456ε))
(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 1.28e+43ε (Mean = 4.05e+42ε) And - other failures.) -

-
-

- Max = 6.52ε (Mean = 2.25ε) -

-
-

- Bessel In: Mathworld Data (Integer Version) -

-
-

- Max = 3.46ε (Mean = 1.32ε) -

-
-

- Max = 1.8ε (Mean = 1.33ε)

- (<tr1/cmath>: Max = 430ε (Mean = 163ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 5.15ε (Mean = 2.13ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 3.67e+177ε (Mean = +INFε) And - other failures.) -

-
-

- Max = 463ε (Mean = 140ε) -

-
-
-
-

Table 17.11. Error rates for cyl_bessel_i_prime

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel I'0: Mathworld Data -

-
-

- Max = 0.885ε (Mean = 0.567ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 7.83ε (Mean = 2.84ε) -

-
-

- Max = 6.52ε (Mean = 2.26ε) -

-
-

- Bessel I'1: Mathworld Data -

-
-

- Max = 1.61ε (Mean = 0.786ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.3ε (Mean = 1.28ε) -

-
-

- Max = 2.3ε (Mean = 1.29ε) -

-
-

- Bessel I'n: Mathworld Data -

-
-

- Max = 3.61ε (Mean = 1.22ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.31ε (Mean = 1.41ε) -

-
-

- Max = 701ε (Mean = 212ε) -

-
-

- Bessel I'v: Mathworld Data -

-
-

- Max = 3.76e+003ε (Mean = 1.19e+003ε) -

-
-

- Max = 1.62ε (Mean = 0.512ε) -

-
-

- Max = 2.89e+03ε (Mean = 914ε) -

-
-

- Max = 2.89e+03ε (Mean = 914ε) -

-
-

- Bessel I'n: Random Data -

-
-

- Max = 9.85ε (Mean = 1.83ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 6.79ε (Mean = 1.13ε) -

-
-

- Max = 195ε (Mean = 37.1ε) -

-
-

- Bessel I'v: Random Data -

-
-

- Max = 14ε (Mean = 2.46ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 14.1ε (Mean = 2.93ε) -

-
-

- Max = 336ε (Mean = 68.5ε) -

-
-

- Bessel I'v: Mathworld Data (large values) -

-
-

- Max = 59.5ε (Mean = 26.8ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 42.6ε (Mean = 20.2ε) -

-
-

- Max = 43.9ε (Mean = 20.7ε) -

-
-
-
-

Table 17.12. Error rates for cyl_bessel_i_prime (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel I'0: Mathworld Data (Integer Version) -

-
-

- Max = 0.885ε (Mean = 0.567ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 7.83ε (Mean = 2.84ε) -

-
-

- Max = 6.52ε (Mean = 2.26ε) -

-
-

- Bessel I'1: Mathworld Data (Integer Version) -

-
-

- Max = 1.61ε (Mean = 0.786ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.3ε (Mean = 1.28ε) -

-
-

- Max = 2.3ε (Mean = 1.29ε) -

-
-

- Bessel I'n: Mathworld Data (Integer Version) -

-
-

- Max = 3.61ε (Mean = 1.22ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.31ε (Mean = 1.41ε) -

-
-

- Max = 701ε (Mean = 212ε) -

-
-
-
-

Table 17.13. Error rates for cyl_bessel_j

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel J0: Mathworld Data -

-
-

- Max = 2.52ε (Mean = 1.2ε) -

-
-

- Max = 6.55ε (Mean = 2.89ε)

- (<tr1/cmath>: Max = 5.04ε (Mean = 1.78ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.629ε (Mean = 0.223ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 1.12ε (Mean = 0.568ε)) -

-
-

- Max = 6.55ε (Mean = 2.86ε) -

-
-

- Bessel J0: Mathworld Data (Tricky cases) -

-
-

- Max = 1e+007ε (Mean = 4.09e+006ε) -

-
-

- Max = 1.63e+08ε (Mean = 6.67e+07ε)
-
(<tr1/cmath>: Max = 4.79e+08ε (Mean - = 1.96e+08ε)) -

-
-

- Max = 7.98e+04ε (Mean = 3.26e+04ε)
-
(GSL 1.16: Max = 6.5e+07ε (Mean = 2.66e+07ε))
- (Rmath 3.0.2: Max = 1.04e+07ε (Mean = 4.29e+06ε))
- (Cephes: Max = 2.54e+08ε (Mean - = 1.04e+08ε)) -

-
-

- Max = 1.64e+08ε (Mean = 6.69e+07ε) -

-
-

- Bessel J1: Mathworld Data -

-
-

- Max = 1.73ε (Mean = 0.976ε) -

-
-

- Max = 2.66ε (Mean = 1.38ε)

- (<tr1/cmath>: Max = 6.1ε (Mean = 2.95ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.62ε (Mean = 2.35ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 2.88ε (Mean = 1.12ε)) -

-
-

- Max = 1.44ε (Mean = 0.637ε) -

-
-

- Bessel J1: Mathworld Data (tricky cases) -

-
-

- Max = 3.23e+004ε (Mean = 1.45e+004ε) -

-
-

- Max = 2.18e+05ε (Mean = 9.76e+04ε)
-
(<tr1/cmath>: Max = 2.15e+06ε (Mean - = 1.58e+06ε)) -

-
-

- Max = 106ε (Mean = 47.5ε)

- (GSL 1.16: Max = 8.75e+05ε (Mean = 5.32e+05ε))
- (Rmath 3.0.2: Max = 2.93e+06ε (Mean = 1.7e+06ε))
- (Cephes: Max = 9.56e+05ε (Mean = 4.99e+05ε)) -

-
-

- Max = 2.18e+05ε (Mean = 9.76e+04ε) -

-
-

- Bessel JN: Mathworld Data -

-
-

- Max = 14.7ε (Mean = 5.4ε) -

-
-

- Max = 6.85ε (Mean = 3.41ε)

- (<tr1/cmath>: Max - = 2.13e+19ε (Mean = 5.16e+18ε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.9e+05ε (Mean = 2.15e+05ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 5.53e+05ε (Mean = 1.9e+05ε)) -

-
-

- Max = 463ε (Mean = 112ε) -

-
-

- Bessel J: Mathworld Data -

-
-

- Max = 14.9ε (Mean = 3.82ε) -

-
-

- Max = 14.7ε (Mean = 4.05ε)

- (<tr1/cmath>: Max = 3.49e+05ε (Mean = - 7.89e+04ε) And - other failures.) -

-
-

- Max = 10ε (Mean = 2.19ε)

- (GSL 1.16: Max = 2.39e+05ε (Mean = 5.24e+04ε) - And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 5.47e+05ε (Mean = 1.3e+05ε)) -

-
-

- Max = 14.7ε (Mean = 4.12ε) -

-
-

- Bessel J: Mathworld Data (large values) -

-
-

- Max = 9.31ε (Mean = 5.52ε) -

-
-

- Max = 607ε (Mean = 305ε)

- (<tr1/cmath>: Max = 34.9ε (Mean = 17.4ε) - And - other failures.) -

-
-

- Max = 0.536ε (Mean = 0.268ε)

- (GSL 1.16: Max = 4.91e+03ε (Mean = 2.46e+03ε) - And - other failures.)
(Rmath 3.0.2: - Max = 35.9ε (Mean = 18.1ε))
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 607ε (Mean = 305ε) -

-
-

- Bessel JN: Random Data -

-
-

- Max = 17.5ε (Mean = 1.46ε) -

-
-

- Max = 50.8ε (Mean = 4.15ε)

- (<tr1/cmath>: Max = 1.12e+03ε (Mean = - 88.7ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 75.7ε (Mean = 5.36ε))
(Rmath - 3.0.2: Max = 3.93ε (Mean = 1.22ε))
(Cephes: - Max = 91.4ε (Mean = 6.47ε)) -

-
-

- Max = 99.6ε (Mean = 22ε) -

-
-

- Bessel J: Random Data -

-
-

- Max = 9.24ε (Mean = 1.36ε) -

-
-

- Max = 9.81ε (Mean = 1.59ε)

- (<tr1/cmath>: Max = 501ε (Mean = 52.3ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 15.5ε (Mean = 3.33ε) And - other failures.)
(Rmath 3.0.2: - Max = 6.74ε (Mean = 1.3ε))
(Cephes: Max - = 16.7ε (Mean = 2.5ε)) -

-
-

- Max = 260ε (Mean = 34ε) -

-
-

- Bessel J: Random Data (Tricky large values) -

-
-

- Max = 59.2ε (Mean = 8.67ε) -

-
-

- Max = 785ε (Mean = 94.2ε)

- (<tr1/cmath>: Max - = 5.01e+17ε (Mean = 6.23e+16ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.48e+05ε (Mean = 5.11e+04ε))
(Rmath - 3.0.2: Max = 71.6ε (Mean = 11.7ε))
(Cephes: - Max = 2.48e+05ε (Mean = 3.02e+04ε)) -

-
-

- Max = 785ε (Mean = 97.4ε) -

-
-
-
-

Table 17.14. Error rates for cyl_bessel_j (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel J0: Mathworld Data (Integer Version) -

-
-

- Max = 2.52ε (Mean = 1.2ε)

- (<math.h>: Max = 1.89ε (Mean = 0.988ε)) -

-
-

- Max = 6.55ε (Mean = 2.89ε)

- (<tr1/cmath>: Max = 5.04ε (Mean = 1.78ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.12ε (Mean = 0.488ε))
(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 1.12ε (Mean = 0.568ε)) -

-
-

- Max = 6.55ε (Mean = 2.86ε) -

-
-

- Bessel J0: Mathworld Data (Tricky cases) (Integer Version) -

-
-

- Max = 1e+007ε (Mean = 4.09e+006ε)
-
(<math.h>: Max - = 2.54e+008ε (Mean = 1.04e+008ε)) -

-
-

- Max = 1.63e+08ε (Mean = 6.67e+07ε)
-
(<tr1/cmath>: Max = 4.79e+08ε (Mean - = 1.96e+08ε)) -

-
-

- Max = 7.98e+04ε (Mean = 3.26e+04ε)
-
(GSL 1.16: Max = 1e+07ε (Mean = 4.11e+06ε))
- (Rmath 3.0.2: Max = 1.04e+07ε (Mean = 4.29e+06ε))
- (Cephes: Max = 2.54e+08ε (Mean - = 1.04e+08ε)) -

-
-

- Max = 1.64e+08ε (Mean = 6.69e+07ε) -

-
-

- Bessel J1: Mathworld Data (Integer Version) -

-
-

- Max = 1.73ε (Mean = 0.976ε)

- (<math.h>: Max = 11.4ε (Mean = 4.15ε)) -

-
-

- Max = 2.66ε (Mean = 1.38ε)

- (<tr1/cmath>: Max = 6.1ε (Mean = 2.95ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.89ε (Mean = 0.721ε))
(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = 2.88ε (Mean = 1.12ε)) -

-
-

- Max = 1.44ε (Mean = 0.637ε) -

-
-

- Bessel J1: Mathworld Data (tricky cases) (Integer Version) -

-
-

- Max = 3.23e+004ε (Mean = 1.45e+004ε)
-
(<math.h>: Max = 1.44e+007ε (Mean - = 6.5e+006ε)) -

-
-

- Max = 2.18e+05ε (Mean = 9.76e+04ε)
-
(<tr1/cmath>: Max = 2.15e+06ε (Mean - = 1.58e+06ε)) -

-
-

- Max = 106ε (Mean = 47.5ε)

- (GSL 1.16: Max = 1.26e+06ε (Mean = 6.28e+05ε))
- (Rmath 3.0.2: Max = 2.93e+06ε (Mean = 1.7e+06ε))
- (Cephes: Max = 9.56e+05ε (Mean = 4.99e+05ε)) -

-
-

- Max = 2.18e+05ε (Mean = 9.76e+04ε) -

-
-

- Bessel JN: Mathworld Data (Integer Version) -

-
-

- Max = 14.7ε (Mean = 5.4ε)

- (<math.h>: Max = - +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 6.85ε (Mean = 3.41ε)

- (<tr1/cmath>: Max - = 2.13e+19ε (Mean = 5.16e+18ε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.9e+05ε (Mean = 2.53e+05ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.)
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 463ε (Mean = 112ε) -

-
-
-
-

Table 17.15. Error rates for cyl_bessel_j_prime

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel J0': Mathworld Data -

-
-

- Max = 6.62ε (Mean = 2.55ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 18.9ε (Mean = 6.81ε) -

-
-

- Max = 18.9ε (Mean = 6.72ε) -

-
-

- Bessel J0': Mathworld Data (Tricky cases) -

-
-

- Max = 3.67ε (Mean = 1.74ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 8.08ε (Mean = 4.57ε) -

-
-

- Max = 7.44ε (Mean = 3.31ε) -

-
-

- Bessel J1': Mathworld Data -

-
-

- Max = 0.999ε (Mean = 0.627ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 7.9ε (Mean = 3.37ε) -

-
-

- Max = 7.9ε (Mean = 3.37ε) -

-
-

- Bessel J1': Mathworld Data (tricky cases) -

-
-

- Max = 288ε (Mean = 129ε) -

-
-

- Max = 287ε (Mean = 129ε) -

-
-

- Max = 5.88e+05ε (Mean = 2.63e+05ε) -

-
-

- Max = 5.88e+05ε (Mean = 2.63e+05ε) -

-
-

- Bessel JN': Mathworld Data -

-
-

- Max = 14ε (Mean = 6.13ε) -

-
-

- Max = 0.527ε (Mean = 0.128ε) -

-
-

- Max = 1.29e+03ε (Mean = 312ε) -

-
-

- Max = 1.29e+03ε (Mean = 355ε) -

-
-

- Bessel J': Mathworld Data -

-
-

- Max = 23.7ε (Mean = 8.01ε) -

-
-

- Max = 21.5ε (Mean = 4.7ε) -

-
-

- Max = 42.5ε (Mean = 9.31ε) -

-
-

- Max = 42.5ε (Mean = 9.32ε) -

-
-

- Bessel J': Mathworld Data (large values) -

-
-

- Max = 2.9ε (Mean = 1.61ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 989ε (Mean = 495ε) -

-
-

- Max = 989ε (Mean = 495ε) -

-
-

- Bessel JN': Random Data -

-
-

- Max = 6.34ε (Mean = 0.997ε) -

-
-

- Max = 0.593ε (Mean = 0.0396ε) -

-
-

- Max = 17.3ε (Mean = 2.47ε) -

-
-

- Max = 79.4ε (Mean = 16.2ε) -

-
-

- Bessel J': Random Data -

-
-

- Max = 176ε (Mean = 9.76ε) -

-
-

- Max = 0.885ε (Mean = 0.0457ε) -

-
-

- Max = 139ε (Mean = 6.47ε) -

-
-

- Max = 279ε (Mean = 27.2ε) -

-
-

- Bessel J': Random Data (Tricky large values) -

-
-

- Max = 379ε (Mean = 45.4ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 474ε (Mean = 62.2ε) -

-
-

- Max = 474ε (Mean = 64.5ε) -

-
-
-
-

Table 17.16. Error rates for cyl_bessel_j_prime (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel J0': Mathworld Data (Integer Version) -

-
-

- Max = 6.62ε (Mean = 2.55ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 18.9ε (Mean = 6.81ε) -

-
-

- Max = 18.9ε (Mean = 6.72ε) -

-
-

- Bessel J0': Mathworld Data (Tricky cases) (Integer Version) -

-
-

- Max = 3.67ε (Mean = 1.74ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 8.08ε (Mean = 4.57ε) -

-
-

- Max = 7.44ε (Mean = 3.31ε) -

-
-

- Bessel J1': Mathworld Data (Integer Version) -

-
-

- Max = 0.999ε (Mean = 0.627ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 7.9ε (Mean = 3.37ε) -

-
-

- Max = 7.9ε (Mean = 3.37ε) -

-
-

- Bessel J1': Mathworld Data (tricky cases) (Integer Version) -

-
-

- Max = 288ε (Mean = 129ε) -

-
-

- Max = 287ε (Mean = 129ε) -

-
-

- Max = 5.88e+05ε (Mean = 2.63e+05ε) -

-
-

- Max = 5.88e+05ε (Mean = 2.63e+05ε) -

-
-

- Bessel JN': Mathworld Data (Integer Version) -

-
-

- Max = 14ε (Mean = 6.13ε) -

-
-

- Max = 0.527ε (Mean = 0.128ε) -

-
-

- Max = 1.29e+03ε (Mean = 312ε) -

-
-

- Max = 1.29e+03ε (Mean = 355ε) -

-
-
-
-

Table 17.17. Error rates for cyl_bessel_k

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel K0: Mathworld Data -

-
-

- Max = 1.55ε (Mean = 0.837ε) -

-
-

- Max = 4.16ε (Mean = 1.46ε)

- (<tr1/cmath>: Max = 9.33ε (Mean = 3.25ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.04ε (Mean = 2.16ε))
(Rmath - 3.0.2: Max = 0.833ε (Mean = 0.601ε)) -

-
-

- Max = 4.16ε (Mean = 1.49ε) -

-
-

- Bessel K1: Mathworld Data -

-
-

- Max = 1ε (Mean = 0.573ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε)

- (<tr1/cmath>: Max = 8.94ε (Mean = 3.19ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.26ε (Mean = 2.21ε))
(Rmath - 3.0.2: Max = 0.894ε (Mean = 0.516ε)) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Bessel Kn: Mathworld Data -

-
-

- Max = 3.63ε (Mean = 1.46ε) -

-
-

- Max = 4.48ε (Mean = 2.14ε)

- (<tr1/cmath>: Max = 12.9ε (Mean = 4.91ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.36ε (Mean = 1.43ε) And - other failures.)
(Rmath 3.0.2: - Max = 8.48ε (Mean = 2.98ε)) -

-
-

- Max = 4.48ε (Mean = 1.98ε) -

-
-

- Bessel Kv: Mathworld Data -

-
-

- Max = 4.78ε (Mean = 2.2ε) -

-
-

- Max = 3.58ε (Mean = 2.44ε)

- (<tr1/cmath>: Max = 13ε (Mean = 4.81ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 5.47ε (Mean = 2.04ε) And - other failures.)
(Rmath 3.0.2: - Max = 3.15ε (Mean = 1.35ε)) -

-
-

- Max = 3.58ε (Mean = 2.29ε) -

-
-

- Bessel Kv: Mathworld Data (large values) -

-
-

- Max = 59.8ε (Mean = 26.9ε) -

-
-

- Max = 42.3ε (Mean = 21ε)

- (<tr1/cmath>: Max = 42.3ε (Mean = 19.8ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 308ε (Mean = 142ε) And - other failures.)
(Rmath 3.0.2: - Max = 84.6ε (Mean = 37.8ε)) -

-
-

- Max = 43.1ε (Mean = 21.3ε) -

-
-

- Bessel Kn: Random Data -

-
-

- Max = 7.47ε (Mean = 1.4ε) -

-
-

- Max = 4.55ε (Mean = 1.09ε)

- (<tr1/cmath>: Max = 13.9ε (Mean = 2.91ε)) -

-
-

- Max = 0.764ε (Mean = 0.0348ε)
-
(GSL 1.16: Max = 8.71ε (Mean = 1.76ε) - And - other failures.)
(Rmath 3.0.2: - Max = 7.47ε (Mean = 1.34ε)) -

-
-

- Max = 4.55ε (Mean = 1.21ε) -

-
-

- Bessel Kv: Random Data -

-
-

- Max = 8.33ε (Mean = 1.62ε) -

-
-

- Max = 7.88ε (Mean = 1.48ε)

- (<tr1/cmath>: Max = 13.6ε (Mean = 2.68ε) - And - other failures.) -

-
-

- Max = 0.507ε (Mean = 0.0313ε)
-
(GSL 1.16: Max = 9.71ε (Mean = 1.47ε) - And - other failures.)
(Rmath 3.0.2: - Max = 7.37ε (Mean = 1.49ε)) -

-
-

- Max = 7.88ε (Mean = 1.49ε) -

-
-
-
-

Table 17.18. Error rates for cyl_bessel_k (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel K0: Mathworld Data (Integer Version) -

-
-

- Max = 1.55ε (Mean = 0.837ε) -

-
-

- Max = 4.16ε (Mean = 1.46ε)

- (<tr1/cmath>: Max = 9.33ε (Mean = 3.25ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.2ε (Mean = 0.733ε))
(Rmath - 3.0.2: Max = 0.833ε (Mean = 0.601ε))
(Cephes: - Max = 1.1e+06ε (Mean = 3.68e+05ε)) -

-
-

- Max = 4.16ε (Mean = 1.49ε) -

-
-

- Bessel K1: Mathworld Data (Integer Version) -

-
-

- Max = 1ε (Mean = 0.573ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε)

- (<tr1/cmath>: Max = 8.94ε (Mean = 3.19ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.626ε (Mean = 0.333ε))
(Rmath - 3.0.2: Max = 0.894ε (Mean = 0.516ε))
(Cephes: - Max = 5.38e+05ε (Mean = 1.79e+05ε)) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Bessel Kn: Mathworld Data (Integer Version) -

-
-

- Max = 3.63ε (Mean = 1.46ε) -

-
-

- Max = 4.48ε (Mean = 2.14ε)

- (<tr1/cmath>: Max = 12.9ε (Mean = 4.91ε) - And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 168ε (Mean = 59.5ε))
(Rmath - 3.0.2: Max = 8.48ε (Mean = 2.98ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 4.48ε (Mean = 1.98ε) -

-
-
-
-

Table 17.19. Error rates for cyl_bessel_k_prime

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel K'0: Mathworld Data -

-
-

- Max = 1ε (Mean = 0.573ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Bessel K'1: Mathworld Data -

-
-

- Max = 1.09ε (Mean = 0.607ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.96ε (Mean = 1ε) -

-
-

- Max = 1.96ε (Mean = 1.04ε) -

-
-

- Bessel K'n: Mathworld Data -

-
-

- Max = 4.17ε (Mean = 1.74ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 4.47ε (Mean = 2.05ε) -

-
-

- Max = 4.47ε (Mean = 1.93ε) -

-
-

- Bessel K'v: Mathworld Data -

-
-

- Max = 3.94ε (Mean = 1.43ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 3.94ε (Mean = 2.49ε) -

-
-

- Max = 3.94ε (Mean = 2.35ε) -

-
-

- Bessel K'v: Mathworld Data (large values) -

-
-

- Max = 18.6ε (Mean = 12.1ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 59.2ε (Mean = 42.9ε) -

-
-

- Max = 59.8ε (Mean = 43.4ε) -

-
-

- Bessel K'n: Random Data -

-
-

- Max = 8.18ε (Mean = 1.45ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 4.53ε (Mean = 1.12ε) -

-
-

- Max = 4.45ε (Mean = 1.23ε) -

-
-

- Bessel K'v: Random Data -

-
-

- Max = 8.32ε (Mean = 1.65ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 7.95ε (Mean = 1.53ε) -

-
-

- Max = 7.95ε (Mean = 1.55ε) -

-
-
-
-

Table 17.20. Error rates for cyl_bessel_k_prime (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel K'0: Mathworld Data (Integer Version) -

-
-

- Max = 1ε (Mean = 0.573ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Max = 1.8ε (Mean = 1.02ε) -

-
-

- Bessel K'1: Mathworld Data (Integer Version) -

-
-

- Max = 1.09ε (Mean = 0.607ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.96ε (Mean = 1ε) -

-
-

- Max = 1.96ε (Mean = 1.04ε) -

-
-

- Bessel K'n: Mathworld Data (Integer Version) -

-
-

- Max = 4.17ε (Mean = 1.74ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 4.47ε (Mean = 2.05ε) -

-
-

- Max = 4.47ε (Mean = 1.93ε) -

-
-
-
-

Table 17.21. Error rates for cyl_neumann

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Y0: Mathworld Data -

-
-

- Max = 4.61ε (Mean = 2.29ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 60.9ε (Mean = 20.4ε))
(Rmath - 3.0.2: Max = 167ε (Mean = 56.5ε)) -

-
-

- Max = 5.59ε (Mean = 2.54ε)

- (<tr1/cmath>: Max = 2.05e+05ε (Mean = - 6.87e+04ε)) -

-
-

- Max = 5.53ε (Mean = 2.4ε) -

-
-

- Y1: Mathworld Data -

-
-

- Max = 4.75ε (Mean = 1.72ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 23.4ε (Mean = 8.1ε))
(Rmath - 3.0.2: Max = 193ε (Mean = 64.4ε)) -

-
-

- Max = 12.7ε (Mean = 4.34ε)

- (<tr1/cmath>: Max = 9.71e+03ε (Mean = - 4.08e+03ε)) -

-
-

- Max = 6.33ε (Mean = 2.29ε) -

-
-

- Yn: Mathworld Data -

-
-

- Max = 35ε (Mean = 11.8ε) -

-
-

- Max = 0.993ε (Mean = 0.314ε)

- (GSL 1.16: Max = 2.41e+05ε (Mean = 7.62e+04ε) - And - other failures.)
(Rmath 3.0.2: - Max = 1.24e+04ε (Mean = 4e+03ε)) -

-
-

- Max = 55.2ε (Mean = 17.7ε)

- (<tr1/cmath>: Max - = 2.2e+20ε (Mean = 6.97e+19ε) And - other failures.) -

-
-

- Max = 55.2ε (Mean = 17.8ε) -

-
-

- Yv: Mathworld Data -

-
-

- Max = 7.89ε (Mean = 3.27ε) -

-
-

- Max = 10ε (Mean = 3.02ε)

- (GSL 1.16: Max = 1.07e+05ε (Mean = 3.22e+04ε) - And - other failures.)
(Rmath 3.0.2: - Max = 1.05e+03ε (Mean = 326ε)) -

-
-

- Max = 10.7ε (Mean = 4.92ε)

- (<tr1/cmath>: Max - = 3.49e+15ε (Mean = 1.05e+15ε) And - other failures.) -

-
-

- Max = 10.7ε (Mean = 5.1ε) -

-
-

- Yv: Mathworld Data (large values) -

-
-

- Max = 0.682ε (Mean = 0.35ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 60.8ε (Mean = 23ε) And - other failures.)
(Rmath 3.0.2: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 1.57ε (Mean = 1.17ε)

- (<tr1/cmath>: Max = 43.2ε (Mean = 16.3ε) - And - other failures.) -

-
-

- Max = 1.57ε (Mean = 1.24ε) -

-
-

- Y0 and Y1: Random Data -

-
-

- Max = 4.17ε (Mean = 1.24ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 34.4ε (Mean = 8.9ε))
(Rmath - 3.0.2: Max = 83ε (Mean = 14.2ε)) -

-
-

- Max = 11.8ε (Mean = 3.28ε)

- (<tr1/cmath>: Max = 2.59e+03ε (Mean = - 500ε)) -

-
-

- Max = 10.8ε (Mean = 3.04ε) -

-
-

- Yn: Random Data -

-
-

- Max = 117ε (Mean = 10.2ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 500ε (Mean = 47.8ε))
(Rmath - 3.0.2: Max = 691ε (Mean = 67.9ε)) -

-
-

- Max = 338ε (Mean = 28.2ε)

- (<tr1/cmath>: Max = 4.01e+03ε (Mean = - 348ε)) -

-
-

- Max = 338ε (Mean = 27.5ε) -

-
-

- Yv: Random Data -

-
-

- Max = 1.23e+003ε (Mean = 69.9ε) -

-
-

- Max = 1.53ε (Mean = 0.102ε)

- (GSL 1.16: Max = 1.41e+06ε (Mean = 7.67e+04ε))
- (Rmath 3.0.2: Max = 1.79e+05ε (Mean = 9.64e+03ε)) -

-
-

- Max = 2.08e+03ε (Mean = 149ε)
-
(<tr1/cmath>: Max - = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 2.08e+03ε (Mean = 149ε) -

-
-
-
-

Table 17.22. Error rates for cyl_neumann (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Y0: Mathworld Data (Integer Version) -

-
-

- Max = 4.61ε (Mean = 2.29ε)

- (<math.h>: Max = 5.37e+003ε (Mean = 1.81e+003ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.46ε (Mean = 2.38ε))
(Rmath - 3.0.2: Max = 167ε (Mean = 56.5ε))
(Cephes: - Max = 5.37e+03ε (Mean = 1.81e+03ε)) -

-
-

- Max = 5.59ε (Mean = 2.54ε)

- (<tr1/cmath>: Max = 2.05e+05ε (Mean = - 6.87e+04ε)) -

-
-

- Max = 5.53ε (Mean = 2.4ε) -

-
-

- Y1: Mathworld Data (Integer Version) -

-
-

- Max = 4.75ε (Mean = 1.72ε)

- (<math.h>: Max = 1.86e+004ε (Mean = 6.2e+003ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.51ε (Mean = 0.839ε))
(Rmath - 3.0.2: Max = 193ε (Mean = 64.4ε))
(Cephes: - Max = 1.86e+04ε (Mean = 6.2e+03ε)) -

-
-

- Max = 12.7ε (Mean = 4.34ε)

- (<tr1/cmath>: Max = 9.71e+03ε (Mean = - 4.08e+03ε)) -

-
-

- Max = 6.33ε (Mean = 2.29ε) -

-
-

- Yn: Mathworld Data (Integer Version) -

-
-

- Max = 35ε (Mean = 11.8ε)

- (<math.h>: Max = 2.49e+005ε (Mean = 8.14e+004ε)) -

-
-

- Max = 0.993ε (Mean = 0.314ε)

- (GSL 1.16: Max = 2.41e+05ε (Mean = 7.62e+04ε))
- (Rmath 3.0.2: Max = 1.24e+04ε (Mean = 4e+03ε))
- (Cephes: Max = 2.49e+05ε (Mean = 8.14e+04ε)) -

-
-

- Max = 55.2ε (Mean = 17.7ε)

- (<tr1/cmath>: Max - = 2.2e+20ε (Mean = 6.97e+19ε) And - other failures.) -

-
-

- Max = 55.2ε (Mean = 17.8ε) -

-
-
-
-

Table 17.23. Error rates for cyl_neumann_prime

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Y'0: Mathworld Data -

-
-

- Max = 4.75ε (Mean = 1.75ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 12.7ε (Mean = 4.85ε) -

-
-

- Max = 6.33ε (Mean = 3.14ε) -

-
-

- Y'1: Mathworld Data -

-
-

- Max = 3.08ε (Mean = 1.2ε) -

-
-

- Max = 0.58ε (Mean = 0.193ε) -

-
-

- Max = 36.6ε (Mean = 12.7ε) -

-
-

- Max = 34ε (Mean = 11.8ε) -

-
-

- Y'n: Mathworld Data -

-
-

- Max = 563ε (Mean = 178ε) -

-
-

- Max = 2.05ε (Mean = 0.677ε) -

-
-

- Max = 56ε (Mean = 18.2ε) -

-
-

- Max = 56ε (Mean = 18.2ε) -

-
-

- Y'v: Mathworld Data -

-
-

- Max = 23.7ε (Mean = 10.1ε) -

-
-

- Max = 21.5ε (Mean = 6.49ε) -

-
-

- Max = 42.5ε (Mean = 13.4ε) -

-
-

- Max = 42.5ε (Mean = 13.6ε) -

-
-

- Y'v: Mathworld Data (large values) -

-
-

- Max = 0.627ε (Mean = 0.237ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.57ε (Mean = 1.24ε) -

-
-

- Max = 1.57ε (Mean = 1.24ε) -

-
-

- Y'0 and Y'1: Random Data -

-
-

- Max = 5.95ε (Mean = 1.36ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 23.8ε (Mean = 3.84ε) -

-
-

- Max = 23.8ε (Mean = 3.69ε) -

-
-

- Y'n: Random Data -

-
-

- Max = 621ε (Mean = 36ε) -

-
-

- Max = 1.53ε (Mean = 0.0885ε) -

-
-

- Max = 2.35e+03ε (Mean = 136ε) -

-
-

- Max = 2.35e+03ε (Mean = 136ε) -

-
-

- Y'v: Random Data -

-
-

- Max = 3.23e+004ε (Mean = 1.13e+003ε) -

-
-

- Max = 56.8ε (Mean = 2.59ε) -

-
-

- Max = 1.16e+05ε (Mean = 5.28e+03ε) -

-
-

- Max = 1.16e+05ε (Mean = 5.28e+03ε) -

-
-
-
-

Table 17.24. Error rates for cyl_neumann_prime (integer orders)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Y'0: Mathworld Data (Integer Version) -

-
-

- Max = 4.75ε (Mean = 1.75ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 12.7ε (Mean = 4.85ε) -

-
-

- Max = 6.33ε (Mean = 3.14ε) -

-
-

- Y'1: Mathworld Data (Integer Version) -

-
-

- Max = 3.08ε (Mean = 1.2ε) -

-
-

- Max = 0.58ε (Mean = 0.193ε) -

-
-

- Max = 36.6ε (Mean = 12.7ε) -

-
-

- Max = 34ε (Mean = 11.8ε) -

-
-

- Y'n: Mathworld Data (Integer Version) -

-
-

- Max = 563ε (Mean = 178ε) -

-
-

- Max = 2.05ε (Mean = 0.677ε) -

-
-

- Max = 56ε (Mean = 18.2ε) -

-
-

- Max = 56ε (Mean = 18.2ε) -

-
-
-
-

Table 17.25. Error rates for digamma

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Digamma Function: Large Values -

-
-

- Max = 0.98ε (Mean = 0.369ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.84ε (Mean = 0.71ε))
(Rmath - 3.0.2: Max = 1.18ε (Mean = 0.331ε))
(Cephes: - Max = 0.919ε (Mean = 0.394ε)) -

-
-

- Max = 1.39ε (Mean = 0.413ε) -

-
-

- Max = 1.39ε (Mean = 0.413ε) -

-
-

- Digamma Function: Near the Positive Root -

-
-

- Max = 0.997ε (Mean = 0.527ε) -

-
-

- Max = 0.891ε (Mean = 0.0995ε)
-
(GSL 1.16: Max = 135ε (Mean = 11.9ε))
- (Rmath 3.0.2: Max = 2.02e+03ε (Mean = 256ε))
- (Cephes: Max = 1.42e+04ε (Mean = 1.14e+03ε)) -

-
-

- Max = 1.37ε (Mean = 0.477ε) -

-
-

- Max = 1.31ε (Mean = 0.451ε) -

-
-

- Digamma Function: Near Zero -

-
-

- Max = 0.953ε (Mean = 0.337ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.953ε (Mean = 0.348ε))
(Rmath - 3.0.2: Max = 1.17ε (Mean = 0.564ε))
(Cephes: - Max = 3.5ε (Mean = 1.04ε)) -

-
-

- Max = 0.984ε (Mean = 0.361ε) -

-
-

- Max = 0.984ε (Mean = 0.361ε) -

-
-

- Digamma Function: Negative Values -

-
-

- Max = 214ε (Mean = 16.1ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.56e+04ε (Mean = 3.91e+03ε))
(Rmath - 3.0.2: Max = 4.6e+04ε (Mean = 3.94e+03ε))
(Cephes: - Max = 214ε (Mean = 16.4ε)) -

-
-

- Max = 180ε (Mean = 13ε) -

-
-

- Max = 180ε (Mean = 13ε) -

-
-

- Digamma Function: Values near 0 -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.866ε (Mean = 0.387ε))
(Rmath - 3.0.2: Max = 3.58e+05ε (Mean = 1.6e+05ε))
(Cephes: - Max = 0.5ε (Mean = 0.224ε)) -

-
-

- Max = 1ε (Mean = 0.592ε) -

-
-

- Max = 1ε (Mean = 0.592ε) -

-
-

- Digamma Function: Integer arguments -

-
-

- Max = 0.992ε (Mean = 0.452ε) -

-
-

- Max = 0.992ε (Mean = 0.215ε)

- (GSL 1.16: Max = 1.18ε (Mean = 0.607ε))
- (Rmath 3.0.2: Max = 4.33ε (Mean = 0.982ε))
- (Cephes: Max = 0.992ε (Mean = 0.383ε)) -

-
-

- Max = 0.888ε (Mean = 0.403ε) -

-
-

- Max = 0.888ε (Mean = 0.403ε) -

-
-

- Digamma Function: Half integer arguments -

-
-

- Max = 0.78ε (Mean = 0.314ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.09ε (Mean = 0.531ε))
(Rmath - 3.0.2: Max = 46.2ε (Mean = 7.24ε))
(Cephes: - Max = 8.56ε (Mean = 1.44ε)) -

-
-

- Max = 0.906ε (Mean = 0.409ε) -

-
-

- Max = 0.906ε (Mean = 0.409ε) -

-
-
-
-

Table 17.26. Error rates for ellint_1

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral F: Mathworld Data -

-
-

- Max = 0.919ε (Mean = 0.542ε) -

-
-

- Max = 0.94ε (Mean = 0.509ε)

- (<tr1/cmath>: Max - = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.919ε (Mean = 0.544ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 0.94ε (Mean = 0.509ε) -

-
-

- Elliptic Integral F: Random Data -

-
-

- Max = 2.26ε (Mean = 0.631ε) -

-
-

- Max = 1.57ε (Mean = 0.56ε)

- (<tr1/cmath>: Max = 2.56ε (Mean = 0.816ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.99ε (Mean = 0.797ε))
(Cephes: - Max = 2.18ε (Mean = 0.535ε)) -

-
-

- Max = 1.57ε (Mean = 0.561ε) -

-
-
-
-

Table 17.27. Error rates for ellint_1 (complete)

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral K: Mathworld Data -

-
-

- Max = 0.915ε (Mean = 0.547ε) -

-
-

- Max = 0.887ε (Mean = 0.296ε)

- (<tr1/cmath>: Max = 1.19ε (Mean = 0.765ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.623ε (Mean = 0.393ε)) -

-
-

- Max = 0.887ε (Mean = 0.296ε) -

-
-

- Elliptic Integral K: Random Data -

-
-

- Max = 0.958ε (Mean = 0.408ε) -

-
-

- Max = 1.27ε (Mean = 0.473ε)

- (<tr1/cmath>: Max = 2.19ε (Mean = 0.694ε)) -

-
-

- Max = 0.851ε (Mean = 0.0851ε)
-
(GSL 1.16: Max = 2.32ε (Mean = 0.688ε)) -

-
-

- Max = 1.27ε (Mean = 0.473ε) -

-
-
-
-

Table 17.28. Error rates for ellint_2

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral E: Mathworld Data -

-
-

- Max = 1.31ε (Mean = 0.727ε) -

-
-

- Max = 0.656ε (Mean = 0.317ε)

- (<tr1/cmath>: Max - = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.63ε (Mean = 0.325ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 0.656ε (Mean = 0.317ε) -

-
-

- Elliptic Integral E: Random Data -

-
-

- Max = 2.23ε (Mean = 0.639ε) -

-
-

- Max = 2.05ε (Mean = 0.632ε)

- (<tr1/cmath>: Max = 3.08e+04ε (Mean = - 3.84e+03ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.4ε (Mean = 1.16ε))
(Cephes: - Max = 8.92ε (Mean = 1.48ε)) -

-
-

- Max = 2.05ε (Mean = 0.632ε) -

-
-
-
-

Table 17.29. Error rates for ellint_2 (complete)

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral E: Mathworld Data -

-
-

- Max = 1.3ε (Mean = 0.615ε) -

-
-

- Max = 0.836ε (Mean = 0.469ε)

- (<tr1/cmath>: Max = 170ε (Mean = 55.1ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.09ε (Mean = 1.04ε) And - other failures.) -

-
-

- Max = 0.836ε (Mean = 0.469ε) -

-
-

- Elliptic Integral E: Random Data -

-
-

- Max = 1.71ε (Mean = 0.553ε) -

-
-

- Max = 1.97ε (Mean = 0.629ε)

- (<tr1/cmath>: Max = 2.49e+04ε (Mean = - 3.39e+03ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.34ε (Mean = 1.18ε)) -

-
-

- Max = 1.97ε (Mean = 0.629ε) -

-
-
-
-

Table 17.30. Error rates for ellint_3

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral PI: Mathworld Data -

-
-

- Max = 565ε (Mean = 102ε) -

-
-

- Max = 475ε (Mean = 86.3ε)

- (<tr1/cmath>: Max - = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.48e+05ε (Mean = 2.54e+04ε) And - other failures.) -

-
-

- Max = 475ε (Mean = 86.3ε) -

-
-

- Elliptic Integral PI: Random Data -

-
-

- Max = 9.08ε (Mean = 0.99ε) -

-
-

- Max = 4.54ε (Mean = 0.895ε)

- (<tr1/cmath>: Max - = 3.37e+20ε (Mean = 3.47e+19ε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 633ε (Mean = 50.1ε)) -

-
-

- Max = 4.49ε (Mean = 0.891ε) -

-
-

- Elliptic Integral PI: Large Random Data -

-
-

- Max = 2.86ε (Mean = 0.944ε) -

-
-

- Max = 3.7ε (Mean = 0.893ε)

- (<tr1/cmath>: Max - = 2.52e+18ε (Mean = 4.83e+17ε) And - other failures.) -

-
-

- Max = 0.557ε (Mean = 0.0389ε)
-
(GSL 1.16: Max = 40.1ε (Mean = 7.77ε)) -

-
-

- Max = 3.7ε (Mean = 0.892ε) -

-
-
-
-

Table 17.31. Error rates for ellint_3 (complete)

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Complete Elliptic Integral PI: Mathworld Data -

-
-

- Max = 0.971ε (Mean = 0.464ε) -

-
-

- Max = 1.4ε (Mean = 0.575ε)

- (<tr1/cmath>: Max - = 6.31e+20ε (Mean = 1.53e+20ε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 6.33e+04ε (Mean = 1.54e+04ε) And - other failures.) -

-
-

- Max = 1.4ε (Mean = 0.575ε) -

-
-

- Complete Elliptic Integral PI: Random Data -

-
-

- Max = 2.46ε (Mean = 0.654ε) -

-
-

- Max = 2.45ε (Mean = 0.696ε)

- (<tr1/cmath>: Max - = 8.78e+20ε (Mean = 1.02e+20ε) And - other failures.) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 24ε (Mean = 2.99ε)) -

-
-

- Max = 2.4ε (Mean = 0.681ε) -

-
-
-
-

Table 17.32. Error rates for ellint_d

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral E: Mathworld Data -

-
-

- Max = 0.862ε (Mean = 0.457ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.862ε (Mean = 0.568ε)) -

-
-

- Max = 1.3ε (Mean = 0.813ε) -

-
-

- Max = 1.3ε (Mean = 0.813ε) -

-
-

- Elliptic Integral D: Random Data -

-
-

- Max = 2.87ε (Mean = 0.805ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.01ε (Mean = 0.928ε)) -

-
-

- Max = 2.51ε (Mean = 0.883ε) -

-
-

- Max = 2.51ε (Mean = 0.883ε) -

-
-
-
-

Table 17.33. Error rates for ellint_d (complete)

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral E: Mathworld Data -

-
-

- Max = 0.637ε (Mean = 0.368ε) -

-
-

- Max = 0.637ε (Mean = 0.368ε) -

-
-

- Max = 1.27ε (Mean = 0.735ε) -

-
-

- Max = 1.27ε (Mean = 0.735ε) -

-
-

- Elliptic Integral D: Random Data -

-
-

- Max = 1.27ε (Mean = 0.355ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.27ε (Mean = 0.334ε) -

-
-

- Max = 1.27ε (Mean = 0.334ε) -

-
-
-
-

Table 17.34. Error rates for ellint_rc

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- RC: Random data -

-
-

- Max = 0.962ε (Mean = 0.407ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.4ε (Mean = 0.624ε)) -

-
-

- Max = 0.995ε (Mean = 0.433ε) -

-
-

- Max = 0.995ε (Mean = 0.438ε) -

-
-
-
-

Table 17.35. Error rates for ellint_rd

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- RD: Random data -

-
-

- Max = 2.16ε (Mean = 0.803ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.59ε (Mean = 0.878ε)) -

-
-

- Max = 2.73ε (Mean = 0.831ε) -

-
-

- Max = 2.73ε (Mean = 0.829ε) -

-
-

- RD: y = z -

-
-

- Max = 16.5ε (Mean = 0.843ε) -

-
-

- Max = 0.896ε (Mean = 0.022ε)

- (GSL 1.16: Max = 2.88ε (Mean = 0.839ε)) -

-
-

- Max = 2.65ε (Mean = 0.82ε) -

-
-

- Max = 2.65ε (Mean = 0.819ε) -

-
-

- RD: x = y -

-
-

- Max = 3.51ε (Mean = 0.816ε) -

-
-

- Max = 0.824ε (Mean = 0.0272ε)
-
(GSL 1.16: Max = 3.74ε (Mean = 0.84ε)) -

-
-

- Max = 2.85ε (Mean = 0.865ε) -

-
-

- Max = 2.85ε (Mean = 0.865ε) -

-
-

- RD: x = 0, y = z -

-
-

- Max = 1.16ε (Mean = 0.493ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2ε (Mean = 0.656ε)) -

-
-

- Max = 1.19ε (Mean = 0.522ε) -

-
-

- Max = 1.19ε (Mean = 0.522ε) -

-
-

- RD: x = y = z -

-
-

- Max = 1.03ε (Mean = 0.418ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.03ε (Mean = 0.418ε)) -

-
-

- Max = 0.998ε (Mean = 0.387ε) -

-
-

- Max = 0.998ε (Mean = 0.387ε) -

-
-

- RD: x = 0 -

-
-

- Max = 2.64ε (Mean = 0.894ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.85ε (Mean = 0.781ε)) -

-
-

- Max = 2.79ε (Mean = 0.883ε) -

-
-

- Max = 2.79ε (Mean = 0.883ε) -

-
-
-
-

Table 17.36. Error rates for ellint_rf

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- RF: Random data -

-
-

- Max = 2.02ε (Mean = 0.677ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.73ε (Mean = 0.804ε)) -

-
-

- Max = 2.54ε (Mean = 0.674ε) -

-
-

- Max = 2.54ε (Mean = 0.674ε) -

-
-

- RF: x = y = z -

-
-

- Max = 0.999ε (Mean = 0.335ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.999ε (Mean = 0.34ε)) -

-
-

- Max = 0.991ε (Mean = 0.345ε) -

-
-

- Max = 0.991ε (Mean = 0.345ε) -

-
-

- RF: x = y or y = z or x = z -

-
-

- Max = 1.21ε (Mean = 0.394ε) -

-
-

- Max = 0.536ε (Mean = 0.00658ε)
-
(GSL 1.16: Max = 2.89ε (Mean = 0.749ε)) -

-
-

- Max = 1.95ε (Mean = 0.418ε) -

-
-

- Max = 1.57ε (Mean = 0.418ε) -

-
-

- RF: x = 0, y = z -

-
-

- Max = 0.999ε (Mean = 0.407ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.29ε (Mean = 0.527ε)) -

-
-

- Max = 0.894ε (Mean = 0.338ε) -

-
-

- Max = 0.894ε (Mean = 0.338ε) -

-
-

- RF: z = 0 -

-
-

- Max = 1.89ε (Mean = 0.587ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.54ε (Mean = 0.781ε)) -

-
-

- Max = 1.7ε (Mean = 0.539ε) -

-
-

- Max = 1.7ε (Mean = 0.539ε) -

-
-
-
-

Table 17.37. Error rates for ellint_rg

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- RG: Random Data -

-
-

- Max = 3.65ε (Mean = 0.929ε) -

-
-

- Max = 0.983ε (Mean = 0.0172ε)
-
(GSL 1.16: Max = 0.983ε (Mean = 0.0172ε)) -

-
-

- Max = 3.95ε (Mean = 0.951ε) -

-
-

- Max = 3.95ε (Mean = 0.951ε) -

-
-

- RG: two values 0 -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- RG: All values the same or zero -

-
-

- Max = 1.06ε (Mean = 0.348ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0.992ε (Mean = 0.288ε) -

-
-

- Max = 0.992ε (Mean = 0.288ε) -

-
-

- RG: two values the same -

-
-

- Max = 1.96ε (Mean = 0.374ε) -

-
-

- Max = 0.594ε (Mean = 0.0103ε)
-
(GSL 1.16: Max = 0.594ε (Mean = 0.0103ε)) -

-
-

- Max = 1.51ε (Mean = 0.404ε) -

-
-

- Max = 1.51ε (Mean = 0.404ε) -

-
-

- RG: one value zero -

-
-

- Max = 1.96ε (Mean = 0.674ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 2.14ε (Mean = 0.722ε) -

-
-

- Max = 2.14ε (Mean = 0.722ε) -

-
-
-
-

Table 17.38. Error rates for ellint_rj

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- RJ: Random data -

-
-

- Max = 119ε (Mean = 4.32ε) -

-
-

- Max = 0.52ε (Mean = 0.0184ε)

- (GSL 1.16: Max = 3.57ε (Mean = 0.704ε) And - other failures.) -

-
-

- Max = 186ε (Mean = 6.67ε) -

-
-

- Max = 186ε (Mean = 6.7ε) -

-
-

- RJ: 4 Equal Values -

-
-

- Max = 1.03ε (Mean = 0.418ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.03ε (Mean = 0.418ε)) -

-
-

- Max = 0.998ε (Mean = 0.387ε) -

-
-

- Max = 0.998ε (Mean = 0.387ε) -

-
-

- RJ: 3 Equal Values -

-
-

- Max = 39.9ε (Mean = 1.12ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.96ε (Mean = 1.06ε)) -

-
-

- Max = 20.8ε (Mean = 0.986ε) -

-
-

- Max = 18.2ε (Mean = 0.917ε) -

-
-

- RJ: 2 Equal Values -

-
-

- Max = 214ε (Mean = 5.05ε) -

-
-

- Max = 0.6ε (Mean = 0.0228ε)

- (GSL 1.16: Max = 2.57ε (Mean = 0.754ε)) -

-
-

- Max = 220ε (Mean = 6.64ε) -

-
-

- Max = 135ε (Mean = 5.3ε) -

-
-

- RJ: Equal z and p -

-
-

- Max = 15.4ε (Mean = 1.05ε) -

-
-

- Max = 0.742ε (Mean = 0.0166ε)
-
(GSL 1.16: Max = 2.62ε (Mean = 0.699ε)) -

-
-

- Max = 17.2ε (Mean = 1.16ε) -

-
-

- Max = 16.6ε (Mean = 1.15ε) -

-
-
-
-

Table 17.39. Error rates for erf

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Erf Function: Small Values -

-
-

- Max = 0.996ε (Mean = 0.182ε)

- (<math.h>: Max = 1.57ε (Mean = 0.317ε)) -

-
-

- Max = 0.925ε (Mean = 0.193ε)

- (<tr1/cmath>: Max = 0.944ε (Mean = 0.191ε))
- (<math.h>: Max = 0.944ε (Mean = 0.191ε)) -

-
-

- Max = 0.841ε (Mean = 0.0687ε)
-
(GSL 1.16: Max = 2.06ε (Mean = 0.319ε))
- (Cephes: Max = 1.13ε (Mean = 0.442ε)) -

-
-

- Max = 0.925ε (Mean = 0.193ε)

- (<math.h>: Max = 0.944ε (Mean = 0.194ε)) -

-
-

- Erf Function: Medium Values -

-
-

- Max = 1ε (Mean = 0.169ε)

- (<math.h>: Max = 1.19ε (Mean = 0.244ε)) -

-
-

- Max = 1.5ε (Mean = 0.193ε)

- (<tr1/cmath>: Max = 0.921ε (Mean = 0.0723ε))
- (<math.h>: Max = 0.921ε (Mean = 0.0723ε)) -

-
-

- Max = 1ε (Mean = 0.119ε)

- (GSL 1.16: Max = 2.31ε (Mean = 0.368ε))
- (Cephes: Max = 1.34ε (Mean = 0.279ε)) -

-
-

- Max = 1.5ε (Mean = 0.202ε)

- (<math.h>: Max = 0.921ε (Mean = 0.071ε)) -

-
-

- Erf Function: Large Values -

-
-

- Max = 0ε (Mean = 0ε)

(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(<tr1/cmath>: - Max = 0ε (Mean = 0ε))
(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε))
(Cephes: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-
-
-

Table 17.40. Error rates for erf_inv

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse Erf Function -

-
-

- Max = 1.09ε (Mean = 0.502ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.996ε (Mean = 0.389ε) -

-
-

- Max = 0.996ε (Mean = 0.385ε) -

-
-
-
-

Table 17.41. Error rates for erfc

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Erf Function: Small Values -

-
-

- Max = 0ε (Mean = 0ε)

(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(<tr1/cmath>: - Max = 0ε (Mean = 0ε))
(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0.658ε (Mean = 0.0537ε)
-
(GSL 1.16: Max = 1.01ε (Mean = 0.485ε))
- (Cephes: Max = 0.786ε (Mean = 0.0642ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-

- Erf Function: Medium Values -

-
-

- Max = 1.65ε (Mean = 0.373ε)

- (<math.h>: Max = 2.36ε (Mean = 0.539ε)) -

-
-

- Max = 1.76ε (Mean = 0.365ε)

- (<tr1/cmath>: Max = 1.35ε (Mean = 0.307ε))
- (<math.h>: Max = 1.35ε (Mean = 0.307ε)) -

-
-

- Max = 0.983ε (Mean = 0.213ε)

- (GSL 1.16: Max = 2.64ε (Mean = 0.662ε))
- (Cephes: Max = 3.59ε (Mean = 0.779ε)) -

-
-

- Max = 1.76ε (Mean = 0.383ε)

- (<math.h>: Max = 2.81ε (Mean = 0.739ε)) -

-
-

- Erf Function: Large Values -

-
-

- Max = 1.14ε (Mean = 0.248ε)

- (<math.h>: Max = 1.84ε (Mean = 0.331ε)) -

-
-

- Max = 1.57ε (Mean = 0.542ε)

- (<tr1/cmath>: Max = 1.26ε (Mean = 0.441ε))
- (<math.h>: Max = 1.26ε (Mean = 0.441ε)) -

-
-

- Max = 0.868ε (Mean = 0.147ε)

- (GSL 1.16: Max = 3.9ε (Mean = 0.472ε))
- (Cephes: Max = 2.74ε (Mean = 0.413ε)) -

-
-

- Max = 1.57ε (Mean = 0.564ε)

- (<math.h>: Max = 4.91ε (Mean = 1.54ε)) -

-
-
-
-

Table 17.42. Error rates for erfc_inv

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse Erfc Function -

-
-

- Max = 1ε (Mean = 0.491ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.996ε (Mean = 0.397ε) -

-
-

- Max = 0.996ε (Mean = 0.397ε) -

-
-

- Inverse Erfc Function: extreme values -

-
- - -

- Max = 1.62ε (Mean = 0.383ε) -

-
-

- Max = 1.62ε (Mean = 0.385ε) -

-
-
-
-

Table 17.43. Error rates for expint (Ei)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Exponential Integral Ei -

-
-

- Max = 1.43ε (Mean = 0.541ε) -

-
-

- Max = 5.05ε (Mean = 0.821ε)

- (<tr1/cmath>: Max = 14.1ε (Mean = 2.43ε) - And - other failures.) -

-
-

- Max = 0.994ε (Mean = 0.142ε)

- (GSL 1.16: Max = 8.96ε (Mean = 0.703ε))
- (Cephes: Max = +INFε (Mean - = +INFε) And - other failures.) -

-
-

- Max = 3.34ε (Mean = 0.631ε) -

-
-

- Exponential Integral Ei: double exponent range -

-
-

- Max = 1.7ε (Mean = 0.66ε) -

-
-

- Max = 1.72ε (Mean = 0.593ε)

- (<tr1/cmath>: Max = 3.11ε (Mean = 1.13ε)) -

-
-

- Max = 0.998ε (Mean = 0.156ε)

- (GSL 1.16: Max = 1.5ε (Mean = 0.612ε))
- (Cephes: Max = 1.77ε (Mean = 0.644ε)) -

-
-

- Max = 1.72ε (Mean = 0.618ε) -

-
-

- Exponential Integral Ei: long exponent range -

-
- -

- Max = 1.98ε (Mean = 0.595ε)

- (<tr1/cmath>: Max = 1.93ε (Mean = 0.855ε)) -

-
- -

- Max = 1.98ε (Mean = 0.575ε) -

-
-
-
-

Table 17.44. Error rates for expint (En)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Exponential Integral En -

-
-

- Max = 7.16ε (Mean = 1.85ε) -

-
-

- Max = 0.589ε (Mean = 0.0331ε)
-
(GSL 1.16: Max = 58.5ε (Mean = 17.1ε)) -

-
-

- Max = 9.97ε (Mean = 2.13ε) -

-
-

- Max = 9.97ε (Mean = 2.13ε) -

-
-

- Exponential Integral En: small z values -

-
-

- Max = 2.62ε (Mean = 0.531ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 115ε (Mean = 23.6ε)) -

-
-

- Max = 1.99ε (Mean = 0.559ε) -

-
-

- Max = 1.99ε (Mean = 0.559ε) -

-
-

- Exponential Integral E1 -

-
-

- Max = 0.988ε (Mean = 0.486ε) -

-
-

- Max = 0.556ε (Mean = 0.0625ε)
-
(GSL 1.16: Max = 0.988ε (Mean = 0.469ε)) -

-
-

- Max = 0.965ε (Mean = 0.414ε) -

-
-

- Max = 0.965ε (Mean = 0.409ε) -

-
-
-
-

Table 17.45. Error rates for expm1

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Random test data -

-
-

- Max = 0.996ε (Mean = 0.283ε)

- (<math.h>: Max = 1.31ε (Mean = 0.496ε)) -

-
-

- Max = 0.793ε (Mean = 0.126ε)

- (Rmath 3.0.2: Max = 0.793ε (Mean = 0.126ε))
- (Cephes: Max = 1.53ε (Mean = 0.535ε)) -

-
-

- Max = 0.992ε (Mean = 0.402ε)

- (<tr1/cmath>: Max - = 1.26e+19ε (Mean = 4.89e+18ε) And - other failures.)
(<math.h>: - Max = 0.992ε (Mean = 0.402ε)) -

-
-

- Max = 1.31ε (Mean = 0.406ε)

- (<math.h>: Max = 0.996ε (Mean = 0.426ε)) -

-
-
-
-

Table 17.46. Error rates for gamma_p

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma(a, z) medium values -

-
-

- Max = 35.1ε (Mean = 6.97ε) -

-
-

- Max = 0.955ε (Mean = 0.05ε)

- (GSL 1.16: Max = 342ε (Mean = 45.8ε))
(Rmath - 3.0.2: Max = 389ε (Mean = 44ε))
(Cephes: - Max = 492ε (Mean = 101ε)) -

-
-

- Max = 41ε (Mean = 8.09ε) -

-
-

- Max = 239ε (Mean = 30.2ε) -

-
-

- tgamma(a, z) small values -

-
-

- Max = 1.54ε (Mean = 0.439ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.82ε (Mean = 0.758ε))
(Rmath - 3.0.2: Max = 1.01ε (Mean = 0.306ε))
(Cephes: - Max = 21ε (Mean = 5.65ε)) -

-
-

- Max = 2ε (Mean = 0.461ε) -

-
-

- Max = 2ε (Mean = 0.472ε) -

-
-

- tgamma(a, z) large values -

-
-

- Max = 244ε (Mean = 20.2ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.02e+03ε (Mean = 105ε))
(Rmath - 3.0.2: Max = 1.11e+03ε (Mean = 67.5ε))
(Cephes: - Max = 8.18e+06ε (Mean = 7.69e+05ε)) -

-
-

- Max = 3.08e+04ε (Mean = 1.86e+03ε) -

-
-

- Max = 3.02e+04ε (Mean = 1.91e+03ε) -

-
-

- tgamma(a, z) integer and half integer values -

-
-

- Max = 13ε (Mean = 2.93ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 128ε (Mean = 22.6ε))
(Rmath - 3.0.2: Max = 66.2ε (Mean = 12.2ε))
(Cephes: - Max = 83.6ε (Mean = 22.2ε)) -

-
-

- Max = 11.8ε (Mean = 2.65ε) -

-
-

- Max = 71.6ε (Mean = 9.47ε) -

-
-
-
-

Table 17.47. Error rates for gamma_p_inv

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- incomplete gamma inverse(a, z) medium values -

-
-

- Max = 1.01ε (Mean = 0.307ε) -

-
-

- Max = 0.993ε (Mean = 0.15ε)

- (Rmath 3.0.2: Max = 4.88ε (Mean = 0.868ε)) -

-
-

- Max = 1.62ε (Mean = 0.365ε) -

-
-

- Max = 1.86ε (Mean = 0.405ε) -

-
-

- incomplete gamma inverse(a, z) large values -

-
-

- Max = 0.924ε (Mean = 0.118ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 0.816ε (Mean = 0.0874ε)) -

-
-

- Max = 0.509ε (Mean = 0.0447ε) -

-
-

- Max = 0.509ε (Mean = 0.0447ε) -

-
-

- incomplete gamma inverse(a, z) small values -

-
-

- Max = 1.1e+003ε (Mean = 108ε) -

-
-

- Max = 441ε (Mean = 53.9ε)

- (Rmath 3.0.2: Max = 547ε (Mean = 61.6ε)) -

-
-

- Max = 9.17e+03ε (Mean = 1.32e+03ε) -

-
-

- Max = 1.09e+04ε (Mean = 1.46e+03ε) -

-
-
-
-

Table 17.48. Error rates for gamma_p_inva

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete gamma inverses. -

-
-

- Max = 3.52ε (Mean = 0.997ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 6.44ε (Mean = 1.1ε) -

-
-

- Max = 4.08ε (Mean = 1.12ε) -

-
-
-
-

Table 17.49. Error rates for gamma_q

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma(a, z) medium values -

-
-

- Max = 23.7ε (Mean = 4.03ε) -

-
-

- Max = 0.927ε (Mean = 0.035ε)

- (GSL 1.16: Max = 201ε (Mean = 13.5ε))
(Rmath - 3.0.2: Max = 131ε (Mean = 12.7ε))
(Cephes: - Max = 388ε (Mean = 93.8ε)) -

-
-

- Max = 31.3ε (Mean = 6.56ε) -

-
-

- Max = 199ε (Mean = 26.6ε) -

-
-

- tgamma(a, z) small values -

-
-

- Max = 2.26ε (Mean = 0.732ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.38e+10ε (Mean = 1.05e+09ε))
- (Rmath 3.0.2: Max = 65.6ε (Mean = 11ε))
- (Cephes: Max = 3.42e+11ε (Mean - = 4.1e+10ε)) -

-
-

- Max = 2.45ε (Mean = 0.832ε) -

-
-

- Max = 2.25ε (Mean = 0.81ε) -

-
-

- tgamma(a, z) large values -

-
-

- Max = 470ε (Mean = 31.5ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.71e+04ε (Mean = 2.16e+03ε))
(Rmath - 3.0.2: Max = 1.02e+03ε (Mean = 62.7ε))
(Cephes: - Max = 8.17e+06ε (Mean = 7.7e+05ε)) -

-
-

- Max = 6.82e+03ε (Mean = 414ε) -

-
-

- Max = 1.15e+04ε (Mean = 733ε) -

-
-

- tgamma(a, z) integer and half integer values -

-
-

- Max = 8.48ε (Mean = 1.42ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 118ε (Mean = 12.5ε))
(Rmath - 3.0.2: Max = 138ε (Mean = 16.9ε))
(Cephes: - Max = 129ε (Mean = 26.5ε)) -

-
-

- Max = 11.1ε (Mean = 2.09ε) -

-
-

- Max = 54.7ε (Mean = 6.16ε) -

-
-
-
-

Table 17.50. Error rates for gamma_q_inv

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- incomplete gamma inverse(a, z) medium values -

-
-

- Max = 3.46ε (Mean = 0.475ε) -

-
-

- Max = 0.912ε (Mean = 0.154ε)

- (Rmath 3.0.2: Max = 4.66ε (Mean = 0.792ε)) -

-
-

- Max = 6.2ε (Mean = 0.659ε) -

-
-

- Max = 6.2ε (Mean = 0.661ε) -

-
-

- incomplete gamma inverse(a, z) large values -

-
-

- Max = 0.814ε (Mean = 0.0856ε) -

-
-

- Max = 0.894ε (Mean = 0.0915ε)
-
(Rmath 3.0.2: Max = 0.894ε (Mean = 0.106ε)) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- incomplete gamma inverse(a, z) small values -

-
-

- Max = 451ε (Mean = 65ε) -

-
-

- Max = 292ε (Mean = 36.4ε)

- (Rmath 3.0.2: Max = 415ε (Mean = 48.7ε)) -

-
-

- Max = 8.28e+03ε (Mean = 963ε) -

-
-

- Max = 8.98e+03ε (Mean = 877ε) -

-
-
-
-

Table 17.51. Error rates for gamma_q_inva

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete gamma inverses. -

-
-

- Max = 5.64ε (Mean = 1.09ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 6.91ε (Mean = 1.17ε) -

-
-

- Max = 7.86ε (Mean = 1.25ε) -

-
-
-
-

Table 17.52. Error rates for hermite

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Hermite Polynomials -

-
-

- Max = 4.46ε (Mean = 1.41ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 6.24ε (Mean = 2.07ε) -

-
-

- Max = 6.24ε (Mean = 2.07ε) -

-
-
-
-

Table 17.53. Error rates for heuman_lambda

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral Jacobi Zeta: Mathworld Data -

-
-

- Max = 1.08ε (Mean = 0.734ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.89ε (Mean = 0.887ε) -

-
-

- Max = 1.89ε (Mean = 0.887ε) -

-
-

- Elliptic Integral Heuman Lambda: Random Data -

-
-

- Max = 2.12ε (Mean = 0.59ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 3.82ε (Mean = 0.609ε) -

-
-

- Max = 3.82ε (Mean = 0.608ε) -

-
-
-
-

Table 17.54. Error rates for ibeta

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete Beta Function: Small Values -

-
-

- Max = 9.42ε (Mean = 2.24ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 682ε (Mean = 32.6ε))
(Rmath - 3.0.2: Max = 22.9ε (Mean = 3.35ε))
(Cephes: - Max = 22.7ε (Mean = 1.69ε)) -

-
-

- Max = 6.27ε (Mean = 1.7ε) -

-
-

- Max = 21.3ε (Mean = 2.74ε) -

-
-

- Incomplete Beta Function: Medium Values -

-
-

- Max = 108ε (Mean = 16.3ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 690ε (Mean = 151ε))
(Rmath - 3.0.2: Max = 232ε (Mean = 27.9ε))
(Cephes: - Max = 1.55e+03ε (Mean = 121ε)) -

-
-

- Max = 51.4ε (Mean = 12ε) -

-
-

- Max = 124ε (Mean = 18.4ε) -

-
-

- Incomplete Beta Function: Large and Diverse Values -

-
-

- Max = 1.19e+003ε (Mean = 59.5ε) -

-
-

- Max = 1.26ε (Mean = 0.063ε)

- (GSL 1.16: Max = 3.9e+05ε (Mean = 1.82e+04ε) - And - other failures.)
(Rmath 3.0.2: - Max = 574ε (Mean = 49.4ε))
(Cephes: Max - = 5.92e+05ε (Mean = 2.17e+04ε)) -

-
-

- Max = 1.96e+04ε (Mean = 997ε) -

-
-

- Max = 4.98e+04ε (Mean = 2.07e+03ε) -

-
-

- Incomplete Beta Function: Small Integer Values -

-
-

- Max = 3.69ε (Mean = 0.765ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 254ε (Mean = 50.9ε))
(Rmath - 3.0.2: Max = 62.2ε (Mean = 8.95ε))
(Cephes: - Max = 7.96ε (Mean = 1.3ε)) -

-
-

- Max = 4.45ε (Mean = 0.814ε) -

-
-

- Max = 44.5ε (Mean = 10.1ε) -

-
-
-
-

Table 17.55. Error rates for ibeta_inv

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 7.08e+003ε (Mean = 244ε) -

-
-

- Max = 3.21ε (Mean = 0.158ε)

- (Rmath 3.0.2: Max = +INFε (Mean - = +INFε) And - other failures.)
(Cephes: - Max = 1.28e+10ε (Mean = 5.17e+08ε)) -

-
-

- Max = 4.53e+04ε (Mean = 2.93e+03ε) -

-
-

- Max = 4.22e+04ε (Mean = 2.8e+03ε) -

-
-
-
-

Table 17.56. Error rates for ibeta_inva

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 395ε (Mean = 24.7ε) -

-
-

- Max = 0.602ε (Mean = 0.0239ε) -

-
-

- Max = 377ε (Mean = 25.1ε) -

-
-

- Max = 438ε (Mean = 31.6ε) -

-
-
-
-

Table 17.57. Error rates for ibeta_invb

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 409ε (Mean = 17.9ε) -

-
-

- Max = 0.836ε (Mean = 0.0491ε) -

-
-

- Max = 407ε (Mean = 27.2ε) -

-
-

- Max = 407ε (Mean = 24.4ε) -

-
-
-
-

Table 17.58. Error rates for ibetac

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete Beta Function: Small Values -

-
-

- Max = 6.56ε (Mean = 1.88ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 22.4ε (Mean = 3.67ε)) -

-
-

- Max = 8.47ε (Mean = 1.68ε) -

-
-

- Max = 13.8ε (Mean = 2.69ε) -

-
-

- Incomplete Beta Function: Medium Values -

-
-

- Max = 56.2ε (Mean = 14.1ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 204ε (Mean = 25.8ε)) -

-
-

- Max = 75.3ε (Mean = 11.3ε) -

-
-

- Max = 132ε (Mean = 19.8ε) -

-
-

- Incomplete Beta Function: Large and Diverse Values -

-
-

- Max = 1.87e+003ε (Mean = 93.8ε) -

-
-

- Max = 0.981ε (Mean = 0.0638ε)
-
(Rmath 3.0.2: Max = 889ε (Mean = 68.4ε)) -

-
-

- Max = 3.45e+04ε (Mean = 1.32e+03ε) -

-
-

- Max = 4.26e+04ε (Mean = 1.54e+03ε) -

-
-

- Incomplete Beta Function: Small Integer Values -

-
-

- Max = 6.37ε (Mean = 1.03ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 84.6ε (Mean = 18ε)) -

-
-

- Max = 5.34ε (Mean = 1.11ε) -

-
-

- Max = 107ε (Mean = 17.1ε) -

-
-
-
-

Table 17.59. Error rates for ibetac_inv

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 5.53e+003ε (Mean = 220ε) -

-
-

- Max = 1.71ε (Mean = 0.108ε)

- (Rmath 3.0.2: Max = +INFε (Mean - = +INFε) And - other failures.)
(Cephes: - Max = 1.71ε (Mean = 0.108ε)) -

-
-

- Max = 6.17e+04ε (Mean = 3.77e+03ε) -

-
-

- Max = 5.15e+04ε (Mean = 3.51e+03ε) -

-
-
-
-

Table 17.60. Error rates for ibetac_inva

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 408ε (Mean = 27.8ε) -

-
-

- Max = 0.683ε (Mean = 0.0271ε) -

-
-

- Max = 382ε (Mean = 22.2ε) -

-
-

- Max = 315ε (Mean = 23.7ε) -

-
-
-
-

Table 17.61. Error rates for ibetac_invb

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 329ε (Mean = 18.2ε) -

-
-

- Max = 0.724ε (Mean = 0.0303ε) -

-
-

- Max = 317ε (Mean = 19.7ε) -

-
-

- Max = 369ε (Mean = 21.7ε) -

-
-
-
-

Table 17.62. Error rates for jacobi_cn

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Jacobi Elliptic: Mathworld Data -

-
-

- Max = 45.8ε (Mean = 11.4ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 17.3ε (Mean = 4.29ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 71.6ε (Mean = 19.3ε) -

-
-

- Max = 71.6ε (Mean = 19.4ε) -

-
-

- Jacobi Elliptic: Random Data -

-
-

- Max = 1.83ε (Mean = 0.455ε) -

-
-

- Max = 0.816ε (Mean = 0.0563ε)
-
(GSL 1.16: Max = 2.43ε (Mean = 0.803ε))
- (Cephes: Max = 1.83ε (Mean = 0.437ε)) -

-
-

- Max = 1.68ε (Mean = 0.443ε) -

-
-

- Max = 1.68ε (Mean = 0.454ε) -

-
-

- Jacobi Elliptic: Random Small Values -

-
-

- Max = 26.2ε (Mean = 1.17ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 55.2ε (Mean = 1.64ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 10.4ε (Mean = 0.594ε) -

-
-

- Max = 10.4ε (Mean = 0.602ε) -

-
-

- Jacobi Elliptic: Modulus near 1 -

-
-

- Max = 513ε (Mean = 126ε) -

-
-

- Max = 0.919ε (Mean = 0.127ε)

- (GSL 1.16: Max = 0ε (Mean = 0ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 675ε (Mean = 87.1ε) -

-
-

- Max = 675ε (Mean = 86.8ε) -

-
-

- Jacobi Elliptic: Large Phi -

-
-

- Max = 3.27e+004ε (Mean = 1.93e+003ε) -

-
-

- Max = 14.2ε (Mean = 0.927ε)

- (GSL 1.16: Max = 5.92e+03ε (Mean = 477ε))
- (Cephes: Max = 3.27e+04ε (Mean = 1.93e+03ε)) -

-
-

- Max = 2.97e+04ε (Mean = 1.9e+03ε) -

-
-

- Max = 2.97e+04ε (Mean = 1.9e+03ε) -

-
-
-
-

Table 17.63. Error rates for jacobi_dn

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Jacobi Elliptic: Mathworld Data -

-
-

- Max = 34.3ε (Mean = 8.71ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.82ε (Mean = 1.18ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 49ε (Mean = 14ε) -

-
-

- Max = 49ε (Mean = 14ε) -

-
-

- Jacobi Elliptic: Random Data -

-
-

- Max = 1.52ε (Mean = 0.466ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3ε (Mean = 0.61ε))
(Cephes: - Max = 1.49ε (Mean = 0.321ε)) -

-
-

- Max = 1.53ε (Mean = 0.473ε) -

-
-

- Max = 1.53ε (Mean = 0.481ε) -

-
-

- Jacobi Elliptic: Random Small Values -

-
-

- Max = 16.1ε (Mean = 0.685ε) -

-
-

- Max = 0.5ε (Mean = 0.0122ε)

- (GSL 1.16: Max = 1.5ε (Mean = 0.391ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 22.4ε (Mean = 0.777ε) -

-
-

- Max = 22.4ε (Mean = 0.763ε) -

-
-

- Jacobi Elliptic: Modulus near 1 -

-
-

- Max = 6.24e+003ε (Mean = 482ε) -

-
-

- Max = 2.28ε (Mean = 0.194ε)

- (GSL 1.16: Max = 0ε (Mean = 0ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 3.75e+03ε (Mean = 293ε) -

-
-

- Max = 3.75e+03ε (Mean = 293ε) -

-
-

- Jacobi Elliptic: Large Phi -

-
-

- Max = 1.67e+004ε (Mean = 1e+003ε) -

-
-

- Max = 14.1ε (Mean = 0.897ε)

- (GSL 1.16: Max = 121ε (Mean = 22ε))
(Cephes: - Max = 196ε (Mean = 30.2ε)) -

-
-

- Max = 2.82e+04ε (Mean = 1.79e+03ε) -

-
-

- Max = 2.82e+04ε (Mean = 1.79e+03ε) -

-
-
-
-

Table 17.64. Error rates for jacobi_sn

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Jacobi Elliptic: Mathworld Data -

-
-

- Max = 481ε (Mean = 113ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 588ε (Mean = 146ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 341ε (Mean = 80.7ε) -

-
-

- Max = 341ε (Mean = 80.7ε) -

-
-

- Jacobi Elliptic: Random Data -

-
-

- Max = 1.92ε (Mean = 0.567ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.02ε (Mean = 1.07ε))
(Cephes: - Max = 1.92ε (Mean = 0.567ε)) -

-
-

- Max = 2.01ε (Mean = 0.584ε) -

-
-

- Max = 2.01ε (Mean = 0.593ε) -

-
-

- Jacobi Elliptic: Random Small Values -

-
-

- Max = 2.11ε (Mean = 0.385ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 11.7ε (Mean = 1.65ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 1.99ε (Mean = 0.347ε) -

-
-

- Max = 1.99ε (Mean = 0.347ε) -

-
-

- Jacobi Elliptic: Modulus near 1 -

-
-

- Max = 23.2ε (Mean = 1.85ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε) And - other failures.)
(Cephes: Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 109ε (Mean = 7.35ε) -

-
-

- Max = 109ε (Mean = 7.38ε) -

-
-

- Jacobi Elliptic: Large Phi -

-
-

- Max = 4.36e+004ε (Mean = 2.54e+003ε) -

-
-

- Max = 12ε (Mean = 0.771ε)

- (GSL 1.16: Max = 4.54e+04ε (Mean = 2.63e+03ε))
- (Cephes: Max = 4.36e+04ε (Mean = 2.54e+03ε)) -

-
-

- Max = 2.45e+04ε (Mean = 1.51e+03ε) -

-
-

- Max = 2.45e+04ε (Mean = 1.51e+03ε) -

-
-
-
-

Table 17.65. Error rates for jacobi_zeta

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Elliptic Integral Jacobi Zeta: Mathworld Data -

-
-

- Max = 0.505ε (Mean = 0.119ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.66ε (Mean = 0.48ε) -

-
-

- Max = 1.66ε (Mean = 0.48ε) -

-
-

- Elliptic Integral Jacobi Zeta: Random Data -

-
-

- Max = 3.89ε (Mean = 0.818ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.99ε (Mean = 0.824ε) -

-
-

- Max = 3.96ε (Mean = 1.06ε) -

-
-

- Elliptic Integral Jacobi Zeta: Large Phi Values -

-
-

- Max = 2.92ε (Mean = 0.964ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 2.92ε (Mean = 0.951ε) -

-
-

- Max = 3.05ε (Mean = 1.13ε) -

-
-
-
-

Table 17.66. Error rates for laguerre(n, m, x)

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Associated Laguerre Polynomials -

-
-

- Max = 434ε (Mean = 11.1ε) -

-
-

- Max = 0.84ε (Mean = 0.0358ε)

- (GSL 1.16: Max = 434ε (Mean = 10.7ε)) -

-
-

- Max = 167ε (Mean = 6.38ε)

- (<tr1/cmath>: Max = 206ε (Mean = 6.86ε)) -

-
-

- Max = 167ε (Mean = 6.38ε) -

-
-
-
-

Table 17.67. Error rates for laguerre(n, x)

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Laguerre Polynomials -

-
-

- Max = 3.1e+003ε (Mean = 185ε) -

-
-

- Max = 6.82ε (Mean = 0.408ε)

- (GSL 1.16: Max = 3.1e+03ε (Mean = 185ε)) -

-
-

- Max = 1.39e+04ε (Mean = 828ε)
-
(<tr1/cmath>: Max = 4.2e+03ε (Mean - = 251ε)) -

-
-

- Max = 1.39e+04ε (Mean = 828ε) -

-
-
-
-

Table 17.68. Error rates for legendre_p

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Legendre Polynomials: Small Values -

-
-

- Max = 211ε (Mean = 20.4ε) -

-
-

- Max = 0.732ε (Mean = 0.0619ε)
-
(GSL 1.16: Max = 211ε (Mean = 20.4ε)) -

-
-

- Max = 69.2ε (Mean = 9.58ε)

- (<tr1/cmath>: Max = 124ε (Mean = 13.2ε)) -

-
-

- Max = 69.2ε (Mean = 9.58ε) -

-
-

- Legendre Polynomials: Large Values -

-
-

- Max = 300ε (Mean = 33.2ε) -

-
-

- Max = 0.632ε (Mean = 0.0693ε)
-
(GSL 1.16: Max = 300ε (Mean = 33.2ε)) -

-
-

- Max = 699ε (Mean = 59.6ε)

- (<tr1/cmath>: Max = 343ε (Mean = 32.1ε)) -

-
-

- Max = 699ε (Mean = 59.6ε) -

-
-
-
-

Table 17.69. Error rates for legendre_p (associated)

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Associated Legendre Polynomials: Small Values -

-
-

- Max = 121ε (Mean = 7.14ε) -

-
-

- Max = 0.999ε (Mean = 0.05ε)

- (GSL 1.16: Max = 121ε (Mean = 6.75ε) And - other failures.) -

-
-

- Max = 175ε (Mean = 9.88ε)

- (<tr1/cmath>: Max = 175ε (Mean = 9.36ε) - And - other failures.) -

-
-

- Max = 77.7ε (Mean = 5.59ε) -

-
-
-
-

Table 17.70. Error rates for legendre_q

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Legendre Polynomials: Small Values -

-
-

- Max = 46.4ε (Mean = 7.32ε) -

-
-

- Max = 0.612ε (Mean = 0.0517ε)
-
(GSL 1.16: Max = 46.4ε (Mean = 7.46ε)) -

-
-

- Max = 50.9ε (Mean = 9ε) -

-
-

- Max = 50.9ε (Mean = 8.98ε) -

-
-

- Legendre Polynomials: Large Values -

-
-

- Max = 4.6e+003ε (Mean = 366ε) -

-
-

- Max = 2.49ε (Mean = 0.202ε)

- (GSL 1.16: Max = 4.6e+03ε (Mean = 366ε)) -

-
-

- Max = 5.98e+03ε (Mean = 478ε) -

-
-

- Max = 5.98e+03ε (Mean = 478ε) -

-
-
-
-

Table 17.71. Error rates for lgamma

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- factorials -

-
-

- Max = 0.914ε (Mean = 0.167ε)

- (<math.h>: Max = 0.958ε (Mean = 0.38ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 33.6ε (Mean = 2.78ε))
(Rmath - 3.0.2: Max = 1.55ε (Mean = 0.592ε))
(Cephes: - Max = 1.55ε (Mean = 0.512ε)) -

-
-

- Max = 0.991ε (Mean = 0.311ε)

- (<tr1/cmath>: Max = 1.67ε (Mean = 0.487ε))
- (<math.h>: Max = 1.67ε (Mean = 0.487ε)) -

-
-

- Max = 0.991ε (Mean = 0.383ε)

- (<math.h>: Max = 1.36ε (Mean = 0.476ε)) -

-
-

- near 0 -

-
-

- Max = 0.964ε (Mean = 0.462ε)

- (<math.h>: Max = 0.962ε (Mean = 0.372ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 5.21ε (Mean = 1.57ε))
(Rmath - 3.0.2: Max = 0ε (Mean = 0ε))
(Cephes: - Max = 1.16ε (Mean = 0.341ε)) -

-
-

- Max = 1.42ε (Mean = 0.566ε)

- (<tr1/cmath>: Max = 0.964ε (Mean = 0.543ε))
- (<math.h>: Max = 0.964ε (Mean = 0.543ε)) -

-
-

- Max = 1.42ε (Mean = 0.566ε)

- (<math.h>: Max = 0.964ε (Mean = 0.543ε)) -

-
-

- near 1 -

-
-

- Max = 0.867ε (Mean = 0.468ε)

- (<math.h>: Max = 0.906ε (Mean = 0.565ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 442ε (Mean = 88.8ε))
(Rmath - 3.0.2: Max = 7.99e+04ε (Mean = 1.68e+04ε))
(Cephes: - Max = 1.14e+05ε (Mean = 2.64e+04ε)) -

-
-

- Max = 0.948ε (Mean = 0.36ε)

- (<tr1/cmath>: Max = 0.615ε (Mean = 0.096ε))
- (<math.h>: Max = 0.615ε (Mean = 0.096ε)) -

-
-

- Max = 0.866ε (Mean = 0.355ε)

- (<math.h>: Max = 1.71ε (Mean = 0.581ε)) -

-
-

- near 2 -

-
-

- Max = 0.591ε (Mean = 0.159ε)

- (<math.h>: Max = 0.741ε (Mean = 0.473ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.17e+03ε (Mean = 274ε))
(Rmath - 3.0.2: Max = 2.63e+05ε (Mean = 5.84e+04ε))
(Cephes: - Max = 5.08e+05ε (Mean = 9.04e+04ε)) -

-
-

- Max = 0.878ε (Mean = 0.242ε)

- (<tr1/cmath>: Max = 0.741ε (Mean = 0.263ε))
- (<math.h>: Max = 0.741ε (Mean = 0.263ε)) -

-
-

- Max = 0.878ε (Mean = 0.241ε)

- (<math.h>: Max = 0.598ε (Mean = 0.235ε)) -

-
-

- near -10 -

-
-

- Max = 4.22ε (Mean = 1.33ε)

- (<math.h>: Max = 0.997ε (Mean = 0.444ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 24.9ε (Mean = 4.6ε))
(Rmath - 3.0.2: Max = 2.41e+05ε (Mean = 4.29e+04ε))
(Cephes: - Max = 0.997ε (Mean = 0.429ε)) -

-
-

- Max = 3.81ε (Mean = 1.01ε)

- (<tr1/cmath>: Max = 3.01ε (Mean = 0.86ε))
- (<math.h>: Max = 3.01ε (Mean = 0.86ε)) -

-
-

- Max = 3.81ε (Mean = 1.01ε)

- (<math.h>: Max = 3.04ε (Mean = 1.01ε)) -

-
-

- near -55 -

-
-

- Max = 0.821ε (Mean = 0.419ε)

- (<math.h>: Max = 249ε (Mean = 43.1ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 7.02ε (Mean = 1.47ε))
(Rmath - 3.0.2: Max = 4.08e+04ε (Mean = 7.26e+03ε))
(Cephes: - Max = 1.64ε (Mean = 0.693ε)) -

-
-

- Max = 0.821ε (Mean = 0.513ε)

- (<tr1/cmath>: Max = 1.58ε (Mean = 0.672ε))
- (<math.h>: Max = 1.58ε (Mean = 0.672ε)) -

-
-

- Max = 1.59ε (Mean = 0.587ε)

- (<math.h>: Max = 0.821ε (Mean = 0.674ε)) -

-
-
-
-

Table 17.72. Error rates for log1p

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Random test data -

-
-

- Max = 0.509ε (Mean = 0.057ε)

- (<math.h>: Max = 0.509ε (Mean = 0.057ε)) -

-
-

- Max = 0.846ε (Mean = 0.153ε)

- (Rmath 3.0.2: Max = 0.846ε (Mean = 0.153ε))
- (Cephes: Max = 0.799ε (Mean = 0.122ε)) -

-
-

- Max = 0.818ε (Mean = 0.227ε)

- (<tr1/cmath>: Max = 0.818ε (Mean = 0.227ε))
- (<math.h>: Max = 0.818ε (Mean = 0.227ε)) -

-
-

- Max = 1.53ε (Mean = 0.627ε)

- (<math.h>: Max = 0.818ε (Mean = 0.249ε)) -

-
-
-
-

Table 17.73. Error rates for non central beta CDF

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central Beta, medium parameters -

-
-

- Max = 240ε (Mean = 31ε) -

-
-

- Max = 0.998ε (Mean = 0.0659ε)
-
(Rmath 3.0.2: Max - = 1.46e+26ε (Mean = 3.5e+24ε) And - other failures.) -

-
-

- Max = 825ε (Mean = 27.4ε) -

-
-

- Max = 832ε (Mean = 38.1ε) -

-
-

- Non Central Beta, large parameters -

-
-

- Max = 3.41e+003ε (Mean = 475ε) -

-
-

- Max = 1.18ε (Mean = 0.175ε)

- (Rmath 3.0.2: Max = 1.01e+36ε (Mean - = 1.19e+35ε) And - other failures.) -

-
-

- Max = 2.5e+04ε (Mean = 3.78e+03ε) -

-
-

- Max = 2.57e+04ε (Mean = 4.43e+03ε) -

-
-
-
-

Table 17.74. Error rates for non central beta CDF complement

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central Beta, medium parameters -

-
-

- Max = 619ε (Mean = 62.7ε) -

-
-

- Max = 0.998ε (Mean = 0.0957ε)
-
(Rmath 3.0.2: Max - = 7.5e+97ε (Mean = 1.37e+96ε) And - other failures.) -

-
-

- Max = 396ε (Mean = 50.7ε) -

-
-

- Max = 554ε (Mean = 57.3ε) -

-
-

- Non Central Beta, large parameters -

-
-

- Max = 8.67e+003ε (Mean = 1.04e+003ε) -

-
-

- Max = 0.986ε (Mean = 0.188ε)

- (Rmath 3.0.2: Max = +INFε (Mean - = +INFε) And - other failures.) -

-
-

- Max = 6.83e+03ε (Mean = 993ε) -

-
-

- Max = 3.56e+03ε (Mean = 704ε) -

-
-
-
-

Table 17.75. Error rates for non central chi squared CDF

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central Chi Squared, medium parameters -

-
-

- Max = 48.9ε (Mean = 10ε) -

-
-

- Max = 0.99ε (Mean = 0.0529ε)

- (Rmath 3.0.2: Max = 727ε (Mean = 121ε)) -

-
-

- Max = 46.5ε (Mean = 10.3ε) -

-
-

- Max = 115ε (Mean = 13.9ε) -

-
-

- Non Central Chi Squared, large parameters -

-
-

- Max = 9.79e+003ε (Mean = 723ε) -

-
-

- Max = 1.07ε (Mean = 0.102ε)

- (Rmath 3.0.2: Max = 3.27e+08ε (Mean - = 2.23e+07ε)) -

-
-

- Max = 3.07e+03ε (Mean = 336ε) -

-
-

- Max = 6.17e+03ε (Mean = 677ε) -

-
-
-
-

Table 17.76. Error rates for non central chi squared CDF complement

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central Chi Squared, medium parameters -

-
-

- Max = 98.6ε (Mean = 15.8ε) -

-
-

- Max = 0.96ε (Mean = 0.0635ε)

- (Rmath 3.0.2: Max = +INFε (Mean - = +INFε) And - other failures.) -

-
-

- Max = 107ε (Mean = 17.1ε) -

-
-

- Max = 171ε (Mean = 22.8ε) -

-
-

- Non Central Chi Squared, large parameters -

-
-

- Max = 5.43e+003ε (Mean = 705ε) -

-
-

- Max = 2.11ε (Mean = 0.278ε)

- (Rmath 3.0.2: Max = +INFε (Mean - = +INFε) And - other failures.) -

-
-

- Max = 5.02e+03ε (Mean = 630ε) -

-
-

- Max = 5.1e+03ε (Mean = 577ε) -

-
-
-
-

Table 17.77. Error rates for non central t CDF

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central T -

-
-

- Max = 138ε (Mean = 31.5ε) -

-
-

- Max = 0.796ε (Mean = 0.0691ε)
-
(Rmath 3.0.2: Max - = 5.28e+15ε (Mean = 8.49e+14ε) And - other failures.) -

-
-

- Max = 141ε (Mean = 31.1ε) -

-
-

- Max = 145ε (Mean = 30.2ε) -

-
-

- Non Central T (small non-centrality) -

-
-

- Max = 3.61ε (Mean = 1.03ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 2.09e+03ε (Mean = 244ε)) -

-
-

- Max = 7.86ε (Mean = 1.69ε) -

-
-

- Max = 9.15ε (Mean = 2.25ε) -

-
-

- Non Central T (large parameters) -

-
-

- Max = 286ε (Mean = 62.8ε) -

-
-

- Max = 257ε (Mean = 72.1ε)

- (Rmath 3.0.2: Max = 2.46ε (Mean = 0.657ε)) -

-
-

- Max = 5.26e+05ε (Mean = 1.48e+05ε) -

-
-

- Max = 5.24e+05ε (Mean = 1.47e+05ε) -

-
-
-
-

Table 17.78. Error rates for non central t CDF complement

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Non Central T -

-
-

- Max = 150ε (Mean = 32.3ε) -

-
-

- Max = 0.707ε (Mean = 0.0497ε)
-
(Rmath 3.0.2: Max - = 6.19e+15ε (Mean = 6.72e+14ε) And - other failures.) -

-
-

- Max = 203ε (Mean = 31.8ε) -

-
-

- Max = 340ε (Mean = 43.6ε) -

-
-

- Non Central T (small non-centrality) -

-
-

- Max = 5.21ε (Mean = 1.43ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 1.87e+03ε (Mean = 263ε)) -

-
-

- Max = 7.48ε (Mean = 1.86ε) -

-
-

- Max = 10.9ε (Mean = 2.43ε) -

-
-

- Non Central T (large parameters) -

-
-

- Max = 227ε (Mean = 50.4ε) -

-
-

- Max = 478ε (Mean = 96.3ε)

- (Rmath 3.0.2: Max = 2.24ε (Mean = 0.945ε)) -

-
-

- Max = 9.79e+05ε (Mean = 1.97e+05ε) -

-
-

- Max = 9.79e+05ε (Mean = 1.97e+05ε) -

-
-
-
-

Table 17.79. Error rates for owens_t

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Owens T (medium small values) -

-
-

- Max = 4.37ε (Mean = 0.973ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 3.34ε (Mean = 0.942ε) -

-
-

- Max = 3.34ε (Mean = 0.91ε) -

-
-

- Owens T (large and diverse values) -

-
-

- Max = 3.78ε (Mean = 0.621ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 49ε (Mean = 2.16ε) -

-
-

- Max = 24.5ε (Mean = 1.38ε) -

-
-
-
-

Table 17.80. Error rates for polygamma

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Mathematica Data -

-
-

- Max = 6.34ε (Mean = 1.53ε) -

-
-

- Max = 0.824ε (Mean = 0.0574ε)
-
(Rmath 3.0.2: Max = 108ε (Mean = 15.2ε))
- (GSL 1.16: Max = 62.9ε (Mean = 12.8ε)) -

-
-

- Max = 7.38ε (Mean = 1.84ε) -

-
-

- Max = 18.3ε (Mean = 4.16ε) -

-
-

- Mathematica Data - large arguments -

-
-

- Max = 150ε (Mean = 15.1ε) -

-
-

- Max = 0.998ε (Mean = 0.0592ε)
-
(Rmath 3.0.2: Max - = 1.71e+56ε (Mean = 1.01e+55ε) And - other failures.)
(GSL 1.16: - Max = 244ε (Mean = 32.8ε) And - other failures.) -

-
-

- Max = 2.23ε (Mean = 0.323ε) -

-
-

- Max = 2.35ε (Mean = 0.34ε) -

-
-

- Mathematica Data - negative arguments -

-
-

- Max = 497ε (Mean = 129ε) -

-
-

- Max = 0.516ε (Mean = 0.022ε)

- (Rmath 3.0.2: Max = +INFε (Mean - = +INFε) And - other failures.)
(GSL 1.16: - Max = 36.6ε (Mean = 3.04ε) And - other failures.) -

-
-

- Max = 269ε (Mean = 87.7ε) -

-
-

- Max = 269ε (Mean = 87.9ε) -

-
-

- Mathematica Data - large negative arguments -

-
-

- Max = 162ε (Mean = 101ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(GSL 1.16: - Max = 1.79ε (Mean = 0.197ε) And - other failures.) -

-
-

- Max = 155ε (Mean = 96.4ε) -

-
-

- Max = 155ε (Mean = 96.4ε) -

-
-

- Mathematica Data - small arguments -

-
-

- Max = 3ε (Mean = 0.496ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 106ε (Mean = 20ε))
(GSL 1.16: - Max = 15.2ε (Mean = 5.03ε)) -

-
-

- Max = 3.33ε (Mean = 0.75ε) -

-
-

- Max = 3.33ε (Mean = 0.75ε) -

-
-

- Mathematica Data - Large orders and other bug cases -

-
-

- Max = 200ε (Mean = 57.2ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(GSL 1.16: - Max = 151ε (Mean = 39.3ε) And - other failures.) -

-
-

- Max = 54.5ε (Mean = 13.3ε) -

-
-

- Max = 90.1ε (Mean = 30.6ε) -

-
-
-
-

Table 17.81. Error rates for powm1

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- powm1 -

-
-

- Max = 1.99ε (Mean = 0.461ε) -

-
-

- Max = 1.26ε (Mean = 0.428ε) -

-
-

- Max = 2.04ε (Mean = 0.521ε) -

-
-

- Max = 2.14ε (Mean = 0.498ε) -

-
-
-
-

Table 17.82. Error rates for sin_pi

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- sin_pi and cos_pi -

-
-

- Max = 0.99ε (Mean = 0.328ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.996ε (Mean = 0.335ε) -

-
-

- Max = 0.996ε (Mean = 0.336ε) -

-
-

- sin_pi and cos_pi near integers and half integers -

-
-

- Max = 0.996ε (Mean = 0.343ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.976ε (Mean = 0.293ε) -

-
-

- Max = 0.976ε (Mean = 0.293ε) -

-
-
-
-

Table 17.83. Error rates for sph_bessel

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel j: Random Data -

-
-

- Max = 245ε (Mean = 16.3ε) -

-
-

- Max = 243ε (Mean = 13.3ε)

- (<tr1/cmath>: Max = 1.91e+06ε (Mean = - 1.09e+05ε)) -

-
-

- Max = 0.978ε (Mean = 0.0539ε)
-
(GSL 1.16: Max = 1.79e+03ε (Mean = 107ε)) -

-
-

- Max = 243ε (Mean = 33.7ε) -

-
-
-
-

Table 17.84. Error rates for sph_bessel_prime

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Bessel j': Random Data -

-
-

- Max = 307ε (Mean = 25.2ε) -

-
-

- Max = 0.753ε (Mean = 0.0343ε) -

-
-

- Max = 167ε (Mean = 12ε) -

-
-

- Max = 167ε (Mean = 33.2ε) -

-
-
-
-

Table 17.85. Error rates for sph_neumann

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- y: Random Data -

-
-

- Max = 281ε (Mean = 31.1ε) -

-
-

- Max = 0.995ε (Mean = 0.0665ε)
-
(GSL 1.16: Max = 8.5e+04ε (Mean = 5.33e+03ε)) -

-
-

- Max = 234ε (Mean = 19.5ε)

- (<tr1/cmath>: Max = 1.6e+06ε (Mean = 1.4e+05ε)) -

-
-

- Max = 234ε (Mean = 19.8ε) -

-
-
-
-

Table 17.86. Error rates for sph_neumann_prime

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- y': Random Data -

-
-

- Max = 296ε (Mean = 25.6ε) -

-
-

- Max = 0.752ε (Mean = 0.062ε) -

-
-

- Max = 158ε (Mean = 18.8ε) -

-
-

- Max = 158ε (Mean = 20.2ε) -

-
-
-
-

Table 17.87. Error rates for spherical_harmonic_i

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Spherical Harmonics -

-
-

- Max = 2.27e+004ε (Mean = 725ε) -

-
-

- Max = 1.36ε (Mean = 0.0765ε) -

-
-

- Max = 2.89e+03ε (Mean = 108ε) -

-
-

- Max = 1.03e+04ε (Mean = 327ε) -

-
-
-
-

Table 17.88. Error rates for spherical_harmonic_r

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Spherical Harmonics -

-
-

- Max = 2.27e+004ε (Mean = 725ε) -

-
-

- Max = 1.58ε (Mean = 0.0707ε) -

-
-

- Max = 2.89e+03ε (Mean = 108ε) -

-
-

- Max = 1.03e+04ε (Mean = 327ε) -

-
-
-
-

Table 17.89. Error rates for sqrt1pm1

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- sqrt1pm1 -

-
-

- Max = 1.36ε (Mean = 0.44ε) -

-
-

- Max = 1.3ε (Mean = 0.404ε) -

-
-

- Max = 1.33ε (Mean = 0.409ε) -

-
-

- Max = 1.54ε (Mean = 0.568ε) -

-
-
-
-

Table 17.90. Error rates for tgamma

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- factorials -

-
-

- Max = 1.85ε (Mean = 0.491ε)

- (<math.h>: Max = 3.17ε (Mean = 0.928ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.95ε (Mean = 0.783ε))
(Rmath - 3.0.2: Max = 314ε (Mean = 93.4ε))
(Cephes: - Max = 3.19ε (Mean = 0.884ε)) -

-
-

- Max = 1.96ε (Mean = 0.483ε)

- (<tr1/cmath>: Max = 1.66ε (Mean = 0.584ε))
- (<math.h>: Max = 1.66ε (Mean = 0.584ε)) -

-
-

- Max = 172ε (Mean = 41ε)

- (<math.h>: Max = 0ε (Mean = 0ε)) -

-
-

- near 0 -

-
-

- Max = 1.96ε (Mean = 0.684ε)

- (<math.h>: Max = 1ε (Mean = 0.405ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.51ε (Mean = 1.92ε))
(Rmath - 3.0.2: Max = 1ε (Mean = 0.335ε))
(Cephes: - Max = 1ε (Mean = 0.548ε)) -

-
-

- Max = 2ε (Mean = 0.73ε)

- (<tr1/cmath>: Max = 1ε (Mean = 0.376ε))
- (<math.h>: Max = 1ε (Mean = 0.376ε)) -

-
-

- Max = 2ε (Mean = 0.647ε)

- (<math.h>: Max = 0.5ε (Mean = 0.0791ε)) -

-
-

- near 1 -

-
-

- Max = 2ε (Mean = 0.865ε)

- (<math.h>: Max = 1ε (Mean = 0.4ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.41ε (Mean = 1.81ε))
(Rmath - 3.0.2: Max = 1ε (Mean = 0.32ε))
(Cephes: - Max = 1ε (Mean = 0.518ε)) -

-
-

- Max = 2ε (Mean = 0.85ε)

- (<tr1/cmath>: Max = 0.918ε (Mean = 0.203ε))
- (<math.h>: Max = 0.918ε (Mean = 0.203ε)) -

-
-

- Max = 3.01ε (Mean = 1.06ε)

- (<math.h>: Max = 1ε (Mean = 0.175ε)) -

-
-

- near 2 -

-
-

- Max = 2ε (Mean = 0.995ε)

- (<math.h>: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 7.95ε (Mean = 3.12ε))
(Rmath - 3.0.2: Max = 1ε (Mean = 0.191ε))
(Cephes: - Max = 1.09ε (Mean = 0.502ε)) -

-
-

- Max = 2ε (Mean = 0.913ε)

- (<tr1/cmath>: Max = 0.558ε (Mean = 0.298ε))
- (<math.h>: Max = 0.558ε (Mean = 0.298ε)) -

-
-

- Max = 5.01ε (Mean = 1.89ε)

- (<math.h>: Max = 0ε (Mean = 0ε)) -

-
-

- near -10 -

-
-

- Max = 1.73ε (Mean = 0.729ε)

- (<math.h>: Max = 0.866ε (Mean = 0.445ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.6ε (Mean = 1.05ε))
(Rmath - 3.0.2: Max = 6.34e+05ε (Mean = 1.2e+05ε))
(Cephes: - Max = 2.6ε (Mean = 0.956ε)) -

-
-

- Max = 2.6ε (Mean = 0.985ε)

- (<tr1/cmath>: Max = 2.26ε (Mean = 1.08ε))
- (<math.h>: Max = 2.26ε (Mean = 1.08ε)) -

-
-

- Max = 1.75ε (Mean = 0.819ε)

- (<math.h>: Max = 0ε (Mean = 0ε)) -

-
-

- near -55 -

-
-

- Max = 1.8ε (Mean = 0.817ε)

- (<math.h>: Max = 3.87e+004ε (Mean = 6.71e+003ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.8ε (Mean = 0.782ε))
(Rmath - 3.0.2: Max = 6.36e+06ε (Mean = 1.13e+06ε))
(Cephes: - Max = 2.7ε (Mean = 0.988ε)) -

-
-

- Max = 1.8ε (Mean = 0.847ε)

- (<tr1/cmath>: Max = 1.79ε (Mean = 0.75ε))
- (<math.h>: Max = 1.79ε (Mean = 0.75ε)) -

-
-

- Max = 98.5ε (Mean = 53.4ε)

- (<math.h>: Max = 0ε (Mean = 0ε)) -

-
-
-
-

Table 17.91. Error rates for tgamma1pm1

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma1pm1(dz) -

-
-

- Max = 0.982ε (Mean = 0.399ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.12ε (Mean = 0.49ε) -

-
-

- Max = 3.97ε (Mean = 0.713ε) -

-
-
-
-

Table 17.92. Error rates for tgamma_delta_ratio

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma + small delta ratios -

-
-

- Max = 10.1ε (Mean = 1.25ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 5.56ε (Mean = 0.969ε) -

-
-

- Max = 15.4ε (Mean = 2.09ε) -

-
-

- tgamma + small delta ratios (negative delta) -

-
-

- Max = 8.04ε (Mean = 1.31ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 8.67ε (Mean = 1.29ε) -

-
-

- Max = 18.3ε (Mean = 2.03ε) -

-
-

- tgamma + small integer ratios -

-
-

- Max = 2.74ε (Mean = 0.736ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.96ε (Mean = 0.677ε) -

-
-

- Max = 1.96ε (Mean = 0.677ε) -

-
-

- tgamma + small integer ratios (negative delta) -

-
-

- Max = 2.15ε (Mean = 0.685ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.62ε (Mean = 0.451ε) -

-
-

- Max = 1.62ε (Mean = 0.451ε) -

-
-

- integer tgamma ratios -

-
-

- Max = 0.968ε (Mean = 0.386ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.997ε (Mean = 0.4ε) -

-
-

- Max = 0.997ε (Mean = 0.4ε) -

-
-

- integer tgamma ratios (negative delta) -

-
-

- Max = 0.974ε (Mean = 0.184ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.853ε (Mean = 0.176ε) -

-
-

- Max = 0.853ε (Mean = 0.176ε) -

-
-
-
-

Table 17.93. Error rates for tgamma (incomplete)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma(a, z) medium values -

-
-

- Max = 8.14ε (Mean = 1.71ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 200ε (Mean = 13.3ε)) -

-
-

- Max = 7.35ε (Mean = 1.69ε) -

-
-

- Max = 412ε (Mean = 95.5ε) -

-
-

- tgamma(a, z) small values -

-
-

- Max = 2.53ε (Mean = 0.66ε) -

-
-

- Max = 0.753ε (Mean = 0.0474ε)
-
(GSL 1.16: Max = - 1.38e+10ε (Mean = 1.05e+09ε)) -

-
-

- Max = 2.13ε (Mean = 0.717ε) -

-
-

- Max = 2.13ε (Mean = 0.712ε) -

-
-

- tgamma(a, z) integer and half integer values -

-
-

- Max = 5.16ε (Mean = 1.44ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 117ε (Mean = 12.5ε)) -

-
-

- Max = 5.52ε (Mean = 1.52ε) -

-
-

- Max = 79.6ε (Mean = 20.9ε) -

-
-
-
-

Table 17.94. Error rates for tgamma_lower

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma(a, z) medium values -

-
-

- Max = 5.62ε (Mean = 1.43ε) -

-
-

- Max = 0.833ε (Mean = 0.0315ε)
-
(GSL 1.16: Max = 0.833ε (Mean = 0.0315ε)) -

-
-

- Max = 6.79ε (Mean = 1.38ε) -

-
-

- Max = 363ε (Mean = 63.8ε) -

-
-

- tgamma(a, z) small values -

-
-

- Max = 1.57ε (Mean = 0.527ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 1.97ε (Mean = 0.552ε) -

-
-

- Max = 1.97ε (Mean = 0.567ε) -

-
-

- tgamma(a, z) integer and half integer values -

-
-

- Max = 2.69ε (Mean = 0.866ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 4.83ε (Mean = 1.12ε) -

-
-

- Max = 84.7ε (Mean = 17.5ε) -

-
-
-
-

Table 17.95. Error rates for tgamma_ratio

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma ratios -

-
-

- Max = 3.66ε (Mean = 1.27ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 3.09ε (Mean = 1.15ε) -

-
-

- Max = 174ε (Mean = 61.2ε) -

-
-
-
-

Table 17.96. Error rates for trigamma

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Mathematica Data -

-
-

- Max = 1ε (Mean = 0.382ε) -

-
-

- Max = 0.998ε (Mean = 0.105ε)

- (Rmath 3.0.2: Max = 1.34e+04ε (Mean = 1.51e+03ε))
- (GSL 1.16: Max = 1.34e+04ε (Mean = 1.49e+03ε)) -

-
-

- Max = 1.28ε (Mean = 0.449ε) -

-
-

- Max = 1.28ε (Mean = 0.447ε) -

-
-
-
-

Table 17.97. Error rates for zeta

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Zeta: Random values greater than 1 -

-
-

- Max = 0.836ε (Mean = 0.093ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 8.69ε (Mean = 1.03ε))
(Cephes: - Max = 4.49e+33ε (Mean = 6.85e+32ε) And - other failures.) -

-
-

- Max = 0.846ε (Mean = 0.0833ε)
-
(<tr1/cmath>: Max = 5.45ε (Mean - = 1ε)) -

-
-

- Max = 0.846ε (Mean = 0.0743ε) -

-
-

- Zeta: Random values less than 1 -

-
-

- Max = 7.03ε (Mean = 2.98ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 137ε (Mean = 13.8ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 7.03ε (Mean = 2.71ε)

- (<tr1/cmath>: Max = 538ε (Mean = 59.3ε)) -

-
-

- Max = 70.1ε (Mean = 17.1ε) -

-
-

- Zeta: Values close to and greater than 1 -

-
-

- Max = 0.994ε (Mean = 0.421ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 7.73ε (Mean = 4.07ε))
(Cephes: - Max = 6.77e+15ε (Mean = 1.52e+15ε) And - other failures.) -

-
-

- Max = 0.995ε (Mean = 0.5ε)

- (<tr1/cmath>: Max = 1.9e+06ε (Mean = 5.11e+05ε)) -

-
-

- Max = 0.995ε (Mean = 0.5ε) -

-
-

- Zeta: Values close to and less than 1 -

-
-

- Max = 0.991ε (Mean = 0.375ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.991ε (Mean = 0.28ε))
(Cephes: - Max = 8.66e+15ε (Mean = 1.9e+15ε) And - other failures.) -

-
-

- Max = 0.998ε (Mean = 0.508ε)

- (<tr1/cmath>: Max = 8.53e+06ε (Mean = - 1.87e+06ε)) -

-
-

- Max = 0.998ε (Mean = 0.568ε) -

-
-

- Zeta: Integer arguments -

-
-

- Max = 6.5ε (Mean = 2.17ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.75ε (Mean = 1.1ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 9ε (Mean = 3.06ε)

- (<tr1/cmath>: Max = 70.3ε (Mean = 17.4ε)) -

-
-

- Max = 21ε (Mean = 7.13ε) -

-
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/logs_and_tables/logs.html b/boost/libs/math/doc/html/math_toolkit/logs_and_tables/logs.html deleted file mode 100644 index 3b59634f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/logs_and_tables/logs.html +++ /dev/null @@ -1,4453 +0,0 @@ - - - -Error Logs For Error Rate Tables - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Error - Output For ellint_1 with compiler GNU C++ version 5.1.0 and library Cephes - and test data Elliptic Integral F: Mathworld Data -
-

- CAUTION: - Gross error found at entry 7.
Found: 0 Expected 1e-20 Error: 4.49423e+287
- 1e-20, 1, 1e-20
CAUTION: Gross error found at entry 9.
Found: - -3.73395e+09 Expected 1.04181e+20 Error: 1.79769e+308
1e+20, 0.390625, - 1.04181e+20
CAUTION: Gross error found at entry 10.
Found: -4.98663e+09 - Expected 1.39133e+50 Error: 1.79769e+308
1e+50, 0.875, 1.39133e+50
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library Cephes - and test data Bessel J: Mathworld Data (large values) -
-

- CAUTION: - Gross error found at entry 0.
Found: 0 Expected 7.14823e+102 Error: - inf
-0.5, 1.2459e-206, 7.14823e+102
-

-
- - Error - Output For cyl_bessel_j (integer orders) with compiler GNU C++ version 5.1.0 - and library Cephes and test data Bessel JN: Mathworld Data (Integer Version) -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 1
- Found: -nan Expected 0 Error: 1.79769e+308
2, 0, 0
CAUTION: Gross - error found at entry 1.
Found: -nan Expected 0 Error: 1.79769e+308
- 2, 0, 0
CAUTION: Found non-finite result, when a finite value was expected - at entry 2
Found: -nan Expected 0 Error: 1.79769e+308
-2, 0, - 0
CAUTION: Gross error found at entry 2.
Found: -nan Expected - 0 Error: 1.79769e+308
-2, 0, 0
CAUTION: Gross error found at - entry 6.
Found: 5.72043e-07 Expected 0.000725964 Error: 1268.07
- -5, 1e+06, 0.000725964
CAUTION: Gross error found at entry 7.
- Found: -5.72043e-07 Expected -0.000725964 Error: 1268.07
5, 1e+06, - -0.000725964
CAUTION: Gross error found at entry 12.
Found: 1.45049e-06 - Expected -0.000331079 Error: 1.79769e+308
-10, 1e+06, -0.000331079
- CAUTION: Gross error found at entry 13.
Found: 1.45049e-06 Expected - -0.000331079 Error: 1.79769e+308
10, 1e+06, -0.000331079
-

-
- - Error - Output For zeta with compiler GNU C++ version 5.1.0 and library Cephes and - test data Zeta: Integer arguments -
-

- CAUTION: - Gross error found at entry 0.
Found: 0.644934 Expected 1.64493 Error: - 1.55055
2, 1.64493
CAUTION: Gross error found at entry 1.
- Found: 0.202057 Expected 1.20206 Error: 4.9491
3, 1.20206
CAUTION: - Gross error found at entry 2.
Found: 0.0823232 Expected 1.08232 Error: - 12.1472
4, 1.08232
CAUTION: Gross error found at entry 3.
- Found: 0.0369278 Expected 1.03693 Error: 27.0799
5, 1.03693
CAUTION: - Gross error found at entry 4.
Found: 0.0173431 Expected 1.01734 Error: - 57.6599
6, 1.01734
CAUTION: Gross error found at entry 5.
- Found: 0.00834928 Expected 1.00835 Error: 119.771
7, 1.00835
- CAUTION: Gross error found at entry 6.
Found: 0.00407736 Expected 1.00408 - Error: 245.257
8, 1.00408
CAUTION: Gross error found at entry - 7.
Found: 0.00200839 Expected 1.00201 Error: 497.911
9, 1.00201
- CAUTION: Gross error found at entry 8.
Found: 0.000994575 Expected - 1.00099 Error: 1005.45
10, 1.00099
CAUTION: Gross error found - at entry 9.
Found: 0.000494189 Expected 1.00049 Error: 2023.52
- 11, 1.00049
CAUTION: Gross error found at entry 10.
Found: 0.000246087 - Expected 1.00025 Error: 4063.61
12, 1.00025
CAUTION: Gross error - found at entry 11.
Found: 0.000122713 Expected 1.00012 Error: 8149.07
- 13, 1.00012
CAUTION: Gross error found at entry 12.
Found: 6.12481e-05 - Expected 1.00006 Error: 16327
14, 1.00006
CAUTION: Gross error - found at entry 13.
Found: 3.05882e-05 Expected 1.00003 Error: 32692.3
- 15, 1.00003
CAUTION: Gross error found at entry 14.
Found: 1.52823e-05 - Expected 1.00002 Error: 65435.4
16, 1.00002
CAUTION: Gross error - found at entry 15.
Found: 7.6372e-06 Expected 1.00001 Error: 130938
- 17, 1.00001
CAUTION: Gross error found at entry 16.
Found: 3.81729e-06 - Expected 1 Error: 261966
18, 1
CAUTION: Gross error found at - entry 17.
Found: 1.90821e-06 Expected 1 Error: 524051
19, 1
- CAUTION: Gross error found at entry 18.
Found: 9.53962e-07 Expected - 1 Error: 1.04826e+06
20, 1
CAUTION: Gross error found at entry - 19.
Found: 4.76933e-07 Expected 1 Error: 2.09673e+06
21, 1
- CAUTION: Gross error found at entry 20.
Found: 2.38451e-07 Expected - 1 Error: 4.19374e+06
22, 1
CAUTION: Gross error found at entry - 21.
Found: 1.1922e-07 Expected 1 Error: 8.38786e+06
23, 1
- CAUTION: Gross error found at entry 22.
Found: 5.96082e-08 Expected - 1 Error: 1.67762e+07
24, 1
CAUTION: Gross error found at entry - 23.
Found: 2.98035e-08 Expected 1 Error: 3.35531e+07
25, 1
- CAUTION: Gross error found at entry 24.
Found: 1.49016e-08 Expected - 1 Error: 6.71071e+07
26, 1
CAUTION: Gross error found at entry - 25.
Found: 7.45071e-09 Expected 1 Error: 1.34215e+08
27, 1
- CAUTION: Gross error found at entry 26.
Found: 3.72533e-09 Expected - 1 Error: 2.68432e+08
28, 1
CAUTION: Gross error found at entry - 27.
Found: 1.86266e-09 Expected 1 Error: 5.36867e+08
29, 1
- CAUTION: Gross error found at entry 28.
Found: 9.31327e-10 Expected - 1 Error: 1.07374e+09
30, 1
CAUTION: Gross error found at entry - 29.
Found: 4.65663e-10 Expected 1 Error: 2.14748e+09
31, 1
- CAUTION: Gross error found at entry 30.
Found: 2.32831e-10 Expected - 1 Error: 4.29496e+09
32, 1
CAUTION: Gross error found at entry - 31.
Found: 1.16416e-10 Expected 1 Error: 8.58992e+09
33, 1
- CAUTION: Gross error found at entry 32.
Found: 5.82077e-11 Expected - 1 Error: 1.71799e+10
34, 1
CAUTION: Gross error found at entry - 33.
Found: 2.91039e-11 Expected 1 Error: 3.43597e+10
35, 1
- CAUTION: Gross error found at entry 34.
Found: 1.45519e-11 Expected - 1 Error: 6.87194e+10
36, 1
CAUTION: Gross error found at entry - 35.
Found: 7.27596e-12 Expected 1 Error: 1.37439e+11
37, 1
- CAUTION: Gross error found at entry 36.
Found: 3.63798e-12 Expected - 1 Error: 2.74878e+11
38, 1
CAUTION: Gross error found at entry - 37.
Found: 1.81899e-12 Expected 1 Error: 5.49756e+11
39, 1
- CAUTION: Gross error found at entry 38.
Found: 9.09495e-13 Expected - 1 Error: 1.09951e+12
40, 1
CAUTION: Gross error found at entry - 39.
Found: 4.54747e-13 Expected 1 Error: 2.19902e+12
41, 1
- CAUTION: Gross error found at entry 40.
Found: 2.27374e-13 Expected - 1 Error: 4.39805e+12
42, 1
CAUTION: Gross error found at entry - 41.
Found: 1.13687e-13 Expected 1 Error: 8.79609e+12
43, 1
- CAUTION: Gross error found at entry 42.
*** FURTHER CONTENT HAS BEEN - TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For zeta with compiler GNU C++ version 5.1.0 and library Cephes and - test data Zeta: Values close to and less than 1 -
-

- CAUTION: - Gross error found at entry 0.
Found: -1.52015 Expected -0.520151 Error: - 1.92252
0.0214165, -0.520151
CAUTION: Gross error found at entry - 1.
Found: -2.47906 Expected -1.47906 Error: 0.676105
0.504723, - -1.47906
-

-
- - Error - Output For zeta with compiler GNU C++ version 5.1.0 and library Cephes and - test data Zeta: Values close to and greater than 1 -
-

- CAUTION: - Gross error found at entry 22.
Found: 1.63113 Expected 2.63113 Error: - 0.613074
1.49528, 2.63113
CAUTION: Gross error found at entry - 23.
Found: 0.665479 Expected 1.66548 Error: 1.50268
1.97858, - 1.66548
-

-
- - Error - Output For zeta with compiler GNU C++ version 5.1.0 and library Cephes and - test data Zeta: Random values less than 1 -
-

- CAUTION: - Gross error found at entry 68.
Found: 1.80809 Expected 2.80809 Error: - 0.553069
-18.1717, 2.80809
CAUTION: Gross error found at entry - 69.
Found: -1.08426 Expected -0.0842581 Error: 11.8683
-17.9938, - -0.0842581
CAUTION: Gross error found at entry 70.
Found: -1.59687 - Expected -0.596871 Error: 1.6754
-17.9543, -0.596871
CAUTION: - Gross error found at entry 71.
Found: -2.82285 Expected -1.82285 Error: - 0.548591
-17.841, -1.82285
CAUTION: Gross error found at entry - 72.
Found: -2.84958 Expected -1.84958 Error: 0.540663
-17.8381, - -1.84958
CAUTION: Gross error found at entry 81.
Found: -1.97763 - Expected -0.977631 Error: 1.02288
-16.3989, -0.977631
CAUTION: - Gross error found at entry 82.
Found: -1.39148 Expected -0.391484 Error: - 2.55438
-16.1868, -0.391484
CAUTION: Gross error found at entry - 83.
Found: -0.78869 Expected 0.21131 Error: 1.79769e+308
-15.863, - 0.21131
CAUTION: Gross error found at entry 84.
Found: -0.714724 - Expected 0.285276 Error: 1.79769e+308
-15.8023, 0.285276
CAUTION: - Gross error found at entry 85.
Found: -0.490423 Expected 0.509577 Error: - 1.79769e+308
-15.4489, 0.509577
CAUTION: Gross error found at - entry 86.
Found: -0.479506 Expected 0.520494 Error: 1.79769e+308
- -15.328, 0.520494
CAUTION: Gross error found at entry 87.
Found: - -0.482 Expected 0.518 Error: 1.79769e+308
-15.2825, 0.518
CAUTION: - Gross error found at entry 88.
Found: -0.576136 Expected 0.423864 Error: - 1.79769e+308
-14.9534, 0.423864
CAUTION: Gross error found at - entry 89.
Found: -0.606631 Expected 0.393369 Error: 1.79769e+308
- -14.8854, 0.393369
CAUTION: Gross error found at entry 90.
Found: - -0.639143 Expected 0.360857 Error: 1.79769e+308
-14.8173, 0.360857
- CAUTION: Gross error found at entry 91.
Found: -0.651728 Expected 0.348272 - Error: 1.79769e+308
-14.7917, 0.348272
CAUTION: Gross error found - at entry 92.
Found: -0.773663 Expected 0.226337 Error: 1.79769e+308
- -14.5507, 0.226337
CAUTION: Gross error found at entry 93.
Found: - -0.852915 Expected 0.147085 Error: 1.79769e+308
-14.3865, 0.147085
- CAUTION: Gross error found at entry 94.
Found: -0.884718 Expected 0.115282 - Error: 1.79769e+308
-14.3153, 0.115282
CAUTION: Gross error found - at entry 95.
Found: -1.07251 Expected -0.0725123 Error: 13.7908
- -13.6515, -0.0725123
CAUTION: Gross error found at entry 96.
- Found: -1.08375 Expected -0.0837503 Error: 11.9403
-13.5453, -0.0837503
- CAUTION: Gross error found at entry 97.
Found: -1.08614 Expected -0.0861375 - Error: 11.6093
-13.0467, -0.0861375
CAUTION: Gross error found - at entry 98.
Found: -1.08555 Expected -0.0855459 Error: 11.6896
- -13.0363, -0.0855459
CAUTION: Gross error found at entry 99.
- Found: -1.08554 Expected -0.0855368 Error: 11.6909
-13.0362, -0.0855368
- CAUTION: Gross error found at entry 100.
Found: -1.08057 Expected -0.0805677 - Error: 12.4119
-12.9586, -0.0805677
CAUTION: Gross error found - at entry 101.
Found: -1.04917 Expected -0.0491676 Error: 20.3386
- -12.5917, -0.0491676
CAUTION: Gross error found at entry 102.
- Found: -1.03115 Expected -0.0311511 Error: 32.1016
-12.3975, -0.0311511
- CAUTION: Gross error found at entry 103.
Found: -1.02837 Expected -0.0283659 - Error: 35.2536
-12.3665, -0.0283659
CAUTION: Gross error found - at entry 104.
Found: -1.01539 Expected -0.0153904 Error: 64.9757
- -12.2136, -0.0153904
CAUTION: Gross error found at entry 105.
- Found: -0.999393 Expected 0.00060699 Error: 1.79769e+308
-11.9903, - 0.00060699
CAUTION: Gross error found at entry 106.
Found: -0.991853 - Expected 0.0081472 Error: 1.79769e+308
-11.8568, 0.0081472
CAUTION: - Gross error found at entry 107.
Found: -0.991847 Expected 0.00815288 - Error: 1.79769e+308
-11.8567, 0.00815288
CAUTION: Gross error - found at entry 108.
Found: -0.982538 Expected 0.0174619 Error: 1.79769e+308
- -11.6225, 0.0174619
CAUTION: Gross error found at entry 109.
- Found: -0.981134 Expected 0.0188657 Error: 1.79769e+308
-11.5704, 0.0188657
- CAUTION: Gross error found at entry 110.
Found: -0.980337 Expected - 0.0196626 Error: 1.79769e+308
-10.9026, 0.0196626
CAUTION: Gross - error found at entry 111.
Found: -0.99131 Expected 0.00868998 Error: - 1.79769e+308
-10.3969, 0.00868998
CAUTION: Gross error found - at entry 112.
*** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For zeta with compiler GNU C++ version 5.1.0 and library Cephes and - test data Zeta: Random values greater than 1 -
-

- CAUTION: - Gross error found at entry 2.
Found: 1.04991 Expected 2.04991 Error: - 0.952459
1.70222, 2.04991
CAUTION: Gross error found at entry - 3.
Found: 0.884017 Expected 1.88402 Error: 1.1312
1.79881, 1.88402
- CAUTION: Gross error found at entry 4.
Found: 0.601558 Expected 1.60156 - Error: 1.66235
2.04866, 1.60156
CAUTION: Gross error found at - entry 5.
Found: 0.228101 Expected 1.2281 Error: 4.38402
2.87814, - 1.2281
CAUTION: Gross error found at entry 6.
Found: 0.195777 - Expected 1.19578 Error: 5.10786
3.03232, 1.19578
CAUTION: Gross - error found at entry 7.
Found: 0.182159 Expected 1.18216 Error: 5.4897
- 3.10699, 1.18216
CAUTION: Gross error found at entry 8.
Found: - 0.174834 Expected 1.17483 Error: 5.71972
3.15003, 1.17483
CAUTION: - Gross error found at entry 9.
Found: 0.104091 Expected 1.10409 Error: - 9.60693
3.72411, 1.10409
CAUTION: Gross error found at entry - 10.
Found: 0.0808384 Expected 1.08084 Error: 12.3704
4.02177, - 1.08084
CAUTION: Gross error found at entry 11.
Found: 0.0707287 - Expected 1.07073 Error: 14.1385
4.18306, 1.07073
CAUTION: Gross - error found at entry 12.
Found: 0.0372687 Expected 1.03727 Error: 26.8322
- 4.98813, 1.03727
CAUTION: Gross error found at entry 13.
Found: - 0.0256772 Expected 1.02568 Error: 38.945
5.4754, 1.02568
CAUTION: - Gross error found at entry 14.
Found: 0.0101478 Expected 1.01015 Error: - 98.5435
6.73077, 1.01015
CAUTION: Gross error found at entry - 15.
Found: 0.00997161 Expected 1.00997 Error: 100.285
6.75488, - 1.00997
CAUTION: Gross error found at entry 16.
Found: 0.00590303 - Expected 1.0059 Error: 169.404
7.48184, 1.0059
CAUTION: Gross - error found at entry 17.
Found: 0.00528849 Expected 1.00529 Error: - 189.09
7.63541, 1.00529
CAUTION: Gross error found at entry 18.
- Found: 0.00401727 Expected 1.00402 Error: 248.925
8.02086, 1.00402
- CAUTION: Gross error found at entry 19.
Found: 0.0031002 Expected 1.0031 - Error: 322.56
8.38578, 1.0031
CAUTION: Gross error found at entry - 20.
Found: 0.00300904 Expected 1.00301 Error: 332.332
8.4279, - 1.00301
CAUTION: Gross error found at entry 21.
Found: 0.00287504 - Expected 1.00288 Error: 347.821
8.49222, 1.00288
CAUTION: Gross - error found at entry 22.
Found: 0.0025452 Expected 1.00255 Error: 392.897
- 8.66447, 1.00255
CAUTION: Gross error found at entry 23.
Found: - 0.00201813 Expected 1.00202 Error: 495.509
8.99314, 1.00202
CAUTION: - Gross error found at entry 24.
Found: 0.00177061 Expected 1.00177 Error: - 564.776
9.17884, 1.00177
CAUTION: Gross error found at entry - 25.
Found: 0.00154636 Expected 1.00155 Error: 646.681
9.37129, - 1.00155
CAUTION: Gross error found at entry 26.
Found: 0.00114613 - Expected 1.00115 Error: 872.501
9.79772, 1.00115
CAUTION: Gross - error found at entry 27.
Found: 0.00113762 Expected 1.00114 Error: - 879.026
9.80835, 1.00114
CAUTION: Gross error found at entry - 28.
Found: 0.000919597 Expected 1.00092 Error: 1087.43
10.1119, - 1.00092
CAUTION: Gross error found at entry 29.
Found: 0.000806567 - Expected 1.00081 Error: 1239.82
10.2992, 1.00081
CAUTION: Gross - error found at entry 30.
Found: 0.000791898 Expected 1.00079 Error: - 1262.79
10.3254, 1.00079
CAUTION: Gross error found at entry - 31.
Found: 0.000656217 Expected 1.00066 Error: 1523.89
10.5941, - 1.00066
CAUTION: Gross error found at entry 32.
Found: 0.000460863 - Expected 1.00046 Error: 2169.84
11.1, 1.00046
CAUTION: Gross - error found at entry 33.
Found: 0.000412745 Expected 1.00041 Error: - 2422.81
11.258, 1.00041
CAUTION: Gross error found at entry 34.
- Found: 0.000241758 Expected 1.00024 Error: 4136.37
12.0255, 1.00024
- CAUTION: Gross error found at entry 35.
Found: 0.000227222 Expected - 1.00023 Error: 4400.99
12.1145, 1.00023
CAUTION: Gross error - found at entry 36.
Found: 0.000162173 Expected 1.00016 Error: 6166.25
- 12.5991, 1.00016
CAUTION: Gross error found at entry 37.
Found: - 0.000101288 Expected 1.0001 Error: 9872.84
13.276, 1.0001
CAUTION: - Gross error found at entry 38.
Found: 9.27745e-05 Expected 1.00009 - Error: 10778.8
13.4023, 1.00009
CAUTION: Gross error found at - entry 39.
Found: 8.6474e-05 Expected 1.00009 Error: 11564.2
13.5035, - 1.00009
CAUTION: Gross error found at entry 40.
Found: 6.95488e-05 - Expected 1.00007 Error: 14378.4
*** FURTHER CONTENT HAS BEEN TRUNCATED - FOR BREVITY ***
-

-
- - Error - Output For ellint_2 with compiler GNU C++ version 5.1.0 and library Cephes - and test data Elliptic Integral E: Mathworld Data -
-

- CAUTION: - Gross error found at entry 7.
Found: -3.34831e+09 Expected 9.34215e+09 - Error: 1.79769e+308
1e+10, -0.5, 9.34215e+09
CAUTION: Gross error - found at entry 8.
Found: -3.44318e+09 Expected 7.08861e+19 Error: 1.79769e+308
- 7.3787e+19, 0.390625, 7.08861e+19
CAUTION: Gross error found at entry - 9.
Found: -2.65017e+09 Expected 7.1259e+49 Error: 1.79769e+308
- 9.35361e+49, 0.878906, 7.1259e+49
-

-
- - Error - Output For cyl_bessel_k (integer orders) with compiler GNU C++ version 5.1.0 - and library Cephes and test data Bessel Kn: Mathworld Data (Integer Version) -
-

- CAUTION: - Gross error found at entry 6.
Found: 1.79769e+308 Expected 7.03986e+115 - Error: 2.55359e+192
100, 5, 7.03986e+115
CAUTION: Gross error - found at entry 7.
Found: 1.79769e+308 Expected 8.39287e-12 Error: inf
- 100, 80, 8.39287e-12
CAUTION: Gross error found at entry 8.
Found: - 1.79769e+308 Expected 6.51562e-31 Error: inf
-1000, 700, 6.51562e-31
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library Cephes - and test data Bessel Iv: Random Data -
-

- CAUTION: - Gross error found at entry 1.
Found: 1.52454e-09 Expected 2.03248e+06 - Error: 1.33317e+15
-80.4919, 63.7722, 2.03248e+06
CAUTION: Gross - error found at entry 3.
Found: 69913.6 Expected 8.7549e+08 Error: 12521.5
- -74.6026, 63.7722, 8.7549e+08
CAUTION: Gross error found at entry 5.
- Found: 1.48077e+06 Expected 4.7162e+09 Error: 3183.97
-72.9046, 63.7722, - 4.7162e+09
CAUTION: Gross error found at entry 7.
Found: 6.80778e+12 - Expected 8.56683e+13 Error: 11.5839
-62.3236, 63.7722, 8.56683e+13
- CAUTION: Gross error found at entry 9.
Found: 7.36772e+15 Expected - 1.95969e+16 Error: 1.65984
-55.7932, 63.7722, 1.95969e+16
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library Cephes - and test data Bessel Iv: Mathworld Data -
-

- CAUTION: - Gross error found at entry 3.
Found: -4.66671e-05 Expected 597.578 - Error: 1.79769e+308
-5.5, 10, 597.578
CAUTION: Gross error found - at entry 4.
Found: -3.44586e-45 Expected 9.22363e+41 Error: 1.79769e+308
- -5.5, 100, 9.22363e+41
CAUTION: Gross error found at entry 8.
- Found: 1.15969e+56 Expected 2.237e+64 Error: 1.92896e+08
141.4, 200, - 2.237e+64
CAUTION: Gross error found at entry 9.
Found: -8.46295e-07 - Expected 2066.28 Error: 1.79769e+308
-141.4, 100, 2066.28
-

-
- - Error - Output For cyl_bessel_i (integer orders) with compiler GNU C++ version 5.1.0 - and library Cephes and test data Bessel In: Mathworld Data (Integer Version) -
-

- CAUTION: - Gross error found at entry 3.
Found: 6.29469e+41 Expected 9.47009e+41 - Error: 0.504458
-5, 100, 9.47009e+41
CAUTION: Gross error found - at entry 9.
Found: 3.54526e+236 Expected 4.35275e+74 Error: 8.14488e+161
- -100, -200, 4.35275e+74
-

-
- - Error - Output For cyl_bessel_i (integer orders) with compiler GNU C++ version 5.1.0 - and library Cephes and test data Bessel I1: Mathworld Data (Integer Version) -
-

- CAUTION: - Gross error found at entry 8.
Found: 5.99014e+41 Expected 1.06837e+42 - Error: 0.783548
1, 100, 1.06837e+42
CAUTION: Gross error found - at entry 9.
Found: 7.15481e+57 Expected 2.03458e+85 Error: 2.84366e+27
- 1, 200, 2.03458e+85
-

-
- - Error - Output For cyl_bessel_i (integer orders) with compiler GNU C++ version 5.1.0 - and library Cephes and test data Bessel I0: Mathworld Data (Integer Version) -
-

- CAUTION: - Gross error found at entry 8.
Found: 5.72186e+41 Expected 1.07375e+42 - Error: 0.876579
0, 100, 1.07375e+42
CAUTION: Gross error found - at entry 9.
Found: 3.60439e+57 Expected 2.03969e+85 Error: 5.6589e+27
- 0, 200, 2.03969e+85
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library Cephes - and test data Bessel In: Mathworld Data -
-

- CAUTION: - Gross error found at entry 3.
Found: 6.29469e+41 Expected 9.47009e+41 - Error: 0.504458
-5, 100, 9.47009e+41
CAUTION: Gross error found - at entry 9.
Found: 3.54526e+236 Expected 4.35275e+74 Error: 8.14488e+161
- -100, -200, 4.35275e+74
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library Cephes - and test data Bessel I1: Mathworld Data -
-

- CAUTION: - Gross error found at entry 8.
Found: 5.99014e+41 Expected 1.06837e+42 - Error: 0.783548
1, 100, 1.06837e+42
CAUTION: Gross error found - at entry 9.
Found: 7.15481e+57 Expected 2.03458e+85 Error: 2.84366e+27
- 1, 200, 2.03458e+85
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library Cephes - and test data Bessel I0: Mathworld Data -
-

- CAUTION: - Gross error found at entry 8.
Found: 5.72186e+41 Expected 1.07375e+42 - Error: 0.876579
0, 100, 1.07375e+42
CAUTION: Gross error found - at entry 9.
Found: 3.60439e+57 Expected 2.03969e+85 Error: 5.6589e+27
- 0, 200, 2.03969e+85
-

-
- - Error - Output For jacobi_dn with compiler GNU C++ version 5.1.0 and library Cephes - and test data Jacobi Elliptic: Modulus near 1 -
-

- CAUTION: - Gross error found at entry 0.
Found: 0 Expected 0.0357231 Error: 1.60548e+306
- -4.0246, 1, -0.999361, 0.0357365, 0.0357231
CAUTION: Gross error found - at entry 1.
Found: 0 Expected 0.0357097 Error: 1.60488e+306
-4.0246, - 1, -0.999361, 0.0357497, 0.0357097
CAUTION: Gross error found at entry - 2.
Found: 0 Expected 0.0356829 Error: 1.60367e+306
-4.0246, 1, - -0.99936, 0.0357762, 0.0356829
CAUTION: Gross error found at entry - 3.
Found: 0 Expected 0.0356695 Error: 1.60307e+306
-4.0246, 1, - -0.999359, 0.0357895, 0.0356695
CAUTION: Gross error found at entry - 4.
Found: 0 Expected 0.0355222 Error: 1.59645e+306
-4.0246, 1.00001, - -0.999354, 0.0359354, 0.0355222
CAUTION: Gross error found at entry - 5.
Found: 0 Expected 0.0353212 Error: 1.58742e+306
-4.0246, 1.00003, - -0.999347, 0.0361343, 0.0353212
CAUTION: Gross error found at entry - 6.
Found: 0 Expected 0.0352073 Error: 1.5823e+306
-4.0246, 1.00004, - -0.999343, 0.036247, 0.0352073
CAUTION: Gross error found at entry - 7.
Found: 0 Expected 0.0343296 Error: 1.54285e+306
-4.0246, 1.0001, - -0.999311, 0.0371157, 0.0343296
CAUTION: Gross error found at entry - 8.
Found: 0 Expected 0.0334851 Error: 1.5049e+306
-4.0246, 1.00016, - -0.99928, 0.0379513, 0.0334851
CAUTION: Gross error found at entry - 9.
Found: 0 Expected 0.0319634 Error: 1.43651e+306
-4.0246, 1.00027, - -0.999221, 0.0394571, 0.0319634
CAUTION: Gross error found at entry - 10.
Found: 0 Expected 0.0251046 Error: 1.12826e+306
-4.0246, - 1.00076, -0.99893, 0.0462407, 0.0251046
CAUTION: Gross error found - at entry 11.
Found: 0 Expected 0.0181532 Error: 8.15849e+305
- -4.0246, 1.00125, -0.998589, 0.0531109, 0.0181532
CAUTION: Gross error - found at entry 12.
Found: 0 Expected 0.0029944 Error: 1.34575e+305
- -4.0246, 1.00232, -0.99768, 0.0680761, 0.0029944
CAUTION: Gross error - found at entry 13.
Found: 0 Expected -0.049966 Error: 2.24559e+306
- -4.0246, 1.00604, -0.992752, 0.120179, -0.049966
CAUTION: Gross error - found at entry 14.
Found: 0 Expected -0.186698 Error: 8.39064e+306
- -4.0246, 1.01557, -0.967356, 0.25342, -0.186698
CAUTION: Gross error - found at entry 15.
Found: 0 Expected -0.397492 Error: 1.78642e+307
- -4.0246, 1.03059, -0.890373, 0.455232, -0.397492
CAUTION: Gross error - found at entry 16.
Found: 0 Expected -0.76412 Error: 3.43414e+307
- -4.0246, 1.06239, -0.607191, 0.794556, -0.76412
CAUTION: Gross error - found at entry 17.
Found: 0 Expected 0.0479467 Error: 2.15484e+306
- -3.73013, 1, -0.998849, 0.0479567, 0.0479467
CAUTION: Gross error found - at entry 18.
Found: 0 Expected 0.0479367 Error: 2.15439e+306
- -3.73013, 1, -0.998849, 0.0479665, 0.0479367
CAUTION: Gross error found - at entry 19.
Found: 0 Expected 0.0479167 Error: 2.15349e+306
- -3.73013, 1, -0.998848, 0.0479862, 0.0479167
CAUTION: Gross error found - at entry 20.
Found: 0 Expected 0.0479067 Error: 2.15304e+306
- -3.73013, 1, -0.998848, 0.047996, 0.0479067
CAUTION: Gross error found - at entry 21.
Found: 0 Expected 0.0477966 Error: 2.14809e+306
- -3.73013, 1.00001, -0.998842, 0.0481042, 0.0477966
CAUTION: Gross error - found at entry 22.
Found: 0 Expected 0.0476465 Error: 2.14135e+306
- -3.73013, 1.00003, -0.998835, 0.0482517, 0.0476465
CAUTION: Gross error - found at entry 23.
Found: 0 Expected 0.0475615 Error: 2.13752e+306
- -3.73013, 1.00004, -0.998831, 0.0483354, 0.0475615
CAUTION: Gross error - found at entry 24.
Found: 0 Expected 0.0469059 Error: 2.10806e+306
- -3.73013, 1.0001, -0.9988, 0.0489797, 0.0469059
CAUTION: Gross error - found at entry 25.
Found: 0 Expected 0.0462752 Error: 2.07972e+306
- -3.73013, 1.00016, -0.998769, 0.0495995, 0.0462752
CAUTION: Gross error - found at entry 26.
Found: 0 Expected 0.0451386 Error: 2.02864e+306
- -3.73013, 1.00027, -0.998713, 0.0507164, 0.0451386
CAUTION: Gross error - found at entry 27.
Found: 0 Expected 0.0400164 Error: 1.79843e+306
- -3.73013, 1.00076, -0.998445, 0.0557477, 0.0400164
CAUTION: Gross error - found at entry 28.
Found: 0 Expected 0.0348257 Error: 1.56515e+306
- -3.73013, 1.00125, -0.998147, 0.0608429, 0.0348257
CAUTION: Gross error - found at entry 29.
Found: 0 Expected 0.0235071 Error: 1.05647e+306
- -3.73013, 1.00232, -0.997409, 0.0719406, 0.0235071
CAUTION: Gross error - found at entry 30.
*** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY - ***
-

-
- - Error - Output For jacobi_cn with compiler GNU C++ version 5.1.0 and library Cephes - and test data Jacobi Elliptic: Modulus near 1 -
-

- CAUTION: - Gross error found at entry 0.
Found: 0 Expected 0.0357365 Error: 1.60608e+306
- -4.0246, 1, -0.999361, 0.0357365, 0.0357231
CAUTION: Gross error found - at entry 1.
Found: 0 Expected 0.0357497 Error: 1.60668e+306
-4.0246, - 1, -0.999361, 0.0357497, 0.0357097
CAUTION: Gross error found at entry - 2.
Found: 0 Expected 0.0357762 Error: 1.60787e+306
-4.0246, 1, - -0.99936, 0.0357762, 0.0356829
CAUTION: Gross error found at entry - 3.
Found: 0 Expected 0.0357895 Error: 1.60846e+306
-4.0246, 1, - -0.999359, 0.0357895, 0.0356695
CAUTION: Gross error found at entry - 4.
Found: 0 Expected 0.0359354 Error: 1.61502e+306
-4.0246, 1.00001, - -0.999354, 0.0359354, 0.0355222
CAUTION: Gross error found at entry - 5.
Found: 0 Expected 0.0361343 Error: 1.62396e+306
-4.0246, 1.00003, - -0.999347, 0.0361343, 0.0353212
CAUTION: Gross error found at entry - 6.
Found: 0 Expected 0.036247 Error: 1.62902e+306
-4.0246, 1.00004, - -0.999343, 0.036247, 0.0352073
CAUTION: Gross error found at entry - 7.
Found: 0 Expected 0.0371157 Error: 1.66806e+306
-4.0246, 1.0001, - -0.999311, 0.0371157, 0.0343296
CAUTION: Gross error found at entry - 8.
Found: 0 Expected 0.0379513 Error: 1.70562e+306
-4.0246, 1.00016, - -0.99928, 0.0379513, 0.0334851
CAUTION: Gross error found at entry - 9.
Found: 0 Expected 0.0394571 Error: 1.77329e+306
-4.0246, 1.00027, - -0.999221, 0.0394571, 0.0319634
CAUTION: Gross error found at entry - 10.
Found: 0 Expected 0.0462407 Error: 2.07816e+306
-4.0246, - 1.00076, -0.99893, 0.0462407, 0.0251046
CAUTION: Gross error found - at entry 11.
Found: 0 Expected 0.0531109 Error: 2.38693e+306
- -4.0246, 1.00125, -0.998589, 0.0531109, 0.0181532
CAUTION: Gross error - found at entry 12.
Found: 0 Expected 0.0680761 Error: 3.0595e+306
- -4.0246, 1.00232, -0.99768, 0.0680761, 0.0029944
CAUTION: Gross error - found at entry 13.
Found: 0 Expected 0.120179 Error: 5.40113e+306
- -4.0246, 1.00604, -0.992752, 0.120179, -0.049966
CAUTION: Gross error - found at entry 14.
Found: 0 Expected 0.25342 Error: 1.13893e+307
- -4.0246, 1.01557, -0.967356, 0.25342, -0.186698
CAUTION: Gross error - found at entry 15.
Found: 0 Expected 0.455232 Error: 2.04592e+307
- -4.0246, 1.03059, -0.890373, 0.455232, -0.397492
CAUTION: Gross error - found at entry 16.
Found: 0 Expected 0.794556 Error: 3.57092e+307
- -4.0246, 1.06239, -0.607191, 0.794556, -0.76412
CAUTION: Gross error - found at entry 17.
Found: 0 Expected 0.0479567 Error: 2.15528e+306
- -3.73013, 1, -0.998849, 0.0479567, 0.0479467
CAUTION: Gross error found - at entry 18.
Found: 0 Expected 0.0479665 Error: 2.15573e+306
- -3.73013, 1, -0.998849, 0.0479665, 0.0479367
CAUTION: Gross error found - at entry 19.
Found: 0 Expected 0.0479862 Error: 2.15661e+306
- -3.73013, 1, -0.998848, 0.0479862, 0.0479167
CAUTION: Gross error found - at entry 20.
Found: 0 Expected 0.047996 Error: 2.15705e+306
-3.73013, - 1, -0.998848, 0.047996, 0.0479067
CAUTION: Gross error found at entry - 21.
Found: 0 Expected 0.0481042 Error: 2.16191e+306
-3.73013, - 1.00001, -0.998842, 0.0481042, 0.0477966
CAUTION: Gross error found - at entry 22.
Found: 0 Expected 0.0482517 Error: 2.16855e+306
- -3.73013, 1.00003, -0.998835, 0.0482517, 0.0476465
CAUTION: Gross error - found at entry 23.
Found: 0 Expected 0.0483354 Error: 2.1723e+306
- -3.73013, 1.00004, -0.998831, 0.0483354, 0.0475615
CAUTION: Gross error - found at entry 24.
Found: 0 Expected 0.0489797 Error: 2.20126e+306
- -3.73013, 1.0001, -0.9988, 0.0489797, 0.0469059
CAUTION: Gross error - found at entry 25.
Found: 0 Expected 0.0495995 Error: 2.22912e+306
- -3.73013, 1.00016, -0.998769, 0.0495995, 0.0462752
CAUTION: Gross error - found at entry 26.
Found: 0 Expected 0.0507164 Error: 2.27931e+306
- -3.73013, 1.00027, -0.998713, 0.0507164, 0.0451386
CAUTION: Gross error - found at entry 27.
Found: 0 Expected 0.0557477 Error: 2.50543e+306
- -3.73013, 1.00076, -0.998445, 0.0557477, 0.0400164
CAUTION: Gross error - found at entry 28.
Found: 0 Expected 0.0608429 Error: 2.73442e+306
- -3.73013, 1.00125, -0.998147, 0.0608429, 0.0348257
CAUTION: Gross error - found at entry 29.
Found: 0 Expected 0.0719406 Error: 3.23318e+306
- -3.73013, 1.00232, -0.997409, 0.0719406, 0.0235071
CAUTION: Gross error - found at entry 30.
*** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY - ***
-

-
- - Error - Output For jacobi_sn with compiler GNU C++ version 5.1.0 and library Cephes - and test data Jacobi Elliptic: Modulus near 1 -
-

- CAUTION: - Gross error found at entry 0.
Found: 0 Expected -0.999361 Error: 4.49136e+307
- -4.0246, 1, -0.999361, 0.0357365, 0.0357231
CAUTION: Gross error found - at entry 1.
Found: 0 Expected -0.999361 Error: 4.49136e+307
-4.0246, - 1, -0.999361, 0.0357497, 0.0357097
CAUTION: Gross error found at entry - 2.
Found: 0 Expected -0.99936 Error: 4.49136e+307
-4.0246, 1, - -0.99936, 0.0357762, 0.0356829
CAUTION: Gross error found at entry - 3.
Found: 0 Expected -0.999359 Error: 4.49135e+307
-4.0246, 1, - -0.999359, 0.0357895, 0.0356695
CAUTION: Gross error found at entry - 4.
Found: 0 Expected -0.999354 Error: 4.49133e+307
-4.0246, 1.00001, - -0.999354, 0.0359354, 0.0355222
CAUTION: Gross error found at entry - 5.
Found: 0 Expected -0.999347 Error: 4.4913e+307
-4.0246, 1.00003, - -0.999347, 0.0361343, 0.0353212
CAUTION: Gross error found at entry - 6.
Found: 0 Expected -0.999343 Error: 4.49128e+307
-4.0246, 1.00004, - -0.999343, 0.036247, 0.0352073
CAUTION: Gross error found at entry - 7.
Found: 0 Expected -0.999311 Error: 4.49114e+307
-4.0246, 1.0001, - -0.999311, 0.0371157, 0.0343296
CAUTION: Gross error found at entry - 8.
Found: 0 Expected -0.99928 Error: 4.491e+307
-4.0246, 1.00016, - -0.99928, 0.0379513, 0.0334851
CAUTION: Gross error found at entry - 9.
Found: 0 Expected -0.999221 Error: 4.49073e+307
-4.0246, 1.00027, - -0.999221, 0.0394571, 0.0319634
CAUTION: Gross error found at entry - 10.
Found: 0 Expected -0.99893 Error: 4.48943e+307
-4.0246, 1.00076, - -0.99893, 0.0462407, 0.0251046
CAUTION: Gross error found at entry - 11.
Found: 0 Expected -0.998589 Error: 4.48789e+307
-4.0246, - 1.00125, -0.998589, 0.0531109, 0.0181532
CAUTION: Gross error found - at entry 12.
Found: 0 Expected -0.99768 Error: 4.48381e+307
-4.0246, - 1.00232, -0.99768, 0.0680761, 0.0029944
CAUTION: Gross error found - at entry 13.
Found: 0 Expected -0.992752 Error: 4.46166e+307
- -4.0246, 1.00604, -0.992752, 0.120179, -0.049966
CAUTION: Gross error - found at entry 14.
Found: 0 Expected -0.967356 Error: 4.34752e+307
- -4.0246, 1.01557, -0.967356, 0.25342, -0.186698
CAUTION: Gross error - found at entry 15.
Found: 0 Expected -0.890373 Error: 4.00154e+307
- -4.0246, 1.03059, -0.890373, 0.455232, -0.397492
CAUTION: Gross error - found at entry 16.
Found: 0 Expected -0.607191 Error: 2.72886e+307
- -4.0246, 1.06239, -0.607191, 0.794556, -0.76412
CAUTION: Gross error - found at entry 17.
Found: 0 Expected -0.998849 Error: 4.48906e+307
- -3.73013, 1, -0.998849, 0.0479567, 0.0479467
CAUTION: Gross error found - at entry 18.
Found: 0 Expected -0.998849 Error: 4.48906e+307
- -3.73013, 1, -0.998849, 0.0479665, 0.0479367
CAUTION: Gross error found - at entry 19.
Found: 0 Expected -0.998848 Error: 4.48906e+307
- -3.73013, 1, -0.998848, 0.0479862, 0.0479167
CAUTION: Gross error found - at entry 20.
Found: 0 Expected -0.998848 Error: 4.48905e+307
- -3.73013, 1, -0.998848, 0.047996, 0.0479067
CAUTION: Gross error found - at entry 21.
Found: 0 Expected -0.998842 Error: 4.48903e+307
- -3.73013, 1.00001, -0.998842, 0.0481042, 0.0477966
CAUTION: Gross error - found at entry 22.
Found: 0 Expected -0.998835 Error: 4.489e+307
- -3.73013, 1.00003, -0.998835, 0.0482517, 0.0476465
CAUTION: Gross error - found at entry 23.
Found: 0 Expected -0.998831 Error: 4.48898e+307
- -3.73013, 1.00004, -0.998831, 0.0483354, 0.0475615
CAUTION: Gross error - found at entry 24.
Found: 0 Expected -0.9988 Error: 4.48884e+307
- -3.73013, 1.0001, -0.9988, 0.0489797, 0.0469059
CAUTION: Gross error - found at entry 25.
Found: 0 Expected -0.998769 Error: 4.4887e+307
- -3.73013, 1.00016, -0.998769, 0.0495995, 0.0462752
CAUTION: Gross error - found at entry 26.
Found: 0 Expected -0.998713 Error: 4.48845e+307
- -3.73013, 1.00027, -0.998713, 0.0507164, 0.0451386
CAUTION: Gross error - found at entry 27.
Found: 0 Expected -0.998445 Error: 4.48724e+307
- -3.73013, 1.00076, -0.998445, 0.0557477, 0.0400164
CAUTION: Gross error - found at entry 28.
Found: 0 Expected -0.998147 Error: 4.48591e+307
- -3.73013, 1.00125, -0.998147, 0.0608429, 0.0348257
CAUTION: Gross error - found at entry 29.
Found: 0 Expected -0.997409 Error: 4.48259e+307
- -3.73013, 1.00232, -0.997409, 0.0719406, 0.0235071
CAUTION: Gross error - found at entry 30.
*** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY - ***
-

-
- - Error - Output For jacobi_dn with compiler GNU C++ version 5.1.0 and library Cephes - and test data Jacobi Elliptic: Random Small Values -
-

- CAUTION: - Gross error found at entry 40.
Found: 0 Expected 1 Error: 4.49423e+307
- 1.65048e-12, 1.65574, 1.65048e-12, 1, 1
CAUTION: Gross error found - at entry 81.
Found: 0 Expected 1 Error: 4.49423e+307
2.06542e-12, - 1.65574, 2.06542e-12, 1, 1
CAUTION: Gross error found at entry 122.
- Found: 0 Expected 1 Error: 4.49423e+307
6.93323e-12, 1.65574, 6.93323e-12, - 1, 1
CAUTION: Gross error found at entry 163.
Found: 0 Expected - 1 Error: 4.49423e+307
1.33514e-11, 1.65574, 1.33514e-11, 1, 1
- CAUTION: Gross error found at entry 204.
Found: 0 Expected 1 Error: - 4.49423e+307
1.63998e-11, 1.65574, 1.63998e-11, 1, 1
CAUTION: - Gross error found at entry 245.
Found: 0 Expected 1 Error: 4.49423e+307
- 5.73016e-11, 1.65574, 5.73016e-11, 1, 1
CAUTION: Gross error found - at entry 286.
Found: 0 Expected 1 Error: 4.49423e+307
1.11373e-10, - 1.65574, 1.11373e-10, 1, 1
CAUTION: Gross error found at entry 327.
- Found: 0 Expected 1 Error: 4.49423e+307
1.42147e-10, 1.65574, 1.42147e-10, - 1, 1
CAUTION: Gross error found at entry 368.
Found: 0 Expected - 1 Error: 4.49423e+307
3.80063e-10, 1.65574, 3.80063e-10, 1, 1
- CAUTION: Gross error found at entry 409.
Found: 0 Expected 1 Error: - 4.49423e+307
6.09163e-10, 1.65574, 6.09163e-10, 1, 1
CAUTION: - Gross error found at entry 450.
Found: 0 Expected 1 Error: 4.49423e+307
- 1.02216e-09, 1.65574, 1.02216e-09, 1, 1
CAUTION: Gross error found - at entry 491.
Found: 0 Expected 1 Error: 4.49423e+307
2.88192e-09, - 1.65574, 2.88192e-09, 1, 1
CAUTION: Gross error found at entry 532.
- Found: 0 Expected 1 Error: 4.49423e+307
4.76278e-09, 1.65574, 4.76278e-09, - 1, 1
CAUTION: Gross error found at entry 573.
Found: 0 Expected - 1 Error: 4.49423e+307
8.85413e-09, 1.65574, 8.85413e-09, 1, 1
- CAUTION: Gross error found at entry 614.
Found: 0 Expected 1 Error: - 4.49423e+307
2.30503e-08, 1.65574, 2.30503e-08, 1, 1
CAUTION: - Gross error found at entry 655.
Found: 0 Expected 1 Error: 4.49423e+307
- 5.93925e-08, 1.65574, 5.93925e-08, 1, 1
CAUTION: Gross error found - at entry 696.
Found: 0 Expected 1 Error: 4.49423e+307
1.16676e-07, - 1.65574, 1.16676e-07, 1, 1
CAUTION: Gross error found at entry 737.
- Found: 0 Expected 1 Error: 4.49423e+307
2.37997e-07, 1.65574, 2.37997e-07, - 1, 1
CAUTION: Gross error found at entry 778.
Found: 0 Expected - 1 Error: 4.49423e+307
4.68466e-07, 1.65574, 4.68466e-07, 1, 1
- CAUTION: Gross error found at entry 819.
Found: 0 Expected 1 Error: - 4.49423e+307
9.3827e-07, 1.65574, 9.3827e-07, 1, 1
CAUTION: Gross - error found at entry 860.
Found: 0 Expected 1 Error: 4.49423e+307
- 1.10399e-06, 1.65574, 1.10399e-06, 1, 1
CAUTION: Gross error found - at entry 901.
Found: 0 Expected 1 Error: 4.49423e+307
3.29178e-06, - 1.65574, 3.29178e-06, 1, 1
CAUTION: Gross error found at entry 942.
- Found: 0 Expected 1 Error: 4.49423e+307
7.51721e-06, 1.65574, 7.51721e-06, - 1, 1
CAUTION: Gross error found at entry 983.
Found: 0 Expected - 1 Error: 4.49423e+307
1.51147e-05, 1.65574, 1.51147e-05, 1, 1
- CAUTION: Gross error found at entry 1024.
Found: 0 Expected 1 Error: - 4.49423e+307
2.9864e-05, 1.65574, 2.9864e-05, 1, 1
CAUTION: Gross - error found at entry 1065.
Found: 0 Expected 1 Error: 4.49423e+307
- 3.38703e-05, 1.65574, 3.38703e-05, 1, 1
CAUTION: Gross error found - at entry 1106.
Found: 0 Expected 1 Error: 4.49423e+307
9.06601e-05, - 1.65574, 9.06601e-05, 1, 1
CAUTION: Gross error found at entry 1147.
- Found: 0 Expected 1 Error: 4.49423e+307
0.000219495, 1.65574, 0.000219495, - 1, 1
CAUTION: Gross error found at entry 1188.
Found: 0 Expected - 1 Error: 4.49423e+307
0.000439522, 1.65574, 0.000439521, 1, 1
- CAUTION: Gross error found at entry 1229.
Found: 0 Expected 0.999999 - Error: 4.49423e+307
0.000633315, 1.65574, 0.000633315, 1, 0.999999
- CAUTION: Gross error found at entry 1270.
Found: 0 Expected 0.999998 - Error: 4.49423e+307
0.00111512, 1.65574, 0.00111512, 0.999999, 0.999998
- CAUTION: Gross error found at entry 1311.
Found: 0 Expected 0.999995 - Error: 4.49421e+307
0.00196247, 1.65574, 0.00196246, 0.999998, 0.999995
- CAUTION: Gross error found at entry 1352.
Found: 0 Expected 0.999958 - Error: 4.49404e+307
0.00555375, 1.65574, 0.00555365, 0.999985, 0.999958
- CAUTION: Gross error found at entry 1393.
*** FURTHER CONTENT HAS BEEN - TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For jacobi_cn with compiler GNU C++ version 5.1.0 and library Cephes - and test data Jacobi Elliptic: Random Small Values -
-

- CAUTION: - Gross error found at entry 40.
Found: 0 Expected 1 Error: 4.49423e+307
- 1.65048e-12, 1.65574, 1.65048e-12, 1, 1
CAUTION: Gross error found - at entry 81.
Found: 0 Expected 1 Error: 4.49423e+307
2.06542e-12, - 1.65574, 2.06542e-12, 1, 1
CAUTION: Gross error found at entry 122.
- Found: 0 Expected 1 Error: 4.49423e+307
6.93323e-12, 1.65574, 6.93323e-12, - 1, 1
CAUTION: Gross error found at entry 163.
Found: 0 Expected - 1 Error: 4.49423e+307
1.33514e-11, 1.65574, 1.33514e-11, 1, 1
- CAUTION: Gross error found at entry 204.
Found: 0 Expected 1 Error: - 4.49423e+307
1.63998e-11, 1.65574, 1.63998e-11, 1, 1
CAUTION: - Gross error found at entry 245.
Found: 0 Expected 1 Error: 4.49423e+307
- 5.73016e-11, 1.65574, 5.73016e-11, 1, 1
CAUTION: Gross error found - at entry 286.
Found: 0 Expected 1 Error: 4.49423e+307
1.11373e-10, - 1.65574, 1.11373e-10, 1, 1
CAUTION: Gross error found at entry 327.
- Found: 0 Expected 1 Error: 4.49423e+307
1.42147e-10, 1.65574, 1.42147e-10, - 1, 1
CAUTION: Gross error found at entry 368.
Found: 0 Expected - 1 Error: 4.49423e+307
3.80063e-10, 1.65574, 3.80063e-10, 1, 1
- CAUTION: Gross error found at entry 409.
Found: 0 Expected 1 Error: - 4.49423e+307
6.09163e-10, 1.65574, 6.09163e-10, 1, 1
CAUTION: - Gross error found at entry 450.
Found: 0 Expected 1 Error: 4.49423e+307
- 1.02216e-09, 1.65574, 1.02216e-09, 1, 1
CAUTION: Gross error found - at entry 491.
Found: 0 Expected 1 Error: 4.49423e+307
2.88192e-09, - 1.65574, 2.88192e-09, 1, 1
CAUTION: Gross error found at entry 532.
- Found: 0 Expected 1 Error: 4.49423e+307
4.76278e-09, 1.65574, 4.76278e-09, - 1, 1
CAUTION: Gross error found at entry 573.
Found: 0 Expected - 1 Error: 4.49423e+307
8.85413e-09, 1.65574, 8.85413e-09, 1, 1
- CAUTION: Gross error found at entry 614.
Found: 0 Expected 1 Error: - 4.49423e+307
2.30503e-08, 1.65574, 2.30503e-08, 1, 1
CAUTION: - Gross error found at entry 655.
Found: 0 Expected 1 Error: 4.49423e+307
- 5.93925e-08, 1.65574, 5.93925e-08, 1, 1
CAUTION: Gross error found - at entry 696.
Found: 0 Expected 1 Error: 4.49423e+307
1.16676e-07, - 1.65574, 1.16676e-07, 1, 1
CAUTION: Gross error found at entry 737.
- Found: 0 Expected 1 Error: 4.49423e+307
2.37997e-07, 1.65574, 2.37997e-07, - 1, 1
CAUTION: Gross error found at entry 778.
Found: 0 Expected - 1 Error: 4.49423e+307
4.68466e-07, 1.65574, 4.68466e-07, 1, 1
- CAUTION: Gross error found at entry 819.
Found: 0 Expected 1 Error: - 4.49423e+307
9.3827e-07, 1.65574, 9.3827e-07, 1, 1
CAUTION: Gross - error found at entry 860.
Found: 0 Expected 1 Error: 4.49423e+307
- 1.10399e-06, 1.65574, 1.10399e-06, 1, 1
CAUTION: Gross error found - at entry 901.
Found: 0 Expected 1 Error: 4.49423e+307
3.29178e-06, - 1.65574, 3.29178e-06, 1, 1
CAUTION: Gross error found at entry 942.
- Found: 0 Expected 1 Error: 4.49423e+307
7.51721e-06, 1.65574, 7.51721e-06, - 1, 1
CAUTION: Gross error found at entry 983.
Found: 0 Expected - 1 Error: 4.49423e+307
1.51147e-05, 1.65574, 1.51147e-05, 1, 1
- CAUTION: Gross error found at entry 1024.
Found: 0 Expected 1 Error: - 4.49423e+307
2.9864e-05, 1.65574, 2.9864e-05, 1, 1
CAUTION: Gross - error found at entry 1065.
Found: 0 Expected 1 Error: 4.49423e+307
- 3.38703e-05, 1.65574, 3.38703e-05, 1, 1
CAUTION: Gross error found - at entry 1106.
Found: 0 Expected 1 Error: 4.49423e+307
9.06601e-05, - 1.65574, 9.06601e-05, 1, 1
CAUTION: Gross error found at entry 1147.
- Found: 0 Expected 1 Error: 4.49423e+307
0.000219495, 1.65574, 0.000219495, - 1, 1
CAUTION: Gross error found at entry 1188.
Found: 0 Expected - 1 Error: 4.49423e+307
0.000439522, 1.65574, 0.000439521, 1, 1
- CAUTION: Gross error found at entry 1229.
Found: 0 Expected 1 Error: - 4.49423e+307
0.000633315, 1.65574, 0.000633315, 1, 0.999999
CAUTION: - Gross error found at entry 1270.
Found: 0 Expected 0.999999 Error: - 4.49423e+307
0.00111512, 1.65574, 0.00111512, 0.999999, 0.999998
- CAUTION: Gross error found at entry 1311.
Found: 0 Expected 0.999998 - Error: 4.49422e+307
0.00196247, 1.65574, 0.00196246, 0.999998, 0.999995
- CAUTION: Gross error found at entry 1352.
Found: 0 Expected 0.999985 - Error: 4.49416e+307
0.00555375, 1.65574, 0.00555365, 0.999985, 0.999958
- CAUTION: Gross error found at entry 1393.
*** FURTHER CONTENT HAS BEEN - TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For jacobi_sn with compiler GNU C++ version 5.1.0 and library Cephes - and test data Jacobi Elliptic: Random Small Values -
-

- CAUTION: - Gross error found at entry 40.
Found: 0 Expected 1.65048e-12 Error: - 7.41765e+295
1.65048e-12, 1.65574, 1.65048e-12, 1, 1
CAUTION: - Gross error found at entry 81.
Found: 0 Expected 2.06542e-12 Error: - 9.28248e+295
2.06542e-12, 1.65574, 2.06542e-12, 1, 1
CAUTION: - Gross error found at entry 122.
Found: 0 Expected 6.93323e-12 Error: - 3.11596e+296
6.93323e-12, 1.65574, 6.93323e-12, 1, 1
CAUTION: - Gross error found at entry 163.
Found: 0 Expected 1.33514e-11 Error: - 6.00045e+296
1.33514e-11, 1.65574, 1.33514e-11, 1, 1
CAUTION: - Gross error found at entry 204.
Found: 0 Expected 1.63998e-11 Error: - 7.37046e+296
1.63998e-11, 1.65574, 1.63998e-11, 1, 1
CAUTION: - Gross error found at entry 245.
Found: 0 Expected 5.73016e-11 Error: - 2.57527e+297
5.73016e-11, 1.65574, 5.73016e-11, 1, 1
CAUTION: - Gross error found at entry 286.
Found: 0 Expected 1.11373e-10 Error: - 5.00537e+297
1.11373e-10, 1.65574, 1.11373e-10, 1, 1
CAUTION: - Gross error found at entry 327.
Found: 0 Expected 1.42147e-10 Error: - 6.38842e+297
1.42147e-10, 1.65574, 1.42147e-10, 1, 1
CAUTION: - Gross error found at entry 368.
Found: 0 Expected 3.80063e-10 Error: - 1.70809e+298
3.80063e-10, 1.65574, 3.80063e-10, 1, 1
CAUTION: - Gross error found at entry 409.
Found: 0 Expected 6.09163e-10 Error: - 2.73772e+298
6.09163e-10, 1.65574, 6.09163e-10, 1, 1
CAUTION: - Gross error found at entry 450.
Found: 0 Expected 1.02216e-09 Error: - 4.59384e+298
1.02216e-09, 1.65574, 1.02216e-09, 1, 1
CAUTION: - Gross error found at entry 491.
Found: 0 Expected 2.88192e-09 Error: - 1.2952e+299
2.88192e-09, 1.65574, 2.88192e-09, 1, 1
CAUTION: - Gross error found at entry 532.
Found: 0 Expected 4.76278e-09 Error: - 2.1405e+299
4.76278e-09, 1.65574, 4.76278e-09, 1, 1
CAUTION: - Gross error found at entry 573.
Found: 0 Expected 8.85413e-09 Error: - 3.97925e+299
8.85413e-09, 1.65574, 8.85413e-09, 1, 1
CAUTION: - Gross error found at entry 614.
Found: 0 Expected 2.30503e-08 Error: - 1.03594e+300
2.30503e-08, 1.65574, 2.30503e-08, 1, 1
CAUTION: - Gross error found at entry 655.
Found: 0 Expected 5.93925e-08 Error: - 2.66924e+300
5.93925e-08, 1.65574, 5.93925e-08, 1, 1
CAUTION: - Gross error found at entry 696.
Found: 0 Expected 1.16676e-07 Error: - 5.24371e+300
1.16676e-07, 1.65574, 1.16676e-07, 1, 1
CAUTION: - Gross error found at entry 737.
Found: 0 Expected 2.37997e-07 Error: - 1.06961e+301
2.37997e-07, 1.65574, 2.37997e-07, 1, 1
CAUTION: - Gross error found at entry 778.
Found: 0 Expected 4.68466e-07 Error: - 2.1054e+301
4.68466e-07, 1.65574, 4.68466e-07, 1, 1
CAUTION: - Gross error found at entry 819.
Found: 0 Expected 9.3827e-07 Error: - 4.2168e+301
9.3827e-07, 1.65574, 9.3827e-07, 1, 1
CAUTION: Gross - error found at entry 860.
Found: 0 Expected 1.10399e-06 Error: 4.96157e+301
- 1.10399e-06, 1.65574, 1.10399e-06, 1, 1
CAUTION: Gross error found - at entry 901.
Found: 0 Expected 3.29178e-06 Error: 1.4794e+302
- 3.29178e-06, 1.65574, 3.29178e-06, 1, 1
CAUTION: Gross error found - at entry 942.
Found: 0 Expected 7.51721e-06 Error: 3.37841e+302
- 7.51721e-06, 1.65574, 7.51721e-06, 1, 1
CAUTION: Gross error found - at entry 983.
Found: 0 Expected 1.51147e-05 Error: 6.79288e+302
- 1.51147e-05, 1.65574, 1.51147e-05, 1, 1
CAUTION: Gross error found - at entry 1024.
Found: 0 Expected 2.9864e-05 Error: 1.34216e+303
- 2.9864e-05, 1.65574, 2.9864e-05, 1, 1
CAUTION: Gross error found at - entry 1065.
Found: 0 Expected 3.38703e-05 Error: 1.52221e+303
- 3.38703e-05, 1.65574, 3.38703e-05, 1, 1
CAUTION: Gross error found - at entry 1106.
Found: 0 Expected 9.06601e-05 Error: 4.07448e+303
- 9.06601e-05, 1.65574, 9.06601e-05, 1, 1
CAUTION: Gross error found - at entry 1147.
Found: 0 Expected 0.000219495 Error: 9.86463e+303
- 0.000219495, 1.65574, 0.000219495, 1, 1
CAUTION: Gross error found - at entry 1188.
Found: 0 Expected 0.000439521 Error: 1.97531e+304
- 0.000439522, 1.65574, 0.000439521, 1, 1
CAUTION: Gross error found - at entry 1229.
Found: 0 Expected 0.000633315 Error: 2.84627e+304
- 0.000633315, 1.65574, 0.000633315, 1, 0.999999
CAUTION: Gross error - found at entry 1270.
Found: 0 Expected 0.00111512 Error: 5.01162e+304
- 0.00111512, 1.65574, 0.00111512, 0.999999, 0.999998
CAUTION: Gross - error found at entry 1311.
*** FURTHER CONTENT HAS BEEN TRUNCATED FOR - BREVITY ***
-

-
- - Error - Output For jacobi_dn with compiler GNU C++ version 5.1.0 and library Cephes - and test data Jacobi Elliptic: Mathworld Data -
-

- CAUTION: - Gross error found at entry 25.
Found: 0 Expected 1 Error: 4.49423e+307
- 2.98023e-08, 1.5, 2.98023e-08, 1, 1
CAUTION: Gross error found at entry - 26.
Found: 0 Expected 1 Error: 4.49423e+307
-2.98023e-08, 1.5, - -2.98023e-08, 1, 1
CAUTION: Gross error found at entry 27.
Found: - 0 Expected 0.931888 Error: 4.18812e+307
0.25, 1.5, 0.24183, 0.970319, - 0.931888
CAUTION: Gross error found at entry 28.
Found: 0 Expected - 0.931888 Error: 4.18812e+307
-0.25, 1.5, -0.24183, 0.970319, 0.931888
- CAUTION: Gross error found at entry 29.
Found: 0 Expected -0.0486921 - Error: 2.18834e+306
1.25, 1.5, 0.665876, 0.746063, -0.0486921
- CAUTION: Gross error found at entry 30.
Found: 0 Expected -0.0486921 - Error: 2.18834e+306
-1.25, 1.5, -0.665876, 0.746063, -0.0486921
- CAUTION: Gross error found at entry 31.
Found: 0 Expected 0.372585 - Error: 1.67448e+307
25, 1.5, 0.618665, 0.785655, 0.372585
CAUTION: - Gross error found at entry 32.
Found: 0 Expected 0.372585 Error: 1.67448e+307
- -25, 1.5, -0.618665, 0.785655, 0.372585
-

-
- - Error - Output For jacobi_cn with compiler GNU C++ version 5.1.0 and library Cephes - and test data Jacobi Elliptic: Mathworld Data -
-

- CAUTION: - Gross error found at entry 25.
Found: 0 Expected 1 Error: 4.49423e+307
- 2.98023e-08, 1.5, 2.98023e-08, 1, 1
CAUTION: Gross error found at entry - 26.
Found: 0 Expected 1 Error: 4.49423e+307
-2.98023e-08, 1.5, - -2.98023e-08, 1, 1
CAUTION: Gross error found at entry 27.
Found: - 0 Expected 0.970319 Error: 4.36084e+307
0.25, 1.5, 0.24183, 0.970319, - 0.931888
CAUTION: Gross error found at entry 28.
Found: 0 Expected - 0.970319 Error: 4.36084e+307
-0.25, 1.5, -0.24183, 0.970319, 0.931888
- CAUTION: Gross error found at entry 29.
Found: 0 Expected 0.746063 - Error: 3.35298e+307
1.25, 1.5, 0.665876, 0.746063, -0.0486921
- CAUTION: Gross error found at entry 30.
Found: 0 Expected 0.746063 - Error: 3.35298e+307
-1.25, 1.5, -0.665876, 0.746063, -0.0486921
- CAUTION: Gross error found at entry 31.
Found: 0 Expected 0.785655 - Error: 3.53091e+307
25, 1.5, 0.618665, 0.785655, 0.372585
CAUTION: - Gross error found at entry 32.
Found: 0 Expected 0.785655 Error: 3.53091e+307
- -25, 1.5, -0.618665, 0.785655, 0.372585
-

-
- - Error - Output For jacobi_sn with compiler GNU C++ version 5.1.0 and library Cephes - and test data Jacobi Elliptic: Mathworld Data -
-

- CAUTION: - Gross error found at entry 25.
Found: 0 Expected 2.98023e-08 Error: - 1.33939e+300
2.98023e-08, 1.5, 2.98023e-08, 1, 1
CAUTION: Gross - error found at entry 26.
Found: 0 Expected -2.98023e-08 Error: 1.33939e+300
- -2.98023e-08, 1.5, -2.98023e-08, 1, 1
CAUTION: Gross error found at - entry 27.
Found: 0 Expected 0.24183 Error: 1.08684e+307
0.25, - 1.5, 0.24183, 0.970319, 0.931888
CAUTION: Gross error found at entry - 28.
Found: 0 Expected -0.24183 Error: 1.08684e+307
-0.25, 1.5, - -0.24183, 0.970319, 0.931888
CAUTION: Gross error found at entry 29.
- Found: 0 Expected 0.665876 Error: 2.9926e+307
1.25, 1.5, 0.665876, - 0.746063, -0.0486921
CAUTION: Gross error found at entry 30.
- Found: 0 Expected -0.665876 Error: 2.9926e+307
-1.25, 1.5, -0.665876, - 0.746063, -0.0486921
CAUTION: Gross error found at entry 31.
- Found: 0 Expected 0.618665 Error: 2.78043e+307
25, 1.5, 0.618665, 0.785655, - 0.372585
CAUTION: Gross error found at entry 32.
Found: 0 Expected - -0.618665 Error: 2.78043e+307
-25, 1.5, -0.618665, 0.785655, 0.372585
-

-
- - Error - Output For expint (Ei) with compiler GNU C++ version 5.1.0 and library Cephes - and test data Exponential Integral Ei -
-

- CAUTION: - Gross error found at entry 0.
Found: 0 Expected -5.18991e-24 Error: - 2.33247e+284
-49.69, -5.18991e-24
CAUTION: Gross error found - at entry 1.
Found: 0 Expected -6.3624e-24 Error: 2.85941e+284
- -49.4902, -6.3624e-24
CAUTION: Gross error found at entry 2.
- Found: 0 Expected -6.46983e-24 Error: 2.90769e+284
-49.4738, -6.46983e-24
- CAUTION: Gross error found at entry 3.
Found: 0 Expected -9.37966e-24 - Error: 4.21544e+284
-49.1097, -9.37966e-24
CAUTION: Gross error - found at entry 4.
Found: 0 Expected -1.438e-23 Error: 6.46272e+284
- -48.6908, -1.438e-23
CAUTION: Gross error found at entry 5.
Found: - 0 Expected -1.728e-23 Error: 7.76603e+284
-48.5107, -1.728e-23
- CAUTION: Gross error found at entry 6.
Found: 0 Expected -2.77944e-23 - Error: 1.24914e+285
-48.0449, -2.77944e-23
CAUTION: Gross error - found at entry 7.
Found: 0 Expected -1.34745e-22 Error: 6.05577e+285
- -46.4984, -1.34745e-22
CAUTION: Gross error found at entry 8.
- Found: 0 Expected -1.78119e-22 Error: 8.0051e+285
-46.2251, -1.78119e-22
- CAUTION: Gross error found at entry 9.
Found: 0 Expected -1.80714e-22 - Error: 8.12173e+285
-46.2109, -1.80714e-22
CAUTION: Gross error - found at entry 10.
Found: 0 Expected -2.08322e-22 Error: 9.3625e+285
- -46.0717, -2.08322e-22
CAUTION: Gross error found at entry 11.
- Found: 0 Expected -2.26116e-22 Error: 1.01622e+286
-45.9915, -2.26116e-22
- CAUTION: Gross error found at entry 12.
Found: 0 Expected -3.55604e-22 - Error: 1.59817e+286
-45.5482, -3.55604e-22
CAUTION: Gross error - found at entry 13.
Found: 0 Expected -5.95535e-22 Error: 2.67647e+286
- -45.0434, -5.95535e-22
CAUTION: Gross error found at entry 14.
- Found: 0 Expected -6.74806e-22 Error: 3.03274e+286
-44.9211, -6.74806e-22
- CAUTION: Gross error found at entry 15.
Found: 0 Expected -1.18981e-21 - Error: 5.34729e+286
-44.3662, -1.18981e-21
CAUTION: Gross error - found at entry 16.
Found: 0 Expected -1.61794e-21 Error: 7.27141e+286
- -44.0655, -1.61794e-21
CAUTION: Gross error found at entry 17.
- Found: 0 Expected -7.50852e-21 Error: 3.3745e+287
-42.5645, -7.50852e-21
- CAUTION: Gross error found at entry 18.
Found: 0 Expected -1.90224e-20 - Error: 8.5491e+287
-41.656, -1.90224e-20
CAUTION: Gross error - found at entry 19.
Found: 0 Expected -1.92646e-20 Error: 8.65796e+287
- -41.6437, -1.92646e-20
CAUTION: Gross error found at entry 20.
- Found: 0 Expected -2.30421e-20 Error: 1.03557e+288
-41.4687, -2.30421e-20
- CAUTION: Gross error found at entry 21.
Found: 0 Expected -2.47039e-20 - Error: 1.11025e+288
-41.4007, -2.47039e-20
CAUTION: Gross error - found at entry 22.
Found: 0 Expected -4.66549e-20 Error: 2.09678e+288
- -40.7796, -4.66549e-20
CAUTION: Gross error found at entry 23.
- Found: 0 Expected -4.99984e-20 Error: 2.24705e+288
-40.7121, -4.99984e-20
- CAUTION: Gross error found at entry 24.
Found: 0 Expected -1.71121e-19 - Error: 7.69055e+288
-39.5109, -1.71121e-19
CAUTION: Gross error - found at entry 25.
Found: 0 Expected -2.09062e-19 Error: 9.39575e+288
- -39.3155, -2.09062e-19
CAUTION: Gross error found at entry 26.
- Found: 0 Expected -2.18918e-19 Error: 9.83869e+288
-39.2706, -2.18918e-19
- CAUTION: Gross error found at entry 27.
Found: 0 Expected -6.11732e-19 - Error: 2.74927e+289
-38.2682, -6.11732e-19
CAUTION: Gross error - found at entry 28.
Found: 0 Expected -8.78596e-19 Error: 3.94861e+289
- -37.9152, -8.78596e-19
CAUTION: Gross error found at entry 29.
- Found: 0 Expected -1.17853e-18 Error: 5.29659e+289
-37.6289, -1.17853e-18
- CAUTION: Gross error found at entry 30.
Found: 0 Expected -2.46383e-18 - Error: 1.1073e+290
-36.9103, -2.46383e-18
CAUTION: Gross error - found at entry 31.
Found: 0 Expected -2.62153e-18 Error: 1.17818e+290
- -36.8498, -2.62153e-18
CAUTION: Gross error found at entry 32.
- Found: 0 Expected -4.0136e-18 Error: 1.80381e+290
-36.4349, -4.0136e-18
- CAUTION: Gross error found at entry 33.
Found: 0 Expected -4.95407e-18 - Error: 2.22647e+290
-36.2299, -4.95407e-18
CAUTION: Gross error - found at entry 34.
Found: 0 Expected -5.37012e-18 Error: 2.41346e+290
- -36.1514, -5.37012e-18
CAUTION: Gross error found at entry 35.
- Found: 0 Expected -6.07395e-18 Error: 2.72978e+290
-36.0314, -6.07395e-18
- CAUTION: Gross error found at entry 36.
*** FURTHER CONTENT HAS BEEN - TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For polygamma with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Mathematica Data - Large orders and other bug cases -
-

- underflow
- 168, 150, -6.52661e-66
underflow
169, 202, 9.2734e-88
domain - error
20, -9.5, -0.00103076
domain error
21, -9.5, 4.28582e+26
- domain error
22, -9.5, -0.00419144
domain error
23, -9.5, - 8.6745e+29
domain error
24, -9.5, -0.0204825
domain error
- 25, -9.5, 2.08188e+33
domain error
26, -9.5, -0.118403
- domain error
27, -9.5, 5.84592e+36
domain error
28, -9.5, - -0.798969
domain error
29, -9.5, 1.89875e+40
domain error
- 30, -9.5, -6.22245
underflow
10, 1.32923e+36, -0
underflow
- 15, 1.32923e+36, 0
-

-
- - Error - Output For polygamma with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Mathematica Data - large negative arguments -
-

- domain - error
124, -1.5, 7.63705e+240
domain error
124, -2.5, 7.63705e+240
- domain error
124, -3.5, 7.63705e+240
domain error
124, - -4.5, 7.63705e+240
domain error
124, -5.5, 7.63705e+240
- domain error
124, -6.5, 7.63705e+240
domain error
124, - -7.5, 7.63705e+240
domain error
124, -8.5, 7.63705e+240
- domain error
124, -9.5, 7.63705e+240
domain error
124, - -10.5, 7.63705e+240
domain error
124, -11.5, 7.63705e+240
- domain error
124, -12.5, 7.63705e+240
domain error
124, - -13.5, 7.63705e+240
domain error
124, -14.5, 7.63705e+240
- domain error
124, -15.5, 7.63705e+240
domain error
124, - -16.5, 7.63705e+240
domain error
124, -17.5, 7.63705e+240
- domain error
124, -18.5, 7.63705e+240
domain error
124, - -19.5, 7.63705e+240
domain error
124, -20.5, 7.63705e+240
- domain error
124, -1.5, -7.63705e+240
domain error
124, - -2.5, -7.63705e+240
domain error
124, -3.5, -7.63705e+240
- domain error
124, -4.5, -7.63705e+240
domain error
124, - -5.5, -7.63705e+240
domain error
124, -6.5, -7.63705e+240
- domain error
124, -7.5, -7.63705e+240
domain error
124, - -8.5, -7.63705e+240
domain error
124, -9.5, -7.63705e+240
- domain error
124, -10.5, -7.63705e+240
domain error
124, - -11.5, -7.63705e+240
domain error
124, -12.5, -7.63705e+240
- domain error
124, -13.5, -7.63705e+240
domain error
124, - -14.5, -7.63705e+240
domain error
124, -15.5, -7.63705e+240
- domain error
124, -16.5, -7.63705e+240
domain error
124, - -17.5, -7.63705e+240
domain error
124, -18.5, -7.63705e+240
- domain error
124, -19.5, -7.63705e+240
domain error
124, - -20.5, -7.63705e+240
domain error
2, -0.5, -0.828797
domain - error
3, -0.5, 193.409
domain error
4, -0.5, -3.47425
- domain error
5, -0.5, 15371.1
domain error
6, -0.5, -43.4579
- domain error
7, -0.5, 2.58068e+06
domain error
8, -0.5, - -1059.96
domain error
9, -0.5, 7.43185e+08
domain error
- 10, -0.5, -42108.9
domain error
11, -0.5, 3.26999e+11
domain - error
12, -0.5, -2.46448e+06
domain error
13, -0.5, 2.04047e+14
- domain error
14, -0.5, -1.9918e+08
domain error
15, -0.5, - 1.71399e+17
domain error
16, -0.5, -2.12394e+10
domain - error
17, -0.5, 1.86483e+20
domain error
18, -0.5, -2.88824e+12
- domain error
19, -0.5, 2.55108e+23
domain error
20, -0.5, - -4.87773e+14
domain error
21, -0.5, 4.28582e+26
domain - error
2, -0.5, -0.828843
domain error
3, -0.5, 193.409
- domain error
4, -0.5, -3.47791
domain error
5, -0.5, 15371.1
- domain error
6, -0.5, -44.0732
domain error
7, -0.5, 2.58068e+06
- domain error
8, -0.5, -1237.15
domain error
9, -0.5, 7.43185e+08
- domain error
10, -0.5, -120071
domain error
11, -0.5, 3.26999e+11
- domain error
12, -0.5, -5.11131e+07
domain error
13, -0.5, - 2.04047e+14
domain error
14, -0.5, -4.1064e+10
domain error
- 15, -0.5, 1.71399e+17
domain error
16, -0.5, -4.44822e+13
- domain error
17, -0.5, 1.86483e+20
domain error
18, -0.5, - -6.08254e+16
domain error
19, -0.5, 2.55108e+23
domain - error
20, -0.5, -1.02182e+20
domain error
21, -0.5, 4.28582e+26
- domain error
2, -0.5, -0.828751
domain error
3, -0.5, 193.409
- domain error
4, -0.5, -3.47059
domain error
5, -0.5, 15371.1
- domain error
6, -0.5, -42.8426
domain error
7, -0.5, 2.58068e+06
- domain error
8, -0.5, -882.773
domain error
9, -0.5, 7.43185e+08
- domain error
10, -0.5, 35853.7
domain error
11, -0.5, 3.26999e+11
- domain error
12, -0.5, 4.61841e+07
domain error
13, -0.5, - 2.04047e+14
domain error
14, -0.5, 4.06656e+10
domain error
- 15, -0.5, 1.71399e+17
domain error
16, -0.5, 4.44397e+13
- domain error
17, -0.5, 1.86483e+20
domain error
18, -0.5, - 6.08197e+16
domain error
19, -0.5, 2.55108e+23
domain error
- 20, -0.5, 1.02181e+20
domain error
21, -0.5, 4.28582e+26
-

-
- - Error - Output For polygamma with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Mathematica Data - negative arguments -
-

- domain - error
2, -12.75, -124.031
domain error
2, -12.25, 124.019
- domain error
2, -11.75, -124.032
domain error
2, -11.25, - 124.018
domain error
2, -10.75, -124.033
domain error
- 2, -10.25, 124.016
domain error
2, -9.75, -124.035
domain - error
2, -9.25, 124.015
domain error
2, -8.75, -124.037
- domain error
2, -8.25, 124.012
domain error
2, -7.75, -124.04
- domain error
2, -7.25, 124.009
domain error
2, -6.75, -124.044
- domain error
2, -6.25, 124.003
domain error
2, -5.75, -124.051
- domain error
2, -5.25, 123.995
domain error
2, -4.75, -124.061
- domain error
2, -4.25, 123.981
domain error
2, -3.75, -124.08
- domain error
2, -3.25, 123.955
domain error
2, -2.75, -124.118
- domain error
2, -2.25, 123.897
domain error
2, -1.75, -124.214
- domain error
2, -1.25, 123.721
domain error
2, -0.75, -124.587
- domain error
2, -0.25, 122.697
domain error
3, -12.75, - 1558.54
domain error
3, -12.25, 1558.54
domain error
- 3, -11.75, 1558.54
domain error
3, -11.25, 1558.54
domain - error
3, -10.75, 1558.54
domain error
3, -10.25, 1558.54
- domain error
3, -9.75, 1558.54
domain error
3, -9.25, 1558.54
- domain error
3, -8.75, 1558.54
domain error
3, -8.25, 1558.54
- domain error
3, -7.75, 1558.54
domain error
3, -7.25, 1558.54
- domain error
3, -6.75, 1558.54
domain error
3, -6.25, 1558.54
- domain error
3, -5.75, 1558.54
domain error
3, -5.25, 1558.54
- domain error
3, -4.75, 1558.53
domain error
3, -4.25, 1558.53
- domain error
3, -3.75, 1558.52
domain error
3, -3.25, 1558.51
- domain error
3, -2.75, 1558.49
domain error
3, -2.25, 1558.46
- domain error
3, -1.75, 1558.38
domain error
3, -1.25, 1558.22
- domain error
3, -0.75, 1557.75
domain error
3, -0.25, 1555.76
- domain error
4, -12.75, -24481.6
domain error
4, -12.25, - 24481.6
domain error
4, -11.75, -24481.6
domain error
- 4, -11.25, 24481.6
domain error
4, -10.75, -24481.6
domain - error
4, -10.25, 24481.6
domain error
4, -9.75, -24481.6
- domain error
4, -9.25, 24481.6
domain error
4, -8.75, -24481.6
- domain error
4, -8.25, 24481.6
domain error
4, -7.75, -24481.6
- domain error
4, -7.25, 24481.6
domain error
4, -6.75, -24481.6
- domain error
4, -6.25, 24481.6
domain error
4, -5.75, -24481.6
- domain error
4, -5.25, 24481.6
domain error
4, -4.75, -24481.6
- domain error
4, -4.25, 24481.6
domain error
4, -3.75, -24481.6
- domain error
4, -3.25, 24481.5
domain error
4, -2.75, -24481.6
- domain error
4, -2.25, 24481.5
domain error
4, -1.75, -24481.8
- domain error
4, -1.25, 24481.1
domain error
4, -0.75, -24483.2
- domain error
4, -0.25, 24473.2
domain error
5, -12.75, - 492231
domain error
5, -12.25, 492231
domain error
- 5, -11.75, 492231
domain error
5, -11.25, 492231
domain - error
5, -10.75, 492231
domain error
5, -10.25, 492231
- domain error
5, -9.75, 492231
domain error
5, -9.25, 492231
- domain error
5, -8.75, 492231
domain error
5, -8.25, 492231
- domain error
5, -7.75, 492231
domain error
5, -7.25, 492231
- domain error
5, -6.75, 492231
domain error
5, -6.25, 492231
- domain error
5, -5.75, 492231
domain error
5, -5.25, 492231
- domain error
5, -4.75, 492231
domain error
5, -4.25, 492231
- domain error
5, -3.75, 492231
domain error
5, -3.25, 492231
- domain error
5, -2.75, 492231
domain error
5, -2.25, 492231
- domain error
5, -1.75, 492231
domain error
5, -1.25, 492230
- domain error
5, -0.75, 492227
domain error
5, -0.25, 492199
- domain error
6, -12.75, -1.17912e+07
domain error
6, -12.25, - 1.17912e+07
domain error
6, -11.75, -1.17912e+07
domain - error
6, -11.25, 1.17912e+07
domain error
6, -10.75, -1.17912e+07
- domain error
6, -10.25, 1.17912e+07
domain error
6, -9.75, - -1.17912e+07
domain error
6, -9.25, 1.17912e+07
domain - error
6, -8.75, -1.17912e+07
domain error
6, -8.25, 1.17912e+07
- domain error
6, -7.75, -1.17912e+07
domain error
6, -7.25, - 1.17912e+07
domain error
6, -6.75, -1.17912e+07
domain - error
6, -6.25, 1.17912e+07
domain error
6, -5.75, -1.17912e+07
- domain error
6, -5.25, 1.17912e+07
domain error
6, -4.75, - -1.17912e+07
domain error
6, -4.25, 1.17912e+07
domain - error
6, -3.75, -1.17912e+07
domain error
6, -3.25, 1.17912e+07
- domain error
6, -2.75, -1.17912e+07
domain error
6, -2.25, - 1.17912e+07
domain error
6, -1.75, -1.17912e+07
domain - error
6, -1.25, 1.17912e+07
*** FURTHER CONTENT HAS BEEN TRUNCATED - FOR BREVITY ***
-

-
- - Error - Output For polygamma with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Mathematica Data - large arguments -
-

- underflow
- 30, 8.58993e+09, -8.44974e-268
underflow
30, 1.71799e+10, -7.86943e-277
- underflow
30, 3.43597e+10, -7.32898e-286
underflow
30, - 6.87195e+10, -6.82564e-295
underflow
30, 1.37439e+11, -6.35687e-304
- underflow
30, 2.74878e+11, -5.9203e-313
underflow
30, 5.49756e+11, - -5.53354e-322
underflow
30, 1.09951e+12, -0
underflow
- 30, 2.19902e+12, -0
underflow
30, 4.39805e+12, -0
underflow
- 30, 8.79609e+12, -0
underflow
30, 1.75922e+13, -0
underflow
- 30, 3.51844e+13, -0
underflow
30, 7.03687e+13, -0
underflow
- 30, 1.40737e+14, -0
underflow
30, 2.81475e+14, -0
underflow
- 30, 5.6295e+14, -0
underflow
30, 1.1259e+15, -0
underflow
- 30, 2.2518e+15, -0
underflow
30, 4.5036e+15, -0
underflow
- 30, 9.0072e+15, -0
underflow
30, 1.80144e+16, -0
underflow
- 30, 3.60288e+16, -0
underflow
30, 7.20576e+16, -0
underflow
- 30, 1.44115e+17, -0
underflow
30, 2.8823e+17, -0
underflow
- 30, 5.76461e+17, -0
underflow
30, 1.15292e+18, -0
underflow
- 30, 2.30584e+18, -0
underflow
30, 4.61169e+18, -0
underflow
- 30, 9.22337e+18, -0
underflow
30, 1.84467e+19, -0
underflow
- 30, 3.68935e+19, -0
underflow
30, 7.3787e+19, -0
underflow
- 30, 1.47574e+20, -0
underflow
30, 2.95148e+20, -0
underflow
- 30, 5.90296e+20, -0
underflow
30, 1.18059e+21, -0
underflow
- 30, 2.36118e+21, -0
underflow
30, 4.72237e+21, -0
underflow
- 30, 9.44473e+21, -0
underflow
30, 1.88895e+22, -0
underflow
- 30, 3.77789e+22, -0
underflow
30, 7.55579e+22, -0
underflow
- 30, 1.51116e+23, -0
underflow
30, 3.02231e+23, -0
underflow
- 30, 6.04463e+23, -0
underflow
30, 1.20893e+24, -0
underflow
- 30, 2.41785e+24, -0
underflow
30, 4.8357e+24, -0
underflow
- 30, 9.67141e+24, -0
underflow
30, 1.93428e+25, -0
underflow
- 30, 3.86856e+25, -0
underflow
30, 7.73713e+25, -0
underflow
- 30, 1.54743e+26, -0
underflow
30, 3.09485e+26, -0
underflow
- 30, 6.1897e+26, -0
underflow
30, 1.23794e+27, -0
underflow
- 30, 2.47588e+27, -0
underflow
30, 4.95176e+27, -0
underflow
- 30, 9.90352e+27, -0
underflow
30, 1.9807e+28, -0
underflow
- 30, 3.96141e+28, -0
underflow
30, 7.92282e+28, -0
underflow
- 30, 1.58456e+29, -0
underflow
30, 3.16913e+29, -0
underflow
- 30, 6.33825e+29, -0
underflow
30, 1.26765e+30, -0
-

-
- - Error - Output For polygamma with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Mathematica Data - Large orders and other bug cases -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 0
- Found: -nan Expected 2.07309e+257 Error: 1.79769e+308
171, 2, 2.07309e+257
- CAUTION: Gross error found at entry 0.
Found: -nan Expected 2.07309e+257 - Error: 1.79769e+308
171, 2, 2.07309e+257
CAUTION: Found non-finite - result, when a finite value was expected at entry 1
Found: -nan Expected - 7.42912e+188 Error: 1.79769e+308
171, 5, 7.42912e+188
CAUTION: - Gross error found at entry 1.
Found: -nan Expected 7.42912e+188 Error: - 1.79769e+308
171, 5, 7.42912e+188
CAUTION: Found non-finite result, - when a finite value was expected at entry 2
Found: -nan Expected -4.81295e+247 - Error: 1.79769e+308
166, 2, -4.81295e+247
CAUTION: Gross error - found at entry 2.
Found: -nan Expected -4.81295e+247 Error: 1.79769e+308
- 166, 2, -4.81295e+247
CAUTION: Found non-finite result, when a finite - value was expected at entry 3
Found: -nan Expected -1.88439e+218 Error: - 1.79769e+308
166, 3, -1.88439e+218
CAUTION: Gross error found - at entry 3.
Found: -nan Expected -1.88439e+218 Error: 1.79769e+308
- 166, 3, -1.88439e+218
CAUTION: Found non-finite result, when a finite - value was expected at entry 4
Found: -nan Expected 7.53144e+74 Error: - 1.79769e+308
171, 23, 7.53144e+74
CAUTION: Gross error found - at entry 4.
Found: -nan Expected 7.53144e+74 Error: 1.79769e+308
- 171, 23, 7.53144e+74
CAUTION: Found non-finite result, when a finite - value was expected at entry 5
Found: -nan Expected -6.52661e-66 Error: - 1.79769e+308
168, 150, -6.52661e-66
CAUTION: Gross error found - at entry 5.
Found: -nan Expected -6.52661e-66 Error: 1.79769e+308
- 168, 150, -6.52661e-66
CAUTION: Found non-finite result, when a finite - value was expected at entry 6
Found: -nan Expected 9.2734e-88 Error: - 1.79769e+308
169, 202, 9.2734e-88
CAUTION: Gross error found - at entry 6.
Found: -nan Expected 9.2734e-88 Error: 1.79769e+308
- 169, 202, 9.2734e-88
CAUTION: Found non-finite result, when a finite - value was expected at entry 7
Found: -nan Expected -0.00103076 Error: - 1.79769e+308
20, -9.5, -0.00103076
CAUTION: Gross error found - at entry 7.
Found: -nan Expected -0.00103076 Error: 1.79769e+308
- 20, -9.5, -0.00103076
CAUTION: Found non-finite result, when a finite - value was expected at entry 8
Found: -nan Expected 4.28582e+26 Error: - 1.79769e+308
21, -9.5, 4.28582e+26
CAUTION: Gross error found - at entry 8.
Found: -nan Expected 4.28582e+26 Error: 1.79769e+308
- 21, -9.5, 4.28582e+26
CAUTION: Found non-finite result, when a finite - value was expected at entry 9
Found: -nan Expected -0.00419144 Error: - 1.79769e+308
22, -9.5, -0.00419144
CAUTION: Gross error found - at entry 9.
Found: -nan Expected -0.00419144 Error: 1.79769e+308
- 22, -9.5, -0.00419144
CAUTION: Found non-finite result, when a finite - value was expected at entry 10
Found: -nan Expected 8.6745e+29 Error: - 1.79769e+308
23, -9.5, 8.6745e+29
CAUTION: Gross error found - at entry 10.
Found: -nan Expected 8.6745e+29 Error: 1.79769e+308
- 23, -9.5, 8.6745e+29
CAUTION: Found non-finite result, when a finite - value was expected at entry 11
Found: -nan Expected -0.0204825 Error: - 1.79769e+308
24, -9.5, -0.0204825
CAUTION: Gross error found - at entry 11.
Found: -nan Expected -0.0204825 Error: 1.79769e+308
- 24, -9.5, -0.0204825
CAUTION: Found non-finite result, when a finite - value was expected at entry 12
Found: -nan Expected 2.08188e+33 Error: - 1.79769e+308
25, -9.5, 2.08188e+33
CAUTION: Gross error found - at entry 12.
Found: -nan Expected 2.08188e+33 Error: 1.79769e+308
- 25, -9.5, 2.08188e+33
CAUTION: Found non-finite result, when a finite - value was expected at entry 13
Found: -nan Expected -0.118403 Error: - 1.79769e+308
26, -9.5, -0.118403
CAUTION: Gross error found at - entry 13.
Found: -nan Expected -0.118403 Error: 1.79769e+308
- 26, -9.5, -0.118403
CAUTION: Found non-finite result, when a finite - value was expected at entry 14
Found: -nan Expected 5.84592e+36 Error: - 1.79769e+308
27, -9.5, 5.84592e+36
CAUTION: Gross error found - at entry 14.
Found: -nan Expected 5.84592e+36 Error: 1.79769e+308
- 27, -9.5, 5.84592e+36
CAUTION: Found non-finite result, when a finite - value was expected at entry 15
Found: -nan Expected -0.798969 Error: - 1.79769e+308
*** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For polygamma with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Mathematica Data - large negative arguments -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 0
- Found: -nan Expected 7.63705e+240 Error: 1.79769e+308
124, -1.5, 7.63705e+240
- CAUTION: Gross error found at entry 0.
Found: -nan Expected 7.63705e+240 - Error: 1.79769e+308
124, -1.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 1
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -2.5, 7.63705e+240
CAUTION: - Gross error found at entry 1.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -2.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 2
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -3.5, 7.63705e+240
CAUTION: - Gross error found at entry 2.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -3.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 3
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -4.5, 7.63705e+240
CAUTION: - Gross error found at entry 3.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -4.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 4
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -5.5, 7.63705e+240
CAUTION: - Gross error found at entry 4.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -5.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 5
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -6.5, 7.63705e+240
CAUTION: - Gross error found at entry 5.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -6.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 6
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -7.5, 7.63705e+240
CAUTION: - Gross error found at entry 6.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -7.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 7
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -8.5, 7.63705e+240
CAUTION: - Gross error found at entry 7.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -8.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 8
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -9.5, 7.63705e+240
CAUTION: - Gross error found at entry 8.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -9.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 9
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -10.5, 7.63705e+240
CAUTION: - Gross error found at entry 9.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -10.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 10
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -11.5, 7.63705e+240
CAUTION: - Gross error found at entry 10.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -11.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 11
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -12.5, 7.63705e+240
CAUTION: - Gross error found at entry 11.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -12.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 12
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -13.5, 7.63705e+240
CAUTION: - Gross error found at entry 12.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -13.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 13
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -14.5, 7.63705e+240
CAUTION: - Gross error found at entry 13.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -14.5, 7.63705e+240
CAUTION: Found non-finite - result, when a finite value was expected at entry 14
Found: -nan Expected - 7.63705e+240 Error: 1.79769e+308
124, -15.5, 7.63705e+240
CAUTION: - Gross error found at entry 14.
Found: -nan Expected 7.63705e+240 Error: - 1.79769e+308
124, -15.5, 7.63705e+240
*** FURTHER CONTENT HAS - BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For polygamma with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Mathematica Data - negative arguments -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 78
- Found: -nan Expected -24481.6 Error: 1.79769e+308
4, -12.75, -24481.6
- CAUTION: Gross error found at entry 78.
Found: -nan Expected -24481.6 - Error: 1.79769e+308
4, -12.75, -24481.6
CAUTION: Found non-finite - result, when a finite value was expected at entry 79
Found: -nan Expected - 24481.6 Error: 1.79769e+308
4, -12.25, 24481.6
CAUTION: Gross - error found at entry 79.
Found: -nan Expected 24481.6 Error: 1.79769e+308
- 4, -12.25, 24481.6
CAUTION: Found non-finite result, when a finite - value was expected at entry 80
Found: -nan Expected -24481.6 Error: - 1.79769e+308
4, -11.75, -24481.6
CAUTION: Gross error found at - entry 80.
Found: -nan Expected -24481.6 Error: 1.79769e+308
4, - -11.75, -24481.6
CAUTION: Found non-finite result, when a finite value - was expected at entry 81
Found: -nan Expected 24481.6 Error: 1.79769e+308
- 4, -11.25, 24481.6
CAUTION: Gross error found at entry 81.
Found: - -nan Expected 24481.6 Error: 1.79769e+308
4, -11.25, 24481.6
- CAUTION: Found non-finite result, when a finite value was expected at entry - 82
Found: -nan Expected -24481.6 Error: 1.79769e+308
4, -10.75, - -24481.6
CAUTION: Gross error found at entry 82.
Found: -nan - Expected -24481.6 Error: 1.79769e+308
4, -10.75, -24481.6
CAUTION: - Found non-finite result, when a finite value was expected at entry 83
- Found: -nan Expected 24481.6 Error: 1.79769e+308
4, -10.25, 24481.6
- CAUTION: Gross error found at entry 83.
Found: -nan Expected 24481.6 - Error: 1.79769e+308
4, -10.25, 24481.6
CAUTION: Found non-finite - result, when a finite value was expected at entry 84
Found: -nan Expected - -24481.6 Error: 1.79769e+308
4, -9.75, -24481.6
CAUTION: Gross - error found at entry 84.
Found: -nan Expected -24481.6 Error: 1.79769e+308
- 4, -9.75, -24481.6
CAUTION: Found non-finite result, when a finite - value was expected at entry 85
Found: -nan Expected 24481.6 Error: - 1.79769e+308
4, -9.25, 24481.6
CAUTION: Gross error found at - entry 85.
Found: -nan Expected 24481.6 Error: 1.79769e+308
4, - -9.25, 24481.6
CAUTION: Found non-finite result, when a finite value - was expected at entry 86
Found: -nan Expected -24481.6 Error: 1.79769e+308
- 4, -8.75, -24481.6
CAUTION: Gross error found at entry 86.
Found: - -nan Expected -24481.6 Error: 1.79769e+308
4, -8.75, -24481.6
- CAUTION: Found non-finite result, when a finite value was expected at entry - 87
Found: -nan Expected 24481.6 Error: 1.79769e+308
4, -8.25, - 24481.6
CAUTION: Gross error found at entry 87.
Found: -nan Expected - 24481.6 Error: 1.79769e+308
4, -8.25, 24481.6
CAUTION: Found - non-finite result, when a finite value was expected at entry 88
Found: - -nan Expected -24481.6 Error: 1.79769e+308
4, -7.75, -24481.6
- CAUTION: Gross error found at entry 88.
Found: -nan Expected -24481.6 - Error: 1.79769e+308
4, -7.75, -24481.6
CAUTION: Found non-finite - result, when a finite value was expected at entry 89
Found: -nan Expected - 24481.6 Error: 1.79769e+308
4, -7.25, 24481.6
CAUTION: Gross - error found at entry 89.
Found: -nan Expected 24481.6 Error: 1.79769e+308
- 4, -7.25, 24481.6
CAUTION: Found non-finite result, when a finite value - was expected at entry 90
Found: -nan Expected -24481.6 Error: 1.79769e+308
- 4, -6.75, -24481.6
CAUTION: Gross error found at entry 90.
Found: - -nan Expected -24481.6 Error: 1.79769e+308
4, -6.75, -24481.6
- CAUTION: Found non-finite result, when a finite value was expected at entry - 91
Found: -nan Expected 24481.6 Error: 1.79769e+308
4, -6.25, - 24481.6
CAUTION: Gross error found at entry 91.
Found: -nan Expected - 24481.6 Error: 1.79769e+308
4, -6.25, 24481.6
CAUTION: Found - non-finite result, when a finite value was expected at entry 92
Found: - -nan Expected -24481.6 Error: 1.79769e+308
4, -5.75, -24481.6
- CAUTION: Gross error found at entry 92.
Found: -nan Expected -24481.6 - Error: 1.79769e+308
4, -5.75, -24481.6
CAUTION: Found non-finite - result, when a finite value was expected at entry 93
Found: -nan Expected - 24481.6 Error: 1.79769e+308
4, -5.25, 24481.6
CAUTION: Gross - error found at entry 93.
Found: -nan Expected 24481.6 Error: 1.79769e+308
- 4, -5.25, 24481.6
CAUTION: Found non-finite result, when a finite value - was expected at entry 94
*** FURTHER CONTENT HAS BEEN TRUNCATED FOR - BREVITY ***
-

-
- - Error - Output For polygamma with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Mathematica Data - large arguments -
-

- CAUTION: - Gross error found at entry 211.
Found: -0 Expected -8.44974e-268 Error: - 3.79751e+40
30, 8.58993e+09, -8.44974e-268
CAUTION: Gross error - found at entry 212.
Found: -0 Expected -7.86943e-277 Error: 3.5367e+31
- 30, 1.71799e+10, -7.86943e-277
CAUTION: Gross error found at entry - 213.
Found: -0 Expected -7.32898e-286 Error: 3.29381e+22
30, - 3.43597e+10, -7.32898e-286
CAUTION: Gross error found at entry 214.
- Found: -0 Expected -6.82564e-295 Error: 3.0676e+13
30, 6.87195e+10, - -6.82564e-295
CAUTION: Gross error found at entry 215.
Found: - -0 Expected -6.35687e-304 Error: 28568.3
30, 1.37439e+11, -6.35687e-304
-

-
- - Error - Output For ibetac_inv with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Inverse incomplete beta -
-

- CAUTION: - Gross error found at entry 1.
Found: 1.44329e-15 Expected 0 Error: - 6.48648e+292
1.12733e-05, 0.022662, 0.135563, 0, 0
CAUTION: Gross - error found at entry 2.
Found: 9.59938e-286 Expected 0 Error: 4.31419e+22
- 1.13778e-05, 0.0365442, 0.968871, 0, 0
CAUTION: Gross error found at - entry 3.
Found: 1.44329e-15 Expected 0 Error: 6.48648e+292
1.14285e-05, - 0.00244518, 0.135563, 0, 0
CAUTION: Gross error found at entry 4.
- Found: 1.88738e-15 Expected 0 Error: 8.48232e+292
1.18469e-05, 0.0159646, - 0.308236, 0, 0
CAUTION: Gross error found at entry 5.
Found: - 1 Expected 0 Error: 4.49423e+307
1.2158e-05, 24110.5, 0.135563, 0, - 0
CAUTION: Gross error found at entry 6.
Found: 1 Expected 0 - Error: 4.49423e+307
1.30342e-05, 26168.3, 0.127074, 0, 0
CAUTION: - Gross error found at entry 7.
Found: 9.68135e-302 Expected 0 Error: - 4.35102e+06
1.38853e-05, 0.0497627, 0.632396, 0, 0
CAUTION: Gross - error found at entry 8.
Found: 9.17399e-302 Expected 0 Error: 4.123e+06
- 1.39016e-05, 3.18888e-05, 0.814742, 1, 0
CAUTION: Gross error found - at entry 9.
Found: 2.59885e-301 Expected 0 Error: 1.16798e+07
- 1.47599e-05, 2.82413, 0.632396, 0, 0
CAUTION: Gross error found at - entry 12.
Found: 8.41661e-303 Expected 0 Error: 378261
1.5545e-05, - 40.4692, 0.905801, 0, 0
CAUTION: Gross error found at entry 13.
- Found: 8.07587e-302 Expected 0 Error: 3.62948e+06
1.56755e-05, 0.000101913, - 0.814742, 0, 0
CAUTION: Gross error found at entry 14.
Found: - 4.37637e-303 Expected 0 Error: 196683
1.59718e-05, 19.2062, 0.913384, - 0, 0
CAUTION: Gross error found at entry 15.
Found: 6.66134e-16 - Expected 0 Error: 2.99376e+292
1.63045e-05, 0.000390336, 0.127074, - 0, 0
CAUTION: Gross error found at entry 16.
Found: 1 Expected - 0 Error: 4.49423e+307
1.64873e-05, 470997, 0.127074, 0, 0
CAUTION: - Gross error found at entry 17.
Found: 5.55112e-16 Expected 0 Error: - 2.4948e+292
1.65045e-05, 3.57584, 0.308236, 0, 0
CAUTION: Gross - error found at entry 19.
Found: 2.43447e-302 Expected 0 Error: 1.09411e+06
- 1.68475e-05, 0.00220765, 0.968871, 0, 0
CAUTION: Gross error found - at entry 20.
Found: 3.06514e-301 Expected 0 Error: 1.37755e+07
- 1.74749e-05, 0.263492, 0.632396, 0, 0
CAUTION: Gross error found at - entry 21.
Found: 1.09414e-301 Expected 0 Error: 4.91734e+06
1.78638e-05, - 439.387, 0.835025, 0, 0
CAUTION: Gross error found at entry 22.
- Found: 7.29933e-302 Expected 0 Error: 3.28049e+06
1.89525e-05, 1.0711, - 0.968871, 0, 0
CAUTION: Gross error found at entry 23.
Found: - 5.55112e-16 Expected 0 Error: 2.4948e+292
1.9741e-05, 105.416, 0.308236, - 0, 0
CAUTION: Gross error found at entry 24.
Found: 2.68996e-301 - Expected 0 Error: 1.20893e+07
2.00434e-05, 482.007, 0.905801, 0, 0
- CAUTION: Gross error found at entry 25.
Found: 2.33147e-15 Expected - 0 Error: 1.04782e+293
2.01713e-05, 232.979, 0.135563, 0, 0
CAUTION: - Gross error found at entry 26.
Found: 2.55351e-15 Expected 0 Error: - 1.14761e+293
2.02038e-05, 42.8336, 0.135563, 0, 0
CAUTION: Gross - error found at entry 27.
Found: 1.07111e-301 Expected 0 Error: 4.81381e+06
- 2.03003e-05, 42.3894, 0.968871, 0, 0
CAUTION: Gross error found at - entry 29.
Found: 5.55112e-16 Expected 0 Error: 2.4948e+292
2.1041e-05, - 3.8231, 0.127074, 0, 0
CAUTION: Gross error found at entry 30.
- Found: 1.55431e-15 Expected 0 Error: 6.98544e+292
2.10769e-05, 0.0448972, - 0.221112, 0, 0
CAUTION: Gross error found at entry 31.
Found: - 8.41881e-301 Expected 0 Error: 3.78361e+07
2.11399e-05, 1.75353e-05, - 0.835025, 1, 0
CAUTION: Gross error found at entry 33.
Found: - 1 Expected 0 Error: 4.49423e+307
2.24486e-05, 445071, 0.221112, 0, - 0
CAUTION: Gross error found at entry 34.
Found: 1.73638e-301 - Expected 0 Error: 7.8037e+06
2.2684e-05, 0.04055, 0.905801, 0, 0
- CAUTION: Gross error found at entry 36.
Found: 4.08288e-301 Expected - 0 Error: 1.83494e+07
2.36154e-05, 4.50703, 0.905801, 0, 0
CAUTION: - Gross error found at entry 37.
Found: 5.4585e-301 Expected 0 Error: - 2.45318e+07
2.39993e-05, 462.946, 0.814742, 0, 0
CAUTION: Gross - error found at entry 38.
Found: 1 Expected 0 Error: 4.49423e+307
- 2.40664e-05, 1270.38, 0.127074, 0, 0
CAUTION: Gross error found at - entry 40.
Found: 3.33067e-16 Expected 0 Error: 1.49688e+292
*** - FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For ibeta_inv with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Inverse incomplete beta -
-

- CAUTION: - Gross error found at entry 0.
Found: 1 Expected 0 Error: 4.49423e+307
- 1.04761e-05, 39078.2, 0.913384, 0, 0
CAUTION: Gross error found at - entry 1.
Found: 3.14325e-247 Expected 0 Error: 1.41265e+61
1.12733e-05, - 0.022662, 0.135563, 0, 0
CAUTION: Gross error found at entry 2.
- Found: 2.44249e-15 Expected 0 Error: 1.09771e+293
1.13778e-05, 0.0365442, - 0.968871, 0, 0
CAUTION: Gross error found at entry 3.
Found: - 1.6185e-242 Expected 0 Error: 7.27394e+65
1.14285e-05, 0.00244518, - 0.135563, 0, 0
CAUTION: Gross error found at entry 4.
Found: - 2.50498e-303 Expected 0 Error: 112579
1.18469e-05, 0.0159646, 0.308236, - 0, 0
CAUTION: Gross error found at entry 7.
Found: 2.33147e-15 - Expected 0 Error: 1.04782e+293
1.38853e-05, 0.0497627, 0.632396, 0, - 0
CAUTION: Gross error found at entry 9.
Found: 1.55431e-15 Expected - 0 Error: 6.98544e+292
1.47599e-05, 2.82413, 0.632396, 0, 0
CAUTION: - Gross error found at entry 10.
Found: 7.45198e-302 Expected 0 Error: - 3.34909e+06
1.50795e-05, 4.87547e-05, 0.221112, 0, 1
CAUTION: - Gross error found at entry 11.
Found: 1 Expected 0 Error: 4.49423e+307
- 1.51962e-05, 16177.5, 0.814742, 0, 0
CAUTION: Gross error found at - entry 12.
Found: 1.11022e-16 Expected 0 Error: 4.9896e+291
1.5545e-05, - 40.4692, 0.905801, 0, 0
CAUTION: Gross error found at entry 13.
- Found: 8.88178e-16 Expected 0 Error: 3.99168e+292
1.56755e-05, 0.000101913, - 0.814742, 0, 0
CAUTION: Gross error found at entry 14.
Found: - 2.22045e-16 Expected 0 Error: 9.9792e+291
1.59718e-05, 19.2062, 0.913384, - 0, 0
CAUTION: Gross error found at entry 15.
Found: 6.44858e-302 - Expected 0 Error: 2.89814e+06
1.63045e-05, 0.000390336, 0.127074, 0, - 0
CAUTION: Gross error found at entry 17.
Found: 4.11482e-301 - Expected 0 Error: 1.8493e+07
1.65045e-05, 3.57584, 0.308236, 0, 0
- CAUTION: Gross error found at entry 18.
Found: 1 Expected 0 Error: - 4.49423e+307
1.66259e-05, 147819, 0.632396, 0, 0
CAUTION: Gross - error found at entry 19.
Found: 1.22125e-15 Expected 0 Error: 5.48856e+292
- 1.68475e-05, 0.00220765, 0.968871, 0, 0
CAUTION: Gross error found - at entry 20.
Found: 2.10942e-15 Expected 0 Error: 9.48024e+292
- 1.74749e-05, 0.263492, 0.632396, 0, 0
CAUTION: Gross error found at - entry 21.
Found: 2.10942e-15 Expected 0 Error: 9.48024e+292
1.78638e-05, - 439.387, 0.835025, 0, 0
CAUTION: Gross error found at entry 22.
- Found: 6.66134e-16 Expected 0 Error: 2.99376e+292
1.89525e-05, 1.0711, - 0.968871, 0, 0
CAUTION: Gross error found at entry 23.
Found: - 3.3742e-301 Expected 0 Error: 1.51644e+07
1.9741e-05, 105.416, 0.308236, - 0, 0
CAUTION: Gross error found at entry 24.
Found: 5.55112e-16 - Expected 0 Error: 2.4948e+292
2.00434e-05, 482.007, 0.905801, 0, 0
- CAUTION: Gross error found at entry 25.
Found: 3.28183e-301 Expected - 0 Error: 1.47493e+07
2.01713e-05, 232.979, 0.135563, 0, 0
CAUTION: - Gross error found at entry 26.
Found: 2.46911e-301 Expected 0 Error: - 1.10968e+07
2.02038e-05, 42.8336, 0.135563, 0, 0
CAUTION: Gross - error found at entry 27.
Found: 8.88178e-16 Expected 0 Error: 3.99168e+292
- 2.03003e-05, 42.3894, 0.968871, 0, 0
CAUTION: Gross error found at - entry 28.
Found: 1 Expected 0 Error: 4.49423e+307
2.05189e-05, - 236088, 0.835025, 0, 0
CAUTION: Gross error found at entry 29.
- Found: 3.94122e-301 Expected 0 Error: 1.77128e+07
2.1041e-05, 3.8231, - 0.127074, 0, 0
CAUTION: Gross error found at entry 30.
Found: - 4.41506e-301 Expected 0 Error: 1.98423e+07
2.10769e-05, 0.0448972, - 0.221112, 0, 0
CAUTION: Gross error found at entry 32.
Found: - 1 Expected 0 Error: 4.49423e+307
2.14336e-05, 3719.28, 0.814742, 0, - 0
CAUTION: Gross error found at entry 34.
Found: 7.77156e-16 - Expected 0 Error: 3.49272e+292
2.2684e-05, 0.04055, 0.905801, 0, 0
- CAUTION: Gross error found at entry 35.
Found: 1 Expected 0 Error: - 4.49423e+307
2.34849e-05, 25542.8, 0.968871, 0, 0
CAUTION: Gross - error found at entry 36.
Found: 7.77156e-16 Expected 0 Error: 3.49272e+292
- 2.36154e-05, 4.50703, 0.905801, 0, 0
CAUTION: Gross error found at - entry 37.
Found: 1.77636e-15 Expected 0 Error: 7.98336e+292
2.39993e-05, - 462.946, 0.814742, 0, 0
CAUTION: Gross error found at entry 39.
- Found: 1 Expected 0 Error: 4.49423e+307
2.52178e-05, 1832.27, 0.913384, - 0, 0
*** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Bessel Iv: Mathworld Data (large values) -
-

- CAUTION: - Gross error found at entry 0.
Found: 0 Expected 1.86459e-155 Error: - 8.37988e+152
-1, 3.72917e-155, 1.86459e-155
CAUTION: Gross error - found at entry 1.
Found: 0 Expected 1.86459e-155 Error: 8.37988e+152
- 1, 3.72917e-155, 1.86459e-155
CAUTION: Gross error found at entry 3.
- Found: 0 Expected 8.02269e-175 Error: 3.60559e+133
1.125, 3.72917e-155, - 8.02269e-175
-

-
- - Error - Output For cyl_bessel_i (integer orders) with compiler GNU C++ version 5.1.0 - and library Rmath 3.0.2 and test data Bessel In: Mathworld Data (Integer - Version) -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 4
- Found: -nan Expected -0.000271463 Error: 1.79769e+308
-5, -1, -0.000271463
- CAUTION: Gross error found at entry 4.
Found: -nan Expected -0.000271463 - Error: 1.79769e+308
-5, -1, -0.000271463
CAUTION: Found non-finite - result, when a finite value was expected at entry 6
Found: -nan Expected - 0.00458004 Error: 1.79769e+308
10, -5, 0.00458004
CAUTION: Gross - error found at entry 6.
Found: -nan Expected 0.00458004 Error: 1.79769e+308
- 10, -5, 0.00458004
CAUTION: Found non-finite result, when a finite - value was expected at entry 9
Found: -nan Expected 4.35275e+74 Error: - 1.79769e+308
-100, -200, 4.35275e+74
CAUTION: Gross error found - at entry 9.
Found: -nan Expected 4.35275e+74 Error: 1.79769e+308
- -100, -200, 4.35275e+74
-

-
- - Error - Output For cyl_bessel_i (integer orders) with compiler GNU C++ version 5.1.0 - and library Rmath 3.0.2 and test data Bessel I1: Mathworld Data (Integer - Version) -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 2
- Found: -nan Expected -1.59064 Error: 1.79769e+308
1, -2, -1.59064
- CAUTION: Gross error found at entry 2.
Found: -nan Expected -1.59064 - Error: 1.79769e+308
1, -2, -1.59064
CAUTION: Found non-finite - result, when a finite value was expected at entry 4
Found: -nan Expected - -399.873 Error: 1.79769e+308
1, -8, -399.873
CAUTION: Gross error - found at entry 4.
Found: -nan Expected -399.873 Error: 1.79769e+308
- 1, -8, -399.873
CAUTION: Found non-finite result, when a finite value - was expected at entry 7
Found: -nan Expected -2670.99 Error: 1.79769e+308
- 1, -10, -2670.99
CAUTION: Gross error found at entry 7.
Found: - -nan Expected -2670.99 Error: 1.79769e+308
1, -10, -2670.99
-

-
- - Error - Output For cyl_bessel_i (integer orders) with compiler GNU C++ version 5.1.0 - and library Rmath 3.0.2 and test data Bessel I0: Mathworld Data (Integer - Version) -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 2
- Found: -nan Expected 2.27959 Error: 1.79769e+308
0, -2, 2.27959
- CAUTION: Gross error found at entry 2.
Found: -nan Expected 2.27959 - Error: 1.79769e+308
0, -2, 2.27959
CAUTION: Found non-finite - result, when a finite value was expected at entry 4
Found: -nan Expected - 168.594 Error: 1.79769e+308
0, -7, 168.594
CAUTION: Gross error - found at entry 4.
Found: -nan Expected 168.594 Error: 1.79769e+308
- 0, -7, 168.594
CAUTION: Found non-finite result, when a finite value - was expected at entry 7
Found: -nan Expected 1.26607 Error: 1.79769e+308
- 0, -1, 1.26607
CAUTION: Gross error found at entry 7.
Found: - -nan Expected 1.26607 Error: 1.79769e+308
0, -1, 1.26607
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Bessel In: Mathworld Data -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 4
- Found: -nan Expected -0.000271463 Error: 1.79769e+308
-5, -1, -0.000271463
- CAUTION: Gross error found at entry 4.
Found: -nan Expected -0.000271463 - Error: 1.79769e+308
-5, -1, -0.000271463
CAUTION: Found non-finite - result, when a finite value was expected at entry 6
Found: -nan Expected - 0.00458004 Error: 1.79769e+308
10, -5, 0.00458004
CAUTION: Gross - error found at entry 6.
Found: -nan Expected 0.00458004 Error: 1.79769e+308
- 10, -5, 0.00458004
CAUTION: Found non-finite result, when a finite - value was expected at entry 9
Found: -nan Expected 4.35275e+74 Error: - 1.79769e+308
-100, -200, 4.35275e+74
CAUTION: Gross error found - at entry 9.
Found: -nan Expected 4.35275e+74 Error: 1.79769e+308
- -100, -200, 4.35275e+74
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Bessel I1: Mathworld Data -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 2
- Found: -nan Expected -1.59064 Error: 1.79769e+308
1, -2, -1.59064
- CAUTION: Gross error found at entry 2.
Found: -nan Expected -1.59064 - Error: 1.79769e+308
1, -2, -1.59064
CAUTION: Found non-finite - result, when a finite value was expected at entry 4
Found: -nan Expected - -399.873 Error: 1.79769e+308
1, -8, -399.873
CAUTION: Gross error - found at entry 4.
Found: -nan Expected -399.873 Error: 1.79769e+308
- 1, -8, -399.873
CAUTION: Found non-finite result, when a finite value - was expected at entry 7
Found: -nan Expected -2670.99 Error: 1.79769e+308
- 1, -10, -2670.99
CAUTION: Gross error found at entry 7.
Found: - -nan Expected -2670.99 Error: 1.79769e+308
1, -10, -2670.99
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Bessel I0: Mathworld Data -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 2
- Found: -nan Expected 2.27959 Error: 1.79769e+308
0, -2, 2.27959
- CAUTION: Gross error found at entry 2.
Found: -nan Expected 2.27959 - Error: 1.79769e+308
0, -2, 2.27959
CAUTION: Found non-finite - result, when a finite value was expected at entry 4
Found: -nan Expected - 168.594 Error: 1.79769e+308
0, -7, 168.594
CAUTION: Gross error - found at entry 4.
Found: -nan Expected 168.594 Error: 1.79769e+308
- 0, -7, 168.594
CAUTION: Found non-finite result, when a finite value - was expected at entry 7
Found: -nan Expected 1.26607 Error: 1.79769e+308
- 0, -1, 1.26607
CAUTION: Gross error found at entry 7.
Found: - -nan Expected 1.26607 Error: 1.79769e+308
0, -1, 1.26607
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel Iv: Mathworld Data (large values) -
-

- domain - error
-1, 3.72917e-155, 1.86459e-155
domain error
-1.125, - 3.72917e-155, -1.34964e+173
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel Iv: Random Data -
-

- domain - error
-80.4919, 24.7501, 4.18698e+28
domain error
-80.4919, - 63.7722, 2.03248e+06
domain error
-74.6026, 24.7501, 7.20977e+23
- domain error
-74.6026, 63.7722, 8.7549e+08
domain error
- -72.9046, 24.7501, 1.04535e+22
domain error
-72.9046, 63.7722, - 4.7162e+09
domain error
-62.3236, 24.7501, 3.65147e+14
- domain error
-62.3236, 63.7722, 8.56683e+13
domain error
- -55.7932, 24.7501, -7.70364e+09
domain error
-55.7932, 63.7722, - 1.95969e+16
domain error
-44.3004, 9.50706, 2.93478e+22
- domain error
-44.3004, 24.7501, 640.568
domain error
-44.3004, - 63.7722, 8.05557e+19
domain error
-38.3666, 5.11399, 2.89105e+27
- domain error
-38.3666, 9.50706, 8.80632e+16
domain error
- -38.3666, 24.7501, 0.389004
domain error
-38.3666, 63.7722, 3.06303e+21
- underflow
81.1584, 0.00177219, 0
underflow
81.1584, 0.00221773, - 0
underflow
81.1584, 0.0074445, 6.08857e-319
underflow
- 82.6752, 0.00177219, 0
underflow
82.6752, 0.00221773, 0
- underflow
82.6752, 0.0074445, 0
underflow
91.5014, 0.00177219, - 0
underflow
91.5014, 0.00221773, 0
underflow
91.5014, - 0.0074445, 0
underflow
91.5014, 0.014336, 0
underflow
- 91.5014, 0.0176092, 0
underflow
92.9777, 0.00177219, 0
- underflow
92.9777, 0.00221773, 0
underflow
92.9777, 0.0074445, - 0
underflow
92.9777, 0.014336, 0
underflow
92.9777, - 0.0176092, 0
underflow
93.539, 0.00177219, 0
underflow
- 93.539, 0.00221773, 0
underflow
93.539, 0.0074445, 0
underflow
- 93.539, 0.014336, 0
underflow
93.539, 0.0176092, 0
underflow
- 93.7736, 0.00177219, 0
underflow
93.7736, 0.00221773, 0
- underflow
93.7736, 0.0074445, 0
underflow
93.7736, 0.014336, - 0
underflow
93.7736, 0.0176092, 0
underflow
98.5763, - 0.00177219, 0
underflow
98.5763, 0.00221773, 0
underflow
- 98.5763, 0.0074445, 0
underflow
98.5763, 0.014336, 0
underflow
- 98.5763, 0.0176092, 0
underflow
99.2923, 0.00177219, 0
- underflow
99.2923, 0.00221773, 0
underflow
99.2923, 0.0074445, - 0
underflow
99.2923, 0.014336, 0
underflow
99.2923, - 0.0176092, 0
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel In: Random Data -
-

- underflow
- 70, 0.00177219, 1.75887e-314
underflow
73, 0.00177219, 0
- underflow
73, 0.00221773, 4.24896e-322
underflow
76, 0.00177219, - 0
underflow
76, 0.00221773, 0
underflow
79, 0.00177219, - 0
underflow
79, 0.00221773, 0
underflow
79, 0.0074445, - 1.38676e-309
underflow
82, 0.00177219, 0
underflow
- 82, 0.00221773, 0
underflow
82, 0.0074445, 1.33398e-322
- underflow
85, 0.00177219, 0
underflow
85, 0.00221773, 0
- underflow
85, 0.0074445, 0
underflow
85, 0.014336, 1.81568e-311
- underflow
88, 0.00177219, 0
underflow
88, 0.00221773, 0
- underflow
88, 0.0074445, 0
underflow
88, 0.014336, 9.88131e-324
- underflow
88, 0.0176092, 7.34647e-316
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel Iv: Mathworld Data -
-

- domain - error
-4.99902, 2.125, 0.0267921
domain error
-5.5, 10, - 597.578
domain error
-5.5, 100, 9.22363e+41
domain error
- -10.0003, 0.000976562, 1.41474e+35
domain error
-10.0003, 50, - 1.07153e+20
domain error
-141.4, 100, 2066.28
-

-
- - Error - Output For cyl_bessel_i (integer orders) with compiler GNU C++ version 5.1.0 - and library GSL 1.16 and test data Bessel In: Mathworld Data (Integer Version) -
-

- underflow
- 10, 1e-100, 0
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel In: Mathworld Data -
-

- domain - error
-2, 0, 0
domain error
-5, 100, 9.47009e+41
- domain error
-5, -1, -0.000271463
domain error
10, -5, - 0.00458004
domain error
-100, -200, 4.35275e+74
underflow
- 10, 1e-100, 0
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel I1: Mathworld Data -
-

- domain - error
1, -2, -1.59064
domain error
1, -8, -399.873
- domain error
1, -10, -2670.99
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel I0: Mathworld Data -
-

- domain - error
0, -2, 2.27959
domain error
0, -7, 168.594
- domain error
0, -1, 1.26607
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel Iv: Mathworld Data (large values) -
-

- Bad - argument in cyl_bessel_i.
- -1, 3.72917e-155, 1.86459e-155
Bad argument in cyl_bessel_i.
- -1.125, 3.72917e-155, -1.34964e+173
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel Iv: Random Data -
-

- Bad - argument in cyl_bessel_i.
- -80.4919, 24.7501, 4.18698e+28
Bad argument in cyl_bessel_i.
- -80.4919, 63.7722, 2.03248e+06
Bad argument in cyl_bessel_i.
- -74.6026, 24.7501, 7.20977e+23
Bad argument in cyl_bessel_i.
- -74.6026, 63.7722, 8.7549e+08
Bad argument in cyl_bessel_i.
- -72.9046, 24.7501, 1.04535e+22
Bad argument in cyl_bessel_i.
- -72.9046, 63.7722, 4.7162e+09
Bad argument in cyl_bessel_i.
- -62.3236, 24.7501, 3.65147e+14
Bad argument in cyl_bessel_i.
- -62.3236, 63.7722, 8.56683e+13
Bad argument in cyl_bessel_i.
- -55.7932, 24.7501, -7.70364e+09
Bad argument in cyl_bessel_i.
- -55.7932, 63.7722, 1.95969e+16
Bad argument in cyl_bessel_i.
- -44.3004, 9.50706, 2.93478e+22
Bad argument in cyl_bessel_i.
- -44.3004, 24.7501, 640.568
Bad argument in cyl_bessel_i.
- -44.3004, 63.7722, 8.05557e+19
Bad argument in cyl_bessel_i.
- -38.3666, 5.11399, 2.89105e+27
Bad argument in cyl_bessel_i.
- -38.3666, 9.50706, 8.80632e+16
Bad argument in cyl_bessel_i.
- -38.3666, 24.7501, 0.389004
Bad argument in cyl_bessel_i.
- -38.3666, 63.7722, 3.06303e+21
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel Iv: Mathworld Data -
-

- Bad - argument in cyl_bessel_i.
- -4.99902, 2.125, 0.0267921
Bad argument in cyl_bessel_i.
- -5.5, 10, 597.578
Bad argument in cyl_bessel_i.
- -5.5, 100, 9.22363e+41
Bad argument in cyl_bessel_i.
- -10.0003, 0.000976562, 1.41474e+35
Bad argument in cyl_bessel_i.
- -10.0003, 50, 1.07153e+20
Bad argument in cyl_bessel_i.
- -141.4, 100, 2066.28
-

-
- - Error - Output For cyl_bessel_i (integer orders) with compiler GNU C++ version 5.1.0 - and library <tr1/cmath> and test data Bessel In: Mathworld Data (Integer - Version) -
-

- Bad - argument in cyl_bessel_i.
- -2, 0, 0
Bad argument in cyl_bessel_i.
- -5, 100, 9.47009e+41
Bad argument in cyl_bessel_i.
- -5, -1, -0.000271463
Bad argument in cyl_bessel_i.
- 10, -5, 0.00458004
Bad argument in cyl_bessel_i.
- -100, -200, 4.35275e+74
-

-
- - Error - Output For cyl_bessel_i (integer orders) with compiler GNU C++ version 5.1.0 - and library <tr1/cmath> and test data Bessel I1: Mathworld Data (Integer - Version) -
-

- Bad - argument in cyl_bessel_i.
- 1, -2, -1.59064
Bad argument in cyl_bessel_i.
- 1, -8, -399.873
Bad argument in cyl_bessel_i.
- 1, -10, -2670.99
-

-
- - Error - Output For cyl_bessel_i (integer orders) with compiler GNU C++ version 5.1.0 - and library <tr1/cmath> and test data Bessel I0: Mathworld Data (Integer - Version) -
-

- Bad - argument in cyl_bessel_i.
- 0, -2, 2.27959
Bad argument in cyl_bessel_i.
- 0, -7, 168.594
Bad argument in cyl_bessel_i.
- 0, -1, 1.26607
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel In: Mathworld Data -
-

- Bad - argument in cyl_bessel_i.
- -2, 0, 0
Bad argument in cyl_bessel_i.
- -5, 100, 9.47009e+41
Bad argument in cyl_bessel_i.
- -5, -1, -0.000271463
Bad argument in cyl_bessel_i.
- 10, -5, 0.00458004
Bad argument in cyl_bessel_i.
- -100, -200, 4.35275e+74
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel I1: Mathworld Data -
-

- Bad - argument in cyl_bessel_i.
- 1, -2, -1.59064
Bad argument in cyl_bessel_i.
- 1, -8, -399.873
Bad argument in cyl_bessel_i.
- 1, -10, -2670.99
-

-
- - Error - Output For cyl_bessel_i with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel I0: Mathworld Data -
-

- Bad - argument in cyl_bessel_i.
- 0, -2, 2.27959
Bad argument in cyl_bessel_i.
- 0, -7, 168.594
Bad argument in cyl_bessel_i.
- 0, -1, 1.26607
-

-
- - Error - Output For jacobi_dn with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Jacobi Elliptic: Modulus near 1 -
-

- |m| - > 1.0
-4.0246, 1, -0.999361, 0.0357365, 0.0357231
|m| > - 1.0
-4.0246, 1, -0.999361, 0.0357497, 0.0357097
|m| > 1.0
- -4.0246, 1, -0.99936, 0.0357762, 0.0356829
|m| > 1.0
-4.0246, - 1, -0.999359, 0.0357895, 0.0356695
|m| > 1.0
-4.0246, 1.00001, - -0.999354, 0.0359354, 0.0355222
|m| > 1.0
-4.0246, 1.00003, - -0.999347, 0.0361343, 0.0353212
|m| > 1.0
-4.0246, 1.00004, - -0.999343, 0.036247, 0.0352073
|m| > 1.0
-4.0246, 1.0001, - -0.999311, 0.0371157, 0.0343296
|m| > 1.0
-4.0246, 1.00016, - -0.99928, 0.0379513, 0.0334851
|m| > 1.0
-4.0246, 1.00027, - -0.999221, 0.0394571, 0.0319634
|m| > 1.0
-4.0246, 1.00076, - -0.99893, 0.0462407, 0.0251046
|m| > 1.0
-4.0246, 1.00125, - -0.998589, 0.0531109, 0.0181532
|m| > 1.0
-4.0246, 1.00232, - -0.99768, 0.0680761, 0.0029944
|m| > 1.0
-4.0246, 1.00604, - -0.992752, 0.120179, -0.049966
|m| > 1.0
-4.0246, 1.01557, - -0.967356, 0.25342, -0.186698
|m| > 1.0
-4.0246, 1.03059, - -0.890373, 0.455232, -0.397492
|m| > 1.0
-4.0246, 1.06239, - -0.607191, 0.794556, -0.76412
|m| > 1.0
-3.73013, 1, -0.998849, - 0.0479567, 0.0479467
|m| > 1.0
-3.73013, 1, -0.998849, 0.0479665, - 0.0479367
|m| > 1.0
-3.73013, 1, -0.998848, 0.0479862, 0.0479167
- |m| > 1.0
-3.73013, 1, -0.998848, 0.047996, 0.0479067
|m| - > 1.0
-3.73013, 1.00001, -0.998842, 0.0481042, 0.0477966
|m| - > 1.0
-3.73013, 1.00003, -0.998835, 0.0482517, 0.0476465
|m| - > 1.0
-3.73013, 1.00004, -0.998831, 0.0483354, 0.0475615
|m| - > 1.0
-3.73013, 1.0001, -0.9988, 0.0489797, 0.0469059
|m| - > 1.0
-3.73013, 1.00016, -0.998769, 0.0495995, 0.0462752
|m| - > 1.0
-3.73013, 1.00027, -0.998713, 0.0507164, 0.0451386
|m| - > 1.0
-3.73013, 1.00076, -0.998445, 0.0557477, 0.0400164
|m| - > 1.0
-3.73013, 1.00125, -0.998147, 0.0608429, 0.0348257
|m| - > 1.0
-3.73013, 1.00232, -0.997409, 0.0719406, 0.0235071
|m| - > 1.0
-3.73013, 1.00604, -0.993866, 0.110593, -0.016048
|m| - > 1.0
-3.73013, 1.01557, -0.977708, 0.209971, -0.118704
|m| - > 1.0
-3.73013, 1.03059, -0.931162, 0.364606, -0.281224
|m| - > 1.0
-3.73013, 1.06239, -0.753495, 0.657453, -0.599326
|m| - > 1.0
-3.64523, 1, -0.998637, 0.0521997, 0.0521906
|m| > - 1.0
-3.64523, 1, -0.998636, 0.0522087, 0.0521814
|m| > 1.0
- -3.64523, 1, -0.998635, 0.0522268, 0.052163
|m| > 1.0
-3.64523, - 1, -0.998635, 0.0522358, 0.0521538
|m| > 1.0
-3.64523, 1.00001, - -0.99863, 0.052335, 0.0520526
|m| > 1.0
-3.64523, 1.00003, - -0.998622, 0.0524703, 0.0519145
|m| > 1.0
-3.64523, 1.00004, - -0.998618, 0.052547, 0.0518363
|m| > 1.0
-3.64523, 1.0001, - -0.998587, 0.0531379, 0.0512335
|m| > 1.0
-3.64523, 1.00016, - -0.998557, 0.0537063, 0.0506536
|m| > 1.0
-3.64523, 1.00027, - -0.998501, 0.0547305, 0.0496084
|m| > 1.0
-3.64523, 1.00076, - -0.998238, 0.0593443, 0.0448986
|m| > 1.0
-3.64523, 1.00125, - -0.997949, 0.0640165, 0.0401258
|m| > 1.0
-3.64523, 1.00232, - -0.997244, 0.0741927, 0.0297191
|m| > 1.0
-3.64523, 1.00604, - -0.993972, 0.109636, -0.00664888
|m| > 1.0
-3.64523, 1.01557, - -0.979623, 0.200844, -0.101111
|m| > 1.0
-3.64523, 1.03059, - -0.939163, 0.343472, -0.251382
|m| > 1.0
-3.64523, 1.06239, - -0.784719, 0.619852, -0.552253
|m| > 1.0
-3.11618, 1, -0.996078, - 0.0884811, 0.0884757
|m| > 1.0
-3.11618, 1, -0.996077, 0.0884863, - 0.0884702
|m| > 1.0
-3.11618, 1, -0.996076, 0.0884967, 0.0884593
- |m| > 1.0
-3.11618, 1, -0.996076, 0.0885019, 0.0884538
|m| - > 1.0
-3.11618, 1.00001, -0.996071, 0.0885593, 0.0883936
|m| - > 1.0
-3.11618, 1.00003, -0.996064, 0.0886376, 0.0883114
|m| - > 1.0
-3.11618, 1.00004, -0.99606, 0.0886819, 0.0882648
|m| - > 1.0
-3.11618, 1.0001, -0.99603, 0.0890236, 0.0879059
|m| - > 1.0
-3.11618, 1.00016, -0.996, 0.0893523, 0.0875607
|m| - > 1.0
-3.11618, 1.00027, -0.995947, 0.0899445, 0.0869386
|m| - > 1.0
-3.11618, 1.00076, -0.995702, 0.092612, 0.0841353
|m| - > 1.0
-3.11618, 1.00125, -0.995447, 0.0953126, 0.0812953
|m| - > 1.0
-3.11618, 1.00232, -0.994867, 0.101193, 0.0751049
|m| - > 1.0
-3.11618, 1.00604, -0.992571, 0.121667, 0.0534858
|m| - > 1.0
-3.11618, 1.01557, -0.984666, 0.174451, -0.00273723
- |m| > 1.0
-3.11618, 1.03059, -0.966077, 0.258253, -0.0934336
- |m| > 1.0
-3.11618, 1.06239, -0.901067, 0.433681, -0.289151
- |m| > 1.0
-2.78966, 1, -0.992478, 0.122424, 0.12242
|m| > - 1.0
-2.78966, 1, -0.992477, 0.122428, 0.122416
*** FURTHER CONTENT - HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For jacobi_cn with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Jacobi Elliptic: Modulus near 1 -
-

- |m| - > 1.0
-4.0246, 1, -0.999361, 0.0357365, 0.0357231
|m| > - 1.0
-4.0246, 1, -0.999361, 0.0357497, 0.0357097
|m| > 1.0
- -4.0246, 1, -0.99936, 0.0357762, 0.0356829
|m| > 1.0
-4.0246, - 1, -0.999359, 0.0357895, 0.0356695
|m| > 1.0
-4.0246, 1.00001, - -0.999354, 0.0359354, 0.0355222
|m| > 1.0
-4.0246, 1.00003, - -0.999347, 0.0361343, 0.0353212
|m| > 1.0
-4.0246, 1.00004, - -0.999343, 0.036247, 0.0352073
|m| > 1.0
-4.0246, 1.0001, - -0.999311, 0.0371157, 0.0343296
|m| > 1.0
-4.0246, 1.00016, - -0.99928, 0.0379513, 0.0334851
|m| > 1.0
-4.0246, 1.00027, - -0.999221, 0.0394571, 0.0319634
|m| > 1.0
-4.0246, 1.00076, - -0.99893, 0.0462407, 0.0251046
|m| > 1.0
-4.0246, 1.00125, - -0.998589, 0.0531109, 0.0181532
|m| > 1.0
-4.0246, 1.00232, - -0.99768, 0.0680761, 0.0029944
|m| > 1.0
-4.0246, 1.00604, - -0.992752, 0.120179, -0.049966
|m| > 1.0
-4.0246, 1.01557, - -0.967356, 0.25342, -0.186698
|m| > 1.0
-4.0246, 1.03059, - -0.890373, 0.455232, -0.397492
|m| > 1.0
-4.0246, 1.06239, - -0.607191, 0.794556, -0.76412
|m| > 1.0
-3.73013, 1, -0.998849, - 0.0479567, 0.0479467
|m| > 1.0
-3.73013, 1, -0.998849, 0.0479665, - 0.0479367
|m| > 1.0
-3.73013, 1, -0.998848, 0.0479862, 0.0479167
- |m| > 1.0
-3.73013, 1, -0.998848, 0.047996, 0.0479067
|m| - > 1.0
-3.73013, 1.00001, -0.998842, 0.0481042, 0.0477966
|m| - > 1.0
-3.73013, 1.00003, -0.998835, 0.0482517, 0.0476465
|m| - > 1.0
-3.73013, 1.00004, -0.998831, 0.0483354, 0.0475615
|m| - > 1.0
-3.73013, 1.0001, -0.9988, 0.0489797, 0.0469059
|m| - > 1.0
-3.73013, 1.00016, -0.998769, 0.0495995, 0.0462752
|m| - > 1.0
-3.73013, 1.00027, -0.998713, 0.0507164, 0.0451386
|m| - > 1.0
-3.73013, 1.00076, -0.998445, 0.0557477, 0.0400164
|m| - > 1.0
-3.73013, 1.00125, -0.998147, 0.0608429, 0.0348257
|m| - > 1.0
-3.73013, 1.00232, -0.997409, 0.0719406, 0.0235071
|m| - > 1.0
-3.73013, 1.00604, -0.993866, 0.110593, -0.016048
|m| - > 1.0
-3.73013, 1.01557, -0.977708, 0.209971, -0.118704
|m| - > 1.0
-3.73013, 1.03059, -0.931162, 0.364606, -0.281224
|m| - > 1.0
-3.73013, 1.06239, -0.753495, 0.657453, -0.599326
|m| - > 1.0
-3.64523, 1, -0.998637, 0.0521997, 0.0521906
|m| > - 1.0
-3.64523, 1, -0.998636, 0.0522087, 0.0521814
|m| > 1.0
- -3.64523, 1, -0.998635, 0.0522268, 0.052163
|m| > 1.0
-3.64523, - 1, -0.998635, 0.0522358, 0.0521538
|m| > 1.0
-3.64523, 1.00001, - -0.99863, 0.052335, 0.0520526
|m| > 1.0
-3.64523, 1.00003, - -0.998622, 0.0524703, 0.0519145
|m| > 1.0
-3.64523, 1.00004, - -0.998618, 0.052547, 0.0518363
|m| > 1.0
-3.64523, 1.0001, - -0.998587, 0.0531379, 0.0512335
|m| > 1.0
-3.64523, 1.00016, - -0.998557, 0.0537063, 0.0506536
|m| > 1.0
-3.64523, 1.00027, - -0.998501, 0.0547305, 0.0496084
|m| > 1.0
-3.64523, 1.00076, - -0.998238, 0.0593443, 0.0448986
|m| > 1.0
-3.64523, 1.00125, - -0.997949, 0.0640165, 0.0401258
|m| > 1.0
-3.64523, 1.00232, - -0.997244, 0.0741927, 0.0297191
|m| > 1.0
-3.64523, 1.00604, - -0.993972, 0.109636, -0.00664888
|m| > 1.0
-3.64523, 1.01557, - -0.979623, 0.200844, -0.101111
|m| > 1.0
-3.64523, 1.03059, - -0.939163, 0.343472, -0.251382
|m| > 1.0
-3.64523, 1.06239, - -0.784719, 0.619852, -0.552253
|m| > 1.0
-3.11618, 1, -0.996078, - 0.0884811, 0.0884757
|m| > 1.0
-3.11618, 1, -0.996077, 0.0884863, - 0.0884702
|m| > 1.0
-3.11618, 1, -0.996076, 0.0884967, 0.0884593
- |m| > 1.0
-3.11618, 1, -0.996076, 0.0885019, 0.0884538
|m| - > 1.0
-3.11618, 1.00001, -0.996071, 0.0885593, 0.0883936
|m| - > 1.0
-3.11618, 1.00003, -0.996064, 0.0886376, 0.0883114
|m| - > 1.0
-3.11618, 1.00004, -0.99606, 0.0886819, 0.0882648
|m| - > 1.0
-3.11618, 1.0001, -0.99603, 0.0890236, 0.0879059
|m| - > 1.0
-3.11618, 1.00016, -0.996, 0.0893523, 0.0875607
|m| - > 1.0
-3.11618, 1.00027, -0.995947, 0.0899445, 0.0869386
|m| - > 1.0
-3.11618, 1.00076, -0.995702, 0.092612, 0.0841353
|m| - > 1.0
-3.11618, 1.00125, -0.995447, 0.0953126, 0.0812953
|m| - > 1.0
-3.11618, 1.00232, -0.994867, 0.101193, 0.0751049
|m| - > 1.0
-3.11618, 1.00604, -0.992571, 0.121667, 0.0534858
|m| - > 1.0
-3.11618, 1.01557, -0.984666, 0.174451, -0.00273723
- |m| > 1.0
-3.11618, 1.03059, -0.966077, 0.258253, -0.0934336
- |m| > 1.0
-3.11618, 1.06239, -0.901067, 0.433681, -0.289151
- |m| > 1.0
-2.78966, 1, -0.992478, 0.122424, 0.12242
|m| > - 1.0
-2.78966, 1, -0.992477, 0.122428, 0.122416
*** FURTHER CONTENT - HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For jacobi_sn with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Jacobi Elliptic: Modulus near 1 -
-

- |m| - > 1.0
-4.0246, 1, -0.999361, 0.0357365, 0.0357231
|m| > - 1.0
-4.0246, 1, -0.999361, 0.0357497, 0.0357097
|m| > 1.0
- -4.0246, 1, -0.99936, 0.0357762, 0.0356829
|m| > 1.0
-4.0246, - 1, -0.999359, 0.0357895, 0.0356695
|m| > 1.0
-4.0246, 1.00001, - -0.999354, 0.0359354, 0.0355222
|m| > 1.0
-4.0246, 1.00003, - -0.999347, 0.0361343, 0.0353212
|m| > 1.0
-4.0246, 1.00004, - -0.999343, 0.036247, 0.0352073
|m| > 1.0
-4.0246, 1.0001, - -0.999311, 0.0371157, 0.0343296
|m| > 1.0
-4.0246, 1.00016, - -0.99928, 0.0379513, 0.0334851
|m| > 1.0
-4.0246, 1.00027, - -0.999221, 0.0394571, 0.0319634
|m| > 1.0
-4.0246, 1.00076, - -0.99893, 0.0462407, 0.0251046
|m| > 1.0
-4.0246, 1.00125, - -0.998589, 0.0531109, 0.0181532
|m| > 1.0
-4.0246, 1.00232, - -0.99768, 0.0680761, 0.0029944
|m| > 1.0
-4.0246, 1.00604, - -0.992752, 0.120179, -0.049966
|m| > 1.0
-4.0246, 1.01557, - -0.967356, 0.25342, -0.186698
|m| > 1.0
-4.0246, 1.03059, - -0.890373, 0.455232, -0.397492
|m| > 1.0
-4.0246, 1.06239, - -0.607191, 0.794556, -0.76412
|m| > 1.0
-3.73013, 1, -0.998849, - 0.0479567, 0.0479467
|m| > 1.0
-3.73013, 1, -0.998849, 0.0479665, - 0.0479367
|m| > 1.0
-3.73013, 1, -0.998848, 0.0479862, 0.0479167
- |m| > 1.0
-3.73013, 1, -0.998848, 0.047996, 0.0479067
|m| - > 1.0
-3.73013, 1.00001, -0.998842, 0.0481042, 0.0477966
|m| - > 1.0
-3.73013, 1.00003, -0.998835, 0.0482517, 0.0476465
|m| - > 1.0
-3.73013, 1.00004, -0.998831, 0.0483354, 0.0475615
|m| - > 1.0
-3.73013, 1.0001, -0.9988, 0.0489797, 0.0469059
|m| - > 1.0
-3.73013, 1.00016, -0.998769, 0.0495995, 0.0462752
|m| - > 1.0
-3.73013, 1.00027, -0.998713, 0.0507164, 0.0451386
|m| - > 1.0
-3.73013, 1.00076, -0.998445, 0.0557477, 0.0400164
|m| - > 1.0
-3.73013, 1.00125, -0.998147, 0.0608429, 0.0348257
|m| - > 1.0
-3.73013, 1.00232, -0.997409, 0.0719406, 0.0235071
|m| - > 1.0
-3.73013, 1.00604, -0.993866, 0.110593, -0.016048
|m| - > 1.0
-3.73013, 1.01557, -0.977708, 0.209971, -0.118704
|m| - > 1.0
-3.73013, 1.03059, -0.931162, 0.364606, -0.281224
|m| - > 1.0
-3.73013, 1.06239, -0.753495, 0.657453, -0.599326
|m| - > 1.0
-3.64523, 1, -0.998637, 0.0521997, 0.0521906
|m| > - 1.0
-3.64523, 1, -0.998636, 0.0522087, 0.0521814
|m| > 1.0
- -3.64523, 1, -0.998635, 0.0522268, 0.052163
|m| > 1.0
-3.64523, - 1, -0.998635, 0.0522358, 0.0521538
|m| > 1.0
-3.64523, 1.00001, - -0.99863, 0.052335, 0.0520526
|m| > 1.0
-3.64523, 1.00003, - -0.998622, 0.0524703, 0.0519145
|m| > 1.0
-3.64523, 1.00004, - -0.998618, 0.052547, 0.0518363
|m| > 1.0
-3.64523, 1.0001, - -0.998587, 0.0531379, 0.0512335
|m| > 1.0
-3.64523, 1.00016, - -0.998557, 0.0537063, 0.0506536
|m| > 1.0
-3.64523, 1.00027, - -0.998501, 0.0547305, 0.0496084
|m| > 1.0
-3.64523, 1.00076, - -0.998238, 0.0593443, 0.0448986
|m| > 1.0
-3.64523, 1.00125, - -0.997949, 0.0640165, 0.0401258
|m| > 1.0
-3.64523, 1.00232, - -0.997244, 0.0741927, 0.0297191
|m| > 1.0
-3.64523, 1.00604, - -0.993972, 0.109636, -0.00664888
|m| > 1.0
-3.64523, 1.01557, - -0.979623, 0.200844, -0.101111
|m| > 1.0
-3.64523, 1.03059, - -0.939163, 0.343472, -0.251382
|m| > 1.0
-3.64523, 1.06239, - -0.784719, 0.619852, -0.552253
|m| > 1.0
-3.11618, 1, -0.996078, - 0.0884811, 0.0884757
|m| > 1.0
-3.11618, 1, -0.996077, 0.0884863, - 0.0884702
|m| > 1.0
-3.11618, 1, -0.996076, 0.0884967, 0.0884593
- |m| > 1.0
-3.11618, 1, -0.996076, 0.0885019, 0.0884538
|m| - > 1.0
-3.11618, 1.00001, -0.996071, 0.0885593, 0.0883936
|m| - > 1.0
-3.11618, 1.00003, -0.996064, 0.0886376, 0.0883114
|m| - > 1.0
-3.11618, 1.00004, -0.99606, 0.0886819, 0.0882648
|m| - > 1.0
-3.11618, 1.0001, -0.99603, 0.0890236, 0.0879059
|m| - > 1.0
-3.11618, 1.00016, -0.996, 0.0893523, 0.0875607
|m| - > 1.0
-3.11618, 1.00027, -0.995947, 0.0899445, 0.0869386
|m| - > 1.0
-3.11618, 1.00076, -0.995702, 0.092612, 0.0841353
|m| - > 1.0
-3.11618, 1.00125, -0.995447, 0.0953126, 0.0812953
|m| - > 1.0
-3.11618, 1.00232, -0.994867, 0.101193, 0.0751049
|m| - > 1.0
-3.11618, 1.00604, -0.992571, 0.121667, 0.0534858
|m| - > 1.0
-3.11618, 1.01557, -0.984666, 0.174451, -0.00273723
- |m| > 1.0
-3.11618, 1.03059, -0.966077, 0.258253, -0.0934336
- |m| > 1.0
-3.11618, 1.06239, -0.901067, 0.433681, -0.289151
- |m| > 1.0
-2.78966, 1, -0.992478, 0.122424, 0.12242
|m| > - 1.0
-2.78966, 1, -0.992477, 0.122428, 0.122416
*** FURTHER CONTENT - HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For jacobi_dn with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Jacobi Elliptic: Random Small Values -
-

- |m| - > 1.0
1.65048e-12, 1.65574, 1.65048e-12, 1, 1
|m| > 1.0
- 2.06542e-12, 1.65574, 2.06542e-12, 1, 1
|m| > 1.0
6.93323e-12, - 1.65574, 6.93323e-12, 1, 1
|m| > 1.0
1.33514e-11, 1.65574, - 1.33514e-11, 1, 1
|m| > 1.0
1.63998e-11, 1.65574, 1.63998e-11, - 1, 1
|m| > 1.0
5.73016e-11, 1.65574, 5.73016e-11, 1, 1
- |m| > 1.0
1.11373e-10, 1.65574, 1.11373e-10, 1, 1
|m| > - 1.0
1.42147e-10, 1.65574, 1.42147e-10, 1, 1
|m| > 1.0
- 3.80063e-10, 1.65574, 3.80063e-10, 1, 1
|m| > 1.0
6.09163e-10, - 1.65574, 6.09163e-10, 1, 1
|m| > 1.0
1.02216e-09, 1.65574, - 1.02216e-09, 1, 1
|m| > 1.0
2.88192e-09, 1.65574, 2.88192e-09, - 1, 1
|m| > 1.0
4.76278e-09, 1.65574, 4.76278e-09, 1, 1
- |m| > 1.0
8.85413e-09, 1.65574, 8.85413e-09, 1, 1
|m| > - 1.0
2.30503e-08, 1.65574, 2.30503e-08, 1, 1
|m| > 1.0
- 5.93925e-08, 1.65574, 5.93925e-08, 1, 1
|m| > 1.0
1.16676e-07, - 1.65574, 1.16676e-07, 1, 1
|m| > 1.0
2.37997e-07, 1.65574, - 2.37997e-07, 1, 1
|m| > 1.0
4.68466e-07, 1.65574, 4.68466e-07, - 1, 1
|m| > 1.0
9.3827e-07, 1.65574, 9.3827e-07, 1, 1
- |m| > 1.0
1.10399e-06, 1.65574, 1.10399e-06, 1, 1
|m| > - 1.0
3.29178e-06, 1.65574, 3.29178e-06, 1, 1
|m| > 1.0
- 7.51721e-06, 1.65574, 7.51721e-06, 1, 1
|m| > 1.0
1.51147e-05, - 1.65574, 1.51147e-05, 1, 1
|m| > 1.0
2.9864e-05, 1.65574, - 2.9864e-05, 1, 1
|m| > 1.0
3.38703e-05, 1.65574, 3.38703e-05, - 1, 1
|m| > 1.0
9.06601e-05, 1.65574, 9.06601e-05, 1, 1
- |m| > 1.0
0.000219495, 1.65574, 0.000219495, 1, 1
|m| > - 1.0
0.000439522, 1.65574, 0.000439521, 1, 1
|m| > 1.0
- 0.000633315, 1.65574, 0.000633315, 1, 0.999999
|m| > 1.0
0.00111512, - 1.65574, 0.00111512, 0.999999, 0.999998
|m| > 1.0
0.00196247, - 1.65574, 0.00196246, 0.999998, 0.999995
|m| > 1.0
0.00555375, - 1.65574, 0.00555365, 0.999985, 0.999958
|m| > 1.0
0.00869113, - 1.65574, 0.00869072, 0.999962, 0.999896
|m| > 1.0
0.0299334, - 1.65574, 0.0299166, 0.999552, 0.998772
|m| > 1.0
0.0512426, - 1.65574, 0.0511588, 0.998691, 0.996406
|m| > 1.0
0.112013, - 1.65574, 0.111143, 0.993804, 0.982922
|m| > 1.0
0.234804, - 1.65574, 0.227, 0.973895, 0.926679
|m| > 1.0
0.489873, 1.65574, - 0.425971, 0.904737, 0.708912
|m| > 1.0
0.751831, 1.65574, - 0.553446, 0.832885, 0.400346
|m| > 1.0
1.65574, 1.65574, 0.408154, - 0.912913, -0.737088
-

-
- - Error - Output For jacobi_cn with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Jacobi Elliptic: Random Small Values -
-

- |m| - > 1.0
1.65048e-12, 1.65574, 1.65048e-12, 1, 1
|m| > 1.0
- 2.06542e-12, 1.65574, 2.06542e-12, 1, 1
|m| > 1.0
6.93323e-12, - 1.65574, 6.93323e-12, 1, 1
|m| > 1.0
1.33514e-11, 1.65574, - 1.33514e-11, 1, 1
|m| > 1.0
1.63998e-11, 1.65574, 1.63998e-11, - 1, 1
|m| > 1.0
5.73016e-11, 1.65574, 5.73016e-11, 1, 1
- |m| > 1.0
1.11373e-10, 1.65574, 1.11373e-10, 1, 1
|m| > - 1.0
1.42147e-10, 1.65574, 1.42147e-10, 1, 1
|m| > 1.0
- 3.80063e-10, 1.65574, 3.80063e-10, 1, 1
|m| > 1.0
6.09163e-10, - 1.65574, 6.09163e-10, 1, 1
|m| > 1.0
1.02216e-09, 1.65574, - 1.02216e-09, 1, 1
|m| > 1.0
2.88192e-09, 1.65574, 2.88192e-09, - 1, 1
|m| > 1.0
4.76278e-09, 1.65574, 4.76278e-09, 1, 1
- |m| > 1.0
8.85413e-09, 1.65574, 8.85413e-09, 1, 1
|m| > - 1.0
2.30503e-08, 1.65574, 2.30503e-08, 1, 1
|m| > 1.0
- 5.93925e-08, 1.65574, 5.93925e-08, 1, 1
|m| > 1.0
1.16676e-07, - 1.65574, 1.16676e-07, 1, 1
|m| > 1.0
2.37997e-07, 1.65574, - 2.37997e-07, 1, 1
|m| > 1.0
4.68466e-07, 1.65574, 4.68466e-07, - 1, 1
|m| > 1.0
9.3827e-07, 1.65574, 9.3827e-07, 1, 1
- |m| > 1.0
1.10399e-06, 1.65574, 1.10399e-06, 1, 1
|m| > - 1.0
3.29178e-06, 1.65574, 3.29178e-06, 1, 1
|m| > 1.0
- 7.51721e-06, 1.65574, 7.51721e-06, 1, 1
|m| > 1.0
1.51147e-05, - 1.65574, 1.51147e-05, 1, 1
|m| > 1.0
2.9864e-05, 1.65574, - 2.9864e-05, 1, 1
|m| > 1.0
3.38703e-05, 1.65574, 3.38703e-05, - 1, 1
|m| > 1.0
9.06601e-05, 1.65574, 9.06601e-05, 1, 1
- |m| > 1.0
0.000219495, 1.65574, 0.000219495, 1, 1
|m| > - 1.0
0.000439522, 1.65574, 0.000439521, 1, 1
|m| > 1.0
- 0.000633315, 1.65574, 0.000633315, 1, 0.999999
|m| > 1.0
0.00111512, - 1.65574, 0.00111512, 0.999999, 0.999998
|m| > 1.0
0.00196247, - 1.65574, 0.00196246, 0.999998, 0.999995
|m| > 1.0
0.00555375, - 1.65574, 0.00555365, 0.999985, 0.999958
|m| > 1.0
0.00869113, - 1.65574, 0.00869072, 0.999962, 0.999896
|m| > 1.0
0.0299334, - 1.65574, 0.0299166, 0.999552, 0.998772
|m| > 1.0
0.0512426, - 1.65574, 0.0511588, 0.998691, 0.996406
|m| > 1.0
0.112013, - 1.65574, 0.111143, 0.993804, 0.982922
|m| > 1.0
0.234804, - 1.65574, 0.227, 0.973895, 0.926679
|m| > 1.0
0.489873, 1.65574, - 0.425971, 0.904737, 0.708912
|m| > 1.0
0.751831, 1.65574, - 0.553446, 0.832885, 0.400346
|m| > 1.0
1.65574, 1.65574, 0.408154, - 0.912913, -0.737088
-

-
- - Error - Output For jacobi_sn with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Jacobi Elliptic: Random Small Values -
-

- |m| - > 1.0
1.65048e-12, 1.65574, 1.65048e-12, 1, 1
|m| > 1.0
- 2.06542e-12, 1.65574, 2.06542e-12, 1, 1
|m| > 1.0
6.93323e-12, - 1.65574, 6.93323e-12, 1, 1
|m| > 1.0
1.33514e-11, 1.65574, - 1.33514e-11, 1, 1
|m| > 1.0
1.63998e-11, 1.65574, 1.63998e-11, - 1, 1
|m| > 1.0
5.73016e-11, 1.65574, 5.73016e-11, 1, 1
- |m| > 1.0
1.11373e-10, 1.65574, 1.11373e-10, 1, 1
|m| > - 1.0
1.42147e-10, 1.65574, 1.42147e-10, 1, 1
|m| > 1.0
- 3.80063e-10, 1.65574, 3.80063e-10, 1, 1
|m| > 1.0
6.09163e-10, - 1.65574, 6.09163e-10, 1, 1
|m| > 1.0
1.02216e-09, 1.65574, - 1.02216e-09, 1, 1
|m| > 1.0
2.88192e-09, 1.65574, 2.88192e-09, - 1, 1
|m| > 1.0
4.76278e-09, 1.65574, 4.76278e-09, 1, 1
- |m| > 1.0
8.85413e-09, 1.65574, 8.85413e-09, 1, 1
|m| > - 1.0
2.30503e-08, 1.65574, 2.30503e-08, 1, 1
|m| > 1.0
- 5.93925e-08, 1.65574, 5.93925e-08, 1, 1
|m| > 1.0
1.16676e-07, - 1.65574, 1.16676e-07, 1, 1
|m| > 1.0
2.37997e-07, 1.65574, - 2.37997e-07, 1, 1
|m| > 1.0
4.68466e-07, 1.65574, 4.68466e-07, - 1, 1
|m| > 1.0
9.3827e-07, 1.65574, 9.3827e-07, 1, 1
- |m| > 1.0
1.10399e-06, 1.65574, 1.10399e-06, 1, 1
|m| > - 1.0
3.29178e-06, 1.65574, 3.29178e-06, 1, 1
|m| > 1.0
- 7.51721e-06, 1.65574, 7.51721e-06, 1, 1
|m| > 1.0
1.51147e-05, - 1.65574, 1.51147e-05, 1, 1
|m| > 1.0
2.9864e-05, 1.65574, - 2.9864e-05, 1, 1
|m| > 1.0
3.38703e-05, 1.65574, 3.38703e-05, - 1, 1
|m| > 1.0
9.06601e-05, 1.65574, 9.06601e-05, 1, 1
- |m| > 1.0
0.000219495, 1.65574, 0.000219495, 1, 1
|m| > - 1.0
0.000439522, 1.65574, 0.000439521, 1, 1
|m| > 1.0
- 0.000633315, 1.65574, 0.000633315, 1, 0.999999
|m| > 1.0
0.00111512, - 1.65574, 0.00111512, 0.999999, 0.999998
|m| > 1.0
0.00196247, - 1.65574, 0.00196246, 0.999998, 0.999995
|m| > 1.0
0.00555375, - 1.65574, 0.00555365, 0.999985, 0.999958
|m| > 1.0
0.00869113, - 1.65574, 0.00869072, 0.999962, 0.999896
|m| > 1.0
0.0299334, - 1.65574, 0.0299166, 0.999552, 0.998772
|m| > 1.0
0.0512426, - 1.65574, 0.0511588, 0.998691, 0.996406
|m| > 1.0
0.112013, - 1.65574, 0.111143, 0.993804, 0.982922
|m| > 1.0
0.234804, - 1.65574, 0.227, 0.973895, 0.926679
|m| > 1.0
0.489873, 1.65574, - 0.425971, 0.904737, 0.708912
|m| > 1.0
0.751831, 1.65574, - 0.553446, 0.832885, 0.400346
|m| > 1.0
1.65574, 1.65574, 0.408154, - 0.912913, -0.737088
-

-
- - Error - Output For jacobi_dn with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Jacobi Elliptic: Mathworld Data -
-

- |m| - > 1.0
2.98023e-08, 1.5, 2.98023e-08, 1, 1
|m| > 1.0
- -2.98023e-08, 1.5, -2.98023e-08, 1, 1
|m| > 1.0
0.25, 1.5, - 0.24183, 0.970319, 0.931888
|m| > 1.0
-0.25, 1.5, -0.24183, - 0.970319, 0.931888
|m| > 1.0
1.25, 1.5, 0.665876, 0.746063, - -0.0486921
|m| > 1.0
-1.25, 1.5, -0.665876, 0.746063, -0.0486921
- |m| > 1.0
25, 1.5, 0.618665, 0.785655, 0.372585
|m| > 1.0
- -25, 1.5, -0.618665, 0.785655, 0.372585
-

-
- - Error - Output For jacobi_cn with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Jacobi Elliptic: Mathworld Data -
-

- |m| - > 1.0
2.98023e-08, 1.5, 2.98023e-08, 1, 1
|m| > 1.0
- -2.98023e-08, 1.5, -2.98023e-08, 1, 1
|m| > 1.0
0.25, 1.5, - 0.24183, 0.970319, 0.931888
|m| > 1.0
-0.25, 1.5, -0.24183, - 0.970319, 0.931888
|m| > 1.0
1.25, 1.5, 0.665876, 0.746063, - -0.0486921
|m| > 1.0
-1.25, 1.5, -0.665876, 0.746063, -0.0486921
- |m| > 1.0
25, 1.5, 0.618665, 0.785655, 0.372585
|m| > 1.0
- -25, 1.5, -0.618665, 0.785655, 0.372585
-

-
- - Error - Output For jacobi_sn with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Jacobi Elliptic: Mathworld Data -
-

- |m| - > 1.0
2.98023e-08, 1.5, 2.98023e-08, 1, 1
|m| > 1.0
- -2.98023e-08, 1.5, -2.98023e-08, 1, 1
|m| > 1.0
0.25, 1.5, - 0.24183, 0.970319, 0.931888
|m| > 1.0
-0.25, 1.5, -0.24183, - 0.970319, 0.931888
|m| > 1.0
1.25, 1.5, 0.665876, 0.746063, - -0.0486921
|m| > 1.0
-1.25, 1.5, -0.665876, 0.746063, -0.0486921
- |m| > 1.0
25, 1.5, 0.618665, 0.785655, 0.372585
|m| > 1.0
- -25, 1.5, -0.618665, 0.785655, 0.372585
-

-
- - Error - Output For expint (Ei) with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Exponential Integral Ei -
-

- Continued - fraction failed in __expint_En_cont_frac.
-1.30539, -0.134326
-

-
- - Error - Output For non central beta CDF complement with compiler GNU C++ version - 5.1.0 and library Rmath 3.0.2 and test data Non Central Beta, large parameters -
-

- CAUTION: - Gross error found at entry 10.
Found: 9.76918e-10 Expected 1.61248e-15 - Error: 605846
290.682, 72.6705, 20005.4, 0.997663, 1, 1.61248e-15
- CAUTION: Gross error found at entry 11.
Found: 9.94184e-10 Expected - 3.0108e-42 Error: 3.30205e+32
290.682, 145.341, 53489.1, 0.998663, - 1, 3.0108e-42
CAUTION: Gross error found at entry 16.
Found: - 8.45406e-10 Expected 4.46652e-22 Error: 1.89276e+12
290.682, 1162.73, - 2308.07, 0.656921, 1, 4.46652e-22
CAUTION: Gross error found at entry - 17.
Found: 9.41971e-10 Expected 1.7241e-50 Error: 5.46356e+40
- 290.682, 1453.41, 8064.48, 0.832237, 1, 1.7241e-50
CAUTION: Gross error - found at entry 18.
Found: 9.30663e-10 Expected 2.09803e-305 Error: - 4.43589e+295
975.766, 731.824, 232.285, 0.919742, 1, 2.09803e-305
- CAUTION: Gross error found at entry 27.
Found: 9.76918e-10 Expected - 9.3474e-18 Error: 1.04512e+08
1879.05, 187.905, 20005.4, 0.992215, - 1, 9.3474e-18
CAUTION: Gross error found at entry 28.
Found: - 9.94184e-10 Expected 1.8122e-90 Error: 5.48607e+80
1879.05, 469.762, - 53489.1, 0.994618, 1, 1.8122e-90
CAUTION: Gross error found at entry - 32.
Found: 9.27224e-10 Expected 3.18255e-15 Error: 291345
1879.05, - 3758.1, 1879.05, 0.480508, 1, 3.18255e-15
CAUTION: Gross error found - at entry 33.
Found: 8.45406e-10 Expected 1.10218e-77 Error: 7.67029e+67
- 1879.05, 5637.15, 2308.07, 0.458181, 1, 1.10218e-77
CAUTION: Gross - error found at entry 34.
Found: 9.30663e-10 Expected 0 Error: 4.18262e+298
- 2308.07, 1154.03, 232.285, 0.919371, 1, 0
CAUTION: Gross error found - at entry 35.
Found: 8.93617e-10 Expected 0 Error: 4.01612e+298
- 2308.07, 1731.05, 290.682, 0.917262, 1, 0
CAUTION: Gross error found - at entry 43.
Found: 9.94184e-10 Expected 3.57283e-70 Error: 2.78262e+60
- 8064.48, 806.448, 53489.1, 0.988678, 1, 3.57283e-70
CAUTION: Gross - error found at entry 48.
Found: 8.45406e-10 Expected 8.78057e-74 Error: - 9.62814e+63
8064.48, 16129, 2308.07, 0.421531, 1, 8.78057e-74
- CAUTION: Gross error found at entry 49.
Found: 9.30663e-10 Expected - 0 Error: 4.18262e+298
15674.4, 3918.59, 232.285, 0.933726, 1, 0
- CAUTION: Gross error found at entry 50.
Found: 8.93617e-10 Expected - 0 Error: 4.01612e+298
15674.4, 7837.19, 290.682, 0.917179, 1, 0
- CAUTION: Gross error found at entry 51.
Found: 8.9318e-10 Expected - 0 Error: 4.01416e+298
15674.4, 11755.8, 975.766, 0.915784, 1, 0
- CAUTION: Gross error found at entry 63.
Found: 9.41971e-10 Expected - 2.31296e-171 Error: 4.07258e+161
20005.4, 40010.8, 8064.48, 0.432094, - 1, 2.31296e-171
CAUTION: Gross error found at entry 64.
Found: - 9.30663e-10 Expected 0 Error: 4.18262e+298
53489.1, 5348.92, 232.285, - 0.954635, 1, 0
CAUTION: Gross error found at entry 65.
Found: - 8.93617e-10 Expected 0 Error: 4.01612e+298
53489.1, 13372.3, 290.682, - 0.933478, 1, 0
CAUTION: Gross error found at entry 66.
Found: - 8.9318e-10 Expected 0 Error: 4.01416e+298
53489.1, 26744.6, 975.766, - 0.91717, 1, 0
-

-
- - Error - Output For non central beta CDF with compiler GNU C++ version 5.1.0 and library - Rmath 3.0.2 and test data Non Central Beta, large parameters -
-

- CAUTION: - Gross error found at entry 0.
Found: 9.1136e-209 Expected 5.82279e-200 - Error: 6.38913e+08
232.285, 209.056, 232.285, 0.062486, 5.82279e-200, - 1
CAUTION: Gross error found at entry 1.
Found: 4.08108e-115 - Expected 2.37643e-112 Error: 581.304
232.285, 229.962, 290.682, 0.155342, - 2.37643e-112, 1
CAUTION: Gross error found at entry 2.
Found: - 1.07549e-93 Expected 9.53431e-89 Error: 88650
232.285, 232.052, 975.766, - 0.378086, 9.53431e-89, 1
CAUTION: Gross error found at entry 3.
- Found: 2.58402e-54 Expected 8.27353e-53 Error: 31.0181
232.285, 232.285, - 1879.05, 0.625865, 8.27353e-53, 1
CAUTION: Gross error found at entry - 4.
Found: 1.93718e-19 Expected 6.64275e-16 Error: 3428.08
232.285, - 232.308, 2308.07, 0.770774, 6.64275e-16, 1
CAUTION: Gross error found - at entry 21.
Found: 8.12962e-240 Expected 1.82294e-219 Error: 2.24234e+20
- 975.766, 974.79, 1879.05, 0.331337, 1.82294e-219, 1
CAUTION: Gross - error found at entry 22.
Found: 3.47274e-69 Expected 1.42183e-67 Error: - 39.9426
975.766, 975.766, 2308.07, 0.514323, 1.42183e-67, 1
CAUTION: - Gross error found at entry 23.
Found: 5.86885e-50 Expected 1.27896e-47 - Error: 216.923
975.766, 975.863, 8064.48, 0.753209, 1.27896e-47, 1
- CAUTION: Gross error found at entry 39.
Found: 4.82785e-230 Expected - 1.25446e-213 Error: 2.59838e+16
2308.07, 2308.07, 8064.48, 0.54983, - 1.25446e-213, 1
CAUTION: Gross error found at entry 40.
Found: - 1.22971e-87 Expected 1.82618e-85 Error: 147.505
2308.07, 2308.3, 15674.4, - 0.733174, 1.82618e-85, 1
CAUTION: Gross error found at entry 56.
- Found: 2.97337e-127 Expected 2.56068e-124 Error: 860.205
15674.4, 15675.9, - 20005.4, 0.55883, 2.56068e-124, 1
-

-
- - Error - Output For non central beta CDF complement with compiler GNU C++ version - 5.1.0 and library Rmath 3.0.2 and test data Non Central Beta, medium parameters -
-

- CAUTION: - Gross error found at entry 296.
Found: 9.44166e-10 Expected 6.22975e-10 - Error: 0.515577
22.9367, 114.683, 19.5081, 0.480981, 1, 6.22975e-10
- CAUTION: Gross error found at entry 369.
Found: 2.52234e-10 Expected - 1.40246e-10 Error: 0.79851
27.5277, 20.6457, 0.956697, 0.915111, 1, - 1.40246e-10
CAUTION: Gross error found at entry 429.
Found: 1.18105e-09 - Expected 7.45745e-10 Error: 0.58372
28.8063, 21.6047, 60.3826, 0.946143, - 1, 7.45745e-10
CAUTION: Gross error found at entry 430.
Found: - 2.44435e-09 Expected 1.60695e-09 Error: 0.521115
28.8063, 21.6047, - 148.129, 0.965121, 1, 1.60695e-09
CAUTION: Gross error found at entry - 477.
Found: 7.57435e-10 Expected 7.14133e-11 Error: 9.60635
28.8063, - 144.032, 42.3849, 0.504845, 1, 7.14133e-11
CAUTION: Gross error found - at entry 489.
Found: 4.8561e-10 Expected 5.62991e-11 Error: 7.62553
- 31.9438, 23.9579, 44.2068, 0.93835, 1, 5.62991e-11
CAUTION: Gross error - found at entry 490.
Found: 8.35187e-10 Expected 1.87483e-10 Error: - 3.45473
31.9438, 23.9579, 135.747, 0.961117, 1, 1.87483e-10
CAUTION: - Gross error found at entry 491.
Found: 1.00174e-09 Expected 2.38491e-10 - Error: 3.20032
31.9438, 23.9579, 191.501, 0.968273, 1, 2.38491e-10
- CAUTION: Gross error found at entry 537.
Found: 7.29746e-10 Expected - 1.31223e-12 Error: 555.111
31.9438, 159.719, 34.2373, 0.489796, 1, - 1.31223e-12
CAUTION: Gross error found at entry 538.
Found: 2.49663e-09 - Expected 1.54239e-09 Error: 0.618681
31.9438, 159.719, 126.472, 0.581861, - 1, 1.54239e-09
CAUTION: Gross error found at entry 549.
Found: - 4.16125e-10 Expected 4.8536e-13 Error: 856.353
38.0822, 28.5617, 34.773, - 0.931853, 1, 4.8536e-13
CAUTION: Gross error found at entry 550.
- Found: 9.69907e-10 Expected 2.87054e-12 Error: 336.883
38.0822, 28.5617, - 127.953, 0.956104, 1, 2.87054e-12
CAUTION: Gross error found at entry - 551.
Found: 5.90132e-10 Expected 4.08361e-12 Error: 143.512
38.0822, - 28.5617, 183.147, 0.963764, 1, 4.08361e-12
CAUTION: Gross error found - at entry 597.
Found: 4.67033e-10 Expected 9.82939e-16 Error: 475139
- 38.0822, 190.411, 27.0954, 0.475419, 1, 9.82939e-16
CAUTION: Gross - error found at entry 598.
Found: 9.33207e-10 Expected 4.03465e-12 Error: - 230.298
38.0822, 190.411, 100.733, 0.544491, 1, 4.03465e-12
CAUTION: - Gross error found at entry 599.
Found: 7.4092e-10 Expected 9.53942e-11 - Error: 6.76693
38.0822, 190.411, 169.826, 0.594614, 1, 9.53942e-11
- CAUTION: Gross error found at entry 609.
Found: 5.71813e-10 Expected - 1.17207e-14 Error: 48785.7
42.7789, 32.0842, 28.3773, 0.927814, 1, - 1.17207e-14
CAUTION: Gross error found at entry 610.
Found: 5.16834e-10 - Expected 9.62679e-14 Error: 5367.71
42.7789, 32.0842, 109.376, 0.950307, - 1, 9.62679e-14
CAUTION: Gross error found at entry 611.
Found: - 6.08012e-10 Expected 1.7454e-13 Error: 3482.51
42.7789, 32.0842, 175.686, - 0.960431, 1, 1.7454e-13
CAUTION: Gross error found at entry 657.
- Found: 5.59489e-10 Expected 2.86344e-18 Error: 1.95391e+08
42.7789, - 213.895, 21.9724, 0.467166, 1, 2.86344e-18
CAUTION: Gross error found - at entry 658.
Found: 5.14798e-10 Expected 2.50972e-14 Error: 20511.2
- 42.7789, 213.895, 84.4175, 0.522676, 1, 2.50972e-14
CAUTION: Gross - error found at entry 659.
Found: 8.49991e-10 Expected 2.38005e-12 Error: - 356.131
42.7789, 213.895, 160.056, 0.576191, 1, 2.38005e-12
CAUTION: - Gross error found at entry 671.
Found: 3.03281e-10 Expected 2.22036e-15 - Error: 136590
44.5963, 33.4472, 22.4929, 0.924976, 1, 2.22036e-15
- CAUTION: Gross error found at entry 672.
Found: 8.40636e-10 Expected - 2.22384e-14 Error: 37800.1
44.5963, 33.4472, 94.9517, 0.946545, 1, - 2.22384e-14
CAUTION: Gross error found at entry 673.
Found: 8.15021e-10 - Expected 4.75974e-14 Error: 17122.2
44.5963, 33.4472, 162.945, 0.95793, - 1, 4.75974e-14
CAUTION: Gross error found at entry 716.
Found: - 1.11988e-10 Expected 2.84965e-22 Error: 3.92989e+11
44.5963, 222.981, - 0.956697, 0.445432, 1, 2.84965e-22
CAUTION: Gross error found at entry - 717.
Found: 7.99524e-10 Expected 3.04552e-15 Error: 262523
44.5963, - 222.981, 78.4454, 0.515267, 1, 3.04552e-15
CAUTION: Gross error found - at entry 718.
Found: 8.0958e-10 Expected 5.89458e-13 Error: 1372.43
- 44.5963, 222.981, 158.441, 0.57107, 1, 5.89458e-13
*** FURTHER CONTENT - HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For non central beta CDF with compiler GNU C++ version 5.1.0 and library - Rmath 3.0.2 and test data Non Central Beta, medium parameters -
-

- CAUTION: - Gross error found at entry 14.
Found: 4.64669e-35 Expected 7.14875e-33 - Error: 152.846
1.45431, 1.30887, 158.441, 0.0983847, 7.14875e-33, 1
- CAUTION: Gross error found at entry 15.
Found: 4.66674e-46 Expected - 3.13332e-40 Error: 671416
1.45431, 1.30887, 196.222, 0.09869, 3.13332e-40, - 1
CAUTION: Gross error found at entry 18.
Found: 5.84342e-28 - Expected 3.61559e-27 Error: 5.18745
1.45431, 1.43976, 159.586, 0.245596, - 3.61559e-27, 1
CAUTION: Gross error found at entry 19.
Found: - 1.72833e-34 Expected 1.76943e-33 Error: 9.2378
1.45431, 1.43976, 198.576, - 0.246444, 1.76943e-33, 1
CAUTION: Gross error found at entry 22.
- Found: 1.76915e-19 Expected 3.69506e-18 Error: 19.8861
1.45431, 1.45285, - 159.621, 0.491116, 3.69506e-18, 1
CAUTION: Gross error found at entry - 23.
Found: 2.52007e-25 Expected 2.00482e-22 Error: 794.544
1.45431, - 1.45285, 199.292, 0.492849, 2.00482e-22, 1
CAUTION: Gross error found - at entry 73.
Found: 2.04477e-34 Expected 2.45287e-33 Error: 10.9958
- 7.62448, 6.86203, 148.129, 0.0921776, 2.45287e-33, 1
CAUTION: Gross - error found at entry 74.
Found: 2.36587e-46 Expected 7.32638e-42 Error: - 30966
7.62448, 6.86203, 193.539, 0.093784, 7.32638e-42, 1
CAUTION: - Gross error found at entry 76.
Found: 3.29122e-26 Expected 7.418e-25 - Error: 21.5387
7.62448, 7.54824, 148.626, 0.228717, 7.418e-25, 1
- CAUTION: Gross error found at entry 77.
Found: 1.70126e-32 Expected - 1.07666e-31 Error: 5.32864
7.62448, 7.54824, 193.774, 0.23303, 1.07666e-31, - 1
CAUTION: Gross error found at entry 79.
Found: 1.3478e-15 Expected - 4.21836e-15 Error: 2.12982
7.62448, 7.61686, 151.548, 0.457773, 4.21836e-15, - 1
CAUTION: Gross error found at entry 80.
Found: 8.78487e-21 - Expected 3.41238e-19 Error: 37.8438
7.62448, 7.61686, 194.119, 0.465826, - 3.41238e-19, 1
CAUTION: Gross error found at entry 132.
Found: - 3.85783e-23 Expected 1.54142e-22 Error: 2.99555
19.9593, 17.9634, 44.2068, - 0.0698905, 1.54142e-22, 1
CAUTION: Gross error found at entry 133.
- Found: 8.6122e-39 Expected 3.94361e-38 Error: 3.5791
19.9593, 17.9634, - 135.747, 0.0829178, 3.94361e-38, 1
CAUTION: Gross error found at entry - 134.
Found: 3.61781e-52 Expected 3.98669e-48 Error: 11018.6
19.9593, - 17.9634, 191.501, 0.0864897, 3.98669e-48, 1
CAUTION: Gross error found - at entry 135.
Found: 2.07122e-15 Expected 7.08614e-15 Error: 2.42124
- 19.9593, 19.7597, 55.6996, 0.176444, 7.08614e-15, 1
CAUTION: Gross - error found at entry 136.
Found: 2.28223e-27 Expected 2.16759e-25 Error: - 93.977
19.9593, 19.7597, 136.272, 0.20393, 2.16759e-25, 1
CAUTION: - Gross error found at entry 137.
Found: 6.4251e-34 Expected 4.0064e-33 - Error: 5.23554
19.9593, 19.7597, 191.898, 0.213398, 4.0064e-33, 1
- CAUTION: Gross error found at entry 139.
Found: 2.1734e-14 Expected - 4.65637e-14 Error: 1.14243
19.9593, 19.9394, 145.168, 0.410858, 4.65637e-14, - 1
CAUTION: Gross error found at entry 140.
Found: 2.18388e-19 - Expected 5.1677e-18 Error: 22.663
19.9593, 19.9394, 192.978, 0.426523, - 5.1677e-18, 1
CAUTION: Gross error found at entry 192.
Found: - 3.29537e-23 Expected 8.29996e-23 Error: 1.51867
22.4174, 20.1757, 34.773, - 0.0661999, 8.29996e-23, 1
CAUTION: Gross error found at entry 193.
- Found: 7.86091e-39 Expected 2.77686e-38 Error: 2.5325
22.4174, 20.1757, - 127.953, 0.0809614, 2.77686e-38, 1
CAUTION: Gross error found at entry - 194.
Found: 3.0161e-51 Expected 4.5396e-48 Error: 1504.12
22.4174, - 20.1757, 183.147, 0.0848857, 4.5396e-48, 1
CAUTION: Gross error found - at entry 195.
Found: 3.08022e-14 Expected 1.42713e-13 Error: 3.6332
- 22.4174, 22.1932, 37.6764, 0.162145, 1.42713e-13, 1
CAUTION: Gross - error found at entry 196.
Found: 8.89935e-28 Expected 2.56187e-25 Error: - 286.871
22.4174, 22.1932, 131.096, 0.199361, 2.56187e-25, 1
CAUTION: - Gross error found at entry 197.
Found: 9.34392e-34 Expected 6.14831e-33 - Error: 5.58001
22.4174, 22.1932, 186.799, 0.209601, 6.14831e-33, 1
- CAUTION: Gross error found at entry 199.
Found: 2.79341e-13 Expected - 4.79277e-13 Error: 0.71574
22.4174, 22.395, 131.148, 0.398015, 4.79277e-13, - 1
CAUTION: Gross error found at entry 200.
Found: 3.13989e-19 - Expected 7.01608e-18 Error: 21.345
22.4174, 22.395, 191.433, 0.419933, - 7.01608e-18, 1
*** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For legendre_p (associated) with compiler GNU C++ version 5.1.0 and - library GSL 1.16 and test data Associated Legendre Polynomials: Small Values -
-

- domain - error
3.75573, -3, 0.264719, 0.0186823
domain error
3.75573, - -3, 0.670017, 0.0085227
domain error
3.75573, -3, 0.915014, 0.00136786
- domain error
3.75573, -3, 0.93539, 0.000921218
domain error
- 3.75573, -2, -0.804919, -0.035427
domain error
3.75573, -2, -0.623236, - -0.0476446
domain error
3.75573, -2, 0.629447, 0.0475072
- domain error
3.75573, -2, 0.929777, 0.0157498
domain error
- 3.75573, -2, 0.985763, 0.0034837
domain error
3.75573, -1, 0.093763, - -0.118979
domain error
4.28576, -4, 0.0944412, 0.00255792
- domain error
4.28576, -4, 0.670017, 0.000790849
domain error
- 4.28576, -3, -0.746026, -0.00458957
domain error
4.28576, -2, - -0.623236, 0.0219016
domain error
4.28576, -2, 0.629447, 0.0223081
- domain error
4.28576, -2, 0.93539, 0.0133504
domain error
- 4.28576, -1, 0.915014, 0.132001
domain error
4.28576, -1, 0.985763, - 0.0787743
domain error
4.43859, -4, 0.093763, 0.00255858
- domain error
4.43859, -4, 0.811584, 0.000303404
domain error
- 4.43859, -4, 0.826752, 0.000260835
domain error
4.43859, -4, - 0.929777, 4.78235e-05
domain error
4.43859, -3, -0.804919, -0.00350364
- domain error
4.43859, -3, -0.729046, -0.00487043
domain error
- 4.43859, -3, -0.623236, -0.00620995
domain error
4.43859, -3, - 0.93539, 0.000861698
domain error
4.43859, -2, -0.557932, 0.0169167
- domain error
4.43859, -2, -0.443004, 0.0062586
domain error
- 4.43859, -2, 0.915014, 0.016481
domain error
4.43859, -1, 0.629447, - -0.0138523
domain error
5.39088, -5, 0.0944412, 0.000254649
- domain error
5.39088, -5, 0.264719, 0.000217164
domain error
- 5.39088, -5, 0.670017, 5.87083e-05
domain error
5.39088, -5, - 0.915014, 2.78273e-06
domain error
5.39088, -3, 0.929777, 0.000880849
- domain error
5.39088, -2, 0.629447, 0.00448021
domain error
- 5.39088, -2, 0.826752, 0.01718
domain error
5.39088, -2, 0.937736, - 0.011583
domain error
5.39088, -1, -0.804919, 0.0276144
- domain error
5.39088, -1, -0.746026, -0.0119425
domain error
- 5.39088, -1, -0.443004, -0.0525987
domain error
5.39088, -1, - 0.811584, 0.032475
domain error
5.39088, -1, 0.985763, 0.0759289
- domain error
5.97861, -5, -0.729046, 3.91223e-05
domain error
- 5.97861, -5, -0.383666, 0.000174899
domain error
5.97861, -5, - 0.93539, 1.43993e-06
domain error
5.97861, -4, -0.623236, -0.000607048
- domain error
5.97861, -4, 0.264719, 0.00059614
domain error
- 5.97861, -3, 0.629447, 0.00313497
domain error
5.97861, -3, 0.670017, - 0.00323895
domain error
5.97861, -2, 0.915014, 0.0140705
- domain error
5.97861, -2, 0.992923, 0.00171356
domain error
- 5.97861, -1, -0.746026, -0.0119425
domain error
5.97861, -1, - 0.937736, 0.106972
domain error
7.01297, -6, -0.443004, -4.99177e-06
- domain error
7.01297, -6, 0.629447, 3.00689e-06
domain error
- 7.01297, -6, 0.811584, 7.00407e-07
domain error
7.01297, -6, - 0.985763, 4.83431e-10
domain error
7.01297, -3, 0.670017, 0.000233323
- domain error
7.01297, -2, -0.804919, -0.0027739
domain error
- 7.01297, -1, -0.383666, 0.0397866
domain error
7.01297, -1, 0.929777, - 0.0544549
domain error
7.54701, -7, 0.929777, 1.42008e-09
- domain error
7.54701, -6, 0.992923, 6.04622e-11
domain error
- 7.54701, -5, -0.804919, 1.18502e-05
domain error
7.54701, -5, - -0.623236, 2.57049e-05
domain error
7.54701, -5, -0.557932, 2.60266e-05
- domain error
7.54701, -5, 0.826752, 9.64276e-06
domain error
- 7.54701, -4, -0.746026, -0.0001618
domain error
7.54701, -3, - 0.0944412, 0.000622493
domain error
7.54701, -3, 0.985763, 9.14782e-05
- domain error
7.54701, -1, 0.811584, -0.0376184
domain error
- 11.8439, -10, -0.557932, -2.32652e-11
domain error
11.8439, -10, - 0.811584, 1.01194e-12
domain error
11.8439, -8, -0.746026, -1.34891e-09
- domain error
11.8439, -8, -0.729046, -1.5428e-09
domain error
- 11.8439, -8, 0.985763, 5.90035e-14
domain error
11.8439, -4, - 0.629447, -1.44723e-05
domain error
11.8439, -4, 0.929777, 1.98812e-05
- domain error
11.8439, -3, 0.670017, -4.58296e-05
domain error
- 11.8439, -2, 0.826752, -0.00244759
domain error
11.8439, -2, - 0.992923, 0.00151458
domain error
11.8439, -1, -0.383666, 0.00419108
- domain error
11.85, -11, 0.093763, 1.16526e-11
domain error
- 11.85, -11, 0.929777, 2.05797e-16
domain error
11.85, -11, 0.93539, - 1.32249e-16
domain error
*** FURTHER CONTENT HAS BEEN TRUNCATED - FOR BREVITY ***
-

-
- - Error - Output For legendre_p (associated) with compiler GNU C++ version 5.1.0 and - library <tr1/cmath> and test data Associated Legendre Polynomials: - Small Values -
-

- order - parameters less than 0 not supported in TR1
3.75573, -3, 0.264719, - 0.0186823
order parameters less than 0 not supported in TR1
3.75573, - -3, 0.670017, 0.0085227
order parameters less than 0 not supported - in TR1
3.75573, -3, 0.915014, 0.00136786
order parameters less - than 0 not supported in TR1
3.75573, -3, 0.93539, 0.000921218
- order parameters less than 0 not supported in TR1
3.75573, -2, -0.804919, - -0.035427
order parameters less than 0 not supported in TR1
3.75573, - -2, -0.623236, -0.0476446
order parameters less than 0 not supported - in TR1
3.75573, -2, 0.629447, 0.0475072
order parameters less - than 0 not supported in TR1
3.75573, -2, 0.929777, 0.0157498
- order parameters less than 0 not supported in TR1
3.75573, -2, 0.985763, - 0.0034837
order parameters less than 0 not supported in TR1
3.75573, - -1, 0.093763, -0.118979
order parameters less than 0 not supported - in TR1
4.28576, -4, 0.0944412, 0.00255792
order parameters less - than 0 not supported in TR1
4.28576, -4, 0.670017, 0.000790849
- order parameters less than 0 not supported in TR1
4.28576, -3, -0.746026, - -0.00458957
order parameters less than 0 not supported in TR1
- 4.28576, -2, -0.623236, 0.0219016
order parameters less than 0 not - supported in TR1
4.28576, -2, 0.629447, 0.0223081
order parameters - less than 0 not supported in TR1
4.28576, -2, 0.93539, 0.0133504
- order parameters less than 0 not supported in TR1
4.28576, -1, 0.915014, - 0.132001
order parameters less than 0 not supported in TR1
4.28576, - -1, 0.985763, 0.0787743
order parameters less than 0 not supported - in TR1
4.43859, -4, 0.093763, 0.00255858
order parameters less - than 0 not supported in TR1
4.43859, -4, 0.811584, 0.000303404
- order parameters less than 0 not supported in TR1
4.43859, -4, 0.826752, - 0.000260835
order parameters less than 0 not supported in TR1
- 4.43859, -4, 0.929777, 4.78235e-05
order parameters less than 0 not - supported in TR1
4.43859, -3, -0.804919, -0.00350364
order parameters - less than 0 not supported in TR1
4.43859, -3, -0.729046, -0.00487043
- order parameters less than 0 not supported in TR1
4.43859, -3, -0.623236, - -0.00620995
order parameters less than 0 not supported in TR1
- 4.43859, -3, 0.93539, 0.000861698
order parameters less than 0 not - supported in TR1
4.43859, -2, -0.557932, 0.0169167
order parameters - less than 0 not supported in TR1
4.43859, -2, -0.443004, 0.0062586
- order parameters less than 0 not supported in TR1
4.43859, -2, 0.915014, - 0.016481
order parameters less than 0 not supported in TR1
4.43859, - -1, 0.629447, -0.0138523
order parameters less than 0 not supported - in TR1
5.39088, -5, 0.0944412, 0.000254649
order parameters less - than 0 not supported in TR1
5.39088, -5, 0.264719, 0.000217164
- order parameters less than 0 not supported in TR1
5.39088, -5, 0.670017, - 5.87083e-05
order parameters less than 0 not supported in TR1
- 5.39088, -5, 0.915014, 2.78273e-06
order parameters less than 0 not - supported in TR1
5.39088, -3, 0.929777, 0.000880849
order parameters - less than 0 not supported in TR1
5.39088, -2, 0.629447, 0.00448021
- order parameters less than 0 not supported in TR1
5.39088, -2, 0.826752, - 0.01718
order parameters less than 0 not supported in TR1
5.39088, - -2, 0.937736, 0.011583
order parameters less than 0 not supported in - TR1
5.39088, -1, -0.804919, 0.0276144
order parameters less than - 0 not supported in TR1
5.39088, -1, -0.746026, -0.0119425
order - parameters less than 0 not supported in TR1
5.39088, -1, -0.443004, - -0.0525987
order parameters less than 0 not supported in TR1
- 5.39088, -1, 0.811584, 0.032475
order parameters less than 0 not supported - in TR1
5.39088, -1, 0.985763, 0.0759289
order parameters less - than 0 not supported in TR1
5.97861, -5, -0.729046, 3.91223e-05
- order parameters less than 0 not supported in TR1
5.97861, -5, -0.383666, - 0.000174899
order parameters less than 0 not supported in TR1
- 5.97861, -5, 0.93539, 1.43993e-06
order parameters less than 0 not - supported in TR1
5.97861, -4, -0.623236, -0.000607048
order parameters - less than 0 not supported in TR1
5.97861, -4, 0.264719, 0.00059614
- order parameters less than 0 not supported in TR1
5.97861, -3, 0.629447, - 0.00313497
*** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For ellint_rj with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data RJ: Random data -
-

- domain - error
1.77787e-31, 1.40657e+18, 10.046, -4.8298e-10, -2.51795e-10
- domain error
3.37448e-31, 4.65772e+22, 0.469831, -4.33756e-09, -2.95865e-11
- domain error
5.25297e-31, 5.85483e+25, 2.02482e-15, -1.87347e-28, 3.36445e+07
- domain error
6.22216e-31, 3.43401e+23, 0.673005, -2.7626e-13, -7.58898e-12
- domain error
6.26875e-31, 2.62568e-13, 1.06394e+24, -1.36451e+14, -6.70372e-25
- domain error
6.84599e-31, 3.57666e-29, 1.82191e+11, -3.63292e+08, -8.35235e-13
- domain error
8.90482e-31, 1.97093e-28, 1.14939e-31, -1.26424e-12, -6.39454e+26
- domain error
1.07374e-30, 1.70005e-12, 1.88773e-25, -1.16558e-29, 4.31668e+32
- domain error
1.17141e-30, 24.2523, 3.67522e+21, -4.79065e-22, 2.2702e-05
- domain error
1.64143e-30, 2.01978e-22, 2.58942e+12, -8.52649e-12, -2.82629e+06
- domain error
1.85141e-30, 0.0386712, 2.37846e-13, -1.57357e+15, -1.38574e-13
- domain error
2.70034e-30, 4.43896e-24, 7.54576e+16, -1.1436e-14, -1.10082e+07
- domain error
4.01162e-30, 2.73343e+23, 1.32333e+13, -1.86032e-07, -4.16626e-25
- domain error
4.13665e-30, 1.08034e-30, 3.13547e-16, -5.58099e-08, -5.14643e+16
- domain error
4.3728e-30, 7.79812e+12, 8.58894e+21, -4.58312e-24, 5.28901e-09
- domain error
5.6397e-30, 1.64768e+23, 9.64423e-15, -1.82207e+20, -1.62886e-30
- domain error
9.89841e-30, 9.69731e+10, 1.03263e+21, -0.00343967, -9.62714e-22
- domain error
1.3797e-29, 6.03357e+08, 5.62497e-15, -5.87235e+16, -5.80287e-20
- domain error
1.96963e-29, 3.22384e-25, 2.92187e+23, -3.80643e+27, -8.2513e-38
- domain error
2.00927e-29, 5.6976e-05, 1.16219e+25, -1.64129e-22, 0.00318397
- domain error
7.29506e-29, 5904.94, 9.93922e+10, -19.528, -1.60795e-09
- domain error
1.19698e-28, 1.66816e-22, 28472, -1.21137e-19, -5.84699e+17
- domain error
1.64095e-28, 2.13421e-21, 7.8914e-15, -1.77584e-07, -1.70156e+15
- domain error
2.03475e-28, 4.40987e+15, 28739.1, -9624.5, -1.29418e-12
- domain error
2.73113e-28, 1.08457e+19, 4.00674e+08, -5.70043e-11, 1.092e-17
- domain error
5.52633e-28, 1.45707e-17, 1.29411e-27, -1.67255e-15, -5.84881e+24
- domain error
5.61278e-28, 9.22881e-12, 8.64222e-13, -5.6282e+23, -4.57782e-18
- domain error
6.08465e-28, 1.32249e+26, 1.25536e-30, -1.89097e-14, -223.246
- domain error
9.50943e-28, 2.49682e-18, 0.000904584, -3.1419e-12, -2.44954e+14
- domain error
1.20779e-27, 35383.2, 1.35533e-15, -4.67834e-24, 3.20581e+15
- domain error
2.29822e-27, 3.35258e-16, 2.60689e+08, -9.99161e-20, -5.4924e+11
- domain error
3.0926e-27, 3.11839e-13, 3.37883e-23, -1.94349e+26, -3.55191e-19
- domain error
3.12803e-27, 1.15118e+16, 1.52495e+10, -4.2399e+13, -3.07515e-21
- domain error
4.49747e-27, 716.685, 1.69018e-23, -1.32558e-14, -9.2291e+13
- domain error
4.84575e-27, 3.44028e-27, 3.42665e+09, -812.399, -2.12767e-06
- domain error
5.81424e-27, 3.70845e-15, 3.69338e+11, -4.15794e+06, -2.95944e-11
- domain error
6.08654e-27, 1.23742e+08, 1.09124e-26, -2.19946e+16, -4.90896e-19
- domain error
7.71967e-27, 9.46115e-26, 1.24324e+25, -522800, -5.83203e-17
- domain error
9.20037e-27, 207550, 2.45782e-17, -6.06901e+29, -2.88945e-31
- domain error
1.75502e-26, 5.81507e+16, 8.83063e+21, -1.11214e-21, 1.57697e-11
- domain error
2.29965e-26, 2.9716e-21, 1.81059e-25, -5.23972e-08, -6.23302e+18
- domain error
2.32628e-26, 0.0655133, 1.62901e-21, -7.15441e-17, -9.88586e+17
- domain error
3.49194e-26, 2.53343e+14, 756.217, -1.3359e+10, -1.275e-16
- domain error
1.009e-25, 0.0694304, 1.20267e-14, -1.55746e-22, 2.10701e+17
- domain error
3.54771e-25, 1.67999e-27, 2.3917e+24, -9.98754e+25, -1.11704e-36
- domain error
6.31714e-25, 3.4594e-28, 6.37951e-24, -1.25529e-24, -9.56292e+35
- domain error
6.74086e-25, 2.47169e+12, 1.32962e+23, -6.78845e+06, -3.32861e-24
- domain error
1.8099e-24, 4.5215e-06, 8.66937e-11, -3.70795e-08, -1.41893e+11
- domain error
2.29798e-24, 9.30454e-30, 6.56584e-17, -9890.38, -373149
- domain error
2.88161e-24, 8.82377e-05, 1.57747e+21, -4.25068e-24, 2260.61
- domain error
3.25991e-24, 1.92923e+29, 3.09752e-05, -1.00986e+11, -1.25485e-24
- domain error
6.36705e-24, 2.8074e+22, 1.75569e-13, -1.53152e+24, -4.89823e-34
- domain error
7.90772e-24, 2.11611e-30, 1.42682e-07, -0.00296297, -5.38814e+07
- domain error
1.05302e-23, 4.83473e+26, 4.43149e-30, -1.56818e+13, -3.6836e-25
- *** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For ellint_1 with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Elliptic Integral F: Mathworld Data -
-

- CAUTION: - Gross error found at entry 9.
Found: -7.02862e+09 Expected 1.04181e+20 - Error: 1.18973e+4932
1e+20, 0.390625, 1.04181e+20
CAUTION: Gross - error found at entry 10.
Found: -9.3866e+09 Expected 1.39133e+50 Error: - 1.18973e+4932
1e+50, 0.875, 1.39133e+50
-

-
- - Error - Output For ibeta with compiler GNU C++ version 5.1.0 and library GSL 1.16 - and test data Incomplete Beta Function: Large and Diverse Values -
-

- underflow
- 1.04761e-05, 39078.2, 0.913384, 95444.4, 0, 1, 0
underflow
1.2158e-05, - 24110.5, 0.135563, 82239.7, 0, 1, 0
underflow
1.30342e-05, 26168.3, - 0.127074, 76710.7, 0, 1, 0
underflow
1.51962e-05, 16177.5, 0.814742, - 65795.4, 0, 1, 0
underflow
1.64873e-05, 470997, 0.127074, 60639.1, - 0, 1, 0
underflow
1.66259e-05, 147819, 0.632396, 60134.5, 0, - 1, 0
underflow
1.78638e-05, 439.387, 0.835025, 55972.4, 0, 1, - 0
underflow
2.00434e-05, 482.007, 0.905801, 49885.1, 0, 1, 0
- underflow
2.05189e-05, 236088, 0.835025, 48722.7, 0, 1, 0
underflow
- 2.14336e-05, 3719.28, 0.814742, 46647, 0, 1, 0
underflow
2.24486e-05, - 445071, 0.221112, 44532.6, 0, 1, 0
underflow
2.34849e-05, 25542.8, - 0.968871, 42569.8, 0, 1, 0
underflow
2.39993e-05, 462.946, 0.814742, - 41661.1, 0, 1, 0
underflow
2.52178e-05, 1832.27, 0.913384, 39646.4, - 0, 1, 0
underflow
2.87756e-05, 25491.8, 0.905801, 34740.9, 0, - 1, 0
underflow
2.89316e-05, 494.984, 0.968871, 34557.6, 0, 1, - 0
underflow
3.11413e-05, 348144, 0.308236, 32098.3, 0, 1, 0
- underflow
3.12319e-05, 33713, 0.221112, 32007.5, 0, 1, 0
underflow
- 3.19889e-05, 3931.19, 0.308236, 31251.9, 0, 1, 0
underflow
3.27129e-05, - 3109.49, 0.968871, 30560.4, 0, 1, 0
underflow
3.27529e-05, 25796.3, - 0.835025, 30520.9, 0, 1, 0
underflow
3.34106e-05, 3378.01, 0.221112, - 29922, 0, 1, 0
underflow
3.40793e-05, 288783, 0.814742, 29330.2, - 0, 1, 0
underflow
3.46418e-05, 411.559, 0.913384, 28860.3, 0, - 1, 0
underflow
3.61632e-05, 311937, 0.905801, 27639.2, 0, 1, - 0
underflow
3.75686e-05, 386440, 0.913384, 26604.5, 0, 1, 0
- underflow
3.99261e-05, 495352, 0.968871, 25032.6, 0, 1, 0
underflow
- 4.01492e-05, 3246.23, 0.905801, 24898.5, 0, 1, 0
underflow
4.0288e-05, - 2569.28, 0.835025, 24812.9, 0, 1, 0
underflow
4.11667e-05, 24253.8, - 0.308236, 24280.8, 0, 1, 0
underflow
4.17714e-05, 274447, 0.135563, - 23926.7, 0, 1, 0
underflow
4.66877e-05, 3780.93, 0.632396, 21410.1, - 0, 1, 0
underflow
4.73604e-05, 48598.7, 0.632396, 21103.3, 0, - 1, 0
underflow
0.00013245, 251.768, 0.968871, 7543.9, 0, 1, 0
- underflow
0.000168283, 195801, 0.905801, 5929.61, 0, 1, 0
underflow
- 0.000177906, 276489, 0.814742, 5607.86, 0, 1, 0
underflow
0.000183097, - 316055, 0.127074, 5448.36, 0, 1, 0
underflow
0.000190369, 159132, - 0.835025, 5240.42, 0, 1, 0
underflow
0.000191066, 419861, 0.913384, - 5220.29, 0, 1, 0
underflow
0.000192195, 177798, 0.308236, 5190.39, - 0, 1, 0
underflow
0.000220499, 107380, 0.135563, 4523.03, 0, - 1, 0
underflow
0.00022254, 1432.25, 0.814742, 4485.74, 0, 1, - 0
underflow
0.000240291, 49604.4, 0.632396, 4150.25, 0, 1, 0
- underflow
0.000251444, 15605.8, 0.135563, 3966.81, 0, 1, 0
underflow
- 0.000274279, 289206, 0.968871, 3632.79, 0, 1, 0
underflow
0.000274343, - 2954.47, 0.308236, 3636.51, 0, 1, 0
underflow
0.000278714, 4023.16, - 0.632396, 3579.05, 0, 1, 0
underflow
0.000288369, 460073, 0.221112, - 3454.19, 0, 1, 0
underflow
0.000294717, 4642.26, 0.221112, 3384.08, - 0, 1, 0
underflow
0.000303403, 2574.36, 0.835025, 3287.52, 0, - 1, 0
underflow
0.000304309, 4480.75, 0.905801, 3277.17, 0, 1, - 0
underflow
0.00031313, 47957, 0.308236, 3182.22, 0, 1, 0
- underflow
0.000320063, 25544.6, 0.905801, 3113.68, 0, 1, 0
underflow
- 0.000334818, 29065.5, 0.968871, 2975.86, 0, 1, 0
underflow
0.00034899, - 41187.6, 0.913384, 2854.23, 0, 1, 0
underflow
0.000350247, 426.308, - 0.905801, 2848.5, 0, 1, 0
underflow
0.000357727, 31752.2, 0.127074, - 2784.5, 0, 1, 0
underflow
0.000412091, 367.714, 0.913384, 2420.17, - 0, 1, 0
underflow
0.000417933, 4668.47, 0.968871, 2383.72, 0, - 1, 0
underflow
0.000424632, 17994.9, 0.221112, 2344.63, 0, 1, - 0
underflow
0.000427051, 2443.44, 0.913384, 2333.28, 0, 1, 0
- underflow
0.000437724, 454399, 0.632396, 2270.98, 0, 1, 0
underflow
- 0.000450377, 10660.8, 0.835025, 2210.53, 0, 1, 0
underflow
0.000475601, - 19603, 0.814742, 2092.17, 0, 1, 0
underflow
0.00116972, 4487.22, - 0.221112, 845.964, 0, 1, 0
underflow
0.00124188, 211066, 0.632396, - 792.493, 0, 1, 0
underflow
0.00128578, 4738.41, 0.308236, 768.75, - 0, 1, 0
underflow
0.00133388, 46277.8, 0.913384, 738.46, 0, 1, - 0
underflow
0.00138692, 2158.76, 0.814742, 712.816, 0, 1, 0
- underflow
0.00153268, 13060.2, 0.968871, 642.474, 0, 1, 0
underflow
- 0.00159946, 1780.43, 0.968871, 617.202, 0, 1, 0
*** FURTHER CONTENT - HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For non central chi squared CDF complement with compiler GNU C++ version - 5.1.0 and library Rmath 3.0.2 and test data Non Central Chi Squared, large - parameters -
-

- CAUTION: - Gross error found at entry 12.
Found: 0 Expected 1.17655e-12 Error: - 5.28771e+295
101.815, 5236.73, 6406.25, 1, 1.17655e-12
CAUTION: - Gross error found at entry 13.
Found: 0 Expected 1.79374e-44 Error: - 8.06149e+263
101.815, 9735.22, 12788.2, 1, 1.79374e-44
CAUTION: - Gross error found at entry 35.
Found: 2.58322e-14 Expected 1.84404e-61 - Error: 1.40085e+47
107.623, 122.456, 920.317, 1, 1.84404e-61
- CAUTION: Gross error found at entry 36.
Found: 0 Expected 2.30757e-102 - Error: 1.03707e+206
107.623, 156.292, 1319.58, 1, 2.30757e-102
- CAUTION: Gross error found at entry 52.
Found: 0 Expected 6.40952e-24 - Error: 2.88059e+284
114.68, 417.884, 1065.13, 1, 6.40952e-24
- CAUTION: Gross error found at entry 53.
Found: 0 Expected 1.02366e-98 - Error: 4.60058e+209
114.68, 669.781, 2353.38, 1, 1.02366e-98
- CAUTION: Gross error found at entry 69.
Found: 0 Expected 6.55726e-39 - Error: 2.94699e+269
118.032, 3168.71, 4930.11, 1, 6.55726e-39
- CAUTION: Gross error found at entry 85.
Found: 0 Expected 7.30688e-22 - Error: 3.28388e+286
163.004, 9735.22, 11877.9, 1, 7.30688e-22
- CAUTION: Gross error found at entry 86.
Found: 0 Expected 1.17171e-111 - Error: 5.26596e+196
163.004, 25344.1, 33159.2, 1, 1.17171e-111
- CAUTION: Gross error found at entry 108.
Found: 1.12388e-13 Expected - 2.67349e-61 Error: 4.20382e+47
256.292, 122.456, 1136.25, 1, 2.67349e-61
- CAUTION: Gross error found at entry 109.
Found: 1.16437e-13 Expected - 8.30595e-116 Error: 1.40185e+102
256.292, 156.292, 1650.34, 1, 8.30595e-116
- CAUTION: Gross error found at entry 124.
Found: 1.05786e-13 Expected - 1.01672e-15 Error: 103.046
517.884, 417.884, 1403.65, 1, 1.01672e-15
- CAUTION: Gross error found at entry 125.
Found: 2.00748e-13 Expected - 3.50192e-56 Error: 5.73249e+42
517.884, 669.781, 2375.33, 1, 3.50192e-56
- CAUTION: Gross error found at entry 141.
Found: 0 Expected 1.36924e-20 - Error: 6.15368e+287
769.781, 3168.71, 5120.04, 1, 1.36924e-20
- CAUTION: Gross error found at entry 142.
Found: 0 Expected 3.19215e-72 - Error: 1.43463e+236
769.781, 5236.73, 9009.76, 1, 3.19215e-72
- CAUTION: Gross error found at entry 157.
Found: 0 Expected 7.26231e-08 - Error: 3.26385e+300
1223.88, 9735.22, 12055, 1, 7.26231e-08
CAUTION: - Gross error found at entry 158.
Found: 0 Expected 4.5906e-56 Error: - 2.06312e+252
1223.88, 25344.1, 31881.6, 1, 4.5906e-56
CAUTION: - Gross error found at entry 194.
Found: 0 Expected 5.34714e-12 Error: - 2.40313e+296
9835.22, 122.456, 10953.4, 1, 5.34714e-12
CAUTION: - Gross error found at entry 195.
Found: 0 Expected 4.84412e-40 Error: - 2.17706e+268
9835.22, 156.292, 11989.8, 1, 4.84412e-40
CAUTION: - Gross error found at entry 196.
Found: 0 Expected 5.50199e-83 Error: - 2.47272e+225
9835.22, 417.884, 13329, 1, 5.50199e-83
CAUTION: - Gross error found at entry 197.
Found: 0 Expected 1.28192e-205 Error: - 5.76124e+102
9835.22, 669.781, 15757.5, 1, 1.28192e-205
CAUTION: - Gross error found at entry 211.
Found: 0 Expected 3.83272e-28 Error: - 1.72251e+280
25444.1, 1123.88, 29224.8, 1, 3.83272e-28
CAUTION: - Gross error found at entry 212.
Found: 0 Expected 1.69815e-101 Error: - 7.63188e+206
25444.1, 3168.71, 34335.4, 1, 1.69815e-101
CAUTION: - Gross error found at entry 213.
Found: 0 Expected 1.09245e-217 Error: - 4.90974e+90
25444.1, 5236.73, 39885.1, 1, 1.09245e-217
-

-
- - Error - Output For non central chi squared CDF complement with compiler GNU C++ version - 5.1.0 and library Rmath 3.0.2 and test data Non Central Chi Squared, medium - parameters -
-

- CAUTION: - Gross error found at entry 36.
Found: 1.10682e-14 Expected 1.30043e-26 - Error: 8.5112e+11
1.95191, 109.376, 445.313, 1, 1.30043e-26
CAUTION: - Gross error found at entry 37.
Found: 0 Expected 1.45478e-39 Error: - 6.53812e+268
1.95191, 109.444, 556.98, 1, 1.45478e-39
CAUTION: - Gross error found at entry 54.
Found: 2.92171e-14 Expected 4.25949e-21 - Error: 6.85929e+06
1.95191, 159.586, 484.613, 1, 4.25949e-21
- CAUTION: Gross error found at entry 55.
Found: 0 Expected 1.33424e-37 - Error: 5.99639e+270
1.95191, 159.621, 646.292, 1, 1.33424e-37
- CAUTION: Gross error found at entry 56.
Found: 1.25148e-14 Expected - 1.95903e-56 Error: 6.38827e+41
1.95191, 160.056, 810.04, 1, 1.95903e-56
- CAUTION: Gross error found at entry 73.
Found: 0 Expected 4.34735e-25 - Error: 1.9538e+283
1.95191, 193.539, 586.473, 1, 4.34735e-25
- CAUTION: Gross error found at entry 74.
Found: 0 Expected 4.66119e-45 - Error: 2.09485e+263
1.95191, 193.774, 782.902, 1, 4.66119e-45
- CAUTION: Gross error found at entry 75.
Found: 4.74517e-15 Expected - 8.92248e-68 Error: 5.31822e+52
1.95191, 194.119, 980.352, 1, 8.92248e-68
- CAUTION: Gross error found at entry 111.
Found: 0 Expected 3.1064e-15 - Error: 1.39609e+293
20.4105, 84.4175, 314.484, 1, 3.1064e-15
- CAUTION: Gross error found at entry 112.
Found: 0 Expected 7.50903e-29 - Error: 3.37473e+279
20.4105, 94.9517, 461.449, 1, 7.50903e-29
- CAUTION: Gross error found at entry 113.
Found: 3.76711e-15 Expected - 1.74225e-43 Error: 2.16221e+28
20.4105, 97.0751, 587.428, 1, 1.74225e-43
- CAUTION: Gross error found at entry 130.
Found: 8.67958e-16 Expected - 4.13277e-23 Error: 2.10018e+07
20.4105, 151.548, 515.876, 1, 4.13277e-23
- CAUTION: Gross error found at entry 131.
Found: 1.75872e-14 Expected - 1.92146e-41 Error: 9.15306e+26
20.4105, 152.75, 692.642, 1, 1.92146e-41
- CAUTION: Gross error found at entry 132.
Found: 1.38411e-14 Expected - 7.09864e-64 Error: 1.94983e+49
20.4105, 158.441, 894.26, 1, 7.09864e-64
- CAUTION: Gross error found at entry 149.
Found: 2.39067e-16 Expected - 8.74501e-28 Error: 2.73375e+11
20.4105, 191.433, 635.532, 1, 8.74501e-28
- CAUTION: Gross error found at entry 150.
Found: 0 Expected 6.94227e-50 - Error: 3.12002e+258
20.4105, 191.501, 847.648, 1, 6.94227e-50
- CAUTION: Gross error found at entry 151.
Found: 3.41288e-14 Expected - 5.3889e-75 Error: 6.33316e+60
20.4105, 191.898, 1061.55, 1, 5.3889e-75
- CAUTION: Gross error found at entry 206.
Found: 5.84423e-15 Expected - 2.69136e-22 Error: 2.17148e+07
22.8625, 141.209, 492.215, 1, 2.69136e-22
- CAUTION: Gross error found at entry 207.
Found: 3.60645e-14 Expected - 1.64941e-40 Error: 2.18651e+26
22.8625, 145.168, 672.121, 1, 1.64941e-40
- CAUTION: Gross error found at entry 208.
Found: 3.7348e-14 Expected - 1.6094e-61 Error: 2.32061e+47
22.8625, 148.129, 854.96, 1, 1.6094e-61
- CAUTION: Gross error found at entry 225.
Found: 0 Expected 3.73672e-27 - Error: 1.67937e+281
22.8625, 182.675, 616.613, 1, 3.73672e-27
- CAUTION: Gross error found at entry 226.
Found: 0 Expected 8.85688e-49 - Error: 3.98049e+259
22.8625, 183.147, 824.038, 1, 8.85688e-49
- CAUTION: Gross error found at entry 227.
Found: 0 Expected 2.29176e-74 - Error: 1.02997e+234
22.8625, 186.799, 1048.31, 1, 2.29176e-74
- CAUTION: Gross error found at entry 282.
Found: 0 Expected 2.18831e-21 - Error: 9.8348e+286
23.3804, 132.721, 468.305, 1, 2.18831e-21
- CAUTION: Gross error found at entry 283.
Found: 0 Expected 1.3071e-38 - Error: 5.87439e+269
23.3804, 135.747, 636.51, 1, 1.3071e-38
CAUTION: - Gross error found at entry 284.
Found: 1.84636e-14 Expected 8.27843e-58 - Error: 2.23032e+43
23.3804, 136.272, 798.262, 1, 8.27843e-58
- CAUTION: Gross error found at entry 301.
Found: 0 Expected 9.85282e-26 - Error: 4.42808e+282
23.3804, 169.826, 579.619, 1, 9.85282e-26
- CAUTION: Gross error found at entry 302.
Found: 0 Expected 4.8094e-47 - Error: 2.16145e+261
23.3804, 174.486, 791.465, 1, 4.8094e-47
- CAUTION: Gross error found at entry 303.
Found: 9.1344e-17 Expected - 6.70476e-71 Error: 1.36238e+54
23.3804, 175.686, 995.333, 1, 6.70476e-71
- CAUTION: Gross error found at entry 358.
Found: 0 Expected 3.9702e-21 - Error: 1.7843e+287
26.2704, 126.472, 458.227, 1, 3.9702e-21
CAUTION: - Gross error found at entry 359.
*** FURTHER CONTENT HAS BEEN TRUNCATED - FOR BREVITY ***
-

-
- - Error - Output For non central t CDF complement with compiler GNU C++ version 5.1.0 - and library Rmath 3.0.2 and test data Non Central T -
-

- CAUTION: - Gross error found at entry 56.
Found: 0.000186411 Expected 7.85192e-05 - Error: 1.37408
61.6335, 46.2251, 68.8608, 0.999921, 7.85192e-05
- CAUTION: Gross error found at entry 75.
Found: 0.00011439 Expected - 5.05344e-05 Error: 1.26361
80.8418, 60.6313, 86.1278, 0.999949, 5.05344e-05
- CAUTION: Gross error found at entry 93.
Found: 0.000655162 Expected - 0.000423927 Error: 0.545458
100.733, 50.3663, 65.7619, 0.999576, 0.000423927
- CAUTION: Gross error found at entry 112.
Found: 0.000518249 Expected - 0.00034473 Error: 0.503348
127.953, 63.9764, 81.0824, 0.999655, 0.00034473
-

-
- - Error - Output For non central t CDF with compiler GNU C++ version 5.1.0 and library - Rmath 3.0.2 and test data Non Central T -
-

- CAUTION: - Gross error found at entry 74.
Found: 0.000830062 Expected 0.000522858 - Error: 0.587549
79.7478, -39.8739, -53.8066, 0.000522858, 0.999477
- CAUTION: Gross error found at entry 94.
Found: 7.69292e-05 Expected - 3.54024e-05 Error: 1.17299
101.191, -75.8936, -104.104, 3.54024e-05, - 0.999965
CAUTION: Gross error found at entry 113.
Found: 5.07713e-05 - Expected 2.4439e-05 Error: 1.07747
128.792, -96.5942, -128.112, 2.4439e-05, - 0.999976
CAUTION: Gross error found at entry 132.
Found: 4.08612e-05 - Expected 2.01542e-05 Error: 1.02743
146.56, -109.92, -143.392, 2.01542e-05, - 0.99998
CAUTION: Gross error found at entry 151.
Found: 3.55146e-05 - Expected 1.7803e-05 Error: 0.994869
159.586, -119.689, -154.522, 1.7803e-05, - 0.999982
CAUTION: Gross error found at entry 170.
Found: 3.03671e-05 - Expected 1.55023e-05 Error: 0.958873
175.686, -131.765, -168.211, 1.55023e-05, - 0.999984
CAUTION: Gross error found at entry 189.
Found: 2.61339e-05 - Expected 1.3581e-05 Error: 0.924298
192.978, -144.733, -182.834, 1.3581e-05, - 0.999986
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Bessel J: Mathworld Data -
-

- CAUTION: - Gross error found at entry 6.
Found: 0 Expected -0.000747424 Error: - 3.3591e+304
5.5, 1e+06, -0.000747424
CAUTION: Gross error found - at entry 7.
Found: 0 Expected -0.0007766 Error: 3.49022e+304
- 5.125, 1e+06, -0.0007766
CAUTION: Gross error found at entry 8.
- Found: 0 Expected -0.000466323 Error: 2.09576e+304
5.875, 1e+06, -0.000466323
-

-
- - Error - Output For cyl_bessel_j (integer orders) with compiler GNU C++ version 5.1.0 - and library Rmath 3.0.2 and test data Bessel JN: Mathworld Data (Integer - Version) -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 5
- Found: -nan Expected 0.234062 Error: 1.79769e+308
5, -10, 0.234062
- CAUTION: Gross error found at entry 5.
Found: -nan Expected 0.234062 - Error: 1.79769e+308
5, -10, 0.234062
CAUTION: Gross error found - at entry 6.
Found: 0 Expected 0.000725964 Error: 3.26265e+304
- -5, 1e+06, 0.000725964
CAUTION: Gross error found at entry 7.
- Found: 0 Expected -0.000725964 Error: 3.26265e+304
5, 1e+06, -0.000725964
- CAUTION: Found non-finite result, when a finite value was expected at entry - 8
Found: -nan Expected 0.000249758 Error: 1.79769e+308
-5, -1, - 0.000249758
CAUTION: Gross error found at entry 8.
Found: -nan - Expected 0.000249758 Error: 1.79769e+308
-5, -1, 0.000249758
- CAUTION: Found non-finite result, when a finite value was expected at entry - 10
Found: -nan Expected 0.207486 Error: 1.79769e+308
10, -10, - 0.207486
CAUTION: Gross error found at entry 10.
Found: -nan - Expected 0.207486 Error: 1.79769e+308
10, -10, 0.207486
CAUTION: - Found non-finite result, when a finite value was expected at entry 11
- Found: -nan Expected 0.0014678 Error: 1.79769e+308
10, -5, 0.0014678
- CAUTION: Gross error found at entry 11.
Found: -nan Expected 0.0014678 - Error: 1.79769e+308
10, -5, 0.0014678
CAUTION: Gross error found - at entry 12.
Found: 0 Expected -0.000331079 Error: 1.48795e+304
- -10, 1e+06, -0.000331079
CAUTION: Gross error found at entry 13.
- Found: 0 Expected -0.000331079 Error: 1.48795e+304
10, 1e+06, -0.000331079
-

-
- - Error - Output For cyl_bessel_j (integer orders) with compiler GNU C++ version 5.1.0 - and library Rmath 3.0.2 and test data Bessel J1: Mathworld Data (Integer - Version) -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 2
- Found: -nan Expected -0.576725 Error: 1.79769e+308
1, -2, -0.576725
- CAUTION: Gross error found at entry 2.
Found: -nan Expected -0.576725 - Error: 1.79769e+308
1, -2, -0.576725
CAUTION: Found non-finite - result, when a finite value was expected at entry 4
Found: -nan Expected - -0.234636 Error: 1.79769e+308
1, -8, -0.234636
CAUTION: Gross - error found at entry 4.
Found: -nan Expected -0.234636 Error: 1.79769e+308
- 1, -8, -0.234636
CAUTION: Found non-finite result, when a finite value - was expected at entry 7
Found: -nan Expected -0.0434727 Error: 1.79769e+308
- 1, -10, -0.0434727
CAUTION: Gross error found at entry 7.
Found: - -nan Expected -0.0434727 Error: 1.79769e+308
1, -10, -0.0434727
-

-
- - Error - Output For cyl_bessel_j (integer orders) with compiler GNU C++ version 5.1.0 - and library Rmath 3.0.2 and test data Bessel J0: Mathworld Data (Integer - Version) -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 2
- Found: -nan Expected 0.223891 Error: 1.79769e+308
0, -2, 0.223891
- CAUTION: Gross error found at entry 2.
Found: -nan Expected 0.223891 - Error: 1.79769e+308
0, -2, 0.223891
CAUTION: Found non-finite - result, when a finite value was expected at entry 4
Found: -nan Expected - 0.171651 Error: 1.79769e+308
0, -8, 0.171651
CAUTION: Gross error - found at entry 4.
Found: -nan Expected 0.171651 Error: 1.79769e+308
- 0, -8, 0.171651
CAUTION: Found non-finite result, when a finite value - was expected at entry 7
Found: -nan Expected -0.245936 Error: 1.79769e+308
- 0, -10, -0.245936
CAUTION: Gross error found at entry 7.
Found: - -nan Expected -0.245936 Error: 1.79769e+308
0, -10, -0.245936
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Bessel JN: Mathworld Data -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 5
- Found: -nan Expected 0.234062 Error: 1.79769e+308
5, -10, 0.234062
- CAUTION: Gross error found at entry 5.
Found: -nan Expected 0.234062 - Error: 1.79769e+308
5, -10, 0.234062
CAUTION: Gross error found - at entry 6.
Found: 0 Expected 0.000725964 Error: 3.26265e+304
- -5, 1e+06, 0.000725964
CAUTION: Gross error found at entry 7.
- Found: 0 Expected -0.000725964 Error: 3.26265e+304
5, 1e+06, -0.000725964
- CAUTION: Found non-finite result, when a finite value was expected at entry - 8
Found: -nan Expected 0.000249758 Error: 1.79769e+308
-5, -1, - 0.000249758
CAUTION: Gross error found at entry 8.
Found: -nan - Expected 0.000249758 Error: 1.79769e+308
-5, -1, 0.000249758
- CAUTION: Found non-finite result, when a finite value was expected at entry - 10
Found: -nan Expected 0.207486 Error: 1.79769e+308
10, -10, - 0.207486
CAUTION: Gross error found at entry 10.
Found: -nan - Expected 0.207486 Error: 1.79769e+308
10, -10, 0.207486
CAUTION: - Found non-finite result, when a finite value was expected at entry 11
- Found: -nan Expected 0.0014678 Error: 1.79769e+308
10, -5, 0.0014678
- CAUTION: Gross error found at entry 11.
Found: -nan Expected 0.0014678 - Error: 1.79769e+308
10, -5, 0.0014678
CAUTION: Gross error found - at entry 12.
Found: 0 Expected -0.000331079 Error: 1.48795e+304
- -10, 1e+06, -0.000331079
CAUTION: Gross error found at entry 13.
- Found: 0 Expected -0.000331079 Error: 1.48795e+304
10, 1e+06, -0.000331079
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Bessel J1: Mathworld Data -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 2
- Found: -nan Expected -0.576725 Error: 1.79769e+308
1, -2, -0.576725
- CAUTION: Gross error found at entry 2.
Found: -nan Expected -0.576725 - Error: 1.79769e+308
1, -2, -0.576725
CAUTION: Found non-finite - result, when a finite value was expected at entry 4
Found: -nan Expected - -0.234636 Error: 1.79769e+308
1, -8, -0.234636
CAUTION: Gross - error found at entry 4.
Found: -nan Expected -0.234636 Error: 1.79769e+308
- 1, -8, -0.234636
CAUTION: Found non-finite result, when a finite value - was expected at entry 7
Found: -nan Expected -0.0434727 Error: 1.79769e+308
- 1, -10, -0.0434727
CAUTION: Gross error found at entry 7.
Found: - -nan Expected -0.0434727 Error: 1.79769e+308
1, -10, -0.0434727
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Bessel J0: Mathworld Data -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 2
- Found: -nan Expected 0.223891 Error: 1.79769e+308
0, -2, 0.223891
- CAUTION: Gross error found at entry 2.
Found: -nan Expected 0.223891 - Error: 1.79769e+308
0, -2, 0.223891
CAUTION: Found non-finite - result, when a finite value was expected at entry 4
Found: -nan Expected - 0.171651 Error: 1.79769e+308
0, -8, 0.171651
CAUTION: Gross error - found at entry 4.
Found: -nan Expected 0.171651 Error: 1.79769e+308
- 0, -8, 0.171651
CAUTION: Found non-finite result, when a finite value - was expected at entry 7
Found: -nan Expected -0.245936 Error: 1.79769e+308
- 0, -10, -0.245936
CAUTION: Gross error found at entry 7.
Found: - -nan Expected -0.245936 Error: 1.79769e+308
0, -10, -0.245936
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel J: Random Data -
-

- underflow
- 63.8868, 5.5381e-05, 0
underflow
63.8868, 6.9304e-05, 0
- underflow
63.8868, 0.000232641, 0
underflow
63.8868, 0.000448, - 8.39912e-323
underflow
63.8868, 0.000550287, 4.32897e-317
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel J: Mathworld Data (large values) -
-

- domain - error
-0.5, 1.2459e-206, 7.14823e+102
domain error
-256, - 8, 0
domain error
-2.5, 4, -0.0145679
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel J: Mathworld Data -
-

- domain - error
-5.5, 3.1416, -2.5582
domain error
-5.5, 10000, 0.00244984
- domain error
-5.5, 10000, 0.00244984
domain error
-5.5, - 1e+06, 0.000279243
domain error
-0.5, 101, 0.0708185
domain - error
-10.0003, 0.000976562, 1.41474e+35
domain error
-10.0003, - 15, -0.0902239
domain error
-10.0003, 100, -0.0547614
domain - error
-8.5, 12.5664, -0.257087
-

-
- - Error - Output For cyl_bessel_j (integer orders) with compiler GNU C++ version 5.1.0 - and library GSL 1.16 and test data Bessel JN: Mathworld Data (Integer Version) -
-

- underflow
- 10, 1e-100, 0
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel JN: Mathworld Data -
-

- domain - error
-1, 1.25, -0.510623
domain error
-2, 0, 0
domain - error
5, -10, 0.234062
domain error
-5, 1e+06, 0.000725964
- domain error
-5, -1, 0.000249758
domain error
10, -10, - 0.207486
domain error
10, -5, 0.0014678
domain error
- -10, 1e+06, -0.000331079
underflow
10, 1e-100, 0
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel J1: Mathworld Data -
-

- domain - error
1, -2, -0.576725
domain error
1, -8, -0.234636
- domain error
1, -10, -0.0434727
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel J0: Mathworld Data -
-

- domain - error
0, -2, 0.223891
domain error
0, -8, 0.171651
- domain error
0, -10, -0.245936
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel J: Mathworld Data (large values) -
-

- Bad - argument in cyl_bessel_j.
- -0.5, 1.2459e-206, 7.14823e+102
Bad argument in cyl_bessel_j.
- -256, 8, 1.46866e-353
Bad argument in cyl_bessel_j.
- -2.5, 4, -0.0145679
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel J: Mathworld Data -
-

- Bad - argument in cyl_bessel_j.
- -5.5, 3.1416, -2.5582
Bad argument in cyl_bessel_j.
- -5.5, 10000, 0.00244984
Bad argument in cyl_bessel_j.
- -5.5, 10000, 0.00244984
Bad argument in cyl_bessel_j.
- -5.5, 1e+06, 0.000279243
Bad argument in cyl_bessel_j.
- -0.5, 101, 0.0708185
Bad argument in cyl_bessel_j.
- -10.0003, 0.000976562, 1.41474e+35
Bad argument in cyl_bessel_j.
- -10.0003, 15, -0.0902239
Bad argument in cyl_bessel_j.
- -10.0003, 100, -0.0547614
Bad argument in cyl_bessel_j.
- -8.5, 12.5664, -0.257087
-

-
- - Error - Output For cyl_bessel_j (integer orders) with compiler GNU C++ version 5.1.0 - and library <tr1/cmath> and test data Bessel JN: Mathworld Data (Integer - Version) -
-

- Bad - argument in cyl_bessel_j.
- -1, 1.25, -0.510623
Bad argument in cyl_bessel_j.
- -2, 0, 0
Bad argument in cyl_bessel_j.
- 5, -10, 0.234062
Bad argument in cyl_bessel_j.
- -5, 1e+06, 0.000725964
Bad argument in cyl_bessel_j.
- -5, -1, 0.000249758
Bad argument in cyl_bessel_j.
- 10, -10, 0.207486
Bad argument in cyl_bessel_j.
- 10, -5, 0.0014678
Bad argument in cyl_bessel_j.
- -10, 1e+06, -0.000331079
CAUTION: Gross error found at entry 15.
- Found: 0.0042409 Expected 0.00128318 Error: 2.305
1000, 100000, 0.00128318
-

-
- - Error - Output For cyl_bessel_j (integer orders) with compiler GNU C++ version 5.1.0 - and library <tr1/cmath> and test data Bessel J1: Mathworld Data (Integer - Version) -
-

- Bad - argument in cyl_bessel_j.
- 1, -2, -0.576725
Bad argument in cyl_bessel_j.
- 1, -8, -0.234636
Bad argument in cyl_bessel_j.
- 1, -10, -0.0434727
-

-
- - Error - Output For cyl_bessel_j (integer orders) with compiler GNU C++ version 5.1.0 - and library <tr1/cmath> and test data Bessel J0: Mathworld Data (Integer - Version) -
-

- Bad - argument in cyl_bessel_j.
- 0, -2, 0.223891
Bad argument in cyl_bessel_j.
- 0, -8, 0.171651
Bad argument in cyl_bessel_j.
- 0, -10, -0.245936
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel JN: Mathworld Data -
-

- Bad - argument in cyl_bessel_j.
- -1, 1.25, -0.510623
Bad argument in cyl_bessel_j.
- -2, 0, 0
Bad argument in cyl_bessel_j.
- 5, -10, 0.234062
Bad argument in cyl_bessel_j.
- -5, 1e+06, 0.000725964
Bad argument in cyl_bessel_j.
- -5, -1, 0.000249758
Bad argument in cyl_bessel_j.
- 10, -10, 0.207486
Bad argument in cyl_bessel_j.
- 10, -5, 0.0014678
Bad argument in cyl_bessel_j.
- -10, 1e+06, -0.000331079
CAUTION: Gross error found at entry 15.
- Found: 0.0042409 Expected 0.00128318 Error: 2.305
1000, 100000, 0.00128318
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel J1: Mathworld Data -
-

- Bad - argument in cyl_bessel_j.
- 1, -2, -0.576725
Bad argument in cyl_bessel_j.
- 1, -8, -0.234636
Bad argument in cyl_bessel_j.
- 1, -10, -0.0434727
-

-
- - Error - Output For cyl_bessel_j with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel J0: Mathworld Data -
-

- Bad - argument in cyl_bessel_j.
- 0, -2, 0.223891
Bad argument in cyl_bessel_j.
- 0, -8, 0.171651
Bad argument in cyl_bessel_j.
- 0, -10, -0.245936
-

-
- - Error - Output For ellint_2 (complete) with compiler GNU C++ version 5.1.0 and library - GSL 1.16 and test data Elliptic Integral E: Mathworld Data -
-

- domain - error
-1, 1
-

-
- - Error - Output For ellint_2 with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Elliptic Integral E: Mathworld Data -
-

- CAUTION: - Gross error found at entry 7.
Found: -6.3027e+09 Expected 9.34215e+09 - Error: 1.18973e+4932
1e+10, -0.5, 9.34215e+09
CAUTION: Gross - error found at entry 8.
Found: -6.48129e+09 Expected 7.08861e+19 Error: - 1.18973e+4932
7.3787e+19, 0.390625, 7.08861e+19
CAUTION: Gross - error found at entry 9.
Found: -5.13973e+09 Expected 7.1259e+49 Error: - 1.18973e+4932
9.35361e+49, 0.878906, 7.1259e+49
-

-
- - Error - Output For ellint_3 (complete) with compiler GNU C++ version 5.1.0 and library - GSL 1.16 and test data Complete Elliptic Integral PI: Mathworld Data -
-

- domain - error
-4.14952e+180, 0.5, 7.71119e-91
-

-
- - Error - Output For ellint_3 with compiler GNU C++ version 5.1.0 and library GSL 1.16 - and test data Elliptic Integral PI: Mathworld Data -
-

- domain - error
1.125, 10, 0.25, 0.662468
domain error
1.125, 3, - 0.25, -0.142697
domain error
1.00391, 21.5, 0.125, -0.535406
- domain error
1, 2, 0.5, -2.87535
domain error
1, -2, 0.5, - 2.87535
domain error
1, 2, 6.22302e-61, -2.18504
domain - error
1, -2, 6.22302e-61, 2.18504
domain error
20, 3.14257, - 0.5, 0.000975941
domain error
20, -3.14257, 0.5, -0.000975941
- domain error
1.01562, 1.6958, 0.5, -27.1647
domain error
- 1.01562, -1.6958, 0.5, 27.1647
-

-
- - Error - Output For ellint_3 (complete) with compiler GNU C++ version 5.1.0 and library - <tr1/cmath> and test data Complete Elliptic Integral PI: Random Data -
-

- Argument - too small in ellint_rj
- -87.1743, 0.126987, 0.167413
Argument too small in ellint_rj
- -87.1743, 0.135477, 0.167431
Argument too small in ellint_rj
- -87.1743, 0.221034, 0.167683
Argument too small in ellint_rj
- -87.1743, 0.308167, 0.168078
Argument too small in ellint_rj
- -87.1743, 0.632359, 0.17122
Argument too small in ellint_rj
- -87.1743, 0.814724, 0.175341
Argument too small in ellint_rj
- -87.1743, 0.835009, 0.176056
Argument too small in ellint_rj
- -87.1743, 0.905792, 0.179501
Argument too small in ellint_rj
- -87.1743, 0.913376, 0.180014
Argument too small in ellint_rj
- -87.1743, 0.968868, 0.186162
Argument too small in ellint_rj
- -86.3168, 0.126987, 0.168233
Argument too small in ellint_rj
- -86.3168, 0.135477, 0.168252
Argument too small in ellint_rj
- -86.3168, 0.221034, 0.168506
Argument too small in ellint_rj
- -86.3168, 0.308167, 0.168905
Argument too small in ellint_rj
- -86.3168, 0.632359, 0.172077
Argument too small in ellint_rj
- -86.3168, 0.814724, 0.176237
Argument too small in ellint_rj
- -86.3168, 0.835009, 0.176958
Argument too small in ellint_rj
- -86.3168, 0.905792, 0.180437
Argument too small in ellint_rj
- -86.3168, 0.913376, 0.180955
Argument too small in ellint_rj
- -86.3168, 0.968868, 0.187163
Argument too small in ellint_rj
- -77.6756, 0.126987, 0.177238
Argument too small in ellint_rj
- -77.6756, 0.135477, 0.177258
Argument too small in ellint_rj
- -77.6756, 0.221034, 0.17754
Argument too small in ellint_rj
- -77.6756, 0.308167, 0.17798
Argument too small in ellint_rj
- -77.6756, 0.632359, 0.181485
Argument too small in ellint_rj
- -77.6756, 0.814724, 0.186089
Argument too small in ellint_rj
- -77.6756, 0.835009, 0.186888
Argument too small in ellint_rj
- -77.6756, 0.905792, 0.190742
Argument too small in ellint_rj
- -77.6756, 0.913376, 0.191315
Argument too small in ellint_rj
- -77.6756, 0.968868, 0.1982
Argument too small in ellint_rj
- -68.8751, 0.126987, 0.188077
Argument too small in ellint_rj
- -68.8751, 0.135477, 0.188099
Argument too small in ellint_rj
- -68.8751, 0.221034, 0.188414
Argument too small in ellint_rj
- -68.8751, 0.308167, 0.188907
Argument too small in ellint_rj
- -68.8751, 0.632359, 0.192834
Argument too small in ellint_rj
- -68.8751, 0.814724, 0.198
Argument too small in ellint_rj
- -68.8751, 0.835009, 0.198896
Argument too small in ellint_rj
- -68.8751, 0.905792, 0.203226
Argument too small in ellint_rj
- -68.8751, 0.913376, 0.203871
Argument too small in ellint_rj
- -68.8751, 0.968868, 0.211615
Argument too small in ellint_rj
- -36.1317, 0.126987, 0.258074
Argument too small in ellint_rj
- -36.1317, 0.135477, 0.258115
Argument too small in ellint_rj
- -36.1317, 0.221034, 0.258686
Argument too small in ellint_rj
- -36.1317, 0.308167, 0.259579
Argument too small in ellint_rj
- -36.1317, 0.632359, 0.266738
Argument too small in ellint_rj
- -36.1317, 0.814724, 0.276242
Argument too small in ellint_rj
- -36.1317, 0.835009, 0.2779
Argument too small in ellint_rj
- -36.1317, 0.905792, 0.285938
Argument too small in ellint_rj
- -36.1317, 0.913376, 0.287139
Argument too small in ellint_rj
- -36.1317, 0.968868, 0.301608
Argument too small in ellint_rj
- -17.7129, 0.126987, 0.363673
Argument too small in ellint_rj
- -17.7129, 0.135477, 0.36375
Argument too small in ellint_rj
- -17.7129, 0.221034, 0.364822
Argument too small in ellint_rj
- -17.7129, 0.308167, 0.366503
Argument too small in ellint_rj
- -17.7129, 0.632359, 0.380066
Argument too small in ellint_rj
- -17.7129, 0.814724, 0.398311
Argument too small in ellint_rj
- -17.7129, 0.835009, 0.401518
Argument too small in ellint_rj
- -17.7129, 0.905792, 0.417145
Argument too small in ellint_rj
- -17.7129, 0.913376, 0.41949
Argument too small in ellint_rj
- -17.7129, 0.968868, 0.447893
Argument too small in ellint_rj
- -15.6641, 0.126987, 0.385409
Argument too small in ellint_rj
- -15.6641, 0.135477, 0.385495
Argument too small in ellint_rj
- -15.6641, 0.221034, 0.386686
Argument too small in ellint_rj
- -15.6641, 0.308167, 0.388553
Argument too small in ellint_rj
- -15.6641, 0.632359, 0.403643
Argument too small in ellint_rj
- *** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For ellint_3 (complete) with compiler GNU C++ version 5.1.0 and library - <tr1/cmath> and test data Complete Elliptic Integral PI: Mathworld - Data -
-

- CAUTION: - Gross error found at entry 3.
Found: 1.28255 Expected 2.22144 Error: - 0.732051
0.5, 0, 2.22144
Argument too small in ellint_rj
- -4, 0.3, 0.712709
Argument too small in ellint_rj
- -100000, -0.5, 0.00496945
Argument too small in ellint_rj
- -1e+10, -0.75, 1.5708e-05
CAUTION: Gross error found at entry 8.
- Found: 1.45615 Expected 101.045 Error: 68.3919
0.999023, -0.875, 101.045
- Argument too small in ellint_rj
- -4.14952e+180, 0.5, 7.71119e-91
-

-
- - Error - Output For ellint_3 with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Elliptic Integral PI: Large Random Data -
-

- Argument - too small in ellint_rj
- -88.2952, -8.04919, 0.814724, -0.874724
Argument too small in ellint_rj
-88.2952, - -7.46026, 0.135477, -0.827189
Argument too small in ellint_rj
- -88.2952, -7.29046, 0.905792, -0.877476
Argument too small in ellint_rj
-88.2952, - -6.23236, 0.835009, -0.652152
Argument too small in ellint_rj
- -88.2952, -5.57932, 0.126987, -0.512276
Argument too small in ellint_rj
-88.2952, - -4.43004, 0.968868, -0.543324
Argument too small in ellint_rj
- -88.2952, -3.83666, 0.913376, -0.513389
Argument too small in ellint_rj
-88.2952, - 0.93763, 0.221034, 0.158243
Argument too small in ellint_rj
- -88.2952, 0.944412, 0.632359, 0.160101
Argument too small in ellint_rj
-88.2952, - 2.64719, 0.308167, 0.188127
Argument too small in ellint_rj
- -88.2952, 6.29447, 0.0975404, 0.676465
Argument too small in ellint_rj
-88.2952, - 6.70017, 0.547221, 0.817785
Argument too small in ellint_rj
- -88.2952, 8.11584, 0.278498, 0.837452
Argument too small in ellint_rj
- -88.2952, 8.26752, 0.188382, 0.837571
Argument too small in ellint_rj
- -88.2952, 9.15014, 0.546881, 0.885365
Argument too small in ellint_rj
- -88.2952, 9.29777, 0.992881, 1.06701
Argument too small in ellint_rj
- -88.2952, 9.3539, 0.957507, 1.03573
Argument too small in ellint_rj
- -88.2952, 9.37736, 0.996461, 1.13933
Argument too small in ellint_rj
- -88.2952, 9.85763, 0.964889, 1.24906
Argument too small in ellint_rj
- -88.2952, 9.92923, 0.967695, 1.25621
Argument too small in ellint_rj
- -86.8166, -8.04919, 0.157613, -0.841405
Argument too small in ellint_rj
-86.8166, - -7.46026, 0.725839, -0.859877
Argument too small in ellint_rj
- -86.8166, -7.29046, 0.970593, -0.914439
Argument too small in ellint_rj
-86.8166, - -6.23236, 0.98111, -0.710627
Argument too small in ellint_rj
- -86.8166, -5.57932, 0.957167, -0.58106
Argument too small in ellint_rj
-86.8166, - -4.43004, 0.109862, -0.499839
Argument too small in ellint_rj
- -86.8166, -3.83666, 0.485376, -0.494286
Argument too small in ellint_rj
-86.8166, - 0.93763, 0.798106, 0.162644
Argument too small in ellint_rj
- -86.8166, 0.944412, 0.80028, 0.16282
Argument too small in ellint_rj
- -86.8166, 2.64719, 0.297029, 0.18978
Argument too small in ellint_rj
- -86.8166, 6.29447, 0.141886, 0.682392
Argument too small in ellint_rj
- -86.8166, 6.70017, 0.00478348, 0.812885
Argument too small in ellint_rj
-86.8166, - 8.11584, 0.421761, 0.849249
Argument too small in ellint_rj
- -86.8166, 8.26752, 0.112465, 0.843648
Argument too small in ellint_rj
- -86.8166, 9.15014, 0.915736, 0.953733
Argument too small in ellint_rj
- -86.8166, 9.29777, 0.639763, 0.936743
Argument too small in ellint_rj
- -86.8166, 9.3539, 0.792207, 0.987359
Argument too small in ellint_rj
- -86.8166, 9.37736, 0.878431, 1.02525
Argument too small in ellint_rj
- -86.8166, 9.85763, 0.959492, 1.25508
Argument too small in ellint_rj
- -86.8166, 9.92923, 0.503663, 1.16735
Argument too small in ellint_rj
- -84.7616, -8.04919, 0.655741, -0.873305
Argument too small in ellint_rj
-84.7616, - -7.46026, 0.797929, -0.879044
Argument too small in ellint_rj
- -84.7616, -7.29046, 0.0357117, -0.840785
Argument too small in ellint_rj
-84.7616, - -6.23236, 0.361294, -0.635502
Argument too small in ellint_rj
- -84.7616, -5.57932, 0.849129, -0.558231
Argument too small in ellint_rj
-84.7616, - -4.43004, 0.211924, -0.506533
Argument too small in ellint_rj
- -84.7616, -3.83666, 0.933993, -0.527681
Argument too small in ellint_rj
-84.7616, - 0.93763, 0.68136, 0.163458
Argument too small in ellint_rj
- -84.7616, 0.944412, 0.678735, 0.163582
Argument too small in ellint_rj
-84.7616, - 2.64719, 0.398739, 0.193458
Argument too small in ellint_rj
- -84.7616, 6.29447, 0.75774, 0.716086
Argument too small in ellint_rj
- -84.7616, 6.70017, 0.740647, 0.847849
Argument too small in ellint_rj
- -84.7616, 8.11584, 0.743132, 0.883827
Argument too small in ellint_rj
- -84.7616, 8.26752, 0.474759, 0.864181
Argument too small in ellint_rj
- -84.7616, 9.15014, 0.392227, 0.895646
Argument too small in ellint_rj
- -84.7616, 9.29777, 0.422088, 0.933423
Argument too small in ellint_rj
- *** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For ellint_3 with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Elliptic Integral PI: Random Data -
-

- CAUTION: - Gross error found at entry 150.
Found: 1.09748 Expected 1.76311 Error: - 0.606506
0.546881, 1.27977, 0.349984, 1.76311
CAUTION: Gross - error found at entry 151.
Found: 1.39529 Expected 2.4686 Error: 0.769232
- 0.546881, 1.31163, 0.907365, 2.4686
CAUTION: Gross error found at entry - 152.
Found: 1.17627 Expected 2.03097 Error: 0.726615
0.546881, - 1.42281, 0.196595, 2.03097
CAUTION: Gross error found at entry 153.
- Found: 1.47192 Expected 2.76894 Error: 0.881179
0.546881, 1.43473, - 0.848468, 2.76894
CAUTION: Gross error found at entry 154.
Found: - 1.23674 Expected 2.22733 Error: 0.800966
0.546881, 1.50405, 0.251084, - 2.22733
CAUTION: Gross error found at entry 155.
Found: 1.87704 - Expected 3.98415 Error: 1.12257
0.546881, 1.51564, 0.955018, 3.98415
- CAUTION: Gross error found at entry 156.
Found: 1.35817 Expected 2.53989 - Error: 0.870091
0.546881, 1.52005, 0.616045, 2.53989
CAUTION: - Gross error found at entry 157.
Found: 1.48427 Expected 2.87082 Error: - 0.934166
0.546881, 1.52189, 0.778898, 2.87082
CAUTION: Gross - error found at entry 158.
Found: 1.32687 Expected 2.48679 Error: 0.874176
- 0.546881, 1.55961, 0.473289, 2.48679
CAUTION: Gross error found at - entry 159.
Found: 2.37485 Expected 5.58805 Error: 1.35301
0.546881, - 1.56524, 0.98746, 5.58805
CAUTION: Gross error found at entry 170.
- Found: 1.08889 Expected 1.74565 Error: 0.603142
0.547221, 1.27977, - 0.285839, 1.74565
CAUTION: Gross error found at entry 171.
Found: - 1.21346 Expected 2.03956 Error: 0.680778
0.547221, 1.31163, 0.67982, - 2.03956
CAUTION: Gross error found at entry 172.
Found: 1.36407 - Expected 2.48392 Error: 0.820965
0.547221, 1.42281, 0.7572, 2.48392
- CAUTION: Gross error found at entry 173.
Found: 1.21442 Expected 2.12881 - Error: 0.752947
0.547221, 1.43473, 0.39232, 2.12881
CAUTION: - Gross error found at entry 174.
Found: 1.4409 Expected 2.74399 Error: - 0.904352
0.547221, 1.50405, 0.753729, 2.74399
CAUTION: Gross - error found at entry 175.
Found: 1.32796 Expected 2.46156 Error: 0.853642
- 0.547221, 1.51564, 0.561557, 2.46156
CAUTION: Gross error found at - entry 176.
Found: 1.27163 Expected 2.32413 Error: 0.82767
0.547221, - 1.52005, 0.380446, 2.32413
CAUTION: Gross error found at entry 177.
- Found: 1.24298 Expected 2.25511 Error: 0.814274
0.547221, 1.52189, - 0.208068, 2.25511
CAUTION: Gross error found at entry 178.
Found: - 1.36528 Expected 2.58635 Error: 0.894379
0.547221, 1.55961, 0.567822, - 2.58635
CAUTION: Gross error found at entry 179.
Found: 1.35151 - Expected 2.55463 Error: 0.890206
0.547221, 1.56524, 0.527371, 2.55463
- CAUTION: Gross error found at entry 189.
Found: 1.01047 Expected 1.52344 - Error: 0.507658
0.632359, 0.993308, 0.964966, 1.52344
CAUTION: - Gross error found at entry 190.
Found: 1.05231 Expected 1.84135 Error: - 0.749817
0.632359, 1.27977, 0.129906, 1.84135
CAUTION: Gross - error found at entry 191.
Found: 1.07393 Expected 1.92224 Error: 0.789918
- 0.632359, 1.31163, 0.154438, 1.92224
CAUTION: Gross error found at - entry 192.
Found: 1.22616 Expected 2.43657 Error: 0.987156
0.632359, - 1.42281, 0.568824, 2.43657
CAUTION: Gross error found at entry 193.
- Found: 1.18462 Expected 2.33142 Error: 0.968083
0.632359, 1.43473, - 0.394908, 2.33142
CAUTION: Gross error found at entry 194.
Found: - 1.25094 Expected 2.59169 Error: 1.0718
0.632359, 1.50405, 0.469391, - 2.59169
CAUTION: Gross error found at entry 195.
Found: 1.23693 - Expected 2.56158 Error: 1.07091
0.632359, 1.51564, 0.387296, 2.56158
- CAUTION: Gross error found at entry 196.
Found: 1.19839 Expected 2.45293 - Error: 1.04685
0.632359, 1.52005, 0.0119021, 2.45293
CAUTION: - Gross error found at entry 197.
Found: 1.39415 Expected 3.05228 Error: - 1.18935
0.632359, 1.52189, 0.726955, 3.05228
CAUTION: Gross error - found at entry 198.
Found: 1.25489 Expected 2.6569 Error: 1.11723
- 0.632359, 1.55961, 0.337123, 2.6569
CAUTION: Gross error found at entry - 199.
Found: 1.27021 Expected 2.70857 Error: 1.13237
0.632359, - 1.56524, 0.38857, 2.70857
CAUTION: Gross error found at entry 209.
- Found: 0.83304 Expected 1.35947 Error: 0.631944
0.814724, 0.993308, - 0.119547, 1.35947
CAUTION: Gross error found at entry 210.
Found: - 1.07764 Expected 2.50291 Error: 1.32258
*** FURTHER CONTENT HAS BEEN - TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For ellint_3 with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Elliptic Integral PI: Mathworld Data -
-

- CAUTION: - Gross error found at entry 0.
Found: -0.809353 Expected -1.55741 Error: - 0.924263
1, -1, 0, -1.55741
CAUTION: Gross error found at entry - 11.
Found: 1.07555 Expected 13.2822 Error: 11.3492
0.999023, - 1.5, 0, 13.2822
CAUTION: Gross error found at entry 13.
Found: - -5.86896e+09 Expected 1.53659e+10 Error: 1.18973e+4932
0.5, 1e+10, - 0.5, 1.53659e+10
Argument too small in ellint_rj
- -100000, 10, 0.75, 0.0347926
Argument too small in ellint_rj
- -1e+10, 10, 0.875, 0.000109956
Argument too small in ellint_rj
- -1e+10, 1e+20, 0.875, 1.00001e+15
Argument too small in ellint_rj
- -1e+10, 1.57031, 0.875, 1.57081e-05
CAUTION: Gross error found at entry - 18.
Found: -6.25413e+09 Expected 6.43274e+21 Error: 1.18973e+4932
- 0.999023, 1e+20, 0.875, 6.43274e+21
CAUTION: Gross error found at entry - 19.
Found: 0.102424 Expected 0.196321 Error: 0.916748
50, 0.125, - 0.25, 0.196321
CAUTION: Gross error found at entry 20.
Found: - 0.798807 Expected 1.773 Error: 1.21956
1.125, 1, 0.25, 1.773
- CAUTION: Gross error found at entry 21.
Found: 7.07138 Expected 0.662468 - Error: 9.6743
1.125, 10, 0.25, 0.662468
CAUTION: Gross error - found at entry 22.
Found: 2.04288 Expected -0.142697 Error: 1.18973e+4932
- 1.125, 3, 0.25, -0.142697
CAUTION: Gross error found at entry 23.
- Found: 1.07762 Expected 22.2699 Error: 19.6659
1.00391, 1.5, 0.125, - 22.2699
CAUTION: Gross error found at entry 24.
Found: 15.1275 - Expected -0.535406 Error: 1.18973e+4932
1.00391, 21.5, 0.125, -0.535406
- CAUTION: Gross error found at entry 41.
Found: 1.57454 Expected 3.0338 - Error: 0.926787
0.5, 2, 0, 3.0338
CAUTION: Gross error found - at entry 42.
Found: 3.0338 Expected 1.57454 Error: 0.926787
-0.5, - 2, 0, 1.57454
CAUTION: Gross error found at entry 43.
Found: - -1.57454 Expected -3.0338 Error: 0.926787
0.5, -2, 0, -3.0338
- CAUTION: Gross error found at entry 44.
Found: -3.0338 Expected -1.57454 - Error: 0.926787
-0.5, -2, 0, -1.57454
CAUTION: Found non-finite - result, when a finite value was expected at entry 51
Found: inf Expected - -2.87535 Error: 1.18973e+4932
1, 2, 0.5, -2.87535
CAUTION: Gross - error found at entry 51.
Found: inf Expected -2.87535 Error: 1.18973e+4932
- 1, 2, 0.5, -2.87535
CAUTION: Found non-finite result, when a finite - value was expected at entry 52
Found: -inf Expected 2.87535 Error: - 1.18973e+4932
1, -2, 0.5, 2.87535
CAUTION: Gross error found - at entry 52.
Found: -inf Expected 2.87535 Error: 1.18973e+4932
- 1, -2, 0.5, 2.87535
CAUTION: Found non-finite result, when a finite - value was expected at entry 53
Found: inf Expected -2.18504 Error: - 1.18973e+4932
1, 2, 6.22302e-61, -2.18504
CAUTION: Gross error - found at entry 53.
Found: inf Expected -2.18504 Error: 1.18973e+4932
- 1, 2, 6.22302e-61, -2.18504
CAUTION: Found non-finite result, when - a finite value was expected at entry 54
Found: -inf Expected 2.18504 - Error: 1.18973e+4932
1, -2, 6.22302e-61, 2.18504
CAUTION: Gross - error found at entry 54.
Found: -inf Expected 2.18504 Error: 1.18973e+4932
- 1, -2, 6.22302e-61, 2.18504
CAUTION: Gross error found at entry 57.
- Found: 0.703907 Expected 0.000975941 Error: 720.259
20, 3.14257, 0.5, - 0.000975941
CAUTION: Gross error found at entry 58.
Found: -0.703907 - Expected -0.000975941 Error: 720.259
20, -3.14257, 0.5, -0.000975941
- CAUTION: Gross error found at entry 59.
Found: 1.24445 Expected -27.1647 - Error: 1.18973e+4932
1.01562, 1.6958, 0.5, -27.1647
CAUTION: - Gross error found at entry 60.
Found: -1.24445 Expected 27.1647 Error: - 1.18973e+4932
1.01562, -1.6958, 0.5, 27.1647
-

-
- - Error - Output For expm1 with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Random test data -
-

- CAUTION: - Gross error found at entry 0.
Found: -1.1819 Expected -0.500078 Error: - 1.36342
-0.693303, -1.1819, -0.500078
CAUTION: Gross error found - at entry 1.
Found: -1.04983 Expected -0.477956 Error: 1.1965
- -0.650004, -1.04983, -0.477956
CAUTION: Gross error found at entry - 2.
Found: -0.828837 Expected -0.430754 Error: 0.924153
-0.563443, - -0.828837, -0.430754
CAUTION: Gross error found at entry 3.
Found: - -0.790084 Expected -0.42085 Error: 0.877355
-0.546194, -0.790084, -0.42085
- CAUTION: Gross error found at entry 4.
Found: -0.782087 Expected -0.418736 - Error: 0.867734
-0.54255, -0.782087, -0.418736
CAUTION: Gross - error found at entry 5.
Found: -0.738602 Expected -0.406797 Error: - 0.815652
-0.522218, -0.738602, -0.406797
CAUTION: Gross error - found at entry 6.
Found: -0.714028 Expected -0.399704 Error: 0.786393
- -0.510332, -0.714028, -0.399704
CAUTION: Gross error found at entry - 7.
Found: -0.695869 Expected -0.394293 Error: 0.764852
-0.501359, - -0.695869, -0.394293
CAUTION: Gross error found at entry 8.
Found: - -0.652661 Expected -0.380809 Error: 0.71388
-0.479342, -0.652661, -0.380809
- CAUTION: Gross error found at entry 9.
Found: -0.573171 Expected -0.353554 - Error: 0.621172
-0.436265, -0.573171, -0.353554
CAUTION: Gross - error found at entry 10.
Found: -0.516351 Expected -0.331892 Error: - 0.555778
-0.403306, -0.516351, -0.331892
CAUTION: Gross error - found at entry 11.
Found: -0.495202 Expected -0.323317 Error: 0.531631
- -0.390552, -0.495202, -0.323317
CAUTION: Gross error found at entry - 60.
Found: 0.365069 Expected 0.55366 Error: 0.516589
0.440613, - 0.365069, 0.55366
CAUTION: Gross error found at entry 61.
Found: - 0.371612 Expected 0.568422 Error: 0.529612
0.45007, 0.371612, 0.568422
- CAUTION: Gross error found at entry 62.
Found: 0.38459 Expected 0.598414 - Error: 0.555979
0.469012, 0.38459, 0.598414
CAUTION: Gross error - found at entry 63.
Found: 0.397958 Expected 0.630328 Error: 0.583906
- 0.488781, 0.397958, 0.630328
CAUTION: Gross error found at entry 64.
- Found: 0.425139 Expected 0.698598 Error: 0.643222
0.529803, 0.425139, - 0.698598
CAUTION: Gross error found at entry 65.
Found: 0.44987 - Expected 0.764926 Error: 0.700326
0.568109, 0.44987, 0.764926
- CAUTION: Gross error found at entry 66.
Found: 0.456618 Expected 0.783765 - Error: 0.716455
0.578726, 0.456618, 0.783765
CAUTION: Gross error - found at entry 67.
Found: 0.458709 Expected 0.789667 Error: 0.721501
- 0.58203, 0.458709, 0.789667
CAUTION: Gross error found at entry 68.
- Found: 0.474736 Expected 0.836002 Error: 0.760982
0.60759, 0.474736, - 0.836002
CAUTION: Gross error found at entry 69.
Found: 0.494717 - Expected 0.896545 Error: 0.812238
0.640034, 0.494717, 0.896545
- CAUTION: Gross error found at entry 70.
Found: 0.495007 Expected 0.897447 - Error: 0.813
0.64051, 0.495007, 0.897447
CAUTION: Gross error - found at entry 71.
Found: 0.4967 Expected 0.902729 Error: 0.817454
- 0.643289, 0.4967, 0.902729
CAUTION: Gross error found at entry 72.
- Found: 0.499875 Expected 0.912698 Error: 0.825853
0.648515, 0.499875, - 0.912698
CAUTION: Gross error found at entry 73.
Found: 0.501287 - Expected 0.917158 Error: 0.829608
0.650844, 0.501287, 0.917158
- CAUTION: Gross error found at entry 74.
Found: 0.503664 Expected 0.924705 - Error: 0.835958
0.654773, 0.503664, 0.924705
CAUTION: Gross error - found at entry 75.
Found: 0.504656 Expected 0.927868 Error: 0.838617
- 0.656415, 0.504656, 0.927868
CAUTION: Gross error found at entry 76.
- Found: 0.506112 Expected 0.93253 Error: 0.842535
0.65883, 0.506112, - 0.93253
CAUTION: Gross error found at entry 77.
Found: 0.514949 - Expected 0.961194 Error: 0.86658
0.673554, 0.514949, 0.961194
- CAUTION: Gross error found at entry 78.
Found: 0.524749 Expected 0.993783 - Error: 0.893827
0.690034, 0.524749, 0.993783
CAUTION: Gross error - found at entry 79.
Found: 0.52771 Expected 1.0038 Error: 0.902184
- 0.695046, 0.52771, 1.0038
-

-
- - Error - Output For cyl_bessel_k with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel Kv: Random Data -
-

- domain - error
-80.4919, 24.7501, 6.57902e+28
domain error
-80.4919, - 63.7722, 2.39552e-09
domain error
-80.4919, 125.28, 3.06904e-45
- domain error
-80.4919, 255.547, 2.30343e-107
domain error
- -80.4919, 503.011, 1.20315e-217
domain error
-80.4919, 1007.46, - 0
domain error
-80.4919, 1185.4, 0
domain error
-80.4919, - 3534.52, 0
domain error
-80.4919, 8071.55, 0
domain error
- -80.4919, 16229.2, 0
domain error
-80.4919, 32066.2, 0
- domain error
-80.4919, 36367.9, 0
domain error
-74.6026, - 24.7501, 1.19405e+24
domain error
-74.6026, 63.7722, 5.81897e-12
- domain error
-74.6026, 125.28, 9.89214e-47
domain error
- -74.6026, 255.547, 3.9726e-108
domain error
-74.6026, 503.011, - 4.87462e-218
domain error
-74.6026, 1007.46, 0
domain error
- -74.6026, 1185.4, 0
domain error
-74.6026, 3534.52, 0
domain - error
-74.6026, 8071.55, 0
domain error
-74.6026, 16229.2, - 0
domain error
-74.6026, 32066.2, 0
domain error
- -74.6026, 36367.9, 0
domain error
-72.9046, 24.7501, 5.5618e+22
- domain error
-72.9046, 63.7722, 1.09452e-12
domain error
- -72.9046, 125.28, 3.8393e-47
domain error
-72.9046, 255.547, - 2.45173e-108
domain error
-72.9046, 503.011, 3.80454e-218
- domain error
-72.9046, 1007.46, 0
domain error
-72.9046, - 1185.4, 0
domain error
-72.9046, 3534.52, 0
domain error
- -72.9046, 8071.55, 0
domain error
-72.9046, 16229.2, 0
- domain error
-72.9046, 32066.2, 0
domain error
-72.9046, - 36367.9, 0
domain error
-62.3236, 24.7501, 6.74518e+14
- domain error
-62.3236, 63.7722, 6.54531e-17
domain error
- -62.3236, 125.28, 1.65653e-49
domain error
-62.3236, 255.547, - 1.54767e-109
domain error
-62.3236, 503.011, 9.22721e-219
- domain error
-62.3236, 1007.46, 0
domain error
-62.3236, - 1185.4, 0
domain error
-62.3236, 3534.52, 0
domain error
- -62.3236, 8071.55, 0
domain error
-62.3236, 16229.2, 0
- domain error
-62.3236, 32066.2, 0
domain error
-62.3236, - 36367.9, 0
domain error
-55.7932, 24.7501, 2.00028e+10
- domain error
-55.7932, 63.7722, 3.01107e-19
domain error
- -55.7932, 125.28, 8.54693e-51
domain error
-55.7932, 255.547, - 3.47666e-110
domain error
-55.7932, 503.011, 4.29705e-219
- domain error
-55.7932, 1007.46, 0
domain error
-55.7932, - 1185.4, 0
domain error
-55.7932, 3534.52, 0
domain error
- -55.7932, 8071.55, 0
domain error
-55.7932, 16229.2, 0
- domain error
-55.7932, 32066.2, 0
domain error
-55.7932, - 36367.9, 0
domain error
-44.3004, 9.50706, 5.6936e+22
domain - error
-44.3004, 24.7501, 1242.73
domain error
-44.3004, - 63.7722, 7.99341e-23
domain error
-44.3004, 125.28, 9.88149e-53
- domain error
-44.3004, 255.547, 3.73007e-111
domain error
- -44.3004, 503.011, 1.37367e-219
domain error
-44.3004, 1007.46, - 0
domain error
-44.3004, 1185.4, 0
domain error
-44.3004, - 3534.52, 0
domain error
-44.3004, 8071.55, 0
domain error
- -44.3004, 16229.2, 0
domain error
-44.3004, 32066.2, 0
- domain error
-44.3004, 36367.9, 0
domain error
-38.3666, - 5.11399, 4.97154e+27
domain error
-38.3666, 9.50706, 1.51436e+17
- domain error
-38.3666, 24.7501, 0.639495
domain error
-38.3666, - 63.7722, 2.19334e-24
domain error
-38.3666, 125.28, 1.45351e-53
- domain error
-38.3666, 255.547, 1.43713e-111
domain error
- -38.3666, 503.011, 8.44445e-220
domain error
-38.3666, 1007.46, - 0
domain error
-38.3666, 1185.4, 0
domain error
-38.3666, - 3534.52, 0
domain error
-38.3666, 8071.55, 0
domain error
- -38.3666, 16229.2, 0
domain error
-38.3666, 32066.2, 0
- domain error
-38.3666, 36367.9, 0
underflow
9.3763, 1007.46, - 0
underflow
9.3763, 1185.4, 0
underflow
9.3763, 3534.52, - 0
underflow
9.3763, 8071.55, 0
underflow
9.3763, - 16229.2, 0
underflow
9.3763, 32066.2, 0
underflow
- 9.3763, 36367.9, 0
underflow
9.44412, 1007.46, 0
underflow
- 9.44412, 1185.4, 0
underflow
9.44412, 3534.52, 0
underflow
- 9.44412, 8071.55, 0
underflow
9.44412, 16229.2, 0
underflow
- 9.44412, 32066.2, 0
underflow
9.44412, 36367.9, 0
underflow
- 26.4719, 1007.46, 0
underflow
26.4719, 1185.4, 0
underflow
- 26.4719, 3534.52, 0
underflow
26.4719, 8071.55, 0
underflow
- 26.4719, 16229.2, 0
underflow
26.4719, 32066.2, 0
underflow
- 26.4719, 36367.9, 0
underflow
62.9447, 1007.46, 0
underflow
- 62.9447, 1185.4, 0
underflow
62.9447, 3534.52, 0
underflow
- 62.9447, 8071.55, 0
underflow
62.9447, 16229.2, 0
underflow
- *** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For cyl_bessel_k with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel Kn: Random Data -
-

- underflow
- 0, 1007.46, 0
underflow
0, 1185.4, 0
underflow
0, - 3534.52, 0
underflow
0, 8071.55, 0
underflow
0, 16229.2, - 0
underflow
0, 32066.2, 0
underflow
0, 36367.9, 0
- underflow
1, 1007.46, 0
underflow
1, 1185.4, 0
underflow
- 1, 3534.52, 0
underflow
1, 8071.55, 0
underflow
1, - 16229.2, 0
underflow
1, 32066.2, 0
underflow
1, 36367.9, - 0
underflow
4, 1007.46, 0
underflow
4, 1185.4, 0
- underflow
4, 3534.52, 0
underflow
4, 8071.55, 0
underflow
- 4, 16229.2, 0
underflow
4, 32066.2, 0
underflow
4, - 36367.9, 0
underflow
7, 1007.46, 0
underflow
7, 1185.4, - 0
underflow
7, 3534.52, 0
underflow
7, 8071.55, 0
- underflow
7, 16229.2, 0
underflow
7, 32066.2, 0
underflow
- 7, 36367.9, 0
underflow
10, 1007.46, 0
underflow
- 10, 1185.4, 0
underflow
10, 3534.52, 0
underflow
- 10, 8071.55, 0
underflow
10, 16229.2, 0
underflow
- 10, 32066.2, 0
underflow
10, 36367.9, 0
underflow
- 13, 1007.46, 0
underflow
13, 1185.4, 0
underflow
- 13, 3534.52, 0
underflow
13, 8071.55, 0
underflow
- 13, 16229.2, 0
underflow
13, 32066.2, 0
underflow
- 13, 36367.9, 0
underflow
16, 1007.46, 0
underflow
- 16, 1185.4, 0
underflow
16, 3534.52, 0
underflow
- 16, 8071.55, 0
underflow
16, 16229.2, 0
underflow
- 16, 32066.2, 0
underflow
16, 36367.9, 0
underflow
- 19, 1007.46, 0
underflow
19, 1185.4, 0
underflow
- 19, 3534.52, 0
underflow
19, 8071.55, 0
underflow
- 19, 16229.2, 0
underflow
19, 32066.2, 0
underflow
- 19, 36367.9, 0
underflow
22, 1007.46, 0
underflow
- 22, 1185.4, 0
underflow
22, 3534.52, 0
underflow
- 22, 8071.55, 0
underflow
22, 16229.2, 0
underflow
- 22, 32066.2, 0
underflow
22, 36367.9, 0
underflow
- 25, 1007.46, 0
underflow
25, 1185.4, 0
underflow
- 25, 3534.52, 0
underflow
25, 8071.55, 0
underflow
- 25, 16229.2, 0
underflow
25, 32066.2, 0
underflow
- 25, 36367.9, 0
underflow
28, 1007.46, 0
underflow
- 28, 1185.4, 0
underflow
28, 3534.52, 0
underflow
- 28, 8071.55, 0
underflow
28, 16229.2, 0
underflow
- 28, 32066.2, 0
underflow
28, 36367.9, 0
underflow
- 31, 1007.46, 0
underflow
31, 1185.4, 0
underflow
- 31, 3534.52, 0
underflow
31, 8071.55, 0
underflow
- 31, 16229.2, 0
underflow
31, 32066.2, 0
underflow
- 31, 36367.9, 0
underflow
34, 1007.46, 0
underflow
- 34, 1185.4, 0
underflow
34, 3534.52, 0
underflow
- 34, 8071.55, 0
underflow
34, 16229.2, 0
underflow
- 34, 32066.2, 0
underflow
34, 36367.9, 0
underflow
- 37, 1007.46, 0
underflow
37, 1185.4, 0
underflow
- 37, 3534.52, 0
underflow
37, 8071.55, 0
underflow
- 37, 16229.2, 0
underflow
37, 32066.2, 0
underflow
- 37, 36367.9, 0
underflow
40, 1007.46, 0
underflow
- 40, 1185.4, 0
underflow
40, 3534.52, 0
underflow
- 40, 8071.55, 0
underflow
40, 16229.2, 0
underflow
- 40, 32066.2, 0
underflow
40, 36367.9, 0
underflow
- 43, 1007.46, 0
underflow
43, 1185.4, 0
underflow
- 43, 3534.52, 0
underflow
43, 8071.55, 0
underflow
- 43, 16229.2, 0
underflow
43, 32066.2, 0
underflow
- 43, 36367.9, 0
underflow
46, 1007.46, 0
underflow
- 46, 1185.4, 0
underflow
46, 3534.52, 0
underflow
- 46, 8071.55, 0
underflow
46, 16229.2, 0
underflow
- 46, 32066.2, 0
underflow
46, 36367.9, 0
underflow
- 49, 1007.46, 0
underflow
49, 1185.4, 0
underflow
- 49, 3534.52, 0
underflow
49, 8071.55, 0
underflow
- 49, 16229.2, 0
underflow
49, 32066.2, 0
underflow
- 49, 36367.9, 0
underflow
52, 1007.46, 0
underflow
- 52, 1185.4, 0
underflow
52, 3534.52, 0
underflow
- 52, 8071.55, 0
underflow
52, 16229.2, 0
underflow
- 52, 32066.2, 0
underflow
52, 36367.9, 0
underflow
- 55, 1007.46, 0
underflow
55, 1185.4, 0
underflow
- 55, 3534.52, 0
underflow
55, 8071.55, 0
underflow
- 55, 16229.2, 0
underflow
55, 32066.2, 0
underflow
- 55, 36367.9, 0
underflow
58, 1007.46, 0
underflow
- 58, 1185.4, 0
underflow
58, 3534.52, 0
underflow
- 58, 8071.55, 0
underflow
58, 16229.2, 0
underflow
- 58, 32066.2, 0
underflow
58, 36367.9, 0
underflow
- 61, 1007.46, 0
underflow
61, 1185.4, 0
underflow
- 61, 3534.52, 0
underflow
61, 8071.55, 0
underflow
- 61, 16229.2, 0
underflow
61, 32066.2, 0
underflow
- 61, 36367.9, 0
underflow
64, 1007.46, 0
underflow
- 64, 1185.4, 0
underflow
64, 3534.52, 0
underflow
- 64, 8071.55, 0
underflow
64, 16229.2, 0
underflow
- 64, 32066.2, 0
underflow
64, 36367.9, 0
underflow
- 67, 1007.46, 0
underflow
67, 1185.4, 0
underflow
- 67, 3534.52, 0
underflow
67, 8071.55, 0
underflow
- 67, 16229.2, 0
*** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For cyl_bessel_k with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel Kv: Mathworld Data (large values) -
-

- domain - error
-1, 3.72917e-155, 2.68156e+154
domain error
-1.125, - 3.72917e-155, 5.53984e+173
-

-
- - Error - Output For cyl_bessel_k with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel Kv: Mathworld Data -
-

- domain - error
-5.5, 10, 7.33045e-05
domain error
-5.5, 100, 5.41275e-45
- domain error
-141.399, 50, 1.30185e+42
-

-
- - Error - Output For cyl_bessel_k with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Bessel Kn: Mathworld Data -
-

- domain - error
-5, 100, 5.27326e-45
domain error
-10, 1, 1.80713e+08
- domain error
-1000, 700, 6.51562e-31
-

-
- - Error - Output For cyl_bessel_k with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel Kv: Random Data -
-

- Bad - argument in cyl_bessel_k.
- -80.4919, 24.7501, 6.57902e+28
Bad argument in cyl_bessel_k.
- -80.4919, 63.7722, 2.39552e-09
Bad argument in cyl_bessel_k.
- -80.4919, 125.28, 3.06904e-45
Bad argument in cyl_bessel_k.
- -80.4919, 255.547, 2.30343e-107
Bad argument in cyl_bessel_k.
- -80.4919, 503.011, 1.20315e-217
Bad argument in cyl_bessel_k.
- -80.4919, 1007.46, 2.86537e-438
Bad argument in cyl_bessel_k.
- -80.4919, 1185.4, 8.63263e-516
Bad argument in cyl_bessel_k.
- -80.4919, 3534.52, 5.01367e-1537
Bad argument in cyl_bessel_k.
- -80.4919, 8071.55, 7.76555e-3508
Bad argument in cyl_bessel_k.
- -80.4919, 16229.2, 0
Bad argument in cyl_bessel_k.
- -80.4919, 32066.2, 0
Bad argument in cyl_bessel_k.
- -80.4919, 36367.9, 0
Bad argument in cyl_bessel_k.
- -74.6026, 24.7501, 1.19405e+24
Bad argument in cyl_bessel_k.
- -74.6026, 63.7722, 5.81897e-12
Bad argument in cyl_bessel_k.
- -74.6026, 125.28, 9.89214e-47
Bad argument in cyl_bessel_k.
- -74.6026, 255.547, 3.9726e-108
Bad argument in cyl_bessel_k.
- -74.6026, 503.011, 4.87462e-218
Bad argument in cyl_bessel_k.
- -74.6026, 1007.46, 1.82221e-438
Bad argument in cyl_bessel_k.
- -74.6026, 1185.4, 5.87506e-516
Bad argument in cyl_bessel_k.
- -74.6026, 3534.52, 4.40608e-1537
Bad argument in cyl_bessel_k.
- -74.6026, 8071.55, 7.3384e-3508
Bad argument in cyl_bessel_k.
- -74.6026, 16229.2, 0
Bad argument in cyl_bessel_k.
- -74.6026, 32066.2, 0
Bad argument in cyl_bessel_k.
- -74.6026, 36367.9, 0
Bad argument in cyl_bessel_k.
- -72.9046, 24.7501, 5.5618e+22
Bad argument in cyl_bessel_k.
- -72.9046, 63.7722, 1.09452e-12
Bad argument in cyl_bessel_k.
- -72.9046, 125.28, 3.8393e-47
Bad argument in cyl_bessel_k.
- -72.9046, 255.547, 2.45173e-108
Bad argument in cyl_bessel_k.
- -72.9046, 503.011, 3.80454e-218
Bad argument in cyl_bessel_k.
- -72.9046, 1007.46, 1.60949e-438
Bad argument in cyl_bessel_k.
- -72.9046, 1185.4, 5.28662e-516
Bad argument in cyl_bessel_k.
- -72.9046, 3534.52, 4.25273e-1537
Bad argument in cyl_bessel_k.
- -72.9046, 8071.55, 7.22542e-3508
Bad argument in cyl_bessel_k.
- -72.9046, 16229.2, 0
Bad argument in cyl_bessel_k.
- -72.9046, 32066.2, 0
Bad argument in cyl_bessel_k.
- -72.9046, 36367.9, 0
Bad argument in cyl_bessel_k.
- -62.3236, 24.7501, 6.74518e+14
Bad argument in cyl_bessel_k.
- -62.3236, 63.7722, 6.54531e-17
Bad argument in cyl_bessel_k.
- -62.3236, 125.28, 1.65653e-49
Bad argument in cyl_bessel_k.
- -62.3236, 255.547, 1.54767e-109
Bad argument in cyl_bessel_k.
- -62.3236, 503.011, 9.22721e-219
Bad argument in cyl_bessel_k.
- -62.3236, 1007.46, 7.91894e-439
Bad argument in cyl_bessel_k.
- -62.3236, 1185.4, 2.89281e-516
Bad argument in cyl_bessel_k.
- -62.3236, 3534.52, 3.4736e-1537
Bad argument in cyl_bessel_k.
- -62.3236, 8071.55, 6.6126e-3508
Bad argument in cyl_bessel_k.
- -62.3236, 16229.2, 0
Bad argument in cyl_bessel_k.
- -62.3236, 32066.2, 0
Bad argument in cyl_bessel_k.
- -62.3236, 36367.9, 0
Bad argument in cyl_bessel_k.
- -55.7932, 24.7501, 2.00028e+10
Bad argument in cyl_bessel_k.
- -55.7932, 63.7722, 3.01107e-19
Bad argument in cyl_bessel_k.
- -55.7932, 125.28, 8.54693e-51
Bad argument in cyl_bessel_k.
- -55.7932, 255.547, 3.47666e-110
Bad argument in cyl_bessel_k.
- -55.7932, 503.011, 4.29705e-219
Bad argument in cyl_bessel_k.
- -55.7932, 1007.46, 5.40242e-439
Bad argument in cyl_bessel_k.
- -55.7932, 1185.4, 2.08996e-516
Bad argument in cyl_bessel_k.
- -55.7932, 3534.52, 3.11458e-1537
Bad argument in cyl_bessel_k.
- -55.7932, 8071.55, 6.30409e-3508
Bad argument in cyl_bessel_k.
- -55.7932, 16229.2, 0
Bad argument in cyl_bessel_k.
- -55.7932, 32066.2, 0
Bad argument in cyl_bessel_k.
- -55.7932, 36367.9, 0
Bad argument in cyl_bessel_k.
- -44.3004, 9.50706, 5.6936e+22
Bad argument in cyl_bessel_k.
- -44.3004, 24.7501, 1242.73
Bad argument in cyl_bessel_k.
- -44.3004, 63.7722, 7.99341e-23
Bad argument in cyl_bessel_k.
- -44.3004, 125.28, 9.88149e-53
Bad argument in cyl_bessel_k.
- -44.3004, 255.547, 3.73007e-111
Bad argument in cyl_bessel_k.
- -44.3004, 503.011, 1.37367e-219
Bad argument in cyl_bessel_k.
- -44.3004, 1007.46, 3.05398e-439
Bad argument in cyl_bessel_k.
- *** FURTHER CONTENT HAS BEEN TRUNCATED FOR BREVITY ***
-

-
- - Error - Output For cyl_bessel_k with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel Kv: Mathworld Data (large values) -
-

- Bad - argument in cyl_bessel_k.
- -1, 3.72917e-155, 2.68156e+154
Bad argument in cyl_bessel_k.
- -1.125, 3.72917e-155, 5.53984e+173
-

-
- - Error - Output For cyl_bessel_k with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel Kv: Mathworld Data -
-

- Bad - argument in cyl_bessel_k.
- -5.5, 10, 7.33045e-05
Bad argument in cyl_bessel_k.
- -5.5, 100, 5.41275e-45
Bad argument in cyl_bessel_k.
- -141.399, 50, 1.30185e+42
-

-
- - Error - Output For cyl_bessel_k (integer orders) with compiler GNU C++ version 5.1.0 - and library <tr1/cmath> and test data Bessel Kn: Mathworld Data (Integer - Version) -
-

- Bad - argument in cyl_bessel_k.
- -5, 100, 5.27326e-45
Bad argument in cyl_bessel_k.
- -10, 1, 1.80713e+08
Bad argument in cyl_bessel_k.
- -1000, 700, 6.51562e-31
-

-
- - Error - Output For cyl_bessel_k with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Bessel Kn: Mathworld Data -
-

- Bad - argument in cyl_bessel_k.
- -5, 100, 5.27326e-45
Bad argument in cyl_bessel_k.
- -10, 1, 1.80713e+08
Bad argument in cyl_bessel_k.
- -1000, 700, 6.51562e-31
-

-
- - Error - Output For cyl_neumann with compiler GNU C++ version 5.1.0 and library Rmath - 3.0.2 and test data Yv: Mathworld Data (large values) -
-

- CAUTION: - Gross error found at entry 1.
Found: -4.37703e+86 Expected 8.90598e-104 - Error: 1.79769e+308
-0.5, 1.2459e-206, 8.90598e-104
-

-
- - Error - Output For cyl_neumann with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Yv: Random Data -
-

- CAUTION: - Gross error found at entry 394.
Found: -3.29903 Expected 0.0192842 - Error: 1.18973e+4932
125.28, 1007.46, 0.0192842
CAUTION: Gross - error found at entry 395.
Found: 1.13543 Expected 0.0230358 Error: - 48.2897
125.28, 1185.4, 0.0230358
CAUTION: Gross error found - at entry 396.
Found: 0.00119445 Expected 0.00460223 Error: 2.85302
- 125.28, 3534.52, 0.00460223
CAUTION: Gross error found at entry 403.
- Found: 1068 Expected -0.00270959 Error: 1.18973e+4932
255.547, 1007.46, - -0.00270959
CAUTION: Gross error found at entry 404.
Found: -395.006 - Expected 0.00738845 Error: 1.18973e+4932
255.547, 1185.4, 0.00738845
- CAUTION: Gross error found at entry 405.
Found: 1.08701 Expected -0.000407036 - Error: 1.18973e+4932
255.547, 3534.52, -0.000407036
CAUTION: - Gross error found at entry 406.
Found: 0.0232211 Expected 0.00886946 - Error: 1.61809
255.547, 8071.55, 0.00886946
CAUTION: Gross error - found at entry 411.
Found: 65895.7 Expected -0.0158467 Error: 1.18973e+4932
- 503.011, 1007.46, -0.0158467
CAUTION: Gross error found at entry 412.
- Found: -123316 Expected 0.00594357 Error: 1.18973e+4932
503.011, 1185.4, - 0.00594357
CAUTION: Gross error found at entry 413.
Found: -706.209 - Expected 0.010151 Error: 1.18973e+4932
503.011, 3534.52, 0.010151
- CAUTION: Gross error found at entry 414.
Found: -21.2081 Expected 0.00888375 - Error: 1.18973e+4932
503.011, 8071.55, 0.00888375
CAUTION: Gross - error found at entry 415.
Found: 0.0272835 Expected 0.00552287 Error: - 3.94008
503.011, 16229.2, 0.00552287
CAUTION: Gross error found - at entry 416.
Found: 0.0103324 Expected 0.00445559 Error: 1.31898
- 503.011, 32066.2, 0.00445559
CAUTION: Gross error found at entry 417.
- Found: 0.00540788 Expected -0.00384344 Error: 1.18973e+4932
503.011, - 36367.9, -0.00384344
CAUTION: Gross error found at entry 418.
- Found: 5.43091e+07 Expected -0.0772843 Error: 1.18973e+4932
1007.46, - 1007.46, -0.0772843
CAUTION: Gross error found at entry 419.
- Found: -2.84383e+07 Expected 0.0304312 Error: 1.18973e+4932
1007.46, - 1185.4, 0.0304312
CAUTION: Gross error found at entry 420.
Found: - -61440.2 Expected -0.00474217 Error: 1.29562e+07
1007.46, 3534.52, - -0.00474217
CAUTION: Gross error found at entry 421.
Found: -4126.89 - Expected -0.0074205 Error: 556146
1007.46, 8071.55, -0.0074205
- CAUTION: Gross error found at entry 422.
Found: -69.2831 Expected -0.00179572 - Error: 38581.4
1007.46, 16229.2, -0.00179572
CAUTION: Gross error - found at entry 423.
Found: 2.32048 Expected 0.000750053 Error: 3092.76
- 1007.46, 32066.2, 0.000750053
CAUTION: Gross error found at entry 424.
- Found: 3.90724 Expected 0.00305125 Error: 1279.54
1007.46, 36367.9, - 0.00305125
CAUTION: Gross error found at entry 425.
Found: -1.83374e+08 - Expected -7.25176e+28 Error: 3.95463e+20
1185.4, 1007.46, -7.25176e+28
- CAUTION: Gross error found at entry 426.
Found: 1.09822e+08 Expected - -0.0732059 Error: 1.18973e+4932
1185.4, 1185.4, -0.0732059
CAUTION: - Gross error found at entry 427.
Found: 315632 Expected 0.000479585 - Error: 6.58136e+08
1185.4, 3534.52, 0.000479585
CAUTION: Gross - error found at entry 428.
Found: 16815.6 Expected 0.00174909 Error: - 9.61391e+06
1185.4, 8071.55, 0.00174909
CAUTION: Gross error - found at entry 429.
Found: 133.356 Expected 0.00416288 Error: 32033.6
- 1185.4, 16229.2, 0.00416288
CAUTION: Gross error found at entry 430.
- Found: -1.38401 Expected -0.000320056 Error: 4323.27
1185.4, 32066.2, - -0.000320056
CAUTION: Gross error found at entry 431.
Found: - -17.7085 Expected -0.00417656 Error: 4238.96
1185.4, 36367.9, -0.00417656
-

-
- - Error - Output For cyl_neumann with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Yv: Mathworld Data (large values) -
-

- Bad - argument in __cyl_neumann_n.
-0.5, 1.2459e-206, 8.90598e-104
-

-
- - Error - Output For cyl_neumann with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Yv: Mathworld Data -
-

- Bad - argument in __cyl_neumann_n.
-5.5, 3.125, -0.0274994
Bad argument - in __cyl_neumann_n.
-5.5, 10000, -0.00759344
Bad argument in - __cyl_neumann_n.
-10.0003, 0.000976562, -1.50382e+38
Bad argument - in __cyl_neumann_n.
-10.0003, 100, 0.0583042
Bad argument in - __cyl_neumann_n.
-141.75, 100, -3.8101e+09
Bad argument in __cyl_neumann_n.
- -8.5, 12.5664, 0.0436808
-

-
- - Error - Output For cyl_neumann (integer orders) with compiler GNU C++ version 5.1.0 - and library <tr1/cmath> and test data Yn: Mathworld Data (Integer Version) -
-

- Bad - argument in __cyl_neumann_n.
-5, 1e+06, 0.000331052
Bad argument - in __cyl_neumann_n.
-10, 1e+06, 0.000725952
CAUTION: Gross error - found at entry 7.
Found: 0.0540745 Expected 0.00217255 Error: 23.8899
- 1000, 100000, 0.00217255
Bad argument in __cyl_neumann_n.
-1000, - 700, -1.88753e+77
Bad argument in __cyl_neumann_n.
-25, 8, 3.45114e+08
-

-
- - Error - Output For cyl_neumann with compiler GNU C++ version 5.1.0 and library <tr1/cmath> - and test data Yn: Mathworld Data -
-

- Bad - argument in __cyl_neumann_n.
-5, 1e+06, 0.000331052
Bad argument - in __cyl_neumann_n.
-10, 1e+06, 0.000725952
CAUTION: Gross error - found at entry 7.
Found: 0.0540745 Expected 0.00217255 Error: 23.8899
- 1000, 100000, 0.00217255
Bad argument in __cyl_neumann_n.
-1000, - 700, -1.88753e+77
Bad argument in __cyl_neumann_n.
-25, 8, 3.45114e+08
-

-
- - Error - Output For cyl_neumann with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Yv: Mathworld Data (large values) -
-

- domain - error
-0.5, 1.2459e-206, 8.90598e-104
-

-
- - Error - Output For cyl_neumann with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Yv: Mathworld Data -
-

- domain - error
-5.5, 3.125, -0.0274994
domain error
-5.5, 10000, - -0.00759344
domain error
-10.0003, 0.000976562, -1.50382e+38
- domain error
-10.0003, 100, 0.0583042
domain error
-141.75, - 100, -3.8101e+09
domain error
-8.5, 12.5664, 0.0436808
-

-
- - Error - Output For cyl_neumann with compiler GNU C++ version 5.1.0 and library GSL - 1.16 and test data Yn: Mathworld Data -
-

- domain - error
-5, 1e+06, 0.000331052
domain error
-10, 1e+06, 0.000725952
- domain error
-1000, 700, -1.88753e+77
domain error
-25, - 8, 3.45114e+08
-

-
- - Error - Output For cyl_bessel_j (integer orders) with compiler Microsoft Visual C++ - version 12.0 and library <math.h> and test data Bessel JN: Mathworld - Data (Integer Version) -
-

- CAUTION: - Found non-finite result, when a finite value was expected at entry 16
- Found: -1.#IND Expected 0 Error: 1.79769e+308
10, 1e-100, 0
CAUTION: - Gross error found at entry 16.
Found: -1.#IND Expected 0 Error: 1.79769e+308
- 10, 1e-100, 0
-

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/macros.html b/boost/libs/math/doc/html/math_toolkit/macros.html deleted file mode 100644 index 0200f285..00000000 --- a/boost/libs/math/doc/html/math_toolkit/macros.html +++ /dev/null @@ -1,88 +0,0 @@ - - - -Floating-Point Constant Macros - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- All macros of the type BOOST_FLOAT16_C, BOOST_FLOAT32_C, BOOST_FLOAT64_C, BOOST_FLOAT80_C, BOOST_FLOAT128_C, and BOOST_FLOATMAX_C - are always defined after inclusion of <boost/cstdfloat.hpp>. -

-

- These allow floating-point constants of at least the - specified width to be declared: -

-
// Declare Archimedes' constant using float32_t with approximately 7 decimal digits of precision.
-static const boost::float32_t pi = BOOST_FLOAT32_C(3.1415926536);
-
-// Declare the Euler-gamma constant with approximately 15 decimal digits of precision.
-static const boost::float64_t euler =
-   BOOST_FLOAT64_C(0.57721566490153286060651209008240243104216);
-
-// Declare the Golden Ratio constant with the maximum decimal digits of precision that the platform supports.
-static const boost::floatmax_t golden_ratio =
-   BOOST_FLOATMAX_C(1.61803398874989484820458683436563811772);
-
-
- - - - - -
[Tip]Tip

- Boost.Math provides many constants 'built-in', so always use Boost.Math constants - if available, for example: -

-
// Display the constant pi to the maximum available precision.
-  boost::floatmax_t pi_max = boost::math::constants::pi<boost::floatmax_t>();
-  std::cout.precision(std::numeric_limits<boost::floatmax_t>::digits10);
-  std::cout << "Most precise pi = "  << pi_max << std::endl;
-// If floatmax_t is float_128_t, then
-// Most precise pi = 3.141592653589793238462643383279503
-
-

- from cstdfloat_example.cpp. -

-

- See the complete list of constants. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/main_faq.html b/boost/libs/math/doc/html/math_toolkit/main_faq.html deleted file mode 100644 index c99efa42..00000000 --- a/boost/libs/math/doc/html/math_toolkit/main_faq.html +++ /dev/null @@ -1,226 +0,0 @@ - - - -Frequently Asked Questions FAQ - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
    -
  1. - I'm a FORTRAN/NAG/SPSS/SAS/Cephes/MathCad/R user and I don't - see where the functions like dnorm(mean, sd) are in Boost.Math? -
    Nearly all are provided, and many more like mean, skewness, quantiles, - complements ... but Boost.Math makes full use of C++, and it looks a bit - different. But do not panic! See section on construction and the many examples. - Briefly, the distribution is constructed with the parameters (like location - and scale) (things after the | in representation like P(X=k|n, p) or ; - in a common represention of pdf f(x; μσ2). Functions like pdf, cdf are called - with the name of that distribution and the random variate often called - x or k. For example, normal my_norm(0, 1); pdf(my_norm, 2.0); -
    -
  2. -
  3. - I'm a user of New - SAS Functions for Computing Probabilities.
    You will find - the interface more familar, but to be able to select a distribution (perhaps - using a string) see the Extras/Future Directions section, and /boost/libs/math/dot_net_example/boost_math.cpp - for an example that is used to create a C# (C sharp) utility (that you - might also find useful): see Statistical - Distribution Explorer.
    -
  4. -
  5. - I'm allegic to reading manuals and prefer to learn from examples.
    - Fear not - you are not alone! Many examples are available for functions - and distributions. Some are referenced directly from the text. Others can - be found at \boost_latest_release\libs\math\example. If you are a Visual - Studio user, you should be able to create projects from each of these, - making sure that the Boost library is in the include directories list. -
  6. -
  7. - How do I make sure that the Boost library is in the Visual Studio - include directories list?
    You can add an include path, - for example, your Boost place /boost-latest_release, for example X:/boost_1_45_0/ if you have a separate partition X for - Boost releases. Or you can use an environment variable BOOST_ROOT set to - your Boost place, and include that. Visual Studio before 2010 provided - Tools, Options, VC++ Directories to control directories: Visual Studio - 2010 instead provides property sheets to assist. You may find it convenient - to create a new one adding \boost-latest_release; to the existing include - items in $(IncludePath). -
  8. -
  9. - I'm a FORTRAN/NAG/SPSS/SAS/Cephes/MathCad/R user and I don't - see where the properties like mean, median, mode, variance, skewness of - distributions are in Boost.Math?
    They are all available - (if defined for the parameters with which you constructed the distribution) - via Cumulative Distribution - Function, Probability - Density Function, Quantile, - Hazard Function, - Cumulative Hazard Function, - mean, median, - mode, variance, - standard deviation, - skewness, kurtosis, kurtosis_excess, - range and support. -
  10. -
  11. - I am a C programmer. Can I user Boost.Math with C?
    - Yes you can, including all the special functions, and TR1 functions like - isnan. They appear as C functions, by being declared as "extern C". -
  12. -
  13. - I am a C# (Basic? F# FORTRAN? Other CLI?) programmer. Can I use - Boost.Math with C#? (or ...)?
    Yes you can, including - all the special functions, and TR1 functions like isnan. But you must build the Boost.Math as a dynamic library (.dll) and compile - with the /CLI option. See the boost/math/dot_net_example folder - which contains an example that builds a simple statistical distribution - app with a GUI. See Statistical - Distribution Explorer
    -
  14. -
  15. - What these "policies" things for?
    - Policies are a powerful (if necessarily complex) fine-grain mechanism that - allow you to customise the behaviour of the Boost.Math library according - to your precise needs. See Policies. But - if, very probably, the default behaviour suits you, you don't need to know - more. -
  16. -
  17. - I am a C user and expect to see global C-style::errno set for overflow/errors etc? -
    You can achieve what you want - see error - handling policies and user - error handling and many examples. -
  18. -
  19. - I am a C user and expect to silently return a max value for overflow? -
    You (and C++ users too) can return whatever you want on overflow - - see overflow_error - and error - handling policies and several examples. -
  20. -
  21. - I don't want any error message for overflow etc? -
    You can control exactly what happens for all the abnormal conditions, - including the values returned. See domain_error, - overflow_error - error handling - policies user - error handling etc and examples. -
  22. -
  23. - My environment doesn't allow and/or I don't want exceptions. - Can I still user Boost.Math?
    Yes but you must customise - the error handling: see user - error handling and changing - policies defaults . -
  24. -
  25. - The docs are several hundreds of pages long! Can I read the docs - off-line or on paper?
    Yes - you can download the Boost - current release of most documentation as a zip of pdfs (including Boost.Math) - from Sourceforge, for example https://sourceforge.net/projects/boost/files/boost-docs/1.45.0/boost_pdf_1_45_0.tar.gz/download. - And you can print any pages you need (or even print all pages - but be - warned that there are several hundred!). Both html and pdf versions are - highly hyperlinked. The entire Boost.Math pdf can be searched with Adobe - Reader, Edit, Find ... This can often find what you seek, a partial substitute - for a full index. -
  26. -
  27. - I want a compact version for an embedded application. Can I use - float precision?
    Yes - by selecting RealType template - parameter as float: for example normal_distribution<float> your_normal(mean, - sd); (But double may still be used internally, so space saving may be less - that you hope for). You can also change the promotion policy, but accuracy - might be much reduced. -
  28. -
  29. - I seem to get somewhat different results compared to other programs. - Why? We hope Boost.Math to be more accurate: our priority is - accuracy (over speed). See the section on accuracy. But for evaluations - that require iterations there are parameters which can change the required - accuracy (see Policies). You might be able - to squeeze a little more (or less) accuracy at the cost of runtime. -
  30. -
  31. - Will my program run more slowly compared to other math functions - and statistical libraries? Probably, thought not always, and - not by too much: our priority is accuracy. For most functions, making sure - you have the latest compiler version with all optimisations switched on - is the key to speed. For evaluations that require iteration, you may be - able to gain a little more speed at the expense of accuracy. See detailed - suggestions and results on performance. -
  32. -
  33. - How do I handle infinity and NaNs portably?
    - See nonfinite fp_facets for - Facets for Floating-Point Infinities and NaNs. -
  34. -
  35. - Where are the pre-built libraries?
    Good news - - you probably don't need any! - just #include - <boost/math/distribution_you_want>. - But in the unlikely event that you do, see building - libraries. -
  36. -
  37. - I don't see the function or distribution that I want. -
    You could try an email to ask the authors - but no promises! -
  38. -
  39. - I need more decimal digits for values/computations. -
    You can use Boost.Math with Boost.Multiprecision: - typically cpp_dec_float - is a useful user-defined type to provide a fixed number of decimal digits, - usually 50 or 100. -
  40. -
  41. - Why can't I write something really simple like cpp_int - one(1); cpp_dec_float_50 - two(2); one - * two; Because cpp_int - might be bigger than cpp_dec_float - can hold, - so you must make an explicit conversion. - See mixed - multiprecision arithmetic and conversion. -
  42. -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/main_intro.html b/boost/libs/math/doc/html/math_toolkit/main_intro.html deleted file mode 100644 index ec7b41ec..00000000 --- a/boost/libs/math/doc/html/math_toolkit/main_intro.html +++ /dev/null @@ -1,141 +0,0 @@ - - - -About the Math Toolkit - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- This library is divided into three interconnected parts: -

-
- - Statistical - Distributions -
-

- Provides a reasonably comprehensive set of statistical - distributions, upon which higher level statistical tests can be built. -

-

- The initial focus is on the central univariate - distributions. - Both continuous - (like normal - & Fisher) and - discrete - (like binomial - & Poisson) - distributions are provided. -

-

- A comprehensive tutorial is provided, - along with a series of worked examples - illustrating how the library is used to conduct statistical tests. -

-
- - Mathematical - Special Functions -
-

- Provides a small number of high quality special functions, - initially these were concentrated on functions used in statistical applications - along with those in the Technical - Report on C++ Library Extensions. -

-

- The function families currently implemented are the gamma, beta & erf functions - along with the incomplete gamma and beta functions (four variants of each) - and all the possible inverses of these, plus digamma, various factorial functions, - Bessel functions, elliptic integrals, sinus cardinals (along with their hyperbolic - variants), inverse hyperbolic functions, Legrendre/Laguerre/Hermite polynomials - and various special power and logarithmic functions. -

-

- All the implementations are fully generic and support the use of arbitrary - "real-number" types, including Boost.Multiprecision, - although they are optimised for use with types with known-about significand - (or mantissa) sizes: typically float, - double or long - double. -

-
- - Implementation - Toolkit -
-

- The section Internal tools - provides many of the tools required to implement mathematical special functions: - hopefully the presence of these will encourage other authors to contribute - more special function implementations in the future. -

-

- Some tools are now considered well-tried and their signatures stable and unlikely - to change. -

-

- There is a fairly comprehensive set of root finding both root-finding - without derivatives and root-finding - with derivatives with derivative support, and function minimization - using Brent's method. -

-

- Other Internal tools - are currently still considered experimental: they are "exposed implementation - details" whose interfaces and/or implementations may change without notice. -

-

- There are helpers for the evaluation - of infinite series, continued - fractions and rational approximations. - A Remez algorithm implementation - allows for the locating of minimax rational approximations. -

-

- There are also (experimental) classes for the manipulation - of polynomials, for testing - a special function against tabulated test data, and for the rapid - generation of test data and/or data for output to an external graphing - application. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/main_tr1.html b/boost/libs/math/doc/html/math_toolkit/main_tr1.html deleted file mode 100644 index 4ea13f4e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/main_tr1.html +++ /dev/null @@ -1,617 +0,0 @@ - - - -C99 and TR1 C Functions Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Many of the special functions included in this library are also a part of the - either the C99 - Standard ISO/IEC 9899:1999 or the Technical - Report on C++ Library Extensions. Therefore this library includes a - thin wrapper header boost/math/tr1.hpp that - provides compatibility with these two standards. -

-

- There are various pros and cons to using the library in this way: -

-

- Pros: -

-
    -
  • - The header to include is lightweight (i.e. fast to compile). -
  • -
  • - The functions have extern "C" linkage, and so are usable from - other languages (not just C and C++). -
  • -
  • - C99 and C++ TR1 Standard compatibility. -
  • -
-

- Cons: -

-
    -
  • - You will need to compile and link to the external Boost.Math libraries. -
  • -
  • - Limited to support for the types, float, - double and long - double. -
  • -
  • - Error handling is handled via setting ::errno and returning NaN's and infinities: - this may be less flexible than an C++ exception based approach. -
  • -
-
- - - - - -
[Note]Note

- The separate libraries are required only - if you choose to use boost/math/tr1.hpp rather than some other Boost.Math - header, the rest of Boost.Math remains header-only. -

-

- The separate libraries required in order to use tr1.hpp can be compiled using - bjam from within the libs/math/build directory, or from the Boost root directory - using the usual Boost-wide install procedure. Alternatively the source files - are located in libs/math/src and each have the same name as the function they - implement. The various libraries are named as follows: -

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Name -

-
-

- Type -

-
-

- Functions -

-
-

- boost_math_c99f-<suffix> -

-
-

- float -

-
-

- C99 Functions -

-
-

- boost_math_c99-<suffix> -

-
-

- double -

-
-

- C99 Functions -

-
-

- boost_math_c99l-<suffix> -

-
-

- long double -

-
-

- C99 Functions -

-
-

- boost_math_tr1f-<suffix> -

-
-

- float -

-
-

- TR1 Functions -

-
-

- boost_math_tr1-<suffix> -

-
-

- double -

-
-

- TR1 Functions -

-
-

- boost_math_tr1l-<suffix> -

-
-

- long double -

-
-

- TR1 Functions -

-
-

- Where <suffix> encodes the compiler and build options - used to build the libraries: for example "libboost_math_tr1-vc80-mt-gd.lib" - would be the statically linked TR1 library to use with Visual C++ 8.0, in multithreading - debug mode, with the DLL VC++ runtime, where as "boost_math_tr1-vc80-mt.lib" - would be import library for the TR1 DLL to be used with Visual C++ 8.0 with - the release multithreaded DLL VC++ runtime. Refer to the getting started guide - for a full - explanation of the <suffix> meanings. -

-
- - - - - -
[Note]Note
-

- Visual C++ users will typically have the correct library variant to link - against selected for them by boost/math/tr1.hpp based on your compiler settings. -

-

- Users will need to define BOOST_MATH_TR1_DYN_LINK when building their code - if they want to link against the DLL versions of these libraries rather than - the static versions. -

-

- Users can disable auto-linking by defining BOOST_MATH_TR1_NO_LIB when building: - this is typically only used when linking against a customised build of the - libraries. -

-
-
- - - - - -
[Note]Note

- Linux and Unix users will generally only have one variant of these libraries - installed, and can generally just link against -lboost_math_tr1 etc. -

-
- - Usage - Recomendations -
-

- This library now presents the user with a choice: -

-
    -
  • - To include the header only versions of the functions and have an easier - time linking, but a longer compile time. -
  • -
  • - To include the TR1 headers and link against an external library. -
  • -
-

- Which option you choose depends largely on how you prefer to work and how your - system is set up. -

-

- For example a casual user who just needs the acosh function, would probably - be better off including <boost/math/special_functions/acosh.hpp> and using boost::math::acosh(x) in their code. -

-

- However, for large scale software development where compile times are significant, - and where the Boost libraries are already built and installed on the system, - then including <boost/math/tr1.hpp> and using boost::math::tr1::acosh(x) - will speed up compile times, reduce object files sizes (since there are no - templates being instantiated any more), and also speed up debugging runtimes - - since the externally compiled libraries can be compiler optimised, rather - than built using full settings - the difference in performance between release and debug builds can be as much - as 20 times, so for complex applications this can be a big win. -

-
- - Supported - C99 Functions -
-

- See also the quick reference guide for these - functions. -

-
namespace boost{ namespace math{ namespace tr1{ extern "C"{
-
-typedef unspecified float_t;
-typedef unspecified double_t;
-
-double acosh(double x);
-float acoshf(float x);
-long double acoshl(long double x);
-
-double asinh(double x);
-float asinhf(float x);
-long double asinhl(long double x);
-
-double atanh(double x);
-float atanhf(float x);
-long double atanhl(long double x);
-
-double cbrt(double x);
-float cbrtf(float x);
-long double cbrtl(long double x);
-
-double copysign(double x, double y);
-float copysignf(float x, float y);
-long double copysignl(long double x, long double y);
-
-double erf(double x);
-float erff(float x);
-long double erfl(long double x);
-
-double erfc(double x);
-float erfcf(float x);
-long double erfcl(long double x);
-
-double expm1(double x);
-float expm1f(float x);
-long double expm1l(long double x);
-
-double fmax(double x, double y);
-float fmaxf(float x, float y);
-long double fmaxl(long double x, long double y);
-
-double fmin(double x, double y);
-float fminf(float x, float y);
-long double fminl(long double x, long double y);
-
-double hypot(double x, double y);
-float hypotf(float x, float y);
-long double hypotl(long double x, long double y);
-
-double lgamma(double x);
-float lgammaf(float x);
-long double lgammal(long double x);
-
-long long llround(double x);
-long long llroundf(float x);
-long long llroundl(long double x);
-
-double log1p(double x);
-float log1pf(float x);
-long double log1pl(long double x);
-
-long lround(double x);
-long lroundf(float x);
-long lroundl(long double x);
-
-double nextafter(double x, double y);
-float nextafterf(float x, float y);
-long double nextafterl(long double x, long double y);
-
-double nexttoward(double x, long double y);
-float nexttowardf(float x, long double y);
-long double nexttowardl(long double x, long double y);
-
-double round(double x);
-float roundf(float x);
-long double roundl(long double x);
-
-double tgamma(double x);
-float tgammaf(float x);
-long double tgammal(long double x);
-
-double trunc(double x);
-float truncf(float x);
-long double truncl(long double x);
-
-}}}} // namespaces
-
-
- - Supported - TR1 Functions -
-

- See also the quick reference guide for - these functions. -

-
namespace boost{ namespace math{ namespace tr1{ extern "C"{
-
-// [5.2.1.1] associated Laguerre polynomials:
-double assoc_laguerre(unsigned n, unsigned m, double x);
-float assoc_laguerref(unsigned n, unsigned m, float x);
-long double assoc_laguerrel(unsigned n, unsigned m, long double x);
-
-// [5.2.1.2] associated Legendre functions:
-double assoc_legendre(unsigned l, unsigned m, double x);
-float assoc_legendref(unsigned l, unsigned m, float x);
-long double assoc_legendrel(unsigned l, unsigned m, long double x);
-
-// [5.2.1.3] beta function:
-double beta(double x, double y);
-float betaf(float x, float y);
-long double betal(long double x, long double y);
-
-// [5.2.1.4] (complete) elliptic integral of the first kind:
-double comp_ellint_1(double k);
-float comp_ellint_1f(float k);
-long double comp_ellint_1l(long double k);
-
-// [5.2.1.5] (complete) elliptic integral of the second kind:
-double comp_ellint_2(double k);
-float comp_ellint_2f(float k);
-long double comp_ellint_2l(long double k);
-
-// [5.2.1.6] (complete) elliptic integral of the third kind:
-double comp_ellint_3(double k, double nu);
-float comp_ellint_3f(float k, float nu);
-long double comp_ellint_3l(long double k, long double nu);
-
-// [5.2.1.8] regular modified cylindrical Bessel functions:
-double cyl_bessel_i(double nu, double x);
-float cyl_bessel_if(float nu, float x);
-long double cyl_bessel_il(long double nu, long double x);
-
-// [5.2.1.9] cylindrical Bessel functions (of the first kind):
-double cyl_bessel_j(double nu, double x);
-float cyl_bessel_jf(float nu, float x);
-long double cyl_bessel_jl(long double nu, long double x);
-
-// [5.2.1.10] irregular modified cylindrical Bessel functions:
-double cyl_bessel_k(double nu, double x);
-float cyl_bessel_kf(float nu, float x);
-long double cyl_bessel_kl(long double nu, long double x);
-
-// [5.2.1.11] cylindrical Neumann functions;
-// cylindrical Bessel functions (of the second kind):
-double cyl_neumann(double nu, double x);
-float cyl_neumannf(float nu, float x);
-long double cyl_neumannl(long double nu, long double x);
-
-// [5.2.1.12] (incomplete) elliptic integral of the first kind:
-double ellint_1(double k, double phi);
-float ellint_1f(float k, float phi);
-long double ellint_1l(long double k, long double phi);
-
-// [5.2.1.13] (incomplete) elliptic integral of the second kind:
-double ellint_2(double k, double phi);
-float ellint_2f(float k, float phi);
-long double ellint_2l(long double k, long double phi);
-
-// [5.2.1.14] (incomplete) elliptic integral of the third kind:
-double ellint_3(double k, double nu, double phi);
-float ellint_3f(float k, float nu, float phi);
-long double ellint_3l(long double k, long double nu, long double phi);
-
-// [5.2.1.15] exponential integral:
-double expint(double x);
-float expintf(float x);
-long double expintl(long double x);
-
-// [5.2.1.16] Hermite polynomials:
-double hermite(unsigned n, double x);
-float hermitef(unsigned n, float x);
-long double hermitel(unsigned n, long double x);
-
-// [5.2.1.18] Laguerre polynomials:
-double laguerre(unsigned n, double x);
-float laguerref(unsigned n, float x);
-long double laguerrel(unsigned n, long double x);
-
-// [5.2.1.19] Legendre polynomials:
-double legendre(unsigned l, double x);
-float legendref(unsigned l, float x);
-long double legendrel(unsigned l, long double x);
-
-// [5.2.1.20] Riemann zeta function:
-double riemann_zeta(double);
-float riemann_zetaf(float);
-long double riemann_zetal(long double);
-
-// [5.2.1.21] spherical Bessel functions (of the first kind):
-double sph_bessel(unsigned n, double x);
-float sph_besself(unsigned n, float x);
-long double sph_bessell(unsigned n, long double x);
-
-// [5.2.1.22] spherical associated Legendre functions:
-double sph_legendre(unsigned l, unsigned m, double theta);
-float sph_legendref(unsigned l, unsigned m, float theta);
-long double sph_legendrel(unsigned l, unsigned m, long double theta);
-
-// [5.2.1.23] spherical Neumann functions;
-// spherical Bessel functions (of the second kind):
-double sph_neumann(unsigned n, double x);
-float sph_neumannf(unsigned n, float x);
-long double sph_neumannl(unsigned n, long double x);
-
-}}}} // namespaces
-
-

- In addition sufficient additional overloads of the double - versions of the above functions are provided, so that calling the function - with any mixture of float, double, long - double, or integer - arguments is supported, with the return type determined by the result - type calculation rules. -

-
- - Currently - Unsupported C99 Functions -
-
double exp2(double x);
-float exp2f(float x);
-long double exp2l(long double x);
-
-double fdim(double x, double y);
-float fdimf(float x, float y);
-long double fdiml(long double x, long double y);
-
-double fma(double x, double y, double z);
-float fmaf(float x, float y, float z);
-long double fmal(long double x, long double y, long double z);
-
-int ilogb(double x);
-int ilogbf(float x);
-int ilogbl(long double x);
-
-long long llrint(double x);
-long long llrintf(float x);
-long long llrintl(long double x);
-
-double log2(double x);
-float log2f(float x);
-long double log2l(long double x);
-
-double logb(double x);
-float logbf(float x);
-long double logbl(long double x);
-
-long lrint(double x);
-long lrintf(float x);
-long lrintl(long double x);
-
-double nan(const char *str);
-float nanf(const char *str);
-long double nanl(const char *str);
-
-double nearbyint(double x);
-float nearbyintf(float x);
-long double nearbyintl(long double x);
-
-double remainder(double x, double y);
-float remainderf(float x, float y);
-long double remainderl(long double x, long double y);
-
-double remquo(double x, double y, int *pquo);
-float remquof(float x, float y, int *pquo);
-long double remquol(long double x, long double y, int *pquo);
-
-double rint(double x);
-float rintf(float x);
-long double rintl(long double x);
-
-double scalbln(double x, long ex);
-float scalblnf(float x, long ex);
-long double scalblnl(long double x, long ex);
-
-double scalbn(double x, int ex);
-float scalbnf(float x, int ex);
-long double scalbnl(long double x, int ex);
-
-
- - Currently - Unsupported TR1 Functions -
-
// [5.2.1.7] confluent hypergeometric functions:
-double conf_hyperg(double a, double c, double x);
-float conf_hypergf(float a, float c, float x);
-long double conf_hypergl(long double a, long double c, long double x);
-
-// [5.2.1.17] hypergeometric functions:
-double hyperg(double a, double b, double c, double x);
-float hypergf(float a, float b, float c, float x);
-long double hypergl(long double a, long double b, long double c,
-long double x);
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/mem_typedef.html b/boost/libs/math/doc/html/math_toolkit/mem_typedef.html deleted file mode 100644 index c023e5da..00000000 --- a/boost/libs/math/doc/html/math_toolkit/mem_typedef.html +++ /dev/null @@ -1,72 +0,0 @@ - - - -Quaternion Member Typedefs - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- value_type -

-

- Template version: -

-
typedef T value_type;
-
-

- Float specialization version: -

-
typedef float value_type;
-
-

- Double specialization version: -

-
typedef double value_type;
-
-

- Long double specialization version: -

-
typedef long double value_type;
-
-

- These provide easy acces to the type the template is built upon. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/minimum_typdefs.html b/boost/libs/math/doc/html/math_toolkit/minimum_typdefs.html deleted file mode 100644 index af021c81..00000000 --- a/boost/libs/math/doc/html/math_toolkit/minimum_typdefs.html +++ /dev/null @@ -1,62 +0,0 @@ - - - -Minimum-width floating-point typedefs - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The typedef float_least#_t, with - # replaced by the width, designates a floating-point type with a width of at least # bits, such that no floating-point - type with lesser size has at least the specified width. Thus, float_least32_t denotes the smallest floating-point - type with a width of at least 32 bits. -

-

- Minimum-width floating-point types are provided for all existing exact-width - floating-point types on a given platform. -

-

- For example, if a platform supports float32_t - and float64_t, then float_least32_t and float_least64_t - will also be supported, etc. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/multiprecision.html b/boost/libs/math/doc/html/math_toolkit/multiprecision.html deleted file mode 100644 index 26da7489..00000000 --- a/boost/libs/math/doc/html/math_toolkit/multiprecision.html +++ /dev/null @@ -1,126 +0,0 @@ - - - -Cost of High-Precision Non-built-in Floating-point - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Using user-defined floating-point like Boost.Multiprecision - has a very high run-time cost. -

-

- To give some flavour of this: -

-
-

Table 16.2. Linpack Benchmark

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- floating-point type -

-
-

- speed Mflops -

-
-

- double -

-
-

- 2727 -

-
-

- __float128 -

-
-

- 35 -

-
-

- multiprecision::float128 -

-
-

- 35 -

-
-

- multiprecision::cpp_bin_float_quad -

-
-

- 6 -

-
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/namespaces.html b/boost/libs/math/doc/html/math_toolkit/namespaces.html deleted file mode 100644 index e3becc5c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/namespaces.html +++ /dev/null @@ -1,97 +0,0 @@ - - - -Namespaces - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- All math functions and distributions are in namespace - boost::math -

-

- So, for example, the Students-t distribution template in namespace - boost::math is -

-
template <class RealType> class students_t_distribution
-
-

- and can be instantiated with the help of the reserved name students_t(for - RealType double) -

-
typedef students_t_distribution<double> students_t;
-
-student_t mydist(10);
-
-
- - - - - -
[Warning]Warning

- Some distribution names are also used in std random library, so to avoid - the risk of ambiguity it is better to make explicit using declarations, for - example: using boost::math::students_t_distribution -

-

- Functions not intended for use by applications are in boost::math::detail. -

-

- Functions that may have more general use, like digits - (significand), max_value, - min_value and epsilon are in boost::math::tools. -

-

- Policy and configuration information is in namespace - boost::math::policies. -

-
- - - - - -
[Tip]Tip

- Many code snippets assume implicit namespace(s), for example, std:: or - boost::math. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/navigation.html b/boost/libs/math/doc/html/math_toolkit/navigation.html deleted file mode 100644 index 5c2ea729..00000000 --- a/boost/libs/math/doc/html/math_toolkit/navigation.html +++ /dev/null @@ -1,104 +0,0 @@ - - - -Navigation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- -

-

- Boost.Math documentation is provided in both HTML and PDF formats. -

-
    -
  • - Tutorials are listed in the Table - of Contents and include many examples that should help you get - started quickly. -
  • -
  • - Source code of the many Examples - will often be your quickest starting point. -
  • -
  • - Index (general) includes all entries. -
  • -
  • - Specific Indexes list only functions, - class signatures, macros and typedefs. -
  • -
-
- - Using - the Indexes -
-

- The main index will usually help, especially if you know a word describing - what it does, without needing to know the exact name chosen for the function. -

-
- - - - - -
[Tip]Tip

- When using the index, keep in mind that clicking on an index term only takes - you to the section containing the index - entry. This section may be several pages long, so you may need to use the - find facility of your browser or PDF reader - to get to the index term itself. -

-
- - - - - -
[Tip]Tip

- A PDF reader usually allows a global find; - this can be really useful if the term you expect to be indexed is not the - one chosen by the authors. You might find searching the PDF version and viewing - the HTML version will locate an elusive item. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/new_const.html b/boost/libs/math/doc/html/math_toolkit/new_const.html deleted file mode 100644 index b48bbc59..00000000 --- a/boost/libs/math/doc/html/math_toolkit/new_const.html +++ /dev/null @@ -1,266 +0,0 @@ - - - -Defining New Constants - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The library provides some helper code to assist in defining new constants; - the process for defining a constant called my_constant - goes like this: -

-

- 1. Define a function that calculates the value of the - constant. This should be a template function, and be placed in - boost/math/constants/calculate_constants.hpp if the - constant is to be added to this library, or else defined at the top of your - source file if not. -

-

- The function should look like this: -

-
namespace boost{ namespace math{ namespace constants{ namespace detail{
-
-template <class Real>
-template <int N>
-Real constant_my_constant<Real>::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_<N>))
-{
-  int required_precision = N ? N : tools::digits<Real>();
-  Real result = /* value computed to required_precision bits */ ;
-  return result;
-}
-
-}}}} // namespaces
-
-

- Then define a placeholder for the constant itself: -

-
namespace boost{ namespace math{ namespace constants{
-
-BOOST_DEFINE_MATH_CONSTANT(my_constant, 0.0, "0");
-
-}}}
-
-

- For example, to calculate π/2, add to boost/math/constants/calculate_constants.hpp -

-
template <class T>
-template<int N>
-inline T constant_half_pi<T>::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_<N>))
-{
-   BOOST_MATH_STD_USING
-   return pi<T, policies::policy<policies::digits2<N> > >() / static_cast<T>(2);
-}
-
-

- Then to boost/math/constants/constants.hpp add: -

-
BOOST_DEFINE_MATH_CONSTANT(half_pi, 0.0, "0");  // Actual values are temporary, we'll replace them later.
-
-
- - - - - -
[Note]Note

- Previously defined constants like pi and e can be used, but by not simply calling pi<T>(); - specifying the precision via the policy pi<T, - policies::policy<policies::digits2<N> > >() - is essential to ensure full accuracy. -

-
- - - - - -
[Warning]Warning
-

- Newly defined constants can only be used once they are included in boost/math/constants/constants.hpp. So - if you add template <class T, class N> T constant_my_constant{...}, - then you cannot define constant_my_constant - until you add the temporary BOOST_DEFINE_MATH_CONSTANT(my_constant, 0.0, - "0"). - Failing to do this will result in surprising compile errors: -

-
error C2143: syntax error : missing ';' before '<'
-error C2433: 'constant_root_two_div_pi' : 'inline' not permitted on data declarations
-error C2888: 'T constant_root_two_div_pi' : symbol cannot be defined within namespace 'detail'
-error C2988: unrecognizable template declaration/definition
-
-
-

- 2. You will need an arbitrary precision type to use to - calculate the value. This library currently supports either cpp_float, NTL::RR or - mpfr_class used via the bindings - in boost/math/bindings. - The default is to use NTL::RR unless you define an alternate macro, - for example, USE_MPFR or USE_CPP_FLOAT at the start of your program. -

-

- 3. It is necessary to link to the Boost.Regex library, and probably to your - chosen arbitrary precision type library. -

-

- 4. You need to add libs\math\include_private - to your compiler's include path as the needed header is not installed in the - usual places by default (this avoids a cyclic dependency between the Math and - Multiprecision library's headers). -

-

- 5. The complete program to generate the constant half_pi - using function calculate_half_pi - is then: -

-
#define USE_CPP_FLOAT // If required.
-#include <boost/math/constants/generate.hpp>
-
-int main()
-{
-   BOOST_CONSTANTS_GENERATE(half_pi);
-}
-
-

- The output from the program is a snippet of C++ code (actually a macro call) - that can be cut and pasted into boost/math/constants/constants.hpp or else into your own code, for example: -

-
  BOOST_DEFINE_MATH_CONSTANT(half_pi, 1.570796326794896619231321691639751442e+00, "1.57079632679489661923132169163975144209858469968755291048747229615390820314310449931401741267105853399107404326e+00");
-
-

- This macro BOOST_DEFINE_MATH_CONSTANT inserts a C++ struct code snippet that - declares the float, double and long - double versions of the constant, plus - a decimal digit string representation correct to 100 decimal digits, and all - the meta-programming machinery needed to select between them. -

-

- The result of an expanded macro for Pi is shown below. -

-
// Preprocessed pi constant, annotated.
-
-namespace boost
-{
-  namespace math
-  {
-    namespace constants
-    {
-      namespace detail
-      {
-        template <class T> struct constant_pi
-        {
-          private:
-            // Default implementations from string of decimal digits:
-            static inline T get_from_string()
-            {
-            static const T result
-               = detail::convert_from_string<T>("3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651e+00",
-               boost::is_convertible<const char*, T>());
-              return result;
-            }
-            template <int N> static T compute();
-
-          public:
-            // Default implementations from string of decimal digits:
-            static inline T get(const mpl::int_<construct_from_string>&)
-            {
-              constant_initializer<T, & constant_pi<T>::get_from_string >::do_nothing();
-              return get_from_string();
-            }
-            // Float, double and long double versions:
-            static inline T get(const mpl::int_<construct_from_float>)
-            {
-              return 3.141592653589793238462643383279502884e+00F;
-            }
-            static inline  T get(const mpl::int_<construct_from_double>&)
-            {
-              return 3.141592653589793238462643383279502884e+00;
-            }
-            static inline  T get(const mpl::int_<construct_from_long_double>&)
-            {
-              return 3.141592653589793238462643383279502884e+00L;
-            }
-            // For very high precision that is nonetheless can be calculated at compile time:
-            template <int N> static inline T get(const mpl::int_<N>& n)
-            {
-              constant_initializer2<T, N, & constant_pi<T>::template compute<N> >::do_nothing();
-              return compute<N>();
-            }
-            //For true arbitrary precision, which may well vary at runtime.
-            static inline T get(const mpl::int_<0>&)
-            {
-              return tools::digits<T>() > max_string_digits ? compute<0>() : get(mpl::int_<construct_from_string>());
-            }
-         }; // template <class T> struct constant_pi
-      } //  namespace detail
-
-      // The actual forwarding function (including policy to control precision).
-      template <class T, class Policy> inline T pi( )
-      {
-        return detail:: constant_pi<T>::get(typename construction_traits<T, Policy>::type());
-      }
-      // The actual forwarding function (using default policy to control precision).
-      template <class T> inline  T pi()
-      {
-        return pi<T, boost::math::policies::policy<> >()
-      }
-    } //     namespace constants
-
-    // Namespace specific versions, for the three built-in floats:
-    namespace float_constants
-    {
-      static const float pi = 3.141592653589793238462643383279502884e+00F;
-    }
-    namespace double_constants
-    {
-      static const double pi = 3.141592653589793238462643383279502884e+00;
-    }
-    namespace long_double_constants
-    {
-      static const long double pi = 3.141592653589793238462643383279502884e+00L;
-    }
-    namespace constants{;
-    } // namespace constants
-  } // namespace math
-} // namespace boost
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/next_float.html b/boost/libs/math/doc/html/math_toolkit/next_float.html deleted file mode 100644 index d2a3bde9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/next_float.html +++ /dev/null @@ -1,88 +0,0 @@ - - - -Floating-Point Representation Distance (ULP), and Finding Adjacent Floating-Point Values - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- - -

- Unit of Least - Precision or Unit in the Last Place is the gap between two different, - but as close as possible, floating-point numbers. -

-

- Most decimal values, for example 0.1, cannot be exactly represented as floating-point - values, but will be stored as the closest - representable floating-point. -

-

- Functions are provided for finding adjacent greater and lesser floating-point - values, and estimating the number of gaps between any two floating-point values. -

-

- The floating-point type (FPT) must have has a fixed number of bits in the representation. - The number of bits may set at runtime, but must be the same for all numbers. - For example, NTL::quad_float - type (fixed 128-bit representation), NTL::RR - type (arbitrary but fixed decimal digits, default 150) or Boost.Multiprecision - cpp_dec_float - andcpp_bin_float - are fixed at runtime, but not a type that - extends the representation to provide an exact representation for any number, - for example XRC eXact Real in - C. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/next_float/float_advance.html b/boost/libs/math/doc/html/math_toolkit/next_float/float_advance.html deleted file mode 100644 index 155e22de..00000000 --- a/boost/libs/math/doc/html/math_toolkit/next_float/float_advance.html +++ /dev/null @@ -1,72 +0,0 @@ - - - -Advancing a floating-point Value by a Specific Representation Distance (ULP) float_advance - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Function float_advance advances - a floating-point number by a specified number of ULP. -

-
- - Synopsis -
-
#include <boost/math/special_functions/next.hpp>
-
-
namespace boost{ namespace math{
-
-template <class FPT>
-FPT float_advance(FPT val, int distance);
-
-}} // namespaces
-
-
- - Description - - float_advance -
-

- Returns a floating-point number r such that float_distance(val, r) == distance. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/next_float/float_distance.html b/boost/libs/math/doc/html/math_toolkit/next_float/float_distance.html deleted file mode 100644 index a9d01d45..00000000 --- a/boost/libs/math/doc/html/math_toolkit/next_float/float_distance.html +++ /dev/null @@ -1,106 +0,0 @@ - - - -Calculating the Representation Distance Between Two floating-point Values (ULP) float_distance - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Function float_distance finds the number of gaps/bits/ULP between any two - floating-point values. If the significands of floating-point numbers are - viewed as integers, then their difference is the number of ULP/gaps/bits - different. -

-
- - Synopsis -
-
#include <boost/math/special_functions/next.hpp>
-
-
namespace boost{ namespace math{
-
-template <class FPT>
-FPT float_distance(FPT a, FPT b);
-
-}} // namespaces
-
-
- - Description - - float_distance -
-

- Returns the distance between a and b: - the result is always a signed integer value (stored in floating-point type - FPT) representing the number of distinct representations between a - and b. -

-

- Note that -

-
    -
  • - float_distance(a, a) - always returns 0. -
  • -
  • - float_distance(float_next(a), a) - always returns -1. -
  • -
  • - float_distance(float_prior(a), a) - always returns 1. -
  • -
-

- The function float_distance - is equivalent to calculating the number of ULP (Units in the Last Place) - between a and b except that it - returns a signed value indicating whether a - > b - or not. -

-

- If the distance is too great then it may not be able to be represented as - an exact integer by type FPT, but in practice this is unlikely to be a issue. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/next_float/float_next.html b/boost/libs/math/doc/html/math_toolkit/next_float/float_next.html deleted file mode 100644 index 2bc6076c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/next_float/float_next.html +++ /dev/null @@ -1,76 +0,0 @@ - - - -Finding the Next Greater Representable Value (float_next) - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/next.hpp>
-
-
namespace boost{ namespace math{
-
-template <class FPT>
-FPT float_next(FPT val);
-
-}} // namespaces
-
-
- - Description - - float_next -
-

- Returns the next representable value which is greater than x. - If x is non-finite then returns the result of a domain_error. If - there is no such value greater than x then returns an - overflow_error. -

-

- Has the same effect as -

-
nextafter(val, (std::numeric_limits<FPT>::max)());
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/next_float/float_prior.html b/boost/libs/math/doc/html/math_toolkit/next_float/float_prior.html deleted file mode 100644 index 448f5773..00000000 --- a/boost/libs/math/doc/html/math_toolkit/next_float/float_prior.html +++ /dev/null @@ -1,76 +0,0 @@ - - - -Finding the Next Smaller Representable Value (float_prior) - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/next.hpp>
-
-
namespace boost{ namespace math{
-
-template <class FPT>
-FPT float_prior(FPT val);
-
-}} // namespaces
-
-
- - Description - - float_prior -
-

- Returns the next representable value which is less than x. - If x is non-finite then returns the result of a domain_error. If - there is no such value less than x then returns an - overflow_error. -

-

- Has the same effect as -

-
nextafter(val, -(std::numeric_limits<FPT>::max)());  // Note most negative value -max.
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/next_float/nextafter.html b/boost/libs/math/doc/html/math_toolkit/next_float/nextafter.html deleted file mode 100644 index 96d50818..00000000 --- a/boost/libs/math/doc/html/math_toolkit/next_float/nextafter.html +++ /dev/null @@ -1,130 +0,0 @@ - - - -Finding the Next Representable Value in a Specific Direction (nextafter) - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/next.hpp>
-
-
namespace boost{ namespace math{
-
-template <class FPT>
-FPT nextafter(FPT val, FPT direction);
-
-}} // namespaces
-
-
- - Description - - nextafter -
-

- This is an implementation of the nextafter - function included in the C99 standard. (It is also effectively an implementation - of the C99 nexttoward legacy - function which differs only having a long - double direction, and can generally - serve in its place if required). -

-
- - - - - -
[Note]Note

- The C99 functions must use suffixes f and l to distinguish float and long - double versions. C++ uses the template - mechanism instead. -

-

- Returns the next representable value after x in the - direction of y. If x - == y - then returns x. If x is non-finite - then returns the result of a domain_error. - If there is no such value in the direction of y then - returns an overflow_error. -

-
- - - - - -
[Warning]Warning

- The template parameter FTP must be a floating-point type. An integer type, - for example, will produce an unhelpful error message. -

-
- - - - - -
[Tip]Tip

- Nearly always, you just want the next or prior representable value, so - instead use float_next - or float_prior below. -

-
- - Examples - - nextafter -
-

- The two representations using a 32-bit float either side of unity are: -

-
The nearest (exact) representation of 1.F is      1.00000000
-nextafter(1.F, 999) is                            1.00000012
-nextafter(1/f, -999) is                           0.99999994
-
-The nearest (not exact) representation of 0.1F is 0.100000001
-nextafter(0.1F, 10) is                            0.100000009
-nextafter(0.1F, 10) is                            0.099999994
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/next_float/ulp.html b/boost/libs/math/doc/html/math_toolkit/next_float/ulp.html deleted file mode 100644 index 0f6c943c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/next_float/ulp.html +++ /dev/null @@ -1,164 +0,0 @@ - - - -Obtaining the Size of a Unit In the Last Place - ULP - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Function ulp gives the size - of a unit-in-the-last-place for a specified floating-point value. -

-
- - Synopsis -
-
#include <boost/math/special_functions/ulp.hpp>
-
-
namespace boost{ namespace math{
-
-template <class FPT>
-FPT ulp(const FPT& x);
-
-template <class FPT, class Policy>
-FPT ulp(const FPT& x, const Policy&);
-
-}} // namespaces
-
-
- - Description - - ulp -
-

- Returns one unit - in the last place of x. -

-

- Corner cases are handled as followes: -

-
    -
  • - If the argument is a NaN, then raises a domain_error. -
  • -
  • - If the argument is an infinity, then raises an overflow_error. -
  • -
  • - If the argument is zero then returns the smallest representable value: - for example for type double - this would be either std::numeric_limits<double>::min() or std::numeric_limits<double>::denorm_min() depending whether denormals are supported - (which have the values 2.2250738585072014e-308 - and 4.9406564584124654e-324 - respectively). -
  • -
  • - If the result is too small to represent, then returns the smallest representable - value. -
  • -
  • - Always returns a positive value such that ulp(x) == ulp(-x). -
  • -
-

- Important: The behavior of this function - is aligned to that of Java's - ulp function, please note however that this function should only - ever be used for rough and ready calculations as there are enough corner - cases to trap even careful programmers. In particular: -

-
    -
  • - The function is asymetrical, which is to say, given u - = ulp(x) if x - > 0 - then x + - u is the next floating-point - value, but x - - u is not necessarily the previous - value. Similarly, if x < 0 - then x - - u is the previous floating-point - value, but x + - u is not necessarily the next - value. The corner cases occur at power of 2 boundaries. -
  • -
  • - When the argument becomes very small, it may be that there is no floating-point - value that represents one ULP. Whether this is the case or not depends - not only on whether the hardware may sometimes support - denormals (as signalled by std::numeric_limits<FPT>::has_denorm), - but also whether these are currently enabled at runtime (for example - on SSE hardware, the DAZ or FTZ flags will disable denormal support). - In this situation, the ulp - function may return a value that is many orders of magnitude too large. -
  • -
-

- In light of the issues above, we recomend that: -

-
    -
  • - To move between adjacent floating-point values always use float_next, - float_prior - or nextafter - (std::nextafter is another candidate, but - our experience is that this also often breaks depending which optimizations - and hardware flags are in effect). -
  • -
  • - To move several floating-point values away use float_advance. -
  • -
  • - To calculate the edit distance between two floats use Boost.Math - float_distance. -
  • -
-

- There is none the less, one important use case for this function: -

-

- If it is known that the true result of some function is xt and the calculated - result is xc, then the error measured in ulp is simply fabs(xt - - xc) / ulp(xt). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/number_series.html b/boost/libs/math/doc/html/math_toolkit/number_series.html deleted file mode 100644 index 70faae30..00000000 --- a/boost/libs/math/doc/html/math_toolkit/number_series.html +++ /dev/null @@ -1,52 +0,0 @@ - - - -Number Series - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/number_series/bernoulli_numbers.html b/boost/libs/math/doc/html/math_toolkit/number_series/bernoulli_numbers.html deleted file mode 100644 index e6154bbe..00000000 --- a/boost/libs/math/doc/html/math_toolkit/number_series/bernoulli_numbers.html +++ /dev/null @@ -1,373 +0,0 @@ - - - -Bernoulli Numbers - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Bernoulli numbers - are a sequence of rational numbers useful for the Taylor series expansion, - Euler-Maclaurin formula, and the Riemann zeta function. -

-

- Bernoulli numbers are used in evaluation of some Boost.Math functions, including - the tgamma, lgamma - and polygamma functions. -

-
- - Single - Bernoulli number -
-
- - Synopsis -
-
#include <boost/math/special_functions/bernoulli.hpp>
-
-
namespace boost { namespace math {
-
-template <class T>
-T bernoulli_b2n(const int n);  // Single Bernoulli number (default policy).
-
-template <class T, class Policy>
-T bernoulli_b2n(const int n, const Policy &pol); // User policy for errors etc.
-
-}} // namespaces
-
-
- - Description -
-

- Both return the (2 * n)th Bernoulli number B2n. -

-

- Note that since all odd numbered Bernoulli numbers are zero (apart from B1 which - is -½) the interface will only return the even numbered Bernoulli numbers. -

-

- This function uses fast table lookup for low-indexed Bernoulli numbers, while - larger values are calculated as needed and then cached. The caching mechanism - requires a certain amount of thread safety code, so unchecked_bernoulli_b2n - may provide a better interface for performance critical code. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use, etc. -

-

- Refer to Policies for more details. -

-
- - Examples -
-

- A simple example computes the value of B4 where the return type is double, note that the argument to bernoulli_b2n - is 2 not 4 since it computes B2N. -

-
try
-{ // It is always wise to use try'n'catch blocks around Boost.Math functions
-  // so that any informative error messages can be displayed in the catch block.
-std::cout
-  << std::setprecision(std::numeric_limits<double>::digits10)
-  << boost::math::bernoulli_b2n<double>(2) << std::endl;
-
-

- So B4 == -1/30 == -0.0333333333333333 -

-

- If we use Boost.Multiprecision and its 50 decimal digit floating-point type - cpp_dec_float_50, we can - calculate the value of much larger numbers like B200 -and also obtain much - higher precision. -

-
std::cout
-  << std::setprecision(std::numeric_limits<boost::multiprecision::cpp_dec_float_50>::digits10)
-  << boost::math::bernoulli_b2n<boost::multiprecision::cpp_dec_float_50>(100) << std::endl;
-
-
-3.6470772645191354362138308865549944904868234686191e+215
-
-
- - Single - (unchecked) Bernoulli number -
-
- - Synopsis -
-
#include <boost/math/special_functions/bernoulli.hpp>
-
-
template <>
-struct max_bernoulli_b2n<T>;
-
-template<class T>
-inline T unchecked_bernoulli_b2n(unsigned n);
-
-

- unchecked_bernoulli_b2n provides - access to Bernoulli numbers without any checks for - overflow or invalid parameters. It is implemented as a direct - (and very fast) table lookup, and while not recommended for general use it - can be useful inside inner loops where the ultimate performance is required, - and error checking is moved outside the loop. -

-

- The largest value you can pass to unchecked_bernoulli_b2n<> is max_bernoulli_b2n<>::value: - passing values greater than that will result in a buffer overrun error, so - it's clearly important to place the error handling in your own code when - using this direct interface. -

-

- The value of boost::math::max_bernoulli_b2n<T>::value varies by the type T, for types - float/double/long double - it's the largest value which doesn't overflow the target type: for example, - boost::math::max_bernoulli_b2n<double>::value is 129. However, for multiprecision - types, it's the largest value for which the result can be represented as - the ratio of two 64-bit integers, for example boost::math::max_bernoulli_b2n<boost::multiprecision::cpp_dec_float_50>::value - is just 17. Of course larger indexes can be passed to bernoulli_b2n<T>(n), but - then you lose fast table lookup (i.e. values may need to be calculated). -

-
/*For example:
-*/
-   std::cout << "boost::math::max_bernoulli_b2n<float>::value = "  << boost::math::max_bernoulli_b2n<float>::value << std::endl;
-   std::cout << "Maximum Bernoulli number using float is " << boost::math::bernoulli_b2n<float>( boost::math::max_bernoulli_b2n<float>::value) << std::endl;
-   std::cout << "boost::math::max_bernoulli_b2n<double>::value = "  << boost::math::max_bernoulli_b2n<double>::value << std::endl;
-   std::cout << "Maximum Bernoulli number using double is " << boost::math::bernoulli_b2n<double>( boost::math::max_bernoulli_b2n<double>::value) << std::endl;
-
-
boost::math::max_bernoulli_b2n<float>::value = 32
-Maximum Bernoulli number using float is -2.0938e+038
-boost::math::max_bernoulli_b2n<double>::value = 129
-Maximum Bernoulli number using double is 1.33528e+306
-
-
- - Multiple - Bernoulli Numbers -
-
- - Synopsis -
-
#include <boost/math/special_functions/bernoulli.hpp>
-
-
namespace boost { namespace math {
-
-// Multiple Bernoulli numbers (default policy).
-template <class T, class OutputIterator>
-OutputIterator bernoulli_b2n(
-  int start_index,
-  unsigned number_of_bernoullis_b2n,
-  OutputIterator out_it);
-
-// Multiple Bernoulli numbers (user policy).
-template <class T, class OutputIterator, class Policy>
-OutputIterator bernoulli_b2n(
-  int start_index,
-  unsigned number_of_bernoullis_b2n,
-  OutputIterator out_it,
-  const Policy& pol);
-}} // namespaces
-
-
- - Description -
-

- Two versions of the Bernoulli number function are provided to compute multiple - Bernoulli numbers with one call (one with default policy and the other allowing - a user-defined policy). -

-

- These return a series of Bernoulli numbers: -

-

- B2*start_index,B2*(start_index+1),...,B2*(start_index+number_of_bernoullis_b2n-1) -

-
- - Examples -
-

- We can compute and save all the float-precision Bernoulli numbers from one - call. -

-
std::vector<float> bn; // Space for 32-bit `float` precision Bernoulli numbers.
-
-// Start with Bernoulli number 0.
-boost::math::bernoulli_b2n<float>(0, 32, std::back_inserter(bn)); // Fill vector with even Bernoulli numbers.
-
-for(size_t i = 0; i < bn.size(); i++)
-{ // Show vector of even Bernoulli numbers, showing all significant decimal digits.
-    std::cout << std::setprecision(std::numeric_limits<float>::digits10)
-        << i*2 << ' '
-        << bn[i]
-        << std::endl;
-}
-
-
0 1
-2 0.166667
-4 -0.0333333
-6 0.0238095
-8 -0.0333333
-10 0.0757576
-12 -0.253114
-14 1.16667
-16 -7.09216
-18 54.9712
-20 -529.124
-22 6192.12
-24 -86580.3
-26 1.42552e+006
-28 -2.72982e+007
-30 6.01581e+008
-32 -1.51163e+010
-34 4.29615e+011
-36 -1.37117e+013
-38 4.88332e+014
-40 -1.92966e+016
-42 8.41693e+017
-44 -4.03381e+019
-46 2.11507e+021
-48 -1.20866e+023
-50 7.50087e+024
-52 -5.03878e+026
-54 3.65288e+028
-56 -2.84988e+030
-58 2.38654e+032
-60 -2.14e+034
-62 2.0501e+036
-
-

- Of course, for any floating-point type, there is a maximum Bernoulli number - that can be computed before it overflows the exponent. By default policy, - if we try to compute too high a Bernoulli number, an exception will be thrown. -

-
try
-{
-  std::cout
-  << std::setprecision(std::numeric_limits<float>::digits10)
-  << "Bernoulli number " << 33 * 2 <<std::endl;
-
-  std::cout << boost::math::bernoulli_b2n<float>(33) << std::endl;
-}
-catch (std::exception ex)
-{
-  std::cout << "Thrown Exception caught: " << ex.what() << std::endl;
-}
-
-

- and we will get a helpful error message (provided try'n'catch blocks are - used). -

-
Bernoulli number 66
-Thrown Exception caught: Error in function boost::math::bernoulli_b2n<float>(n):
-Overflow evaluating function at 33
-
-

- The source of this example is at bernoulli_example.cpp -

-
- - Accuracy -
-

- All the functions usually return values within one ULP (unit in the last - place) for the floating-point type. -

-
- - Implementation -
-

- The implementation details are in bernoulli_details.hpp - and unchecked_bernoulli.hpp. -

-

- For i <= - max_bernoulli_index<T>::value this is implemented by simple table - lookup from a statically initialized table; for larger values of i, this is implemented by the Tangent Numbers - algorithm as described in the paper: Fast Computation of Bernoulli, Tangent - and Secant Numbers, Richard P. Brent and David Harvey, http://arxiv.org/pdf/1108.0286v3.pdf - (2011). -

-

- Tangent (or - Zag) numbers (an even alternating permutation number) are defined - and their generating function is also given therein. -

-

- The relation of Tangent numbers with Bernoulli numbers Bi - is given by Brent and Harvey's equation 14: -

-

-    -

-

- Their relation with Bernoulli numbers Bi are defined - by -

-

- if i > 0 and i is even then   
elseif - i == 0 then Bi = 1
elseif i == 1 then Bi - = -1/2
elseif i < 0 or i is odd then Bi = - 0 -

-

- Note that computed values are stored in a fixed-size table, access is thread - safe via atomic operations (i.e. lock free programming), this imparts a much - lower overhead on access to cached values than might otherwise be expected - - typically for multiprecision types the cost of thread synchronisation is - negligible, while for built in types this code is not normally executed anyway. - For very large arguments which cannot be reasonably computed or stored in - our cache, an asymptotic expansion due - to Luschny is used: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/number_series/primes.html b/boost/libs/math/doc/html/math_toolkit/number_series/primes.html deleted file mode 100644 index b64d5220..00000000 --- a/boost/libs/math/doc/html/math_toolkit/number_series/primes.html +++ /dev/null @@ -1,84 +0,0 @@ - - - -Prime Numbers - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/prime.hpp>
-
-
namespace boost { namespace math {
-
-template <class Policy>
-boost::uint32_t prime(unsigned n, const Policy& pol);
-
-boost::uint32_t prime(unsigned n);
-
-static const unsigned max_prime = 10000;
-
-}} // namespaces
-
-
- - Description -
-

- The function prime provides - fast table lookup to the first 10000 prime numbers (starting from 2 as the - zeroth prime: as 1 isn't terribly useful in practice). There are two function - signatures one of which takes an optional Policy - as the second parameter to control error handling. -

-

- The constant max_prime is - the largest value you can pass to prime - without incurring an error. -

-

- Passing a value greater than max_prime - results in a domain_error - being raised. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/number_series/tangent_numbers.html b/boost/libs/math/doc/html/math_toolkit/number_series/tangent_numbers.html deleted file mode 100644 index f0d6e4dc..00000000 --- a/boost/libs/math/doc/html/math_toolkit/number_series/tangent_numbers.html +++ /dev/null @@ -1,138 +0,0 @@ - - - -Tangent Numbers - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Tangent numbers, - also called a zag function. See also Tangent - number. -

-

- The first few values are 1, 2, 16, 272, 7936, 353792, 22368256, 1903757312 - ... (sequence A000182 in OEIS). - They are called tangent numbers because they appear as numerators in the - Maclaurin series of tan(x). -

-

- Important: there are two competing definitions - of Tangent numbers in common use (depending on whether you take the even - or odd numbered values as non-zero), we use: -

-

- -

-

- Which gives: -

-

- -

-

- Tangent numbers are used in the computation of Bernoulli numbers, but are - also made available here. -

-
- - Synopsis -
-
#include <boost/math/special_functions/detail/bernoulli.hpp>
-
-
template <class T>
-T tangent_t2n(const int i);  // Single tangent number (default policy).
-
-template <class T, class Policy>
-T tangent_t2n(const int i, const Policy &pol); // Single tangent number (user policy).
-
-// Multiple tangent numbers (default policy).
-template <class T, class OutputIterator>
-OutputIterator tangent_t2n(const int start_index,
-                                    const unsigned number_of_tangent_t2n,
-                                    OutputIterator out_it);
-
-// Multiple tangent numbers (user policy).
-template <class T, class OutputIterator, class Policy>
-OutputIterator tangent_t2n(const int start_index,
-                                    const unsigned number_of_tangent_t2n,
-                                    OutputIterator out_it,
-                                    const Policy& pol);
-
-
- - Examples -
-

- We can compute and save a few Tangent numbers. -

-
std::vector<float> tn; // Space for some `float` precision Tangent numbers.
-
-// Start with Bernoulli number 0.
-boost::math::tangent_t2n<float>(1, 6, std::back_inserter(tn)); // Fill vector with even Tangent numbers.
-
-for(size_t i = 0; i < tn.size(); i++)
-{ // Show vector of even Tangent numbers, showing all significant decimal digits.
-    std::cout << std::setprecision(std::numeric_limits<float>::digits10)
-        << " "
-        << tn[i];
-}
-std::cout << std::endl;
-
-

- The output is: -

-
1 2 16 272 7936 353792
-
-

- The source of this example is at bernoulli_example.cpp -

-
- - Implementation -
-

- Tangent numbers are calculated as intermediates in the calculation of the - Bernoulli numbers: - refer to the Bernoulli - numbers documentation for details. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_create.html b/boost/libs/math/doc/html/math_toolkit/oct_create.html deleted file mode 100644 index c6320441..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_create.html +++ /dev/null @@ -1,84 +0,0 @@ - - - -Octonion Creation Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
template<typename T> octonion<T> spherical(T const & rho, T const & theta, T const & phi1, T const & phi2, T const & phi3, T const & phi4, T const & phi5, T const & phi6);
-template<typename T> octonion<T> multipolar(T const & rho1, T const & theta1, T const & rho2, T const & theta2, T const & rho3, T const & theta3, T const & rho4, T const & theta4);
-template<typename T> octonion<T> cylindrical(T const & r, T const & angle, T const & h1, T const & h2, T const & h3, T const & h4, T const & h5, T const & h6);
-
-

- These build octonions in a way similar to the way polar builds complex numbers, - as there is no strict equivalent to polar coordinates for octonions. -

-

- spherical is a simple transposition - of polar, it takes as inputs - a (positive) magnitude and a point on the hypersphere, given by three angles. - The first of these, theta has a natural range of -pi to - +pi, and the other two have natural ranges of -pi/2 to +pi/2 (as is the case - with the usual spherical coordinates in R3). - Due to the many symmetries and periodicities, nothing untoward happens if the - magnitude is negative or the angles are outside their natural ranges. The expected - degeneracies (a magnitude of zero ignores the angles settings...) do happen - however. -

-

- cylindrical is likewise a simple - transposition of the usual cylindrical coordinates in R3, - which in turn is another derivative of planar polar coordinates. The first - two inputs are the polar coordinates of the first C - component of the octonion. The third and fourth inputs are placed into the - third and fourth R components - of the octonion, respectively. -

-

- multipolar is yet another simple - generalization of polar coordinates. This time, both C - components of the octonion are given in polar coordinates. -

-

- In this version of our implementation of octonions, there is no analogue of - the complex value operation arg as the situation is somewhat more complicated. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_header.html b/boost/libs/math/doc/html/math_toolkit/oct_header.html deleted file mode 100644 index d78c4166..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_header.html +++ /dev/null @@ -1,49 +0,0 @@ - - - -Header File - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The interface and implementation are both supplied by the header file octonion.hpp. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_history.html b/boost/libs/math/doc/html/math_toolkit/oct_history.html deleted file mode 100644 index 0c8aa7e4..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_history.html +++ /dev/null @@ -1,111 +0,0 @@ - - - -History - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
    -
  • - 1.5.9 - 13/5/2013: Incorporated into Boost.Math. -
  • -
  • - 1.5.8 - 17/12/2005: Converted documentation to Quickbook Format. -
  • -
  • - 1.5.7 - 25/02/2003: transitionned to the unit test framework; <boost/config.hpp> - now included by the library header (rather than the test files), via <boost/math/quaternion.hpp>. -
  • -
  • - 1.5.6 - 15/10/2002: Gcc2.95.x and stlport on linux compatibility by Alkis - Evlogimenos (alkis@routescience.com). -
  • -
  • - 1.5.5 - 27/09/2002: Microsoft VCPP 7 compatibility, by Michael Stevens - (michael@acfr.usyd.edu.au); requires the /Za compiler option. -
  • -
  • - 1.5.4 - 19/09/2002: fixed problem with multiple inclusion (in different - translation units); attempt at an improved compatibility with Microsoft - compilers, by Michael Stevens (michael@acfr.usyd.edu.au) and Fredrik Blomqvist; - other compatibility fixes. -
  • -
  • - 1.5.3 - 01/02/2002: bugfix and Gcc 2.95.3 compatibility by Douglas Gregor - (gregod@cs.rpi.edu). -
  • -
  • - 1.5.2 - 07/07/2001: introduced namespace math. -
  • -
  • - 1.5.1 - 07/06/2001: (end of Boost review) now includes <boost/math/special_functions/sinc.hpp> - and <boost/math/special_functions/sinhc.hpp> instead of <boost/special_functions.hpp>; - corrected bug in sin (Daryle Walker); removed check for self-assignment - (Gary Powel); made converting functions explicit (Gary Powel); added overflow - guards for division operators and abs (Peter Schmitteckert); added sup - and l1; used Vesa Karvonen's CPP metaprograming technique to simplify code. -
  • -
  • - 1.5.0 - 23/03/2001: boostification, inlining of all operators except input, - output and pow, fixed exception safety of some members (template version). -
  • -
  • - 1.4.0 - 09/01/2001: added tan and tanh. -
  • -
  • - 1.3.1 - 08/01/2001: cosmetic fixes. -
  • -
  • - 1.3.0 - 12/07/2000: pow now uses Maarten Hilferink's (mhilferink@tip.nl) - algorithm. -
  • -
  • - 1.2.0 - 25/05/2000: fixed the division operators and output; changed many - signatures. -
  • -
  • - 1.1.0 - 23/05/2000: changed sinc into sinc_pi; added sin, cos, sinh, cosh. -
  • -
  • - 1.0.0 - 10/08/1999: first public version. -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_mem_fun.html b/boost/libs/math/doc/html/math_toolkit/oct_mem_fun.html deleted file mode 100644 index cac7f171..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_mem_fun.html +++ /dev/null @@ -1,259 +0,0 @@ - - - -Octonion Member Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- - Constructors -

-

- Template version: -

-
explicit  octonion(T const & requested_a = T(), T const & requested_b = T(), T const & requested_c = T(), T const & requested_d = T(), T const & requested_e = T(), T const & requested_f = T(), T const & requested_g = T(), T const & requested_h = T());
-explicit  octonion(::std::complex<T> const & z0, ::std::complex<T> const & z1 = ::std::complex<T>(), ::std::complex<T> const & z2 = ::std::complex<T>(), ::std::complex<T> const & z3 = ::std::complex<T>());
-explicit  octonion(::boost::math::quaternion<T> const & q0, ::boost::math::quaternion<T> const & q1 = ::boost::math::quaternion<T>());
-template<typename X>
-explicit octonion(octonion<X> const & a_recopier);
-
-

- Float specialization version: -

-
explicit  octonion(float const & requested_a = 0.0f, float const & requested_b = 0.0f, float const & requested_c = 0.0f, float const & requested_d = 0.0f, float const & requested_e = 0.0f, float const & requested_f = 0.0f, float const & requested_g = 0.0f, float const & requested_h = 0.0f);
-explicit  octonion(::std::complex<float> const & z0, ::std::complex<float> const & z1 = ::std::complex<float>(), ::std::complex<float> const & z2 = ::std::complex<float>(), ::std::complex<float> const & z3 = ::std::complex<float>());
-explicit  octonion(::boost::math::quaternion<float> const & q0, ::boost::math::quaternion<float> const & q1 = ::boost::math::quaternion<float>());
-explicit  octonion(octonion<double> const & a_recopier);
-explicit  octonion(octonion<long double> const & a_recopier);
-
-

- Double specialization version: -

-
explicit  octonion(double const & requested_a = 0.0, double const & requested_b = 0.0, double const & requested_c = 0.0, double const & requested_d = 0.0, double const & requested_e = 0.0, double const & requested_f = 0.0, double const & requested_g = 0.0, double const & requested_h = 0.0);
-explicit  octonion(::std::complex<double> const & z0, ::std::complex<double> const & z1 = ::std::complex<double>(), ::std::complex<double> const & z2 = ::std::complex<double>(), ::std::complex<double> const & z3 = ::std::complex<double>());
-explicit  octonion(::boost::math::quaternion<double> const & q0, ::boost::math::quaternion<double> const & q1 = ::boost::math::quaternion<double>());
-explicit  octonion(octonion<float> const & a_recopier);
-explicit  octonion(octonion<long double> const & a_recopier);
-
-

- Long double specialization version: -

-
explicit  octonion(long double const & requested_a = 0.0L, long double const & requested_b = 0.0L, long double const & requested_c = 0.0L, long double const & requested_d = 0.0L, long double const & requested_e = 0.0L, long double const & requested_f = 0.0L, long double const & requested_g = 0.0L, long double const & requested_h = 0.0L);
-explicit  octonion( ::std::complex<long double> const & z0, ::std::complex<long double> const & z1 = ::std::complex<long double>(), ::std::complex<long double> const & z2 = ::std::complex<long double>(), ::std::complex<long double> const & z3 = ::std::complex<long double>());
-explicit  octonion(::boost::math::quaternion<long double> const & q0, ::boost::math::quaternion<long double> const & q1 = ::boost::math::quaternion<long double>());
-explicit  octonion(octonion<float> const & a_recopier);
-explicit  octonion(octonion<double> const & a_recopier);
-
-

- A default constructor is provided for each form, which initializes each component - to the default values for their type (i.e. zero for floating numbers). This - constructor can also accept one to eight base type arguments. A constructor - is also provided to build octonions from one to four complex numbers sharing - the same base type, and another taking one or two quaternions sharing the same - base type. The unspecialized template also sports a templarized copy constructor, - while the specialized forms have copy constructors from the other two specializations, - which are explicit when a risk of precision loss exists. For the unspecialized - form, the base type's constructors must not throw. -

-

- Destructors and untemplated copy constructors (from the same type) are provided - by the compiler. Converting copy constructors make use of a templated helper - function in a "detail" subnamespace. -

-

- - Other - member functions -

-
- - Real - and Unreal Parts -
-
T            real()   const;
-octonion<T>  unreal() const;
-
-

- Like complex number, octonions do have a meaningful notion of "real part", - but unlike them there is no meaningful notion of "imaginary part". - Instead there is an "unreal part" which itself is a octonion, and - usually nothing simpler (as opposed to the complex number case). These are - returned by the first two functions. -

-
- - Individual - Real Components -
-
T   R_component_1() const;
-T   R_component_2() const;
-T   R_component_3() const;
-T   R_component_4() const;
-T   R_component_5() const;
-T   R_component_6() const;
-T   R_component_7() const;
-T   R_component_8() const;
-
-

- A octonion having eight real components, these are returned by these eight - functions. Hence real and R_component_1 return the same value. -

-
- - Individual - Complex Components -
-
::std::complex<T> C_component_1() const;
-::std::complex<T> C_component_2() const;
-::std::complex<T> C_component_3() const;
-::std::complex<T> C_component_4() const;
-
-

- A octonion likewise has four complex components. Actually, octonions are indeed - a (left) vector field over the complexes, but beware, as for any octonion - o = α + βi + γj + δk + εe' + ζi' + ηj' + θk' we also have o - = (α + βi) + (γ + δi)j + (ε + ζi)e' + (η - θi)j' (note the minus sign - in the last factor). What the C_component_n functions return, however, are - the complexes which could be used to build the octonion using the constructor, - and not the components of the octonion on - the basis (1, j, e', j'). -

-
- - Individual - Quaternion Components -
-
::boost::math::quaternion<T> H_component_1() const;
-::boost::math::quaternion<T> H_component_2() const;
-
-

- Likewise, for any octonion o = α + βi + γj + δk + εe' + ζi' + ηj' + θk' we - also have o = (α + βi + γj + δk) + (ε + ζi + ηj - θj)e', though there is no - meaningful vector-space-like structure based on the quaternions. What the H_component_n - functions return are the quaternions which could be used to build the octonion - using the constructor. -

-

- - Octonion - Member Operators -

-
- - Assignment - Operators -
-
octonion<T> & operator = (octonion<T> const & a_affecter);
-template<typename X>
-octonion<T> & operator = (octonion<X> const & a_affecter);
-octonion<T> & operator = (T const & a_affecter);
-octonion<T> & operator = (::std::complex<T> const & a_affecter);
-octonion<T> & operator = (::boost::math::quaternion<T> const & a_affecter);
-
-

- These perform the expected assignment, with type modification if necessary - (for instance, assigning from a base type will set the real part to that value, - and all other components to zero). For the unspecialized form, the base type's - assignment operators must not throw. -

-
- - Other - Member Operators -
-
octonion<T> & operator += (T const & rhs)
-octonion<T> & operator += (::std::complex<T> const & rhs);
-octonion<T> & operator += (::boost::math::quaternion<T> const & rhs);
-template<typename X>
-octonion<T> & operator += (octonion<X> const & rhs);
-
-

- These perform the mathematical operation (*this)+rhs - and store the result in *this. - The unspecialized form has exception guards, which the specialized forms do - not, so as to insure exception safety. For the unspecialized form, the base - type's assignment operators must not throw. -

-
octonion<T> & operator -= (T const & rhs)
-octonion<T> & operator -= (::std::complex<T> const & rhs);
-octonion<T> & operator -= (::boost::math::quaternion<T> const & rhs);
-template<typename X>
-octonion<T> & operator -= (octonion<X> const & rhs);
-
-

- These perform the mathematical operation (*this)-rhs - and store the result in *this. - The unspecialized form has exception guards, which the specialized forms do - not, so as to insure exception safety. For the unspecialized form, the base - type's assignment operators must not throw. -

-
octonion<T> & operator *= (T const & rhs)
-octonion<T> & operator *= (::std::complex<T> const & rhs);
-octonion<T> & operator *= (::boost::math::quaternion<T> const & rhs);
-template<typename X>
-octonion<T> & operator *= (octonion<X> const & rhs);
-
-

- These perform the mathematical operation (*this)*rhs - in this order (order is important as multiplication is not commutative for - octonions) and store the result in *this. The unspecialized form has exception guards, - which the specialized forms do not, so as to insure exception safety. For the - unspecialized form, the base type's assignment operators must not throw. Also, - for clarity's sake, you should always group the factors in a multiplication - by groups of two, as the multiplication is not even associative on the octonions - (though there are of course cases where this does not matter, it usually does). -

-
octonion<T> & operator /= (T const & rhs)
-octonion<T> & operator /= (::std::complex<T> const & rhs);
-octonion<T> & operator /= (::boost::math::quaternion<T> const & rhs);
-template<typename X>
-octonion<T> & operator /= (octonion<X> const & rhs);
-
-

- These perform the mathematical operation (*this)*inverse_of(rhs) - in this order (order is important as multiplication is not commutative for - octonions) and store the result in *this. The unspecialized form has exception guards, - which the specialized forms do not, so as to insure exception safety. For the - unspecialized form, the base type's assignment operators must not throw. As - for the multiplication, remember to group any two factors using parenthesis. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_non_mem.html b/boost/libs/math/doc/html/math_toolkit/oct_non_mem.html deleted file mode 100644 index 0c527c96..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_non_mem.html +++ /dev/null @@ -1,223 +0,0 @@ - - - -Octonion Non-Member Operators - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Unary Plus - and Minus Operators -
-
template<typename T> octonion<T> operator + (octonion<T> const & o);
-
-

- This unary operator simply returns o. -

-
template<typename T> octonion<T> operator - (octonion<T> const & o);
-
-

- This unary operator returns the opposite of o. -

-
- - Binary - Addition Operators -
-
template<typename T> octonion<T> operator + (T const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator + (octonion<T> const & lhs, T const & rhs);
-template<typename T> octonion<T> operator + (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator + (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> octonion<T> operator + (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator + (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> octonion<T> operator + (octonion<T> const & lhs, octonion<T> const & rhs);
-
-

- These operators return octonion<T>(lhs) += - rhs. -

-
- - Binary - Subtraction Operators -
-
template<typename T> octonion<T> operator - (T const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator - (octonion<T> const & lhs, T const & rhs);
-template<typename T> octonion<T> operator - (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator - (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> octonion<T> operator - (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator - (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> octonion<T> operator - (octonion<T> const & lhs, octonion<T> const & rhs);
-
-

- These operators return octonion<T>(lhs) -= - rhs. -

-
- - Binary Multiplication - Operators -
-
template<typename T> octonion<T> operator * (T const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator * (octonion<T> const & lhs, T const & rhs);
-template<typename T> octonion<T> operator * (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator * (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> octonion<T> operator * (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator * (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> octonion<T> operator * (octonion<T> const & lhs, octonion<T> const & rhs);
-
-

- These operators return octonion<T>(lhs) *= - rhs. -

-
- - Binary - Division Operators -
-
template<typename T> octonion<T> operator / (T const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator / (octonion<T> const & lhs, T const & rhs);
-template<typename T> octonion<T> operator / (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator / (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> octonion<T> operator / (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator / (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> octonion<T> operator / (octonion<T> const & lhs, octonion<T> const & rhs);
-
-

- These operators return octonion<T>(lhs) /= - rhs. It is of course still an error - to divide by zero... -

-
- - Binary - Equality Operators -
-
template<typename T> bool operator == (T const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator == (octonion<T> const & lhs, T const & rhs);
-template<typename T> bool operator == (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator == (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> bool operator == (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator == (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> bool operator == (octonion<T> const & lhs, octonion<T> const & rhs);
-
-

- These return true if and only if the four components of octonion<T>(lhs) are - equal to their counterparts in octonion<T>(rhs). As - with any floating-type entity, this is essentially meaningless. -

-
- - Binary - Inequality Operators -
-
template<typename T> bool operator != (T const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator != (octonion<T> const & lhs, T const & rhs);
-template<typename T> bool operator != (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator != (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> bool operator != (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator != (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> bool operator != (octonion<T> const & lhs, octonion<T> const & rhs);
-
-

- These return true if and only if octonion<T>(lhs) == - octonion<T>(rhs) is false. As with any floating-type entity, - this is essentially meaningless. -

-
- - Stream - Extractor -
-
template<typename T, typename charT, class traits>
-::std::basic_istream<charT,traits> & operator >> (::std::basic_istream<charT,traits> & is, octonion<T> & o);
-
-

- Extracts an octonion o. We - accept any format which seems reasonable. However, since this leads to a great - many ambiguities, decisions were made to lift these. In case of doubt, stick - to lists of reals. -

-

- The input values must be convertible to T. If bad input is encountered, calls - is.setstate(ios::failbit) (which may throw ios::failure - (27.4.5.3)). -

-

- Returns is. -

-
- - Stream - Inserter -
-
template<typename T, typename charT, class traits>
-::std::basic_ostream<charT,traits> & operator << (::std::basic_ostream<charT,traits> & os, octonion<T> const & o);
-
-

- Inserts the octonion o onto - the stream os as if it were - implemented as follows: -

-
template<typename T, typename charT, class traits>
-::std::basic_ostream<charT,traits> & operator << ( ::std::basic_ostream<charT,traits> & os,
-octonion<T> const & o)
-{
-   ::std::basic_ostringstream<charT,traits> s;
-
-   s.flags(os.flags());
-   s.imbue(os.getloc());
-   s.precision(os.precision());
-
-   s << '(' << o.R_component_1() << ','
-      << o.R_component_2() << ','
-      << o.R_component_3() << ','
-      << o.R_component_4() << ','
-      << o.R_component_5() << ','
-      << o.R_component_6() << ','
-      << o.R_component_7() << ','
-      << o.R_component_8() << ')';
-
-   return os << s.str();
-}
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_overview.html b/boost/libs/math/doc/html/math_toolkit/oct_overview.html deleted file mode 100644 index a3f25b03..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_overview.html +++ /dev/null @@ -1,86 +0,0 @@ - - - -Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Octonions, like quaternions, are a relative - of complex numbers. -

-

- Octonions see some use in theoretical physics. -

-

- In practical terms, an octonion is simply an octuple of real numbers (α,β,γ,δ,ε,ζ,η,θ), which - we can write in the form o = α + βi + γj + δk + εe' + ζi' + ηj' + θk', where - i, j - and k are the same objects as for quaternions, - and e', i', - j' and k' - are distinct objects which play essentially the same kind of role as i - (or j or k). -

-

- Addition and a multiplication is defined on the set of octonions, which generalize - their quaternionic counterparts. The main novelty this time is that the multiplication is not only not commutative, is now not even - associative (i.e. there are octonions x, - y and z - such that x(yz) ≠ (xy)z). A way of remembering - things is by using the following multiplication table: -

-

- -

-

- Octonions (and their kin) are described in far more details in this other - document (with errata - and addenda). -

-

- Some traditional constructs, such as the exponential, carry over without too - much change into the realms of octonions, but other, such as taking a square - root, do not (the fact that the exponential has a closed form is a result of - the author, but the fact that the exponential exists at all for octonions is - known since quite a long time ago). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_specialization.html b/boost/libs/math/doc/html/math_toolkit/oct_specialization.html deleted file mode 100644 index 707e2cc1..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_specialization.html +++ /dev/null @@ -1,242 +0,0 @@ - - - -Octonion Specializations - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
namespace boost{ namespace math{
-
-template<>
-class octonion<float>
-{
-public:
-   typedef float value_type;
-
-   explicit  octonion(float const & requested_a = 0.0f, float const & requested_b = 0.0f, float const & requested_c = 0.0f, float const & requested_d = 0.0f, float const & requested_e = 0.0f, float const & requested_f = 0.0f, float const & requested_g = 0.0f, float const & requested_h = 0.0f);
-   explicit  octonion(::std::complex<float> const & z0, ::std::complex<float> const & z1 = ::std::complex<float>(), ::std::complex<float> const & z2 = ::std::complex<float>(), ::std::complex<float> const & z3 = ::std::complex<float>());
-   explicit  octonion(::boost::math::quaternion<float> const & q0, ::boost::math::quaternion<float> const & q1 = ::boost::math::quaternion<float>());
-   explicit  octonion(octonion<double> const & a_recopier);
-   explicit  octonion(octonion<long double> const & a_recopier);
-
-   float                             real() const;
-   octonion<float>                   unreal() const;
-
-   float                             R_component_1() const;
-   float                             R_component_2() const;
-   float                             R_component_3() const;
-   float                             R_component_4() const;
-   float                             R_component_5() const;
-   float                             R_component_6() const;
-   float                             R_component_7() const;
-   float                             R_component_8() const;
-
-   ::std::complex<float>             C_component_1() const;
-   ::std::complex<float>             C_component_2() const;
-   ::std::complex<float>             C_component_3() const;
-   ::std::complex<float>             C_component_4() const;
-
-   ::boost::math::quaternion<float>  H_component_1() const;
-   ::boost::math::quaternion<float>  H_component_2() const;
-
-   octonion<float> & operator = (octonion<float> const  & a_affecter);
-   template<typename X>
-   octonion<float> & operator = (octonion<X> const  & a_affecter);
-   octonion<float> & operator = (float const  & a_affecter);
-   octonion<float> & operator = (::std::complex<float> const & a_affecter);
-   octonion<float> & operator = (::boost::math::quaternion<float> const & a_affecter);
-
-   octonion<float> & operator += (float const & rhs);
-   octonion<float> & operator += (::std::complex<float> const & rhs);
-   octonion<float> & operator += (::boost::math::quaternion<float> const & rhs);
-   template<typename X>
-   octonion<float> & operator += (octonion<X> const & rhs);
-
-   octonion<float> & operator -= (float const & rhs);
-   octonion<float> & operator -= (::std::complex<float> const & rhs);
-   octonion<float> & operator -= (::boost::math::quaternion<float> const & rhs);
-   template<typename X>
-   octonion<float> & operator -= (octonion<X> const & rhs);
-
-   octonion<float> & operator *= (float const & rhs);
-   octonion<float> & operator *= (::std::complex<float> const & rhs);
-   octonion<float> & operator *= (::boost::math::quaternion<float> const & rhs);
-   template<typename X>
-   octonion<float> & operator *= (octonion<X> const & rhs);
-
-   octonion<float> & operator /= (float const & rhs);
-   octonion<float> & operator /= (::std::complex<float> const & rhs);
-   octonion<float> & operator /= (::boost::math::quaternion<float> const & rhs);
-   template<typename X>
-   octonion<float> & operator /= (octonion<X> const & rhs);
-};
-
-
template<>
-class octonion<double>
-{
-public:
-   typedef double value_type;
-
-   explicit  octonion(double const & requested_a = 0.0, double const & requested_b = 0.0, double const & requested_c = 0.0, double const & requested_d = 0.0, double const & requested_e = 0.0, double const & requested_f = 0.0, double const & requested_g = 0.0, double const & requested_h = 0.0);
-   explicit  octonion(::std::complex<double> const & z0, ::std::complex<double> const & z1 = ::std::complex<double>(), ::std::complex<double> const & z2 = ::std::complex<double>(), ::std::complex<double> const & z3 = ::std::complex<double>());
-   explicit  octonion(::boost::math::quaternion<double> const & q0, ::boost::math::quaternion<double> const & q1 = ::boost::math::quaternion<double>());
-   explicit  octonion(octonion<float> const & a_recopier);
-   explicit  octonion(octonion<long double> const & a_recopier);
-
-   double                             real() const;
-   octonion<double>                   unreal() const;
-
-   double                             R_component_1() const;
-   double                             R_component_2() const;
-   double                             R_component_3() const;
-   double                             R_component_4() const;
-   double                             R_component_5() const;
-   double                             R_component_6() const;
-   double                             R_component_7() const;
-   double                             R_component_8() const;
-
-   ::std::complex<double>             C_component_1() const;
-   ::std::complex<double>             C_component_2() const;
-   ::std::complex<double>             C_component_3() const;
-   ::std::complex<double>             C_component_4() const;
-
-   ::boost::math::quaternion<double>  H_component_1() const;
-   ::boost::math::quaternion<double>  H_component_2() const;
-
-   octonion<double> & operator = (octonion<double> const  & a_affecter);
-   template<typename X>
-   octonion<double> & operator = (octonion<X> const  & a_affecter);
-   octonion<double> & operator = (double const  & a_affecter);
-   octonion<double> & operator = (::std::complex<double> const & a_affecter);
-   octonion<double> & operator = (::boost::math::quaternion<double> const & a_affecter);
-
-   octonion<double> & operator += (double const & rhs);
-   octonion<double> & operator += (::std::complex<double> const & rhs);
-   octonion<double> & operator += (::boost::math::quaternion<double> const & rhs);
-   template<typename X>
-   octonion<double> & operator += (octonion<X> const & rhs);
-
-   octonion<double> & operator -= (double const & rhs);
-   octonion<double> & operator -= (::std::complex<double> const & rhs);
-   octonion<double> & operator -= (::boost::math::quaternion<double> const & rhs);
-   template<typename X>
-   octonion<double> & operator -= (octonion<X> const & rhs);
-
-   octonion<double> & operator *= (double const & rhs);
-   octonion<double> & operator *= (::std::complex<double> const & rhs);
-   octonion<double> & operator *= (::boost::math::quaternion<double> const & rhs);
-   template<typename X>
-   octonion<double> & operator *= (octonion<X> const & rhs);
-
-   octonion<double> & operator /= (double const & rhs);
-   octonion<double> & operator /= (::std::complex<double> const & rhs);
-   octonion<double> & operator /= (::boost::math::quaternion<double> const & rhs);
-   template<typename X>
-   octonion<double> & operator /= (octonion<X> const & rhs);
-};
-
-
template<>
-class octonion<long double>
-{
-public:
-   typedef long double value_type;
-
-   explicit   octonion(long double const & requested_a = 0.0L, long double const & requested_b = 0.0L, long double const & requested_c = 0.0L, long double const & requested_d = 0.0L, long double const & requested_e = 0.0L, long double const & requested_f = 0.0L, long double const & requested_g = 0.0L, long double const & requested_h = 0.0L);
-   explicit   octonion( ::std::complex<long double> const & z0, ::std::complex<long double> const & z1 = ::std::complex<long double>(), ::std::complex<long double> const & z2 = ::std::complex<long double>(), ::std::complex<long double> const & z3 = ::std::complex<long double>());
-   explicit   octonion( ::boost::math::quaternion<long double> const & q0, ::boost::math::quaternion<long double> const & z1 = ::boost::math::quaternion<long double>());
-   explicit   octonion(octonion<float> const & a_recopier);
-   explicit   octonion(octonion<double> const & a_recopier);
-
-   long double                             real() const;
-   octonion<long double>                   unreal() const;
-
-   long double                             R_component_1() const;
-   long double                             R_component_2() const;
-   long double                             R_component_3() const;
-   long double                             R_component_4() const;
-   long double                             R_component_5() const;
-   long double                             R_component_6() const;
-   long double                             R_component_7() const;
-   long double                             R_component_8() const;
-
-   ::std::complex<long double>             C_component_1() const;
-   ::std::complex<long double>             C_component_2() const;
-   ::std::complex<long double>             C_component_3() const;
-   ::std::complex<long double>             C_component_4() const;
-
-   ::boost::math::quaternion<long double>  H_component_1() const;
-   ::boost::math::quaternion<long double>  H_component_2() const;
-
-   octonion<long double> & operator = (octonion<long double> const  & a_affecter);
-   template<typename X>
-   octonion<long double> & operator = (octonion<X> const  & a_affecter);
-   octonion<long double> & operator = (long double const  & a_affecter);
-   octonion<long double> & operator = (::std::complex<long double> const & a_affecter);
-   octonion<long double> & operator = (::boost::math::quaternion<long double> const & a_affecter);
-
-   octonion<long double> & operator += (long double const & rhs);
-   octonion<long double> & operator += (::std::complex<long double> const & rhs);
-   octonion<long double> & operator += (::boost::math::quaternion<long double> const & rhs);
-   template<typename X>
-   octonion<long double> & operator += (octonion<X> const & rhs);
-
-   octonion<long double> & operator -= (long double const & rhs);
-   octonion<long double> & operator -= (::std::complex<long double> const & rhs);
-   octonion<long double> & operator -= (::boost::math::quaternion<long double> const & rhs);
-   template<typename X>
-   octonion<long double> & operator -= (octonion<X> const & rhs);
-
-   octonion<long double> & operator *= (long double const & rhs);
-   octonion<long double> & operator *= (::std::complex<long double> const & rhs);
-   octonion<long double> & operator *= (::boost::math::quaternion<long double> const & rhs);
-   template<typename X>
-   octonion<long double> & operator *= (octonion<X> const & rhs);
-
-   octonion<long double> & operator /= (long double const & rhs);
-   octonion<long double> & operator /= (::std::complex<long double> const & rhs);
-   octonion<long double> & operator /= (::boost::math::quaternion<long double> const & rhs);
-   template<typename X>
-   octonion<long double> & operator /= (octonion<X> const & rhs);
-};
-
-} } // namespaces
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_synopsis.html b/boost/libs/math/doc/html/math_toolkit/oct_synopsis.html deleted file mode 100644 index bd39e730..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_synopsis.html +++ /dev/null @@ -1,141 +0,0 @@ - - - -Synopsis - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
namespace boost{ namespace math{
-
-template<typename T> class octonion;
-template<>           class octonion<float>;
-template<>           class octonion<double>;
-template<>           class octonion<long double>;
-
-// operators
-
-template<typename T> octonion<T> operator + (T const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator + (octonion<T> const & lhs, T const & rhs);
-template<typename T> octonion<T> operator + (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator + (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> octonion<T> operator + (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator + (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> octonion<T> operator + (octonion<T> const & lhs, octonion<T> const & rhs);
-
-template<typename T> octonion<T> operator - (T const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator - (octonion<T> const & lhs, T const & rhs);
-template<typename T> octonion<T> operator - (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator - (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> octonion<T> operator - (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator - (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> octonion<T> operator - (octonion<T> const & lhs, octonion<T> const & rhs);
-
-template<typename T> octonion<T> operator * (T const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator * (octonion<T> const & lhs, T const & rhs);
-template<typename T> octonion<T> operator * (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator * (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> octonion<T> operator * (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator * (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> octonion<T> operator * (octonion<T> const & lhs, octonion<T> const & rhs);
-
-template<typename T> octonion<T> operator / (T const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator / (octonion<T> const & lhs, T const & rhs);
-template<typename T> octonion<T> operator / (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator / (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> octonion<T> operator / (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> octonion<T> operator / (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> octonion<T> operator / (octonion<T> const & lhs, octonion<T> const & rhs);
-
-template<typename T> octonion<T> operator + (octonion<T> const & o);
-template<typename T> octonion<T> operator - (octonion<T> const & o);
-
-template<typename T> bool operator == (T const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator == (octonion<T> const & lhs, T const & rhs);
-template<typename T> bool operator == (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator == (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> bool operator == (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator == (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> bool operator == (octonion<T> const & lhs, octonion<T> const & rhs);
-
-template<typename T> bool operator != (T const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator != (octonion<T> const & lhs, T const & rhs);
-template<typename T> bool operator != (::std::complex<T> const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator != (octonion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> bool operator != (::boost::math::quaternion<T> const & lhs, octonion<T> const & rhs);
-template<typename T> bool operator != (octonion<T> const & lhs, ::boost::math::quaternion<T> const & rhs);
-template<typename T> bool operator != (octonion<T> const & lhs, octonion<T> const & rhs);
-
-template<typename T, typename charT, class traits>
-::std::basic_istream<charT,traits> & operator >> (::std::basic_istream<charT,traits> & is, octonion<T> & o);
-
-template<typename T, typename charT, class traits>
-::std::basic_ostream<charT,traits> & operator << (::std::basic_ostream<charT,traits> & os, octonion<T> const & o);
-
-// values
-
-template<typename T> T           real(octonion<T> const & o);
-template<typename T> octonion<T> unreal(octonion<T> const & o);
-
-template<typename T> T           sup(octonion<T> const & o);
-template<typename T> T           l1(octonion<T>const & o);
-template<typename T> T           abs(octonion<T> const & o);
-template<typename T> T           norm(octonion<T>const  & o);
-template<typename T> octonion<T> conj(octonion<T> const & o);
-
-template<typename T> octonion<T> spherical(T const & rho, T const & theta, T const & phi1, T const & phi2, T const & phi3, T const & phi4, T const & phi5, T const & phi6);
-template<typename T> octonion<T> multipolar(T const & rho1, T const & theta1, T const & rho2, T const & theta2, T const & rho3, T const & theta3, T const & rho4, T const & theta4);
-template<typename T> octonion<T> cylindrical(T const & r, T const & angle, T const & h1, T const & h2, T const & h3, T const & h4, T const & h5, T const & h6);
-
-// transcendentals
-
-template<typename T> octonion<T> exp(octonion<T> const & o);
-template<typename T> octonion<T> cos(octonion<T> const & o);
-template<typename T> octonion<T> sin(octonion<T> const & o);
-template<typename T> octonion<T> tan(octonion<T> const & o);
-template<typename T> octonion<T> cosh(octonion<T> const & o);
-template<typename T> octonion<T> sinh(octonion<T> const & o);
-template<typename T> octonion<T> tanh(octonion<T> const & o);
-
-template<typename T> octonion<T> pow(octonion<T> const & o, int n);
-
-}  } // namespaces
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_tests.html b/boost/libs/math/doc/html/math_toolkit/oct_tests.html deleted file mode 100644 index b55a3de5..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_tests.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -Test Program - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The octonion_test.cpp test - program tests octonions specialisations for float, double and long double (sample output). -

-

- If you define the symbol BOOST_OCTONION_TEST_VERBOSE, you will get additional - output (verbose output); this - will only be helpfull if you enable message output at the same time, of course - (by uncommenting the relevant line in the test or by adding --log_level=messages - to your command line,...). In that case, and if you are running interactively, - you may in addition define the symbol BOOST_INTERACTIVE_TEST_INPUT_ITERATOR - to interactively test the input operator with input of your choice from the - standard input (instead of hard-coding it in the test). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_todo.html b/boost/libs/math/doc/html/math_toolkit/oct_todo.html deleted file mode 100644 index 5434e6c2..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_todo.html +++ /dev/null @@ -1,57 +0,0 @@ - - - -To Do - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-To Do -

-
    -
  • - Improve testing. -
  • -
  • - Rewrite input operatore using Spirit (creates a dependency). -
  • -
  • - Put in place an Expression Template mechanism (perhaps borrowing from uBlas). -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_trans.html b/boost/libs/math/doc/html/math_toolkit/oct_trans.html deleted file mode 100644 index a5b67b3a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_trans.html +++ /dev/null @@ -1,148 +0,0 @@ - - - -Octonions Transcendentals - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There is no log or sqrt provided for octonions in this implementation, - and pow is likewise restricted - to integral powers of the exponent. There are several reasons to this: on the - one hand, the equivalent of analytic continuation for octonions ("branch - cuts") remains to be investigated thoroughly (by me, at any rate...), - and we wish to avoid the nonsense introduced in the standard by exponentiations - of complexes by complexes (which is well defined, but not in the standard...). - Talking of nonsense, saying that pow(0,0) is "implementation - defined" is just plain brain-dead... -

-

- We do, however provide several transcendentals, chief among which is the exponential. - That it allows for a "closed formula" is a result of the author (the - existence and definition of the exponential, on the octonions among others, - on the other hand, is a few centuries old). Basically, any converging power - series with real coefficients which allows for a closed formula in C can be transposed to O. More transcendentals of this type could - be added in a further revision upon request. It should be noted that it is - these functions which force the dependency upon the boost/math/special_functions/sinc.hpp - and the boost/math/special_functions/sinhc.hpp - headers. -

-
- - exp -
-
template<typename T>
-octonion<T> exp(octonion<T> const & o);
-
-

- Computes the exponential of the octonion. -

-
- - cos -
-
template<typename T>
-octonion<T> cos(octonion<T> const & o);
-
-

- Computes the cosine of the octonion -

-
- - sin -
-
template<typename T>
-octonion<T> sin(octonion<T> const & o);
-
-

- Computes the sine of the octonion. -

-
- - tan -
-
template<typename T>
-octonion<T> tan(octonion<T> const & o);
-
-

- Computes the tangent of the octonion. -

-
- - cosh -
-
template<typename T>
-octonion<T> cosh(octonion<T> const & o);
-
-

- Computes the hyperbolic cosine of the octonion. -

-
- - sinh -
-
template<typename T>
-octonion<T> sinh(octonion<T> const & o);
-
-

- Computes the hyperbolic sine of the octonion. -

-
- - tanh -
-
template<typename T>
-octonion<T> tanh(octonion<T> const & o);
-
-

- Computes the hyperbolic tangent of the octonion. -

-
- - pow -
-
template<typename T>
-octonion<T>  pow(octonion<T> const & o, int n);
-
-

- Computes the n-th power of the octonion q. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_typedefs.html b/boost/libs/math/doc/html/math_toolkit/oct_typedefs.html deleted file mode 100644 index 887175da..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_typedefs.html +++ /dev/null @@ -1,72 +0,0 @@ - - - -Octonion Member Typedefs - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- value_type -

-

- Template version: -

-
typedef T value_type;
-
-

- Float specialization version: -

-
typedef float value_type;
-
-

- Double specialization version: -

-
typedef double value_type;
-
-

- Long double specialization version: -

-
typedef long double value_type;
-
-

- These provide easy acces to the type the template is built upon. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/oct_value_ops.html b/boost/libs/math/doc/html/math_toolkit/oct_value_ops.html deleted file mode 100644 index 370d6c9c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/oct_value_ops.html +++ /dev/null @@ -1,108 +0,0 @@ - - - -Octonion Value Operations - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Real - and Unreal -
-
template<typename T> T  real(octonion<T> const & o);
-template<typename T> octonion<T> unreal(octonion<T> const & o);
-
-

- These return o.real() and - o.unreal() - respectively. -

-
- - conj -
-
template<typename T> octonion<T> conj(octonion<T> const & o);
-
-

- This returns the conjugate of the octonion. -

-
- - sup -
-
template<typename T> T   sup(octonion<T> const & o);
-
-

- This return the sup norm (the greatest among abs(o.R_component_1())...abs(o.R_component_8())) of the octonion. -

-
- - l1 -
-
template<typename T> T   l1(octonion<T> const & o);
-
-

- This return the l1 norm (abs(o.R_component_1())+...+abs(o.R_component_8())) of the octonion. -

-
- - abs -
-
template<typename T> T   abs(octonion<T> const & o);
-
-

- This return the magnitude (Euclidian norm) of the octonion. -

-
- - norm -
-
template<typename T> T  norm(octonion<T>const  & o);
-
-

- This return the (Cayley) norm of the octonion. The term "norm" might - be confusing, as most people associate it with the Euclidian norm (and quadratic - functionals). For this version of (the mathematical objects known as) octonions, - the Euclidian norm (also known as magnitude) is the square root of the Cayley - norm. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/octonion.html b/boost/libs/math/doc/html/math_toolkit/octonion.html deleted file mode 100644 index 44caae5a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/octonion.html +++ /dev/null @@ -1,114 +0,0 @@ - - - -Template Class octonion - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
namespace boost{ namespace math {
-
-template<typename T>
-class octonion
-{
-public:
-   typedef T value_type;
-
-   explicit  octonion(T const & requested_a = T(), T const & requested_b = T(), T const & requested_c = T(), T const & requested_d = T(), T const & requested_e = T(), T const & requested_f = T(), T const & requested_g = T(), T const & requested_h = T());
-   explicit  octonion(::std::complex<T> const & z0, ::std::complex<T> const & z1 = ::std::complex<T>(), ::std::complex<T> const & z2 = ::std::complex<T>(), ::std::complex<T> const & z3 = ::std::complex<T>());
-   explicit  octonion(::boost::math::quaternion<T> const & q0, ::boost::math::quaternion<T> const & q1 = ::boost::math::quaternion<T>());
-   template<typename X>
-   explicit  octonion(octonion<X> const & a_recopier);
-
-   T                             real() const;
-   octonion<T>                   unreal() const;
-
-   T                             R_component_1() const;
-   T                             R_component_2() const;
-   T                             R_component_3() const;
-   T                             R_component_4() const;
-   T                             R_component_5() const;
-   T                             R_component_6() const;
-   T                             R_component_7() const;
-   T                             R_component_8() const;
-
-   ::std::complex<T>             C_component_1() const;
-   ::std::complex<T>             C_component_2() const;
-   ::std::complex<T>             C_component_3() const;
-   ::std::complex<T>             C_component_4() const;
-
-   ::boost::math::quaternion<T>  H_component_1() const;
-   ::boost::math::quaternion<T>  H_component_2() const;
-
-   octonion<T> & operator = (octonion<T> const  & a_affecter);
-   template<typename X>
-   octonion<T> & operator = (octonion<X> const  & a_affecter);
-   octonion<T> & operator = (T const  & a_affecter);
-   octonion<T> & operator = (::std::complex<T> const & a_affecter);
-   octonion<T> & operator = (::boost::math::quaternion<T> const & a_affecter);
-
-   octonion<T> & operator += (T const & rhs);
-   octonion<T> & operator += (::std::complex<T> const & rhs);
-   octonion<T> & operator += (::boost::math::quaternion<T> const & rhs);
-   template<typename X>
-   octonion<T> & operator += (octonion<X> const & rhs);
-
-   octonion<T> & operator -= (T const & rhs);
-   octonion<T> & operator -= (::std::complex<T> const & rhs);
-   octonion<T> & operator -= (::boost::math::quaternion<T> const & rhs);
-   template<typename X>
-   octonion<T> & operator -= (octonion<X> const & rhs);
-
-   octonion<T> & operator *= (T const & rhs);
-   octonion<T> & operator *= (::std::complex<T> const & rhs);
-   octonion<T> & operator *= (::boost::math::quaternion<T> const & rhs);
-   template<typename X>
-   octonion<T> & operator *= (octonion<X> const & rhs);
-
-   octonion<T> & operator /= (T const & rhs);
-   octonion<T> & operator /= (::std::complex<T> const & rhs);
-   octonion<T> & operator /= (::boost::math::quaternion<T> const & rhs);
-   template<typename X>
-   octonion<T> & operator /= (octonion<X> const & rhs);
-};
-
-} } // namespaces
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/overview.html b/boost/libs/math/doc/html/math_toolkit/overview.html deleted file mode 100644 index 7fb48b21..00000000 --- a/boost/libs/math/doc/html/math_toolkit/overview.html +++ /dev/null @@ -1,93 +0,0 @@ - - - -Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The header <boost/cstdfloat.hpp> - provides optional standardized floating-point - typedefs having specified - widths. These are useful for writing portable code because they - should behave identically on all platforms. These typedefs - are the floating-point analog of specified-width integers in <cstdint> and stdint.h. -

-

- The typedefs are based on N3626 - proposed for a new C++14 standard header <cstdfloat> - and N1703 - proposed for a new C language standard header <stdfloat.h>. -

-

- All typedefs are in namespace boost - (would be in namespace std - if eventually standardized). -

-

- The typedefs include float16_t, float32_t, float64_t, float80_t, float128_t, their corresponding least and - fast types, and the corresponding maximum-width type. The typedefs - are based on underlying built-in types such as float, - double, or long - double, or the proposed N2016 - short float type, or based on other compiler-specific non-standardized - types such as __float128. The - underlying types of these typedefs - must conform with the corresponding specifications of binary16, binary32, binary64, - and binary128 in IEEE_floating_point - floating-point format, and std::numeric_limits<>::is_iec559 - == true. -

-

- The 128-bit floating-point type (of great interest in scientific and numeric - programming) is not required in the Boost header, and may not be supplied for - all platforms/compilers, because compiler support for a 128-bit floating-point - type is not mandated by either the C standard or the C++ standard. -

-

- See Jahnke-Emden-Lambda function - example for an example using both a <cmath> - function and a Boost.Math function to evaluate a moderately interesting function, - the Jahnke-Emden-Lambda - function and normal - distribution as an example of a statistical distribution from Boost.Math. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/overview_tr1.html b/boost/libs/math/doc/html/math_toolkit/overview_tr1.html deleted file mode 100644 index f26d97b2..00000000 --- a/boost/libs/math/doc/html/math_toolkit/overview_tr1.html +++ /dev/null @@ -1,617 +0,0 @@ - - - -C99 and C++ TR1 C-style Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Many of the special functions included in this library are also a part of the - either the C99 - Standard ISO/IEC 9899:1999 or the Technical - Report on C++ Library Extensions. Therefore this library includes a - thin wrapper header boost/math/tr1.hpp that - provides compatibility with these two standards. -

-

- There are various pros and cons to using the library in this way: -

-

- Pros: -

-
    -
  • - The header to include is lightweight (i.e. fast to compile). -
  • -
  • - The functions have extern "C" linkage, and so are usable from - other languages (not just C and C++). -
  • -
  • - C99 and C++ TR1 Standard compatibility. -
  • -
-

- Cons: -

-
    -
  • - You will need to compile and link to the external Boost.Math libraries. -
  • -
  • - Limited to support for the types, float, - double and long - double. -
  • -
  • - Error handling is handled via setting ::errno and returning NaN's and infinities: - this may be less flexible than an C++ exception based approach. -
  • -
-
- - - - - -
[Note]Note

- The separate libraries are required only - if you choose to use boost/math/tr1.hpp rather than some other Boost.Math - header, the rest of Boost.Math remains header-only. -

-

- The separate libraries required in order to use tr1.hpp can be compiled using - bjam from within the libs/math/build directory, or from the Boost root directory - using the usual Boost-wide install procedure. Alternatively the source files - are located in libs/math/src and each have the same name as the function they - implement. The various libraries are named as follows: -

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Name -

-
-

- Type -

-
-

- Functions -

-
-

- boost_math_c99f-<suffix> -

-
-

- float -

-
-

- C99 Functions -

-
-

- boost_math_c99-<suffix> -

-
-

- double -

-
-

- C99 Functions -

-
-

- boost_math_c99l-<suffix> -

-
-

- long double -

-
-

- C99 Functions -

-
-

- boost_math_tr1f-<suffix> -

-
-

- float -

-
-

- TR1 Functions -

-
-

- boost_math_tr1-<suffix> -

-
-

- double -

-
-

- TR1 Functions -

-
-

- boost_math_tr1l-<suffix> -

-
-

- long double -

-
-

- TR1 Functions -

-
-

- Where <suffix> encodes the compiler and build options - used to build the libraries: for example "libboost_math_tr1-vc80-mt-gd.lib" - would be the statically linked TR1 library to use with Visual C++ 8.0, in multithreading - debug mode, with the DLL VC++ runtime, where as "boost_math_tr1-vc80-mt.lib" - would be import library for the TR1 DLL to be used with Visual C++ 8.0 with - the release multithreaded DLL VC++ runtime. Refer to the getting started guide - for a full - explanation of the <suffix> meanings. -

-
- - - - - -
[Note]Note
-

- Visual C++ users will typically have the correct library variant to link - against selected for them by boost/math/tr1.hpp based on your compiler settings. -

-

- Users will need to define BOOST_MATH_TR1_DYN_LINK when building their code - if they want to link against the DLL versions of these libraries rather than - the static versions. -

-

- Users can disable auto-linking by defining BOOST_MATH_TR1_NO_LIB when building: - this is typically only used when linking against a customised build of the - libraries. -

-
-
- - - - - -
[Note]Note

- Linux and Unix users will generally only have one variant of these libraries - installed, and can generally just link against -lboost_math_tr1 etc. -

-
- - Usage - Recomendations -
-

- This library now presents the user with a choice: -

-
    -
  • - To include the header only versions of the functions and have an easier - time linking, but a longer compile time. -
  • -
  • - To include the TR1 headers and link against an external library. -
  • -
-

- Which option you choose depends largely on how you prefer to work and how your - system is set up. -

-

- For example a casual user who just needs the acosh function, would probably - be better off including <boost/math/special_functions/acosh.hpp> and using boost::math::acosh(x) in their code. -

-

- However, for large scale software development where compile times are significant, - and where the Boost libraries are already built and installed on the system, - then including <boost/math/tr1.hpp> and using boost::math::tr1::acosh(x) - will speed up compile times, reduce object files sizes (since there are no - templates being instantiated any more), and also speed up debugging runtimes - - since the externally compiled libraries can be compiler optimised, rather - than built using full settings - the difference in performance between release and debug builds can be as much - as 20 times, so for complex applications this can be a big win. -

-
- - Supported - C99 Functions -
-

- See also the quick reference guide for these - functions. -

-
namespace boost{ namespace math{ namespace tr1{ extern "C"{
-
-typedef unspecified float_t;
-typedef unspecified double_t;
-
-double acosh(double x);
-float acoshf(float x);
-long double acoshl(long double x);
-
-double asinh(double x);
-float asinhf(float x);
-long double asinhl(long double x);
-
-double atanh(double x);
-float atanhf(float x);
-long double atanhl(long double x);
-
-double cbrt(double x);
-float cbrtf(float x);
-long double cbrtl(long double x);
-
-double copysign(double x, double y);
-float copysignf(float x, float y);
-long double copysignl(long double x, long double y);
-
-double erf(double x);
-float erff(float x);
-long double erfl(long double x);
-
-double erfc(double x);
-float erfcf(float x);
-long double erfcl(long double x);
-
-double expm1(double x);
-float expm1f(float x);
-long double expm1l(long double x);
-
-double fmax(double x, double y);
-float fmaxf(float x, float y);
-long double fmaxl(long double x, long double y);
-
-double fmin(double x, double y);
-float fminf(float x, float y);
-long double fminl(long double x, long double y);
-
-double hypot(double x, double y);
-float hypotf(float x, float y);
-long double hypotl(long double x, long double y);
-
-double lgamma(double x);
-float lgammaf(float x);
-long double lgammal(long double x);
-
-long long llround(double x);
-long long llroundf(float x);
-long long llroundl(long double x);
-
-double log1p(double x);
-float log1pf(float x);
-long double log1pl(long double x);
-
-long lround(double x);
-long lroundf(float x);
-long lroundl(long double x);
-
-double nextafter(double x, double y);
-float nextafterf(float x, float y);
-long double nextafterl(long double x, long double y);
-
-double nexttoward(double x, long double y);
-float nexttowardf(float x, long double y);
-long double nexttowardl(long double x, long double y);
-
-double round(double x);
-float roundf(float x);
-long double roundl(long double x);
-
-double tgamma(double x);
-float tgammaf(float x);
-long double tgammal(long double x);
-
-double trunc(double x);
-float truncf(float x);
-long double truncl(long double x);
-
-}}}} // namespaces
-
-
- - Supported - TR1 Functions -
-

- See also the quick reference guide for - these functions. -

-
namespace boost{ namespace math{ namespace tr1{ extern "C"{
-
-// [5.2.1.1] associated Laguerre polynomials:
-double assoc_laguerre(unsigned n, unsigned m, double x);
-float assoc_laguerref(unsigned n, unsigned m, float x);
-long double assoc_laguerrel(unsigned n, unsigned m, long double x);
-
-// [5.2.1.2] associated Legendre functions:
-double assoc_legendre(unsigned l, unsigned m, double x);
-float assoc_legendref(unsigned l, unsigned m, float x);
-long double assoc_legendrel(unsigned l, unsigned m, long double x);
-
-// [5.2.1.3] beta function:
-double beta(double x, double y);
-float betaf(float x, float y);
-long double betal(long double x, long double y);
-
-// [5.2.1.4] (complete) elliptic integral of the first kind:
-double comp_ellint_1(double k);
-float comp_ellint_1f(float k);
-long double comp_ellint_1l(long double k);
-
-// [5.2.1.5] (complete) elliptic integral of the second kind:
-double comp_ellint_2(double k);
-float comp_ellint_2f(float k);
-long double comp_ellint_2l(long double k);
-
-// [5.2.1.6] (complete) elliptic integral of the third kind:
-double comp_ellint_3(double k, double nu);
-float comp_ellint_3f(float k, float nu);
-long double comp_ellint_3l(long double k, long double nu);
-
-// [5.2.1.8] regular modified cylindrical Bessel functions:
-double cyl_bessel_i(double nu, double x);
-float cyl_bessel_if(float nu, float x);
-long double cyl_bessel_il(long double nu, long double x);
-
-// [5.2.1.9] cylindrical Bessel functions (of the first kind):
-double cyl_bessel_j(double nu, double x);
-float cyl_bessel_jf(float nu, float x);
-long double cyl_bessel_jl(long double nu, long double x);
-
-// [5.2.1.10] irregular modified cylindrical Bessel functions:
-double cyl_bessel_k(double nu, double x);
-float cyl_bessel_kf(float nu, float x);
-long double cyl_bessel_kl(long double nu, long double x);
-
-// [5.2.1.11] cylindrical Neumann functions;
-// cylindrical Bessel functions (of the second kind):
-double cyl_neumann(double nu, double x);
-float cyl_neumannf(float nu, float x);
-long double cyl_neumannl(long double nu, long double x);
-
-// [5.2.1.12] (incomplete) elliptic integral of the first kind:
-double ellint_1(double k, double phi);
-float ellint_1f(float k, float phi);
-long double ellint_1l(long double k, long double phi);
-
-// [5.2.1.13] (incomplete) elliptic integral of the second kind:
-double ellint_2(double k, double phi);
-float ellint_2f(float k, float phi);
-long double ellint_2l(long double k, long double phi);
-
-// [5.2.1.14] (incomplete) elliptic integral of the third kind:
-double ellint_3(double k, double nu, double phi);
-float ellint_3f(float k, float nu, float phi);
-long double ellint_3l(long double k, long double nu, long double phi);
-
-// [5.2.1.15] exponential integral:
-double expint(double x);
-float expintf(float x);
-long double expintl(long double x);
-
-// [5.2.1.16] Hermite polynomials:
-double hermite(unsigned n, double x);
-float hermitef(unsigned n, float x);
-long double hermitel(unsigned n, long double x);
-
-// [5.2.1.18] Laguerre polynomials:
-double laguerre(unsigned n, double x);
-float laguerref(unsigned n, float x);
-long double laguerrel(unsigned n, long double x);
-
-// [5.2.1.19] Legendre polynomials:
-double legendre(unsigned l, double x);
-float legendref(unsigned l, float x);
-long double legendrel(unsigned l, long double x);
-
-// [5.2.1.20] Riemann zeta function:
-double riemann_zeta(double);
-float riemann_zetaf(float);
-long double riemann_zetal(long double);
-
-// [5.2.1.21] spherical Bessel functions (of the first kind):
-double sph_bessel(unsigned n, double x);
-float sph_besself(unsigned n, float x);
-long double sph_bessell(unsigned n, long double x);
-
-// [5.2.1.22] spherical associated Legendre functions:
-double sph_legendre(unsigned l, unsigned m, double theta);
-float sph_legendref(unsigned l, unsigned m, float theta);
-long double sph_legendrel(unsigned l, unsigned m, long double theta);
-
-// [5.2.1.23] spherical Neumann functions;
-// spherical Bessel functions (of the second kind):
-double sph_neumann(unsigned n, double x);
-float sph_neumannf(unsigned n, float x);
-long double sph_neumannl(unsigned n, long double x);
-
-}}}} // namespaces
-
-

- In addition sufficient additional overloads of the double - versions of the above functions are provided, so that calling the function - with any mixture of float, double, long - double, or integer - arguments is supported, with the return type determined by the result - type calculation rules. -

-
- - Currently - Unsupported C99 Functions -
-
double exp2(double x);
-float exp2f(float x);
-long double exp2l(long double x);
-
-double fdim(double x, double y);
-float fdimf(float x, float y);
-long double fdiml(long double x, long double y);
-
-double fma(double x, double y, double z);
-float fmaf(float x, float y, float z);
-long double fmal(long double x, long double y, long double z);
-
-int ilogb(double x);
-int ilogbf(float x);
-int ilogbl(long double x);
-
-long long llrint(double x);
-long long llrintf(float x);
-long long llrintl(long double x);
-
-double log2(double x);
-float log2f(float x);
-long double log2l(long double x);
-
-double logb(double x);
-float logbf(float x);
-long double logbl(long double x);
-
-long lrint(double x);
-long lrintf(float x);
-long lrintl(long double x);
-
-double nan(const char *str);
-float nanf(const char *str);
-long double nanl(const char *str);
-
-double nearbyint(double x);
-float nearbyintf(float x);
-long double nearbyintl(long double x);
-
-double remainder(double x, double y);
-float remainderf(float x, float y);
-long double remainderl(long double x, long double y);
-
-double remquo(double x, double y, int *pquo);
-float remquof(float x, float y, int *pquo);
-long double remquol(long double x, long double y, int *pquo);
-
-double rint(double x);
-float rintf(float x);
-long double rintl(long double x);
-
-double scalbln(double x, long ex);
-float scalblnf(float x, long ex);
-long double scalblnl(long double x, long ex);
-
-double scalbn(double x, int ex);
-float scalbnf(float x, int ex);
-long double scalbnl(long double x, int ex);
-
-
- - Currently - Unsupported TR1 Functions -
-
// [5.2.1.7] confluent hypergeometric functions:
-double conf_hyperg(double a, double c, double x);
-float conf_hypergf(float a, float c, float x);
-long double conf_hypergl(long double a, long double c, long double x);
-
-// [5.2.1.17] hypergeometric functions:
-double hyperg(double a, double b, double c, double x);
-float hypergf(float a, float b, float c, float x);
-long double hypergl(long double a, long double b, long double c,
-long double x);
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/owens_t.html b/boost/libs/math/doc/html/math_toolkit/owens_t.html deleted file mode 100644 index 03042ac5..00000000 --- a/boost/libs/math/doc/html/math_toolkit/owens_t.html +++ /dev/null @@ -1,318 +0,0 @@ - - - -Owen's T function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/owens_t.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type owens_t(T h, T a);
-
-template <class T, class Policy>
-calculated-result-type owens_t(T h, T a, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- Returns the Owens_t - function of h and a. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, what - level of precision to use etc. Refer to the policy documentation - for more details. -

-

-     -

-

- -

-

- The function owens_t(h, a) gives the probability of the event (X - > h and 0 < Y < a * X), where X and - Y are independent standard normal random variables. -

-

- For h and a > 0, T(h,a), gives the volume of an uncorrelated bivariate normal - distribution with zero means and unit variances over the area between y - = ax and y = 0 and to the right of x - = h. -

-

- That is the area shaded in the figure below (Owens 1956). -

-

- -

-

- and is also illustrated by a 3D plot. -

-

- -

-

- This function is used in the computation of the Skew - Normal Distribution. It is also used in the computation of bivariate - and multivariate normal distribution probabilities. The return type of this - function is computed using the result - type calculation rules: the result is of type double when T is an integer type, and type T - otherwise. -

-

- Owen's original paper (page 1077) provides some additional corner cases. -

-

- T(h, 0) = 0 -

-

- T(0, a) = ½π arctan(a) -

-

- T(h, 1) = ½ G(h) [1 - G(h)] -

-

- T(h, ∞) = G(|h|) -

-

- where G(h) is the univariate normal with zero mean and unit variance integral - from -∞ to h. -

-
- - Accuracy -
-

- Over the built-in types and range tested, errors are less than 10 * std::numeric_limits<RealType>::epsilon(). -

-
-

Table 6.83. Error rates for owens_t

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Owens T (medium small values) -

-
-

- Max = 4.37ε (Mean = 0.973ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 3.34ε (Mean = 0.942ε) -

-
-

- Max = 3.34ε (Mean = 0.91ε) -

-
-

- Owens T (large and diverse values) -

-
-

- Max = 3.78ε (Mean = 0.621ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 49ε (Mean = 2.16ε) -

-
-

- Max = 24.5ε (Mean = 1.38ε) -

-
-
-
- - Testing -
-

- Test data was generated by Patefield and Tandy algorithms T1 and T4, and also - the suggested reference routine T7. -

-
    -
  • - T1 was rejected if the result was too small compared to atan(a) - (ie cancellation), -
  • -
  • - T4 was rejected if there was no convergence, -
  • -
  • - Both were rejected if they didn't agree. -
  • -
-

- Over the built-in types and range tested, errors are less than 10 std::numeric_limits<RealType>::epsilon(). -

-

- However, that there was a whole domain (large h, small - a) where it was not possible to generate any reliable - test values (all the methods got rejected for one reason or another). -

-

- There are also two sets of sanity tests: spot values are computed using Wolfram Mathematica - and The R Project for Statistical Computing. -

-
- - Implementation -
-

- The function was proposed and evaluated by Donald. - B. Owen, Tables for computing bivariate normal probabilities, Ann. Math. Statist., - 27, 1075-1090 (1956). -

-

- The algorithms of Patefield, M. and Tandy, D. "Fast and accurate Calculation - of Owen's T-Function", Journal of Statistical Software, 5 (5), 1 - 25 - (2000) are adapted for C++ with arbitrary RealType. -

-

- The Patefield-Tandy algorithm provides six methods of evalualution (T1 to T6); - the best method is selected according to the values of a - and h. See the original paper and the source in owens_t.hpp - for details. -

-

- The Patefield-Tandy algorithm is accurate to approximately 20 decimal places, - so for types with greater precision we use: -

-
    -
  • - A modified version of T1 which folds the calculation of atan(h) - into the T1 series (to avoid subtracting two values similar in magnitude), - and then accelerates the resulting alternating series using method 1 from - H. Cohen, F. Rodriguez Villegas, D. Zagier, "Convergence acceleration - of alternating series", Bonn, (1991). The result is valid everywhere, - but doesn't always converge, or may become too divergent in the first few - terms to sum accurately. This is used for ah < 1. -
  • -
  • - A modified version of T2 which is accelerated in the same manner as T1. - This is used for h > 1. -
  • -
  • - A version of T4 only when both T1 and T2 have failed to produce an accurate - answer. -
  • -
  • - Fallback to the Patefiled Tandy algorithm when all the above methods fail: - this happens not at all for our test data at 100 decimal digits precision. - However, there is a difficult area when a is very - close to 1 and the precision increases which may cause this to happen in - very exceptional circumstances. -
  • -
-

- Using the above algorithm and a 100-decimal digit type, results accurate to - 80 decimal places were obtained in the difficult area where a - is close to 1, and greater than 95 decimal places elsewhere. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/perf_over1.html b/boost/libs/math/doc/html/math_toolkit/perf_over1.html deleted file mode 100644 index aa73fd5d..00000000 --- a/boost/libs/math/doc/html/math_toolkit/perf_over1.html +++ /dev/null @@ -1,88 +0,0 @@ - - - -Performance - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- By and large the performance of this library should be acceptable for most - needs. However, often the library has to make a choice whether to be accurate - or fast and by default it chooses accuracy over speed. If you would rather - have fast rather than fully accurate routines, then refer to the performance - section for information and examples on how to achieve this. -

-

- In terms of the algorithms used, this library aims to use the same "best - of breed" algorithms as many other libraries: the principle difference - is that this library is implemented in C++ - taking advantage of all the abstraction - mechanisms that C++ offers - where as most traditional numeric libraries are - implemented in C or FORTRAN. Traditionally languages such as C or FORTRAN are - perceived as easier to optimise than more complex languages like C++, so in - a sense this library provides a good test of current compiler technology, and - the "abstraction penalty" - if any - of C++ compared to other languages. -

-

- The three most important things you can do to ensure the best performance from - this library are: -

-
    -
  1. - Turn on your compilers optimisations: the difference between "release" - and "debug" builds can easily be a factor - of 20. -
  2. -
  3. - Pick your compiler carefully: performance - differences of up to 8 fold have been found between some Windows - compilers for example. -
  4. -
  5. - Disable internal use of long double, this will reduce accuracy but typically - yield a 2x speedup on modern x64 hardware/compilers. -
  6. -
-

- The performance section contains more information - on the performance of this library, what you can do to fine tune it, and how - this library compares to some other open source alternatives. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/perf_over2.html b/boost/libs/math/doc/html/math_toolkit/perf_over2.html deleted file mode 100644 index 4a07585a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/perf_over2.html +++ /dev/null @@ -1,88 +0,0 @@ - - - -Performance Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- By and large the performance of this library should be acceptable for most - needs. However, often the library has to make a choice whether to be accurate - or fast and by default it chooses accuracy over speed. If you would rather - have fast rather than fully accurate routines, then refer to the performance - section for information and examples on how to achieve this. -

-

- In terms of the algorithms used, this library aims to use the same "best - of breed" algorithms as many other libraries: the principle difference - is that this library is implemented in C++ - taking advantage of all the abstraction - mechanisms that C++ offers - where as most traditional numeric libraries are - implemented in C or FORTRAN. Traditionally languages such as C or FORTRAN are - perceived as easier to optimise than more complex languages like C++, so in - a sense this library provides a good test of current compiler technology, and - the "abstraction penalty" - if any - of C++ compared to other languages. -

-

- The three most important things you can do to ensure the best performance from - this library are: -

-
    -
  1. - Turn on your compilers optimisations: the difference between "release" - and "debug" builds can easily be a factor - of 20. -
  2. -
  3. - Pick your compiler carefully: performance - differences of up to 8 fold have been found between some Windows - compilers for example. -
  4. -
  5. - Disable internal use of long double, this will reduce accuracy but typically - yield a 2x speedup on modern x64 hardware/compilers. -
  6. -
-

- The performance section contains more information - on the performance of this library, what you can do to fine tune it, and how - this library compares to some other open source alternatives. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/perf_test_app.html b/boost/libs/math/doc/html/math_toolkit/perf_test_app.html deleted file mode 100644 index 7c6c83bf..00000000 --- a/boost/libs/math/doc/html/math_toolkit/perf_test_app.html +++ /dev/null @@ -1,118 +0,0 @@ - - - -The Performance Test Applications - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Under boost-path/libs/math/reporting/performance you will - find some reasonable comprehensive performance test applications for this library. -

-

- In order to generate the tables you will have seen in this documentation (or - others for your specific compiler) you need to invoke bjam - in this directory, using a C++11 capable compiler. Note that results extend/overwrite - whatever is already present in boost-path/libs/math/reporting/performance/doc/performance_tables.qbk, - you may want to delete this file before you begin so as to make a fresh start - for your particular system. -

-

- The programs produce results in Boost's Quickbook format which is not terribly - human readable. If you configure your user-config.jam to be able to build Docbook - documentation, then you will also get a full summary of all the data in HTML - format in boost-path/libs/math/reporting/performance/html/index.html. - Assuming you're on a 'nix-like platform the procedure to do this is to first - install the xsltproc, Docbook DTD, - and Bookbook XSL - packages. Then: -

-
    -
  • - Copy boost-path/tools/build/example/user-config.jam - to your home directory. -
  • -
  • - Add using xsltproc - ; to the end of the file (note the - space surrounding each token, including the final ";", this is - important!) This assumes that xsltproc - is in your path. -
  • -
  • - Add using boostbook - : path-to-xsl-stylesheets : - path-to-dtd - ; to the end of the file. The path-to-dtd - should point to version 4.2.x of the Docbook DTD, while path-to-xsl-stylesheets should point to the folder - containing the latest XSLT stylesheets. Both paths should use all forward - slashes even on Windows. -
  • -
-

- At this point you should be able to run the tests and generate the HTML summary, - if GSL, RMath or libstdc++ are present in the compilers path they will be automatically - tested. For DCDFLIB you will need to place the C source in boost-path/libs/math/reporting/performance/third_party/dcdflib. -

-

- If you want to compare multiple compilers, or multiple options for one compiler, - then you will need to invoke bjam - multiple times, once for each compiler. Note that in order to test multiple - configurations of the same compiler, each has to be given a unique name in - the test program, otherwise they all edit the same table cells. Suppose you - want to test GCC with and without the -ffast-math option, in this case bjam - would be invoked first as: -

-
bjam toolset=gcc -a cxxflags=-std=gnu++11
-
-

- Which would run the tests using default optimization options (-O3), we can - then run again using -ffast-math: -

-
bjam toolset=gcc -a cxxflags='-std=gnu++11 -ffast-math' define=COMPILER_NAME='"GCC with -ffast-math"'
-
-

- In the command line above, the -a flag forces a full rebuild, and the preprocessor - define COMPILER_NAME needs to be set to a string literal describing the compiler - configuration, hence the double quotes - one for the command line, one for - the compiler. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_overview.html b/boost/libs/math/doc/html/math_toolkit/pol_overview.html deleted file mode 100644 index e8c363b9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_overview.html +++ /dev/null @@ -1,118 +0,0 @@ - - - -Policy Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Policies are a powerful fine-grain mechanism that allow you to customise the - behaviour of this library according to your needs. There is more information - available in the policy tutorial - and the policy reference. -

-

- Generally speaking, unless you find that the default - policy behaviour when encountering 'bad' argument values does not meet - your needs, you should not need to worry about policies. -

-

- Policies are a compile-time mechanism that allow you to change error-handling - or calculation precision either program wide, or at the call site. -

-

- Although the policy mechanism itself is rather complicated, in practice it - is easy to use, and very flexible. -

-

- Using policies you can control: -

-
-

- You can control policies: -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_ref.html b/boost/libs/math/doc/html/math_toolkit/pol_ref.html deleted file mode 100644 index 7939bf0f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_ref.html +++ /dev/null @@ -1,64 +0,0 @@ - - - -Policy Reference - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_ref/assert_undefined.html b/boost/libs/math/doc/html/math_toolkit/pol_ref/assert_undefined.html deleted file mode 100644 index 54506078..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_ref/assert_undefined.html +++ /dev/null @@ -1,102 +0,0 @@ - - - -Mathematically Undefined Function Policies - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There are some functions that are generic (they are present for all the statistical - distributions supported) but which may be mathematically undefined for certain - distributions, but defined for others. -

-

- For example, the Cauchy distribution does not have a meaningful mean, so - what should -

-
mean(cauchy<>());
-
-

- return, and should such an expression even compile at all? -

-

- The default behaviour is for all such functions to not compile at all - in - fact they will raise a static - assertion - but by changing the policy we can have them return the - result of a domain error instead (which may well throw an exception, depending - on the error handling policy). -

-

- This behaviour is controlled by the assert_undefined<> policy: -

-
namespace boost{ namespace math{ namespace policies {
-
-template <bool b>
-class assert_undefined;
-
-}}} //namespaces
-
-

- For example: -

-
#include <boost/math/distributions/cauchy.hpp>
-
-using namespace boost::math::policies;
-using namespace boost::math;
-
-// This will not compile, cauchy has no mean!
-double m1 = mean(cauchy());
-
-// This will compile, but raises a domain error!
-double m2 = mean(cauchy_distribution<double, policy<assert_undefined<false> > >());
-
-

- policy<assert_undefined<false> - behaviour can also be obtained by defining the macro -

-
#define BOOST_MATH_ASSERT_UNDEFINED_POLICY false
-
-

- at the head of the file - see Using - Macros to Change the Policy Defaults. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_ref/discrete_quant_ref.html b/boost/libs/math/doc/html/math_toolkit/pol_ref/discrete_quant_ref.html deleted file mode 100644 index 2d8a6364..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_ref/discrete_quant_ref.html +++ /dev/null @@ -1,252 +0,0 @@ - - - -Discrete Quantile Policies - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- If a statistical distribution is discrete then the random - variable can only have integer values - this leaves us with a problem when - calculating quantiles - we can either ignore the discreteness of the distribution - and return a real value, or we can round to an integer. As it happens, computing - integer values can be substantially faster than calculating a real value, - so there are definite advantages to returning an integer, but we do then - need to decide how best to round the result. The discrete_quantile - policy defines how discrete quantiles work, and how integer results are rounded: -

-
enum discrete_quantile_policy_type
-{
-   real,
-   integer_round_outwards, // default
-   integer_round_inwards,
-   integer_round_down,
-   integer_round_up,
-   integer_round_nearest
-};
-
-template <discrete_quantile_policy_type>
-struct discrete_quantile;
-
-

- The values that discrete_quantile - can take have the following meanings: -

-
- - real -
-

- Ignores the discreteness of the distribution, and returns a real-valued result. - For example: -

-
#include <boost/math/distributions/negative_binomial.hpp>
-using boost::math::negative_binomial_distribution;
-
-using namespace boost::math::policies;
-
-typedef negative_binomial_distribution<
-      double,
-      policy<discrete_quantile<real> >
-   > dist_type;
-
-// Lower 5% quantile:
-double x = quantile(dist_type(20, 0.3), 0.05);
-// Upper 95% quantile:
-double y = quantile(complement(dist_type(20, 0.3), 0.05));
-
-

- Results in x = - 27.3898 and y - = 68.1584. -

-
- - integer_round_outwards -
-

- This is the default policy: an integer value is returned so that: -

-
    -
  • - Lower quantiles (where the probability is less than 0.5) are rounded - down. -
  • -
  • - Upper quantiles (where the probability is greater than 0.5) are rounded - up. -
  • -
-

- This is normally the safest rounding policy, since it ensures that both one - and two sided intervals are guaranteed to have at least - the requested coverage. For example: -

-
#include <boost/math/distributions/negative_binomial.hpp>
-using boost::math::negative_binomial;
-
-// Use the default rounding policy integer_round_outwards.
-// Lower quantile rounded down:
-double x = quantile(negative_binomial(20, 0.3), 0.05); // rounded up 27 from 27.3898
-// Upper quantile rounded up:
-double y = quantile(complement(negative_binomial(20, 0.3), 0.05)); // rounded down to 69 from 68.1584
-
-

- Results in x = - 27 (rounded down from 27.3898) and - y = - 69 (rounded up from 68.1584). -

-

- The variables x and y are now defined so that: -

-
cdf(negative_binomial(20), x) <= 0.05
-cdf(negative_binomial(20), y) >= 0.95
-
-

- In other words we guarantee at least 90% coverage in the central - region overall, and also no more than 5% coverage in - each tail. -

-
- - integer_round_inwards -
-

- This is the opposite of integer_round_outwards: an integer - value is returned so that: -

-
    -
  • - Lower quantiles (where the probability is less than 0.5) are rounded - up. -
  • -
  • - Upper quantiles (where the probability is greater than 0.5) are rounded - down. -
  • -
-

- For example: -

-
#include <boost/math/distributions/negative_binomial.hpp>
-using boost::math::negative_binomial_distribution;
-
-using namespace boost::math::policies;
-
-typedef negative_binomial_distribution<
-      double,
-      policy<discrete_quantile<integer_round_inwards> >
-   > dist_type;
-
-// Lower quantile rounded up:
-double x = quantile(dist_type(20, 0.3), 0.05); // 28 rounded up from 27.3898
-// Upper quantile rounded down:
-double y = quantile(complement(dist_type(20, 0.3), 0.05)); // 68 rounded down from 68.1584
-
-

- Results in x = - 28 (rounded up from 27.3898) and y = 68 - (rounded down from 68.1584). -

-

- The variables x and y are now defined so that: -

-
cdf(negative_binomial(20), x) >= 0.05
-cdf(negative_binomial(20), y) <= 0.95
-
-

- In other words we guarantee at no more than 90% coverage in the - central region overall, and also at least 5% coverage - in each tail. -

-
- - integer_round_down -
-

- Always rounds down to an integer value, no matter whether it's an upper or - a lower quantile. -

-
- - integer_round_up -
-

- Always rounds up to an integer value, no matter whether it's an upper or - a lower quantile. -

-
- - integer_round_nearest -
-

- Always rounds to the nearest integer value, no matter whether it's an upper - or a lower quantile. This will produce the requested coverage in - the average case, but for any specific example may results in - either significantly more or less coverage than the requested amount. For - example: -

-

- For example: -

-
#include <boost/math/distributions/negative_binomial.hpp>
-using boost::math::negative_binomial_distribution;
-
-using namespace boost::math::policies;
-
-typedef negative_binomial_distribution<
-      double,
-      policy<discrete_quantile<integer_round_nearest> >
-   > dist_type;
-
-// Lower quantile rounded (down) to nearest:
-double x = quantile(dist_type(20, 0.3), 0.05); // 27
-// Upper quantile rounded (down) to nearest:
-double y = quantile(complement(dist_type(20, 0.3), 0.05)); // 68
-
-

- Results in x = - 27 (rounded from 27.3898) and y = 68 - (rounded from 68.1584). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_ref/error_handling_policies.html b/boost/libs/math/doc/html/math_toolkit/pol_ref/error_handling_policies.html deleted file mode 100644 index 685334d9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_ref/error_handling_policies.html +++ /dev/null @@ -1,773 +0,0 @@ - - - -Error Handling Policies - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There are two orthogonal aspects to error handling: -

-
    -
  • - What to do (if anything) with the error. -
  • -
  • - What kind of error is being raised. -
  • -
-
- - Available - Actions When an Error is Raised -
-

- What to do with the error is encapsulated by an enumerated type: -

-
namespace boost { namespace math { namespace policies {
-
-enum error_policy_type
-{
-   throw_on_error = 0, // throw an exception.
-   errno_on_error = 1, // set ::errno & return 0, NaN, infinity or best guess.
-   ignore_error = 2, // return 0, NaN, infinity or best guess.
-   user_error = 3  // call a user-defined error handler.
-};
-
-}}} // namespaces
-
-

- The various enumerated values have the following meanings: -

-
- - throw_on_error -
-

- Will throw one of the following exceptions, depending upon the type of the - error: -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Error Type -

-
-

- Exception -

-
-

- Domain Error -

-
-

- std::domain_error -

-
-

- Pole Error -

-
-

- std::domain_error -

-
-

- Overflow Error -

-
-

- std::overflow_error -

-
-

- Underflow Error -

-
-

- std::underflow_error -

-
-

- Denorm Error -

-
-

- std::underflow_error -

-
-

- Evaluation Error -

-
-

- boost::math::evaluation_error -

-
-

- Indeterminate Result Error -

-
-

- std::domain_error -

-
-
- - errno_on_error -
-

- Will set global ::errno - ::errno - to one of the following values depending upon the error type (often EDOM - = 33 and ERANGE = 34), and then return the same value as if the error had - been ignored: -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Error Type -

-
-

- errno value -

-
-

- Domain Error -

-
-

- EDOM -

-
-

- Pole Error -

-
-

- EDOM -

-
-

- Overflow Error -

-
-

- ERANGE -

-
-

- Underflow Error -

-
-

- ERANGE -

-
-

- Denorm Error -

-
-

- ERANGE -

-
-

- Evaluation Error -

-
-

- EDOM -

-
-

- Indeterminate Result Error -

-
-

- EDOM -

-
-
- - ignore_error -
-

- Will return one of the values below depending on the error type (::errno - is NOT changed):: -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Error Type -

-
-

- Returned Value -

-
-

- Domain Error -

-
-

- std::numeric_limits<T>::quiet_NaN() -

-
-

- Pole Error -

-
-

- std::numeric_limits<T>::quiet_NaN() -

-
-

- Overflow Error -

-
-

- std::numeric_limits<T>::infinity() -

-
-

- Underflow Error -

-
-

- 0 -

-
-

- Denorm Error -

-
-

- The denormalised value. -

-
-

- Evaluation Error -

-
-

- The best guess (perhaps NaN) as to the result: which may be significantly - in error. -

-
-

- Indeterminate Result Error -

-
-

- Depends on the function where the error occurred -

-
-
- - user_error -
-

- Will call a user defined error handler: these are forward declared in boost/math/policies/error_handling.hpp, - but the actual definitions must be provided by the user: -

-
namespace boost{ namespace math{ namespace policies{
-
-template <class T>
-T user_domain_error(const char* function, const char* message, const T& val);
-
-template <class T>
-T user_pole_error(const char* function, const char* message, const T& val);
-
-template <class T>
-T user_overflow_error(const char* function, const char* message, const T& val);
-
-template <class T>
-T user_underflow_error(const char* function, const char* message, const T& val);
-
-template <class T>
-T user_denorm_error(const char* function, const char* message, const T& val);
-
-template <class T>
-T user_rounding_error(const char* function, const char* message, const T& val);
-
-template <class T>
-T user_evaluation_error(const char* function, const char* message, const T& val);
-
-template <class T>
-T user_indeterminate_result_error(const char* function, const char* message, const T& val);
-
-}}} // namespaces
-
-

- Note that the strings function and message - may contain "%1%" format specifiers designed to be used in conjunction - with Boost.Format. If these strings are to be presented to the program's - end-user then the "%1%" format specifier should be replaced with - the name of type T in the function string, and if there - is a %1% specifier in the message string then it should - be replaced with the value of val. -

-

- There is more information on user-defined error handlers in the tutorial - here. -

-
- - Kinds - of Error Raised -
-

- There are six kinds of error reported by this library, which are summarised - in the following table: -

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Error Type -

-
-

- Policy Class -

-
-

- Description -

-
-

- Domain Error -

-
-

- boost::math::policies::domain_error<action> -

-
-

- Raised when more or more arguments are outside the defined range - of the function. -

-

- Defaults to boost::math::policies::domain_error<throw_on_error> -

-

- When the action is set to throw_on_error then - throws std::domain_error -

-
-

- Pole Error -

-
-

- boost::math::policies::pole_error<action> -

-
-

- Raised when more or more arguments would cause the function to - be evaluated at a pole. -

-

- Defaults to boost::math::policies::pole_error<throw_on_error> -

-

- When the action is throw_on_error then throw - a std::domain_error -

-
-

- Overflow Error -

-
-

- boost::math::policies::overflow_error<action> -

-
-

- Raised when the result of the function is outside the representable - range of the floating point type used. -

-

- Defaults to boost::math::policies::overflow_error<throw_on_error>. -

-

- When the action is throw_on_error then throws - a std::overflow_error. -

-
-

- Underflow Error -

-
-

- boost::math::policies::underflow_error<action> -

-
-

- Raised when the result of the function is too small to be represented - in the floating point type used. -

-

- Defaults to boost::math::policies::underflow_error<ignore_error> -

-

- When the specified action is throw_on_error - then throws a std::underflow_error -

-
-

- Denorm Error -

-
-

- boost::math::policies::denorm_error<action> -

-
-

- Raised when the result of the function is a denormalised value. -

-

- Defaults to boost::math::policies::denorm_error<ignore_error> -

-

- When the action is throw_on_error then throws - a std::underflow_error -

-
-

- Rounding Error -

-
-

- boost::math::policies::rounding_error<action> -

-
-

- Raised When one of the rounding functions round, - trunc or modf is called with - an argument that has no integer representation, or is too large - to be represented in the result type -

-

- Defaults to boost::math::policies::rounding_error<throw_on_error> -

-

- When the action is throw_on_error then throws - boost::math::rounding_error -

-
-

- Evaluation Error -

-
-

- boost::math::policies::evaluation_error<action> -

-
-

- Raised when the result of the function is well defined and finite, - but we were unable to compute it. Typically this occurs when an - iterative method fails to converge. Of course ideally this error - should never be raised: feel free to report it as a bug if it is! -

-

- Defaults to boost::math::policies::evaluation_error<throw_on_error> -

-

- When the action is throw_on_error then throws - boost::math::evaluation_error -

-
-

- Indeterminate Result Error -

-
-

- boost::math::policies::indeterminate_result_error<action> -

-
-

- Raised when the result of a function is not defined for the values - that were passed to it. -

-

- Defaults to boost::math::policies::indeterminate_result_error<ignore_error> -

-

- When the action is throw_on_error then throws - std::domain_error -

-
-
- - Examples -
-

- Suppose we want a call to tgamma - to behave in a C-compatible way and set global ::errno rather than throw an exception, we - can achieve this at the call site using: -

-
#include <boost/math/special_functions/gamma.hpp>
-using boost::math::tgamma;
-
-//using namespace boost::math::policies; may also be convenient.
-using boost::math::policies::policy;
-using boost::math::policies::evaluation_error;
-using boost::math::policies::domain_error;
-using boost::math::policies::overflow_error;
-using boost::math::policies::domain_error;
-using boost::math::policies::pole_error;
-using boost::math::policies::errno_on_error;
-
-// Define a policy:
-typedef policy<
-  domain_error<errno_on_error>,
-  pole_error<errno_on_error>,
-  overflow_error<errno_on_error>,
-  evaluation_error<errno_on_error>
-> my_policy;
-
-double my_value = 0.; // 
-
-// Call the function applying my_policy:
-double t1 = tgamma(my_value, my_policy());
-
-// Alternatively (and equivalently) we could use helpful function
-// make_policy and define everything at the call site:
-double t2 = tgamma(my_value,
-  make_policy(
-    domain_error<errno_on_error>(),
-    pole_error<errno_on_error>(),
-    overflow_error<errno_on_error>(),
-    evaluation_error<errno_on_error>() )
-  );
-
-

- Suppose we want a statistical distribution to return infinities, rather than - throw exceptions, then we can use: -

-
#include <boost/math/distributions/normal.hpp>
-using boost::math::normal_distribution;
-
-using namespace boost::math::policies;
-
-// Define a specific policy:
-typedef policy<
-      overflow_error<ignore_error>
-      > my_policy;
-
-// Define the distribution, using my_policy:
-typedef normal_distribution<double, my_policy> my_norm;
-
-// Construct a my_norm distribution, using default mean and standard deviation,
-// and get a 0.05 or 5% quantile:
-double q = quantile(my_norm(), 0.05); // = -1.64485
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_ref/internal_promotion.html b/boost/libs/math/doc/html/math_toolkit/pol_ref/internal_promotion.html deleted file mode 100644 index efadea7b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_ref/internal_promotion.html +++ /dev/null @@ -1,150 +0,0 @@ - - - -Internal Floating-point Promotion Policies - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Normally when evaluating a function at say float - precision, maximal accuracy is assured by conducting the calculation at - double precision internally, - and then rounding the result. There are two policies that control whether - internal promotion to a higher precision floating-point type takes place, - or not: -

-
---- - - - - - - - - - - - - - - -
-

- Policy -

-
-

- Meaning -

-
-

- boost::math::policies::promote_float<B> -

-
-

- Indicates whether float - arguments should be promoted to double - precision internally: defaults to boost::math::policies::promote_float<true> -

-
-

- boost::math::policies::promote_double<B> -

-
-

- Indicates whether double - arguments should be promoted to long - double precision internally: - defaults to boost::math::policies::promote_double<true> -

-
-
- - Examples -
-

- Suppose we want tgamma to - be evaluated without internal promotion to long - double, then we could use: -

-
#include <boost/math/special_functions/gamma.hpp>
-
-using namespace boost::math::policies;
-using boost::math::tgamma;
-
-// Define a new policy *not* internally promoting RealType to double:
-typedef policy<
-      promote_double<false>
-      > my_policy;
-
-// Call the function, applying the new policy:
-double t1 = tgamma(some_value, my_policy());
-
-// Alternatively we could use helper function make_policy,
-// and concisely define everything at the call site:
-double t2 = tgamma(some_value, make_policy(promote_double<false>()));
-
-

- Alternatively, suppose we want a distribution to perform calculations without - promoting float to double, then we could use: -

-
#include <boost/math/distributions/normal.hpp>
-using boost::math::normal_distribution;
-
-using namespace boost::math::policies;
-
-// Define a policy:
-typedef policy<
-      promote_float<false>
-      > my_policy;
-
-// Define the new normal distribution using my_policy:
-typedef normal_distribution<float, my_policy> my_norm;
-
-// Get a quantile:
-float q = quantile(my_norm(), 0.05f);
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_ref/iteration_pol.html b/boost/libs/math/doc/html/math_toolkit/pol_ref/iteration_pol.html deleted file mode 100644 index c37b4924..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_ref/iteration_pol.html +++ /dev/null @@ -1,67 +0,0 @@ - - - -Iteration Limits Policies - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There are two policies that effect the iterative algorithms used to implement - the special functions in this library: -

-
template <unsigned long limit = BOOST_MATH_MAX_SERIES_ITERATION_POLICY>
-class max_series_iterations;
-
-template <unsigned long limit = BOOST_MATH_MAX_ROOT_ITERATION_POLICY>
-class max_root_iterations;
-
-

- The class max_series_iterations - determines the maximum number of iterations permitted in a series evaluation, - before the special function gives up and returns the result of evaluation_error. -

-

- The class max_root_iterations - determines the maximum number of iterations permitted in a root-finding algorithm - before the special function gives up and returns the result of evaluation_error. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_ref/namespace_pol.html b/boost/libs/math/doc/html/math_toolkit/pol_ref/namespace_pol.html deleted file mode 100644 index 031797af..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_ref/namespace_pol.html +++ /dev/null @@ -1,157 +0,0 @@ - - - -Setting Polices at Namespace Scope - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Sometimes what you really want to do is bring all the special functions, - or all the distributions into a specific namespace-scope, along with a specific - policy to use with them. There are two macros defined to assist with that: -

-
BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(Policy)
-
-

- and: -

-
BOOST_MATH_DECLARE_DISTRIBUTIONS(Type, Policy)
-
-

- You can use either of these macros after including any special function or - distribution header. For example: -

-
#include <boost/math/special_functions/gamma.hpp>
-//using boost::math::tgamma;
-// Need not declare using boost::math::tgamma here,
-// because will define tgamma in myspace using macro below.
-
-namespace myspace
-{
-  using namespace boost::math::policies;
-
-  // Define a policy that does not throw on overflow:
-  typedef policy<overflow_error<errno_on_error> > my_policy;
-
-  // Define the special functions in this scope to use the policy:   
-  BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(my_policy)
-}
-
-// Now we can use myspace::tgamma etc.
-// They will automatically use "my_policy":
-//
-double t = myspace::tgamma(30.0); // Will *not* throw on overflow,
-// despite the large value of factorial 30 = 265252859812191058636308480000000
-// unlike default policy boost::math::tgamma;
-
-

- In this example, using BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS results in a - set of thin inline forwarding functions being defined: -

-
template <class T>
-inline T tgamma(T a){ return ::boost::math::tgamma(a, mypolicy()); }
-
-template <class T>
-inline T lgamma(T a) ( return ::boost::math::lgamma(a, mypolicy()); }
-
-

- and so on. Note that while a forwarding function is defined for all the special - functions, however, unless you include the specific header for the special - function you use (or boost/math/special_functions.hpp to include everything), - you will get linker errors from functions that are forward declared, but - not defined. -

-

- We can do the same thing with the distributions, but this time we need to - specify the floating-point type to use: -

-
#include <boost/math/distributions/cauchy.hpp>
-
-namespace myspace
-{ // using namespace boost::math::policies; // May be convenient in myspace.
-
-  // Define a policy called my_policy to use.
-  using boost::math::policies::policy;
-
-// In this case we want all the distribution accessor functions to compile,
-// even if they are mathematically undefined, so
-// make the policy assert_undefined.
-  using boost::math::policies::assert_undefined;
-
-typedef policy<assert_undefined<false> > my_policy;
-
-// Finally apply this policy to type double.
-BOOST_MATH_DECLARE_DISTRIBUTIONS(double, my_policy)
-} // namespace myspace
-
-// Now we can use myspace::cauchy etc, which will use policy
-// myspace::mypolicy:
-//
-// This compiles but throws a domain error exception at runtime.
-// Caution! If you omit the try'n'catch blocks, 
-// it will just silently terminate, giving no clues as to why! 
-// So try'n'catch blocks are very strongly recommended.
-
-void test_cauchy()
-{
-   try
-   {
-      double d = mean(myspace::cauchy());  // Cauchy does not have a mean!
-   }
-   catch(const std::domain_error& e)
-   {
-      cout << e.what() << endl;
-   }
-}
-
-

- In this example the result of BOOST_MATH_DECLARE_DISTRIBUTIONS is to declare - a typedef for each distribution like this: -

-
typedef boost::math::cauchy_distribution<double, my_policy> cauchy;
-tyepdef boost::math::gamma_distribution<double, my_policy> gamma;
-
-

- and so on. The name given to each typedef is the name of the distribution - with the "_distribution" suffix removed. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_ref/pol_ref_ref.html b/boost/libs/math/doc/html/math_toolkit/pol_ref/pol_ref_ref.html deleted file mode 100644 index 82e03d8f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_ref/pol_ref_ref.html +++ /dev/null @@ -1,258 +0,0 @@ - - - -Policy Class Reference - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There's very little to say here, the policy - class is just a rag-bag compile-time container for a collection of policies: -

-
#include <boost/math/policies/policy.hpp>
-
namespace boost{
-namespace math{
-namespace policies
-
-template <class A1 = default_policy,
-          class A2 = default_policy,
-          class A3 = default_policy,
-          class A4 = default_policy,
-          class A5 = default_policy,
-          class A6 = default_policy,
-          class A7 = default_policy,
-          class A8 = default_policy,
-          class A9 = default_policy,
-          class A10 = default_policy,
-          class A11 = default_policy,
-          class A12 = default_policy,
-          class A13 = default_policy>
-struct policy
-{
-public:
-   typedef computed-from-template-arguments domain_error_type;
-   typedef computed-from-template-arguments pole_error_type;
-   typedef computed-from-template-arguments overflow_error_type;
-   typedef computed-from-template-arguments underflow_error_type;
-   typedef computed-from-template-arguments denorm_error_type;
-   typedef computed-from-template-arguments rounding_error_type;
-   typedef computed-from-template-arguments evaluation_error_type;
-   typedef computed-from-template-arguments indeterminate_result_error_type;
-   typedef computed-from-template-arguments precision_type;
-   typedef computed-from-template-arguments promote_float_type;
-   typedef computed-from-template-arguments promote_double_type;
-   typedef computed-from-template-arguments discrete_quantile_type;
-   typedef computed-from-template-arguments assert_undefined_type;
-};
-
-template <...argument list...>
-typename normalise<policy<>, A1>::type make_policy(...argument list..);
-
-template <class Policy,
-          class A1 = default_policy,
-          class A2 = default_policy,
-          class A3 = default_policy,
-          class A4 = default_policy,
-          class A5 = default_policy,
-          class A6 = default_policy,
-          class A7 = default_policy,
-          class A8 = default_policy,
-          class A9 = default_policy,
-          class A10 = default_policy,
-          class A11 = default_policy,
-          class A12 = default_policy,
-          class A13 = default_policy>
-struct normalise
-{
-   typedef computed-from-template-arguments type;
-};
-
-

- The member typedefs of class policy - are intended for internal use but are documented briefly here for the sake - of completeness. -

-
policy<...>::domain_error_type
-
-

- Specifies how domain errors are handled, will be an instance of boost::math::policies::domain_error<> - with the template argument to domain_error - one of the error_policy_type - enumerated values. -

-
policy<...>::pole_error_type
-
-

- Specifies how pole-errors are handled, will be an instance of boost::math::policies::pole_error<> - with the template argument to pole_error - one of the error_policy_type - enumerated values. -

-
policy<...>::overflow_error_type
-
-

- Specifies how overflow errors are handled, will be an instance of boost::math::policies::overflow_error<> - with the template argument to overflow_error - one of the error_policy_type - enumerated values. -

-
policy<...>::underflow_error_type
-
-

- Specifies how underflow errors are handled, will be an instance of boost::math::policies::underflow_error<> - with the template argument to underflow_error - one of the error_policy_type - enumerated values. -

-
policy<...>::denorm_error_type
-
-

- Specifies how denorm errors are handled, will be an instance of boost::math::policies::denorm_error<> - with the template argument to denorm_error - one of the error_policy_type - enumerated values. -

-
policy<...>::rounding_error_type
-
-

- Specifies how rounding errors are handled, will be an instance of boost::math::policies::rounding_error<> - with the template argument to rounding_error - one of the error_policy_type - enumerated values. -

-
policy<...>::evaluation_error_type
-
-

- Specifies how evaluation errors are handled, will be an instance of boost::math::policies::evaluation_error<> - with the template argument to evaluation_error - one of the error_policy_type - enumerated values. -

-
policy<...>::indeterminate_error_type
-
-

- Specifies how indeterminate result errors are handled, will be an instance - of boost::math::policies::indeterminate_result_error<> - with the template argument to indeterminate_result_error - one of the error_policy_type - enumerated values. -

-
policy<...>::precision_type
-
-

- Specifies the internal precision to use in binary digits (uses zero to represent - whatever the default precision is). Will be an instance of boost::math::policies::digits2<N> which - in turn inherits from boost::mpl::int_<N>. -

-
policy<...>::promote_float_type
-
-

- Specifies whether or not to promote float - arguments to double precision - internally. Will be an instance of boost::math::policies::promote_float<B> - which in turn inherits from boost::mpl::bool_<B>. -

-
policy<...>::promote_double_type
-
-

- Specifies whether or not to promote double - arguments to long double - precision internally. Will be an instance of boost::math::policies::promote_float<B> - which in turn inherits from boost::mpl::bool_<B>. -

-
policy<...>::discrete_quantile_type
-
-

- Specifies how discrete quantiles are evaluated, will be an instance of boost::math::policies::discrete_quantile<> - instantiated with one of the discrete_quantile_policy_type - enumerated type. -

-
policy<...>::assert_undefined_type
-
-

- Specifies whether mathematically-undefined properties are asserted as compile-time - errors, or treated as runtime errors instead. Will be an instance of boost::math::policies::assert_undefined<B> which - in turn inherits from boost::math::mpl::bool_<B>. -

-
template <...argument list...>
-typename normalise<policy<>, A1>::type make_policy(...argument list..);
-
-

- make_policy is a helper function - that converts a list of policies into a normalised policy - class. -

-
template <class Policy,
-          class A1 = default_policy,
-          class A2 = default_policy,
-          class A3 = default_policy,
-          class A4 = default_policy,
-          class A5 = default_policy,
-          class A6 = default_policy,
-          class A7 = default_policy,
-          class A8 = default_policy,
-          class A9 = default_policy,
-          class A10 = default_policy,
-          class A11 = default_policy,
-          class A12 = default_policy,
-          class A13 = default_policy>
-struct normalise
-{
-   typedef computed-from-template-arguments type;
-};
-
-

- The normalise class template - converts one instantiation of the policy - class into a normalised form. This is used internally to reduce code bloat: - so that instantiating a special function on policy<A,B> or - policy<B,A> actually both generate the same code - internally. -

-

- Further more, normalise can - be used to combine a policy with one or more policies: for example many of - the special functions will use this to set policies which they don't make - use of to their default values, before forwarding to the actual implementation. - In this way code bloat is reduced, since the actual implementation depends - only on the policy types that they actually use. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_ref/policy_defaults.html b/boost/libs/math/doc/html/math_toolkit/pol_ref/policy_defaults.html deleted file mode 100644 index 0fdecbb3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_ref/policy_defaults.html +++ /dev/null @@ -1,258 +0,0 @@ - - - -Using Macros to Change the Policy Defaults - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- You can use the various macros below to change any (or all) of the policies. -

-

- You can make a local change by placing a macro definition before - a function or distribution #include. -

-
- - - - - -
[Caution]Caution

- There is a danger of One-Definition-Rule violations if you add ad-hoc macros - to more than one source files: these must be set the same in every translation unit. -

-
- - - - - -
[Caution]Caution

- If you place it after the #include it will have no effect, (and it will - affect only any other following #includes). This is probably not what you - intend! -

-

- If you want to alter the defaults for any or all of the policies for all functions and distributions, installation-wide, - then you can do so by defining various macros in boost/math/tools/user.hpp. -

-
- - BOOST_MATH_DOMAIN_ERROR_POLICY -
-

- Defines what happens when a domain error occurs, if not defined then defaults - to throw_on_error, but can - be set to any of the enumerated actions for error handing: throw_on_error, errno_on_error, - ignore_error or user_error. -

-
- - BOOST_MATH_POLE_ERROR_POLICY -
-

- Defines what happens when a pole error occurs, if not defined then defaults - to throw_on_error, but can - be set to any of the enumerated actions for error handing: throw_on_error, errno_on_error, - ignore_error or user_error. -

-
- - BOOST_MATH_OVERFLOW_ERROR_POLICY -
-

- Defines what happens when an overflow error occurs, if not defined then defaults - to throw_on_error, but can - be set to any of the enumerated actions for error handing: throw_on_error, errno_on_error, - ignore_error or user_error. -

-
- - BOOST_MATH_ROUNDING_ERROR_POLICY -
-

- Defines what happens when a rounding error occurs, if not defined then defaults - to throw_on_error, but can - be set to any of the enumerated actions for error handing: throw_on_error, errno_on_error, - ignore_error or user_error. -

-
- - BOOST_MATH_EVALUATION_ERROR_POLICY -
-

- Defines what happens when an internal evaluation error occurs, if not defined - then defaults to throw_on_error, - but can be set to any of the enumerated actions for error handing: throw_on_error, errno_on_error, - ignore_error or user_error. -

-
- - BOOST_MATH_UNDERFLOW_ERROR_POLICY -
-

- Defines what happens when an overflow error occurs, if not defined then defaults - to ignore_error, but can - be set to any of the enumerated actions for error handing: throw_on_error, errno_on_error, - ignore_error or user_error. -

-
- - BOOST_MATH_DENORM_ERROR_POLICY -
-

- Defines what happens when a denormalisation error occurs, if not defined - then defaults to ignore_error, - but can be set to any of the enumerated actions for error handing: throw_on_error, errno_on_error, - ignore_error or user_error. -

-
- - BOOST_MATH_INDETERMINATE_RESULT_ERROR_POLICY -
-

- Defines what happens when the result is indeterminate, but where there is - none the less a convention for the result. If not defined then defaults to - ignore_error, but can be - set to any of the enumerated actions for error handing: throw_on_error, - errno_on_error, ignore_error or user_error. -

-
- - BOOST_MATH_DIGITS10_POLICY -
-

- Defines how many decimal digits to use in internal computations: defaults - to 0 - meaning use all available - digits - but can be set to some other decimal value. Since setting this is - likely to have a substantial impact on accuracy, it's not generally recommended - that you change this from the default. -

-
- - BOOST_MATH_PROMOTE_FLOAT_POLICY -
-

- Determines whether float types - get promoted to double internally - to ensure maximum precision in the result, defaults to true, - but can be set to false to turn - promotion of float's off. -

-
- - BOOST_MATH_PROMOTE_DOUBLE_POLICY -
-

- Determines whether double types - get promoted to long double - internally to ensure maximum precision in the result, defaults to true, but can be set to false - to turn promotion of double's - off. -

-
- - BOOST_MATH_DISCRETE_QUANTILE_POLICY -
-

- Determines how discrete quantiles return their results: either as an integer, - or as a real value, can be set to one of the enumerated values: real, integer_round_outwards, - integer_round_inwards, integer_round_down, integer_round_up, - integer_round_nearest. Defaults - to integer_round_outwards. -

-
- - BOOST_MATH_ASSERT_UNDEFINED_POLICY -
-

- Determines whether functions that are mathematically undefined for a specific - distribution compile or raise a static (i.e. compile-time) assertion. Defaults - to true: meaning that any mathematically - undefined function will not compile. When set to false - then the function will compile but return the result of a domain error: this - can be useful for some generic code, that needs to work with all distributions - and determine at runtime whether or not a particular property is well defined. -

-
- - BOOST_MATH_MAX_SERIES_ITERATION_POLICY -
-

- Determines how many series iterations a special function is permitted to - perform before it gives up and returns an evaluation_error: - Defaults to 1000000. -

-
- - BOOST_MATH_MAX_ROOT_ITERATION_POLICY -
-

- Determines how many root-finding iterations a special function is permitted - to perform before it gives up and returns an evaluation_error: - Defaults to 200. -

-
- - Example -
-

- Suppose we want overflow errors to set ::errno and return an infinity, discrete - quantiles to return a real-valued result (rather than round to integer), - and for mathematically undefined functions to compile, but return a domain - error. Then we could add the following to boost/math/tools/user.hpp: -

-
#define BOOST_MATH_OVERFLOW_ERROR_POLICY errno_on_error
-#define BOOST_MATH_DISCRETE_QUANTILE_POLICY real
-#define BOOST_MATH_ASSERT_UNDEFINED_POLICY false
-
-

- or we could place these definitions before -

-
#include <boost/math/distributions/normal.hpp>
-  using boost::math::normal_distribution;
-
-

- in a source .cpp file. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_ref/precision_pol.html b/boost/libs/math/doc/html/math_toolkit/pol_ref/precision_pol.html deleted file mode 100644 index 45143151..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_ref/precision_pol.html +++ /dev/null @@ -1,110 +0,0 @@ - - - -Precision Policies - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There are two equivalent policies that effect the working precision - used to calculate results, these policies both default to 0 - meaning calculate - to the maximum precision available in the type being used - but can be set - to other values to cause lower levels of precision to be used. One might - want to trade precision for evaluation speed. -

-
namespace boost{ namespace math{ namespace policies{
-
-template <int N>
-digits10;
-
-template <int N>
-digits2;
-
-}}} // namespaces
-
-

- As you would expect, digits10 specifies the number of - decimal digits to use, and digits2 the number of binary - digits. Internally, whichever is used, the precision is always converted - to binary digits. -

-

- These policies are specified at compile-time, because many of the special - functions use compile-time-dispatch to select which approximation to use - based on the precision requested and the numeric type being used. -

-

- For example we could calculate tgamma - to approximately 5 decimal digits using: -

-
#include <boost/math/special_functions/gamma.hpp>
-using boost::math::tgamma;
-using boost::math::policies::policy;
-using boost::math::policies::digits10;
-
-typedef policy<digits10<5> > my_pol_5; // Define a new, non-default, policy
-// to calculate tgamma to accuracy of approximately 5 decimal digits.
-
-

- Or again using helper function make_policy: -

-
#include <boost/math/special_functions/gamma.hpp>
-using boost::math::tgamma;
-
-using namespace boost::math::policies;
-
-double t = tgamma(12, policy<digits10<5> >());  // Concise make_policy.
-
-

- And for a quantile of a distribution to approximately 25-bit precision: -

-
#include <boost/math/distributions/normal.hpp>
-using boost::math::normal_distribution;
-
-using namespace boost::math::policies;
-
-const int bits = 25; // approximate precision.
-
-double q = quantile(
-      normal_distribution<double, policy<digits2<bits> > >(),
-      0.05); // 5% quantile.
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_tutorial.html b/boost/libs/math/doc/html/math_toolkit/pol_tutorial.html deleted file mode 100644 index b89f0d61..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_tutorial.html +++ /dev/null @@ -1,66 +0,0 @@ - - - -Policy Tutorial - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/ad_hoc_dist_policies.html b/boost/libs/math/doc/html/math_toolkit/pol_tutorial/ad_hoc_dist_policies.html deleted file mode 100644 index 8ad4639a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/ad_hoc_dist_policies.html +++ /dev/null @@ -1,105 +0,0 @@ - - - -Setting Policies for Distributions on an Ad Hoc Basis - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- All of the statistical distributions in this library are class templates - that accept two template parameters: real type (float, double ...) and policy - (how to handle exceptional events), both with sensible defaults, for example: -

-
namespace boost{ namespace math{
-
-template <class RealType = double, class Policy = policies::policy<> >
-class fisher_f_distribution;
-
-typedef fisher_f_distribution<> fisher_f;
-
-}}
-
-

- This policy gets used by all the accessor functions that accept a distribution - as an argument, and forwarded to all the functions called by these. So if - you use the shorthand-typedef for the distribution, then you get double precision arithmetic and all the default - policies. -

-

- However, say for example we wanted to evaluate the quantile of the binomial - distribution at float precision, without internal promotion to double, and - with the result rounded to the nearest integer, then - here's how it can be done: -

-
#include <boost/math/distributions/binomial.hpp>
-using boost::math::binomial_distribution;
-
-// Begin by defining a policy type, that gives the behaviour we want:
-
-//using namespace boost::math::policies; or explicitly
-using boost::math::policies::policy;
-
-using boost::math::policies::promote_float;
-using boost::math::policies::discrete_quantile;
-using boost::math::policies::integer_round_nearest;
-
-typedef policy<
-   promote_float<false>, // Do not promote to double.
-   discrete_quantile<integer_round_nearest> // Round result to nearest integer.
-> mypolicy;
-//
-// Then define a new distribution that uses it:
-typedef boost::math::binomial_distribution<float, mypolicy> mybinom;
-
-//  And now use it to get the quantile:
-
-int main()
-{
-   cout << "quantile(mybinom(200, 0.25), 0.05) is: " <<
-      quantile(mybinom(200, 0.25), 0.05) << endl;
-}
-
-

- Which outputs: -

-
quantile is: 40
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/ad_hoc_sf_policies.html b/boost/libs/math/doc/html/math_toolkit/pol_tutorial/ad_hoc_sf_policies.html deleted file mode 100644 index 80cc9be9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/ad_hoc_sf_policies.html +++ /dev/null @@ -1,174 +0,0 @@ - - - -Changing the Policy on an Ad Hoc Basis for the Special Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- All of the special functions in this library come in two overloaded forms, - one with a final "policy" parameter, and one without. For example: -

-
namespace boost{ namespace math{
-
-template <class RealType, class Policy>
-RealType tgamma(RealType, const Policy&);
-
-template <class RealType>
-RealType tgamma(RealType);
-
-}} // namespaces
-
-

- Normally, the second version is just a forwarding wrapper to the first like - this: -

-
template <class RealType>
-inline RealType tgamma(RealType x)
-{
-   return tgamma(x, policies::policy<>());
-}
-
-

- So calling a special function with a specific policy is just a matter of - defining the policy type to use and passing it as the final parameter. For - example, suppose we want tgamma - to behave in a C-compatible fashion and set ::errno when an error occurs, and never throw - an exception: -

-
#include <boost/math/special_functions/gamma.hpp>
-using boost::math::tgamma;
-
-// Define the policy to use:
-using namespace boost::math::policies; // may be convenient, or
-
-using boost::math::policies::policy;
-// Types of error whose action can be altered by policies:.
-using boost::math::policies::evaluation_error;
-using boost::math::policies::domain_error;
-using boost::math::policies::overflow_error;
-using boost::math::policies::domain_error;
-using boost::math::policies::pole_error;
-// Actions on error (in enum error_policy_type):
-using boost::math::policies::errno_on_error;
-using boost::math::policies::ignore_error;
-using boost::math::policies::throw_on_error;
-using boost::math::policies::user_error;
-
-typedef policy<
-   domain_error<errno_on_error>,
-   pole_error<errno_on_error>,
-   overflow_error<errno_on_error>,
-   evaluation_error<errno_on_error>
-> c_policy;
-//
-// Now use the policy when calling tgamma:
-
-// http://msdn.microsoft.com/en-us/library/t3ayayh1.aspx 
-// Microsoft errno declared in STDLIB.H as "extern int errno;" 
-
-int main()
-{
-   errno = 0; // Reset.
-   cout << "Result of tgamma(30000) is: "
-      << tgamma(30000, c_policy()) << endl; // Too big parameter
-   cout << "errno = " << errno << endl; // errno 34 Numerical result out of range.
-   cout << "Result of tgamma(-10) is: "
-      << boost::math::tgamma(-10, c_policy()) << endl; // Negative parameter.
-   cout << "errno = " << errno << endl; // error 33 Numerical argument out of domain.
-} // int main()
-
-

- which outputs: -

-
Result of tgamma(30000) is: 1.#INF
-errno = 34
-Result of tgamma(-10) is: 1.#QNAN
-errno = 33
-
-

- Alternatively, for ad hoc use, we can use the make_policy - helper function to create a policy for us: this usage is more verbose, so - is probably only preferred when a policy is going to be used once only: -

-
#include <boost/math/special_functions/gamma.hpp>
-using boost::math::tgamma;
-
-int main()
-{
-   // using namespace boost::math::policies; // or
-   using boost::math::policies::errno_on_error;
-   using boost::math::policies::make_policy;
-   using boost::math::policies::pole_error;
-   using boost::math::policies::domain_error;
-   using boost::math::policies::overflow_error;
-   using boost::math::policies::evaluation_error;
-
-   errno = 0;
-   std::cout << "Result of tgamma(30000) is: "
-      << boost::math::tgamma(
-         30000,
-         make_policy(
-            domain_error<errno_on_error>(),
-            pole_error<errno_on_error>(),
-            overflow_error<errno_on_error>(),
-            evaluation_error<errno_on_error>()
-         )
-      ) << std::endl;
-   // Check errno was set:
-   std::cout << "errno = " << errno << std::endl;
-   // and again with evaluation at a pole:
-   std::cout << "Result of tgamma(-10) is: "
-      << boost::math::tgamma(
-         -10,
-         make_policy(
-            domain_error<errno_on_error>(),
-            pole_error<errno_on_error>(),
-            overflow_error<errno_on_error>(),
-            evaluation_error<errno_on_error>()
-         )
-      ) << std::endl;
-   // Check errno was set:
-   std::cout << "errno = " << errno << std::endl;
-}
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/changing_policy_defaults.html b/boost/libs/math/doc/html/math_toolkit/pol_tutorial/changing_policy_defaults.html deleted file mode 100644 index 6ecabc11..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/changing_policy_defaults.html +++ /dev/null @@ -1,258 +0,0 @@ - - - -Changing the Policy Defaults - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The default policies used by the library are changed by the usual configuration - macro method. -

-

- For example, passing -DBOOST_MATH_DOMAIN_ERROR_POLICY=errno_on_error - to your compiler will cause domain errors to set ::errno and return a NaN - rather than the usual default behaviour of throwing a std::domain_error - exception. -

-
- - - - - -
[Tip]Tip
-

- For Microsoft Visual Studio,you can add to the Project Property Page, C/C++, - Preprocessor, Preprocessor definitions like: -

-
BOOST_MATH_ASSERT_UNDEFINED_POLICY=0
-BOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error
-

- This may be helpful to avoid complications with pre-compiled headers that - may mean that the equivalent definitions in source code: -

-
#define BOOST_MATH_ASSERT_UNDEFINED_POLICY false
-#define BOOST_MATH_OVERFLOW_ERROR_POLICY errno_on_error
-

- may be ignored. -

-

- The compiler command line shows: -

-
/D "BOOST_MATH_ASSERT_UNDEFINED_POLICY=0"
-/D "BOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error"
-
-

- There is however a very important caveat to this: -

-
- - - - - -
[Important]Important
-

- Default policies changed by setting configuration - macros must be changed uniformly in every translation unit in the program. -

-

- Failure to follow this rule may result in violations of the "One Definition - Rule (ODR)" and result in unpredictable program behaviour. -

-
-

- That means there are only two safe ways to use these macros: -

-
    -
  • - Edit them in boost/math/tools/user.hpp, - so that the defaults are set on an installation-wide basis. Unfortunately - this may not be convenient if you are using a pre-installed Boost distribution - (on Linux for example). -
  • -
  • - Set the defines in your project's Makefile or build environment, so that - they are set uniformly across all translation units. -
  • -
-

- What you should not do is: -

-
  • - Set the defines in the source file using #define - as doing so almost certainly will break your program, unless you're absolutely - certain that the program is restricted to a single translation unit. -
-

- And, yes, you will find examples in our test programs where we break this - rule: but only because we know there will always be a single translation - unit only: don't say that you weren't warned! -

-

- The following example demonstrates the effect of setting the macro BOOST_MATH_DOMAIN_ERROR_POLICY - when an invalid argument is encountered. For the purposes of this example, - we'll pass a negative degrees of freedom parameter to the student's t distribution. -

-

- Since we know that this is a single file program we could just add: -

-
#define BOOST_MATH_DOMAIN_ERROR_POLICY ignore_error
-
-

- to the top of the source file to change the default policy to one that simply - returns a NaN when a domain error occurs. Alternatively we could use: -

-
#define BOOST_MATH_DOMAIN_ERROR_POLICY errno_on_error
-
-

- To ensure the ::errno - is set when a domain error occurs as well as returning a NaN. -

-

- This is safe provided the program consists of a single translation unit - and we place the define before - any #includes. Note that should we add the define after the includes then - it will have no effect! A warning such as: -

-
warning C4005: 'BOOST_MATH_OVERFLOW_ERROR_POLICY' : macro redefinition
-

- is a certain sign that it will not have the desired - effect. -

-

- We'll begin our sample program with the needed includes: -

-
   #define BOOST_MATH_DOMAIN_ERROR_POLICY ignore_error
-
-// Boost
-#include <boost/math/distributions/students_t.hpp>
-   using boost::math::students_t;  // Probability of students_t(df, t).
-
-// std
-#include <iostream>
-   using std::cout;
-   using std::endl;
-
-#include <stdexcept>
-
-
-#include <cstddef>
-   // using ::errno
-
-

- Next we'll define the program's main() to call the student's t distribution - with an invalid degrees of freedom parameter, the program is set up to handle - either an exception or a NaN: -

-
int main()
-{
-   cout << "Example error handling using Student's t function. " << endl;
-   cout << "BOOST_MATH_DOMAIN_ERROR_POLICY is set to: "
-      << BOOST_STRINGIZE(BOOST_MATH_DOMAIN_ERROR_POLICY) << endl;
-
-   double degrees_of_freedom = -1; // A bad argument!
-   double t = 10;
-
-   try
-   {
-      errno = 0; // Clear/reset.
-      students_t dist(degrees_of_freedom); // exception is thrown here if enabled.
-      double p = cdf(dist, t);
-      // Test for error reported by other means:
-      if((boost::math::isnan)(p))
-      {
-         cout << "cdf returned a NaN!" << endl;
-         if (errno != 0)
-         { // So errno has been set.
-           cout << "errno is set to: " << errno << endl;
-         }
-      }
-      else
-         cout << "Probability of Student's t is " << p << endl;
-   }
-   catch(const std::exception& e)
-   {
-      std::cout <<
-         "\n""Message from thrown exception was:\n   " << e.what() << std::endl;
-   }
-   return 0;
-} // int main()
-
-

- Here's what the program output looks like with a default build (one that - does throw exceptions): -

-
Example error handling using Student's t function.
-BOOST_MATH_DOMAIN_ERROR_POLICY is set to: throw_on_error
-
-Message from thrown exception was:
-   Error in function boost::math::students_t_distribution<double>::students_t_distribution:
-   Degrees of freedom argument is -1, but must be > 0 !
-
-

- Alternatively let's build with: -

-
#define BOOST_MATH_DOMAIN_ERROR_POLICY ignore_error
-
-

- Now the program output is: -

-
Example error handling using Student's t function.
-BOOST_MATH_DOMAIN_ERROR_POLICY is set to: ignore_error
-cdf returned a NaN!
-
-

- And finally let's build with: -

-
#define BOOST_MATH_DOMAIN_ERROR_POLICY errno_on_error
-
-

- Which gives the output show errno: -

-
Example error handling using Student's t function.
-BOOST_MATH_DOMAIN_ERROR_POLICY is set to: errno_on_error
-cdf returned a NaN!
-errno is set to: 33
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/namespace_policies.html b/boost/libs/math/doc/html/math_toolkit/pol_tutorial/namespace_policies.html deleted file mode 100644 index c09c16b8..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/namespace_policies.html +++ /dev/null @@ -1,366 +0,0 @@ - - - -Setting Policies at Namespace or Translation Unit Scope - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Sometimes what you want to do is just change a set of policies within the - current scope: the one thing you should not do in this - situation is use the configuration macros, as this can lead to - "One Definition Rule" violations. Instead this library provides - a pair of macros especially for this purpose. -

-

- Let's consider the special functions first: we can declare a set of forwarding - functions that all use a specific policy using the macro BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(Policy). - This macro should be used either inside a unique namespace set aside for - the purpose (for example, a C namespace for a C-style policy), or an unnamed - namespace if you just want the functions visible in global scope for the - current file only. -

-

- Suppose we want C::foo() to - behave in a C-compatible way and set ::errno on error rather than throwing any - exceptions. -

-

- We'll begin by including the needed header for our function: -

-
#include <boost/math/special_functions.hpp>
-//using boost::math::tgamma; // Not needed because using C::tgamma.
-
-

- Open up the "C" namespace that we'll use for our functions, and - define the policy type we want: in this case a C-style one that sets ::errno - and returns a standard value, rather than throwing exceptions. -

-

- Any policies we don't specify here will inherit the defaults. -

-
namespace C
-{ // To hold our C-style policy.
-  //using namespace boost::math::policies; or explicitly:
-  using boost::math::policies::policy;
-
-  using boost::math::policies::domain_error;
-  using boost::math::policies::pole_error;
-  using boost::math::policies::overflow_error;
-  using boost::math::policies::evaluation_error;
-  using boost::math::policies::errno_on_error;
-
-  typedef policy<
-     domain_error<errno_on_error>,
-     pole_error<errno_on_error>,
-     overflow_error<errno_on_error>,
-     evaluation_error<errno_on_error>
-  > c_policy;
-
-

- All we need do now is invoke the BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS macro - passing our policy type c_policy as the single argument: -

-
BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(c_policy)
-
-} // close namespace C
-
-

- We now have a set of forwarding functions defined in namespace C that all - look something like this: -

-
template <class RealType>
-inline typename boost::math::tools::promote_args<RT>::type
-   tgamma(RT z)
-{
-   return boost::math::tgamma(z, c_policy());
-}
-
-

- So that when we call C::tgamma(z), we - really end up calling boost::math::tgamma(z, - C::c_policy()): -

-
int main()
-{
-   errno = 0;
-   cout << "Result of tgamma(30000) is: "
-      << C::tgamma(30000) << endl; // Note using C::tgamma
-   cout << "errno = " << errno << endl; // errno = 34
-   cout << "Result of tgamma(-10) is: "
-      << C::tgamma(-10) << endl;
-   cout << "errno = " << errno << endl; // errno = 33, overwriting previous value of 34.
-}
-
-

- Which outputs: -

-
Result of C::tgamma(30000) is: 1.#INF
-errno = 34
-Result of C::tgamma(-10) is: 1.#QNAN
-errno = 33
-
-

- This mechanism is particularly useful when we want to define a project-wide - policy, and don't want to modify the Boost source, or to set project wide - build macros (possibly fragile and easy to forget). -

-

- The same mechanism works well at file scope as well, by using an unnamed - namespace, we can ensure that these declarations don't conflict with any - alternate policies present in other translation units: -

-
#include <boost/math/special_functions.hpp>
-// using boost::math::tgamma; // Would create an ambiguity between
-// 'double boost::math::tgamma<int>(T)' and
-// 'double 'anonymous-namespace'::tgamma<int>(RT)'.
-
-namespace mymath
-{ // unnamed
-
-using namespace boost::math::policies;
-
-typedef policy<
-   domain_error<errno_on_error>,
-   pole_error<errno_on_error>,
-   overflow_error<errno_on_error>,
-   evaluation_error<errno_on_error>
-> c_policy;
-
-BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(c_policy)
-
-

- So that when we call mymath::tgamma(z), - we really end up calling boost::math::tgamma(z, - anonymous-namespace::c_policy()). -

-
} // close unnamed namespace
-
-int main()
-{
-   errno = 0;
-   cout << "Result of tgamma(30000) is: "
-      << mymath::tgamma(30000) << endl;
-      // tgamma in unnamed namespace in this translation unit (file) only.
-   cout << "errno = " << errno << endl;
-   cout << "Result of tgamma(-10) is: "
-      << mymath::tgamma(-10) << endl;
-   cout << "errno = " << errno << endl;
-   // Default tgamma policy would throw an exception, and abort.
-}
-
-

- Handling policies for the statistical distributions is very similar except - that now the macro BOOST_MATH_DECLARE_DISTRIBUTIONS accepts two parameters: - the floating point type to use, and the policy type to apply. For example: -

-
BOOST_MATH_DECLARE_DISTRIBUTIONS(double, mypolicy)
-
-

- Results a set of typedefs being defined like this: -

-
typedef boost::math::normal_distribution<double, mypolicy> normal;
-
-

- The name of each typedef is the same as the name of the distribution class - template, but without the "_distribution" suffix. -

-

- Suppose we want a set of distributions to behave as follows: -

-
    -
  • - Return infinity on overflow, rather than throwing an exception. -
  • -
  • - Don't perform any promotion from double to long double internally. -
  • -
  • - Return the closest integer result from the quantiles of discrete distributions. -
  • -
-

- We'll begin by including the needed header for all the distributions: -

-
#include <boost/math/distributions.hpp>
-
-

- Open up an appropriate namespace, calling it my_distributions, - for our distributions, and define the policy type we want. Any policies we - don't specify here will inherit the defaults: -

-
namespace my_distributions
-{
-  using namespace boost::math::policies;
-  // using boost::math::policies::errno_on_error; // etc.
-
-  typedef policy<
-     // return infinity and set errno rather than throw:
-     overflow_error<errno_on_error>,
-     // Don't promote double -> long double internally:
-     promote_double<false>,
-     // Return the closest integer result for discrete quantiles:
-     discrete_quantile<integer_round_nearest>
-  > my_policy;
-
-

- All we need do now is invoke the BOOST_MATH_DECLARE_DISTRIBUTIONS macro passing - the floating point type double - and policy types my_policy - as arguments: -

-
BOOST_MATH_DECLARE_DISTRIBUTIONS(double, my_policy)
-
-} // close namespace my_namespace
-
-

- We now have a set of typedefs defined in namespace my_distributions that - all look something like this: -

-
typedef boost::math::normal_distribution<double, my_policy> normal;
-typedef boost::math::cauchy_distribution<double, my_policy> cauchy;
-typedef boost::math::gamma_distribution<double, my_policy> gamma;
-// etc
-
-

- So that when we use my_distributions::normal we really end up using boost::math::normal_distribution<double, my_policy>: -

-
int main()
-{
-   // Construct distribution with something we know will overflow
-  // (using double rather than if promoted to long double):
-   my_distributions::normal norm(10, 2);
-
-   errno = 0;
-   cout << "Result of quantile(norm, 0) is: "
-      << quantile(norm, 0) << endl; // -infinity.
-   cout << "errno = " << errno << endl;
-   errno = 0;
-   cout << "Result of quantile(norm, 1) is: "
-      << quantile(norm, 1) << endl; // +infinity.
-   cout << "errno = " << errno << endl;
-
-   // Now try a discrete distribution.
-   my_distributions::binomial binom(20, 0.25);
-   cout << "Result of quantile(binom, 0.05) is: "
-      << quantile(binom, 0.05) << endl; // To check we get integer results.
-   cout << "Result of quantile(complement(binom, 0.05)) is: "
-      << quantile(complement(binom, 0.05)) << endl;
-}
-
-

- Which outputs: -

-
Result of quantile(norm, 0) is: -1.#INF
-errno = 34
-Result of quantile(norm, 1) is: 1.#INF
-errno = 34
-Result of quantile(binom, 0.05) is: 1
-Result of quantile(complement(binom, 0.05)) is: 8
-
-

- This mechanism is particularly useful when we want to define a project-wide - policy, and don't want to modify the Boost source or set project wide build - macros (possibly fragile and easy to forget). -

-
- - - - - -
[Note]Note

- There is an important limitation to note: you can *not use the macros BOOST_MATH_DECLARE_DISTRIBUTIONS - and BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS in the same namespace*, - as doing so creates ambiguities between functions and distributions of - the same name. -

-

- As before, the same mechanism works well at file scope as well: by using - an unnamed namespace, we can ensure that these declarations don't conflict - with any alternate policies present in other translation units: -

-
#include <boost/math/distributions.hpp> // All distributions.
-// using boost::math::normal; // Would create an ambguity between
-// boost::math::normal_distribution<RealType> boost::math::normal and
-// 'anonymous-namespace'::normal'.
-
-namespace
-{ // anonymous or unnnamed (rather than named as in policy_eg_6.cpp).
-
-  using namespace boost::math::policies;
-   // using boost::math::policies::errno_on_error; // etc.
-  typedef policy<
-     // return infinity and set errno rather than throw:
-     overflow_error<errno_on_error>,
-     // Don't promote double -> long double internally:
-     promote_double<false>,
-     // Return the closest integer result for discrete quantiles:
-     discrete_quantile<integer_round_nearest>
-  > my_policy;
-
-  BOOST_MATH_DECLARE_DISTRIBUTIONS(double, my_policy)
-
-} // close namespace my_namespace
-
-int main()
-{
-   // Construct distribution with something we know will overflow.
-   normal norm(10, 2); // using 'anonymous-namespace'::normal
-   errno = 0;
-   cout << "Result of quantile(norm, 0) is: "
-      << quantile(norm, 0) << endl;
-   cout << "errno = " << errno << endl;
-   errno = 0;
-   cout << "Result of quantile(norm, 1) is: "
-      << quantile(norm, 1) << endl;
-   cout << "errno = " << errno << endl;
-   //
-   // Now try a discrete distribution:
-   binomial binom(20, 0.25);
-   cout << "Result of quantile(binom, 0.05) is: "
-      << quantile(binom, 0.05) << endl;
-   cout << "Result of quantile(complement(binom, 0.05)) is: "
-      << quantile(complement(binom, 0.05)) << endl;
-}
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/policy_tut_defaults.html b/boost/libs/math/doc/html/math_toolkit/pol_tutorial/policy_tut_defaults.html deleted file mode 100644 index cce60ed5..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/policy_tut_defaults.html +++ /dev/null @@ -1,141 +0,0 @@ - - - -Policies Have Sensible Defaults - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Most of the time you can just ignore the policy framework. -

-

- *The defaults for the various policies are as follows, if these - work OK for you then you can stop reading now! -

-
-

-
-
Domain Error
-

- Throws a std::domain_error exception. -

-
Pole Error
-

- Occurs when a function is evaluated at a pole: throws a std::domain_error exception. -

-
Overflow Error
-

- Throws a std::overflow_error exception. -

-
Underflow
-

- Ignores the underflow, and returns zero. -

-
Denormalised Result
-

- Ignores the fact that the result is denormalised, and returns it. -

-
Rounding Error
-

- Throws a boost::math::rounding_error exception. -

-
Internal Evaluation Error
-

- Throws a boost::math::evaluation_error exception. -

-
Indeterminate Result Error
-

- Returns a result that depends on the function where the error occurred. -

-
Promotion of float to double
-

- Does occur by default - gives full float precision results. -

-
Promotion of double to long double
-

- Does occur by default if long double offers more precision than double. -

-
Precision of Approximation Used
-

- By default uses an approximation that will result in the lowest level - of error for the type of the result. -

-
Behaviour of Discrete Quantiles
-
-

- The quantile function will by default return an integer result that - has been rounded outwards. That is to say lower - quantiles (where the probability is less than 0.5) are rounded downward, - and upper quantiles (where the probability is greater than 0.5) are - rounded upwards. This behaviour ensures that if an X% quantile is requested, - then at least the requested coverage will be present - in the central region, and no more than the requested - coverage will be present in the tails. -

-

- This behaviour can be changed so that the quantile functions are rounded - differently, or even return a real-valued result using Policies. - It is strongly recommended that you read the tutorial Understanding - Quantiles of Discrete Distributions before using the quantile - function on a discrete distribution. The reference - docs describe how to change the rounding policy for these distributions. -

-
-
-
-

- What's more, if you define your own policy type, then it automatically inherits - the defaults for any policies not explicitly set, so given: -

-
using namespace boost::math::policies;
-//
-// Define a policy that sets ::errno on overflow, and does
-// not promote double to long double internally:
-//
-typedef policy<domain_error<errno_on_error>, promote_double<false> > mypolicy;
-
-

- then mypolicy defines a policy - where only the overflow error handling and double-promotion - policies differ from the defaults. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/policy_usage.html b/boost/libs/math/doc/html/math_toolkit/pol_tutorial/policy_usage.html deleted file mode 100644 index 3925a12b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/policy_usage.html +++ /dev/null @@ -1,73 +0,0 @@ - - - -So How are Policies Used Anyway? - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The details follow later, but basically policies can be set by either: -

-
    -
  • - Defining some macros that change the default behaviour: this - is the recommended method for setting installation-wide policies. -
  • -
  • - By instantiating a distribution object with an explicit policy: this - is mainly reserved for ad hoc policy changes. -
  • -
  • - By passing a policy to a special function as an optional final argument: - this is mainly reserved for ad hoc policy changes. -
  • -
  • - By using some helper macros to define a set of functions or distributions - in the current namespace that use a specific policy: this - is the recommended method for setting policies on a project- or translation-unit-wide - basis. -
  • -
-

- The following sections introduce these methods in more detail. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/understand_dis_quant.html b/boost/libs/math/doc/html/math_toolkit/pol_tutorial/understand_dis_quant.html deleted file mode 100644 index cd7407c3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/understand_dis_quant.html +++ /dev/null @@ -1,417 +0,0 @@ - - - -Understanding Quantiles of Discrete Distributions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Discrete distributions present us with a problem when calculating the quantile: - we are starting from a continuous real-valued variable - the probability - - but the result (the value of the random variable) should really be discrete. -

-

- Consider for example a Binomial distribution, with a sample size of 50, and - a success fraction of 0.5. There are a variety of ways we can plot a discrete - distribution, but if we plot the PDF as a step-function then it looks something - like this: -

-

- -

-

- Now lets suppose that the user asks for a the quantile that corresponds to - a probability of 0.05, if we zoom in on the CDF for that region here's what - we see: -

-

- -

-

- As can be seen there is no random variable that corresponds to a probability - of exactly 0.05, so we're left with two choices as shown in the figure: -

-
    -
  • - We could round the result down to 18. -
  • -
  • - We could round the result up to 19. -
  • -
-

- In fact there's actually a third choice as well: we could "pretend" - that the distribution was continuous and return a real valued result: in - this case we would calculate a result of approximately 18.701 (this accurately - reflects the fact that the result is nearer to 19 than 18). -

-

- By using policies we can offer any of the above as options, but that still - leaves the question: What is actually the right thing to do? -

-

- And in particular: What policy should we use by default? -

-

- In coming to an answer we should realise that: -

-
    -
  • - Calculating an integer result is often much faster than calculating a - real-valued result: in fact in our tests it was up to 20 times faster. -
  • -
  • - Normally people calculate quantiles so that they can perform a test of - some kind: "If the random variable is less than N then - we can reject our null-hypothesis with 90% confidence." -
  • -
-

- So there is a genuine benefit to calculating an integer result as well as - it being "the right thing to do" from a philosophical point of - view. What's more if someone asks for a quantile at 0.05, then we can normally - assume that they are asking for at least - 95% of the probability to the right of the value chosen, and no - more than 5% of the probability to the left of the value chosen. -

-

- In the above binomial example we would therefore round the result down to - 18. -

-

- The converse applies to upper-quantiles: If the probability is greater than - 0.5 we would want to round the quantile up, so that at - least the requested probability is to the left of the value returned, - and no more than 1 - the requested probability - is to the right of the value returned. -

-

- Likewise for two-sided intervals, we would round lower quantiles down, and - upper quantiles up. This ensures that we have at least the requested - probability in the central region and no more than 1 - minus the requested probability in the tail areas. -

-

- For example, taking our 50 sample binomial distribution with a success fraction - of 0.5, if we wanted a two sided 90% confidence interval, then we would ask - for the 0.05 and 0.95 quantiles with the results rounded outwards - so that at least 90% of the probability is in the central - area: -

-

- -

-

- So far so good, but there is in fact a trap waiting for the unwary here: -

-
quantile(binomial(50, 0.5), 0.05);
-
-

- returns 18 as the result, which is what we would expect from the graph above, - and indeed there is no x greater than 18 for which: -

-
cdf(binomial(50, 0.5), x) <= 0.05;
-
-

- However: -

-
quantile(binomial(50, 0.5), 0.95);
-
-

- returns 31, and indeed while there is no x less than 31 for which: -

-
cdf(binomial(50, 0.5), x) >= 0.95;
-
-

- We might naively expect that for this symmetrical distribution the result - would be 32 (since 32 = 50 - 18), but we need to remember that the cdf of - the binomial is inclusive of the random variable. So - while the left tail area includes the quantile returned, - the right tail area always excludes an upper quantile value: since that "belongs" - to the central area. -

-

- Look at the graph above to see what's going on here: the lower quantile of - 18 belongs to the left tail, so any value <= 18 is in the left tail. The - upper quantile of 31 on the other hand belongs to the central area, so the - tail area actually starts at 32, so any value > 31 is in the right tail. -

-

- Therefore if U and L are the upper and lower quantiles respectively, then - a random variable X is in the tail area - where we would reject the null - hypothesis if: -

-
X <= L || X > U
-
-

- And the a variable X is inside the central region if: -

-
L < X <= U
-
-

- The moral here is to always be very careful with your comparisons - when dealing with a discrete distribution, and if in doubt, base - your comparisons on CDF's instead. -

-
- - Other - Rounding Policies are Available -
-

- As you would expect from a section on policies, you won't be surprised to - know that other rounding options are available: -

-
-

-
-
integer_round_outwards
-
-

- This is the default policy as described above: lower quantiles are - rounded down (probability < 0.5), and upper quantiles (probability - > 0.5) are rounded up. -

-

- This gives no more than the requested probability - in the tails, and at least the requested probability - in the central area. -

-
-
integer_round_inwards
-
-

- This is the exact opposite of the default policy: lower quantiles are - rounded up (probability < 0.5), and upper quantiles (probability - > 0.5) are rounded down. -

-

- This gives at least the requested probability - in the tails, and no more than the requested probability - in the central area. -

-
-
integer_round_down
-

- This policy will always round the result down no matter whether it - is an upper or lower quantile -

-
integer_round_up
-

- This policy will always round the result up no matter whether it is - an upper or lower quantile -

-
integer_round_nearest
-

- This policy will always round the result to the nearest integer no - matter whether it is an upper or lower quantile -

-
real
-

- This policy will return a real valued result for the quantile of a - discrete distribution: this is generally much slower than finding an - integer result but does allow for more sophisticated rounding policies. -

-
-
-

- To understand how the rounding policies for the discrete distributions can - be used, we'll use the 50-sample binomial distribution with a success fraction - of 0.5 once again, and calculate all the possible quantiles at 0.05 and 0.95. -

-

- Begin by including the needed headers (and some using statements for conciseness): -

-
#include <iostream>
-using std::cout; using std::endl;
-using std::left; using std::fixed; using std::right; using std::scientific;
-#include <iomanip>
-using std::setw;
-using std::setprecision;
-
-#include <boost/math/distributions/binomial.hpp>
-
-

- Next we'll bring the needed declarations into scope, and define distribution - types for all the available rounding policies: -

-
// Avoid 
-// using namespace std; // and 
-// using namespace boost::math;
-// to avoid potential ambiguity of names, like binomial.
-// using namespace boost::math::policies; is small risk, but
-// the necessary items are brought into scope thus:
-
-using boost::math::binomial_distribution;
-using boost::math::policies::policy;
-using boost::math::policies::discrete_quantile;
-
-using boost::math::policies::integer_round_outwards;
-using boost::math::policies::integer_round_down;
-using boost::math::policies::integer_round_up;
-using boost::math::policies::integer_round_nearest;
-using boost::math::policies::integer_round_inwards;
-using boost::math::policies::real;
-
-using boost::math::binomial_distribution; // Not std::binomial_distribution.
-
-typedef binomial_distribution<
-            double,
-            policy<discrete_quantile<integer_round_outwards> > >
-        binom_round_outwards;
-
-typedef binomial_distribution<
-            double,
-            policy<discrete_quantile<integer_round_inwards> > >
-        binom_round_inwards;
-
-typedef binomial_distribution<
-            double,
-            policy<discrete_quantile<integer_round_down> > >
-        binom_round_down;
-
-typedef binomial_distribution<
-            double,
-            policy<discrete_quantile<integer_round_up> > >
-        binom_round_up;
-
-typedef binomial_distribution<
-            double,
-            policy<discrete_quantile<integer_round_nearest> > >
-        binom_round_nearest;
-
-typedef binomial_distribution<
-            double,
-            policy<discrete_quantile<real> > >
-        binom_real_quantile;
-
-

- Now let's set to work calling those quantiles: -

-
int main()
-{
-   cout <<
-      "Testing rounding policies for a 50 sample binomial distribution,\n"
-      "with a success fraction of 0.5.\n\n"
-      "Lower quantiles are calculated at p = 0.05\n\n"
-      "Upper quantiles at p = 0.95.\n\n";
-
-   cout << setw(25) << right
-      << "Policy"<< setw(18) << right
-      << "Lower Quantile" << setw(18) << right
-      << "Upper Quantile" << endl;
-
-   // Test integer_round_outwards:
-   cout << setw(25) << right
-      << "integer_round_outwards"
-      << setw(18) << right
-      << quantile(binom_round_outwards(50, 0.5), 0.05)
-      << setw(18) << right
-      << quantile(binom_round_outwards(50, 0.5), 0.95)
-      << endl;
-
-   // Test integer_round_inwards:
-   cout << setw(25) << right
-      << "integer_round_inwards"
-      << setw(18) << right
-      << quantile(binom_round_inwards(50, 0.5), 0.05)
-      << setw(18) << right
-      << quantile(binom_round_inwards(50, 0.5), 0.95)
-      << endl;
-
-   // Test integer_round_down:
-   cout << setw(25) << right
-      << "integer_round_down"
-      << setw(18) << right
-      << quantile(binom_round_down(50, 0.5), 0.05)
-      << setw(18) << right
-      << quantile(binom_round_down(50, 0.5), 0.95)
-      << endl;
-
-   // Test integer_round_up:
-   cout << setw(25) << right
-      << "integer_round_up"
-      << setw(18) << right
-      << quantile(binom_round_up(50, 0.5), 0.05)
-      << setw(18) << right
-      << quantile(binom_round_up(50, 0.5), 0.95)
-      << endl;
-
-   // Test integer_round_nearest:
-   cout << setw(25) << right
-      << "integer_round_nearest"
-      << setw(18) << right
-      << quantile(binom_round_nearest(50, 0.5), 0.05)
-      << setw(18) << right
-      << quantile(binom_round_nearest(50, 0.5), 0.95)
-      << endl;
-
-   // Test real:
-   cout << setw(25) << right
-      << "real"
-      << setw(18) << right
-      << quantile(binom_real_quantile(50, 0.5), 0.05)
-      << setw(18) << right
-      << quantile(binom_real_quantile(50, 0.5), 0.95)
-      << endl;
-} // int main()
-
-

- Which produces the program output: -

-
  policy_eg_10.vcxproj -> J:\Cpp\MathToolkit\test\Math_test\Release\policy_eg_10.exe
-  Testing rounding policies for a 50 sample binomial distribution,
-  with a success fraction of 0.5.
-
-  Lower quantiles are calculated at p = 0.05
-
-  Upper quantiles at p = 0.95.
-
-                     Policy    Lower Quantile    Upper Quantile
-     integer_round_outwards                18                31
-      integer_round_inwards                19                30
-         integer_round_down                18                30
-           integer_round_up                19                31
-      integer_round_nearest                19                30
-                       real            18.701            30.299
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/user_def_err_pol.html b/boost/libs/math/doc/html/math_toolkit/pol_tutorial/user_def_err_pol.html deleted file mode 100644 index 9c546dbc..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/user_def_err_pol.html +++ /dev/null @@ -1,454 +0,0 @@ - - - -Calling User Defined Error Handlers - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Suppose we want our own user-defined error handlers rather than the any of - the default ones supplied by the library to be used. If we set the policy - for a specific type of error to user_error - then the library will call a user-supplied error handler. These are forward - declared, but not defined in boost/math/policies/error_handling.hpp like - this: -

-
namespace boost{ namespace math{ namespace policies{
-
-template <class T>
-T user_domain_error(const char* function, const char* message, const T& val);
-template <class T>
-T user_pole_error(const char* function, const char* message, const T& val);
-template <class T>
-T user_overflow_error(const char* function, const char* message, const T& val);
-template <class T>
-T user_underflow_error(const char* function, const char* message, const T& val);
-template <class T>
-T user_denorm_error(const char* function, const char* message, const T& val);
-template <class T>
-T user_evaluation_error(const char* function, const char* message, const T& val);
-template <class T, class TargetType>
-T user_rounding_error(const char* function, const char* message, const T& val, const TargetType& t);
-template <class T>
-T user_indeterminate_result_error(const char* function, const char* message, const T& val);
-
-}}} // namespaces
-
-

- So out first job is to include the header we want to use, and then provide - definitions for our user-defined error handlers that we want to use. We only - provide our special domain and pole error handlers; other errors like overflow - and underflow use the default. -

-
#include <boost/math/special_functions.hpp>
-
-namespace boost{ namespace math
-{
-  namespace policies
-  {
-    template <class T>
-    T user_domain_error(const char* function, const char* message, const T& val)
-    { // Ignoring function, message and val for this example, perhaps unhelpfully.
-       cerr << "Domain Error!" << endl;
-       return std::numeric_limits<T>::quiet_NaN();
-    }
-
-    template <class T>
-    T user_pole_error(const char* function, const char* message, const T& val)
-    { // Ignoring function, message and val for this example, perhaps unhelpfully.
-       cerr << "Pole Error!" << endl;
-       return std::numeric_limits<T>::quiet_NaN();
-    }
-  } // namespace policies
-}} // namespace boost{ namespace math
-
-

- Now we'll need to define a suitable policy that will call these handlers, - and define some forwarding functions that make use of the policy: -

-
namespace mymath{
-
-using namespace boost::math::policies;
-
-typedef policy<
-   domain_error<user_error>,
-   pole_error<user_error>
-> user_error_policy;
-
-BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(user_error_policy)
-
-} // close unnamed namespace
-
-

- We now have a set of forwarding functions defined in namespace mymath that - all look something like this: -

-
template <class RealType>
-inline typename boost::math::tools::promote_args<RT>::type
-   tgamma(RT z)
-{
-   return boost::math::tgamma(z, user_error_policy());
-}
-
-

- So that when we call mymath::tgamma(z) - we really end up calling boost::math::tgamma(z, - user_error_policy()), - and any errors will get directed to our own error handlers. -

-
int main()
-{
-   cout << "Result of erf_inv(-10) is: "
-      << mymath::erf_inv(-10) << endl;
-   cout << "Result of tgamma(-10) is: "
-      << mymath::tgamma(-10) << endl;
-}
-
-

- Which outputs: -

-
  Domain Error!
-  Pole Error!
-  Result of erf_inv(-10) is: 1.#QNAN
-  Result of tgamma(-10) is: 1.#QNAN
-
-

- The previous example was all well and good, but the custom error handlers - didn't really do much of any use. In this example we'll implement all the - custom handlers and show how the information provided to them can be used - to generate nice formatted error messages. -

-

- Each error handler has the general form: -

-
template <class T>
-T user_error_type(
-   const char* function,
-   const char* message,
-   const T& val);
-
-

- and accepts three arguments: -

-
-

-
-
const char* function
-

- The name of the function that raised the error, this string contains - one or more %1% format specifiers that should be replaced by the name - of real type T, like float or double. -

-
const char* message
-

- A message associated with the error, normally this contains a %1% format - specifier that should be replaced with the value of value: - however note that overflow and underflow messages do not contain this - %1% specifier (since the value of value is immaterial - in these cases). -

-
const T& value
-

- The value that caused the error: either an argument to the function - if this is a domain or pole error, the tentative result if this is - a denorm or evaluation error, or zero or infinity for underflow or - overflow errors. -

-
-
-

- As before we'll include the headers we need first: -

-
#include <boost/math/special_functions.hpp>
-
-

- Next we'll implement our own error handlers for each type of error, starting - with domain errors: -

-
namespace boost{ namespace math{
-namespace policies
-{
-
-template <class T>
-T user_domain_error(const char* function, const char* message, const T& val)
-{
-
-

- We'll begin with a bit of defensive programming in case function or message - are empty: -

-
if(function == 0)
-    function = "Unknown function with arguments of type %1%";
-if(message == 0)
-    message = "Cause unknown with bad argument %1%";
-
-

- Next we'll format the name of the function with the name of type T, perhaps - double: -

-
std::string msg("Error in function ");
-msg += (boost::format(function) % typeid(T).name()).str();
-
-

- Then likewise format the error message with the value of parameter val, - making sure we output all the potentially significant digits of val: -

-
msg += ": \n";
-int prec = 2 + (std::numeric_limits<T>::digits * 30103UL) / 100000UL;
-// int prec = std::numeric_limits<T>::max_digits10; //  For C++0X Standard Library
-msg += (boost::format(message) % boost::io::group(std::setprecision(prec), val)).str();
-
-

- Now we just have to do something with the message, we could throw an exception, - but for the purposes of this example we'll just dump the message to std::cerr: -

-
std::cerr << msg << std::endl;
-
-

- Finally the only sensible value we can return from a domain error is a NaN: -

-
   return std::numeric_limits<T>::quiet_NaN();
-}
-
-

- Pole errors are essentially a special case of domain errors, so in this example - we'll just return the result of a domain error: -

-
template <class T>
-T user_pole_error(const char* function, const char* message, const T& val)
-{
-   return user_domain_error(function, message, val);
-}
-
-

- Overflow errors are very similar to domain errors, except that there's no - %1% format specifier in the message parameter: -

-
template <class T>
-T user_overflow_error(const char* function, const char* message, const T& val)
-{
-   if(function == 0)
-       function = "Unknown function with arguments of type %1%";
-   if(message == 0)
-       message = "Result of function is too large to represent";
-
-   std::string msg("Error in function ");
-   msg += (boost::format(function) % typeid(T).name()).str();
-
-   msg += ": \n";
-   msg += message;
-
-   std::cerr << msg << std::endl;
-
-   // Value passed to the function is an infinity, just return it:
-   return val;
-}
-
-

- Underflow errors are much the same as overflow: -

-
template <class T>
-T user_underflow_error(const char* function, const char* message, const T& val)
-{
-   if(function == 0)
-       function = "Unknown function with arguments of type %1%";
-   if(message == 0)
-       message = "Result of function is too small to represent";
-
-   std::string msg("Error in function ");
-   msg += (boost::format(function) % typeid(T).name()).str();
-
-   msg += ": \n";
-   msg += message;
-
-   std::cerr << msg << std::endl;
-
-   // Value passed to the function is zero, just return it:
-   return val;
-}
-
-

- Denormalised results are much the same as underflow: -

-
template <class T>
-T user_denorm_error(const char* function, const char* message, const T& val)
-{
-   if(function == 0)
-       function = "Unknown function with arguments of type %1%";
-   if(message == 0)
-       message = "Result of function is denormalised";
-
-   std::string msg("Error in function ");
-   msg += (boost::format(function) % typeid(T).name()).str();
-
-   msg += ": \n";
-   msg += message;
-
-   std::cerr << msg << std::endl;
-
-   // Value passed to the function is denormalised, just return it:
-   return val;
-}
-
-

- Which leaves us with evaluation errors: these occur when an internal error - occurs that prevents the function being fully evaluated. The parameter val - contains the closest approximation to the result found so far: -

-
template <class T>
-T user_evaluation_error(const char* function, const char* message, const T& val)
-{
-   if(function == 0)
-       function = "Unknown function with arguments of type %1%";
-   if(message == 0)
-       message = "An internal evaluation error occurred with "
-                  "the best value calculated so far of %1%";
-
-   std::string msg("Error in function ");
-   msg += (boost::format(function) % typeid(T).name()).str();
-
-   msg += ": \n";
-   int prec = 2 + (std::numeric_limits<T>::digits * 30103UL) / 100000UL;
-   // int prec = std::numeric_limits<T>::max_digits10; // For C++0X Standard Library
-   msg += (boost::format(message) % boost::io::group(std::setprecision(prec), val)).str();
-
-   std::cerr << msg << std::endl;
-
-   // What do we return here?  This is generally a fatal error, that should never occur,
-   // so we just return a NaN for the purposes of the example:
-   return std::numeric_limits<T>::quiet_NaN();
-}
-
-} // policies
-}} // boost::math
-
-

- Now we'll need to define a suitable policy that will call these handlers, - and define some forwarding functions that make use of the policy: -

-
namespace mymath
-{ // unnamed.
-
-using namespace boost::math::policies;
-
-typedef policy<
-   domain_error<user_error>,
-   pole_error<user_error>,
-   overflow_error<user_error>,
-   underflow_error<user_error>,
-   denorm_error<user_error>,
-   evaluation_error<user_error>
-> user_error_policy;
-
-BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(user_error_policy)
-
-} // unnamed namespace
-
-

- We now have a set of forwarding functions, defined in namespace mymath, that - all look something like this: -

-
template <class RealType>
-inline typename boost::math::tools::promote_args<RT>::type
-   tgamma(RT z)
-{
-   return boost::math::tgamma(z, user_error_policy());
-}
-
-

- So that when we call mymath::tgamma(z) - we really end up calling boost::math::tgamma(z, - user_error_policy()), - and any errors will get directed to our own error handlers: -

-
int main()
-{
-   // Raise a domain error:
-   cout << "Result of erf_inv(-10) is: "
-      << mymath::erf_inv(-10) << std::endl << endl;
-   // Raise a pole error:
-   cout << "Result of tgamma(-10) is: "
-      << mymath::tgamma(-10) << std::endl << endl;
-   // Raise an overflow error:
-   cout << "Result of tgamma(3000) is: "
-      << mymath::tgamma(3000) << std::endl << endl;
-   // Raise an underflow error:
-   cout << "Result of tgamma(-190.5) is: "
-      << mymath::tgamma(-190.5) << std::endl << endl;
-   // Unfortunately we can't predicably raise a denormalised
-   // result, nor can we raise an evaluation error in this example
-   // since these should never really occur!
-} // int main()
-
-

- Which outputs: -

-
Error in function boost::math::erf_inv<double>(double, double):
-Argument outside range [-1, 1] in inverse erf function (got p=-10).
-Result of erf_inv(-10) is: 1.#QNAN
-
-Error in function boost::math::tgamma<long double>(long double):
-Evaluation of tgamma at a negative integer -10.
-Result of tgamma(-10) is: 1.#QNAN
-
-Error in function boost::math::tgamma<long double>(long double):
-Result of tgamma is too large to represent.
-Error in function boost::math::tgamma<double>(double):
-Result of function is too large to represent
-Result of tgamma(3000) is: 1.#INF
-
-Error in function boost::math::tgamma<long double>(long double):
-Result of tgamma is too large to represent.
-Error in function boost::math::tgamma<long double>(long double):
-Result of tgamma is too small to represent.
-Result of tgamma(-190.5) is: 0
-
-

- Notice how some of the calls result in an error handler being called more - than once, or for more than one handler to be called: this is an artefact - of the fact that many functions are implemented in terms of one or more sub-routines - each of which may have it's own error handling. For example tgamma(-190.5) is implemented - in terms of tgamma(190.5) - which - overflows - the reflection formula for tgamma - then notices that it is dividing by infinity and so underflows. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/what_is_a_policy.html b/boost/libs/math/doc/html/math_toolkit/pol_tutorial/what_is_a_policy.html deleted file mode 100644 index f068760a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/pol_tutorial/what_is_a_policy.html +++ /dev/null @@ -1,88 +0,0 @@ - - - -So Just What is a Policy Anyway? - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- A policy is a compile-time mechanism for customising the behaviour of a special - function, or a statistical distribution. With Policies you can control: -

-
    -
  • - What action to take when an error occurs. -
  • -
  • - What happens when you call a function that is mathematically undefined - (for example, if you ask for the mean of a Cauchy distribution). -
  • -
  • - What happens when you ask for a quantile of a discrete distribution. -
  • -
  • - Whether the library is allowed to internally promote float - to double and double to long - double in order to improve precision. -
  • -
  • - What precision to use when calculating the result. -
  • -
-

- Some of these policies could arguably be runtime variables, but then we couldn't - use compile-time dispatch internally to select the best evaluation method - for the given policies. -

-

- For this reason a Policy is a type: in fact it's an - instance of the class template boost::math::policies::policy<>. This class is just a compile-time-container - of user-selected policies (sometimes called a type-list): -

-
using namespace boost::math::policies;
-//
-// Define a policy that sets ::errno on overflow, and does
-// not promote double to long double internally:
-//
-typedef policy<domain_error<errno_on_error>, promote_double<false> > mypolicy;
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/powers.html b/boost/libs/math/doc/html/math_toolkit/powers.html deleted file mode 100644 index ce99599d..00000000 --- a/boost/libs/math/doc/html/math_toolkit/powers.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -Basic Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/powers/cbrt.html b/boost/libs/math/doc/html/math_toolkit/powers/cbrt.html deleted file mode 100644 index c6c58a9f..00000000 --- a/boost/libs/math/doc/html/math_toolkit/powers/cbrt.html +++ /dev/null @@ -1,165 +0,0 @@ - - - -cbrt - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-cbrt -

-
#include <boost/math/special_functions/cbrt.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type cbrt(T x);
-
-template <class T, class Policy>
-calculated-result-type cbrt(T x, const Policy&);
-
-}} // namespaces
-
-

- Returns the cubed root of x: x1/3. -

-

- The return type of this function is computed using the result - type calculation rules: the return is double - when x is an integer type and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- Implemented using Halley iteration. -

-

- The following graph illustrates the behaviour of cbrt: -

-

- -

-
- - Accuracy -
-

- For built in floating-point types cbrt - should have approximately 2 epsilon accuracy. -

-
-

Table 6.80. Error rates for cbrt

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- cbrt Function -

-
-

- Max = 1.7ε (Mean = 0.565ε)

- (<math.h>: Max = 1.7ε (Mean = 0.565ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(Cephes: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 1.34ε (Mean = 0.471ε)

- (<tr1/cmath>: Max = 1.34ε (Mean = 0.471ε))
- (<math.h>: Max = 1.34ε (Mean = 0.471ε)) -

-
-

- Max = 1.11ε (Mean = 0.424ε)

- (<math.h>: Max = 1.11ε (Mean = 0.424ε)) -

-
-
-
- - Testing -
-

- A mixture of spot test sanity checks, and random high precision test values - calculated using NTL::RR at 1000-bit precision. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/powers/cos_pi.html b/boost/libs/math/doc/html/math_toolkit/powers/cos_pi.html deleted file mode 100644 index 1b15f3a7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/powers/cos_pi.html +++ /dev/null @@ -1,169 +0,0 @@ - - - -cos_pi - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-cos_pi -

-
#include <boost/math/special_functions/cos_pi.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type cos_pi(T x);
-
-template <class T, class Policy>
-calculated-result-type cos_pi(T x, const Policy&);
-
-}} // namespaces
-
-

- Returns the cosine of πx. -

-

- The return type of this function is computed using the result - type calculation rules: the return is double - when x is an integer type and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function performs exact all-integer arithmetic argument reduction before - computing the cosine of πx. -

-
-

Table 6.77. Error rates for cos_pi

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- sin_pi and cos_pi -

-
-

- Max = 0.996ε (Mean = 0.281ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.991ε (Mean = 0.302ε) -

-
-

- Max = 0.991ε (Mean = 0.302ε) -

-
-

- sin_pi and cos_pi near integers and half integers -

-
-

- Max = 0.996ε (Mean = 0.298ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.976ε (Mean = 0.28ε) -

-
-

- Max = 0.976ε (Mean = 0.28ε) -

-
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/powers/ct_pow.html b/boost/libs/math/doc/html/math_toolkit/powers/ct_pow.html deleted file mode 100644 index cf405120..00000000 --- a/boost/libs/math/doc/html/math_toolkit/powers/ct_pow.html +++ /dev/null @@ -1,265 +0,0 @@ - - - -Compile Time Power of a Runtime Base - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The pow function effectively - computes the compile-time integral power of a run-time base. -

-
- - Synopsis -
-

- #include <boost/math/special_functions/pow.hpp> -

-
namespace boost { namespace math {
-
-template <int N, typename T>
-calculated-result-type pow(T base);
-
-template <int N, typename T, class Policy>
-calculated-result-type pow(T base, const Policy& policy);
-
-}}
-
-
- - Rationale - and Usage -
-

- Computing the power of a number with an exponent that is known at compile - time is a common need for programmers. In such cases, the usual method is - to avoid the overhead implied by the pow, - powf and powl - C functions by hardcoding an expression such as: -

-
// Hand-written 8th power of a 'base' variable
-double result = base*base*base*base*base*base*base*base;
-
-

- However, this kind of expression is not really readable (knowing the value - of the exponent involves counting the number of occurrences of base), - error-prone (it's easy to forget an occurrence), syntactically bulky, and - non-optimal in terms of performance. -

-

- The pow function of Boost.Math helps writing this kind expression along with - solving all the problems listed above: -

-
// 8th power of a 'base' variable using math::pow
-double result = pow<8>(base);
-
-

- The expression is now shorter, easier to read, safer, and even faster. Indeed, - pow will compute the expression - such that only log2(N) products are made for a power of N. For instance in - the example above, the resulting expression will be the same as if we had - written this, with only one computation of each identical subexpression: -

-
// Internal effect of pow<8>(base)
-double result = ((base*base)*(base*base))*((base*base)*(base*base));
-
-

- Only 3 different products were actually computed. -

-
- - Return - Type -
-

- The return type of these functions is computed using the result - type calculation rules. For example: -

-
    -
  • - If T is a float, the return - type is a float. -
  • -
  • - If T is a long double, - the return type is a long double. -
  • -
  • - Otherwise, the return type is a double. -
  • -
-
- - Policies -
-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Error - Handling -
-

- Two cases of errors can occur when using pow: -

-
-

- The default overflow error policy is throw_on_error. - A call like pow<-2>(0) will thus throw a std::overflow_error - exception. As shown in the link given above, other error handling policies - can be used: -

-
    -
  • - errno_on_error: Sets - ::errno - to ERANGE and returns - std::numeric_limits<T>::infinity(). -
  • -
  • - ignore_error: Returns - std::numeric_limits<T>::infinity(). -
  • -
  • - user_error: Returns the - result of boost::math::policies::user_overflow_error: this function - must be defined by the user. -
  • -
-

- The default indeterminate result error policy is ignore_error, - which for this function returns 1 since it's the most commonly chosen result - for a power of 0. Here again, other error handling policies can be used: -

-
    -
  • - throw_on_error: Throws - std::domain_error -
  • -
  • - errno_on_error: Sets - ::errno - to EDOM and returns 1. -
  • -
  • - user_error: Returns the - result of boost::math::policies::user_indeterminate_result_error: this - function must be defined by the user. -
  • -
-

- Here is an example of error handling customization where we want to specify - the result that has to be returned in case of error. We will thus use the - user_error policy, by passing - as second argument an instance of an overflow_error policy templated with - user_error: -

-
// First we open the boost::math::policies namespace and define the `user_overflow_error`
-// by making it return the value we want in case of error (-1 here)
-
-namespace boost { namespace math { namespace policies {
-template <class T>
-T user_overflow_error(const char*, const char*, const T&)
-{ return -1; }
-}}}
-
-
-// Then we invoke pow and indicate that we want to use the user_error policy
-using boost::math::policies;
-double result = pow<-5>(base, policy<overflow_error<user_error> >());
-
-// We can now test the returned value and treat the special case if needed:
-if (result == -1)
-{
-    // there was an error, do something...
-}
-
-

- Another way is to redefine the default overflow_error - policy by using the BOOST_MATH_OVERFLOW_ERROR_POLICY macro. Once the user_overflow_error function is defined - as above, we can achieve the same result like this: -

-
// Redefine the default error_overflow policy
-#define BOOST_MATH_OVERFLOW_ERROR_POLICY user_error
-#include <boost/math/special_functions/pow.hpp>
-
-// From this point, passing a policy in argument is no longer needed, a call like this one
-// will return -1 in case of error:
-
-double result = pow<-5>(base);
-
-
- - Acknowledgements -
-

- Bruno Lalande submitted this addition to Boost.Math. -

-

- Thanks to Joaquín López Muñoz and Scott McMurray for their help in -improving the implementation. -

-
- - References -
-

- D.E. Knuth, The Art of Computer Programming, Vol. 2: Seminumerical - Algorithms, 2nd ed., Addison-Wesley, Reading, MA, 1981 -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/powers/expm1.html b/boost/libs/math/doc/html/math_toolkit/powers/expm1.html deleted file mode 100644 index e5aa1fde..00000000 --- a/boost/libs/math/doc/html/math_toolkit/powers/expm1.html +++ /dev/null @@ -1,177 +0,0 @@ - - - -expm1 - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-expm1 -

-
#include <boost/math/special_functions/expm1.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type expm1(T x);
-
-template <class T, class Policy>
-calculated-result-type expm1(T x, const Policy&);
-
-}} // namespaces
-
-

- Returns ex - 1. -

-

- The return type of this function is computed using the result - type calculation rules: the return is double - when x is an integer type and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- For small x, then ex is very close to 1, as a result calculating ex - 1 results in - catastrophic cancellation errors when x is small. expm1 - calculates ex - 1 using rational approximations (for up to 128-bit long doubles), - otherwise via a series expansion when x is small (giving an accuracy of less - than 2ɛ). -

-

- Finally when BOOST_HAS_EXPM1 is defined then the float/double/long double - specializations of this template simply forward to the platform's native - (POSIX) implementation of this function. -

-

- The following graph illustrates the behaviour of expm1: -

-

- -

-
- - Accuracy -
-

- For built in floating point types expm1 - should have approximately 1 epsilon accuracy. -

-
-

Table 6.79. Error rates for expm1

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Random test data -

-
-

- Max = 0.996ε (Mean = 0.283ε)

- (<math.h>: Max = 1.31ε (Mean = 0.496ε)) -

-
-

- Max = 0.793ε (Mean = 0.126ε)

- (Rmath 3.0.2: Max = 0.793ε (Mean = 0.126ε))
- (Cephes: Max = 1.53ε (Mean = 0.535ε)) -

-
-

- Max = 0.992ε (Mean = 0.402ε)

- (<tr1/cmath>: Max - = 1.26e+19ε (Mean = 4.89e+18ε) And - other failures.)
(<math.h>: - Max = 0.992ε (Mean = 0.402ε)) -

-
-

- Max = 1.31ε (Mean = 0.406ε)

- (<math.h>: Max = 0.996ε (Mean = 0.426ε)) -

-
-
-
- - Testing -
-

- A mixture of spot test sanity checks, and random high precision test values - calculated using NTL::RR at 1000-bit precision. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/powers/hypot.html b/boost/libs/math/doc/html/math_toolkit/powers/hypot.html deleted file mode 100644 index 171f221b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/powers/hypot.html +++ /dev/null @@ -1,91 +0,0 @@ - - - -hypot - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-hypot -

-
template <class T1, class T2>
-calculated-result-type hypot(T1 x, T2 y);
-
-template <class T1, class T2, class Policy>
-calculated-result-type hypot(T1 x, T2 y, const Policy&);
-
-

- Effects: computes -in such a way - as to avoid undue underflow and overflow. -

-

- The return type of this function is computed using the result - type calculation rules when T1 and T2 are of different - types. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- When calculating it's quite easy for the intermediate terms to - either overflow or underflow, even though the result is in fact perfectly - representable. -

-
- - Implementation -
-

- The function is even and symmetric in x and y, so first take assume x,y - > 0 and x > y (we can permute the arguments - if this is not the case). -

-

- Then if x * ε   >= y we can simply return x. -

-

- Otherwise the result is given by: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/powers/log1p.html b/boost/libs/math/doc/html/math_toolkit/powers/log1p.html deleted file mode 100644 index 3587c188..00000000 --- a/boost/libs/math/doc/html/math_toolkit/powers/log1p.html +++ /dev/null @@ -1,189 +0,0 @@ - - - -log1p - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-log1p -

-
#include <boost/math/special_functions/log1p.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type log1p(T x);
-
-template <class T, class Policy>
-calculated-result-type log1p(T x, const Policy&);
-
-}} // namespaces
-
-

- Returns the natural logarithm of x+1. -

-

- The return type of this function is computed using the result - type calculation rules: the return is double - when x is an integer type and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- There are many situations where it is desirable to compute log(x+1). - However, for small x then - x+1 suffers from catastrophic cancellation errors - so that x+1 == 1 - and log(x+1) == 0, - when in fact for very small x, the best approximation to log(x+1) would be - x. log1p - calculates the best approximation to log(1+x) using - a Taylor series expansion for accuracy (less than 2ɛ). Alternatively note that - there are faster methods available, for example using the equivalence: -

-
log(1+x) == (log(1+x) * x) / ((1+x) - 1)
-
-

- However, experience has shown that these methods tend to fail quite spectacularly - once the compiler's optimizations are turned on, consequently they are used - only when known not to break with a particular compiler. In contrast, the - series expansion method seems to be reasonably immune to optimizer-induced - errors. -

-

- Finally when BOOST_HAS_LOG1P is defined then the float/double/long double - specializations of this template simply forward to the platform's native - (POSIX) implementation of this function. -

-

- The following graph illustrates the behaviour of log1p: -

-

- -

-
- - Accuracy -
-

- For built in floating point types log1p - should have approximately 1 epsilon accuracy. -

-
-

Table 6.78. Error rates for log1p

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Random test data -

-
-

- Max = 0.509ε (Mean = 0.057ε)

- (<math.h>: Max = 0.509ε (Mean = 0.057ε)) -

-
-

- Max = 0.846ε (Mean = 0.153ε)

- (Rmath 3.0.2: Max = 0.846ε (Mean = 0.153ε))
- (Cephes: Max = 0.799ε (Mean = 0.122ε)) -

-
-

- Max = 0.818ε (Mean = 0.227ε)

- (<tr1/cmath>: Max = 0.818ε (Mean = 0.227ε))
- (<math.h>: Max = 0.818ε (Mean = 0.227ε)) -

-
-

- Max = 1.53ε (Mean = 0.627ε)

- (<math.h>: Max = 0.818ε (Mean = 0.249ε)) -

-
-
-
- - Testing -
-

- A mixture of spot test sanity checks, and random high precision test values - calculated using NTL::RR at 1000-bit precision. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/powers/powm1.html b/boost/libs/math/doc/html/math_toolkit/powers/powm1.html deleted file mode 100644 index 81094d45..00000000 --- a/boost/libs/math/doc/html/math_toolkit/powers/powm1.html +++ /dev/null @@ -1,162 +0,0 @@ - - - -powm1 - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-powm1 -

-
#include <boost/math/special_functions/powm1.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T1, class T2>
-calculated-result-type powm1(T1 x, T2 y);
-
-template <class T1, class T2, class Policy>
-calculated-result-type powm1(T1 x, T2 y, const Policy&);
-
-}} // namespaces
-
-

- Returns xy - 1. -

-

- The return type of this function is computed using the result - type calculation rules when T1 and T2 are dufferent types. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- There are two domains where this is useful: when y is very small, or when - x is close to 1. -

-

- Implemented in terms of expm1. -

-

- The following graph illustrates the behaviour of powm1: -

-

- -

-
- - Accuracy -
-

- Should have approximately 2-3 epsilon accuracy. -

-
-

Table 6.82. Error rates for powm1

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- powm1 -

-
-

- Max = 1.99ε (Mean = 0.461ε) -

-
-

- Max = 1.26ε (Mean = 0.428ε) -

-
-

- Max = 2.04ε (Mean = 0.521ε) -

-
-

- Max = 2.14ε (Mean = 0.498ε) -

-
-
-
- - Testing -
-

- A selection of random high precision test values calculated using NTL::RR - at 1000-bit precision. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/powers/sin_pi.html b/boost/libs/math/doc/html/math_toolkit/powers/sin_pi.html deleted file mode 100644 index d9c50871..00000000 --- a/boost/libs/math/doc/html/math_toolkit/powers/sin_pi.html +++ /dev/null @@ -1,169 +0,0 @@ - - - -sin_pi - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-sin_pi -

-
#include <boost/math/special_functions/sin_pi.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type sin_pi(T x);
-
-template <class T, class Policy>
-calculated-result-type sin_pi(T x, const Policy&);
-
-}} // namespaces
-
-

- Returns the sine of πx. -

-

- The return type of this function is computed using the result - type calculation rules: the return is double - when x is an integer type and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function performs exact all-integer arithmetic argument reduction before - computing the sine of πx. -

-
-

Table 6.76. Error rates for sin_pi

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- sin_pi and cos_pi -

-
-

- Max = 0.99ε (Mean = 0.328ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.996ε (Mean = 0.335ε) -

-
-

- Max = 0.996ε (Mean = 0.336ε) -

-
-

- sin_pi and cos_pi near integers and half integers -

-
-

- Max = 0.996ε (Mean = 0.343ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.976ε (Mean = 0.293ε) -

-
-

- Max = 0.976ε (Mean = 0.293ε) -

-
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/powers/sqrt1pm1.html b/boost/libs/math/doc/html/math_toolkit/powers/sqrt1pm1.html deleted file mode 100644 index 09e3a6b2..00000000 --- a/boost/libs/math/doc/html/math_toolkit/powers/sqrt1pm1.html +++ /dev/null @@ -1,165 +0,0 @@ - - - -sqrt1pm1 - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/sqrt1pm1.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type sqrt1pm1(T x);
-
-template <class T, class Policy>
-calculated-result-type sqrt1pm1(T x, const Policy&);
-
-}} // namespaces
-
-

- Returns sqrt(1+x) - 1. -

-

- The return type of this function is computed using the result - type calculation rules: the return is double - when x is an integer type and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- This function is useful when you need the difference between sqrt(x) and - 1, when x is itself close to 1. -

-

- Implemented in terms of log1p - and expm1. -

-

- The following graph illustrates the behaviour of sqrt1pm1: -

-

- -

-
- - Accuracy -
-

- For built in floating-point types sqrt1pm1 - should have approximately 3 epsilon accuracy. -

-
-

Table 6.81. Error rates for sqrt1pm1

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- sqrt1pm1 -

-
-

- Max = 1.36ε (Mean = 0.44ε) -

-
-

- Max = 1.3ε (Mean = 0.404ε) -

-
-

- Max = 1.33ε (Mean = 0.409ε) -

-
-

- Max = 1.54ε (Mean = 0.568ε) -

-
-
-
- - Testing -
-

- A selection of random high precision test values calculated using NTL::RR - at 1000-bit precision. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/quat.html b/boost/libs/math/doc/html/math_toolkit/quat.html deleted file mode 100644 index 207c1226..00000000 --- a/boost/libs/math/doc/html/math_toolkit/quat.html +++ /dev/null @@ -1,99 +0,0 @@ - - - -Template Class quaternion - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
namespace boost{ namespace math{
-
-template<typename T>
-class quaternion
-{
-public:
-
-   typedef T value_type;
-
-   explicit quaternion(T const & requested_a = T(), T const & requested_b = T(), T const & requested_c = T(), T const & requested_d = T());
-   explicit quaternion(::std::complex<T> const & z0, ::std::complex<T> const & z1 = ::std::complex<T>());
-   template<typename X>
-   explicit quaternion(quaternion<X> const & a_recopier);
-
-   T                  real() const;
-   quaternion<T>      unreal() const;
-   T                  R_component_1() const;
-   T                  R_component_2() const;
-   T                  R_component_3() const;
-   T                  R_component_4() const;
-   ::std::complex<T>  C_component_1() const;
-   ::std::complex<T>  C_component_2() const;
-
-   quaternion<T>&     operator = (quaternion<T> const  & a_affecter);
-   template<typename X>
-   quaternion<T>&     operator = (quaternion<X> const  & a_affecter);
-   quaternion<T>&     operator = (T const  & a_affecter);
-   quaternion<T>&     operator = (::std::complex<T> const & a_affecter);
-
-   quaternion<T>&     operator += (T const & rhs);
-   quaternion<T>&     operator += (::std::complex<T> const & rhs);
-   template<typename X>
-   quaternion<T>&     operator += (quaternion<X> const & rhs);
-
-   quaternion<T>&     operator -= (T const & rhs);
-   quaternion<T>&     operator -= (::std::complex<T> const & rhs);
-   template<typename X>
-   quaternion<T>&     operator -= (quaternion<X> const & rhs);
-
-   quaternion<T>&     operator *= (T const & rhs);
-   quaternion<T>&     operator *= (::std::complex<T> const & rhs);
-   template<typename X>
-   quaternion<T>&     operator *= (quaternion<X> const & rhs);
-
-   quaternion<T>&     operator /= (T const & rhs);
-   quaternion<T>&     operator /= (::std::complex<T> const & rhs);
-   template<typename X>
-   quaternion<T>&     operator /= (quaternion<X> const & rhs);
-};
-
-} // namespace math
-} // namespace boost
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/quat_header.html b/boost/libs/math/doc/html/math_toolkit/quat_header.html deleted file mode 100644 index 174eb241..00000000 --- a/boost/libs/math/doc/html/math_toolkit/quat_header.html +++ /dev/null @@ -1,49 +0,0 @@ - - - -Header File - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The interface and implementation are both supplied by the header file quaternion.hpp. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/quat_history.html b/boost/libs/math/doc/html/math_toolkit/quat_history.html deleted file mode 100644 index 9e617267..00000000 --- a/boost/libs/math/doc/html/math_toolkit/quat_history.html +++ /dev/null @@ -1,113 +0,0 @@ - - - -History - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
    -
  • - 1.5.9 - 13/5/2013: Incorporated into Boost.Math. -
  • -
  • - 1.5.8 - 17/12/2005: Converted documentation to Quickbook Format. -
  • -
  • - 1.5.7 - 24/02/2003: transitionned to the unit test framework; <boost/config.hpp> - now included by the library header (rather than the test files). -
  • -
  • - 1.5.6 - 15/10/2002: Gcc2.95.x and stlport on linux compatibility by Alkis - Evlogimenos (alkis@routescience.com). -
  • -
  • - 1.5.5 - 27/09/2002: Microsoft VCPP 7 compatibility, by Michael Stevens - (michael@acfr.usyd.edu.au); requires the /Za compiler option. -
  • -
  • - 1.5.4 - 19/09/2002: fixed problem with multiple inclusion (in different - translation units); attempt at an improved compatibility with Microsoft - compilers, by Michael Stevens (michael@acfr.usyd.edu.au) and Fredrik Blomqvist; - other compatibility fixes. -
  • -
  • - 1.5.3 - 01/02/2002: bugfix and Gcc 2.95.3 compatibility by Douglas Gregor - (gregod@cs.rpi.edu). -
  • -
  • - 1.5.2 - 07/07/2001: introduced namespace math. -
  • -
  • - 1.5.1 - 07/06/2001: (end of Boost review) now includes <boost/math/special_functions/sinc.hpp> - and <boost/math/special_functions/sinhc.hpp> instead of <boost/special_functions.hpp>; - corrected bug in sin (Daryle Walker); removed check for self-assignment - (Gary Powel); made converting functions explicit (Gary Powel); added overflow - guards for division operators and abs (Peter Schmitteckert); added sup - and l1; used Vesa Karvonen's CPP metaprograming technique to simplify code. -
  • -
  • - 1.5.0 - 26/03/2001: boostification, inlining of all operators except input, - output and pow, fixed exception safety of some members (template version) - and output operator, added spherical, semipolar, multipolar, cylindrospherical - and cylindrical. -
  • -
  • - 1.4.0 - 09/01/2001: added tan and tanh. -
  • -
  • - 1.3.1 - 08/01/2001: cosmetic fixes. -
  • -
  • - 1.3.0 - 12/07/2000: pow now uses Maarten Hilferink's (mhilferink@tip.nl) - algorithm. -
  • -
  • - 1.2.0 - 25/05/2000: fixed the division operators and output; changed many - signatures. -
  • -
  • - 1.1.0 - 23/05/2000: changed sinc into sinc_pi; added sin, cos, sinh, cosh. -
  • -
  • - 1.0.0 - 10/08/1999: first public version. -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/quat_mem_fun.html b/boost/libs/math/doc/html/math_toolkit/quat_mem_fun.html deleted file mode 100644 index 1342f0a1..00000000 --- a/boost/libs/math/doc/html/math_toolkit/quat_mem_fun.html +++ /dev/null @@ -1,236 +0,0 @@ - - - -Quaternion Member Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- - Constructors -

-

- Template version: -

-
explicit quaternion(T const & requested_a = T(), T const & requested_b = T(), T const & requested_c = T(), T const & requested_d = T());
-explicit quaternion(::std::complex<T> const & z0, ::std::complex<T> const & z1 = ::std::complex<T>());
-template<typename X>
-explicit quaternion(quaternion<X> const & a_recopier);
-
-

- Float specialization version: -

-
explicit quaternion(float const & requested_a = 0.0f, float const & requested_b = 0.0f, float const & requested_c = 0.0f, float const & requested_d = 0.0f);
-explicit quaternion(::std::complex<float> const & z0,::std::complex<float> const & z1 = ::std::complex<float>());
-explicit quaternion(quaternion<double> const & a_recopier);
-explicit quaternion(quaternion<long double> const & a_recopier);
-
-

- Double specialization version: -

-
explicit quaternion(double const & requested_a = 0.0, double const & requested_b = 0.0, double const & requested_c = 0.0, double const & requested_d = 0.0);
-explicit quaternion(::std::complex<double> const & z0, ::std::complex<double> const & z1 = ::std::complex<double>());
-explicit quaternion(quaternion<float> const & a_recopier);
-explicit quaternion(quaternion<long double> const & a_recopier);
-
-

- Long double specialization version: -

-
explicit quaternion(long double const & requested_a = 0.0L, long double const & requested_b = 0.0L, long double const & requested_c = 0.0L, long double const & requested_d = 0.0L);
-explicit quaternion( ::std::complex<long double> const & z0, ::std::complex<long double> const & z1 = ::std::complex<long double>());
-explicit quaternion(quaternion<float> const & a_recopier);
-explicit quaternion(quaternion<double> const & a_recopier);
-
-

- A default constructor is provided for each form, which initializes each component - to the default values for their type (i.e. zero for floating numbers). This - constructor can also accept one to four base type arguments. A constructor - is also provided to build quaternions from one or two complex numbers sharing - the same base type. The unspecialized template also sports a templarized copy - constructor, while the specialized forms have copy constructors from the other - two specializations, which are explicit when a risk of precision loss exists. - For the unspecialized form, the base type's constructors must not throw. -

-

- Destructors and untemplated copy constructors (from the same type) are provided - by the compiler. Converting copy constructors make use of a templated helper - function in a "detail" subnamespace. -

-

- - Other - member functions -

-
- - Real - and Unreal Parts -
-
T             real() const;
-quaternion<T> unreal() const;
-
-

- Like complex number, quaternions do have a meaningful notion of "real - part", but unlike them there is no meaningful notion of "imaginary - part". Instead there is an "unreal part" which itself is a quaternion, - and usually nothing simpler (as opposed to the complex number case). These - are returned by the first two functions. -

-
- - Individual - Real Components -
-
T R_component_1() const;
-T R_component_2() const;
-T R_component_3() const;
-T R_component_4() const;
-
-

- A quaternion having four real components, these are returned by these four - functions. Hence real and R_component_1 return the same value. -

-
- - Individual - Complex Components -
-
::std::complex<T>  C_component_1() const;
-::std::complex<T>  C_component_2() const;
-
-

- A quaternion likewise has two complex components, and as we have seen above, - for any quaternion q = α + βi + γj + δk we also have - q = (α + βi) + (γ + δi)j . These functions return them. - The real part of q.C_component_1() - is the same as q.real(). -

-

- - Quaternion - Member Operators -

-
- - Assignment - Operators -
-
quaternion<T>& operator = (quaternion<T> const & a_affecter);
-template<typename X>
-quaternion<T>& operator = (quaternion<X> const& a_affecter);
-quaternion<T>& operator = (T const& a_affecter);
-quaternion<T>& operator = (::std::complex<T> const& a_affecter);
-
-

- These perform the expected assignment, with type modification if necessary - (for instance, assigning from a base type will set the real part to that value, - and all other components to zero). For the unspecialized form, the base type's - assignment operators must not throw. -

-
- - Addition - Operators -
-
quaternion<T>& operator += (T const & rhs)
-quaternion<T>& operator += (::std::complex<T> const & rhs);
-template<typename X>
-quaternion<T>& operator += (quaternion<X> const & rhs);
-
-

- These perform the mathematical operation (*this)+rhs - and store the result in *this. - The unspecialized form has exception guards, which the specialized forms do - not, so as to insure exception safety. For the unspecialized form, the base - type's assignment operators must not throw. -

-
- - Subtraction - Operators -
-
quaternion<T>& operator -= (T const & rhs)
-quaternion<T>& operator -= (::std::complex<T> const & rhs);
-template<typename X>
-quaternion<T>& operator -= (quaternion<X> const & rhs);
-
-

- These perform the mathematical operation (*this)-rhs - and store the result in *this. - The unspecialized form has exception guards, which the specialized forms do - not, so as to insure exception safety. For the unspecialized form, the base - type's assignment operators must not throw. -

-
- - Multiplication - Operators -
-
quaternion<T>& operator *= (T const & rhs)
-quaternion<T>& operator *= (::std::complex<T> const & rhs);
-template<typename X>
-quaternion<T>& operator *= (quaternion<X> const & rhs);
-
-

- These perform the mathematical operation (*this)*rhs - in this order (order is important as multiplication - is not commutative for quaternions) and store the result in *this. The unspecialized form has exception guards, - which the specialized forms do not, so as to insure exception safety. For the - unspecialized form, the base type's assignment operators must not throw. -

-
- - Division - Operators -
-
quaternion<T>& operator /= (T const & rhs)
-quaternion<T>& operator /= (::std::complex<T> const & rhs);
-template<typename X>
-quaternion<T>& operator /= (quaternion<X> const & rhs);
-
-

- These perform the mathematical operation (*this)*inverse_of(rhs) - in this order (order is important as multiplication - is not commutative for quaternions) and store the result in *this. The unspecialized form has exception guards, - which the specialized forms do not, so as to insure exception safety. For the - unspecialized form, the base type's assignment operators must not throw. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/quat_non_mem.html b/boost/libs/math/doc/html/math_toolkit/quat_non_mem.html deleted file mode 100644 index 60f186e5..00000000 --- a/boost/libs/math/doc/html/math_toolkit/quat_non_mem.html +++ /dev/null @@ -1,224 +0,0 @@ - - - -Quaternion Non-Member Operators - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Unary - Plus -
-
template<typename T>
-quaternion<T> operator + (quaternion<T> const & q);
-
-

- This unary operator simply returns q. -

-
- - Unary - Minus -
-
template<typename T>
-quaternion<T> operator - (quaternion<T> const & q);
-
-

- This unary operator returns the opposite of q. -

-
- - Binary - Addition Operators -
-
template<typename T> quaternion<T> operator + (T const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator + (quaternion<T> const & lhs, T const & rhs);
-template<typename T> quaternion<T> operator + (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator + (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> quaternion<T> operator + (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-

- These operators return quaternion<T>(lhs) += - rhs. -

-
- - Binary Subtraction - Operators -
-
template<typename T> quaternion<T> operator - (T const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator - (quaternion<T> const & lhs, T const & rhs);
-template<typename T> quaternion<T> operator - (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator - (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> quaternion<T> operator - (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-

- These operators return quaternion<T>(lhs) -= - rhs. -

-
- - Binary - Multiplication Operators -
-
template<typename T> quaternion<T> operator * (T const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator * (quaternion<T> const & lhs, T const & rhs);
-template<typename T> quaternion<T> operator * (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator * (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> quaternion<T> operator * (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-

- These operators return quaternion<T>(lhs) *= - rhs. -

-
- - Binary - Division Operators -
-
template<typename T> quaternion<T> operator / (T const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator / (quaternion<T> const & lhs, T const & rhs);
-template<typename T> quaternion<T> operator / (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator / (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> quaternion<T> operator / (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-

- These operators return quaternion<T>(lhs) /= - rhs. It is of course still an error - to divide by zero... -

-
- - Equality - Operators -
-
template<typename T> bool  operator == (T const & lhs, quaternion<T> const & rhs);
-template<typename T> bool  operator == (quaternion<T> const & lhs, T const & rhs);
-template<typename T> bool  operator == (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> bool  operator == (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> bool  operator == (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-

- These return true if and only if the four components of quaternion<T>(lhs) are - equal to their counterparts in quaternion<T>(rhs). As - with any floating-type entity, this is essentially meaningless. -

-
- - Inequality - Operators -
-
template<typename T> bool  operator != (T const & lhs, quaternion<T> const & rhs);
-template<typename T> bool  operator != (quaternion<T> const & lhs, T const & rhs);
-template<typename T> bool  operator != (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> bool  operator != (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> bool  operator != (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-

- These return true if and only if quaternion<T>(lhs) == - quaternion<T>(rhs) is false. As with any floating-type entity, - this is essentially meaningless. -

-
- - Stream - Extractor -
-
template<typename T, typename charT, class traits>
-::std::basic_istream<charT,traits>& operator >> (::std::basic_istream<charT,traits> & is, quaternion<T> & q);
-
-

- Extracts a quaternion q of one of the following forms (with a, b, c and d of - type T): -

-

- a (a), (a,b), (a,b,c), (a,b,c,d) (a,(c)), (a,(c,d)), ((a)), ((a),c), - ((a),(c)), ((a),(c,d)), ((a,b)), ((a,b),c), ((a,b),(c)), ((a,b),(c,d)) -

-

- The input values must be convertible to T. - If bad input is encountered, calls is.setstate(ios::failbit) - (which may throw ios::failure (27.4.5.3)). -

-

- Returns: is. -

-

- The rationale for the list of accepted formats is that either we have a list - of up to four reals, or else we have a couple of complex numbers, and in that - case if it formated as a proper complex number, then it should be accepted. - Thus potential ambiguities are lifted (for instance (a,b) is (a,b,0,0) and - not (a,0,b,0), i.e. it is parsed as a list of two real numbers and not two - complex numbers which happen to have imaginary parts equal to zero). -

-
- - Stream - Inserter -
-
template<typename T, typename charT, class traits>
-::std::basic_ostream<charT,traits>& operator << (::std::basic_ostream<charT,traits> & os, quaternion<T> const & q);
-
-

- Inserts the quaternion q onto the stream os - as if it were implemented as follows: -

-
template<typename T, typename charT, class traits>
-::std::basic_ostream<charT,traits>& operator << (
-               ::std::basic_ostream<charT,traits> & os,
-               quaternion<T> const & q)
-{
-   ::std::basic_ostringstream<charT,traits>  s;
-
-   s.flags(os.flags());
-   s.imbue(os.getloc());
-   s.precision(os.precision());
-
-   s << '(' << q.R_component_1() << ','
-            << q.R_component_2() << ','
-            << q.R_component_3() << ','
-            << q.R_component_4() << ')';
-
-   return os << s.str();
-}
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/quat_overview.html b/boost/libs/math/doc/html/math_toolkit/quat_overview.html deleted file mode 100644 index 5aef5313..00000000 --- a/boost/libs/math/doc/html/math_toolkit/quat_overview.html +++ /dev/null @@ -1,96 +0,0 @@ - - - -Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Quaternions are a relative of complex numbers. -

-

- Quaternions are in fact part of a small hierarchy of structures built upon - the real numbers, which comprise only the set of real numbers (traditionally - named R), the set of - complex numbers (traditionally named C), - the set of quaternions (traditionally named H) - and the set of octonions (traditionally named O), - which possess interesting mathematical properties (chief among which is the - fact that they are division algebras, i.e. - where the following property is true: if y - is an element of that algebra and is not equal to zero, - then yx = yx', where x - and x' denote elements of that algebra, - implies that x = x'). Each member of - the hierarchy is a super-set of the former. -

-

- One of the most important aspects of quaternions is that they provide an efficient - way to parameterize rotations in R3 - (the usual three-dimensional space) and R4. -

-

- In practical terms, a quaternion is simply a quadruple of real numbers (α,β,γ,δ), - which we can write in the form q = α + βi + γj + δk, - where i is the same object as for complex - numbers, and j and k - are distinct objects which play essentially the same kind of role as i. -

-

- An addition and a multiplication is defined on the set of quaternions, which - generalize their real and complex counterparts. The main novelty here is that - the multiplication is not commutative (i.e. - there are quaternions x and y - such that xy ≠ yx). A good mnemotechnical - way of remembering things is by using the formula i*i = - j*j = k*k = -1. -

-

- Quaternions (and their kin) are described in far more details in this other - document (with errata - and addenda). -

-

- Some traditional constructs, such as the exponential, carry over without too - much change into the realms of quaternions, but other, such as taking a square - root, do not. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/quat_synopsis.html b/boost/libs/math/doc/html/math_toolkit/quat_synopsis.html deleted file mode 100644 index 8e518108..00000000 --- a/boost/libs/math/doc/html/math_toolkit/quat_synopsis.html +++ /dev/null @@ -1,128 +0,0 @@ - - - -Synopsis - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
namespace boost{ namespace math{
-
-template<typename T> class quaternion;
-template<>           class quaternion<float>;
-template<>           class quaternion<double>;
-template<>           class quaternion<long double>;
-
-// operators
-template<typename T> quaternion<T> operator + (T const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator + (quaternion<T> const & lhs, T const & rhs);
-template<typename T> quaternion<T> operator + (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator + (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> quaternion<T> operator + (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-template<typename T> quaternion<T> operator - (T const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator - (quaternion<T> const & lhs, T const & rhs);
-template<typename T> quaternion<T> operator - (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator - (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> quaternion<T> operator - (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-template<typename T> quaternion<T> operator * (T const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator * (quaternion<T> const & lhs, T const & rhs);
-template<typename T> quaternion<T> operator * (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator * (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> quaternion<T> operator * (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-template<typename T> quaternion<T> operator / (T const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator / (quaternion<T> const & lhs, T const & rhs);
-template<typename T> quaternion<T> operator / (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> quaternion<T> operator / (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> quaternion<T> operator / (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-template<typename T> quaternion<T> operator + (quaternion<T> const & q);
-template<typename T> quaternion<T> operator - (quaternion<T> const & q);
-
-template<typename T> bool operator == (T const & lhs, quaternion<T> const & rhs);
-template<typename T> bool operator == (quaternion<T> const & lhs, T const & rhs);
-template<typename T> bool operator == (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> bool operator == (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> bool operator == (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-template<typename T> bool operator != (T const & lhs, quaternion<T> const & rhs);
-template<typename T> bool operator != (quaternion<T> const & lhs, T const & rhs);
-template<typename T> bool operator != (::std::complex<T> const & lhs, quaternion<T> const & rhs);
-template<typename T> bool operator != (quaternion<T> const & lhs, ::std::complex<T> const & rhs);
-template<typename T> bool operator != (quaternion<T> const & lhs, quaternion<T> const & rhs);
-
-template<typename T, typename charT, class traits>
-::std::basic_istream<charT,traits>& operator >> (::std::basic_istream<charT,traits> & is, quaternion<T> & q);
-
-template<typename T, typename charT, class traits>
-::std::basic_ostream<charT,traits>& operator operator << (::std::basic_ostream<charT,traits> & os, quaternion<T> const & q);
-
-// values
-template<typename T> T              real(quaternion<T> const & q);
-template<typename T> quaternion<T>  unreal(quaternion<T> const & q);
-
-template<typename T> T              sup(quaternion<T> const & q);
-template<typename T> T              l1(quaternion<T> const & q);
-template<typename T> T              abs(quaternion<T> const & q);
-template<typename T> T              norm(quaternion<T>const  & q);
-template<typename T> quaternion<T>  conj(quaternion<T> const & q);
-
-template<typename T> quaternion<T>  math_quaternions.creation_spherical(T const & rho, T const & theta, T const & phi1, T const & phi2);
-template<typename T> quaternion<T>  semipolar(T const & rho, T const & alpha, T const & theta1, T const & theta2);
-template<typename T> quaternion<T>  multipolar(T const & rho1, T const & theta1, T const & rho2, T const & theta2);
-template<typename T> quaternion<T>  cylindrospherical(T const & t, T const & radius, T const & longitude, T const & latitude);
-template<typename T> quaternion<T>  cylindrical(T const & r, T const & angle, T const & h1, T const & h2);
-
-// transcendentals
-template<typename T> quaternion<T>  exp(quaternion<T> const & q);
-template<typename T> quaternion<T>  cos(quaternion<T> const & q);
-template<typename T> quaternion<T>  sin(quaternion<T> const & q);
-template<typename T> quaternion<T>  tan(quaternion<T> const & q);
-template<typename T> quaternion<T>  cosh(quaternion<T> const & q);
-template<typename T> quaternion<T>  sinh(quaternion<T> const & q);
-template<typename T> quaternion<T>  tanh(quaternion<T> const & q);
-template<typename T> quaternion<T>  pow(quaternion<T> const & q, int n);
-
-} // namespace math
-} // namespace boost
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/quat_tests.html b/boost/libs/math/doc/html/math_toolkit/quat_tests.html deleted file mode 100644 index 1744e93e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/quat_tests.html +++ /dev/null @@ -1,61 +0,0 @@ - - - -Test Program - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The quaternion_test.cpp - test program tests quaternions specializations for float, double and long double - (sample output, with message - output enabled). -

-

- If you define the symbol TEST_VERBOSE, you will get additional output (verbose output); this will only - be helpfull if you enable message output at the same time, of course (by uncommenting - the relevant line in the test or by adding --log_level=messages - to your command line,...). In that case, and if you are running interactively, - you may in addition define the symbol BOOST_INTERACTIVE_TEST_INPUT_ITERATOR - to interactively test the input operator with input of your choice from the - standard input (instead of hard-coding it in the test). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/quat_todo.html b/boost/libs/math/doc/html/math_toolkit/quat_todo.html deleted file mode 100644 index c118d5e1..00000000 --- a/boost/libs/math/doc/html/math_toolkit/quat_todo.html +++ /dev/null @@ -1,61 +0,0 @@ - - - -To Do - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-To Do -

-
    -
  • - Improve testing. -
  • -
  • - Rewrite input operatore using Spirit (creates a dependency). -
  • -
  • - Put in place an Expression Template mechanism (perhaps borrowing from uBlas). -
  • -
  • - Use uBlas for the link with rotations (and move from the example - implementation to an efficient one). -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/rationale.html b/boost/libs/math/doc/html/math_toolkit/rationale.html deleted file mode 100644 index eb4b3c1d..00000000 --- a/boost/libs/math/doc/html/math_toolkit/rationale.html +++ /dev/null @@ -1,155 +0,0 @@ - - - -Rationale - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The implementation of <boost/cstdfloat.hpp> - is designed to utilize <float.h>, - defined in the 1989 C standard. The preprocessor is used to query certain preprocessor - definitions in <float.h> - such as FLT_MAX, DBL_MAX, etc. Based on the results of these queries, an attempt - is made to automatically detect the presence of built-in floating-point types - having specified widths. An unequivocal test requiring conformance with IEEE_floating_point - (IEC599) based on std::numeric_limits<>::is_iec559 - is performed with BOOST_STATIC_ASSERT. -

-

- In addition, this Boost implementation <boost/cstdfloat.hpp> - supports an 80-bit floating-point typedef - if it can be detected, and a 128-bit floating-point typedef - if it can be detected, provided that the underlying types conform with IEEE-754 precision extension - (provided std::numeric_limits<>::is_iec559 == true for this type). -

-

- The header <boost/cstdfloat.hpp> - makes the standardized floating-point typedefs - safely available in namespace boost without placing any names in namespace std. - The intention is to complement rather than compete with a potential future - C/C++ Standard Library that may contain these typedefs. - Should some future C/C++ standard include <stdfloat.h> and - <cstdfloat>, then <boost/cstdfloat.hpp> - will continue to function, but will become redundant and may be safely deprecated. -

-

- Because <boost/cstdfloat.hpp> - is a Boost header, its name conforms to the boost header naming conventions, - not the C++ Standard Library header naming conventions. -

-
- - - - - -
[Note]Note

- <boost/cstdfloat.hpp> - cannot synthesize or create a typedef - if the underlying type is not provided by the compiler. For example, - if a compiler does not have an underlying floating-point type with 128 bits - (highly sought-after in scientific and numeric programming), then float128_t and its corresponding least - and fast types are not provided by <boost/cstdfloat.hpp>. -

-
- - - - - -
[Warning]Warning

- If <boost/cstdfloat.hpp> - uses a compiler-specific non-standardized type (not - derived from float, - double, - or long double) - for one or more of its floating-point typedefs, - then there is no guarantee that specializations of numeric_limits<> will be available for these types. - Typically, specializations of numeric_limits<> will only be available for these - types if the compiler itself supports corresponding specializations for the - underlying type(s), exceptions are GCC's __float128 - type and Intel's _Quad type - which are explicitly supported via our own code. -

-
- - - - - -
[Warning]Warning

- As an implementation artifact, certain C macro names from <float.h> may possibly be visible to users of - <boost/cstdfloat.hpp>. - Don't rely on using these macros; they are not part of any Boost-specified - interface. Use std::numeric_limits<> - for floating-point ranges, etc. instead. -

-
- - - - - -
[Tip]Tip
-

- For best results, <boost/cstdfloat.hpp> - should be #included before - other headers that define generic code making use of standard library functions - defined in <cmath>. -

-

- This is because <boost/cstdfloat.hpp> - may define overloads of standard library functions where a non-standard type - (i.e. other than float, double, or long - double) is used for one of the specified - width types. If generic code (for example in another Boost.Math header) calls - a standard library function, then the correct overload will only be found - if these overloads are defined prior to the point of use. See overloading - template functions with float128_t and the implementation of cstdfloat.hpp for more details. -

-

- For this reason, making #include - <boost/cstdfloat.hpp> - the first include is usually best. -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/rationale0.html b/boost/libs/math/doc/html/math_toolkit/rationale0.html deleted file mode 100644 index 14a5cfc8..00000000 --- a/boost/libs/math/doc/html/math_toolkit/rationale0.html +++ /dev/null @@ -1,52 +0,0 @@ - - - -Rationale - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The greatest common divisor and least common multiple functions are greatly - used in some numeric contexts, including some of the other Boost libraries. - Centralizing these functions to one header improves code factoring and eases - maintainence. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/real_concepts.html b/boost/libs/math/doc/html/math_toolkit/real_concepts.html deleted file mode 100644 index 3bafb863..00000000 --- a/boost/libs/math/doc/html/math_toolkit/real_concepts.html +++ /dev/null @@ -1,1376 +0,0 @@ - - - -Conceptual Requirements for Real Number Types - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The functions and statistical distributions in this library can be used with - any type RealType that meets the conceptual requirements - given below. All the built-in floating-point types like double - will meet these requirements. (Built-in types are also called fundamental - types). -

-

- User-defined types that meet the conceptual requirements can also be used. - For example, with a thin - wrapper class one of the types provided with NTL - (RR) can be used. But now that Boost.Multiprecision - library is available, this has become the preferred real-number type, typically - cpp_dec_float - or cpp_bin_float. -

-

- Submissions of binding to other extended precision types would also still be - welcome. -

-

- The guiding principal behind these requirements is that a RealType - behaves just like a built-in floating-point type. -

-
- - Basic Arithmetic - Requirements -
-

- These requirements are common to all of the functions in this library. -

-

- In the following table r is an object of type RealType, cr and cr2 - are objects of type const RealType, - and ca is an object of type const - arithmetic-type (arithmetic types include all the built - in integers and floating point types). -

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Expression -

-
-

- Result Type -

-
-

- Notes -

-
-

- RealType(cr) -

-
-

- RealType -

-
-

- RealType is copy constructible. -

-
-

- RealType(ca) -

-
-

- RealType -

-
-

- RealType is copy constructible from the arithmetic types. -

-
-

- r = - cr -

-
-

- RealType& -

-
-

- Assignment operator. -

-
-

- r = - ca -

-
-

- RealType& -

-
-

- Assignment operator from the arithmetic types. -

-
-

- r += - cr -

-
-

- RealType& -

-
-

- Adds cr to r. -

-
-

- r += - ca -

-
-

- RealType& -

-
-

- Adds ar to r. -

-
-

- r -= - cr -

-
-

- RealType& -

-
-

- Subtracts cr from r. -

-
-

- r -= - ca -

-
-

- RealType& -

-
-

- Subtracts ca from r. -

-
-

- r *= - cr -

-
-

- RealType& -

-
-

- Multiplies r by cr. -

-
-

- r *= - ca -

-
-

- RealType& -

-
-

- Multiplies r by ca. -

-
-

- r /= - cr -

-
-

- RealType& -

-
-

- Divides r by cr. -

-
-

- r /= - ca -

-
-

- RealType& -

-
-

- Divides r by ca. -

-
-

- -r -

-
-

- RealType -

-
-

- Unary Negation. -

-
-

- +r -

-
-

- RealType& -

-
-

- Identity Operation. -

-
-

- cr + - cr2 -

-
-

- RealType -

-
-

- Binary Addition -

-
-

- cr + - ca -

-
-

- RealType -

-
-

- Binary Addition -

-
-

- ca + - cr -

-
-

- RealType -

-
-

- Binary Addition -

-
-

- cr - - cr2 -

-
-

- RealType -

-
-

- Binary Subtraction -

-
-

- cr - - ca -

-
-

- RealType -

-
-

- Binary Subtraction -

-
-

- ca - - cr -

-
-

- RealType -

-
-

- Binary Subtraction -

-
-

- cr * - cr2 -

-
-

- RealType -

-
-

- Binary Multiplication -

-
-

- cr * - ca -

-
-

- RealType -

-
-

- Binary Multiplication -

-
-

- ca * - cr -

-
-

- RealType -

-
-

- Binary Multiplication -

-
-

- cr / - cr2 -

-
-

- RealType -

-
-

- Binary Subtraction -

-
-

- cr / - ca -

-
-

- RealType -

-
-

- Binary Subtraction -

-
-

- ca / - cr -

-
-

- RealType -

-
-

- Binary Subtraction -

-
-

- cr == - cr2 -

-
-

- bool -

-
-

- Equality Comparison -

-
-

- cr == - ca -

-
-

- bool -

-
-

- Equality Comparison -

-
-

- ca == - cr -

-
-

- bool -

-
-

- Equality Comparison -

-
-

- cr != - cr2 -

-
-

- bool -

-
-

- Inequality Comparison -

-
-

- cr != - ca -

-
-

- bool -

-
-

- Inequality Comparison -

-
-

- ca != - cr -

-
-

- bool -

-
-

- Inequality Comparison -

-
-

- cr <= - cr2 -

-
-

- bool -

-
-

- Less than equal to. -

-
-

- cr <= - ca -

-
-

- bool -

-
-

- Less than equal to. -

-
-

- ca <= - cr -

-
-

- bool -

-
-

- Less than equal to. -

-
-

- cr >= - cr2 -

-
-

- bool -

-
-

- Greater than equal to. -

-
-

- cr >= - ca -

-
-

- bool -

-
-

- Greater than equal to. -

-
-

- ca >= - cr -

-
-

- bool -

-
-

- Greater than equal to. -

-
-

- cr < - cr2 -

-
-

- bool -

-
-

- Less than comparison. -

-
-

- cr < - ca -

-
-

- bool -

-
-

- Less than comparison. -

-
-

- ca < - cr -

-
-

- bool -

-
-

- Less than comparison. -

-
-

- cr > - cr2 -

-
-

- bool -

-
-

- Greater than comparison. -

-
-

- cr > - ca -

-
-

- bool -

-
-

- Greater than comparison. -

-
-

- ca > - cr -

-
-

- bool -

-
-

- Greater than comparison. -

-
-

- boost::math::tools::digits<RealType>() -

-
-

- int -

-
-

- The number of digits in the significand of RealType. -

-
-

- boost::math::tools::max_value<RealType>() -

-
-

- RealType -

-
-

- The largest representable number by type RealType. -

-
-

- boost::math::tools::min_value<RealType>() -

-
-

- RealType -

-
-

- The smallest representable number by type RealType. -

-
-

- boost::math::tools::log_max_value<RealType>() -

-
-

- RealType -

-
-

- The natural logarithm of the largest representable number by type - RealType. -

-
-

- boost::math::tools::log_min_value<RealType>() -

-
-

- RealType -

-
-

- The natural logarithm of the smallest representable number by type - RealType. -

-
-

- boost::math::tools::epsilon<RealType>() -

-
-

- RealType -

-
-

- The machine epsilon of RealType. -

-
-

- Note that: -

-
    -
  1. - The functions log_max_value - and log_min_value can be - synthesised from the others, and so no explicit specialisation is required. -
  2. -
  3. - The function epsilon can - be synthesised from the others, so no explicit specialisation is required - provided the precision of RealType does not vary at runtime (see the header - boost/math/bindings/rr.hpp - for an example where the precision does vary at runtime). -
  4. -
  5. - The functions digits, - max_value and min_value, all get synthesised automatically - from std::numeric_limits. However, if numeric_limits is not specialised for - type RealType, then you will get a compiler error when code tries to use - these functions, unless you explicitly specialise - them. For example if the precision of RealType varies at runtime, then - numeric_limits support - may not be appropriate, see boost/math/bindings/rr.hpp - for examples. -
  6. -
-
- - - - - -
[Warning]Warning
-

- If std::numeric_limits<> - is not specialized for type RealType - then the default float precision of 6 decimal digits will be used by other - Boost programs including: -

-

- Boost.Test: giving misleading error messages like -

-

- "difference between {9.79796} and {9.79796} exceeds 5.42101e-19%". -

-

- Boost.LexicalCast and Boost.Serialization when converting the number to a - string, causing potentially serious loss of accuracy on output. -

-

- Although it might seem obvious that RealType should require std::numeric_limits - to be specialized, this is not sensible for NTL::RR and - similar classes where the number of digits is a runtime - parameter (whereas for numeric_limits - everything has to be fixed at compile time). -

-
-
- - Standard - Library Support Requirements -
-

- Many (though not all) of the functions in this library make calls to standard - library functions, the following table summarises the requirements. Note that - most of the functions in this library will only call a small subset of the - functions listed here, so if in doubt whether a user-defined type has enough - standard library support to be useable the best advise is to try it and see! -

-

- In the following table r is an object of type RealType, cr1 and cr2 - are objects of type const RealType, - and i is an object of type int. -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Expression -

-
-

- Result Type -

-
-

- fabs(cr1) -

-
-

- RealType -

-
-

- abs(cr1) -

-
-

- RealType -

-
-

- ceil(cr1) -

-
-

- RealType -

-
-

- floor(cr1) -

-
-

- RealType -

-
-

- exp(cr1) -

-
-

- RealType -

-
-

- pow(cr1, - cr2) -

-
-

- RealType -

-
-

- sqrt(cr1) -

-
-

- RealType -

-
-

- log(cr1) -

-
-

- RealType -

-
-

- frexp(cr1, - &i) -

-
-

- RealType -

-
-

- ldexp(cr1, - i) -

-
-

- RealType -

-
-

- cos(cr1) -

-
-

- RealType -

-
-

- sin(cr1) -

-
-

- RealType -

-
-

- asin(cr1) -

-
-

- RealType -

-
-

- tan(cr1) -

-
-

- RealType -

-
-

- atan(cr1) -

-
-

- RealType -

-
-

- fmod(cr1) -

-
-

- RealType -

-
-

- round(cr1) -

-
-

- RealType -

-
-

- iround(cr1) -

-
-

- int -

-
-

- trunc(cr1) -

-
-

- RealType -

-
-

- itrunc(cr1) -

-
-

- int -

-
-

- Note that the table above lists only those standard library functions known - to be used (or likely to be used in the near future) by this library. The following - functions: acos, atan2, fmod, - cosh, sinh, - tanh, log10, - lround, llround, - ltrunc, lltrunc - and modf are not currently - used, but may be if further special functions are added. -

-

- Note that the round, trunc and modf - functions are not part of the current C++ standard: they are part of the additions - added to C99 which will likely be in the next C++ standard. There are Boost - versions of these provided as a backup, and the functions are always called - unqualified so that argument-dependent-lookup can take place. -

-

- In addition, for efficient and accurate results, a Lanczos - approximation is highly desirable. You may be able to adapt an existing - approximation from boost/math/special_functions/lanczos.hpp - or boost/math/bindings/detail/big_lanczos.hpp: - in the former case you will need change static_cast's - to lexical_cast's, and the - constants to strings (in order to ensure the coefficients - aren't truncated to long double) - and then specialise lanczos_traits - for type T. Otherwise you may have to hack libs/math/tools/lanczos_generator.cpp - to find a suitable approximation for your RealType. The code will still compile - if you don't do this, but both accuracy and efficiency will be greatly compromised - in any function that makes use of the gamma/beta/erf family of functions. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/refs.html b/boost/libs/math/doc/html/math_toolkit/refs.html deleted file mode 100644 index e9f2997c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/refs.html +++ /dev/null @@ -1,215 +0,0 @@ - - - -References - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - General - references -
-

- (Specific detailed sources for individual functions and distributions are given - at the end of each individual section). -

-

- DLMF (NIST Digital Library of Mathematical - Functions) is a replacement for the legendary Abramowitz and Stegun's - Handbook of Mathematical Functions (often called simply A&S), -

-

- M. Abramowitz and I. A. Stegun (Eds.) (1964) Handbook of Mathematical Functions - with Formulas, Graphs, and Mathematical Tables, National Bureau of Standards - Applied Mathematics Series, U.S. Government Printing Office, Washington, D.C. -

-

- NIST Handbook of Mathematical Functions Edited by: Frank W. J. Olver, University - of Maryland and National Institute of Standards and Technology, Maryland, Daniel - W. Lozier, National Institute of Standards and Technology, Maryland, Ronald - F. Boisvert, National Institute of Standards and Technology, Maryland, Charles - W. Clark, National Institute of Standards and Technology, Maryland and University - of Maryland. -

-

- ISBN: 978-0521140638 (paperback), 9780521192255 (hardback), July 2010, Cambridge - University Press. -

-

- NIST/SEMATECH - e-Handbook of Statistical Methods -

-

- Mathematica - Documentation: DiscreteDistributions The Wolfram Research Documentation - Center is a collection of online reference materials about Mathematica, CalculationCenter, - and other Wolfram Research products. -

-

- Mathematica - Documentation: ContinuousDistributions The Wolfram Research Documentation - Center is a collection of online reference materials about Mathematica, CalculationCenter, - and other Wolfram Research products. -

-

- Statistical Distributions (Wiley Series in Probability & Statistics) (Paperback) - by N.A.J. Hastings, Brian Peacock, Merran Evans, ISBN: 0471371246, Wiley 2000. -

-

- Extreme Value - Distributions, Theory and Applications Samuel Kotz & Saralees Nadarajah, - ISBN 978-1-86094-224-2 & 1-86094-224-5 Oct 2000, Chapter 1.2 discusses - the various extreme value distributions. -

-

- pugh.pdf - (application/pdf Object) Pugh Msc Thesis on the Lanczos approximation - to the gamma function. -

-

- N1514, - 03-0097, A Proposal to Add Mathematical Special Functions to the C++ Standard - Library (version 2), Walter E. Brown -

-
- - Calculators -
-

- We found (and used to create cross-check spot values - as far as their accuracy - allowed). -

-

- The Wolfram Functions Site - The Wolfram Functions Site - Providing the mathematical and scientific community - with the world's largest (and most authorititive) collection of formulas and - graphics about mathematical functions. -

-

- 100-decimal digit calculator - provided some spot values. -

-

- http://www.adsciengineering.com/bpdcalc/ - Binomial Probability Distribution Calculator. -

-
- - Other - Libraries -
-

- Cephes library by Shephen - Moshier and his book: -

-

- Methods and programs for mathematical functions, Stephen L B Moshier, Ellis - Horwood (1989) ISBN 0745802893 0470216093 provided inspiration. -

-

- CDFLIB Library of Fortran - Routines for Cumulative Distribution functions. -

-

- DCFLIB - C++ version. -

-

- DCDFLIB - C++ version DCDFLIB is a library of C++ routines, using double precision - arithmetic, for evaluating cumulative probability density functions. -

-

- http://www.softintegration.com/docs/package/chnagstat/ -

-

- NAG - libraries. -

-

- MathCAD -

-

- JMSL - Numerical Library (Java). -

-

- John F Hart, Computer Approximations, (1978) ISBN 0 088275 642-7. -

-

- William J Cody, Software Manual for the Elementary Functions, Prentice-Hall - (1980) ISBN 0138220646. -

-

- Nico Temme, Special Functions, An Introduction to the Classical Functions of - Mathematical Physics, Wiley, ISBN: 0471-11313-1 (1996) who also gave valueable - advice. -

-

- Statistics - Glossary, Valerie Easton and John H. McColl. -

-

- _R R Development Core Team (2010). R: - A language and environment for statistical computing. R Foundation for Statistical - Computing, Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org. -

-

- For use of R, see: -

-

- Jim Albert, Bayesian Computation with R, ISBN 978-0-387-71384-7. -

-

- C++ - Statistical Distributions in Boost - QuantNetwork forum discusses using - Boost.Math in finance. -

-

- Quantnet - Boost and computational finance. Robert Demming & Daniel J. Duffy, - Introduction to the C++ Boost Libraries - Volume I - Foundations and Volume - II ISBN 978-94-91028-01-4, Advanced Libraries and Applications, ISBN 978-94-91028-02-1 - (to be published in 2011). discusses application of Boost.Math, especially - in finance. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/relative_error.html b/boost/libs/math/doc/html/math_toolkit/relative_error.html deleted file mode 100644 index 41ceee6d..00000000 --- a/boost/libs/math/doc/html/math_toolkit/relative_error.html +++ /dev/null @@ -1,123 +0,0 @@ - - - -Relative Error - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Given an actual value a and a found value v - the relative error can be calculated from: -

-

- -

-

- However the test programs in the library use the symmetrical form: -

-

- -

-

- which measures relative difference and happens to be less - error prone in use since we don't have to worry which value is the "true" - result, and which is the experimental one. It guarantees to return a value - at least as large as the relative error. -

-

- Special care needs to be taken when one value is zero: we could either take - the absolute error in this case (but that's cheating as the absolute error - is likely to be very small), or we could assign a value of either 1 or infinity - to the relative error in this special case. In the test cases for the special - functions in this library, everything below a threshold is regarded as "effectively - zero", otherwise the relative error is assigned the value of 1 if only - one of the terms is zero. The threshold is currently set at std::numeric_limits<>::min(): in other words all denormalised numbers - are regarded as a zero. -

-

- All the test programs calculate quantized relative error, - whereas the graphs in this manual are produced with the actual error. - The difference is as follows: in the test programs, the test data is rounded - to the target real type under test when the program is compiled, so the error - observed will then be a whole number of units in the last place - either rounded up from the actual error, or rounded down (possibly to zero). - In contrast the true error is obtained by extending the - precision of the calculated value, and then comparing to the actual value: - in this case the calculated error may be some fraction of units in - the last place. -

-

- Note that throughout this manual and the test programs the relative error is - usually quoted in units of epsilon. However, remember that units - in the last place more accurately reflect the number of contaminated - digits, and that relative error can "wobble" - by a factor of 2 compared to units in the last place. - In other words: two implementations of the same function, whose maximum relative - errors differ by a factor of 2, can actually be accurate to the same number - of binary digits. You have been warned! -

-
- - The - Impossibility of Zero Error -
-

- For many of the functions in this library, it is assumed that the error is - "effectively zero" if the computation can be done with a number of - guard digits. However it should be remembered that if the result is a transcendental - number then as a point of principle we can never be sure that the - result is accurate to more than 1 ulp. This is an example of what http://en.wikipedia.org/wiki/William_Kahan - called http://en.wikipedia.org/wiki/Rounding#The_table-maker.27s_dilemma: - consider what happens if the first guard digit is a one, and the remaining - guard digits are all zero. Do we have a tie or not? Since the only thing we - can tell about a transcendental number is that its digits have no particular - pattern, we can never tell if we have a tie, no matter how many guard digits - we have. Therefore, we can never be completely sure that the result has been - rounded in the right direction. Of course, transcendental numbers that just - happen to be a tie - for however many guard digits we have - are extremely - rare, and get rarer the more guard digits we have, but even so.... -

-

- Refer to the classic text What - Every Computer Scientist Should Know About Floating-Point Arithmetic - for more information. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/remez.html b/boost/libs/math/doc/html/math_toolkit/remez.html deleted file mode 100644 index cb65328e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/remez.html +++ /dev/null @@ -1,538 +0,0 @@ - - - -The Remez Method - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The Remez algorithm - is a methodology for locating the minimax rational approximation to a function. - This short article gives a brief overview of the method, but it should not - be regarded as a thorough theoretical treatment, for that you should consult - your favorite textbook. -

-

- Imagine that you want to approximate some function f(x) by way of a rational - function R(x), where R(x) may be either a polynomial P(x) or a ratio of two - polynomials P(x)/Q(x) (a rational function). Initially we'll concentrate on - the polynomial case, as it's by far the easier to deal with, later we'll extend - to the full rational function case. -

-

- We want to find the "best" rational approximation, where "best" - is defined to be the approximation that has the least deviation from f(x). - We can measure the deviation by way of an error function: -

-

- Eabs(x) = f(x) - R(x) -

-

- which is expressed in terms of absolute error, but we can equally use relative - error: -

-

- Erel(x) = (f(x) - R(x)) / |f(x)| -

-

- And indeed in general we can scale the error function in any way we want, it - makes no difference to the maths, although the two forms above cover almost - every practical case that you're likely to encounter. -

-

- The minimax rational function R(x) is then defined to be the function that - yields the smallest maximal value of the error function. Chebyshev showed that - there is a unique minimax solution for R(x) that has the following properties: -

-
    -
  • - If R(x) is a polynomial of degree N, then there are N+2 unknowns: the N+1 - coefficients of the polynomial, and maximal value of the error function. -
  • -
  • - The error function has N+1 roots, and N+2 extrema (minima and maxima). -
  • -
  • - The extrema alternate in sign, and all have the same magnitude. -
  • -
-

- That means that if we know the location of the extrema of the error function - then we can write N+2 simultaneous equations: -

-

- R(xi) + (-1)iE = f(xi) -

-

- where E is the maximal error term, and xi are the abscissa values of the N+2 - extrema of the error function. It is then trivial to solve the simultaneous - equations to obtain the polynomial coefficients and the error term. -

-

- Unfortunately we don't know where the extrema of the error function - are located! -

-
- - The - Remez Method -
-

- The Remez method is an iterative technique which, given a broad range of assumptions, - will converge on the extrema of the error function, and therefore the minimax - solution. -

-

- In the following discussion we'll use a concrete example to illustrate the - Remez method: an approximation to the function ex   over the range [-1, 1]. -

-

- Before we can begin the Remez method, we must obtain an initial value for the - location of the extrema of the error function. We could "guess" these, - but a much closer first approximation can be obtained by first constructing - an interpolated polynomial approximation to f(x). -

-

- In order to obtain the N+1 coefficients of the interpolated polynomial we need - N+1 points (x0...xN): with our interpolated form passing through each of those - points that yields N+1 simultaneous equations: -

-

- f(xi) = P(xi) = c0 + c1xi ... + cNxiN -

-

- Which can be solved for the coefficients c0...cN in P(x). -

-

- Obviously this is not a minimax solution, indeed our only guarantee is that - f(x) and P(x) touch at N+1 locations, away from those points the error may - be arbitrarily large. However, we would clearly like this initial approximation - to be as close to f(x) as possible, and it turns out that using the zeros of - an orthogonal polynomial as the initial interpolation points is a good choice. - In our example we'll use the zeros of a Chebyshev polynomial as these are particularly - easy to calculate, interpolating for a polynomial of degree 4, and measuring - relative error we get the following error function: -

-

- -

-

- Which has a peak relative error of 1.2x10-3. -

-

- While this is a pretty good approximation already, judging by the shape of - the error function we can clearly do better. Before starting on the Remez method - propper, we have one more step to perform: locate all the extrema of the error - function, and store these locations as our initial Chebyshev control - points. -

-
- - - - - -
[Note]Note
-

- In the simple case of a polynomial approximation, by interpolating through - the roots of a Chebyshev polynomial we have in fact created a Chebyshev - approximation to the function: in terms of absolute - error this is the best a priori choice for the interpolated form - we can achieve, and typically is very close to the minimax solution. -

-

- However, if we want to optimise for relative error, - or if the approximation is a rational function, then the initial Chebyshev - solution can be quite far from the ideal minimax solution. -

-

- A more technical discussion of the theory involved can be found in this - online - course. -

-
-
- - Remez - Step 1 -
-

- The first step in the Remez method, given our current set of N+2 Chebyshev - control points xi, is to solve the N+2 simultaneous equations: -

-

- P(xi) + (-1)iE = f(xi) -

-

- To obtain the error term E, and the coefficients of the polynomial P(x). -

-

- This gives us a new approximation to f(x) that has the same error E - at each of the control points, and whose error function alternates - in sign at the control points. This is still not necessarily the - minimax solution though: since the control points may not be at the extrema - of the error function. After this first step here's what our approximation's - error function looks like: -

-

- -

-

- Clearly this is still not the minimax solution since the control points are - not located at the extrema, but the maximum relative error has now dropped - to 5.6x10-4. -

-
- - Remez - Step 2 -
-

- The second step is to locate the extrema of the new approximation, which we - do in two stages: first, since the error function changes sign at each control - point, we must have N+1 roots of the error function located between each pair - of N+2 control points. Once these roots are found by standard root finding - techniques, we know that N extrema are bracketed between each pair of roots, - plus two more between the endpoints of the range and the first and last roots. - The N+2 extrema can then be found using standard function minimisation techniques. -

-

- We now have a choice: multi-point exchange, or single point exchange. -

-

- In single point exchange, we move the control point nearest to the largest - extrema to the absissa value of the extrema. -

-

- In multi-point exchange we swap all the current control points, for the locations - of the extrema. -

-

- In our example we perform multi-point exchange. -

-
- - Iteration -
-

- The Remez method then performs steps 1 and 2 above iteratively until the control - points are located at the extrema of the error function: this is then the minimax - solution. -

-

- For our current example, two more iterations converges on a minimax solution - with a peak relative error of 5x10-4 and an error function that looks like: -

-

- -

-
- - Rational - Approximations -
-

- If we wish to extend the Remez method to a rational approximation of the form -

-

- f(x) = R(x) = P(x) / Q(x) -

-

- where P(x) and Q(x) are polynomials, then we proceed as before, except that - now we have N+M+2 unknowns if P(x) is of order N and Q(x) is of order M. This - assumes that Q(x) is normalised so that its leading coefficient is 1, giving - N+M+1 polynomial coefficients in total, plus the error term E. -

-

- The simultaneous equations to be solved are now: -

-

- P(xi) / Q(xi) + (-1)iE = f(xi) -

-

- Evaluated at the N+M+2 control points xi. -

-

- Unfortunately these equations are non-linear in the error term E: we can only - solve them if we know E, and yet E is one of the unknowns! -

-

- The method usually adopted to solve these equations is an iterative one: we - guess the value of E, solve the equations to obtain a new value for E (as well - as the polynomial coefficients), then use the new value of E as the next guess. - The method is repeated until E converges on a stable value. -

-

- These complications extend the running time required for the development of - rational approximations quite considerably. It is often desirable to obtain - a rational rather than polynomial approximation none the less: rational approximations - will often match more difficult to approximate functions, to greater accuracy, - and with greater efficiency, than their polynomial alternatives. For example, - if we takes our previous example of an approximation to ex, we obtained 5x10-4 accuracy - with an order 4 polynomial. If we move two of the unknowns into the denominator - to give a pair of order 2 polynomials, and re-minimise, then the peak relative - error drops to 8.7x10-5. That's a 5 fold increase in accuracy, for the same - number of terms overall. -

-
- - Practical - Considerations -
-

- Most treatises on approximation theory stop at this point. However, from a - practical point of view, most of the work involves finding the right approximating - form, and then persuading the Remez method to converge on a solution. -

-

- So far we have used a direct approximation: -

-

- f(x) = R(x) -

-

- But this will converge to a useful approximation only if f(x) is smooth. In - addition round-off errors when evaluating the rational form mean that this - will never get closer than within a few epsilon of machine precision. Therefore - this form of direct approximation is often reserved for situations where we - want efficiency, rather than accuracy. -

-

- The first step in improving the situation is generally to split f(x) into a - dominant part that we can compute accurately by another method, and a slowly - changing remainder which can be approximated by a rational approximation. We - might be tempted to write: -

-

- f(x) = g(x) + R(x) -

-

- where g(x) is the dominant part of f(x), but if f(x)/g(x) is approximately - constant over the interval of interest then: -

-

- f(x) = g(x)(c + R(x)) -

-

- Will yield a much better solution: here c is a constant - that is the approximate value of f(x)/g(x) and R(x) is typically tiny compared - to c. In this situation if R(x) is optimised for absolute - error, then as long as its error is small compared to the constant c, - that error will effectively get wiped out when R(x) is added to c. -

-

- The difficult part is obviously finding the right g(x) to extract from your - function: often the asymptotic behaviour of the function will give a clue, - so for example the function erfc - becomes proportional to e-x2/x as x becomes large. Therefore using: -

-

- erfc(z) = (C + R(x)) e-x2/x -

-

- as the approximating form seems like an obvious thing to try, and does indeed - yield a useful approximation. -

-

- However, the difficulty then becomes one of converging the minimax solution. - Unfortunately, it is known that for some functions the Remez method can lead - to divergent behaviour, even when the initial starting approximation is quite - good. Furthermore, it is not uncommon for the solution obtained in the first - Remez step above to be a bad one: the equations to be solved are generally - "stiff", often very close to being singular, and assuming a solution - is found at all, round-off errors and a rapidly changing error function, can - lead to a situation where the error function does not in fact change sign at - each control point as required. If this occurs, it is fatal to the Remez method. - It is also possible to obtain solutions that are perfectly valid mathematically, - but which are quite useless computationally: either because there is an unavoidable - amount of roundoff error in the computation of the rational function, or because - the denominator has one or more roots over the interval of the approximation. - In the latter case while the approximation may have the correct limiting value - at the roots, the approximation is nonetheless useless. -

-

- Assuming that the approximation does not have any fatal errors, and that the - only issue is converging adequately on the minimax solution, the aim is to - get as close as possible to the minimax solution before beginning the Remez - method. Using the zeros of a Chebyshev polynomial for the initial interpolation - is a good start, but may not be ideal when dealing with relative errors and/or - rational (rather than polynomial) approximations. One approach is to skew the - initial interpolation points to one end: for example if we raise the roots - of the Chebyshev polynomial to a positive power greater than 1 then the roots - will be skewed towards the middle of the [-1,1] interval, while a positive - power less than one will skew them towards either end. More usefully, if we - initially rescale the points over [0,1] and then raise to a positive power, - we can skew them to the left or right. Returning to our example of ex   over [-1,1], - the initial interpolated form was some way from the minimax solution: -

-

- -

-

- However, if we first skew the interpolation points to the left (rescale them - to [0, 1], raise to the power 1.3, and then rescale back to [-1,1]) we reduce - the error from 1.3x10-3  to 6x10-4: -

-

- -

-

- It's clearly still not ideal, but it is only a few percent away from our desired - minimax solution (5x10-4). -

-
- - Remez - Method Checklist -
-

- The following lists some of the things to check if the Remez method goes wrong, - it is by no means an exhaustive list, but is provided in the hopes that it - will prove useful. -

-
    -
  • - Is the function smooth enough? Can it be better separated into a rapidly - changing part, and an asymptotic part? -
  • -
  • - Does the function being approximated have any "blips" in it? - Check for problems as the function changes computation method, or if a - root, or an infinity has been divided out. The telltale sign is if there - is a narrow region where the Remez method will not converge. -
  • -
  • - Check you have enough accuracy in your calculations: remember that the - Remez method works on the difference between the approximation and the - function being approximated: so you must have more digits of precision - available than the precision of the approximation being constructed. So - for example at double precision, you shouldn't expect to be able to get - better than a float precision approximation. -
  • -
  • - Try skewing the initial interpolated approximation to minimise the error - before you begin the Remez steps. -
  • -
  • - If the approximation won't converge or is ill-conditioned from one starting - location, try starting from a different location. -
  • -
  • - If a rational function won't converge, one can minimise a polynomial (which - presents no problems), then rotate one term from the numerator to the denominator - and minimise again. In theory one can continue moving terms one at a time - from numerator to denominator, and then re-minimising, retaining the last - set of control points at each stage. -
  • -
  • - Try using a smaller interval. It may also be possible to optimise over - one (small) interval, rescale the control points over a larger interval, - and then re-minimise. -
  • -
  • - Keep absissa values small: use a change of variable to keep the abscissa - over, say [0, b], for some smallish value b. -
  • -
-
- - References -
-

- The original references for the Remez Method and it's extension to rational - functions are unfortunately in Russian: -

-

- Remez, E.Ya., Fundamentals of numerical methods for Chebyshev approximations, - "Naukova Dumka", Kiev, 1969. -

-

- Remez, E.Ya., Gavrilyuk, V.T., Computer development of certain approaches - to the approximate construction of solutions of Chebyshev problems nonlinearly - depending on parameters, Ukr. Mat. Zh. 12 (1960), 324-338. -

-

- Gavrilyuk, V.T., Generalization of the first polynomial algorithm - of E.Ya.Remez for the problem of constructing rational-fractional Chebyshev - approximations, Ukr. Mat. Zh. 16 (1961), 575-585. -

-

- Some English language sources include: -

-

- Fraser, W., Hart, J.F., On the computation of rational approximations - to continuous functions, Comm. of the ACM 5 (1962), 401-403, 414. -

-

- Ralston, A., Rational Chebyshev approximation by Remes' algorithms, - Numer.Math. 7 (1965), no. 4, 322-330. -

-

- A. Ralston, Rational Chebyshev approximation, Mathematical Methods - for Digital Computers v. 2 (Ralston A., Wilf H., eds.), Wiley, New - York, 1967, pp. 264-284. -

-

- Hart, J.F. e.a., Computer approximations, Wiley, New York - a.o., 1968. -

-

- Cody, W.J., Fraser, W., Hart, J.F., Rational Chebyshev approximation - using linear equations, Numer.Math. 12 (1968), 242-251. -

-

- Cody, W.J., A survey of practical rational and polynomial approximation - of functions, SIAM Review 12 (1970), no. 3, 400-423. -

-

- Barrar, R.B., Loeb, H.J., On the Remez algorithm for non-linear families, - Numer.Math. 15 (1970), 382-391. -

-

- Dunham, Ch.B., Convergence of the Fraser-Hart algorithm for rational - Chebyshev approximation, Math. Comp. 29 (1975), no. 132, 1078-1082. -

-

- G. L. Litvinov, Approximate construction of rational approximations - and the effect of error autocorrection, Russian Journal of Mathematical - Physics, vol.1, No. 3, 1994. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/result_type.html b/boost/libs/math/doc/html/math_toolkit/result_type.html deleted file mode 100644 index 76d11924..00000000 --- a/boost/libs/math/doc/html/math_toolkit/result_type.html +++ /dev/null @@ -1,153 +0,0 @@ - - - -Calculation of the Type of the Result - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The functions in this library are all overloaded to accept mixed floating point - (or mixed integer and floating point type) arguments. So for example: -

-
foo(1.0, 2.0);
-foo(1.0f, 2);
-foo(1.0, 2L);
-
-

- etc, are all valid calls, as long as "foo" is a function taking two - floating-point arguments. But that leaves the question: -

- -

- If all the arguments are of the same (floating point) - type then the result is the same type as the arguments. -

-

- Otherwise, the type of the result is computed using the following logic: -

-
    -
  1. - Any arguments that are not template arguments are disregarded from further - analysis. -
  2. -
  3. - For each type in the argument list, if that type is an integer type then - it is treated as if it were of type double for the purposes of further - analysis. -
  4. -
  5. - If any of the arguments is a user-defined class type, then the result type - is the first such class type that is constructible from all of the other - argument types. -
  6. -
  7. - If any of the arguments is of type long - double, then the result is of type - long double. -
  8. -
  9. - If any of the arguments is of type double, - then the result is of type double. -
  10. -
  11. - Otherwise the result is of type float. -
  12. -
-

- For example: -

-
cyl_bessel(2, 3.0);
-
-

- Returns a double result, as does: -

-
cyl_bessel(2, 3.0f);
-
-

- as in this case the integer first argument is treated as a double - and takes precedence over the float - second argument. To get a float - result we would need all the arguments to be of type float: -

-
cyl_bessel_j(2.0f, 3.0f);
-
-

- When one or more of the arguments is not a template argument then it doesn't - effect the return type at all, for example: -

-
sph_bessel(2, 3.0f);
-
-

- returns a float, since the first - argument is not a template argument and so doesn't effect the result: without - this rule functions that take explicitly integer arguments could never return - float. -

-

- And for user-defined types, all of the following return an NTL::RR result: -

-
cyl_bessel_j(0, NTL::RR(2));
-
-cyl_bessel_j(NTL::RR(2), 3);
-
-cyl_bessel_j(NTL::quad_float(2), NTL::RR(3));
-
-

- In the last case, quad_float - is convertible to RR, but not - vice-versa, so the result will be an NTL::RR. Note - that this assumes that you are using a patched - NTL library. -

-

- These rules are chosen to be compatible with the behaviour of ISO/IEC - 9899:1999 Programming languages - C and with the Draft - Technical Report on C++ Library Extensions, 2005-06-24, section 5.2.1, paragraph - 5. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots.html b/boost/libs/math/doc/html/math_toolkit/roots.html deleted file mode 100644 index ee1f7fb3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots.html +++ /dev/null @@ -1,138 +0,0 @@ - - - -Root finding - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- - -

- Several tools are provided to aid finding minima and roots of functions. -

-

- Some root-finding without - derivatives methods are bisection, - bracket and - solve, including use of TOMS - 748 algorithm. -

-

- For root-finding with derivatives - the methods of Newton-Raphson - iteration, Halley, - and Schröder - are implemented. -

-

- For locating minima of a function, a Brent - minima finding example is provided. -

-

- There are several fully-worked root-finding - examples, including: -

- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/bad_guess.html b/boost/libs/math/doc/html/math_toolkit/roots/bad_guess.html deleted file mode 100644 index 25e524f4..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/bad_guess.html +++ /dev/null @@ -1,778 +0,0 @@ - - - -The Effect of a Poor Initial Guess - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- It's instructive to take our "toy" example algorithms, and use - deliberately bad initial guesses to see how the various root finding algorithms - fair. We'll start with the cubed root, and using the cube root of 500 as - the test case: -

-
--------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Initial Guess= -

-
-

- -500% (≈1.323) -

-
-

- -100% (≈3.97) -

-
-

- -50% (≈3.96) -

-
-

- -20% (≈6.35) -

-
-

- -10% (≈7.14) -

-
-

- -5% (≈7.54) -

-
-

- 5% (≈8.33) -

-
-

- 10% (≈8.73) -

-
-

- 20% (≈9.52) -

-
-

- 50% (≈11.91) -

-
-

- 100% (≈15.87) -

-
-

- 500 (≈47.6) -

-
-

- bracket_and_solve_root -

-
-

- 12 -

-
-

- 8 -

-
-

- 8 -

-
-

- 10 -

-
-

- 11 -

-
-

- 11 -

-
-

- 11 -

-
-

- 11 -

-
-

- 11 -

-
-

- 11 -

-
-

- 7 -

-
-

- 13 -

-
-

- newton_iterate -

-
-

- 12 -

-
-

- 7 -

-
-

- 7 -

-
-

- 5 -

-
-

- 5 -

-
-

- 4 -

-
-

- 4 -

-
-

- 5 -

-
-

- 5 -

-
-

- 6 -

-
-

- 7 -

-
-

- 9 -

-
-

- halley_iterate -

-
-

- 7 -

-
-

- 4 -

-
-

- 4 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 4 -

-
-

- 4 -

-
-

- 6 -

-
-

- schroder_iterate -

-
-

- 11 -

-
-

- 6 -

-
-

- 6 -

-
-

- 4 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 4 -

-
-

- 5 -

-
-

- 5 -

-
-

- 8 -

-
-

- As you can see bracket_and_solve_root - is relatively insensitive to starting location - as long as you don't start - many orders of magnitude away from the root it will take roughly the same - number of steps to bracket the root and solve it. On the other hand the derivative-based - methods are slow to start, but once they have some digits correct they increase - precision exceptionally fast: they are therefore quite sensitive to the initial - starting location. -

-

- The next table shows the number of iterations required to find the second - radius of an ellipse with first radius 50 and arc-length 500: -

-
--------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Initial Guess= -

-
-

- -500% (≈20.6) -

-
-

- -100% (≈61.81) -

-
-

- -50% (≈61.81) -

-
-

- -20% (≈98.9) -

-
-

- -10% (≈111.3) -

-
-

- -5% (≈117.4) -

-
-

- 5% (≈129.8) -

-
-

- 10% (≈136) -

-
-

- 20% (≈148.3) -

-
-

- 50% (≈185.4) -

-
-

- 100% (≈247.2) -

-
-

- 500 (≈741.7) -

-
-

- bracket_and_solve_root -

-
-

- 11 -

-
-

- 5 -

-
-

- 5 -

-
-

- 8 -

-
-

- 8 -

-
-

- 7 -

-
-

- 7 -

-
-

- 8 -

-
-

- 9 -

-
-

- 8 -

-
-

- 6 -

-
-

- 10 -

-
-

- newton_iterate -

-
-

- 4 -

-
-

- 4 -

-
-

- 4 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 4 -

-
-

- 4 -

-
-

- 4 -

-
-

- halley_iterate -

-
-

- 4 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 2 -

-
-

- 2 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- schroder_iterate -

-
-

- 4 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 2 -

-
-

- 2 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- 3 -

-
-

- Interestingly this function is much more resistant to a poor initial guess - when using derivatives. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/bad_roots.html b/boost/libs/math/doc/html/math_toolkit/roots/bad_roots.html deleted file mode 100644 index 4c463afb..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/bad_roots.html +++ /dev/null @@ -1,127 +0,0 @@ - - - -Examples Where Root Finding Goes Wrong - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There are many reasons why root root finding can fail, here are just a few - of the more common examples: -

-

- - Local - Minima -

-

- If you start in the wrong place, such as z0 here: -

-

- -

-

- Then almost any root-finding algorithm will descend into a local minima rather - than find the root. -

-

- - Flatlining -

-

- In this example, we're starting from a location (z0) where the first derivative - is essentially zero: -

-

- -

-

- In this situation the next iteration will shoot off to infinity (assuming - we're using derivatives that is). Our code guards against this by insisting - that the root is always bracketed, and then never stepping outside those - bounds. In a case like this, no root finding algorithm can do better than - bisecting until the root is found. -

-

- Note that there is no scale on the graph, we have seen examples of this situation - occur in practice even when several decimal places of the initial - guess z0 are correct. -

-

- This is really a special case of a more common situation where root finding - with derivatives is divergent. Consider starting at - z0 in this case: -

-

- -

-

- An initial Newton step would take you further from the root than you started, - as will all subsequent steps. -

-

- - Micro-stepping - / Non-convergence -

-

- Consider starting at z0 in this situation: -

-

- -

-

- The first derivative is essentially infinite, and the second close to zero - (and so offers no correction if we use it), as a result we take a very small - first step. In the worst case situation, the first step is so small - perhaps - even so small that subtracting from z0 has no effect at the current working - precision - that our algorithm will assume we are at the root already and - terminate. Otherwise we will take lot's of very small steps which never converge - on the root: our algorithms will protect against that by reverting to bisection. -

-

- An example of this situation would be trying to find the root of e-1/z2 - - this function has a single root at z = 0, but for z0 < - 0 neither Newton nor Halley steps will ever converge on the root, - and for z0 > 0 the steps are actually divergent. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/brent_minima.html b/boost/libs/math/doc/html/math_toolkit/roots/brent_minima.html deleted file mode 100644 index 672ded34..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/brent_minima.html +++ /dev/null @@ -1,612 +0,0 @@ - - - -Locating Function Minima using Brent's algorithm - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/tools/minima.hpp>
-
-
template <class F, class T>
-std::pair<T, T> brent_find_minima(F f, T min, T max, int bits);
-
-template <class F, class T>
-std::pair<T, T> brent_find_minima(F f, T min, T max, int bits, boost::uintmax_t& max_iter);
-
-
- - Description -
-

- These two functions locate the minima of the continuous function f - using Brent's - method: specifically it uses quadratic interpolation to locate the - minima, or if that fails, falls back to a golden-section - search. -

-

- Parameters -

-
-

-
-
f
-

- The function to minimise: a function object (functor) that should be - smooth over the range [min, max], with no maxima - occurring in that interval. -

-
min
-

- The lower endpoint of the range in which to search for the minima. -

-
max
-

- The upper endpoint of the range in which to search for the minima. -

-
bits
-

- The number of bits precision to which the minima should be found.
- Note that in principle, the minima can not be located to greater accuracy - than the square root of machine epsilon (for 64-bit double, sqrt(1e-16)≅1e-8), - therefore the value of bits will be ignored if - it's greater than half the number of bits in the mantissa of T. -

-
max_iter
-

- The maximum number of iterations to use in the algorithm, if not provided - the algorithm will just keep on going until the minima is found. -

-
-
-

- Returns: -

-

- A pair of type T containing - the value of the abscissa at the minima and the value of f(x) - at the minima. -

-
- - - - - -
[Tip]Tip
-

- Defining BOOST_MATH_INSTRUMENT will show some parameters, for example: -

-
Type T is double
-bits = 24, maximum 26
-tolerance = 1.19209289550781e-007
-seeking minimum in range min-4 to 1.33333333333333
-maximum iterations 18446744073709551615
-10 iterations.
-
-
-
- - Brent - Minimisation Example -
-

- As a demonstration, we replicate this Wikipedia - example minimising the function y= (x+3)(x-1)2. -

-

- It is obvious from the equation and the plot that there is a minimum at exactly - one and the value of the function at one is exactly zero. -

-
- - - - - -
[Tip]Tip

- This observation shows that an analytical or Closed-form - expression solution always beats brute-force hands-down for both - speed and precision. -

-

- -

-

- First an include is needed: -

-
#include <boost/math/tools/minima.hpp>
-
-

- This function is encoded in C++ as function object (functor) using double precision thus: -

-
struct funcdouble
-{
-  double operator()(double const& x)
-  { //
-    return (x + 3) * (x - 1) * (x - 1); // (x + 3)(x - 1)^2
-  }
-};
-
-

- The Brent function is conveniently accessed through a using - statement (noting sub-namespace ::tools). -

-

- The search minimum and maximum are chosen as -4 to 4/3 (as in the Wikipedia - example). -

-
- - - - - -
[Tip]Tip

- S A Stage (reference 6) reports that the Brent algorithm is slow - to start, but fast to converge, so choosing a tight min-max - range is good. -

-

- For simplicity, we set the precision parameter bits - to std::numeric_limits<double>::digits, which is effectively the maximum - possible i.e. std::numeric_limits<double>::digits/2. Nor do we provide a maximum iterations - parameter max_iter, (perhaps - unwidely), so the function will iterate until it finds a minimum. -

-
int bits = std::numeric_limits<double>::digits;
-
-std::pair<double, double> r = brent_find_minima(funcdouble(), -4., 4. / 3, bits);
-
-std::cout.precision(std::numeric_limits<double>::digits10);
-std::cout << "x at minimum = " << r.first << ", f(" << r.first << ") = " << r.second << std::endl;
-// x at minimum = 1.00000000112345, f(1.00000000112345) = 5.04852568272458e-018
-
-

- The resulting std::pair - contains the minimum close to one and the minimum value close to zero. -

-
x at minimum = 1.00000000112345, f(1.00000000112345) = 5.04852568272458e-018
-
-

- The differences from the expected one and zero - are less than the uncertainty (for double) - 1.5e-008 calculated from sqrt(std::numeric_limits<double>::digits) == 53. -

-

- We can use it like this to check that the two values are close-enough to - those expected, -

-
 using boost::math::fpc::is_close_to;
- using boost::math::fpc::is_small;
-
-double uncertainty = sqrt(std::numeric_limits<double>::digits);
-is_close_to(1., r.first, uncertainty);
-is_small(r.second, uncertainty);
-
-x == 1 (compared to uncertainty 0.00034527) is true
-f(x) == 0 (compared to uncertainty 0.00034527) is true
-
-

- It is possible to make this comparison more generally with a templated function, - returning true when this criterion - is met, for example: -

-
//
-template <class T = double>
-bool close(T expect, T got, T tolerance)
-{
-  using boost::math::fpc::is_close_to;
-  using boost::math::fpc::is_small;
-
-  if (is_small<T>(expect, tolerance))
-  {
-    return is_small<T>(got, tolerance);
-  }
-  else
-  {
-    return is_close_to<T>(expect, got, tolerance);
-  }
-}
-
-

- In practical applications, we might want to know how many iterations, and - maybe to limit iterations and perhaps to trade some loss of precision for - speed, for example: -

-
const boost::uintmax_t maxit = 20;
-boost::uintmax_t it = maxit;
-r = brent_find_minima(funcdouble(), -4., 4. / 3, bits, it);
-std::cout << "x at minimum = " << r.first << ", f(" << r.first << ") = " << r.second
-<< " after " << it << " iterations. " << std::endl;
-
-

- limits to a maximum of 20 iterations (a reasonable estimate for this application, - even for higher precision shown later). -

-

- The parameter it is updated - to return the actual number of iterations (so it may be useful to also keep - a record of the limit in maxit). -

-

- It is neat to avoid showing insignificant digits by computing the number - of decimal digits to display. -

-
std::streamsize prec = static_cast<int>(2 + sqrt(bits));  // Number of significant decimal digits.
-std::cout << "Showing " << bits << " bits precision with " << prec
-  << " decimal digits from tolerance " << sqrt(std::numeric_limits<double>::epsilon())
-  << std::endl;
-std::streamsize precision = std::cout.precision(prec); // Save.
-
-std::cout << "x at minimum = " << r.first << ", f(" << r.first << ") = " << r.second
-  << " after " << it << " iterations. " << std::endl;
-
-
Showing 53 bits precision with 9 decimal digits from tolerance 1.49011611938477e-008
-x at minimum = 1, f(1) = 5.04852568e-018
-
-

- We can also half the number of precision bits from 52 to 26. -

-
bits /= 2; // Half digits precision (effective maximum).
-double epsilon_2 = boost::math::pow<-(std::numeric_limits<double>::digits/2 - 1), double>(2);
-
-std::cout << "Showing " << bits << " bits precision with " << prec
-  << " decimal digits from tolerance " << sqrt(epsilon_2)
-  << std::endl;
-std::streamsize precision = std::cout.precision(prec); // Save.
-
-boost::uintmax_t it = maxit;
-r = brent_find_minima(funcdouble(), -4., 4. / 3, bits, it);
-std::cout << "x at minimum = " << r.first << ", f(" << r.first << ") = " << r.second << std::endl;
-std::cout << it << " iterations. " << std::endl;
-
-

- showing no change in the result and no change in the number of iterations, - as expected. -

-

- It is only if we reduce the precision to a quarter, specifying only 13 precision - bits -

-
bits /= 2; // Quarter precision.
-double epsilon_4 = boost::math::pow<-(std::numeric_limits<double>::digits / 4 - 1), double>(2);
-
-std::cout << "Showing " << bits << " bits precision with " << prec
-  << " decimal digits from tolerance " << sqrt(epsilon_4)
-  << std::endl;
-std::streamsize precision = std::cout.precision(prec); // Save.
-
-boost::uintmax_t it = maxit;
-r = brent_find_minima(funcdouble(), -4., 4. / 3, bits, it);
-std::cout << "x at minimum = " << r.first << ", f(" << r.first << ") = " << r.second
-<< ", after " << it << " iterations. " << std::endl;
-
-

- that we reduce the number of iterations from 10 to 7 and the result significantly - differing from one and zero. -

-
Showing 13 bits precision with 9 decimal digits from tolerance 0.015625
-x at minimum = 0.9999776, f(0.9999776) = 2.0069572e-009 after  7 iterations.
-
-
- - Templating - on floating-point type -
-

- If we want to switch the floating-point type, then the functor must be revised. - Since the functor is stateless, the easiest option is to simply make operator() - a template member function: -

-
struct func
-{
-  template <class T>
-  T operator()(T const& x)
-  { //
-    return (x + 3) * (x - 1) * (x - 1); //
-  }
-};
-
-

- The brent_find_minima function - can now be used in template form. -

-
std::cout.precision(std::numeric_limits<long double>::digits10);
-long double bracket_min = -4.;
-long double bracket_max = 4. / 3;
-int bits = std::numeric_limits<long double>::digits;
-const boost::uintmax_t maxit = 20;
-boost::uintmax_t it = maxit;
-
-std::pair<long double, long double> r = brent_find_minima(func(), bracket_min, bracket_max, bits, it);
-std::cout << "x at minimum = " << r.first << ", f(" << r.first << ") = " << r.second
-  << ", after " << it << " iterations. " << std::endl;
-
-

- The form shown uses the floating-point type long - double by deduction, but it is also - possible to be more explicit, for example: -

-
std::pair<long double, long double> r = brent_find_minima<func, long double>
-(func(), bracket_min, bracket_max, bits, it);
-
-

- In order to show the use of multiprecision below, it may be convenient to - write a templated function to use this. -

-
template <class T>
-void show_minima()
-{
-  using boost::math::tools::brent_find_minima;
-  try
-  { // Always use try'n'catch blocks with Boost.Math to get any error messages.
-
-    int bits = std::numeric_limits<T>::digits/2; // Maximum is digits/2;
-    std::streamsize prec = static_cast<int>(2 + sqrt(bits));  // Number of significant decimal digits.
-    std::streamsize precision = std::cout.precision(prec); // Save.
-
-    std::cout << "\n\nFor type  " << typeid(T).name()
-      << ",\n  epsilon = " << std::numeric_limits<T>::epsilon()
-      // << ", precision of " << bits << " bits"
-      << ",\n  the maximum theoretical precision from Brent minimization is " << sqrt(std::numeric_limits<T>::epsilon())
-      << "\n  Displaying to std::numeric_limits<T>::digits10 " << prec << " significant decimal digits."
-      << std::endl;
-
-    const boost::uintmax_t maxit = 20;
-    boost::uintmax_t it = maxit;
-    // Construct using string, not double, avoids loss of precision.
-    //T bracket_min = static_cast<T>("-4");
-    //T bracket_max = static_cast<T>("1.3333333333333333333333333333333333333333333333333");
-
-    //  Construction from double may cause loss of precision for multiprecision types like cpp_bin_float.
-    // but brackets values are good enough for using Brent minimization.
-    T bracket_min = static_cast<T>(-4);
-    T bracket_max = static_cast<T>(1.3333333333333333333333333333333333333333333333333);
-
-    std::pair<T, T> r = brent_find_minima<func, T>(func(), bracket_min, bracket_max, bits, it);
-
-    std::cout << "  x at minimum = " << r.first << ", f(" << r.first << ") = " << r.second;
-    if (it < maxit)
-    {
-      std::cout << ",\n  met " << bits << " bits precision" << ", after " << it << " iterations." << std::endl;
-    }
-    else
-    {
-      std::cout << ",\n  did NOT meet " << bits << " bits precision" << " after " << it << " iterations!" << std::endl;
-    }
-    // Check that result is that expected (compared to theoretical uncertainty).
-    T uncertainty = sqrt(std::numeric_limits<T>::epsilon());
-    //std::cout << std::boolalpha << "x == 1 (compared to uncertainty " << uncertainty << ") is " << close(static_cast<T>(1), r.first, uncertainty) << std::endl;
-    //std::cout << std::boolalpha << "f(x) == (0 compared to uncertainty " << uncertainty << ") is " << close(static_cast<T>(0), r.second, uncertainty) << std::endl;
-    // Problems with this using multiprecision with expression template on?
-    std::cout.precision(precision);  // Restore.
-  }
-  catch (const std::exception& e)
-  { // Always useful to include try & catch blocks because default policies
-    // are to throw exceptions on arguments that cause errors like underflow, overflow.
-    // Lacking try & catch blocks, the program will abort without a message below,
-    // which may give some helpful clues as to the cause of the exception.
-    std::cout <<
-      "\n""Message from thrown exception was:\n   " << e.what() << std::endl;
-  }
-} // void show_minima()
-
-

- We can use this with all built-in floating-point types, for example -

-
show_minima<float>();
-show_minima<double>();
-show_minima<long double>();
-
-

- and, on platforms that provide it, a 128-bit - quad type. (See float128). -

-

- For this optional include, the build should define the macro BOOST_HAVE_QUADMATH: -

-
#ifdef BOOST_HAVE_QUADMATH  // Define only if GCC or Intel and have quadmath.lib or .dll library available.
-  using boost::multiprecision::float128;
-#endif
-
-

- or -

-
// #ifndef _MSC_VER
-#ifdef BOOST_HAVE_QUADMATH  // Define only if GCC or Intel and have quadmath.lib or .dll library available.
-  show_minima<float128>(); // Needs quadmath_snprintf, sqrtQ, fabsq that are in in quadmath library.
-#endif
-
-
- - Multiprecision -
-

- If a higher precision than double - (or long double - if that is more precise) is required, then this is easily achieved using - Boost.Multiprecision - with some includes from -

-
#include <boost/multiprecision/cpp_dec_float.hpp> // For decimal boost::multiprecision::cpp_dec_float_50.
-#include <boost/multiprecision/cpp_bin_float.hpp> // For binary boost::multiprecision::cpp_bin_float_50;
-
-

- and some typdefs. -

-
using boost::multiprecision::cpp_bin_float_50; // binary.
-
-typedef boost::multiprecision::number<boost::multiprecision::cpp_bin_float<50>,
-  boost::multiprecision::et_on>
-  cpp_bin_float_50_et_on;  // et_on is default so is same as cpp_bin_float_50.
-
-typedef boost::multiprecision::number<boost::multiprecision::cpp_bin_float<50>,
-  boost::multiprecision::et_off>
-  cpp_bin_float_50_et_off;
-
-using boost::multiprecision::cpp_dec_float_50; // decimal.
-
-typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<50>,
-  boost::multiprecision::et_on> // et_on is default so is same as cpp_dec_float_50.
-  cpp_dec_float_50_et_on;
-
-typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<50>,
-  boost::multiprecision::et_off>
-  cpp_dec_float_50_et_off;
-
-

- Using thus -

-
std::cout.precision(std::numeric_limits<cpp_bin_float_50>::digits10);
-
-cpp_bin_float_50 fpv("-1.2345");
-cpp_bin_float_50 absv;
-
-absv = fpv < static_cast<cpp_bin_float_50>(0) ? -fpv : fpv;
-std::cout << fpv << ' ' << absv << std::endl;
-
-
-int bits = std::numeric_limits<cpp_bin_float_50>::digits / 2 - 2;
-
-cpp_bin_float_50 bracket_min = static_cast<cpp_bin_float_50>("-4");
-cpp_bin_float_50 bracket_max = static_cast<cpp_bin_float_50>("1.3333333333333333333333333333333333333333333333333");
-
-std::cout << bracket_min << " " << bracket_max << std::endl;
-const boost::uintmax_t maxit = 20;
-boost::uintmax_t it = maxit;
-std::pair<cpp_bin_float_50, cpp_bin_float_50> r = brent_find_minima(func(), bracket_min, bracket_max, bits, it);
-
-std::cout << "x at minimum = " << r.first << ", f(" << r.first << ") = " << r.second
-// x at minimum = 1, f(1) = 5.04853e-018
-  << ", after " << it << " iterations. " << std::endl;
-
-close(static_cast<cpp_bin_float_50>(1), r.first, sqrt(std::numeric_limits<cpp_bin_float_50>::epsilon()));
-
-

- and with our show function -

-
show_minima<cpp_bin_float_50_et_on>(); //
-
-
For type  class boost::multiprecision::number<class boost::multiprecision::backends::cpp_bin_float<50, 10, void, int, 0, 0>, 1>,
-  epsilon = 5.3455294202e-51,
-  the maximum theoretical precision from Brent minimization is 7.311312755e-26
-  Displaying to std::numeric_limits<T>::digits10 11 significant decimal digits.
-  x at minimum = 1, f(1) = 5.6273022713e-58,
-  met 84 bits precision, after 14 iterations.
-
-
For type  class boost::multiprecision::number<class boost::multiprecision::backends::cpp_bin_float<50, 10, void, int, 0, 0>, 1>,
-
-
- - - - - -
[Tip]Tip

- One can usually rely on template argument deduction to avoid specifying - the verbose multiprecision types, but great care in needed with the type - of the values provided to avoid confusing the compiler. -

-
- - - - - -
[Tip]Tip

- Using std::cout.precision(std::numeric_limits<T>::digits10); - or std::cout.precision(std::numeric_limits<T>::max_digits10); - during debugging may be wise because it gives some warning if construction - of multiprecision values involves unintended conversion from double by showing trailing zero or random - digits after max_digits10, - that is 17 for double, digit - 18... may be just noise. -

-

- The complete example code is at brent_minimise_example.cpp. -

-
- - Implementation -
-

- This is a reasonably faithful implementation of Brent's algorithm. -

-
- - References -
-
    -
  1. - Brent, R.P. 1973, Algorithms for Minimization without Derivatives, (Englewood - Cliffs, NJ: Prentice-Hall), Chapter 5. -
  2. -
  3. - Numerical Recipes in C, The Art of Scientific Computing, Second Edition, - William H. Press, Saul A. Teukolsky, William T. Vetterling, and Brian - P. Flannery. Cambridge University Press. 1988, 1992. -
  4. -
  5. - An algorithm with guaranteed convergence for finding a zero of a function, - R. P. Brent, The Computer Journal, Vol 44, 1971. -
  6. -
  7. - Brent's method - in Wikipedia. -
  8. -
  9. - Z. Zhang, An Improvement to the Brent's Method, IJEA, vol. 2, pp. 2 to - 26, May 31, 2011. http://www.cscjournals.org/manuscript/Journals/IJEA/volume2/Issue1/IJEA-7.pdf -
  10. -
  11. - Steven A. Stage, Comments on An Improvement to the Brent's Method (and - comparison of various algorithms) http://www.cscjournals.org/manuscript/Journals/IJEA/volume4/Issue1/IJEA-33.pdf - Stage concludes that Brent's algorithm is slow to start, but fast to - finish convergence, and has good accuracy. -
  12. -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/polynomials.html b/boost/libs/math/doc/html/math_toolkit/roots/polynomials.html deleted file mode 100644 index 4b988cc2..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/polynomials.html +++ /dev/null @@ -1,312 +0,0 @@ - - - -Polynomials - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/tools/polynomial.hpp>
-
-
namespace boost { namespace math {
-namespace tools {
-
-template <class T>
-class polynomial
-{
-public:
-   // typedefs:
-   typedef typename std::vector<T>::value_type value_type;
-   typedef typename std::vector<T>::size_type  size_type;
-
-   // construct:
-   polynomial(){}
-   template <class U>
-   polynomial(const U* data, unsigned order);
-   template <class I>
-   polynomial(I first, I last);
-   template <class U>
-   explicit polynomial(const U& point);
-   polynomial(std::initializer_list<T> l); // C++11
-
-   // access:
-   size_type size()const;
-   size_type degree()const;
-   value_type& operator[](size_type i);
-   const value_type& operator[](size_type i)const;
-   std::vector<T> const& data() const;
-   std::vector<T>& data();
-   explicit operator bool() const;
-
-   // modify:
-   void set_zero();
-
-   // operators:
-   template <class U>
-   polynomial& operator +=(const U& value);
-   template <class U>
-   polynomial& operator -=(const U& value);
-   template <class U>
-   polynomial& operator *=(const U& value);
-   template <class U>
-   polynomial& operator /=(const U& value);
-   template <class U>
-   polynomial& operator %=(const U& value);
-   template <class U>
-   polynomial& operator +=(const polynomial<U>& value);
-   template <class U>
-   polynomial& operator -=(const polynomial<U>& value);
-   template <class U>
-   polynomial& operator *=(const polynomial<U>& value);
-   template <class U>
-   polynomial& operator /=(const polynomial<U>& value);
-   template <class U>
-   polynomial& operator %=(const polynomial<U>& value);
-};
-
-template <class T>
-polynomial<T> operator + (const polynomial<T>& a, const polynomial<T>& b);
-template <class T>
-polynomial<T> operator - (const polynomial<T>& a, const polynomial<T>& b);
-template <class T>
-polynomial<T> operator * (const polynomial<T>& a, const polynomial<T>& b);
-template <class T>
-polynomial<T> operator / (const polynomial<T>& a, const polynomial<T>& b);
-template <class T>
-polynomial<T> operator % (const polynomial<T>& a, const polynomial<T>& b);
-
-template <class T, class U>
-polynomial<T> operator + (const polynomial<T>& a, const U& b);
-template <class T, class U>
-polynomial<T> operator - (const polynomial<T>& a, const U& b);
-template <class T, class U>
-polynomial<T> operator * (const polynomial<T>& a, const U& b);
-template <class T, class U>
-polynomial<T> operator / (const polynomial<T>& a, const U& b);
-template <class T, class U>
-polynomial<T> operator % (const polynomial<T>& a, const U& b);
-
-template <class U, class T>
-polynomial<T> operator + (const U& a, const polynomial<T>& b);
-template <class U, class T>
-polynomial<T> operator - (const U& a, const polynomial<T>& b);
-template <class U, class T>
-polynomial<T> operator * (const U& a, const polynomial<T>& b);
-
-template <class T>
-polynomial<T> operator - (const polynomial<T>& a);
-
-template <class T>
-polynomial<T> operator >>= (const U& a);
-template <class T>
-polynomial<T> operator >> (polynomial<T> const &a, const U& b);
-template <class T>
-polynomial<T> operator <<= (const U& a);
-template <class T>
-polynomial<T> operator << (polynomial<T> const &a, const U& b);
-
-template <class T>
-bool operator == (const polynomial<T> &a, const polynomial<T> &b);
-template <class T>
-bool operator != (const polynomial<T> &a, const polynomial<T> &b);
-
-template <class T>
-polynomial<T> pow(polynomial<T> base, int exp);
-
-template <class charT, class traits, class T>
-std::basic_ostream<charT, traits>& operator <<
-   (std::basic_ostream<charT, traits>& os, const polynomial<T>& poly);
-
-template <typename T>
-std::pair< polynomial<T>, polynomial<T> >
-quotient_remainder(const polynomial<T>& a, const polynomial<T>& b);
-
-} //    namespace tools
-}} //    namespace boost { namespace math
-
-
- - Description -
-

- This is a somewhat trivial class for polynomial manipulation. -

-

- See -

-
    -
  • - Polynomial - and -
  • -
  • - Donald E. Knuth, The Art of Computer Programming: Volume 2, Third edition, - (1998) Chapter 4.6.1, Algorithm D: Division of polynomials over a field. -
  • -
-

- Implementation is currently of the "naive" variety, with 𝑶(N2) multiplication, - for example. This class should not be used in high-performance computing - environments: it is intended for the simple manipulation of small polynomials, - typically generated for special function approximation. -

-

- It does has division for polynomials over a field - (here floating point, complex, etc) and over a unique factorization domain - (integers). Division of polynomials over a field is compatible with Euclidean GCD. -

-

- Advanced manipulations: the FFT, factorisation etc are not currently provided. - Submissions for these are of course welcome :-) -

-
- - Polynomial - Arithmetic Examples -
-

- First include the essential polynomial header (and others) to make the example: -

-
#include <boost/math/tools/polynomial.hpp>
-
-

- and some using statements are convenient: -

-
using std::string;
-using std::exception;
-using std::cout;
-using std::abs;
-using std::pair;
-
-using namespace boost::math;
-using namespace boost::math::tools; // for polynomial
-using boost::lexical_cast;
-
-

- Store the coefficients in a convenient way to access them, then create some - polynomials using construction from an iterator range, and finally output - in a 'pretty' formula format. -

-
- - - - - -
[Tip]Tip

- Although we might conventionally write a polynomial from left to right - in descending order of degree, Boost.Math stores in ascending - order of degree. -

-
Read/write for humans:    3x^3 - 4x^2 - 6x + 10
-Boost polynomial storage: [ 10, -6, -4, 3 ]
-
-
boost::array<double, 4> const d3a = {{10, -6, -4, 3}};
-polynomial<double> const a(d3a.begin(), d3a.end());
-
-// With C++11 and later, you can also use initializer_list construction.
-polynomial<double> const b{{-2.0, 1.0}};
-
-// formula_format() converts from Boost storage to human notation.
-cout << "a = " << formula_format(a)
-<< "\nb = " << formula_format(b) << "\n\n";
-
-

- for output: -

-
a = 3x^3 - 4x^2 - 6x + 10
-b = x - 2
-
-
// Now we can do arithmetic with the usual infix operators: + - * / and %.
-polynomial<double> s = a + b;
-cout << "a + b = " << formula_format(s) << "\n";
-polynomial<double> d = a - b;
-cout << "a - b = " << formula_format(d) << "\n";
-polynomial<double> p = a * b;
-cout << "a * b = " << formula_format(p) << "\n";
-polynomial<double> q = a / b;
-cout << "a / b = " << formula_format(q) << "\n";
-polynomial<double> r = a % b;
-cout << "a % b = " << formula_format(r) << "\n";
-
-

- for output -

-
a + b = 3x^3 - 4x^2 - 5x + 8
-a - b = 3x^3 - 4x^2 - 7x + 12
-a * b = 3x^4 - 10x^3 + 2x^2 + 22x - 20
-a / b = 3x^2 + 2x - 2
-a % b = 6
-
-
- - Division, - Quotient and Remainder -
-

- Division is a special case where you can calculate two for the price of one. -

-

- Actually, quotient and remainder are always calculated together due to the - nature of the algorithm: the infix operators return one result and throw - the other away. -

-

- If you are doing a lot of division and want both the quotient and remainder, - then you don't want to do twice the work necessary. -

-

- In that case you can call the underlying function, quotient_remainder, - to get both results together as a pair. -

-
  pair< polynomial<double>, polynomial<double> > result;
-  result = quotient_remainder(a, b);
-// Reassure ourselves that the result is the same.
-  BOOST_ASSERT(result.first == q);
-  BOOST_ASSERT(result.second == r);
-
-

- The source code is at polynomial_arithmetic.cpp -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/rational.html b/boost/libs/math/doc/html/math_toolkit/roots/rational.html deleted file mode 100644 index 453e1f00..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/rational.html +++ /dev/null @@ -1,232 +0,0 @@ - - - -Polynomial and Rational Function Evaluation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/tools/rational.hpp>
-
-
// Polynomials:
-template <std::size_t N, class T, class V>
-V evaluate_polynomial(const T(&poly)[N], const V& val);
-
-template <std::size_t N, class T, class V>
-V evaluate_polynomial(const boost::array<T,N>& poly, const V& val);
-
-template <class T, class U>
-U evaluate_polynomial(const T* poly, U z, std::size_t count);
-
-// Even polynomials:
-template <std::size_t N, class T, class V>
-V evaluate_even_polynomial(const T(&poly)[N], const V& z);
-
-template <std::size_t N, class T, class V>
-V evaluate_even_polynomial(const boost::array<T,N>& poly, const V& z);
-
-template <class T, class U>
-U evaluate_even_polynomial(const T* poly, U z, std::size_t count);
-
-// Odd polynomials
-template <std::size_t N, class T, class V>
-V evaluate_odd_polynomial(const T(&a)[N], const V& z);
-
-template <std::size_t N, class T, class V>
-V evaluate_odd_polynomial(const boost::array<T,N>& a, const V& z);
-
-template <class T, class U>
-U evaluate_odd_polynomial(const T* poly, U z, std::size_t count);
-
-// Rational Functions:
-template <std::size_t N, class T, class V>
-V evaluate_rational(const T(&a)[N], const T(&b)[N], const V& z);
-
-template <std::size_t N, class T, class V>
-V evaluate_rational(const boost::array<T,N>& a, const boost::array<T,N>& b, const V& z);
-
-template <class T, class U, class V>
-V evaluate_rational(const T* num, const U* denom, V z, unsigned count);
-
-
- - Description -
-

- Each of the functions come in three variants: a pair of overloaded functions - where the order of the polynomial or rational function is evaluated at compile - time, and an overload that accepts a runtime variable for the size of the - coefficient array. Generally speaking, compile time evaluation of the array - size results in better type safety, is less prone to programmer errors, and - may result in better optimised code. The polynomial evaluation functions - in particular, are specialised for various array sizes, allowing for loop - unrolling, and one hopes, optimal inline expansion. -

-
template <std::size_t N, class T, class V>
-V evaluate_polynomial(const T(&poly)[N], const V& val);
-
-template <std::size_t N, class T, class V>
-V evaluate_polynomial(const boost::array<T,N>& poly, const V& val);
-
-template <class T, class U>
-U evaluate_polynomial(const T* poly, U z, std::size_t count);
-
-

- Evaluates the polynomial - described by the coefficients stored in poly. -

-

- If the size of the array is specified at runtime, then the polynomial most - have order count-1 with count coefficients. - Otherwise it has order N-1 with N - coefficients. -

-

- Coefficients should be stored such that the coefficients for the xi terms - are in poly[i]. -

-

- The types of the coefficients and of variable z may - differ as long as *poly is convertible to type U. - This allows, for example, for the coefficient table to be a table of integers - if this is appropriate. -

-
template <std::size_t N, class T, class V>
-V evaluate_even_polynomial(const T(&poly)[N], const V& z);
-
-template <std::size_t N, class T, class V>
-V evaluate_even_polynomial(const boost::array<T,N>& poly, const V& z);
-
-template <class T, class U>
-U evaluate_even_polynomial(const T* poly, U z, std::size_t count);
-
-

- As above, but evaluates an even polynomial: one where all the powers of - z are even numbers. Equivalent to calling evaluate_polynomial(poly, z*z, count). -

-
template <std::size_t N, class T, class V>
-V evaluate_odd_polynomial(const T(&a)[N], const V& z);
-
-template <std::size_t N, class T, class V>
-V evaluate_odd_polynomial(const boost::array<T,N>& a, const V& z);
-
-template <class T, class U>
-U evaluate_odd_polynomial(const T* poly, U z, std::size_t count);
-
-

- As above but evaluates a polynomial where all the powers are odd numbers. - Equivalent to evaluate_polynomial(poly+1, z*z, - count-1) * - z + poly[0]. -

-
template <std::size_t N, class T, class U, class V>
-V evaluate_rational(const T(&num)[N], const U(&denom)[N], const V& z);
-
-template <std::size_t N, class T, class U, class V>
-V evaluate_rational(const boost::array<T,N>& num, const boost::array<U,N>& denom, const V& z);
-
-template <class T, class U, class V>
-V evaluate_rational(const T* num, const U* denom, V z, unsigned count);
-
-

- Evaluates the rational function (the ratio of two polynomials) described - by the coefficients stored in num and demom. -

-

- If the size of the array is specified at runtime then both polynomials most - have order count-1 with count coefficients. - Otherwise both polynomials have order N-1 with N - coefficients. -

-

- Array num describes the numerator, and demon - the denominator. -

-

- Coefficients should be stored such that the coefficients for the xi terms - are in num[i] and denom[i]. -

-

- The types of the coefficients and of variable v may - differ as long as *num and *denom - are convertible to type V. This allows, for example, - for one or both of the coefficient tables to be a table of integers if this - is appropriate. -

-

- These functions are designed to safely evaluate the result, even when the - value z is very large. As such they do not take advantage - of compile time array sizes to make any optimisations. These functions are - best reserved for situations where z may be large: if - you can be sure that numerical overflow will not occur then polynomial evaluation - with compile-time array sizes may offer slightly better performance. -

-
- - Implementation -
-

- Polynomials are evaluated by Horners - method. If the array size is known at compile time then the functions - dispatch to size-specific implementations that unroll the evaluation loop. -

-

- Rational evaluation is by Horners - method: with the two polynomials being evaluated in parallel to make - the most of the processors floating-point pipeline. If v - is greater than one, then the polynomials are evaluated in reverse order - as polynomials in 1/v: this avoids unnecessary numerical - overflow when the coefficients are large. -

-

- Both the polynomial and rational function evaluation algorithms can be tuned - using various configuration macros to provide optimal performance for a particular - combination of compiler and platform. This includes support for second-order - Horner's methods. The various options are documented - here. However, the performance benefits to be gained from these are - marginal on most current hardware, consequently it's best to run the performance test application - before changing the default settings. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/root_comparison.html b/boost/libs/math/doc/html/math_toolkit/roots/root_comparison.html deleted file mode 100644 index 64fd73c3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/root_comparison.html +++ /dev/null @@ -1,55 +0,0 @@ - - - -Comparison of Root Finding Algorithms - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/root_comparison/cbrt_comparison.html b/boost/libs/math/doc/html/math_toolkit/roots/root_comparison/cbrt_comparison.html deleted file mode 100644 index 76f0bf86..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/root_comparison/cbrt_comparison.html +++ /dev/null @@ -1,1588 +0,0 @@ - - - -Comparison of Cube Root Finding Algorithms - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- In the table below, the cube root of 28 was computed for three fundamental - types floating-point types, and one Boost.Multiprecision - type cpp_bin_float - using 50 decimal digit precision, using four algorithms. -

-

- The 'exact' answer was computed using a 100 decimal digit type: -

-
cpp_bin_float_100 full_answer ("3.036588971875662519420809578505669635581453977248111123242141654169177268411884961770250390838097895");
-
-

- Times were measured using Boost.Timer - using class cpu_timer. -

-
    -
  • - Its is the number of iterations taken to find - the root. -
  • -
  • - Times is the CPU time-taken in arbitrary units. -
  • -
  • - Norm is a normalized time, in comparison to the - quickest algorithm (with value 1.00). -
  • -
  • - Dis is the distance from the nearest representation - of the 'exact' root in bits. Distance from the 'exact' answer is measured - by using function Boost.Math - float_distance. One or two bits distance means that all results - are effectively 'correct'. Zero means 'exact' - the nearest representable - value for the floating-point type. -
  • -
-

- The cube-root function is a simple function, and is a contrived example - for root-finding. It does allow us to investigate some of the factors controlling - efficiency that may be extrapolated to more complex functions. -

-

- The program used was root_finding_algorithms.cpp. - 100000 evaluations of each floating-point type and algorithm were used - and the CPU times were judged from repeat runs to have an uncertainty of - 10 %. Comparing MSVC for double - and long double - (which are identical on this patform) may give a guide to uncertainty of - timing. -

-

- The requested precision was set as follows: -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Precision Requested -

-
-

- TOMS748 -

-
-

- numeric_limits<T>::digits - 2 -

-
-

- Newton -

-
-

- floor(numeric_limits<T>::digits * 0.6) -

-
-

- Halley -

-
-

- floor(numeric_limits<T>::digits * 0.4) -

-
-

- Schröder -

-
-

- floor(numeric_limits<T>::digits * 0.4) -

-
-
    -
  • - The C++ Standard cube root function std::cbrt - is only defined for built-in or fundamental types, so cannot be used - with any User-Defined floating-point types like Boost.Multiprecision. - This, and that the cube function is so impeccably-behaved, allows the - implementer to use many tricks to achieve a fast computation. On some - platforms,std::cbrt appeared several times as quick - as the more general boost::math::cbrt, - on other platforms / compiler options boost::math::cbrt - is noticeably faster. In general, the results are highly dependent - on the code-generation / processor architecture selection compiler - options used. One can assume that the standard library will have been - compiled with options nearly optimal for the platform - it was installed on, where as the user has more choice over the options - used for Boost.Math. Pick something too general/conservative and performance - suffers, while selecting options that make use of the latest instruction - set opcodes speed's things up noticeably. -
  • -
  • - Two compilers in optimise mode were compared: GCC 4.9.1 using Netbeans - IDS and Microsoft Visual Studio 2013 (Update 1) on the same hardware. - The number of iterations seemed consistent, but the relative run-times - surprisingly different. -
  • -
  • - boost::math::cbrt allows use with any - user-defined floating-point type, conveniently Boost.Multiprecision. - It too can take some advantage of the good-behaviour of the cube function, - compared to the more general implementation in the nth root-finding - examples. For example, it uses a polynomial approximation to generate - a better guess than dividing the exponent by three, and can avoid the - complex checks in Newton-Raphson - iteration required to prevent the search going wildly off-track. - For a known precision, it may also be possible to fix the number of - iterations, allowing inlining and loop unrolling. It also algebraically - simplifies the Halley steps leading to a big reduction in the number - of floating point operations required compared to a "black box" - implementation that calculates the derivatives seperately and then - combines them in the Halley code. Typically, it was found that computation - using type double took - a few times longer when using the various root-finding algorithms directly - rather than the hand coded/optimized cbrt - routine. -
  • -
  • - The importance of getting a good guess can be seen by the iteration - count for the multiprecision case: here we "cheat" a little - and use the cube-root calculated to double precision as the initial - guess. The limitation of this tactic is that the range of possible - (exponent) values may be less than the multiprecision type. -
  • -
  • - For fundamental - types, there was little to choose between the three derivative - methods, but for cpp_bin_float, - Newton-Raphson - iteration was twice as fast. Note that the cube-root is an extreme - test case as the cost of calling the functor is so cheap that the runtimes - are largely dominated by the complexity of the iteration code. -
  • -
  • - Compiling with optimisation halved computation times, and any differences - between algorithms became nearly negligible. The optimisation speed-up - of the TOMS - Algorithm 748: enclosing zeros of continuous functions was - especially noticable. -
  • -
  • - Using a multiprecision type like cpp_bin_float_50 - for a precision of 50 decimal digits took a lot longer, as expected - because most computation uses software rather than 64-bit floating-point - hardware. Speeds are often more than 50 times slower. -
  • -
  • - Using cpp_bin_float_50, - TOMS Algorithm - 748: enclosing zeros of continuous functions was much slower - showing the benefit of using derivatives. Newton-Raphson - iteration was found to be twice as quick as either of the second-derivative - methods: this is an extreme case though, the function and its derivatives - are so cheap to compute that we're really measuring the complexity - of the boilerplate root-finding code. -
  • -
  • - For multiprecision types only one or two extra iterations - are needed to get the remaining 35 digits, whatever the algorithm used. - (The time taken was of course much greater for these types). -
  • -
  • - Using a 100 decimal-digit type only doubled the time and required only - a very few more iterations, so the cost of extra precision is mainly - the underlying cost of computing more digits, not in the way the algorithm - works. This confirms previous observations using NTL - A Library for doing Number Theory high-precision types. -
  • -
-
- - Program - root_finding_algorithms.cpp, Microsoft Visual C++ version 12.0, Dinkumware - standard library version 610, Win32, x64
1000000 evaluations of each - of 5 root_finding algorithms.
-
-
-

Table 12.1. Cube root(28) for float, double, long double and cpp_bin_float_50

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algorithm -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- cbrt -

-
-

- 0 -

-
-

- 46875 -

-
-

- 1.0 -

-
-

- 0 -

-
- -

- 0 -

-
-

- 46875 -

-
-

- 1.0 -

-
-

- 1 -

-
- -

- 0 -

-
-

- 46875 -

-
-

- 1.0 -

-
-

- 1 -

-
- -

- 0 -

-
-

- 4906250 -

-
-

- 1.1 -

-
-

- 0 -

-
-
-

- TOMS748 -

-
-

- 8 -

-
-

- 234375 -

-
-

- 5.0 -

-
-

- -1 -

-
- -

- 11 -

-
-

- 437500 -

-
-

- 9.3 -

-
-

- 2 -

-
- -

- 11 -

-
-

- 437500 -

-
-

- 9.3 -

-
-

- 2 -

-
- -

- 7 -

-
-

- 66218750 -

-
-

- 15. -

-
-

- -2 -

-
-
-

- Newton -

-
-

- 5 -

-
-

- 109375 -

-
-

- 2.3 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 125000 -

-
-

- 2.7 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 140625 -

-
-

- 3.0 -

-
-

- 0 -

-
- -

- 2 -

-
-

- 4531250 -

-
-

- 1.0 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 3 -

-
-

- 125000 -

-
-

- 2.7 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 156250 -

-
-

- 3.3 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 156250 -

-
-

- 3.3 -

-
-

- 0 -

-
- -

- 2 -

-
-

- 10625000 -

-
-

- 2.3 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 4 -

-
-

- 140625 -

-
-

- 3.0 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 187500 -

-
-

- 4.0 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 203125 -

-
-

- 4.3 -

-
-

- 0 -

-
- -

- 2 -

-
-

- 13109375 -

-
-

- 2.9 -

-
-

- 0 -

-
-
-
-
- - Program - root_finding_algorithms.cpp, GNU C++ version 4.9.2, GNU libstdc++ version - 20141030, Win32, x64
1000000 evaluations of each of 5 root_finding - algorithms.
-
-
-

Table 12.2. Cube root(28) for float, double, long double and cpp_bin_float_50

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algorithm -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- cbrt -

-
-

- 0 -

-
-

- 46875 -

-
-

- 1.0 -

-
-

- 0 -

-
- -

- 0 -

-
-

- 46875 -

-
-

- 1.0 -

-
-

- 0 -

-
- -

- 0 -

-
-

- 46875 -

-
-

- 1.0 -

-
-

- 0 -

-
- -

- 0 -

-
-

- 3500000 -

-
-

- 1.1 -

-
-

- 0 -

-
-
-

- TOMS748 -

-
-

- 8 -

-
-

- 187500 -

-
-

- 4.0 -

-
-

- -1 -

-
- -

- 11 -

-
-

- 406250 -

-
-

- 8.7 -

-
-

- 2 -

-
- -

- 10 -

-
-

- 609375 -

-
-

- 13. -

-
-

- -1 -

-
- -

- 7 -

-
-

- 44531250 -

-
-

- 14. -

-
-

- -2 -

-
-
-

- Newton -

-
-

- 5 -

-
-

- 93750 -

-
-

- 2.0 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 109375 -

-
-

- 2.3 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 171875 -

-
-

- 3.7 -

-
-

- 0 -

-
- -

- 2 -

-
-

- 3140625 -

-
-

- 1.0 -

-
-

- -1 -

-
-
-

- Halley -

-
-

- 3 -

-
-

- 93750 -

-
-

- 2.0 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 125000 -

-
-

- 2.7 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 218750 -

-
-

- 4.7 -

-
-

- 0 -

-
- -

- 2 -

-
-

- 7171875 -

-
-

- 2.3 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 4 -

-
-

- 109375 -

-
-

- 2.3 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 171875 -

-
-

- 3.7 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 281250 -

-
-

- 6.0 -

-
-

- 0 -

-
- -

- 2 -

-
-

- 8703125 -

-
-

- 2.8 -

-
-

- 0 -

-
-
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/root_comparison/elliptic_comparison.html b/boost/libs/math/doc/html/math_toolkit/roots/root_comparison/elliptic_comparison.html deleted file mode 100644 index 63a413e7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/root_comparison/elliptic_comparison.html +++ /dev/null @@ -1,1870 +0,0 @@ - - - -Comparison of Elliptic Integral Root Finding Algoritghms - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- A second example compares four root finding algorithms for locating the - second radius of an ellipse with first radius 28 and arc length 300, for - four floating-point types, float, - double, long - double and a Boost.Multiprecision - type cpp_bin_float_50. -

-

- Which is to say we're solving: -

-
4xE(sqrt(1 - 282 / x2)) - 300 = 0
-

- In each case the target accuracy was set using our "recomended" - accuracy limits (or at least limits that make a good starting point - which - is likely to give close to full accuracy without resorting to unnecessary - iterations). -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Precision Requested -

-
-

- TOMS748 -

-
-

- numeric_limits<T>::digits - 2 -

-
-

- Newton -

-
-

- floor(numeric_limits<T>::digits * 0.6) -

-
-

- Halley -

-
-

- floor(numeric_limits<T>::digits * 0.4) -

-
-

- Schröder -

-
-

- floor(numeric_limits<T>::digits * 0.4) -

-
-

- Tests used Microsoft Visual Studio 2013 (Update 1) and GCC 4.9.1 using - source code root_elliptic_finding.cpp. -

-

- The timing uncertainty (especially using MSVC) is at least 5% of normalized - time 'Norm'. -

-

- To pick out the 'best' and 'worst' algorithms are highlighted in blue and - red. More than one result can be 'best' when normalized times are indistinguishable - within the uncertainty. -

-
- - Program - root_elliptic_finding.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version - 610, Win32 Compiled in optimise mode., _X86_SSE2 -
-
-

Table 12.12. root with radius 28 and arc length 300) for float, double, long - double and cpp_bin_float_50 types, using _X86_SSE2

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 5 -

-
-

- 515 -

-
-

- 1.43 -

-
-

- -1 -

-
- -

- 9 -

-
-

- 968 -

-
-

- 1.82 -

-
-

- 1 -

-
- -

- 9 -

-
-

- 968 -

-
-

- 1.82 -

-
-

- 1 -

-
- -

- 11 -

-
-

- 871875 -

-
-

- 1.53 -

-
-

- -3 -

-
-
-

- Newton -

-
-

- 3 -

-
-

- 453 -

-
-

- 1.26 -

-
-

- -1 -

-
- -

- 4 -

-
-

- 640 -

-
-

- 1.21 -

-
-

- 1 -

-
- -

- 4 -

-
-

- 640 -

-
-

- 1.21 -

-
-

- 1 -

-
- -

- 5 -

-
-

- 685937 -

-
-

- 1.20 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 2 -

-
-

- 359 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 531 -

-
-

- 1.00 -

-
-

- 3 -

-
- -

- 3 -

-
-

- 531 -

-
-

- 1.00 -

-
-

- 3 -

-
- -

- 4 -

-
-

- 570312 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 3 -

-
-

- 484 -

-
-

- 1.35 -

-
-

- -1 -

-
- -

- 6 -

-
-

- 1000 -

-
-

- 1.88 -

-
-

- 1 -

-
- -

- 6 -

-
-

- 984 -

-
-

- 1.85 -

-
-

- 1 -

-
- -

- 5 -

-
-

- 742187 -

-
-

- 1.30 -

-
-

- -2 -

-
-
-
-
- - Program - root_elliptic_finding.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version - 610, Win32 Compiled in optimise mode., _X64_AVX -
-
-

Table 12.13. root with radius 28 and arc length 300) for float, double, long - double and cpp_bin_float_50 types, using _X64_AVX

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 5 -

-
-

- 500 -

-
-

- 1.33 -

-
-

- -1 -

-
- -

- 9 -

-
-

- 1046 -

-
-

- 1.72 -

-
-

- 1 -

-
- -

- 9 -

-
-

- 1062 -

-
-

- 1.70 -

-
-

- 1 -

-
- -

- 11 -

-
-

- 698437 -

-
-

- 1.54 -

-
-

- -3 -

-
-
-

- Newton -

-
-

- 3 -

-
-

- 484 -

-
-

- 1.29 -

-
-

- -1 -

-
- -

- 4 -

-
-

- 734 -

-
-

- 1.21 -

-
-

- 1 -

-
- -

- 4 -

-
-

- 687 -

-
-

- 1.10 -

-
-

- 1 -

-
- -

- 5 -

-
-

- 545312 -

-
-

- 1.20 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 2 -

-
-

- 375 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 609 -

-
-

- 1.00 -

-
-

- 3 -

-
- -

- 3 -

-
-

- 625 -

-
-

- 1.00 -

-
-

- 3 -

-
- -

- 4 -

-
-

- 453125 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 3 -

-
-

- 546 -

-
-

- 1.46 -

-
-

- -1 -

-
- -

- 6 -

-
-

- 1109 -

-
-

- 1.82 -

-
-

- 1 -

-
- -

- 6 -

-
-

- 1187 -

-
-

- 1.90 -

-
-

- 1 -

-
- -

- 5 -

-
-

- 564062 -

-
-

- 1.24 -

-
-

- -2 -

-
-
-
-
- - Program - root_elliptic_finding.cpp, - GNU C++ version 4.9.2, GNU libstdc++ version 20141030, Win32 Compiled in - optimise mode., _X64_SSE2 -
-
-

Table 12.14. root with radius 28 and arc length 300) for float, double, long - double and cpp_bin_float_50 types, using _X64_SSE2

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 5 -

-
-

- 328 -

-
-

- 1.31 -

-
-

- -1 -

-
- -

- 8 -

-
-

- 875 -

-
-

- 1.51 -

-
-

- 0 -

-
- -

- 8 -

-
-

- 1109 -

-
-

- 1.69 -

-
-

- 4 -

-
- -

- 11 -

-
-

- 479687 -

-
-

- 1.49 -

-
-

- -3 -

-
-
-

- Newton -

-
-

- 3 -

-
-

- 328 -

-
-

- 1.31 -

-
-

- -1 -

-
- -

- 4 -

-
-

- 671 -

-
-

- 1.16 -

-
-

- 1 -

-
- -

- 4 -

-
-

- 781 -

-
-

- 1.19 -

-
-

- 1 -

-
- -

- 5 -

-
-

- 387500 -

-
-

- 1.20 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 2 -

-
-

- 250 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 578 -

-
-

- 1.00 -

-
-

- 1 -

-
- -

- 3 -

-
-

- 656 -

-
-

- 1.00 -

-
-

- 7 -

-
- -

- 4 -

-
-

- 321875 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 3 -

-
-

- 375 -

-
-

- 1.50 -

-
-

- -1 -

-
- -

- 4 -

-
-

- 734 -

-
-

- 1.27 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 828 -

-
-

- 1.26 -

-
-

- 3 -

-
- -

- 5 -

-
-

- 414062 -

-
-

- 1.29 -

-
-

- -2 -

-
-
-
-

- Remarks: -

-
    -
  • - The function being solved is now moderately expensive to call, and - twice as expensive to call when obtaining the derivative than when - not. Consequently there is very little improvement in moving from a - derivative free method, to Newton iteration. However, once you've calculated - the first derivative the second comes almost for free, consequently - the third order methods (Halley) does much the best. -
  • -
  • - Of the two second order methods, Halley does best as would be expected: - the Schroder method offers better guarantees of quadratic - convergence, while Halley relies on a smooth function with a single - root to give cubic convergence. It's not entirely - clear why Schroder iteration often does worse than Newton. -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/root_comparison/root_n_comparison.html b/boost/libs/math/doc/html/math_toolkit/roots/root_comparison/root_n_comparison.html deleted file mode 100644 index 33cecd49..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/root_comparison/root_n_comparison.html +++ /dev/null @@ -1,5286 +0,0 @@ - - - -Comparison of Nth-root Finding Algorithms - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- A second example compares four generalized nth-root finding algorithms - for various n-th roots (5, 7 and 13) of a single value 28.0, for four floating-point - types, float, double, long - double and a Boost.Multiprecision - type cpp_bin_float_50. - In each case the target accuracy was set using our "recomended" - accuracy limits (or at least limits that make a good starting point - which - is likely to give close to full accuracy without resorting to unnecessary - iterations). -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Precision Requested -

-
-

- TOMS748 -

-
-

- numeric_limits<T>::digits - 2 -

-
-

- Newton -

-
-

- floor(numeric_limits<T>::digits * 0.6) -

-
-

- Halley -

-
-

- floor(numeric_limits<T>::digits * 0.4) -

-
-

- Schröder -

-
-

- floor(numeric_limits<T>::digits * 0.4) -

-
-

- Tests used Microsoft Visual Studio 2013 (Update 1) and GCC 4.9.1 using - source code root_n_finding_algorithms.cpp. -

-

- The timing uncertainty (especially using MSVC) is at least 5% of normalized - time 'Norm'. -

-

- To pick out the 'best' and 'worst' algorithms are highlighted in blue and - red. More than one result can be 'best' when normalized times are indistinguishable - within the uncertainty. -

-
- - Program - root_n_finding_algorithms.cpp, Microsoft Visual C++ version 12.0, Dinkumware - standard library version 610, Win32 Compiled in optimise mode., _X86_SSE2 -
-

- Fraction of full accuracy 1 -

-
-

Table 12.3. 5th root(28) for float, double, long double and cpp_bin_float_50 - types, using _X86_SSE2

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 7 -

-
-

- 320 -

-
-

- 1.53 -

-
-

- 0 -

-
- -

- 11 -

-
-

- 576 -

-
-

- 2.61 -

-
-

- 1 -

-
- -

- 11 -

-
-

- 557 -

-
-

- 2.48 -

-
-

- 1 -

-
- -

- 12 -

-
-

- 119843 -

-
-

- 7.52 -

-
-

- 0 -

-
-
-

- Newton -

-
-

- 3 -

-
-

- 209 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 221 -

-
-

- 1.00 -

-
-

- -1 -

-
- -

- 4 -

-
-

- 225 -

-
-

- 1.00 -

-
-

- -1 -

-
- -

- 6 -

-
-

- 15937 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 2 -

-
-

- 214 -

-
-

- 1.02 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 256 -

-
-

- 1.16 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 243 -

-
-

- 1.08 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 28437 -

-
-

- 1.78 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 2 -

-
-

- 218 -

-
-

- 1.04 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 245 -

-
-

- 1.11 -

-
-

- -1 -

-
- -

- 3 -

-
-

- 245 -

-
-

- 1.09 -

-
-

- -1 -

-
- -

- 4 -

-
-

- 35625 -

-
-

- 2.24 -

-
-

- 0 -

-
-
-
-
-

Table 12.4. 7th root(28) for float, double, long double and cpp_bin_float_50 - types, using _X86_SSE2

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 12 -

-
-

- 493 -

-
-

- 2.18 -

-
-

- 1 -

-
- -

- 15 -

-
-

- 762 -

-
-

- 3.05 -

-
-

- 2 -

-
- -

- 15 -

-
-

- 765 -

-
-

- 3.08 -

-
-

- 2 -

-
- -

- 14 -

-
-

- 157343 -

-
-

- 7.09 -

-
-

- 0 -

-
-
-

- Newton -

-
-

- 5 -

-
-

- 226 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 250 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 248 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 8 -

-
-

- 22187 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 4 -

-
-

- 257 -

-
-

- 1.14 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 293 -

-
-

- 1.17 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 293 -

-
-

- 1.18 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 44062 -

-
-

- 1.99 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 5 -

-
-

- 285 -

-
-

- 1.26 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 317 -

-
-

- 1.27 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 317 -

-
-

- 1.28 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 61406 -

-
-

- 2.77 -

-
-

- 0 -

-
-
-
-
-

Table 12.5. 11th root(28) for float, double, long double and cpp_bin_float_50 - types, using _X86_SSE2

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 12 -

-
-

- 556 -

-
-

- 2.24 -

-
-

- -2 -

-
- -

- 14 -

-
-

- 784 -

-
-

- 2.94 -

-
-

- 2 -

-
- -

- 14 -

-
-

- 793 -

-
-

- 2.94 -

-
-

- 2 -

-
- -

- 17 -

-
-

- 235781 -

-
-

- 8.88 -

-
-

- 2 -

-
-
-

- Newton -

-
-

- 6 -

-
-

- 248 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 267 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 270 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 9 -

-
-

- 26562 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 4 -

-
-

- 254 -

-
-

- 1.02 -

-
-

- -1 -

-
- -

- 5 -

-
-

- 290 -

-
-

- 1.09 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 293 -

-
-

- 1.09 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 46406 -

-
-

- 1.75 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 6 -

-
-

- 312 -

-
-

- 1.26 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 351 -

-
-

- 1.31 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 356 -

-
-

- 1.32 -

-
-

- 0 -

-
- -

- 8 -

-
-

- 76250 -

-
-

- 2.87 -

-
-

- 0 -

-
-
-
-
- - Program - root_n_finding_algorithms.cpp, Microsoft Visual C++ version 12.0, Dinkumware - standard library version 610, Win32 Compiled in optimise mode., _X64_AVX -
-

- Fraction of full accuracy 1 -

-
-

Table 12.6. 5th root(28) for float, double, long double and cpp_bin_float_50 - types, using _X64_AVX

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 7 -

-
-

- 239 -

-
-

- 1.50 -

-
-

- 0 -

-
- -

- 11 -

-
-

- 451 -

-
-

- 2.53 -

-
-

- 1 -

-
- -

- 11 -

-
-

- 439 -

-
-

- 2.49 -

-
-

- 1 -

-
- -

- 12 -

-
-

- 90312 -

-
-

- 7.51 -

-
-

- 0 -

-
-
-

- Newton -

-
-

- 3 -

-
-

- 159 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 178 -

-
-

- 1.00 -

-
-

- -1 -

-
- -

- 4 -

-
-

- 176 -

-
-

- 1.00 -

-
-

- -1 -

-
- -

- 6 -

-
-

- 12031 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 2 -

-
-

- 168 -

-
-

- 1.06 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 203 -

-
-

- 1.14 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 198 -

-
-

- 1.13 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 20937 -

-
-

- 1.74 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 2 -

-
-

- 173 -

-
-

- 1.09 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 206 -

-
-

- 1.16 -

-
-

- -1 -

-
- -

- 3 -

-
-

- 203 -

-
-

- 1.15 -

-
-

- -1 -

-
- -

- 4 -

-
-

- 26250 -

-
-

- 2.18 -

-
-

- 0 -

-
-
-
-
-

Table 12.7. 7th root(28) for float, double, long double and cpp_bin_float_50 - types, using _X64_AVX

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 12 -

-
-

- 385 -

-
-

- 2.19 -

-
-

- 1 -

-
- -

- 15 -

-
-

- 635 -

-
-

- 3.13 -

-
-

- 2 -

-
- -

- 15 -

-
-

- 621 -

-
-

- 3.17 -

-
-

- 2 -

-
- -

- 14 -

-
-

- 114843 -

-
-

- 6.81 -

-
-

- 0 -

-
-
-

- Newton -

-
-

- 5 -

-
-

- 176 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 203 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 196 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 8 -

-
-

- 16875 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 4 -

-
-

- 209 -

-
-

- 1.19 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 254 -

-
-

- 1.25 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 246 -

-
-

- 1.26 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 32343 -

-
-

- 1.92 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 5 -

-
-

- 223 -

-
-

- 1.27 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 273 -

-
-

- 1.34 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 275 -

-
-

- 1.40 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 45156 -

-
-

- 2.68 -

-
-

- 0 -

-
-
-
-
-

Table 12.8. 11th root(28) for float, double, long double and cpp_bin_float_50 - types, using _X64_AVX

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 12 -

-
-

- 467 -

-
-

- 2.42 -

-
-

- -2 -

-
- -

- 14 -

-
-

- 648 -

-
-

- 3.06 -

-
-

- 2 -

-
- -

- 14 -

-
-

- 640 -

-
-

- 2.99 -

-
-

- 2 -

-
- -

- 17 -

-
-

- 170000 -

-
-

- 8.85 -

-
-

- 2 -

-
-
-

- Newton -

-
-

- 6 -

-
-

- 193 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 212 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 214 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 9 -

-
-

- 19218 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 4 -

-
-

- 209 -

-
-

- 1.08 -

-
-

- -1 -

-
- -

- 5 -

-
-

- 256 -

-
-

- 1.21 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 250 -

-
-

- 1.17 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 32656 -

-
-

- 1.70 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 6 -

-
-

- 248 -

-
-

- 1.28 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 306 -

-
-

- 1.44 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 298 -

-
-

- 1.39 -

-
-

- 0 -

-
- -

- 8 -

-
-

- 53437 -

-
-

- 2.78 -

-
-

- 0 -

-
-
-
-
- - Program - root_n_finding_algorithms.cpp, GNU C++ version 4.9.2, GNU libstdc++ version - 20141030, Win32 Compiled in optimise mode., _X64_SSE2 -
-

- Fraction of full accuracy 1 -

-
-

Table 12.9. 5th root(28) for float, double, long double and cpp_bin_float_50 - types, using _X64_SSE2

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 7 -

-
-

- 193 -

-
-

- 2.14 -

-
-

- 0 -

-
- -

- 11 -

-
-

- 432 -

-
-

- 3.86 -

-
-

- 1 -

-
- -

- 9 -

-
-

- 579 -

-
-

- 3.83 -

-
-

- 0 -

-
- -

- 12 -

-
-

- 59062 -

-
-

- 7.56 -

-
-

- 0 -

-
-
-

- Newton -

-
-

- 3 -

-
-

- 90 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 112 -

-
-

- 1.00 -

-
-

- -1 -

-
- -

- 5 -

-
-

- 151 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 7812 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 2 -

-
-

- 98 -

-
-

- 1.09 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 135 -

-
-

- 1.21 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 201 -

-
-

- 1.33 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 13750 -

-
-

- 1.76 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 2 -

-
-

- 112 -

-
-

- 1.24 -

-
-

- 0 -

-
- -

- 3 -

-
-

- 142 -

-
-

- 1.27 -

-
-

- -1 -

-
- -

- 3 -

-
-

- 206 -

-
-

- 1.36 -

-
-

- 0 -

-
- -

- 4 -

-
-

- 17031 -

-
-

- 2.18 -

-
-

- 0 -

-
-
-
-
-

Table 12.10. 7th root(28) for float, double, long double and cpp_bin_float_50 - types, using _X64_SSE2

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 12 -

-
-

- 351 -

-
-

- 1.97 -

-
-

- 1 -

-
- -

- 15 -

-
-

- 621 -

-
-

- 3.18 -

-
-

- 2 -

-
- -

- 13 -

-
-

- 906 -

-
-

- 3.61 -

-
-

- 0 -

-
- -

- 14 -

-
-

- 75468 -

-
-

- 7.10 -

-
-

- 0 -

-
-
-

- Newton -

-
-

- 5 -

-
-

- 178 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 195 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 251 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 8 -

-
-

- 10625 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 4 -

-
-

- 196 -

-
-

- 1.10 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 242 -

-
-

- 1.24 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 345 -

-
-

- 1.37 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 21093 -

-
-

- 1.99 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 5 -

-
-

- 225 -

-
-

- 1.26 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 270 -

-
-

- 1.38 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 384 -

-
-

- 1.53 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 29062 -

-
-

- 2.74 -

-
-

- 0 -

-
-
-
-
-

Table 12.11. 11th root(28) for float, double, long double and cpp_bin_float_50 - types, using _X64_SSE2

-
----------------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- float -

-
- - - - -

- double -

-
- - - - -

- long d -

-
- - - - -

- cpp50 -

-
- -   
-

- Algo -

-
-

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
- -

- Its -

-
-

- Times -

-
-

- Norm -

-
-

- Dis -

-
-
-

- TOMS748 -

-
-

- 12 -

-
-

- 429 -

-
-

- 2.22 -

-
-

- -2 -

-
- -

- 14 -

-
-

- 679 -

-
-

- 3.02 -

-
-

- 2 -

-
- -

- 14 -

-
-

- 1098 -

-
-

- 3.94 -

-
-

- 1 -

-
- -

- 17 -

-
-

- 114531 -

-
-

- 8.83 -

-
-

- 2 -

-
-
-

- Newton -

-
-

- 6 -

-
-

- 193 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 225 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 279 -

-
-

- 1.00 -

-
-

- 0 -

-
- -

- 9 -

-
-

- 12968 -

-
-

- 1.00 -

-
-

- 0 -

-
-
-

- Halley -

-
-

- 4 -

-
-

- 196 -

-
-

- 1.02 -

-
-

- -1 -

-
- -

- 5 -

-
-

- 248 -

-
-

- 1.10 -

-
-

- 0 -

-
- -

- 5 -

-
-

- 348 -

-
-

- 1.25 -

-
-

- 0 -

-
- -

- 6 -

-
-

- 21718 -

-
-

- 1.67 -

-
-

- 0 -

-
-
-

- Schröder -

-
-

- 6 -

-
-

- 254 -

-
-

- 1.32 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 323 -

-
-

- 1.44 -

-
-

- 0 -

-
- -

- 7 -

-
-

- 453 -

-
-

- 1.62 -

-
-

- 0 -

-
- -

- 8 -

-
-

- 35625 -

-
-

- 2.75 -

-
-

- 0 -

-
-
-
-

- Some tentative conclusions can be drawn from this limited exercise. -

-
    -
  • - Perhaps surprisingly, there is little difference between the various - algorithms for fundamental - types floating-point types. Using the first derivatives (Newton-Raphson iteration) - is usually the best, but while the improvement over the no-derivative - TOMS Algorithm - 748: enclosing zeros of continuous functions is considerable - in number of iterations, but little in execution time. This reflects - the fact that the function we are finding the root for is trivial to - evaluate, so runtimetimes are dominated by the time taken by the boilerplate - code in each method. -
  • -
  • - The extra cost of evaluating the second derivatives (Halley - or Schröder) - is usually too much for any net benefit: as with the cube root, these - functors are so cheap to evaluate that the runtime is largely dominated - by the complexity of the root finding method. -
  • -
  • - For a Boost.Multiprecision - floating-point type, the Newton-Raphson - iteration is a clear winner with a several-fold gain over TOMS Algorithm 748: - enclosing zeros of continuous functions, and again no improvement - from the second-derivative algorithms. -
  • -
  • - The run-time of 50 decimal-digit Boost.Multiprecision - is about 30-fold greater than double. -
  • -
  • - The column 'dis' showing the number of bits distance from the correct - result. The Newton-Raphson algorithm shows a bit or two better accuracy - than TOMS - Algorithm 748: enclosing zeros of continuous functions. -
  • -
  • - The goodness of the 'guess' is especially crucial for Boost.Multiprecision. - Separate experiments show that evaluating the 'guess' using double allows convergence to the final - exact result in one or two iterations. So in this contrived example, - crudely dividing the exponent by N for a 'guess', it would be far better - to use a pow<double> - or , if more precise pow<long double>, - function to estimate a 'guess'. The limitation of this tactic is that - the range of possible (exponent) values may be less than the multiprecision - type. -
  • -
  • - Using floating-point extension SSE2 - instructions made a modest ten-percent speedup. -
  • -
  • - Using MSVC, there was some improvement using 64-bit, markedly for - Boost.Multiprecision. -
  • -
  • - The GCC compiler 4.9.1 using 64-bit was at least five-folder faster - that 32-bit, apparently reflecting better optimization. -
  • -
-

- Clearly, your mileage will vary, but in - summary, Newton-Raphson - iteration seems the first choice of algorithm, and effort to find - a good 'guess' the first speed-up target, especially for Boost.Multiprecision. - And of course, compiler optimisation is crucial for speed. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples.html b/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples.html deleted file mode 100644 index 0028c77b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples.html +++ /dev/null @@ -1,90 +0,0 @@ - - - -Examples of Root-Finding (with and without derivatives) - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- - -

- The examples demonstrate how to use the various tools for root - finding. -

-

- We start with the simple cube root function cbrt - ( C++ standard function name cbrt) - showing root finding without - derivatives. -

-

- We then show how use of derivatives can improve the speed of convergence. -

-

- (But these examples are only a demonstration and do not try to make the ultimate - improvements of an 'industrial-strength' implementation, for example, of - boost::math::cbrt, mainly by using a better computed - initial 'guess' at cbrt.hpp). -

-

- Then we show how a higher root (fifth - root) 5√ can be computed, and in root_finding_n_example.cpp - a generic method for the nth - root that constructs the derivatives at compile-time. -

-

- These methods should be applicable to other functions that can be differentiated - easily. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/5th_root_eg.html b/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/5th_root_eg.html deleted file mode 100644 index 080062dc..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/5th_root_eg.html +++ /dev/null @@ -1,169 +0,0 @@ - - - -Computing the Fifth Root - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Let's now suppose we want to find the fifth root - of a number a. -

-

- The equation we want to solve is : -

-

-   f(x) = x5 -a -

-

- If your differentiation is a little rusty (or you are faced with an function - whose complexity makes differentiation daunting), then you can get help, - for example, from the invaluable WolframAlpha - site. -

-

- For example, entering the commmand: differentiate - x ^ - 5 -

-

- or the Wolfram Language command: D[x ^ - 5, x] -

-

- gives the output: d/dx(x - ^ 5) = 5 - x ^ - 4 -

-

- and to get the second differential, enter: second - differentiate x - ^ 5 -

-

- or the Wolfram Language command: D[x ^ - 5, { x, - 2 }] -

-

- to get the output: d ^ - 2 / dx ^ 2(x - ^ 5) = 20 - x ^ - 3 -

-

- To get a reference value, we can enter: fifth root 3126 -

-

- or: N[3126 ^ (1 / 5), 50] -

-

- to get a result with a precision of 50 decimal digits: -

-

- 5.0003199590478625588206333405631053401128722314376 -

-

- (We could also get a reference value using multiprecision - root). -

-

- The 1st and 2nd derivatives of x5 are: -

-

-   f'(x) = 5x4 -

-

-   f''(x) = 20x3 -

-

- Using these expressions for the derivatives, the functor is: -

-
template <class T>
-struct fifth_functor_2deriv
-{
-  // Functor returning both 1st and 2nd derivatives.
-  fifth_functor_2deriv(T const& to_find_root_of) : a(to_find_root_of)
-  { /* Constructor stores value a to find root of, for example: */ }
-
-  std::tuple<T, T, T> operator()(T const& x)
-  {
-    // Return both f(x) and f'(x) and f''(x).
-    T fx = boost::math::pow<5>(x) - a;    // Difference (estimate x^3 - value).
-    T dx = 5 * boost::math::pow<4>(x);    // 1st derivative = 5x^4.
-    T d2x = 20 * boost::math::pow<3>(x);  // 2nd derivative = 20 x^3
-    return std::make_tuple(fx, dx, d2x);  // 'return' fx, dx and d2x.
-  }
-private:
-  T a;                                    // to be 'fifth_rooted'.
-}; // struct fifth_functor_2deriv
-
-

- Our fifth-root function is now: -

-
template <class T>
-T fifth_2deriv(T x)
-{
-  // return fifth root of x using 1st and 2nd derivatives and Halley.
-  using namespace std;                  // Help ADL of std functions.
-  using namespace boost::math::tools;   // for halley_iterate.
-
-  int exponent;
-  frexp(x, &exponent);                  // Get exponent of z (ignore mantissa).
-  T guess = ldexp(1., exponent / 5);    // Rough guess is to divide the exponent by five.
-  T min = ldexp(0.5, exponent / 5);     // Minimum possible value is half our guess.
-  T max = ldexp(2., exponent / 5);      // Maximum possible value is twice our guess.
-  // Stop when slightly more than one of the digits are correct:
-  const int digits = static_cast<int>(std::numeric_limits<T>::digits * 0.4);
-  const boost::uintmax_t maxit = 50;
-  boost::uintmax_t it = maxit;
-  T result = halley_iterate(fifth_functor_2deriv<T>(x), guess, min, max, digits, it);
-  return result;
-}
-
-

- Full code of this example is at root_finding_example.cpp - and root_finding_n_example.cpp. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/cbrt_eg.html b/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/cbrt_eg.html deleted file mode 100644 index 61e5cae0..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/cbrt_eg.html +++ /dev/null @@ -1,486 +0,0 @@ - - - -Finding the Cubed Root With and Without Derivatives - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- First some #includes - that will be needed. -

-
#include <boost/math/tools/roots.hpp>
-//using boost::math::policies::policy;
-//using boost::math::tools::newton_raphson_iterate;
-//using boost::math::tools::halley_iterate; //
-//using boost::math::tools::eps_tolerance; // Binary functor for specified number of bits.
-//using boost::math::tools::bracket_and_solve_root;
-//using boost::math::tools::toms748_solve;
-
-#include <boost/math/special_functions/next.hpp> // For float_distance.
-#include <tuple> // for std::tuple and std::make_tuple.
-#include <boost/math/special_functions/cbrt.hpp> // For boost::math::cbrt.
-
-
- - - - - -
[Tip]Tip

- For clarity, using statements - are provided to list what functions are being used in this example: you - can, of course, partly or fully qualify the names in other ways. (For - your application, you may wish to extract some parts into header files, - but you should never use using - statements globally in header files). -

-

- Let's suppose we want to find the root of a number a, - and to start, compute the cube root. -

-

- So the equation we want to solve is: -

-

-    f(x) = x³ -a -

-

- We will first solve this without using any information about the slope - or curvature of the cube root function. -

-

- Fortunately, the cube-root function is 'Really Well Behaved' in that it - is monotonic and has only one root (we leave negative values 'as an exercise - for the student'). -

-

- We then show how adding what we can know about this function, first just - the slope or 1st derivative f'(x), will speed homing - in on the solution. -

-

- Lastly, we show how adding the curvature f''(x) too - will speed convergence even more. -

-

- - Cube - root function without derivatives -

-

- First we define a function object (functor): -

-
template <class T>
-struct cbrt_functor_noderiv
-{
-  //  cube root of x using only function - no derivatives.
-  cbrt_functor_noderiv(T const& to_find_root_of) : a(to_find_root_of)
-  { /* Constructor just stores value a to find root of. */ }
-  T operator()(T const& x)
-  {
-    T fx = x*x*x - a; // Difference (estimate x^3 - a).
-    return fx;
-  }
-private:
-  T a; // to be 'cube_rooted'.
-};
-
-

- Implementing the cube-root function itself is fairly trivial now: the hardest - part is finding a good approximation to begin with. In this case we'll - just divide the exponent by three. (There are better but more complex guess - algorithms used in 'real life'.) -

-
template <class T>
-T cbrt_noderiv(T x)
-{
-  // return cube root of x using bracket_and_solve (no derivatives).
-  using namespace std;                          // Help ADL of std functions.
-  using namespace boost::math::tools;           // For bracket_and_solve_root.
-
-  int exponent;
-  frexp(x, &exponent);                          // Get exponent of z (ignore mantissa).
-  T guess = ldexp(1., exponent/3);              // Rough guess is to divide the exponent by three.
-  T factor = 2;                                 // How big steps to take when searching.
-
-  const boost::uintmax_t maxit = 20;            // Limit to maximum iterations.
-  boost::uintmax_t it = maxit;                  // Initally our chosen max iterations, but updated with actual.
-  bool is_rising = true;                        // So if result if guess^3 is too low, then try increasing guess.
-  int digits = std::numeric_limits<T>::digits;  // Maximum possible binary digits accuracy for type T.
-  // Some fraction of digits is used to control how accurate to try to make the result.
-  int get_digits = digits - 3;                  // We have to have a non-zero interval at each step, so
-                                                // maximum accuracy is digits - 1.  But we also have to
-                                                // allow for inaccuracy in f(x), otherwise the last few
-                                                // iterations just thrash around.
-  eps_tolerance<T> tol(get_digits);             // Set the tolerance.
-  std::pair<T, T> r = bracket_and_solve_root(cbrt_functor_noderiv<T>(x), guess, factor, is_rising, tol, it);
-  return r.first + (r.second - r.first)/2;      // Midway between brackets is our result, if necessary we could
-                                                // return the result as an interval here.
-}
-
-
- - - - - -
[Note]Note
-

- The final parameter specifying a maximum number of iterations is optional. - However, it defaults to boost::uintmax_t - maxit = - (std::numeric_limits<boost::uintmax_t>::max)(); which is 18446744073709551615 - and is more than anyone would wish to wait for! -

-

- So it may be wise to chose some reasonable estimate of how many iterations - may be needed, In this case the function is so well behaved that we can - chose a low value of 20. -

-

- Internally when Boost.Math uses these functions, it sets the maximum - iterations to policies::get_max_root_iterations<Policy>();. -

-
-

- Should we have wished we can show how many iterations were used in bracket_and_solve_root (this information - is lost outside cbrt_noderiv), - for example with: -

-
if (it >= maxit)
-{
-  std::cout << "Unable to locate solution in " << maxit << " iterations:"
-    " Current best guess is between " << r.first << " and " << r.second << std::endl;
-}
-else
-{
-  std::cout << "Converged after " << it << " (from maximum of " << maxit << " iterations)." << std::endl;
-}
-
-

- for output like -

-
Converged after 11 (from maximum of 20 iterations).
-
-

- This snippet from main() in root_finding_example.cpp - shows how it can be used. -

-
try
-{
-  double threecubed = 27.;   // Value that has an *exactly representable* integer cube root.
-  double threecubedp1 = 28.; // Value whose cube root is *not* exactly representable.
-
-  std::cout << "cbrt(28) " << boost::math::cbrt(28.) << std::endl; // boost::math:: version of cbrt.
-  std::cout << "std::cbrt(28) " << std::cbrt(28.) << std::endl;    // std:: version of cbrt.
-  std::cout <<" cast double " << static_cast<double>(3.0365889718756625194208095785056696355814539772481111) << std::endl;
-
-  // Cube root using bracketing:
-  double r = cbrt_noderiv(threecubed);
-  std::cout << "cbrt_noderiv(" << threecubed << ") = " << r << std::endl;
-  r = cbrt_noderiv(threecubedp1);
-  std::cout << "cbrt_noderiv(" << threecubedp1 << ") = " << r << std::endl;
-
-
  cbrt_noderiv(27) = 3
-  cbrt_noderiv(28) = 3.0365889718756618
-
-

- The result of bracket_and_solve_root - is a pair - of values that could be displayed. -

-

- The number of bits separating them can be found using float_distance(r.first, r.second). The distance is zero (closest representable) - for 33 = 27 but float_distance(r.first, r.second) = 3 - for cube root of 28 with this function. The result (avoiding overflow) - is midway between these two values. -

-

- - Cube - root function with 1st derivative (slope) -

-

- We now solve the same problem, but using more information about the function, - to show how this can speed up finding the best estimate of the root. -

-

- For the root function, the 1st differential (the slope of the tangent to - a curve at any point) is known. -

-

- This algorithm is similar to this nth - root algorithm. -

-

- If you need some reminders, then derivatives - of elementary functions may help. -

-

- Using the rule that the derivative of xn for positive - n (actually all nonzero n) is n xn-1, allows us to - get the 1st differential as 3x2. -

-

- To see how this extra information is used to find a root, view Newton-Raphson - iterations and the animation. -

-

- We define a better functor cbrt_functor_deriv - that returns both the evaluation of the function to solve, along with its - first derivative: -

-

- To 'return' two values, we use a std::pair - of floating-point values. -

-
template <class T>
-struct cbrt_functor_deriv
-{ // Functor also returning 1st derivative.
-  cbrt_functor_deriv(T const& to_find_root_of) : a(to_find_root_of)
-  { // Constructor stores value a to find root of,
-    // for example: calling cbrt_functor_deriv<T>(a) to use to get cube root of a.
-  }
-  std::pair<T, T> operator()(T const& x)
-  {
-    // Return both f(x) and f'(x).
-    T fx = x*x*x - a;                // Difference (estimate x^3 - value).
-    T dx =  3 * x*x;                 // 1st derivative = 3x^2.
-    return std::make_pair(fx, dx);   // 'return' both fx and dx.
-  }
-private:
-  T a;                               // Store value to be 'cube_rooted'.
-};
-
-

- Our cube root function is now: -

-
template <class T>
-T cbrt_deriv(T x)
-{
-  // return cube root of x using 1st derivative and Newton_Raphson.
-  using namespace boost::math::tools;
-  int exponent;
-  frexp(x, &exponent);                                // Get exponent of z (ignore mantissa).
-  T guess = ldexp(1., exponent/3);                    // Rough guess is to divide the exponent by three.
-  T min = ldexp(0.5, exponent/3);                     // Minimum possible value is half our guess.
-  T max = ldexp(2., exponent/3);                      // Maximum possible value is twice our guess.
-  const int digits = std::numeric_limits<T>::digits;  // Maximum possible binary digits accuracy for type T.
-  int get_digits = static_cast<int>(digits * 0.6);    // Accuracy doubles with each step, so stop when we have
-                                                      // just over half the digits correct.
-  const boost::uintmax_t maxit = 20;
-  boost::uintmax_t it = maxit;
-  T result = newton_raphson_iterate(cbrt_functor_deriv<T>(x), guess, min, max, get_digits, it);
-  return result;
-}
-
-

- The result of newton_raphson_iterate function - is a single value. -

-
- - - - - -
[Tip]Tip

- There is a compromise between accuracy and speed when chosing the value - of digits. It is tempting - to simply chose std::numeric_limits<T>::digits, but this may mean some inefficient - and unnecessary iterations as the function thrashes around trying to - locate the last bit. In theory, since the precision doubles with each - step it is sufficient to stop when half the bits are correct: as the - last step will have doubled that to full precision. Of course the function - has no way to tell if that is actually the case unless it does one more - step to be sure. In practice setting the precision to slightly more than - std::numeric_limits<T>::digits / - 2 is a good choice. -

-

- Note that it is up to the caller of the function to check the iteration - count after the call to see if iteration stoped as a result of running - out of iterations rather than meeting the required precision. -

-

- Using the test data in /test/test_cbrt.cpp - this found the cube root exact to the last digit in every case, and in - no more than 6 iterations at double precision. However, you will note that - a high precision was used in this example, exactly what was warned against - earlier on in these docs! In this particular case it is possible to compute - f(x) exactly and without undue cancellation error, - so a high limit is not too much of an issue. -

-

- However, reducing the limit to std::numeric_limits<T>::digits - * 2 / 3 gave - full precision in all but one of the test cases (and that one was out by - just one bit). The maximum number of iterations remained 6, but in most - cases was reduced by one. -

-

- Note also that the above code omits a probable optimization by computing - z² -and reusing it, omits error handling, and does not handle negative values - of z correctly. (These are left as the customary exercise for the reader!) -

-

- The boost::math::cbrt function also includes these and - other improvements: most importantly it uses a much better initial guess - which reduces the iteration count to just 1 in almost all cases. -

-

- - Cube - root with 1st & 2nd derivative (slope & curvature) -

-

- Next we define yet another even better functor cbrt_functor_2deriv - that returns both the evaluation of the function to solve, along with its - first and second derivative: -

-

-   f''(x) = 6x -

-

- using information about both slope and curvature to speed convergence. -

-

- To 'return' three values, we use a tuple - of three floating-point values: -

-
template <class T>
-struct cbrt_functor_2deriv
-{
-  // Functor returning both 1st and 2nd derivatives.
-  cbrt_functor_2deriv(T const& to_find_root_of) : a(to_find_root_of)
-  { // Constructor stores value a to find root of, for example:
-    // calling cbrt_functor_2deriv<T>(x) to get cube root of x,
-  }
-  std::tuple<T, T, T> operator()(T const& x)
-  {
-    // Return both f(x) and f'(x) and f''(x).
-    T fx = x*x*x - a;                     // Difference (estimate x^3 - value).
-    T dx = 3 * x*x;                       // 1st derivative = 3x^2.
-    T d2x = 6 * x;                        // 2nd derivative = 6x.
-    return std::make_tuple(fx, dx, d2x);  // 'return' fx, dx and d2x.
-  }
-private:
-  T a; // to be 'cube_rooted'.
-};
-
-

- Our cube root function is now: -

-
template <class T>
-T cbrt_2deriv(T x)
-{
-  // return cube root of x using 1st and 2nd derivatives and Halley.
-  //using namespace std;  // Help ADL of std functions.
-  using namespace boost::math::tools;
-  int exponent;
-  frexp(x, &exponent);                                // Get exponent of z (ignore mantissa).
-  T guess = ldexp(1., exponent/3);                    // Rough guess is to divide the exponent by three.
-  T min = ldexp(0.5, exponent/3);                     // Minimum possible value is half our guess.
-  T max = ldexp(2., exponent/3);                      // Maximum possible value is twice our guess.
-  const int digits = std::numeric_limits<T>::digits;  // Maximum possible binary digits accuracy for type T.
-  // digits used to control how accurate to try to make the result.
-  int get_digits = static_cast<int>(digits * 0.4);    // Accuracy triples with each step, so stop when just
-                                                      // over one third of the digits are correct.
-  boost::uintmax_t maxit = 20;
-  T result = halley_iterate(cbrt_functor_2deriv<T>(x), guess, min, max, get_digits, maxit);
-  return result;
-}
-
-

- The function halley_iterate - also returns a single value, and the number of iterations will reveal if - it met the convergence criterion set by get_digits. -

-

- The no-derivative method gives a result of -

-
cbrt_noderiv(28) = 3.0365889718756618
-
-

- with a 3 bits distance between the bracketed values, whereas the derivative - methods both converge to a single value -

-
cbrt_2deriv(28) = 3.0365889718756627
-
-

- which we can compare with the boost::math::cbrt -

-
cbrt(28)              = 3.0365889718756627
-
-

- Note that the iterations are set to stop at just one-half of full precision, - and yet, even so, not one of the test cases had a single bit wrong. What's - more, the maximum number of iterations was now just 4. -

-

- Just to complete the picture, we could have called schroder_iterate in the last example: - and in fact it makes no difference to the accuracy or number of iterations - in this particular case. However, the relative performance of these two - methods may vary depending upon the nature of f(x), - and the accuracy to which the initial guess can be computed. There appear - to be no generalisations that can be made except "try them and see". -

-

- Finally, had we called cbrt - with NTL::RR set to - 1000 bit precision (about 300 decimal digits), then full precision can - be obtained with just 7 iterations. To put that in perspective, an increase - in precision by a factor of 20, has less than doubled the number of iterations. - That just goes to emphasise that most of the iterations are used up getting - the first few digits correct: after that these methods can churn out further - digits with remarkable efficiency. -

-

- Or to put it another way: nothing beats a really good initial - guess! -

-

- Full code of this example is at root_finding_example.cpp, -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/elliptic_eg.html b/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/elliptic_eg.html deleted file mode 100644 index 7bd122f1..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/elliptic_eg.html +++ /dev/null @@ -1,272 +0,0 @@ - - - -A More complex example - Inverting the Elliptic Integrals - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The arc length of an ellipse with radii a and b - is given by: -

-
L(a, b) = 4aE(k)
-

- with: -

-
k = √(1 - b2/a2)
-

- where E(k) is the complete elliptic integral of the - second kind - see ellint_2. -

-

- Let's suppose we know the arc length and one radii, we can then calculate - the other radius by inverting the formula above. We'll begin by encoding - the above formula into a functor that our root-finding algorithms can call. -

-

- Note that while not completely obvious from the formula above, the function - is completely symmetrical in the two radii - which can be interchanged - at will - in this case we need to make sure that a - >= b - so that we don't accidentally take the square root of a negative number: -

-
template <typename T = double>
-struct elliptic_root_functor_noderiv
-{ //  Nth root of x using only function - no derivatives.
-   elliptic_root_functor_noderiv(T const& arc, T const& radius) : m_arc(arc), m_radius(radius)
-   { // Constructor just stores value a to find root of.
-   }
-   T operator()(T const& x)
-   {
-      using std::sqrt;
-      // return the difference between required arc-length, and the calculated arc-length for an
-      // ellipse with radii m_radius and x:
-      T a = (std::max)(m_radius, x);
-      T b = (std::min)(m_radius, x);
-      T k = sqrt(1 - b * b / (a * a));
-      return 4 * a * boost::math::ellint_2(k) - m_arc;
-   }
-private:
-   T m_arc;     // length of arc.
-   T m_radius;  // one of the two radii of the ellipse
-}; // template <class T> struct elliptic_root_functor_noderiv
-
-

- We'll also need a decent estimate to start searching from, the approximation: -

-
L(a, b) ≈ 4√(a2 + b2)
-

- Is easily inverted to give us what we need, which using derivative-free - root finding leads to the algorithm: -

-
template <class T = double>
-T elliptic_root_noderiv(T radius, T arc)
-{ // return the other radius of an ellipse, given one radii and the arc-length
-   using namespace std;  // Help ADL of std functions.
-   using namespace boost::math::tools; // For bracket_and_solve_root.
-
-   T guess = sqrt(arc * arc / 16 - radius * radius);
-   T factor = 1.2;                     // How big steps to take when searching.
-
-   const boost::uintmax_t maxit = 50;  // Limit to maximum iterations.
-   boost::uintmax_t it = maxit;        // Initally our chosen max iterations, but updated with actual.
-   bool is_rising = true;              // arc-length increases if one radii increases, so function is rising
-   // Define a termination condition, stop when nearly all digits are correct, but allow for
-   // the fact that we are returning a range, and must have some inaccuracy in the elliptic integral:
-   eps_tolerance<T> tol(std::numeric_limits<T>::digits - 2);
-   // Call bracket_and_solve_root to find the solution, note that this is a rising function:
-   std::pair<T, T> r = bracket_and_solve_root(elliptic_root_functor_noderiv<T>(arc, radius), guess, factor, is_rising, tol, it);
-   // Result is midway between the endpoints of the range:
-   return r.first + (r.second - r.first) / 2;
-} // template <class T> T elliptic_root_noderiv(T x)
-
-

- This function generally finds the root within 8-10 iterations, so given - that the runtime is completely dominated by the cost of calling the ellliptic - integral it would be nice to reduce that count somewhat. We'll try to do - that by using a derivative-based method; the derivatives of this function - are rather hard to work out by hand, but fortunately Wolfram - Alpha can do the grunt work for us to give: -

-
d/da L(a, b) = 4(a2E(k) - b2K(k)) / (a2 - b2)
-

- Note that now we have two elliptic integral - calls to get the derivative, so our functor will be at least twice as expensive - to call as the derivative-free one above: we'll have to reduce the iteration - count quite substantially to make a difference! -

-

- Here's the revised functor: -

-
template <class T = double>
-struct elliptic_root_functor_1deriv
-{ // Functor also returning 1st derviative.
-   BOOST_STATIC_ASSERT_MSG(boost::is_integral<T>::value == false, "Only floating-point type types can be used!");
-
-   elliptic_root_functor_1deriv(T const& arc, T const& radius) : m_arc(arc), m_radius(radius)
-   { // Constructor just stores value a to find root of.
-   }
-   std::pair<T, T> operator()(T const& x)
-   {
-      using std::sqrt;
-      // Return the difference between required arc-length, and the calculated arc-length for an
-      // ellipse with radii m_radius and x, plus it's derivative.
-      // See http://www.wolframalpha.com/input/?i=d%2Fda+[4+*+a+*+EllipticE%281+-+b^2%2Fa^2%29]
-      // We require two elliptic integral calls, but from these we can calculate both
-      // the function and it's derivative:
-      T a = (std::max)(m_radius, x);
-      T b = (std::min)(m_radius, x);
-      T a2 = a * a;
-      T b2 = b * b;
-      T k = sqrt(1 - b2 / a2);
-      T Ek = boost::math::ellint_2(k);
-      T Kk = boost::math::ellint_1(k);
-      T fx = 4 * a * Ek - m_arc;
-      T dfx = 4 * (a2 * Ek - b2 * Kk) / (a2 - b2);
-      return std::make_pair(fx, dfx);
-   }
-private:
-   T m_arc;     // length of arc.
-   T m_radius;  // one of the two radii of the ellipse
-};  // struct elliptic_root__functor_1deriv
-
-

- The root-finding code is now almost the same as before, but we'll make - use of Newton-iteration to get the result: -

-
template <class T = double>
-T elliptic_root_1deriv(T radius, T arc)
-{
-   using namespace std;  // Help ADL of std functions.
-   using namespace boost::math::tools; // For newton_raphson_iterate.
-
-   BOOST_STATIC_ASSERT_MSG(boost::is_integral<T>::value == false, "Only floating-point type types can be used!");
-
-   T guess = sqrt(arc * arc / 16 - radius * radius);
-   T min = 0;   // Minimum possible value is zero.
-   T max = arc; // Maximum possible value is the arc length.
-
-   // Accuracy doubles at each step, so stop when just over half of the digits are
-   // correct, and rely on that step to polish off the remainder:
-   int get_digits = static_cast<int>(std::numeric_limits<T>::digits * 0.6);
-   const boost::uintmax_t maxit = 20;
-   boost::uintmax_t it = maxit;
-   T result = newton_raphson_iterate(elliptic_root_functor_1deriv<T>(arc, radius), guess, min, max, get_digits, it);
-   return result;
-} // T elliptic_root_1_deriv  Newton-Raphson
-
-

- The number of iterations required for double - precision is now usually around 4 - so we've slightly more than halved - the number of iterations, but made the functor twice as expensive to call! -

-

- Interestingly though, the second derivative requires no more expensive - elliptic integral calls than the first does, in other words it comes essentially - "for free", in which case we might as well make use of it and - use Halley-iteration. This is quite a typical situation when inverting - special-functions. Here's the revised functor: -

-
template <class T = double>
-struct elliptic_root_functor_2deriv
-{ // Functor returning both 1st and 2nd derivatives.
-   BOOST_STATIC_ASSERT_MSG(boost::is_integral<T>::value == false, "Only floating-point type types can be used!");
-
-   elliptic_root_functor_2deriv(T const& arc, T const& radius) : m_arc(arc), m_radius(radius) {}
-   std::tuple<T, T, T> operator()(T const& x)
-   {
-      using std::sqrt;
-      // Return the difference between required arc-length, and the calculated arc-length for an
-      // ellipse with radii m_radius and x, plus it's derivative.
-      // See http://www.wolframalpha.com/input/?i=d^2%2Fda^2+[4+*+a+*+EllipticE%281+-+b^2%2Fa^2%29]
-      // for the second derivative.
-      T a = (std::max)(m_radius, x);
-      T b = (std::min)(m_radius, x);
-      T a2 = a * a;
-      T b2 = b * b;
-      T k = sqrt(1 - b2 / a2);
-      T Ek = boost::math::ellint_2(k);
-      T Kk = boost::math::ellint_1(k);
-      T fx = 4 * a * Ek - m_arc;
-      T dfx = 4 * (a2 * Ek - b2 * Kk) / (a2 - b2);
-      T dfx2 = 4 * b2 * ((a2 + b2) * Kk - 2 * a2 * Ek) / (a * (a2 - b2) * (a2 - b2));
-      return std::make_tuple(fx, dfx, dfx2);
-   }
-private:
-   T m_arc;     // length of arc.
-   T m_radius;  // one of the two radii of the ellipse
-};
-
-

- The actual root-finding code is almost the same as before, except we can - use Halley, rather than Newton iteration: -

-
template <class T = double>
-T elliptic_root_2deriv(T radius, T arc)
-{
-   using namespace std;                // Help ADL of std functions.
-   using namespace boost::math::tools; // For halley_iterate.
-
-   BOOST_STATIC_ASSERT_MSG(boost::is_integral<T>::value == false, "Only floating-point type types can be used!");
-
-   T guess = sqrt(arc * arc / 16 - radius * radius);
-   T min = 0;                                   // Minimum possible value is zero.
-   T max = arc;                                 // radius can't be larger than the arc length.
-
-   // Accuracy triples at each step, so stop when just over one-third of the digits
-   // are correct, and the last iteration will polish off the remaining digits:
-   int get_digits = static_cast<int>(std::numeric_limits<T>::digits * 0.4);
-   const boost::uintmax_t maxit = 20;
-   boost::uintmax_t it = maxit;
-   T result = halley_iterate(elliptic_root_functor_2deriv<T>(arc, radius), guess, min, max, get_digits, it);
-   return result;
-} // nth_2deriv Halley
-
-

- While this function uses only slightly fewer iterations (typically around - 3) to find the root, compared to the original derivative-free method, we've - moved from 8-10 elliptic integral calls to 6. -

-

- Full code of this example is at root_elliptic_finding.cpp. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/lambda.html b/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/lambda.html deleted file mode 100644 index 62f952f4..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/lambda.html +++ /dev/null @@ -1,78 +0,0 @@ - - - -Using C++11 Lambda's - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Since all the root finding functions accept a function-object, they can - be made to work (often in a lot less code) with C++11 lambda's. Here's - the much reduced code for our "toy" cube root function: -

-
template <class T>
-T cbrt_2deriv_lambda(T x)
-{
-   // return cube root of x using 1st and 2nd derivatives and Halley.
-   //using namespace std;  // Help ADL of std functions.
-   using namespace boost::math::tools;
-   int exponent;
-   frexp(x, &exponent);                                // Get exponent of z (ignore mantissa).
-   T guess = ldexp(1., exponent / 3);                    // Rough guess is to divide the exponent by three.
-   T min = ldexp(0.5, exponent / 3);                     // Minimum possible value is half our guess.
-   T max = ldexp(2., exponent / 3);                      // Maximum possible value is twice our guess.
-   const int digits = std::numeric_limits<T>::digits;  // Maximum possible binary digits accuracy for type T.
-   // digits used to control how accurate to try to make the result.
-   int get_digits = static_cast<int>(digits * 0.4);    // Accuracy triples with each step, so stop when just
-   // over one third of the digits are correct.
-   boost::uintmax_t maxit = 20;
-   T result = halley_iterate(
-      // lambda function:
-      [x](const T& g){ return std::make_tuple(g * g * g - x, 3 * g * g, 6 * g); },
-      guess, min, max, get_digits, maxit);
-   return result;
-}
-
-

- Full code of this example is at root_finding_example.cpp, -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/multiprecision_root.html b/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/multiprecision_root.html deleted file mode 100644 index aad8bfd7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/multiprecision_root.html +++ /dev/null @@ -1,291 +0,0 @@ - - - -Root-finding using Boost.Multiprecision - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The apocryphally astute reader might, by now, be asking "How do we - know if this computes the 'right' answer?". -

-

- For most values, there is, sadly, no 'right' answer. This is because values - can only rarely be exactly represented by C++ floating-point - types. What we do want is the 'best' representation - one that is the nearest - representable - value. (For more about how numbers are represented see Floating - point). -

-

- Of course, we might start with finding an external reference source like - Wolfram Alpha, as above, - but this is not always possible. -

-

- Another way to reassure is to compute 'reference' values at higher precision - with which to compare the results of our iterative computations using built-in - like double. They should agree - within the tolerance that was set. -

-

- The result of static_casting - to double from a higher-precision - type like cpp_bin_float_50 - is guaranteed to be the nearest representable - double value. -

-

- For example, the cube root functions in our example for cbrt(28.) - compute -

-

- std::cbrt<double>(28.) = - 3.0365889718756627 -

-

- WolframAlpha says 3.036588971875662519420809578505669635581453977248111123242141... -

-

- static_cast<double>(3.03658897187566251942080957850) - = 3.0365889718756627 -

-

- This example cbrt(28.) = - 3.0365889718756627 -

-
- - - - - -
[Tip]Tip
-

- To ensure that all potentially significant decimal digits are displayed - use std::numeric_limits<T>::max_digits10 (or if not available on - older platforms or compilers use 2+std::numeric_limits<double>::digits*3010/10000).
-

-

- Ideally, values should agree to std::numeric-limits<T>::digits10 - decimal digits. -

-

- This also means that a 'reference' value to be input - or static_cast should have - at least max_digits10 - decimal digits (17 for 64-bit double). -

-
-

- If we wish to compute higher-precision values - then, on some platforms, we may be able to use long - double with a higher precision than - double to compare with the - very common double and/or - a more efficient built-in quad floating-point type like __float128. -

-

- Almost all platforms can easily use Boost.Multiprecision, - for example, cpp_dec_float - or a binary type cpp_bin_float - types, to compute values at very much higher precision. -

-
- - - - - -
[Note]Note

- With multiprecision types, it is debatable whether to use the type T for computing the initial guesses. - Type double is like to be - accurate enough for the method used in these examples. This would limit - the exponent range of possible values to that of double. - There is also the cost of conversion to and from type T - to consider. In these examples, double - is used via typedef double - guess_type. -

-

- Since the functors and functions used above are templated on the value - type, we can very simply use them with any of the Boost.Multiprecision - types. As a reminder, here's our toy cube root function using 2 derivatives - and C++11 lambda functions to find the root: -

-
template <class T>
-T cbrt_2deriv_lambda(T x)
-{
-   // return cube root of x using 1st and 2nd derivatives and Halley.
-   //using namespace std;  // Help ADL of std functions.
-   using namespace boost::math::tools;
-   int exponent;
-   frexp(x, &exponent);                                // Get exponent of z (ignore mantissa).
-   T guess = ldexp(1., exponent / 3);                    // Rough guess is to divide the exponent by three.
-   T min = ldexp(0.5, exponent / 3);                     // Minimum possible value is half our guess.
-   T max = ldexp(2., exponent / 3);                      // Maximum possible value is twice our guess.
-   const int digits = std::numeric_limits<T>::digits;  // Maximum possible binary digits accuracy for type T.
-   // digits used to control how accurate to try to make the result.
-   int get_digits = static_cast<int>(digits * 0.4);    // Accuracy triples with each step, so stop when just
-   // over one third of the digits are correct.
-   boost::uintmax_t maxit = 20;
-   T result = halley_iterate(
-      // lambda function:
-      [x](const T& g){ return std::make_tuple(g * g * g - x, 3 * g * g, 6 * g); },
-      guess, min, max, get_digits, maxit);
-   return result;
-}
-
-

- Some examples below are 50 decimal digit decimal and binary types (and - on some platforms a much faster float128 - or quad_float type ) that - we can use with these includes: -

-
#include <boost/multiprecision/cpp_bin_float.hpp> // For cpp_bin_float_50.
-#include <boost/multiprecision/cpp_dec_float.hpp> // For cpp_dec_float_50.
-#ifndef _MSC_VER  // float128 is not yet supported by Microsoft compiler at 2013.
-#  include <boost/multiprecision/float128.hpp> // Requires libquadmath.
-#endif
-
-

- Some using statements simplify their use: -

-
  using boost::multiprecision::cpp_dec_float_50; // decimal.
-  using boost::multiprecision::cpp_bin_float_50; // binary.
-#ifndef _MSC_VER  // Not supported by Microsoft compiler.
-  using boost::multiprecision::float128;
-#endif
-
-

- They can be used thus: -

-
std::cout.precision(std::numeric_limits<cpp_dec_float_50>::digits10);
-
-cpp_dec_float_50 two = 2; // 
-cpp_dec_float_50  r = cbrt_2deriv(two);
-std::cout << "cbrt(" << two << ") = " << r << std::endl;
-
-r = cbrt_2deriv(2.); // Passing a double, so ADL will compute a double precision result.
-std::cout << "cbrt(" << two << ") = " << r << std::endl;
-// cbrt(2) = 1.2599210498948731906665443602832965552806854248047 'wrong' from digits 17 onwards!
-r = cbrt_2deriv(static_cast<cpp_dec_float_50>(2.)); // Passing a cpp_dec_float_50, 
-// so will compute a cpp_dec_float_50 precision result.
-std::cout << "cbrt(" << two << ") = " << r << std::endl;
-r = cbrt_2deriv<cpp_dec_float_50>(2.); // Explictly a cpp_dec_float_50, so will compute a cpp_dec_float_50 precision result.
-std::cout << "cbrt(" << two << ") = " << r << std::endl;
-// cpp_dec_float_50 1.2599210498948731647672106072782283505702514647015
-
-

- A reference value computed by Wolfram - Alpha is -

-
N[2^(1/3), 50]  1.2599210498948731647672106072782283505702514647015
-
-

- which agrees exactly. -

-

- To show values to their full precision, - it is necessary to adjust the std::ostream - precision to suit the type, - for example: -

-
template <typename T>
-T show_cube_root(T value)
-{ // Demonstrate by printing the root using all definitely significant digits.
-  std::cout.precision(std::numeric_limits<T>::digits10);
-  T r = cbrt_2deriv(value);
-  std::cout << "value = " << value << ", cube root =" << r << std::endl;
-  return r;
-}
-
-
show_cube_root(2.);
-show_cube_root(2.L);
-show_cube_root(two);
-
-

- which outputs: -

-
cbrt(2) = 1.2599210498948731647672106072782283505702514647015
-
-value = 2, cube root =1.25992104989487
-value = 2, cube root =1.25992104989487
-value = 2, cube root =1.2599210498948731647672106072782283505702514647015
-
-
- - - - - -
[Tip]Tip
-

- Be very careful about the floating-point - type T that is passed - to the root-finding function. Carelessly passing a integer by writing - cpp_dec_float_50 r - = cbrt_2deriv(2); - or show_cube_root(2); will - provoke many warnings and compile errors. -

-

- Even show_cube_root(2.F); will - produce warnings because typedef - double guess_type - defines the type used to compute the guess and bracket values as double. -

-

- Even more treacherous is passing a double - as in cpp_dec_float_50 r = cbrt_2deriv(2.); which - silently gives the 'wrong' result, computing a double - result and then converting to cpp_dec_float_50! All digits beyond - max_digits10 will be - incorrect. Making the cbrt - type explicit with cbrt_2deriv<cpp_dec_float_50>(2.); will give you the desired 50 decimal - digit precision result. -

-
-

- Full code of this example is at root_finding_multiprecision_example.cpp. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/nth_root.html b/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/nth_root.html deleted file mode 100644 index b3ba887b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/root_finding_examples/nth_root.html +++ /dev/null @@ -1,184 +0,0 @@ - - - -Generalizing to Compute the nth root - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- If desired, we can now further generalize to compute the nth - root by computing the derivatives at compile-time - using the rules for differentiation and boost::math::pow<N> where template parameter N is an integer and a compile time constant. - Our functor and function now have an additional template parameter N, for the root required. -

-
- - - - - -
[Note]Note

- Since the powers and derivatives are fixed at compile time, the resulting - code is as efficient as as if hand-coded as the cube and fifth-root examples - above. A good compiler should also optimise any repeated multiplications. -

-

- Our nth root functor is -

-
template <int N, class T = double>
-struct nth_functor_2deriv
-{ // Functor returning both 1st and 2nd derivatives.
-  BOOST_STATIC_ASSERT_MSG(boost::is_integral<T>::value == false, "Only floating-point type types can be used!");
-  BOOST_STATIC_ASSERT_MSG((N > 0) == true, "root N must be > 0!");
-
-  nth_functor_2deriv(T const& to_find_root_of) : a(to_find_root_of)
-  { /* Constructor stores value a to find root of, for example: */ }
-
-  // using boost::math::tuple; // to return three values.
-  std::tuple<T, T, T> operator()(T const& x)
-  {
-    // Return f(x), f'(x) and f''(x).
-    using boost::math::pow;
-    T fx = pow<N>(x) - a;                  // Difference (estimate x^n - a).
-    T dx = N * pow<N - 1>(x);              // 1st derivative f'(x).
-    T d2x = N * (N - 1) * pow<N - 2 >(x);  // 2nd derivative f''(x).
-
-    return std::make_tuple(fx, dx, d2x);   // 'return' fx, dx and d2x.
-  }
-private:
-  T a;                                     // to be 'nth_rooted'.
-};
-
-

- and our nth root function is -

-
template <int N, class T = double>
-T nth_2deriv(T x)
-{ // return nth root of x using 1st and 2nd derivatives and Halley.
-
-  using namespace std;  // Help ADL of std functions.
-  using namespace boost::math::tools; // For halley_iterate.
-
-  BOOST_STATIC_ASSERT_MSG(boost::is_integral<T>::value == false, "Only floating-point type types can be used!");
-  BOOST_STATIC_ASSERT_MSG((N > 0) == true, "root N must be > 0!");
-  BOOST_STATIC_ASSERT_MSG((N > 1000) == false, "root N is too big!");
-
-  typedef double guess_type; // double may restrict (exponent) range for a multiprecision T?
-
-  int exponent;
-  frexp(static_cast<guess_type>(x), &exponent);                 // Get exponent of z (ignore mantissa).
-  T guess = ldexp(static_cast<guess_type>(1.), exponent / N);   // Rough guess is to divide the exponent by n.
-  T min = ldexp(static_cast<guess_type>(1.) / 2, exponent / N); // Minimum possible value is half our guess.
-  T max = ldexp(static_cast<guess_type>(2.), exponent / N);     // Maximum possible value is twice our guess.
-
-  int digits = std::numeric_limits<T>::digits * 0.4;            // Accuracy triples with each step, so stop when
-                                                                // slightly more than one third of the digits are correct.
-  const boost::uintmax_t maxit = 20;
-  boost::uintmax_t it = maxit;
-  T result = halley_iterate(nth_functor_2deriv<N, T>(x), guess, min, max, digits, it);
-  return result;
-}
-
-
    show_nth_root<5, double>(2.);
-    show_nth_root<5, long double>(2.);
-#ifndef _MSC_VER  // float128 is not supported by Microsoft compiler 2013.
-    show_nth_root<5, float128>(2);
-#endif
-    show_nth_root<5, cpp_dec_float_50>(2); // dec
-    show_nth_root<5, cpp_bin_float_50>(2); // bin
-
-

- produces an output similar to this -

-
 Using MSVC 2013
-
-nth Root finding Example.
-Type double value = 2, 5th root = 1.14869835499704
-Type long double value = 2, 5th root = 1.14869835499704
-Type class boost::multiprecision::number<class boost::multiprecision::backends::cpp_dec_float<50,int,void>,1> value = 2,
-  5th root = 1.1486983549970350067986269467779275894438508890978
-Type class boost::multiprecision::number<class boost::multiprecision::backends::cpp_bin_float<50,10,void,int,0,0>,0> value = 2,
-  5th root = 1.1486983549970350067986269467779275894438508890978
-
-
- - - - - -
[Tip]Tip
-

- Take care with the type passed to the function. It is best to pass a - double or greater-precision - floating-point type. -

-

- Passing an integer value, for example, nth_2deriv<5>(2) will - be rejected, while nth_2deriv<5, - double>(2) converts - the integer to double. -

-

- Avoid passing a float value - that will provoke warnings (actually spurious) from the compiler about - potential loss of data, as noted above. -

-
-
- - - - - -
[Warning]Warning

- Asking for unreasonable roots, for example, show_nth_root<1000000>(2.); may lead to Loss - of significance like Type - double value - = 2, 1000000th root - = 1.00000069314783. - Use of the the pow function - is more sensible for this unusual need. -

-

- Full code of this example is at root_finding_n_example.cpp. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/roots_deriv.html b/boost/libs/math/doc/html/math_toolkit/roots/roots_deriv.html deleted file mode 100644 index e98947e8..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/roots_deriv.html +++ /dev/null @@ -1,315 +0,0 @@ - - - -Root Finding With Derivatives: Newton-Raphson, Halley & Schröder - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/tools/roots.hpp>
-
-
namespace boost { namespace math {
-namespace tools { // Note namespace boost::math::tools.
-// Newton-Raphson
-template <class F, class T>
-T newton_raphson_iterate(F f, T guess, T min, T max, int digits);
-
-template <class F, class T>
-T newton_raphson_iterate(F f, T guess, T min, T max, int digits, boost::uintmax_t& max_iter);
-
-// Halley
-template <class F, class T>
-T halley_iterate(F f, T guess, T min, T max, int digits);
-
-template <class F, class T>
-T halley_iterate(F f, T guess, T min, T max, int digits, boost::uintmax_t& max_iter);
-
-// Schr'''&#xf6;'''der
-template <class F, class T>
-T schroder_iterate(F f, T guess, T min, T max, int digits);
-
-template <class F, class T>
-T schroder_iterate(F f, T guess, T min, T max, int digits, boost::uintmax_t& max_iter);
-
-}}} // namespaces boost::math::tools.
-
-
- - Description -
-

- These functions all perform iterative root-finding using - derivatives: -

-
-

- The functions all take the same parameters: -

-
-

Parameters of the root finding functions

-
-
F f
-
-

- Type F must be a callable function object that accepts one parameter - and returns a std::pair, - std::tuple, boost::tuple or boost::fusion::tuple: -

-

- For second-order iterative method (Newton - Raphson) the tuple - should have two elements containing - the evaluation of the function and its first derivative. -

-

- For the third-order methods (Halley - and Schröder) the tuple - should have three elements containing - the evaluation of the function and its first and second derivatives. -

-
-
T guess
-

- The initial starting value. A good guess is crucial to quick convergence! -

-
T min
-

- The minimum possible value for the result, this is used as an initial - lower bracket. -

-
T max
-

- The maximum possible value for the result, this is used as an initial - upper bracket. -

-
int digits
-

- The desired number of binary digits precision. -

-
uintmax_t& max_iter
-

- An optional maximum number of iterations to perform. On exit, this - is updated to the actual number of iterations performed. -

-
-
-

- When using these functions you should note that: -

-
    -
  • - Default max_iter = - (std::numeric_limits<boost::uintmax_t>::max)() is effectively 'iterate for ever'. -
  • -
  • - They may be very sensitive to the initial guess, typically they converge - very rapidly if the initial guess has two or three decimal digits correct. - However convergence can be no better than bisect, - or in some rare cases, even worse than bisect - if the initial guess is a long way from the correct value and the derivatives - are close to zero. -
  • -
  • - These functions include special cases to handle zero first (and second - where appropriate) derivatives, and fall back to bisect - in this case. However, it is helpful if functor F is defined to return - an arbitrarily small value of the correct sign rather - than zero. -
  • -
  • - If the derivative at the current best guess for the result is infinite - (or very close to being infinite) then these functions may terminate - prematurely. A large first derivative leads to a very small next step, - triggering the termination condition. Derivative based iteration may - not be appropriate in such cases. -
  • -
  • - If the function is 'Really Well Behaved' (is monotonic and has only one - root) the bracket bounds min and max - may as well be set to the widest limits like zero and numeric_limits<T>::max(). -
  • -
  • - But if the function more complex and may have more than one root or a - pole, the choice of bounds is protection against jumping out to seek - the 'wrong' root. -
  • -
  • - These functions fall back to bisect - if the next computed step would take the next value out of bounds. The - bounds are updated after each step to ensure this leads to convergence. - However, a good initial guess backed up by asymptotically-tight bounds - will improve performance no end - rather than relying on bisection. -
  • -
  • - The value of digits is crucial to good performance - of these functions, if it is set too high then at best you will get one - extra (unnecessary) iteration, and at worst the last few steps will proceed - by bisection. - Remember that the returned value can never be more accurate than f(x) - can be evaluated, and that if f(x) suffers from - cancellation errors as it tends to zero then the computed steps will - be effectively random. The value of digits should - be set so that iteration terminates before this point: remember that - for second and third order methods the number of correct digits in the - result is increasing quite substantially with each iteration, digits - should be set by experiment so that the final iteration just takes the - next value into the zone where f(x) becomes inaccurate. - A good starting point for digits would be 0.6*D - for Newton and 0.4*D for Halley or Shröder iteration, where D is std::numeric_limits<T>::digits. -
  • -
  • - If you need some diagnostic output to see what is going on, you can - #define BOOST_MATH_INSTRUMENT - before the #include <boost/math/tools/roots.hpp>, and also ensure that display of - all the significant digits with cout.precision(std::numeric_limits<double>::digits10): or even possibly significant digits - with cout.precision(std::numeric_limits<double>::max_digits10): - but be warned, this may produce copious output! -
  • -
  • - Finally: you may well be able to do better than these functions by hand-coding - the heuristics used so that they are tailored to a specific function. - You may also be able to compute the ratio of derivatives used by these - methods more efficiently than computing the derivatives themselves. As - ever, algebraic simplification can be a big win. -
  • -
-
- - Newton - Raphson Method -
-

- Given an initial guess x0 the subsequent values are - computed using: -

-

- -

-

- Out of bounds steps revert to bisection - of the current bounds. -

-

- Under ideal conditions, the number of correct digits doubles with each iteration. -

-
- - Halley's - Method -
-

- Given an initial guess x0 the subsequent values are - computed using: -

-

- -

-

- Over-compensation by the second derivative (one which would proceed in the - wrong direction) causes the method to revert to a Newton-Raphson step. -

-

- Out of bounds steps revert to bisection of the current bounds. -

-

- Under ideal conditions, the number of correct digits trebles with each iteration. -

-
- - Schröder's - Method -
-

- Given an initial guess x0 the subsequent values are computed using: -

-

- -

-

- Over-compensation by the second derivative (one which would proceed in the - wrong direction) causes the method to revert to a Newton-Raphson step. Likewise - a Newton step is used whenever that Newton step would change the next value - by more than 10%. -

-

- Out of bounds steps revert to bisection - of the current bounds. -

-

- Under ideal conditions, the number of correct digits trebles with each iteration. -

-

- This is Schröder's general result (equation 18 from Stewart, - G. W. "On Infinitely Many Algorithms for Solving Equations." English - translation of Schröder's original paper. College Park, MD: University of - Maryland, Institute for Advanced Computer Studies, Department of Computer - Science, 1993.) -

-

- This method guarantees at least quadratic convergence (the same as Newton's - method), and is known to work well in the presence of multiple roots: something - that neither Newton nor Halley can do. -

-
- - Examples -
-

- See root-finding - examples. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv.html b/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv.html deleted file mode 100644 index 519975b4..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv.html +++ /dev/null @@ -1,222 +0,0 @@ - - - -Root Finding Without Derivatives - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- - -
- - Synopsis -
-
#include <boost/math/tools/roots.hpp>
-
-
namespace boost { namespace math {
-namespace tools { // Note namespace boost::math::tools.
-// Bisection
-template <class F, class T, class Tol>
-std::pair<T, T>
-   bisect(
-      F f,
-      T min,
-      T max,
-      Tol tol,
-      boost::uintmax_t& max_iter);
-
-template <class F, class T, class Tol>
-std::pair<T, T>
-   bisect(
-      F f,
-      T min,
-      T max,
-      Tol tol);
-
-template <class F, class T, class Tol, class Policy>
-std::pair<T, T>
-   bisect(
-      F f,
-      T min,
-      T max,
-      Tol tol,
-      boost::uintmax_t& max_iter,
-      const Policy&);
-
-// Bracket and Solve Root
-template <class F, class T, class Tol>
-std::pair<T, T>
-   bracket_and_solve_root(
-      F f,
-      const T& guess,
-      const T& factor,
-      bool rising,
-      Tol tol,
-      boost::uintmax_t& max_iter);
-
-template <class F, class T, class Tol, class Policy>
-std::pair<T, T>
-   bracket_and_solve_root(
-      F f,
-      const T& guess,
-      const T& factor,
-      bool rising,
-      Tol tol,
-      boost::uintmax_t& max_iter,
-      const Policy&);
-
- // TOMS 748 algorithm
-template <class F, class T, class Tol>
-std::pair<T, T>
-   toms748_solve(
-      F f,
-      const T& a,
-      const T& b,
-      Tol tol,
-      boost::uintmax_t& max_iter);
-
-template <class F, class T, class Tol, class Policy>
-std::pair<T, T>
-   toms748_solve(
-      F f,
-      const T& a,
-      const T& b,
-      Tol tol,
-      boost::uintmax_t& max_iter,
-      const Policy&);
-
-template <class F, class T, class Tol>
-std::pair<T, T>
-   toms748_solve(
-      F f,
-      const T& a,
-      const T& b,
-      const T& fa,
-      const T& fb,
-      Tol tol,
-      boost::uintmax_t& max_iter);
-
-template <class F, class T, class Tol, class Policy>
-std::pair<T, T>
-   toms748_solve(
-      F f,
-      const T& a,
-      const T& b,
-      const T& fa,
-      const T& fb,
-      Tol tol,
-      boost::uintmax_t& max_iter,
-      const Policy&);
-
-// Termination conditions:
-template <class T>
-struct eps_tolerance;
-
-struct equal_floor;
-struct equal_ceil;
-struct equal_nearest_integer;
-
-}}} // boost::math::tools namespaces
-
-
- - Description -
-

- These functions solve the root of some function f(x) - - without the need for any derivatives of f(x). -

-

- The bracket_and_solve_root - functions use TOMS - 748 algorithm by Alefeld, Potra and Shi that is asymptotically the - most efficient known, and has been shown to be optimal for a certain classes - of smooth functions. Variants with and without Policies - are provided. -

-

- Alternatively, bisect - is a simple bisection - routine which can be useful in its own right in some situations, or alternatively - for narrowing down the range containing the root, prior to calling a more - advanced algorithm. -

-

- All the algorithms in this section reduce the diameter of the enclosing interval - with the same asymptotic efficiency with which they locate the root. This - is in contrast to the derivative based methods which may never - significantly reduce the enclosing interval, even though they rapidly approach - the root. This is also in contrast to some other derivative-free methods - (for example, Brent's method described at Brent-Dekker) - which only reduces the enclosing interval on the final step. Therefore these - methods return a std::pair containing the enclosing interval - found, and accept a function object specifying the termination condition. -

-

- Three function objects are provided for ready-made termination conditions: -

-
    -
  • - eps_tolerance causes termination when the relative - error in the enclosing interval is below a certain threshold. -
  • -
  • - equal_floor and equal_ceil - are useful for certain statistical applications where the result is known - to be an integer. -
  • -
  • - Other user-defined termination conditions are likely to be used only - rarely, but may be useful in some specific circumstances. -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/TOMS748.html b/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/TOMS748.html deleted file mode 100644 index d687f407..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/TOMS748.html +++ /dev/null @@ -1,193 +0,0 @@ - - - -Algorithm TOMS 748: Alefeld, Potra and Shi: Enclosing zeros of continuous functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
template <class F, class T, class Tol>
-std::pair<T, T>
-   toms748_solve(
-      F f,
-      const T& a,
-      const T& b,
-      Tol tol,
-      boost::uintmax_t& max_iter);
-
-template <class F, class T, class Tol, class Policy>
-std::pair<T, T>
-   toms748_solve(
-      F f,
-      const T& a,
-      const T& b,
-      Tol tol,
-      boost::uintmax_t& max_iter,
-      const Policy&);
-
-template <class F, class T, class Tol>
-std::pair<T, T>
-   toms748_solve(
-      F f,
-      const T& a,
-      const T& b,
-      const T& fa,
-      const T& fb,
-      Tol tol,
-      boost::uintmax_t& max_iter);
-
-template <class F, class T, class Tol, class Policy>
-std::pair<T, T>
-   toms748_solve(
-      F f,
-      const T& a,
-      const T& b,
-      const T& fa,
-      const T& fb,
-      Tol tol,
-      boost::uintmax_t& max_iter,
-      const Policy&);
-
-

- These functions implement TOMS Algorithm 748: it uses a mixture of cubic, - quadratic and linear (secant) interpolation to locate the root of f(x). - The two pairs of functions differ only by whether values for f(a) - and f(b) are already available. -

-

- Generally speaking it is easier (and often more efficient) to use bracket and solve - rather than trying to bracket the root yourself as this function requires. -

-

- This function is provided rather than Brent's - method as it is known to be more effient in many cases (it is asymptotically - the most efficient known, and has been shown to be optimal for a certain - classes of smooth functions). It also has the useful property of decreasing - the bracket size with each step, unlike Brent's method which only shrinks - the enclosing interval in the final step. This makes it particularly useful - when you need a result where the ends of the interval round to the same - integer: as often happens in statistical applications for example. In this - situation the function is able to exit after a much smaller number of iterations - than would otherwise be possible. -

-

- The TOMS 748 algorithm - parameters are: -

-
-

-
-
f
-

- A unary functor that is the function whose root is to be solved. - f(x) need not be uniformly increasing or decreasing on x - and may have multiple roots. However, the bounds given must bracket - a single root. -

-
a
-

- The lower bound for the initial bracket of the root. -

-
b
-

- The upper bound for the initial bracket of the root. It is a precondition - that a < b and that a - and b bracket the root to find so that f(a) - * f(b) < 0. -

-
fa
-

- Optional: the value of f(a). -

-
fb
-

- Optional: the value of f(b). -

-
tol
-

- A binary functor that determines the termination condition for the - search for the root. tol is passed the current - brackets at each step, when it returns true, then the current brackets - are returned as the result. See also predefined - termination functors. -

-
max_iter
-

- The maximum number of function invocations to perform in the search - for the root. On exit, max_iter is set to actual - number of function invocations used. -

-
-
-

- The final Policy argument is optional and - can be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- toms748_solve returns: - a pair of values r that bracket the root so that: -

-
f(r.first) * f(r.second) <= 0
-
-

- and either -

-
tol(r.first, r.second) == true
-
-

- or -

-
max_iter >= m
-
-

- where m is the initial value of max_iter - passed to the function. -

-

- In other words, it's up to the caller to verify whether termination occurred - as a result of exceeding max_iter function invocations - (easily done by checking the updated value of max_iter - against its previous value passed as parameter), rather than because the - termination condition tol was satisfied. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/bisect.html b/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/bisect.html deleted file mode 100644 index 0e61f166..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/bisect.html +++ /dev/null @@ -1,152 +0,0 @@ - - - -Bisection - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
template <class F, class T, class Tol>
-std::pair<T, T>
-   bisect(  // Unlimited iterations.
-      F f,
-      T min,
-      T max,
-      Tol tol);
-
-template <class F, class T, class Tol>
-std::pair<T, T>
-   bisect(  // Limited iterations.
-      F f,
-      T min,
-      T max,
-      Tol tol,
-      boost::uintmax_t& max_iter);
-
-template <class F, class T, class Tol, class Policy>
-std::pair<T, T>
-   bisect( // Specified policy.
-      F f,
-      T min,
-      T max,
-      Tol tol,
-      boost::uintmax_t& max_iter,
-      const Policy&);
-
-

- These functions locate the root using bisection. -

-

- bisect function arguments - are: -

-
-

-
-
f
-

- A unary functor which is the function f(x) whose - root is to be found. -

-
min
-

- The left bracket of the interval known to contain the root. -

-
max
-

- The right bracket of the interval known to contain the root.
- It is a precondition that min < max and - f(min)*f(max) <= 0, the function raises an - evaluation_error - if these preconditions are violated. The action taken on error is - controlled by the Policy template argument: - the default behavior is to throw a boost::math::evaluation_error. - If the Policy is changed to not throw - then it returns std::pair<T>(min, min). -

-
tol
-

- A binary functor that specifies the termination condition: the function - will return the current brackets enclosing the root when tol(min, - max) becomes true. See also predefined - termination functors. -

-
max_iter
-

- The maximum number of invocations of f(x) to - make while searching for the root. On exit, this is updated to the - actual number of invocations performed. -

-
-
-

- The final Policy argument is optional and - can be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- Returns: a pair of values r - that bracket the root so that: -

-
f(r.first) * f(r.second) <= 0
-
-

- and either -

-
tol(r.first, r.second) == true
-
-

- or -

-
max_iter >= m
-
-

- where m is the initial value of max_iter - passed to the function. -

-

- In other words, it's up to the caller to verify whether termination occurred - as a result of exceeding max_iter function invocations - (easily done by checking the updated value of max_iter - when the function returns), rather than because the termination condition - tol was satisfied. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/bracket_solve.html b/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/bracket_solve.html deleted file mode 100644 index 7c11655c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/bracket_solve.html +++ /dev/null @@ -1,186 +0,0 @@ - - - -Bracket and Solve Root - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
template <class F, class T, class Tol>
-std::pair<T, T>
-   bracket_and_solve_root(
-      F f,
-      const T& guess,
-      const T& factor,
-      bool rising,
-      Tol tol,
-      boost::uintmax_t& max_iter);
-
-template <class F, class T, class Tol, class Policy>
-std::pair<T, T>
-   bracket_and_solve_root(
-      F f,
-      const T& guess,
-      const T& factor,
-      bool rising,
-      Tol tol,
-      boost::uintmax_t& max_iter,
-      const Policy&);
-
-

- bracket_and_solve_root - is a convenience function that calls TOMS - 748 algorithm internally to find the root of f(x). - It is generally much easier to use this function rather than TOMS - 748 algorithm, since it does the hard work of bracketing the root - for you. It's bracketing routines are quite robust and will usually be - more foolproof than home-grown routines, unless the function can be analysed - to yield tight brackets. -

-

- Note that this routine can only be used when: -

-
    -
  • - f(x) is monotonic in the half of the real axis - containing guess. -
  • -
  • - The value of the inital guess must have the same sign as the root: - the function will never cross the origin when - searching for the root. -
  • -
  • - The location of the root should be known at least approximately, if - the location of the root differs by many orders of magnitude from - guess then many iterations will be needed to bracket - the root in spite of the special heuristics used to guard against this - very situation. A typical example would be setting the initial guess - to 0.1, when the root is at 1e-300. -
  • -
-

- The bracket_and_solve_root - parameters are: -

-
-

-
-
f
-

- A unary functor that is the function whose root is to be solved. - f(x) must be uniformly increasing or decreasing - on x. -

-
guess
-

- An initial approximation to the root. -

-
factor
-

- A scaling factor that is used to bracket the root: the value guess - is multiplied (or divided as appropriate) by factor - until two values are found that bracket the root. A value such as - 2 is a typical choice for factor. In addition - factor will be multiplied by 2 every 32 iterations: - this is to guard against a really very bad initial guess, typically - these occur when it's known the result is very large or small, but - not the exact order of magnitude. -

-
rising
-

- Set to true if f(x) is - rising on x and false if - f(x) is falling on x. This - value is used along with the result of f(guess) - to determine if guess is above or below the - root. -

-
tol
-

- A binary functor that determines the termination condition for the - search for the root. tol is passed the current - brackets at each step, when it returns true then the current brackets - are returned as the pair result. See also predefined - termination functors. -

-
max_iter
-

- The maximum number of function invocations to perform in the search - for the root. On exit is set to the actual number of invocations - performed. -

-
-
-

- The final Policy argument is optional and - can be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- Returns: a pair of values r - that bracket the root so that: -

-
f(r.first) * f(r.second) <= 0
-
-

- and either -

-
tol(r.first, r.second) == true
-
-

- or -

-
max_iter >= m
-
-

- where m is the initial value of max_iter - passed to the function. -

-

- In other words, it's up to the caller to verify whether termination occurred - as a result of exceeding max_iter function invocations - (easily done by checking the value of max_iter when - the function returns), rather than because the termination condition tol - was satisfied. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/brent.html b/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/brent.html deleted file mode 100644 index beb66e2c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/brent.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -Brent-Decker Algorithm - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The Brent-Dekker - algorithm, although very well know, is not provided by this library - as TOMS 748 algorithm - or its slightly easier to use variant bracket - and solve are superior and provide equivalent functionality. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/implementation.html b/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/implementation.html deleted file mode 100644 index 33d7ab6b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/implementation.html +++ /dev/null @@ -1,63 +0,0 @@ - - - -Implementation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The implementation of the bisection algorithm is extremely straightforward - and not detailed here. -

-

- TOMS Algorithm - 748: enclosing zeros of continuous functions is described in detail - in: -

-

- Algorithm 748: Enclosing Zeros of Continuous Functions, G. E. - Alefeld, F. A. Potra and Yixun Shi, ACM Transactions on Mathematica1 Software, - Vol. 21. No. 3. September 1995. Pages 327-344. -

-

- The implementation here is a faithful translation of this paper into C++. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/root_termination.html b/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/root_termination.html deleted file mode 100644 index c0191104..00000000 --- a/boost/libs/math/doc/html/math_toolkit/roots/roots_noderiv/root_termination.html +++ /dev/null @@ -1,102 +0,0 @@ - - - -Termination Condition Functors - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
template <class T>
-struct eps_tolerance
-{
-   eps_tolerance();
-   eps_tolerance(int bits);
-   bool operator()(const T& a, const T& b)const;
-};
-
-

- eps_tolerance is the usual - termination condition used with these root finding functions. Its operator() - will return true when the relative distance between a - and b is less than four times the machine epsilon - for T, or 21-bits, whichever is the larger. In other words, you set bits - to the number of bits of precision you want in the result. The minimal - tolerance of four times the machine epsilon of type T - is required to ensure that we get back a bracketing interval, since this - must clearly be at greater than one epsilon in size. While in theory a - maximum distance of twice machine epsilon is possible to achieve, in practice - this results in a great deal of "thrashing" given that the function - whose root is being found can only ever be accurate to 1 epsilon at best. -

-
struct equal_floor
-{
-   equal_floor();
-   template <class T> bool operator()(const T& a, const T& b)const;
-};
-
-

- This termination condition is used when you want to find an integer result - that is the floor of the true root. It will terminate - as soon as both ends of the interval have the same floor. -

-
struct equal_ceil
-{
-   equal_ceil();
-   template <class T> bool operator()(const T& a, const T& b)const;
-};
-
-

- This termination condition is used when you want to find an integer result - that is the ceil of the true root. It will terminate - as soon as both ends of the interval have the same ceil. -

-
struct equal_nearest_integer
-{
-   equal_nearest_integer();
-   template <class T> bool operator()(const T& a, const T& b)const;
-};
-
-

- This termination condition is used when you want to find an integer result - that is the closest to the true root. It will terminate - as soon as both ends of the interval round to the same nearest integer. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/rounding.html b/boost/libs/math/doc/html/math_toolkit/rounding.html deleted file mode 100644 index 19968a6e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/rounding.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Rounding Truncation and Integer Conversion - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/rounding/modf.html b/boost/libs/math/doc/html/math_toolkit/rounding/modf.html deleted file mode 100644 index 1f6679fe..00000000 --- a/boost/libs/math/doc/html/math_toolkit/rounding/modf.html +++ /dev/null @@ -1,83 +0,0 @@ - - - -Integer and Fractional Part Splitting (modf) - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/modf.hpp>
-
template <class T>
-T modf(const T& v, T* ipart);
-
-template <class T, class Policy>
-T modf(const T& v, T* ipart, const Policy&);
-
-template <class T>
-T modf(const T& v, int* ipart);
-
-template <class T, class Policy>
-T modf(const T& v, int* ipart, const Policy&);
-
-template <class T>
-T modf(const T& v, long* ipart);
-
-template <class T, class Policy>
-T modf(const T& v, long* ipart, const Policy&);
-
-template <class T>
-T modf(const T& v, long long* ipart);
-
-template <class T, class Policy>
-T modf(const T& v, long long* ipart, const Policy&);
-
-

- The modf functions store - the integer part of v in *ipart and return the fractional part of - v. The sign of the integer and fractional parts are - the same as the sign of v. -

-

- If the argument v is either non-finite or else outside - the range of the result type, then returns the result of rounding_error: - by default this throws an instance of boost::math::rounding_error. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/rounding/round.html b/boost/libs/math/doc/html/math_toolkit/rounding/round.html deleted file mode 100644 index 2f55938c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/rounding/round.html +++ /dev/null @@ -1,83 +0,0 @@ - - - -Rounding Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/round.hpp>
-
template <class T>
-T round(const T& v);
-
-template <class T, class Policy>
-T round(const T& v, const Policy&);
-
-template <class T>
-int iround(const T& v);
-
-template <class T, class Policy>
-int iround(const T& v, const Policy&);
-
-template <class T>
-long lround(const T& v);
-
-template <class T, class Policy>
-long lround(const T& v, const Policy&);
-
-template <class T>
-long long llround(const T& v);
-
-template <class T, class Policy>
-long long llround(const T& v, const Policy&);
-
-

- These functions return the closest integer to the argument v. -

-

- Halfway cases are rounded away from zero, regardless of the current rounding - direction. -

-

- If the argument v is either non-finite or else outside - the range of the result type, then returns the result of rounding_error: - by default this throws an instance of boost::math::rounding_error. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/rounding/trunc.html b/boost/libs/math/doc/html/math_toolkit/rounding/trunc.html deleted file mode 100644 index 33c28a0a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/rounding/trunc.html +++ /dev/null @@ -1,85 +0,0 @@ - - - -Truncation Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/trunc.hpp>
-
template <class T>
-T trunc(const T& v);
-
-template <class T, class Policy>
-T trunc(const T& v, const Policy&);
-
-template <class T>
-int itrunc(const T& v);
-
-template <class T, class Policy>
-int itrunc(const T& v, const Policy&);
-
-template <class T>
-long ltrunc(const T& v);
-
-template <class T, class Policy>
-long ltrunc(const T& v, const Policy&);
-
-template <class T>
-long long lltrunc(const T& v);
-
-template <class T, class Policy>
-long long lltrunc(const T& v, const Policy&);
-
-

- The trunc functions round their argument to the integer value, nearest to - but no larger in magnitude than the argument. -

-

- For example itrunc(3.7) would - return 3 and ltrunc(-4.6) - would return -4. -

-

- If the argument v is either non-finite or else outside - the range of the result type, then returns the result of rounding_error: - by default this throws an instance of boost::math::rounding_error. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/run_time.html b/boost/libs/math/doc/html/math_toolkit/run_time.html deleted file mode 100644 index 3f1bd3a9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/run_time.html +++ /dev/null @@ -1,73 +0,0 @@ - - - -Run-time GCD & LCM Determination - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Header: <boost/math/common_factor_rt.hpp> -

-
template < typename IntegerType >
-IntegerType  boost::math::gcd( IntegerType const &a, IntegerType const &b );
-
-template < typename ForwardIterator >
-std::pair<typename std::iterator_traits<I>::value_type, I> gcd_range(I first, I last);
-
-template < typename IntegerType >
-IntegerType  boost::math::lcm( IntegerType const &a, IntegerType const &b );
-
-

- The boost::math::gcd - function template returns the greatest common (nonnegative) divisor of the - two integers passed to it. boost::math::gcd_range is the iteration of the above gcd - algorithm over a range, returning the greatest common divisor of all the elements. - The algorithm terminates when the gcd reaches unity or the end of the range. - Thus it also returns the iterator after the last element inspected because - this may not be equal to the end of the range. The boost::math::lcm function - template returns the least common (nonnegative) multiple of the two integers - passed to it. The function templates are parameterized on the function arguments' - IntegerType, which is also the return type. Internally, these function templates - use an object of the corresponding version of the gcd_evaluator - and lcm_evaluator class templates, - respectively. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_beta.html b/boost/libs/math/doc/html/math_toolkit/sf_beta.html deleted file mode 100644 index 8ae61441..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_beta.html +++ /dev/null @@ -1,55 +0,0 @@ - - - -Beta Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_beta/beta_derivative.html b/boost/libs/math/doc/html/math_toolkit/sf_beta/beta_derivative.html deleted file mode 100644 index d759f98a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_beta/beta_derivative.html +++ /dev/null @@ -1,102 +0,0 @@ - - - -Derivative of the Incomplete Beta Function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/beta.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T1, class T2, class T3>
-calculated-result-type ibeta_derivative(T1 a, T2 b, T3 x);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibeta_derivative(T1 a, T2 b, T3 x, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- This function finds some uses in statistical distributions: it computes the - partial derivative with respect to x of the incomplete - beta function ibeta. -

-

- -

-

- The return type of this function is computed using the result - type calculation rules when T1, T2 and T3 are different - types. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Accuracy -
-

- Almost identical to the incomplete beta function ibeta. -

-
- - Implementation -
-

- This function just expose some of the internals of the incomplete beta function - ibeta: refer to - the documentation for that function for more information. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_beta/beta_function.html b/boost/libs/math/doc/html/math_toolkit/sf_beta/beta_function.html deleted file mode 100644 index 252486ae..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_beta/beta_function.html +++ /dev/null @@ -1,318 +0,0 @@ - - - -Beta - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Beta -

-
- - Synopsis -
-
#include <boost/math/special_functions/beta.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T1, class T2>
-calculated-result-type beta(T1 a, T2 b);
-
-template <class T1, class T2, class Policy>
-calculated-result-type beta(T1 a, T2 b, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- The beta function is defined by: -

-

- -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- There are effectively two versions of this function internally: a fully generic - version that is slow, but reasonably accurate, and a much more efficient - approximation that is used where the number of digits in the significand - of T correspond to a certain Lanczos - approximation. In practice any built-in floating-point type you will - encounter has an appropriate Lanczos - approximation defined for it. It is also possible, given enough machine - time, to generate further Lanczos approximation's - using the program libs/math/tools/lanczos_generator.cpp. -

-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types. -

-
- - Accuracy -
-

- The following table shows peak errors for various domains of input arguments, - along with comparisons to the GSL-1.9 - and Cephes libraries. - Note that only results for the widest floating point type on the system are - given as narrower types have effectively - zero error. -

-
-

Table 6.17. Error rates for beta

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Beta Function: Small Values -

-
-

- Max = 1.75ε (Mean = 0.828ε) -

-
-

- Max = 2.65ε (Mean = 1.22ε)

- (<tr1/cmath>: Max = 11.9ε (Mean = 7.03ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.94ε (Mean = 1.44ε))
(Rmath - 3.0.2: Max = 1.14ε (Mean = 0.601ε))
(Cephes: - Max = 1.97ε (Mean = 0.934ε)) -

-
-

- Max = 2.86ε (Mean = 1.31ε) -

-
-

- Beta Function: Medium Values -

-
-

- Max = 99.1ε (Mean = 22.4ε) -

-
-

- Max = 60.4ε (Mean = 19.4ε)

- (<tr1/cmath>: Max = 1.07e+03ε (Mean = - 264ε)) -

-
-

- Max = 0.978ε (Mean = 0.0578ε)
-
(GSL 1.16: Max = 1.18e+03ε (Mean = 238ε))
- (Rmath 3.0.2: Max = 1.09e+03ε (Mean = 265ε))
- (Cephes: Max = 1.5e+03ε (Mean = 329ε)) -

-
-

- Max = 107ε (Mean = 24.5ε) -

-
-

- Beta Function: Divergent Values -

-
-

- Max = 10.7ε (Mean = 2.22ε) -

-
-

- Max = 10.3ε (Mean = 2.41ε)

- (<tr1/cmath>: Max = 128ε (Mean = 23.8ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 12.1ε (Mean = 1.99ε))
(Rmath - 3.0.2: Max = 176ε (Mean = 28ε))
(Cephes: - Max = 175ε (Mean = 22ε)) -

-
-

- Max = 19.7ε (Mean = 2.75ε) -

-
-
-

- Note that the worst errors occur when a or b are large, and that when this - is the case the result is very close to zero, so absolute errors will be - very small. -

-
- - Testing -
-

- A mixture of spot tests of exact values, and randomly generated test data - are used: the test data was computed using NTL::RR - at 1000-bit precision. -

-
- - Implementation -
-

- Traditional methods of evaluating the beta function either involve evaluating - the gamma functions directly, or taking logarithms and then exponentiating - the result. However, the former is prone to overflows for even very modest - arguments, while the latter is prone to cancellation errors. As an alternative, - if we regard the gamma function as a white-box containing the Lanczos - approximation, then we can combine the power terms: -

-

- -

-

- which is almost the ideal solution, however almost all of the error occurs - in evaluating the power terms when a or b - are large. If we assume that a > b then the larger - of the two power terms can be reduced by a factor of b, - which immediately cuts the maximum error in half: -

-

- -

-

- This may not be the final solution, but it is very competitive compared to - other implementation methods. -

-

- The generic implementation - where no Lanczos - approximation approximation is available - is implemented in a very - similar way to the generic version of the gamma function. Again in order - to avoid numerical overflow the power terms that prefix the series and continued - fraction parts are collected together into: -

-

- -

-

- where la, lb and lc are the integration limits used for a, b, and a+b. -

-

- There are a few special cases worth mentioning: -

-

- When a or b are less than one, - we can use the recurrence relations: -

-

- -

-

- -

-

- to move to a more favorable region where they are both greater than 1. -

-

- In addition: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_beta/ibeta_function.html b/boost/libs/math/doc/html/math_toolkit/sf_beta/ibeta_function.html deleted file mode 100644 index be444993..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_beta/ibeta_function.html +++ /dev/null @@ -1,893 +0,0 @@ - - - -Incomplete Beta Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/beta.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T1, class T2, class T3>
-calculated-result-type ibeta(T1 a, T2 b, T3 x);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibeta(T1 a, T2 b, T3 x, const Policy&);
-
-template <class T1, class T2, class T3>
-calculated-result-type ibetac(T1 a, T2 b, T3 x);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibetac(T1 a, T2 b, T3 x, const Policy&);
-
-template <class T1, class T2, class T3>
-calculated-result-type beta(T1 a, T2 b, T3 x);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type beta(T1 a, T2 b, T3 x, const Policy&);
-
-template <class T1, class T2, class T3>
-calculated-result-type betac(T1 a, T2 b, T3 x);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type betac(T1 a, T2 b, T3 x, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- There are four incomplete - beta functions : two are normalised versions (also known as regularized - beta functions) that return values in the range [0, 1], and two are non-normalised - and return values in the range [0, beta(a, - b)]. Users interested in statistical applications should use the normalised - (or regularized - ) versions (ibeta and ibetac). -

-

- All of these functions require 0 <= x <= 1. -

-

- The normalized functions ibeta - and ibetac require - a,b >= 0, and in addition that not both a - and b are zero. -

-

- The functions beta - and betac require - a,b > 0. -

-

- The return type of these functions is computed using the result - type calculation rules when T1, T2 and T3 are different - types. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T1, class T2, class T3>
-calculated-result-type ibeta(T1 a, T2 b, T3 x);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibeta(T1 a, T2 b, T3 x, const Policy&);
-
-

- Returns the normalised incomplete beta function of a, b and x: -

-

- -

-

- -

-
template <class T1, class T2, class T3>
-calculated-result-type ibetac(T1 a, T2 b, T3 x);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibetac(T1 a, T2 b, T3 x, const Policy&);
-
-

- Returns the normalised complement of the incomplete beta function of a, b - and x: -

-

- -

-
template <class T1, class T2, class T3>
-calculated-result-type beta(T1 a, T2 b, T3 x);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type beta(T1 a, T2 b, T3 x, const Policy&);
-
-

- Returns the full (non-normalised) incomplete beta function of a, b and x: -

-

- -

-
template <class T1, class T2, class T3>
-calculated-result-type betac(T1 a, T2 b, T3 x);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type betac(T1 a, T2 b, T3 x, const Policy&);
-
-

- Returns the full (non-normalised) complement of the incomplete beta function - of a, b and x: -

-

- -

-
- - Accuracy -
-

- The following tables give peak and mean relative errors in over various domains - of a, b and x, along with comparisons to the GSL-1.9 - and Cephes libraries. - Note that only results for the widest floating-point type on the system are - given as narrower types have effectively - zero error. -

-

- Note that the results for 80 and 128-bit long doubles are noticeably higher - than for doubles: this is because the wider exponent range of these types - allow more extreme test cases to be tested. For example expected results - that are zero at double precision, may be finite but exceptionally small - with the wider exponent range of the long double types. -

-
-

Table 6.18. Error rates for ibeta

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete Beta Function: Small Values -

-
-

- Max = 9.42ε (Mean = 2.24ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 682ε (Mean = 32.6ε))
(Rmath - 3.0.2: Max = 22.9ε (Mean = 3.35ε))
(Cephes: - Max = 22.7ε (Mean = 1.69ε)) -

-
-

- Max = 6.27ε (Mean = 1.7ε) -

-
-

- Max = 21.3ε (Mean = 2.74ε) -

-
-

- Incomplete Beta Function: Medium Values -

-
-

- Max = 108ε (Mean = 16.3ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 690ε (Mean = 151ε))
(Rmath - 3.0.2: Max = 232ε (Mean = 27.9ε))
(Cephes: - Max = 1.55e+03ε (Mean = 121ε)) -

-
-

- Max = 51.4ε (Mean = 12ε) -

-
-

- Max = 124ε (Mean = 18.4ε) -

-
-

- Incomplete Beta Function: Large and Diverse Values -

-
-

- Max = 1.19e+003ε (Mean = 59.5ε) -

-
-

- Max = 1.26ε (Mean = 0.063ε)

- (GSL 1.16: Max = 3.9e+05ε (Mean = 1.82e+04ε) - And - other failures.)
(Rmath 3.0.2: - Max = 574ε (Mean = 49.4ε))
(Cephes: Max - = 5.92e+05ε (Mean = 2.17e+04ε)) -

-
-

- Max = 1.96e+04ε (Mean = 997ε) -

-
-

- Max = 4.98e+04ε (Mean = 2.07e+03ε) -

-
-

- Incomplete Beta Function: Small Integer Values -

-
-

- Max = 3.69ε (Mean = 0.765ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 254ε (Mean = 50.9ε))
(Rmath - 3.0.2: Max = 62.2ε (Mean = 8.95ε))
(Cephes: - Max = 7.96ε (Mean = 1.3ε)) -

-
-

- Max = 4.45ε (Mean = 0.814ε) -

-
-

- Max = 44.5ε (Mean = 10.1ε) -

-
-
-
-

Table 6.19. Error rates for ibetac

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete Beta Function: Small Values -

-
-

- Max = 6.56ε (Mean = 1.88ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 22.4ε (Mean = 3.67ε)) -

-
-

- Max = 8.47ε (Mean = 1.68ε) -

-
-

- Max = 13.8ε (Mean = 2.69ε) -

-
-

- Incomplete Beta Function: Medium Values -

-
-

- Max = 56.2ε (Mean = 14.1ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 204ε (Mean = 25.8ε)) -

-
-

- Max = 75.3ε (Mean = 11.3ε) -

-
-

- Max = 132ε (Mean = 19.8ε) -

-
-

- Incomplete Beta Function: Large and Diverse Values -

-
-

- Max = 1.87e+003ε (Mean = 93.8ε) -

-
-

- Max = 0.981ε (Mean = 0.0638ε)
-
(Rmath 3.0.2: Max = 889ε (Mean = 68.4ε)) -

-
-

- Max = 3.45e+04ε (Mean = 1.32e+03ε) -

-
-

- Max = 4.26e+04ε (Mean = 1.54e+03ε) -

-
-

- Incomplete Beta Function: Small Integer Values -

-
-

- Max = 6.37ε (Mean = 1.03ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 84.6ε (Mean = 18ε)) -

-
-

- Max = 5.34ε (Mean = 1.11ε) -

-
-

- Max = 107ε (Mean = 17.1ε) -

-
-
-
-

Table 6.20. Error rates for beta (incomplete)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete Beta Function: Small Values -

-
-

- Max = 11.1ε (Mean = 2.28ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 12.5ε (Mean = 2.01ε) -

-
-

- Max = 18.7ε (Mean = 3.19ε) -

-
-

- Incomplete Beta Function: Medium Values -

-
-

- Max = 91.1ε (Mean = 12.7ε) -

-
-

- Max = 0.568ε (Mean = 0.0342ε) -

-
-

- Max = 67.1ε (Mean = 13.3ε) -

-
-

- Max = 174ε (Mean = 25ε) -

-
-

- Incomplete Beta Function: Large and Diverse Values -

-
-

- Max = 635ε (Mean = 29.5ε) -

-
-

- Max = 0.999ε (Mean = 0.0399ε) -

-
-

- Max = 6.84e+04ε (Mean = 2.76e+03ε) -

-
-

- Max = 6.86e+04ε (Mean = 2.79e+03ε) -

-
-

- Incomplete Beta Function: Small Integer Values -

-
-

- Max = 26.8ε (Mean = 6.61ε) -

-
-

- Max = 0.786ε (Mean = 0.0248ε) -

-
-

- Max = 10.2ε (Mean = 3.49ε) -

-
-

- Max = 51.8ε (Mean = 11ε) -

-
-
-
-

Table 6.21. Error rates for betac

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete Beta Function: Small Values -

-
-

- Max = 12ε (Mean = 2.43ε) -

-
-

- Max = 0.676ε (Mean = 0.0302ε) -

-
-

- Max = 7.75ε (Mean = 1.91ε) -

-
-

- Max = 12.6ε (Mean = 3.02ε) -

-
-

- Incomplete Beta Function: Medium Values -

-
-

- Max = 91.3ε (Mean = 14.8ε) -

-
-

- Max = 0.949ε (Mean = 0.0944ε) -

-
-

- Max = 63.5ε (Mean = 13.4ε) -

-
-

- Max = 97.6ε (Mean = 24.3ε) -

-
-

- Incomplete Beta Function: Large and Diverse Values -

-
-

- Max = 3.72e+003ε (Mean = 113ε) -

-
-

- Max = 1.12ε (Mean = 0.0458ε) -

-
-

- Max = 1.05e+05ε (Mean = 5.45e+03ε) -

-
-

- Max = 1.04e+05ε (Mean = 5.46e+03ε) -

-
-

- Incomplete Beta Function: Small Integer Values -

-
-

- Max = 26.7ε (Mean = 6.67ε) -

-
-

- Max = 0.586ε (Mean = 0.0314ε) -

-
-

- Max = 10.4ε (Mean = 3.54ε) -

-
-

- Max = 103ε (Mean = 17.4ε) -

-
-
-
- - Testing -
-

- There are two sets of tests: spot tests compare values taken from Mathworld's - online function evaluator with this implementation: they provide - a basic "sanity check" for the implementation, with one spot-test - in each implementation-domain (see implementation notes below). -

-

- Accuracy tests use data generated at very high precision (with NTL - RR class set at 1000-bit precision), using the "textbook" - continued fraction representation (refer to the first continued fraction - in the implementation discussion below). Note that this continued fraction - is not used in the implementation, and therefore we - have test data that is fully independent of the code. -

-
- - Implementation -
-

- This implementation is closely based upon "Algorithm - 708; Significant digit computation of the incomplete beta function ratios", - DiDonato and Morris, ACM, 1992. -

-

- All four of these functions share a common implementation: this is passed - both x and y, and can return either p or q where these are related by: -

-

- -

-

- so at any point we can swap a for b, x for y and p for q if this results - in a more favourable position. Generally such swaps are performed so that - we always compute a value less than 0.9: when required this can then be subtracted - from 1 without undue cancellation error. -

-

- The following continued fraction representation is found in many textbooks - but is not used in this implementation - it's both slower and less accurate - than the alternatives - however it is used to generate test data: -

-

- -

-

- The following continued fraction is due to Didonato - and Morris, and is used in this implementation when a and b are both - greater than 1: -

-

- -

-

- For smallish b and x then a series representation can be used: -

-

- -

-

- When b << a then the transition from 0 to 1 occurs very close to x - = 1 and some care has to be taken over the method of computation, in that - case the following series representation is used: -

-

- - -

-

- Where Q(a,x) is an incomplete - gamma function. Note that this method relies on keeping a table of - all the pn previously computed, which does limit the precision of the method, - depending upon the size of the table used. -

-

- When a and b are both small integers, - then we can relate the incomplete beta to the binomial distribution and use - the following finite sum: -

-

- -

-

- Finally we can sidestep difficult areas, or move to an area with a more efficient - means of computation, by using the duplication formulae: -

-

- -

-

- -

-

- The domains of a, b and x for which the various methods are used are identical - to those described in the Didonato - and Morris TOMS 708 paper. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_beta/ibeta_inv_function.html b/boost/libs/math/doc/html/math_toolkit/sf_beta/ibeta_inv_function.html deleted file mode 100644 index b0538b9b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_beta/ibeta_inv_function.html +++ /dev/null @@ -1,912 +0,0 @@ - - - -The Incomplete Beta Function Inverses - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/beta.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T1, class T2, class T3>
-calculated-result-type ibeta_inv(T1 a, T2 b, T3 p);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibeta_inv(T1 a, T2 b, T3 p, const Policy&);
-
-template <class T1, class T2, class T3, class T4>
-calculated-result-type ibeta_inv(T1 a, T2 b, T3 p, T4* py);
-
-template <class T1, class T2, class T3, class T4, class Policy>
-calculated-result-type ibeta_inv(T1 a, T2 b, T3 p, T4* py, const Policy&);
-
-template <class T1, class T2, class T3>
-calculated-result-type ibetac_inv(T1 a, T2 b, T3 q);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibetac_inv(T1 a, T2 b, T3 q, const Policy&);
-
-template <class T1, class T2, class T3, class T4>
-calculated-result-type ibetac_inv(T1 a, T2 b, T3 q, T4* py);
-
-template <class T1, class T2, class T3, class T4, class Policy>
-calculated-result-type ibetac_inv(T1 a, T2 b, T3 q, T4* py, const Policy&);
-
-template <class T1, class T2, class T3>
-calculated-result-type ibeta_inva(T1 b, T2 x, T3 p);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibeta_inva(T1 b, T2 x, T3 p, const Policy&);
-
-template <class T1, class T2, class T3>
-calculated-result-type ibetac_inva(T1 b, T2 x, T3 q);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibetac_inva(T1 b, T2 x, T3 q, const Policy&);
-
-template <class T1, class T2, class T3>
-calculated-result-type ibeta_invb(T1 a, T2 x, T3 p);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibeta_invb(T1 a, T2 x, T3 p, const Policy&);
-
-template <class T1, class T2, class T3>
-calculated-result-type ibetac_invb(T1 a, T2 x, T3 q);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibetac_invb(T1 a, T2 x, T3 q, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- There are six incomplete - beta function inverses which allow you solve for any of the three - parameters to the incomplete beta, starting from either the result of the - incomplete beta (p) or its complement (q). -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - - - - -
[Tip]Tip
-

- When people normally talk about the inverse of the incomplete beta function, - they are talking about inverting on parameter x. These - are implemented here as ibeta_inv and ibetac_inv, and are by far the most - efficient of the inverses presented here. -

-

- The inverses on the a and b parameters - find use in some statistical applications, but have to be computed by rather - brute force numerical techniques and are consequently several times slower. - These are implemented here as ibeta_inva and ibeta_invb, and complement - versions ibetac_inva and ibetac_invb. -

-
-

- The return type of these functions is computed using the result - type calculation rules when called with arguments T1...TN - of different types. -

-
template <class T1, class T2, class T3>
-calculated-result-type ibeta_inv(T1 a, T2 b, T3 p);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibeta_inv(T1 a, T2 b, T3 p, const Policy&);
-
-template <class T1, class T2, class T3, class T4>
-calculated-result-type ibeta_inv(T1 a, T2 b, T3 p, T4* py);
-
-template <class T1, class T2, class T3, class T4, class Policy>
-calculated-result-type ibeta_inv(T1 a, T2 b, T3 p, T4* py, const Policy&);
-
-

- Returns a value x such that: p - = ibeta(a, - b, x); and - sets *py - = 1 - x when - the py parameter is provided - and is non-null. Note that internally this function computes whichever is - the smaller of x and 1-x, - and therefore the value assigned to *py is free from cancellation errors. That - means that even if the function returns 1, - the value stored in *py - may be non-zero, albeit very small. -

-

- Requires: a,b > 0 and 0 <= p <= 1. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T1, class T2, class T3>
-calculated-result-type ibetac_inv(T1 a, T2 b, T3 q);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibetac_inv(T1 a, T2 b, T3 q, const Policy&);
-
-template <class T1, class T2, class T3, class T4>
-calculated-result-type ibetac_inv(T1 a, T2 b, T3 q, T4* py);
-
-template <class T1, class T2, class T3, class T4, class Policy>
-calculated-result-type ibetac_inv(T1 a, T2 b, T3 q, T4* py, const Policy&);
-
-

- Returns a value x such that: q - = ibetac(a, - b, x); and - sets *py - = 1 - x when - the py parameter is provided - and is non-null. Note that internally this function computes whichever is - the smaller of x and 1-x, - and therefore the value assigned to *py is free from cancellation errors. That - means that even if the function returns 1, - the value stored in *py - may be non-zero, albeit very small. -

-

- Requires: a,b > 0 and 0 <= q <= 1. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T1, class T2, class T3>
-calculated-result-type ibeta_inva(T1 b, T2 x, T3 p);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibeta_inva(T1 b, T2 x, T3 p, const Policy&);
-
-

- Returns a value a such that: p - = ibeta(a, - b, x); -

-

- Requires: b > 0, 0 < x < 1 - and 0 <= p <= 1. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T1, class T2, class T3>
-calculated-result-type ibetac_inva(T1 b, T2 x, T3 p);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibetac_inva(T1 b, T2 x, T3 p, const Policy&);
-
-

- Returns a value a such that: q - = ibetac(a, - b, x); -

-

- Requires: b > 0, 0 < x < 1 - and 0 <= q <= 1. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T1, class T2, class T3>
-calculated-result-type ibeta_invb(T1 b, T2 x, T3 p);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibeta_invb(T1 b, T2 x, T3 p, const Policy&);
-
-

- Returns a value b such that: p - = ibeta(a, - b, x); -

-

- Requires: a > 0, 0 < x < 1 - and 0 <= p <= 1. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T1, class T2, class T3>
-calculated-result-type ibetac_invb(T1 b, T2 x, T3 p);
-
-template <class T1, class T2, class T3, class Policy>
-calculated-result-type ibetac_invb(T1 b, T2 x, T3 p, const Policy&);
-
-

- Returns a value b such that: q - = ibetac(a, - b, x); -

-

- Requires: a > 0, 0 < x < 1 - and 0 <= q <= 1. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Accuracy -
-

- The accuracy of these functions should closely follow that of the regular - forward incomplete beta functions. However, note that in some parts of their - domain, these functions can be extremely sensitive to changes in input, particularly - when the argument p (or it's complement q) - is very close to 0 or 1. -

-

- Comparisons to other libraries are shown below, note that our test data exercises - some rather extreme cases in the incomplete beta function which many other - libraries fail to handle: -

-
-

Table 6.22. Error rates for ibeta_inv

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 7.08e+003ε (Mean = 244ε) -

-
-

- Max = 3.21ε (Mean = 0.158ε)

- (Rmath 3.0.2: Max = +INFε (Mean - = +INFε) And - other failures.)
(Cephes: - Max = 1.28e+10ε (Mean = 5.17e+08ε)) -

-
-

- Max = 4.53e+04ε (Mean = 2.93e+03ε) -

-
-

- Max = 4.22e+04ε (Mean = 2.8e+03ε) -

-
-
-
-

Table 6.23. Error rates for ibetac_inv

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 5.53e+003ε (Mean = 220ε) -

-
-

- Max = 1.71ε (Mean = 0.108ε)

- (Rmath 3.0.2: Max = +INFε (Mean - = +INFε) And - other failures.)
(Cephes: - Max = 1.71ε (Mean = 0.108ε)) -

-
-

- Max = 6.17e+04ε (Mean = 3.77e+03ε) -

-
-

- Max = 5.15e+04ε (Mean = 3.51e+03ε) -

-
-
-
-

Table 6.24. Error rates for ibeta_inva

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 395ε (Mean = 24.7ε) -

-
-

- Max = 0.602ε (Mean = 0.0239ε) -

-
-

- Max = 377ε (Mean = 25.1ε) -

-
-

- Max = 438ε (Mean = 31.6ε) -

-
-
-
-

Table 6.25. Error rates for ibetac_inva

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 408ε (Mean = 27.8ε) -

-
-

- Max = 0.683ε (Mean = 0.0271ε) -

-
-

- Max = 382ε (Mean = 22.2ε) -

-
-

- Max = 315ε (Mean = 23.7ε) -

-
-
-
-

Table 6.26. Error rates for ibeta_invb

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 409ε (Mean = 17.9ε) -

-
-

- Max = 0.836ε (Mean = 0.0491ε) -

-
-

- Max = 407ε (Mean = 27.2ε) -

-
-

- Max = 407ε (Mean = 24.4ε) -

-
-
-
-

Table 6.27. Error rates for ibetac_invb

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse incomplete beta -

-
-

- Max = 329ε (Mean = 18.2ε) -

-
-

- Max = 0.724ε (Mean = 0.0303ε) -

-
-

- Max = 317ε (Mean = 19.7ε) -

-
-

- Max = 369ε (Mean = 21.7ε) -

-
-
-
- - Testing -
-

- There are two sets of tests: -

-
    -
  • - Basic sanity checks attempt to "round-trip" from a, - b and x to p or - q and back again. These tests have quite generous - tolerances: in general both the incomplete beta and its inverses change - so rapidly, that round tripping to more than a couple of significant - digits isn't possible. This is especially true when p - or q is very near one: in this case there isn't - enough "information content" in the input to the inverse function - to get back where you started. -
  • -
  • - Accuracy checks using high precision test values. These measure the accuracy - of the result, given exact input values. -
  • -
-
- - Implementation - of ibeta_inv and ibetac_inv -
-

- These two functions share a common implementation. -

-

- First an initial approximation to x is computed then the last few bits are - cleaned up using Halley - iteration. The iteration limit is set to 1/2 of the number of bits - in T, which by experiment is sufficient to ensure that the inverses are at - least as accurate as the normal incomplete beta functions. Up to 5 iterations - may be required in extreme cases, although normally only one or two are required. - Further, the number of iterations required decreases with increasing a - and b (which generally form the more important use cases). -

-

- The initial guesses used for iteration are obtained as follows: -

-

- Firstly recall that: -

-

- -

-

- We may wish to start from either p or q, and to calculate either x or y. - In addition at any stage we can exchange a for b, p for q, and x for y if - it results in a more manageable problem. -

-

- For a+b >= 5 the initial guess is computed using the methods - described in: -

-

- Asymptotic Inversion of the Incomplete Beta Function, by N. M. Temme. - Journal of Computational and Applied Mathematics 41 (1992) 145-157. -

-

- The nearly symmetrical case (section 2 of the paper) is used for -

-

- -

-

- and involves solving the inverse error function first. The method is accurate - to at least 2 decimal digits when a = 5 rising to at least - 8 digits when a = 105. -

-

- The general error function case (section 3 of the paper) is used for -

-

- -

-

- and again expresses the inverse incomplete beta in terms of the inverse of - the error function. The method is accurate to at least 2 decimal digits when - a+b = 5 rising to 11 digits when a+b = 105. - However, when the result is expected to be very small, and when a+b is also - small, then its accuracy tails off, in this case when p1/a < 0.0025 then - it is better to use the following as an initial estimate: -

-

- -

-

- Finally the for all other cases where a+b > - 5 the method of section 4 of the paper - is used. This expresses the inverse incomplete beta in terms of the inverse - of the incomplete gamma function, and is therefore significantly more expensive - to compute than the other cases. However the method is accurate to at least - 3 decimal digits when a = 5 rising to at least 10 digits - when a = 105. This method is limited to a > b, and - therefore we need to perform an exchange a for b, p for q and x for y when - this is not the case. In addition when p is close to 1 the method is inaccurate - should we actually want y rather than x as output. Therefore when q is small - (q1/p < 10-3) we use: -

-

- -

-

- which is both cheaper to compute than the full method, and a more accurate - estimate on q. -

-

- When a and b are both small there is a distinct lack of information in the - literature on how to proceed. I am extremely grateful to Prof Nico Temme - who provided the following information with a great deal of patience and - explanation on his part. Any errors that follow are entirely my own, and - not Prof Temme's. -

-

- When a and b are both less than 1, then there is a point of inflection in - the incomplete beta at point xs - = (1 - a) / (2 - a - - b). Therefore if p > Ix(a,b) - we swap a for b, p for q and x for y, so that now we always look for a point - x below the point of inflection xs, - and on a convex curve. An initial estimate for x is made with: -

-

- -

-

- which is provably below the true value for x: Newton - iteration will therefore smoothly converge on x without problems - caused by overshooting etc. -

-

- When a and b are both greater than 1, but a+b is too small to use the other - methods mentioned above, we proceed as follows. Observe that there is a point - of inflection in the incomplete beta at xs - = (1 - a) / (2 - a - - b). Therefore if p > Ix(a,b) - we swap a for b, p for q and x for y, so that now we always look for a point - x below the point of inflection xs, - and on a concave curve. An initial estimate for x is made with: -

-

- -

-

- which can be improved somewhat to: -

-

- -

-

- when b and x are both small (I've used b < a and x < 0.2). This actually - under-estimates x, which drops us on the wrong side of x for Newton iteration - to converge monotonically. However, use of higher derivatives and Halley - iteration keeps everything under control. -

-

- The final case to be considered if when one of a and b is less than or equal - to 1, and the other greater that 1. Here, if b < a we swap a for b, p - for q and x for y. Now the curve of the incomplete beta is convex with no - points of inflection in [0,1]. For small p, x can be estimated using -

-

- -

-

- which under-estimates x, and drops us on the right side of the true value - for Newton iteration to converge monotonically. However, when p is large - this can quite badly underestimate x. This is especially an issue when we - really want to find y, in which case this method can be an arbitrary number - of order of magnitudes out, leading to very poor convergence during iteration. -

-

- Things can be improved by considering the incomplete beta as a distorted - quarter circle, and estimating y from: -

-

- -

-

- This doesn't guarantee that we will drop in on the right side of x for monotonic - convergence, but it does get us close enough that Halley iteration rapidly - converges on the true value. -

-
- - Implementation - of inverses on the a and b parameters -
-

- These four functions share a common implementation. -

-

- First an initial approximation is computed for a or - b: where possible this uses a Cornish-Fisher expansion - for the negative binomial distribution to get within around 1 of the result. - However, when a or b are very small - the Cornish Fisher expansion is not usable, in this case the initial approximation - is chosen so that Ix(a, b) is near the middle of the range [0,1]. -

-

- This initial guess is then used as a starting value for a generic root finding - algorithm. The algorithm converges rapidly on the root once it has been bracketed, - but bracketing the root may take several iterations. A better initial approximation - for a or b would improve these - functions quite substantially: currently 10-20 incomplete beta function invocations - are required to find the root. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_erf.html b/boost/libs/math/doc/html/math_toolkit/sf_erf.html deleted file mode 100644 index 9713bb4a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_erf.html +++ /dev/null @@ -1,50 +0,0 @@ - - - -Error Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_erf/error_function.html b/boost/libs/math/doc/html/math_toolkit/sf_erf/error_function.html deleted file mode 100644 index 70aba98c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_erf/error_function.html +++ /dev/null @@ -1,492 +0,0 @@ - - - -Error Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/erf.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type erf(T z);
-
-template <class T, class Policy>
-calculated-result-type erf(T z, const Policy&);
-
-template <class T>
-calculated-result-type erfc(T z);
-
-template <class T, class Policy>
-calculated-result-type erfc(T z, const Policy&);
-
-}} // namespaces
-
-

- The return type of these functions is computed using the result - type calculation rules: the return type is double if T is an integer type, and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Description -
-
template <class T>
-calculated-result-type erf(T z);
-
-template <class T, class Policy>
-calculated-result-type erf(T z, const Policy&);
-
-

- Returns the error - function erf - of z: -

-

- -

-

- -

-
template <class T>
-calculated-result-type erfc(T z);
-
-template <class T, class Policy>
-calculated-result-type erfc(T z, const Policy&);
-
-

- Returns the complement of the error - function of z: -

-

- -

-

- -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types, along with comparisons - to the GSL-1.9, GNU C Lib, HP-UX - C Library and Cephes - libraries. Unless otherwise specified any floating point type that is narrower - than the one shown will have effectively - zero error. -

-
-

Table 6.28. Error rates for erf

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Erf Function: Small Values -

-
-

- Max = 0.996ε (Mean = 0.182ε)

- (<math.h>: Max = 1.57ε (Mean = 0.317ε)) -

-
-

- Max = 0.925ε (Mean = 0.193ε)

- (<tr1/cmath>: Max = 0.944ε (Mean = 0.191ε))
- (<math.h>: Max = 0.944ε (Mean = 0.191ε)) -

-
-

- Max = 0.841ε (Mean = 0.0687ε)
-
(GSL 1.16: Max = 2.06ε (Mean = 0.319ε))
- (Cephes: Max = 1.13ε (Mean = 0.442ε)) -

-
-

- Max = 0.925ε (Mean = 0.193ε)

- (<math.h>: Max = 0.944ε (Mean = 0.194ε)) -

-
-

- Erf Function: Medium Values -

-
-

- Max = 1ε (Mean = 0.169ε)

- (<math.h>: Max = 1.19ε (Mean = 0.244ε)) -

-
-

- Max = 1.5ε (Mean = 0.193ε)

- (<tr1/cmath>: Max = 0.921ε (Mean = 0.0723ε))
- (<math.h>: Max = 0.921ε (Mean = 0.0723ε)) -

-
-

- Max = 1ε (Mean = 0.119ε)

- (GSL 1.16: Max = 2.31ε (Mean = 0.368ε))
- (Cephes: Max = 1.34ε (Mean = 0.279ε)) -

-
-

- Max = 1.5ε (Mean = 0.202ε)

- (<math.h>: Max = 0.921ε (Mean = 0.071ε)) -

-
-

- Erf Function: Large Values -

-
-

- Max = 0ε (Mean = 0ε)

(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(<tr1/cmath>: - Max = 0ε (Mean = 0ε))
(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε))
(Cephes: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-
-
-

Table 6.29. Error rates for erfc

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Erf Function: Small Values -

-
-

- Max = 0ε (Mean = 0ε)

(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(<tr1/cmath>: - Max = 0ε (Mean = 0ε))
(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0.658ε (Mean = 0.0537ε)
-
(GSL 1.16: Max = 1.01ε (Mean = 0.485ε))
- (Cephes: Max = 0.786ε (Mean = 0.0642ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(<math.h>: - Max = 0ε (Mean = 0ε)) -

-
-

- Erf Function: Medium Values -

-
-

- Max = 1.65ε (Mean = 0.373ε)

- (<math.h>: Max = 2.36ε (Mean = 0.539ε)) -

-
-

- Max = 1.76ε (Mean = 0.365ε)

- (<tr1/cmath>: Max = 1.35ε (Mean = 0.307ε))
- (<math.h>: Max = 1.35ε (Mean = 0.307ε)) -

-
-

- Max = 0.983ε (Mean = 0.213ε)

- (GSL 1.16: Max = 2.64ε (Mean = 0.662ε))
- (Cephes: Max = 3.59ε (Mean = 0.779ε)) -

-
-

- Max = 1.76ε (Mean = 0.383ε)

- (<math.h>: Max = 2.81ε (Mean = 0.739ε)) -

-
-

- Erf Function: Large Values -

-
-

- Max = 1.14ε (Mean = 0.248ε)

- (<math.h>: Max = 1.84ε (Mean = 0.331ε)) -

-
-

- Max = 1.57ε (Mean = 0.542ε)

- (<tr1/cmath>: Max = 1.26ε (Mean = 0.441ε))
- (<math.h>: Max = 1.26ε (Mean = 0.441ε)) -

-
-

- Max = 0.868ε (Mean = 0.147ε)

- (GSL 1.16: Max = 3.9ε (Mean = 0.472ε))
- (Cephes: Max = 2.74ε (Mean = 0.413ε)) -

-
-

- Max = 1.57ε (Mean = 0.564ε)

- (<math.h>: Max = 4.91ε (Mean = 1.54ε)) -

-
-
-
- - Testing -
-

- The tests for these functions come in two parts: basic sanity checks use - spot values calculated using Mathworld's - online evaluator, while accuracy checks use high-precision test values - calculated at 1000-bit precision with NTL::RR - and this implementation. Note that the generic and type-specific versions - of these functions use differing implementations internally, so this gives - us reasonably independent test data. Using our test data to test other "known - good" implementations also provides an additional sanity check. -

-
- - Implementation -
-

- All versions of these functions first use the usual reflection formulas to - make their arguments positive: -

-
erf(-z) = 1 - erf(z);
-
-erfc(-z) = 2 - erfc(z);  // preferred when -z < -0.5
-
-erfc(-z) = 1 + erf(z);   // preferred when -0.5 <= -z < 0
-
-

- The generic versions of these functions are implemented in terms of the incomplete - gamma function. -

-

- When the significand (mantissa) size is recognised (currently for 53, 64 - and 113-bit reals, plus single-precision 24-bit handled via promotion to - double) then a series of rational approximations devised - by JM are used. -

-

- For z <= - 0.5 then a rational approximation to - erf is used, based on the observation that erf is an odd function and therefore - erf is calculated using: -

-
erf(z) = z * (C + R(z*z));
-
-

- where the rational approximation R(z*z) is optimised for absolute error: - as long as its absolute error is small enough compared to the constant C, - then any round-off error incurred during the computation of R(z*z) will effectively - disappear from the result. As a result the error for erf and erfc in this - region is very low: the last bit is incorrect in only a very small number - of cases. -

-

- For z > - 0.5 we observe that over a small interval - [a, b) then: -

-
erfc(z) * exp(z*z) * z ~ c
-
-

- for some constant c. -

-

- Therefore for z > - 0.5 we calculate erfc using: -

-
erfc(z) = exp(-z*z) * (C + R(z - B)) / z;
-
-

- Again R(z - B) is optimised for absolute error, and the constant C is the average of erfc(z) - * exp(z*z) * - z taken at the endpoints of the - range. Once again, as long as the absolute error in R(z - B) is small compared - to c then c - + R(z - - B) - will be correctly rounded, and the error in the result will depend only on - the accuracy of the exp function. In practice, in all but a very small number - of cases, the error is confined to the last bit of the result. The constant - B is chosen so that the left - hand end of the range of the rational approximation is 0. -

-

- For large z over a range - [a, +∞] the above approximation is modified to: -

-
erfc(z) = exp(-z*z) * (C + R(1 / z)) / z;
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_erf/error_inv.html b/boost/libs/math/doc/html/math_toolkit/sf_erf/error_inv.html deleted file mode 100644 index 3d805824..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_erf/error_inv.html +++ /dev/null @@ -1,351 +0,0 @@ - - - -Error Function Inverses - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/erf.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type erf_inv(T p);
-
-template <class T, class Policy>
-calculated-result-type erf_inv(T p, const Policy&);
-
-template <class T>
-calculated-result-type erfc_inv(T p);
-
-template <class T, class Policy>
-calculated-result-type erfc_inv(T p, const Policy&);
-
-}} // namespaces
-
-

- The return type of these functions is computed using the result - type calculation rules: the return type is double if T is an integer type, and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Description -
-
template <class T>
-calculated-result-type erf_inv(T z);
-
-template <class T, class Policy>
-calculated-result-type erf_inv(T z, const Policy&);
-
-

- Returns the inverse - error function of z, that is a value x such that: -

-
p = erf(x);
-
-

- -

-
template <class T>
-calculated-result-type erfc_inv(T z);
-
-template <class T, class Policy>
-calculated-result-type erfc_inv(T z, const Policy&);
-
-

- Returns the inverse of the complement of the error function of z, that is - a value x such that: -

-
p = erfc(x);
-
-

- -

-
- - Accuracy -
-

- For types up to and including 80-bit long doubles the approximations used - are accurate to less than ~ 2 epsilon. For higher precision types these functions - have the same accuracy as the forward - error functions. -

-
-

Table 6.30. Error rates for erf_inv

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse Erf Function -

-
-

- Max = 1.09ε (Mean = 0.502ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.996ε (Mean = 0.389ε) -

-
-

- Max = 0.996ε (Mean = 0.385ε) -

-
-
-
-

Table 6.31. Error rates for erfc_inv

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Inverse Erfc Function -

-
-

- Max = 1ε (Mean = 0.491ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.996ε (Mean = 0.397ε) -

-
-

- Max = 0.996ε (Mean = 0.397ε) -

-
-

- Inverse Erfc Function: extreme values -

-
- - -

- Max = 1.62ε (Mean = 0.383ε) -

-
-

- Max = 1.62ε (Mean = 0.385ε) -

-
-
-
- - Testing -
-

- There are two sets of tests: -

-
    -
  • - Basic sanity checks attempt to "round-trip" from x - to p and back again. These tests have quite generous - tolerances: in general both the error functions and their inverses change - so rapidly in some places that round tripping to more than a couple of - significant digits isn't possible. This is especially true when p - is very near one: in this case there isn't enough "information content" - in the input to the inverse function to get back where you started. -
  • -
  • - Accuracy checks using high-precision test values. These measure the accuracy - of the result, given exact input values. -
  • -
-
- - Implementation -
-

- These functions use a rational approximation devised - by JM to calculate an initial approximation to the result that is - accurate to ~10-19, then only if that has insufficient accuracy compared - to the epsilon for T, do we clean up the result using Halley - iteration. -

-

- Constructing rational approximations to the erf/erfc functions is actually - surprisingly hard, especially at high precision. For this reason no attempt - has been made to achieve 10-34 accuracy suitable for use with 128-bit reals. -

-

- In the following discussion, p is the value passed to - erf_inv, and q is the value passed to erfc_inv, so that - p = 1 - q and q = 1 - p and in - both cases we want to solve for the same result x. -

-

- For p < 0.5 the inverse erf function is reasonably - smooth and the approximation: -

-
x = p(p + 10)(Y + R(p))
-
-

- Gives a good result for a constant Y, and R(p) optimised for low absolute - error compared to |Y|. -

-

- For q < 0.5 things get trickier, over the interval 0.5 > - q > 0.25 the following approximation works well: -

-
x = sqrt(-2log(q)) / (Y + R(q))
-
-

- While for q < 0.25, let -

-
z = sqrt(-log(q))
-
-

- Then the result is given by: -

-
x = z(Y + R(z - B))
-
-

- As before Y is a constant and the rational function R is optimised for low - absolute error compared to |Y|. B is also a constant: it is the smallest - value of z for which each approximation is valid. There - are several approximations of this form each of which reaches a little further - into the tail of the erfc function (at long - double precision the extended exponent - range compared to double means - that the tail goes on for a very long way indeed). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_gamma.html b/boost/libs/math/doc/html/math_toolkit/sf_gamma.html deleted file mode 100644 index f86a05e7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_gamma.html +++ /dev/null @@ -1,59 +0,0 @@ - - - -Gamma Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_gamma/digamma.html b/boost/libs/math/doc/html/math_toolkit/sf_gamma/digamma.html deleted file mode 100644 index 9df5f1d9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_gamma/digamma.html +++ /dev/null @@ -1,467 +0,0 @@ - - - -Digamma - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/digamma.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type digamma(T z);
-
-template <class T, class Policy>
-calculated-result-type digamma(T z, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- Returns the digamma or psi function of x. Digamma is - defined as the logarithmic derivative of the gamma function: -

-

- -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The return type of this function is computed using the result - type calculation rules: the result is of type double when T is an integer type, and type - T otherwise. -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types. Unless otherwise specified - any floating point type that is narrower than the one shown will have effectively zero error. -

-
-

Table 6.4. Error rates for digamma

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Digamma Function: Large Values -

-
-

- Max = 0.98ε (Mean = 0.369ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.84ε (Mean = 0.71ε))
(Rmath - 3.0.2: Max = 1.18ε (Mean = 0.331ε))
(Cephes: - Max = 0.919ε (Mean = 0.394ε)) -

-
-

- Max = 1.39ε (Mean = 0.413ε) -

-
-

- Max = 1.39ε (Mean = 0.413ε) -

-
-

- Digamma Function: Near the Positive Root -

-
-

- Max = 0.997ε (Mean = 0.527ε) -

-
-

- Max = 0.891ε (Mean = 0.0995ε)
-
(GSL 1.16: Max = 135ε (Mean = 11.9ε))
- (Rmath 3.0.2: Max = 2.02e+03ε (Mean = 256ε))
- (Cephes: Max = 1.42e+04ε (Mean = 1.14e+03ε)) -

-
-

- Max = 1.37ε (Mean = 0.477ε) -

-
-

- Max = 1.31ε (Mean = 0.451ε) -

-
-

- Digamma Function: Near Zero -

-
-

- Max = 0.953ε (Mean = 0.337ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.953ε (Mean = 0.348ε))
(Rmath - 3.0.2: Max = 1.17ε (Mean = 0.564ε))
(Cephes: - Max = 3.5ε (Mean = 1.04ε)) -

-
-

- Max = 0.984ε (Mean = 0.361ε) -

-
-

- Max = 0.984ε (Mean = 0.361ε) -

-
-

- Digamma Function: Negative Values -

-
-

- Max = 214ε (Mean = 16.1ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.56e+04ε (Mean = 3.91e+03ε))
(Rmath - 3.0.2: Max = 4.6e+04ε (Mean = 3.94e+03ε))
(Cephes: - Max = 214ε (Mean = 16.4ε)) -

-
-

- Max = 180ε (Mean = 13ε) -

-
-

- Max = 180ε (Mean = 13ε) -

-
-

- Digamma Function: Values near 0 -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.866ε (Mean = 0.387ε))
(Rmath - 3.0.2: Max = 3.58e+05ε (Mean = 1.6e+05ε))
(Cephes: - Max = 0.5ε (Mean = 0.224ε)) -

-
-

- Max = 1ε (Mean = 0.592ε) -

-
-

- Max = 1ε (Mean = 0.592ε) -

-
-

- Digamma Function: Integer arguments -

-
-

- Max = 0.992ε (Mean = 0.452ε) -

-
-

- Max = 0.992ε (Mean = 0.215ε)

- (GSL 1.16: Max = 1.18ε (Mean = 0.607ε))
- (Rmath 3.0.2: Max = 4.33ε (Mean = 0.982ε))
- (Cephes: Max = 0.992ε (Mean = 0.383ε)) -

-
-

- Max = 0.888ε (Mean = 0.403ε) -

-
-

- Max = 0.888ε (Mean = 0.403ε) -

-
-

- Digamma Function: Half integer arguments -

-
-

- Max = 0.78ε (Mean = 0.314ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.09ε (Mean = 0.531ε))
(Rmath - 3.0.2: Max = 46.2ε (Mean = 7.24ε))
(Cephes: - Max = 8.56ε (Mean = 1.44ε)) -

-
-

- Max = 0.906ε (Mean = 0.409ε) -

-
-

- Max = 0.906ε (Mean = 0.409ε) -

-
-
-

- As shown above, error rates for positive arguments are generally very low. - For negative arguments there are an infinite number of irrational roots: - relative errors very close to these can be arbitrarily large, although absolute - error will remain very low. -

-
- - Testing -
-

- There are two sets of tests: spot values are computed using the online calculator - at functions.wolfram.com, while random test values are generated using the - high-precision reference implementation (a differentiated Lanczos - approximation see below). -

-
- - Implementation -
-

- The implementation is divided up into the following domains: -

-

- For Negative arguments the reflection formula: -

-
digamma(1-x) = digamma(x) + pi/tan(pi*x);
-
-

- is used to make x positive. -

-

- For arguments in the range [0,1] the recurrence relation: -

-
digamma(x) = digamma(x+1) - 1/x
-
-

- is used to shift the evaluation to [1,2]. -

-

- For arguments in the range [1,2] a rational approximation devised - by JM is used (see below). -

-

- For arguments in the range [2,BIG] the recurrence relation: -

-
digamma(x+1) = digamma(x) + 1/x;
-
-

- is used to shift the evaluation to the range [1,2]. -

-

- For arguments > BIG the asymptotic expansion: -

-

- -

-

- can be used. However, this expansion is divergent after a few terms: exactly - how many terms depends on the size of x. Therefore the - value of BIG must be chosen so that the series can be - truncated at a term that is too small to have any effect on the result when - evaluated at BIG. Choosing BIG=10 for up to 80-bit reals, - and BIG=20 for 128-bit reals allows the series to truncated after a suitably - small number of terms and evaluated as a polynomial in 1/(x*x). -

-

- The arbitrary precision version of this function uses recurrence relations - until x > BIG, and then evaluation via the asymptotic expansion above. - As special cases integer and half integer arguments are handled via: -

-

- -

-

- -

-

- The rational approximation devised - by JM in the range [1,2] is derived as follows. -

-

- First a high precision approximation to digamma was constructed using a 60-term - differentiated Lanczos approximation, - the form used is: -

-

- -

-

- Where P(x) and Q(x) are the polynomials from the rational form of the Lanczos - sum, and P'(x) and Q'(x) are their first derivatives. The Lanzos part of - this approximation has a theoretical precision of ~100 decimal digits. However, - cancellation in the above sum will reduce that to around 99-(1/y) digits - if y is the result. This approximation was used to calculate - the positive root of digamma, and was found to agree with the value used - by Cody to 25 digits (See Math. Comp. 27, 123-127 (1973) by Cody, Strecok - and Thacher) and with the value used by Morris to 35 digits (See TOMS Algorithm - 708). -

-

- Likewise a few spot tests agreed with values calculated using functions.wolfram.com - to >40 digits. That's sufficiently precise to insure that the approximation - below is accurate to double precision. Achieving 128-bit long double precision - requires that the location of the root is known to ~70 digits, and it's not - clear whether the value calculated by this method meets that requirement: - the difficulty lies in independently verifying the value obtained. -

-

- The rational approximation devised - by JM was optimised for absolute error using the form: -

-
digamma(x) = (x - X0)(Y + R(x - 1));
-
-

- Where X0 is the positive root of digamma, Y is a constant, and R(x - 1) is - the rational approximation. Note that since X0 is irrational, we need twice - as many digits in X0 as in x in order to avoid cancellation error during - the subtraction (this assumes that x is an exact value, - if it's not then all bets are off). That means that even when x is the value - of the root rounded to the nearest representable value, the result of digamma(x) - will not be zero. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_gamma/gamma_derivatives.html b/boost/libs/math/doc/html/math_toolkit/sf_gamma/gamma_derivatives.html deleted file mode 100644 index d4b17a75..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_gamma/gamma_derivatives.html +++ /dev/null @@ -1,107 +0,0 @@ - - - -Derivative of the Incomplete Gamma Function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/gamma.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T1, class T2>
-calculated-result-type gamma_p_derivative(T1 a, T2 x);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_p_derivative(T1 a, T2 x, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- This function find some uses in statistical distributions: it implements - the partial derivative with respect to x of the incomplete - gamma function. -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- Note that the derivative of the function gamma_q - can be obtained by negating the result of this function. -

-

- The return type of this function is computed using the result - type calculation rules when T1 and T2 are different types, - otherwise the return type is simply T1. -

-
- - Accuracy -
-

- Almost identical to the incomplete gamma function gamma_p: - refer to the documentation for that function for more information. -

-
- - Implementation -
-

- This function just expose some of the internals of the incomplete gamma function - gamma_p: refer to the - documentation for that function for more information. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_gamma/gamma_ratios.html b/boost/libs/math/doc/html/math_toolkit/sf_gamma/gamma_ratios.html deleted file mode 100644 index 21eb71d9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_gamma/gamma_ratios.html +++ /dev/null @@ -1,418 +0,0 @@ - - - -Ratios of Gamma Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/gamma.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T1, class T2>
-calculated-result-type tgamma_ratio(T1 a, T2 b);
-
-template <class T1, class T2, class Policy>
-calculated-result-type tgamma_ratio(T1 a, T2 b, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type tgamma_delta_ratio(T1 a, T2 delta);
-
-template <class T1, class T2, class Policy>
-calculated-result-type tgamma_delta_ratio(T1 a, T2 delta, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-
template <class T1, class T2>
-calculated-result-type tgamma_ratio(T1 a, T2 b);
-
-template <class T1, class T2, class Policy>
-calculated-result-type tgamma_ratio(T1 a, T2 b, const Policy&);
-
-

- Returns the ratio of gamma functions: -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- Internally this just calls tgamma_delta_ratio(a, - b-a). -

-
template <class T1, class T2>
-calculated-result-type tgamma_delta_ratio(T1 a, T2 delta);
-
-template <class T1, class T2, class Policy>
-calculated-result-type tgamma_delta_ratio(T1 a, T2 delta, const Policy&);
-
-

- Returns the ratio of gamma functions: -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- Note that the result is calculated accurately even when delta - is small compared to a: indeed even if a+delta - ~ a. The function is typically used when a - is large and delta is very small. -

-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types, - otherwise the result type is simple T1. -

-

- -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types. Unless otherwise specified - any floating point type that is narrower than the one shown will have effectively zero error. -

-
-

Table 6.7. Error rates for tgamma_delta_ratio

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma + small delta ratios -

-
-

- Max = 10.1ε (Mean = 1.25ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 5.56ε (Mean = 0.969ε) -

-
-

- Max = 15.4ε (Mean = 2.09ε) -

-
-

- tgamma + small delta ratios (negative delta) -

-
-

- Max = 8.04ε (Mean = 1.31ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 8.67ε (Mean = 1.29ε) -

-
-

- Max = 18.3ε (Mean = 2.03ε) -

-
-

- tgamma + small integer ratios -

-
-

- Max = 2.74ε (Mean = 0.736ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.96ε (Mean = 0.677ε) -

-
-

- Max = 1.96ε (Mean = 0.677ε) -

-
-

- tgamma + small integer ratios (negative delta) -

-
-

- Max = 2.15ε (Mean = 0.685ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.62ε (Mean = 0.451ε) -

-
-

- Max = 1.62ε (Mean = 0.451ε) -

-
-

- integer tgamma ratios -

-
-

- Max = 0.968ε (Mean = 0.386ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.997ε (Mean = 0.4ε) -

-
-

- Max = 0.997ε (Mean = 0.4ε) -

-
-

- integer tgamma ratios (negative delta) -

-
-

- Max = 0.974ε (Mean = 0.184ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0.853ε (Mean = 0.176ε) -

-
-

- Max = 0.853ε (Mean = 0.176ε) -

-
-
-
-

Table 6.8. Error rates for tgamma_ratio

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma ratios -

-
-

- Max = 3.66ε (Mean = 1.27ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 3.09ε (Mean = 1.15ε) -

-
-

- Max = 174ε (Mean = 61.2ε) -

-
-
-
- - Testing -
-

- Accuracy tests use data generated at very high precision (with NTL - RR class set at 1000-bit precision: about 300 decimal digits) and - a deliberately naive calculation of Γ(x)/Γ(y). -

-
- - Implementation -
-

- The implementation of these functions is very similar to that of beta, - and is based on combining similar power terms to improve accuracy and avoid - spurious overflow/underflow. -

-

- In addition there are optimisations for the situation where delta - is a small integer: in which case this function is basically the reciprocal - of a rising factorial, or where both arguments are smallish integers: in - which case table lookup of factorials can be used to calculate the ratio. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_gamma/igamma.html b/boost/libs/math/doc/html/math_toolkit/sf_gamma/igamma.html deleted file mode 100644 index 1728c612..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_gamma/igamma.html +++ /dev/null @@ -1,963 +0,0 @@ - - - -Incomplete Gamma Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/gamma.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T1, class T2>
-calculated-result-type gamma_p(T1 a, T2 z);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_p(T1 a, T2 z, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type gamma_q(T1 a, T2 z);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_q(T1 a, T2 z, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type tgamma_lower(T1 a, T2 z);
-
-template <class T1, class T2, class Policy>
-calculated-result-type tgamma_lower(T1 a, T2 z, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type tgamma(T1 a, T2 z);
-
-template <class T1, class T2, class Policy>
-calculated-result-type tgamma(T1 a, T2 z, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- There are four incomplete - gamma functions: two are normalised versions (also known as regularized - incomplete gamma functions) that return values in the range [0, 1], and two - are non-normalised and return values in the range [0, Γ(a)]. Users interested - in statistical applications should use the normalised - versions (gamma_p and gamma_q). -

-

- All of these functions require a > 0 and z - >= 0, otherwise they return the result of domain_error. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types, - otherwise the return type is simply T1. -

-
template <class T1, class T2>
-calculated-result-type gamma_p(T1 a, T2 z);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_p(T1 a, T2 z, const Policy&);
-
-

- Returns the normalised lower incomplete gamma function of a and z: -

-

- -

-

- This function changes rapidly from 0 to 1 around the point z == a: -

-

- -

-
template <class T1, class T2>
-calculated-result-type gamma_q(T1 a, T2 z);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_q(T1 a, T2 z, const Policy&);
-
-

- Returns the normalised upper incomplete gamma function of a and z: -

-

- -

-

- This function changes rapidly from 1 to 0 around the point z == a: -

-

- -

-
template <class T1, class T2>
-calculated-result-type tgamma_lower(T1 a, T2 z);
-
-template <class T1, class T2, class Policy>
-calculated-result-type tgamma_lower(T1 a, T2 z, const Policy&);
-
-

- Returns the full (non-normalised) lower incomplete gamma function of a and - z: -

-

- -

-
template <class T1, class T2>
-calculated-result-type tgamma(T1 a, T2 z);
-
-template <class T1, class T2, class Policy>
-calculated-result-type tgamma(T1 a, T2 z, const Policy&);
-
-

- Returns the full (non-normalised) upper incomplete gamma function of a and - z: -

-

- -

-
- - Accuracy -
-

- The following tables give peak and mean relative errors in over various domains - of a and z, along with comparisons to the GSL-1.9 - and Cephes libraries. - Note that only results for the widest floating point type on the system are - given as narrower types have effectively - zero error. -

-

- Note that errors grow as a grows larger. -

-

- Note also that the higher error rates for the 80 and 128 bit long double - results are somewhat misleading: expected results that are zero at 64-bit - double precision may be non-zero - but exceptionally small - with the larger - exponent range of a long double. These results therefore reflect the more - extreme nature of the tests conducted for these types. -

-

- All values are in units of epsilon. -

-
-

Table 6.9. Error rates for gamma_p

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma(a, z) medium values -

-
-

- Max = 35.1ε (Mean = 6.97ε) -

-
-

- Max = 0.955ε (Mean = 0.05ε)

- (GSL 1.16: Max = 342ε (Mean = 45.8ε))
(Rmath - 3.0.2: Max = 389ε (Mean = 44ε))
(Cephes: - Max = 492ε (Mean = 101ε)) -

-
-

- Max = 41ε (Mean = 8.09ε) -

-
-

- Max = 239ε (Mean = 30.2ε) -

-
-

- tgamma(a, z) small values -

-
-

- Max = 1.54ε (Mean = 0.439ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.82ε (Mean = 0.758ε))
(Rmath - 3.0.2: Max = 1.01ε (Mean = 0.306ε))
(Cephes: - Max = 21ε (Mean = 5.65ε)) -

-
-

- Max = 2ε (Mean = 0.461ε) -

-
-

- Max = 2ε (Mean = 0.472ε) -

-
-

- tgamma(a, z) large values -

-
-

- Max = 244ε (Mean = 20.2ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.02e+03ε (Mean = 105ε))
(Rmath - 3.0.2: Max = 1.11e+03ε (Mean = 67.5ε))
(Cephes: - Max = 8.18e+06ε (Mean = 7.69e+05ε)) -

-
-

- Max = 3.08e+04ε (Mean = 1.86e+03ε) -

-
-

- Max = 3.02e+04ε (Mean = 1.91e+03ε) -

-
-

- tgamma(a, z) integer and half integer values -

-
-

- Max = 13ε (Mean = 2.93ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 128ε (Mean = 22.6ε))
(Rmath - 3.0.2: Max = 66.2ε (Mean = 12.2ε))
(Cephes: - Max = 83.6ε (Mean = 22.2ε)) -

-
-

- Max = 11.8ε (Mean = 2.65ε) -

-
-

- Max = 71.6ε (Mean = 9.47ε) -

-
-
-
-

Table 6.10. Error rates for gamma_q

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma(a, z) medium values -

-
-

- Max = 23.7ε (Mean = 4.03ε) -

-
-

- Max = 0.927ε (Mean = 0.035ε)

- (GSL 1.16: Max = 201ε (Mean = 13.5ε))
(Rmath - 3.0.2: Max = 131ε (Mean = 12.7ε))
(Cephes: - Max = 388ε (Mean = 93.8ε)) -

-
-

- Max = 31.3ε (Mean = 6.56ε) -

-
-

- Max = 199ε (Mean = 26.6ε) -

-
-

- tgamma(a, z) small values -

-
-

- Max = 2.26ε (Mean = 0.732ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.38e+10ε (Mean = 1.05e+09ε))
- (Rmath 3.0.2: Max = 65.6ε (Mean = 11ε))
- (Cephes: Max = 3.42e+11ε (Mean - = 4.1e+10ε)) -

-
-

- Max = 2.45ε (Mean = 0.832ε) -

-
-

- Max = 2.25ε (Mean = 0.81ε) -

-
-

- tgamma(a, z) large values -

-
-

- Max = 470ε (Mean = 31.5ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.71e+04ε (Mean = 2.16e+03ε))
(Rmath - 3.0.2: Max = 1.02e+03ε (Mean = 62.7ε))
(Cephes: - Max = 8.17e+06ε (Mean = 7.7e+05ε)) -

-
-

- Max = 6.82e+03ε (Mean = 414ε) -

-
-

- Max = 1.15e+04ε (Mean = 733ε) -

-
-

- tgamma(a, z) integer and half integer values -

-
-

- Max = 8.48ε (Mean = 1.42ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 118ε (Mean = 12.5ε))
(Rmath - 3.0.2: Max = 138ε (Mean = 16.9ε))
(Cephes: - Max = 129ε (Mean = 26.5ε)) -

-
-

- Max = 11.1ε (Mean = 2.09ε) -

-
-

- Max = 54.7ε (Mean = 6.16ε) -

-
-
-
-

Table 6.11. Error rates for tgamma_lower

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma(a, z) medium values -

-
-

- Max = 5.62ε (Mean = 1.43ε) -

-
-

- Max = 0.833ε (Mean = 0.0315ε)
-
(GSL 1.16: Max = 0.833ε (Mean = 0.0315ε)) -

-
-

- Max = 6.79ε (Mean = 1.38ε) -

-
-

- Max = 363ε (Mean = 63.8ε) -

-
-

- tgamma(a, z) small values -

-
-

- Max = 1.57ε (Mean = 0.527ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 1.97ε (Mean = 0.552ε) -

-
-

- Max = 1.97ε (Mean = 0.567ε) -

-
-

- tgamma(a, z) integer and half integer values -

-
-

- Max = 2.69ε (Mean = 0.866ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 4.83ε (Mean = 1.12ε) -

-
-

- Max = 84.7ε (Mean = 17.5ε) -

-
-
-
-

Table 6.12. Error rates for tgamma (incomplete)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma(a, z) medium values -

-
-

- Max = 8.14ε (Mean = 1.71ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 200ε (Mean = 13.3ε)) -

-
-

- Max = 7.35ε (Mean = 1.69ε) -

-
-

- Max = 412ε (Mean = 95.5ε) -

-
-

- tgamma(a, z) small values -

-
-

- Max = 2.53ε (Mean = 0.66ε) -

-
-

- Max = 0.753ε (Mean = 0.0474ε)
-
(GSL 1.16: Max = - 1.38e+10ε (Mean = 1.05e+09ε)) -

-
-

- Max = 2.13ε (Mean = 0.717ε) -

-
-

- Max = 2.13ε (Mean = 0.712ε) -

-
-

- tgamma(a, z) integer and half integer values -

-
-

- Max = 5.16ε (Mean = 1.44ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 117ε (Mean = 12.5ε)) -

-
-

- Max = 5.52ε (Mean = 1.52ε) -

-
-

- Max = 79.6ε (Mean = 20.9ε) -

-
-
-
- - Testing -
-

- There are two sets of tests: spot tests compare values taken from Mathworld's online evaluator - with this implementation to perform a basic "sanity check". Accuracy - tests use data generated at very high precision (using NTL's RR class set - at 1000-bit precision) using this implementation with a very high precision - 60-term Lanczos approximation, - and some but not all of the special case handling disabled. This is less - than satisfactory: an independent method should really be used, but apparently - a complete lack of such methods are available. We can't even use a deliberately - naive implementation without special case handling since Legendre's continued - fraction (see below) is unstable for small a and z. -

-
- - Implementation -
-

- These four functions share a common implementation since they are all related - via: -

-

- 1) -

-

- 2) -

-

- 3) -

-

- The lower incomplete gamma is computed from its series representation: -

-

- 4) -

-

- Or by subtraction of the upper integral from either Γ(a) or 1 when x - - (1(3x)) > a and x > 1.1/. -

-

- The upper integral is computed from Legendre's continued fraction representation: -

-

- 5) -

-

- When (x > 1.1) or by subtraction of the lower integral - from either Γ(a) or 1 when x - (1(3x)) < a/. -

-

- For x < 1.1 computation of the upper integral is - more complex as the continued fraction representation is unstable in this - area. However there is another series representation for the lower integral: -

-

- 6) -

-

- That lends itself to calculation of the upper integral via rearrangement - to: -

-

- 7) -

-

- Refer to the documentation for powm1 - and tgamma1pm1 for details - of their implementation. Note however that the precision of tgamma1pm1 - is capped to either around 35 digits, or to that of the Lanczos - approximation associated with type T - if there is one - whichever - of the two is the greater. That therefore imposes a similar limit on the - precision of this function in this region. -

-

- For x < 1.1 the crossover point where the result - is ~0.5 no longer occurs for x ~ y. Using x - * 0.75 < a as the crossover criterion for 0.5 < - x <= 1.1 keeps the maximum value computed (whether it's the - upper or lower interval) to around 0.75. Likewise for x <= 0.5 - then using -0.4 / log(x) < a as the crossover criterion - keeps the maximum value computed to around 0.7 (whether it's the upper or - lower interval). -

-

- There are two special cases used when a is an integer or half integer, and - the crossover conditions listed above indicate that we should compute the - upper integral Q. If a is an integer in the range 1 <= a < - 30 then the following finite sum is used: -

-

- 9) -

-

- While for half integers in the range 0.5 <= a < 30 - then the following finite sum is used: -

-

- 10) -

-

- These are both more stable and more efficient than the continued fraction - alternative. -

-

- When the argument a is large, and x ~ a - then the series (4) and continued fraction (5) above are very slow to converge. - In this area an expansion due to Temme is used: -

-

- 11) -

-

- 12) -

-

- 13) -

-

- 14) -

-

- The double sum is truncated to a fixed number of terms - to give a specific - target precision - and evaluated as a polynomial-of-polynomials. There are - versions for up to 128-bit long double precision: types requiring greater - precision than that do not use these expansions. The coefficients Ckn are - computed in advance using the recurrence relations given by Temme. The zone - where these expansions are used is -

-
(a > 20) && (a < 200) && fabs(x-a)/a < 0.4
-
-

- And: -

-
(a > 200) && (fabs(x-a)/a < 4.5/sqrt(a))
-
-

- The latter range is valid for all types up to 128-bit long doubles, and is - designed to ensure that the result is larger than 10-6, the first range is - used only for types up to 80-bit long doubles. These domains are narrower - than the ones recommended by either Temme or Didonato and Morris. However, - using a wider range results in large and inexact (i.e. computed) values being - passed to the exp and erfc functions resulting in significantly - larger error rates. In other words there is a fine trade off here between - efficiency and error. The current limits should keep the number of terms - required by (4) and (5) to no more than ~20 at double precision. -

-

- For the normalised incomplete gamma functions, calculation of the leading - power terms is central to the accuracy of the function. For smallish a and - x combining the power terms with the Lanczos - approximation gives the greatest accuracy: -

-

- 15) -

-

- In the event that this causes underflow/overflow then the exponent can be - reduced by a factor of a and brought inside the power - term. -

-

- When a and x are large, we end up with a very large exponent with a base - near one: this will not be computed accurately via the pow function, and - taking logs simply leads to cancellation errors. The worst of the errors - can be avoided by using: -

-

- 16) -

-

- when a-x is small and a and x are large. There is still - a subtraction and therefore some cancellation errors - but the terms are - small so the absolute error will be small - and it is absolute rather than - relative error that counts in the argument to the exp - function. Note that for sufficiently large a and x the errors will still - get you eventually, although this does delay the inevitable much longer than - other methods. Use of log(1+x)-x here is inspired by - Temme (see references below). -

-
- - References -
-
    -
  • - N. M. Temme, A Set of Algorithms for the Incomplete Gamma Functions, - Probability in the Engineering and Informational Sciences, 8, 1994. -
  • -
  • - N. M. Temme, The Asymptotic Expansion of the Incomplete Gamma Functions, - Siam J. Math Anal. Vol 10 No 4, July 1979, p757. -
  • -
  • - A. R. Didonato and A. H. Morris, Computation of the Incomplete Gamma - Function Ratios and their Inverse. ACM TOMS, Vol 12, No 4, Dec 1986, - p377. -
  • -
  • - W. Gautschi, The Incomplete Gamma Functions Since Tricomi, In Tricomi's - Ideas and Contemporary Applied Mathematics, Atti dei Convegni Lincei, - n. 147, Accademia Nazionale dei Lincei, Roma, 1998, pp. 203--237. http://citeseer.ist.psu.edu/gautschi98incomplete.html -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_gamma/igamma_inv.html b/boost/libs/math/doc/html/math_toolkit/sf_gamma/igamma_inv.html deleted file mode 100644 index a84fe53a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_gamma/igamma_inv.html +++ /dev/null @@ -1,622 +0,0 @@ - - - -Incomplete Gamma Function Inverses - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/gamma.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T1, class T2>
-calculated-result-type gamma_q_inv(T1 a, T2 q);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_q_inv(T1 a, T2 q, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type gamma_p_inv(T1 a, T2 p);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_p_inv(T1 a, T2 p, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type gamma_q_inva(T1 x, T2 q);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_q_inva(T1 x, T2 q, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type gamma_p_inva(T1 x, T2 p);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_p_inva(T1 x, T2 p, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- There are four incomplete - gamma function inverses which either compute x - given a and p or q, - or else compute a given x and either - p or q. -

-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types, - otherwise the return type is simply T1. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - - - - -
[Tip]Tip
-

- When people normally talk about the inverse of the incomplete gamma function, - they are talking about inverting on parameter x. These - are implemented here as gamma_p_inv and gamma_q_inv, and are by far the - most efficient of the inverses presented here. -

-

- The inverse on the a parameter finds use in some statistical - applications but has to be computed by rather brute force numerical techniques - and is consequently several times slower. These are implemented here as - gamma_p_inva and gamma_q_inva. -

-
-
template <class T1, class T2>
-calculated-result-type gamma_q_inv(T1 a, T2 q);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_q_inv(T1 a, T2 q, const Policy&);
-
-

- Returns a value x such that: q - = gamma_q(a, - x); -

-

- Requires: a > 0 and 1 >= p,q >= 0. -

-
template <class T1, class T2>
-calculated-result-type gamma_p_inv(T1 a, T2 p);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_p_inv(T1 a, T2 p, const Policy&);
-
-

- Returns a value x such that: p - = gamma_p(a, - x); -

-

- Requires: a > 0 and 1 >= p,q >= 0. -

-
template <class T1, class T2>
-calculated-result-type gamma_q_inva(T1 x, T2 q);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_q_inva(T1 x, T2 q, const Policy&);
-
-

- Returns a value a such that: q - = gamma_q(a, - x); -

-

- Requires: x > 0 and 1 >= p,q >= 0. -

-
template <class T1, class T2>
-calculated-result-type gamma_p_inva(T1 x, T2 p);
-
-template <class T1, class T2, class Policy>
-calculated-result-type gamma_p_inva(T1 x, T2 p, const Policy&);
-
-

- Returns a value a such that: p - = gamma_p(a, - x); -

-

- Requires: x > 0 and 1 >= p,q >= 0. -

-
- - Accuracy -
-

- The accuracy of these functions doesn't vary much by platform or by the type - T. Given that these functions are computed by iterative methods, they are - deliberately "detuned" so as not to be too accurate: it is in any - case impossible for these function to be more accurate than the regular forward - incomplete gamma functions. In practice, the accuracy of these functions - is very similar to that of gamma_p - and gamma_q functions: -

-
-

Table 6.13. Error rates for gamma_p_inv

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- incomplete gamma inverse(a, z) medium values -

-
-

- Max = 1.01ε (Mean = 0.307ε) -

-
-

- Max = 0.993ε (Mean = 0.15ε)

- (Rmath 3.0.2: Max = 4.88ε (Mean = 0.868ε)) -

-
-

- Max = 1.62ε (Mean = 0.365ε) -

-
-

- Max = 1.86ε (Mean = 0.405ε) -

-
-

- incomplete gamma inverse(a, z) large values -

-
-

- Max = 0.924ε (Mean = 0.118ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 0.816ε (Mean = 0.0874ε)) -

-
-

- Max = 0.509ε (Mean = 0.0447ε) -

-
-

- Max = 0.509ε (Mean = 0.0447ε) -

-
-

- incomplete gamma inverse(a, z) small values -

-
-

- Max = 1.1e+003ε (Mean = 108ε) -

-
-

- Max = 441ε (Mean = 53.9ε)

- (Rmath 3.0.2: Max = 547ε (Mean = 61.6ε)) -

-
-

- Max = 9.17e+03ε (Mean = 1.32e+03ε) -

-
-

- Max = 1.09e+04ε (Mean = 1.46e+03ε) -

-
-
-
-

Table 6.14. Error rates for gamma_q_inv

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- incomplete gamma inverse(a, z) medium values -

-
-

- Max = 3.46ε (Mean = 0.475ε) -

-
-

- Max = 0.912ε (Mean = 0.154ε)

- (Rmath 3.0.2: Max = 4.66ε (Mean = 0.792ε)) -

-
-

- Max = 6.2ε (Mean = 0.659ε) -

-
-

- Max = 6.2ε (Mean = 0.661ε) -

-
-

- incomplete gamma inverse(a, z) large values -

-
-

- Max = 0.814ε (Mean = 0.0856ε) -

-
-

- Max = 0.894ε (Mean = 0.0915ε)
-
(Rmath 3.0.2: Max = 0.894ε (Mean = 0.106ε)) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- incomplete gamma inverse(a, z) small values -

-
-

- Max = 451ε (Mean = 65ε) -

-
-

- Max = 292ε (Mean = 36.4ε)

- (Rmath 3.0.2: Max = 415ε (Mean = 48.7ε)) -

-
-

- Max = 8.28e+03ε (Mean = 963ε) -

-
-

- Max = 8.98e+03ε (Mean = 877ε) -

-
-
-
-

Table 6.15. Error rates for gamma_p_inva

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete gamma inverses. -

-
-

- Max = 3.52ε (Mean = 0.997ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 6.44ε (Mean = 1.1ε) -

-
-

- Max = 4.08ε (Mean = 1.12ε) -

-
-
-
-

Table 6.16. Error rates for gamma_q_inva

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Incomplete gamma inverses. -

-
-

- Max = 5.64ε (Mean = 1.09ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 6.91ε (Mean = 1.17ε) -

-
-

- Max = 7.86ε (Mean = 1.25ε) -

-
-
-
- - Testing -
-

- There are two sets of tests: -

-
    -
  • - Basic sanity checks attempt to "round-trip" from a - and x to p or q - and back again. These tests have quite generous tolerances: in general - both the incomplete gamma, and its inverses, change so rapidly that round - tripping to more than a couple of significant digits isn't possible. - This is especially true when p or q - is very near one: in this case there isn't enough "information content" - in the input to the inverse function to get back where you started. -
  • -
  • - Accuracy checks using high precision test values. These measure the accuracy - of the result, given exact input values. -
  • -
-
- - Implementation -
-

- The functions gamma_p_inv and gamma_q_inv - share a common implementation. -

-

- First an initial approximation is computed using the methodology described - in: -

-

- A. - R. Didonato and A. H. Morris, Computation of the Incomplete Gamma Function - Ratios and their Inverse, ACM Trans. Math. Software 12 (1986), 377-393. -

-

- Finally, the last few bits are cleaned up using Halley iteration, the iteration - limit is set to 2/3 of the number of bits in T, which by experiment is sufficient - to ensure that the inverses are at least as accurate as the normal incomplete - gamma functions. In testing, no more than 3 iterations are required to produce - a result as accurate as the forward incomplete gamma function, and in many - cases only one iteration is required. -

-

- The functions gamma_p_inva and gamma_q_inva also share a common implementation - but are handled separately from gamma_p_inv and gamma_q_inv. -

-

- An initial approximation for a is computed very crudely - so that gamma_p(a, x) ~ 0.5, this value is then used - as a starting point for a generic derivative-free root finding algorithm. - As a consequence, these two functions are rather more expensive to compute - than the gamma_p_inv or gamma_q_inv functions. Even so, the root is usually - found in fewer than 10 iterations. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_gamma/lgamma.html b/boost/libs/math/doc/html/math_toolkit/sf_gamma/lgamma.html deleted file mode 100644 index 86127f28..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_gamma/lgamma.html +++ /dev/null @@ -1,487 +0,0 @@ - - - -Log Gamma - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/gamma.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type lgamma(T z);
-
-template <class T, class Policy>
-calculated-result-type lgamma(T z, const Policy&);
-
-template <class T>
-calculated-result-type lgamma(T z, int* sign);
-
-template <class T, class Policy>
-calculated-result-type lgamma(T z, int* sign, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- The lgamma function - is defined by: -

-

- -

-

- The second form of the function takes a pointer to an integer, which if non-null - is set on output to the sign of tgamma(z). -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- -

-

- There are effectively two versions of this function internally: a fully generic - version that is slow, but reasonably accurate, and a much more efficient - approximation that is used where the number of digits in the significand - of T correspond to a certain Lanczos - approximation. In practice, any built-in floating-point type you will - encounter has an appropriate Lanczos - approximation defined for it. It is also possible, given enough machine - time, to generate further Lanczos approximation's - using the program libs/math/tools/lanczos_generator.cpp. -

-

- The return type of these functions is computed using the result - type calculation rules: the result is of type double if T is an integer type, or type T - otherwise. -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types, along with comparisons - to various other libraries. Unless otherwise specified any floating point - type that is narrower than the one shown will have effectively - zero error. -

-

- Note that while the relative errors near the positive roots of lgamma are - very low, the lgamma function has an infinite number of irrational roots - for negative arguments: very close to these negative roots only a low absolute - error can be guaranteed. -

-
-

Table 6.3. Error rates for lgamma

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- factorials -

-
-

- Max = 0.914ε (Mean = 0.167ε)

- (<math.h>: Max = 0.958ε (Mean = 0.38ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 33.6ε (Mean = 2.78ε))
(Rmath - 3.0.2: Max = 1.55ε (Mean = 0.592ε))
(Cephes: - Max = 1.55ε (Mean = 0.512ε)) -

-
-

- Max = 0.991ε (Mean = 0.311ε)

- (<tr1/cmath>: Max = 1.67ε (Mean = 0.487ε))
- (<math.h>: Max = 1.67ε (Mean = 0.487ε)) -

-
-

- Max = 0.991ε (Mean = 0.383ε)

- (<math.h>: Max = 1.36ε (Mean = 0.476ε)) -

-
-

- near 0 -

-
-

- Max = 0.964ε (Mean = 0.462ε)

- (<math.h>: Max = 0.962ε (Mean = 0.372ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 5.21ε (Mean = 1.57ε))
(Rmath - 3.0.2: Max = 0ε (Mean = 0ε))
(Cephes: - Max = 1.16ε (Mean = 0.341ε)) -

-
-

- Max = 1.42ε (Mean = 0.566ε)

- (<tr1/cmath>: Max = 0.964ε (Mean = 0.543ε))
- (<math.h>: Max = 0.964ε (Mean = 0.543ε)) -

-
-

- Max = 1.42ε (Mean = 0.566ε)

- (<math.h>: Max = 0.964ε (Mean = 0.543ε)) -

-
-

- near 1 -

-
-

- Max = 0.867ε (Mean = 0.468ε)

- (<math.h>: Max = 0.906ε (Mean = 0.565ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 442ε (Mean = 88.8ε))
(Rmath - 3.0.2: Max = 7.99e+04ε (Mean = 1.68e+04ε))
(Cephes: - Max = 1.14e+05ε (Mean = 2.64e+04ε)) -

-
-

- Max = 0.948ε (Mean = 0.36ε)

- (<tr1/cmath>: Max = 0.615ε (Mean = 0.096ε))
- (<math.h>: Max = 0.615ε (Mean = 0.096ε)) -

-
-

- Max = 0.866ε (Mean = 0.355ε)

- (<math.h>: Max = 1.71ε (Mean = 0.581ε)) -

-
-

- near 2 -

-
-

- Max = 0.591ε (Mean = 0.159ε)

- (<math.h>: Max = 0.741ε (Mean = 0.473ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.17e+03ε (Mean = 274ε))
(Rmath - 3.0.2: Max = 2.63e+05ε (Mean = 5.84e+04ε))
(Cephes: - Max = 5.08e+05ε (Mean = 9.04e+04ε)) -

-
-

- Max = 0.878ε (Mean = 0.242ε)

- (<tr1/cmath>: Max = 0.741ε (Mean = 0.263ε))
- (<math.h>: Max = 0.741ε (Mean = 0.263ε)) -

-
-

- Max = 0.878ε (Mean = 0.241ε)

- (<math.h>: Max = 0.598ε (Mean = 0.235ε)) -

-
-

- near -10 -

-
-

- Max = 4.22ε (Mean = 1.33ε)

- (<math.h>: Max = 0.997ε (Mean = 0.444ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 24.9ε (Mean = 4.6ε))
(Rmath - 3.0.2: Max = 2.41e+05ε (Mean = 4.29e+04ε))
(Cephes: - Max = 0.997ε (Mean = 0.429ε)) -

-
-

- Max = 3.81ε (Mean = 1.01ε)

- (<tr1/cmath>: Max = 3.01ε (Mean = 0.86ε))
- (<math.h>: Max = 3.01ε (Mean = 0.86ε)) -

-
-

- Max = 3.81ε (Mean = 1.01ε)

- (<math.h>: Max = 3.04ε (Mean = 1.01ε)) -

-
-

- near -55 -

-
-

- Max = 0.821ε (Mean = 0.419ε)

- (<math.h>: Max = 249ε (Mean = 43.1ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 7.02ε (Mean = 1.47ε))
(Rmath - 3.0.2: Max = 4.08e+04ε (Mean = 7.26e+03ε))
(Cephes: - Max = 1.64ε (Mean = 0.693ε)) -

-
-

- Max = 0.821ε (Mean = 0.513ε)

- (<tr1/cmath>: Max = 1.58ε (Mean = 0.672ε))
- (<math.h>: Max = 1.58ε (Mean = 0.672ε)) -

-
-

- Max = 1.59ε (Mean = 0.587ε)

- (<math.h>: Max = 0.821ε (Mean = 0.674ε)) -

-
-
-
- - Testing -
-

- The main tests for this function involve comparisons against the logs of - the factorials which can be independently calculated to very high accuracy. -

-

- Random tests in key problem areas are also used. -

-
- - Implementation -
-

- The generic version of this function is implemented using Sterling's approximation - for large arguments: -

-

- -

-

- For small arguments, the logarithm of tgamma is used. -

-

- For negative z the logarithm version of the reflection - formula is used: -

-

- -

-

- For types of known precision, the Lanczos - approximation is used, a traits class boost::math::lanczos::lanczos_traits - maps type T to an appropriate approximation. The logarithmic version of the - Lanczos approximation is: -

-

- -

-

- Where Le,g   is the Lanczos sum, scaled by eg. -

-

- As before the reflection formula is used for z < 0. -

-

- When z is very near 1 or 2, then the logarithmic version of the Lanczos - approximation suffers very badly from cancellation error: indeed for - values sufficiently close to 1 or 2, arbitrarily large relative errors can - be obtained (even though the absolute error is tiny). -

-

- For types with up to 113 bits of precision (up to and including 128-bit long - doubles), root-preserving rational approximations devised - by JM are used over the intervals [1,2] and [2,3]. Over the interval - [2,3] the approximation form used is: -

-
lgamma(z) = (z-2)(z+1)(Y + R(z-2));
-
-

- Where Y is a constant, and R(z-2) is the rational approximation: optimised - so that it's absolute error is tiny compared to Y. In addition small values - of z greater than 3 can handled by argument reduction using the recurrence - relation: -

-
lgamma(z+1) = log(z) + lgamma(z);
-
-

- Over the interval [1,2] two approximations have to be used, one for small - z uses: -

-
lgamma(z) = (z-1)(z-2)(Y + R(z-1));
-
-

- Once again Y is a constant, and R(z-1) is optimised for low absolute error - compared to Y. For z > 1.5 the above form wouldn't converge to a minimax - solution but this similar form does: -

-
lgamma(z) = (2-z)(1-z)(Y + R(2-z));
-
-

- Finally for z < 1 the recurrence relation can be used to move to z > - 1: -

-
lgamma(z) = lgamma(z+1) - log(z);
-
-

- Note that while this involves a subtraction, it appears not to suffer from - cancellation error: as z decreases from 1 the -log(z) term grows positive much more rapidly than - the lgamma(z+1) term becomes negative. So in this specific - case, significant digits are preserved, rather than cancelled. -

-

- For other types which do have a Lanczos - approximation defined for them the current solution is as follows: - imagine we balance the two terms in the Lanczos - approximation by dividing the power term by its value at z - = 1, and then multiplying the Lanczos coefficients by the same - value. Now each term will take the value 1 at z = 1 - and we can rearrange the power terms in terms of log1p. Likewise if we subtract - 1 from the Lanczos sum part (algebraically, by subtracting the value of each - term at z = 1), we obtain a new summation that can be - also be fed into log1p. Crucially, all of the terms tend to zero, as z - -> 1: -

-

- -

-

- The Ck   terms in the above are the same as in the Lanczos - approximation. -

-

- A similar rearrangement can be performed at z = 2: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_gamma/polygamma.html b/boost/libs/math/doc/html/math_toolkit/sf_gamma/polygamma.html deleted file mode 100644 index 850f88be..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_gamma/polygamma.html +++ /dev/null @@ -1,409 +0,0 @@ - - - -Polygamma - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/polygamma.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type polygamma(int n, T z);
-
-template <class T, class Policy>
-calculated-result-type polygamma(int n, T z, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- Returns the polygamma function of x. Polygamma is defined - as the n'th derivative of the digamma function: -

-

- -

-

- The following graphs illustrate the behaviour of the function for odd and - even order: -

-

- - -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The return type of this function is computed using the result - type calculation rules: the result is of type double when T is an integer type, and type - T otherwise. -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types. Unless otherwise specified - any floating point type that is narrower than the one shown will have effectively zero error. -

-
-

Table 6.6. Error rates for polygamma

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Mathematica Data -

-
-

- Max = 6.34ε (Mean = 1.53ε) -

-
-

- Max = 0.824ε (Mean = 0.0574ε)
-
(Rmath 3.0.2: Max = 108ε (Mean = 15.2ε))
- (GSL 1.16: Max = 62.9ε (Mean = 12.8ε)) -

-
-

- Max = 7.38ε (Mean = 1.84ε) -

-
-

- Max = 18.3ε (Mean = 4.16ε) -

-
-

- Mathematica Data - large arguments -

-
-

- Max = 150ε (Mean = 15.1ε) -

-
-

- Max = 0.998ε (Mean = 0.0592ε)
-
(Rmath 3.0.2: Max - = 1.71e+56ε (Mean = 1.01e+55ε) And - other failures.)
(GSL 1.16: - Max = 244ε (Mean = 32.8ε) And - other failures.) -

-
-

- Max = 2.23ε (Mean = 0.323ε) -

-
-

- Max = 2.35ε (Mean = 0.34ε) -

-
-

- Mathematica Data - negative arguments -

-
-

- Max = 497ε (Mean = 129ε) -

-
-

- Max = 0.516ε (Mean = 0.022ε)

- (Rmath 3.0.2: Max = +INFε (Mean - = +INFε) And - other failures.)
(GSL 1.16: - Max = 36.6ε (Mean = 3.04ε) And - other failures.) -

-
-

- Max = 269ε (Mean = 87.7ε) -

-
-

- Max = 269ε (Mean = 87.9ε) -

-
-

- Mathematica Data - large negative arguments -

-
-

- Max = 162ε (Mean = 101ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(GSL 1.16: - Max = 1.79ε (Mean = 0.197ε) And - other failures.) -

-
-

- Max = 155ε (Mean = 96.4ε) -

-
-

- Max = 155ε (Mean = 96.4ε) -

-
-

- Mathematica Data - small arguments -

-
-

- Max = 3ε (Mean = 0.496ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = 106ε (Mean = 20ε))
(GSL 1.16: - Max = 15.2ε (Mean = 5.03ε)) -

-
-

- Max = 3.33ε (Mean = 0.75ε) -

-
-

- Max = 3.33ε (Mean = 0.75ε) -

-
-

- Mathematica Data - Large orders and other bug cases -

-
-

- Max = 200ε (Mean = 57.2ε) -

-
-

- Max = 0ε (Mean = 0ε)

(Rmath - 3.0.2: Max = +INFε (Mean = +INFε) And - other failures.)
(GSL 1.16: - Max = 151ε (Mean = 39.3ε) And - other failures.) -

-
-

- Max = 54.5ε (Mean = 13.3ε) -

-
-

- Max = 90.1ε (Mean = 30.6ε) -

-
-
-

- As shown above, error rates are generally very acceptable for moderately - sized arguments. Error rates should stay low for exact inputs, however, please - note that the function becomes exceptionally sensitive to small changes in - input for large n and negative x, indeed for cases where n! - would overflow, the function changes directly from -∞ to +∞ somewhere between - each negative integer - these cases are not handled correctly. -

-

- For these reasons results should be treated with extreme - caution when n is large and x negative. -

-
- - Testing -
-

- Testing is against Mathematica generated spot values to 35 digit precision. -

-
- - Implementation -
-

- For x < 0 the following reflection formula is used: -

-

- -

-

- The n'th derivative of cot(x) is tabulated for small - n, and for larger n has the general form: -

-

- -

-

- The coefficients of the cosine terms can be calculated iteratively starting - from C1,0 = -1 and then using -

-

- -

-

- to generate coefficients for n+1. -

-

- Note that every other coefficient is zero, and therefore what we have are - even or odd polynomials depending on whether n is even or odd. -

-

- Once x is positive then we have two methods available to us, for small x - we use the series expansion: -

-

- -

-

- Note that the evaluation of zeta functions at integer values is essentially - a table lookup as zeta is - optimized for those cases. -

-

- For large x we use the asymptotic expansion: -

-

- -

-

- For x in-between the two extremes we use the relation: -

-

- -

-

- to make x large enough for the asymptotic expansion to be used. -

-

- There are also two special cases: -

-

- -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_gamma/tgamma.html b/boost/libs/math/doc/html/math_toolkit/sf_gamma/tgamma.html deleted file mode 100644 index 7415b7a7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_gamma/tgamma.html +++ /dev/null @@ -1,531 +0,0 @@ - - - -Gamma - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Gamma -

-
- - Synopsis -
-
#include <boost/math/special_functions/gamma.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type tgamma(T z);
-
-template <class T, class Policy>
-calculated-result-type tgamma(T z, const Policy&);
-
-template <class T>
-calculated-result-type tgamma1pm1(T dz);
-
-template <class T, class Policy>
-calculated-result-type tgamma1pm1(T dz, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-
template <class T>
-calculated-result-type tgamma(T z);
-
-template <class T, class Policy>
-calculated-result-type tgamma(T z, const Policy&);
-
-

- Returns the "true gamma" (hence name tgamma) of value z: -

-

- -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- There are effectively two versions of the tgamma - function internally: a fully generic version that is slow, but reasonably - accurate, and a much more efficient approximation that is used where the - number of digits in the significand of T correspond to a certain Lanczos - approximation. In practice any built in floating point type you will - encounter has an appropriate Lanczos - approximation defined for it. It is also possible, given enough machine - time, to generate further Lanczos approximation's - using the program libs/math/tools/lanczos_generator.cpp. -

-

- The return type of this function is computed using the result - type calculation rules: the result is double - when T is an integer type, and T otherwise. -

-
template <class T>
-calculated-result-type tgamma1pm1(T dz);
-
-template <class T, class Policy>
-calculated-result-type tgamma1pm1(T dz, const Policy&);
-
-

- Returns tgamma(dz + 1) - 1. - Internally the implementation does not make use of the addition and subtraction - implied by the definition, leading to accurate results even for very small - dz. However, the implementation - is capped to either 35 digit accuracy, or to the precision of the Lanczos - approximation associated with type T, whichever is more accurate. -

-

- The return type of this function is computed using the result - type calculation rules: the result is double - when T is an integer type, and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types, along with comparisons - to other common libraries. Unless otherwise specified any floating point - type that is narrower than the one shown will have effectively - zero error. -

-
-

Table 6.1. Error rates for tgamma

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- factorials -

-
-

- Max = 1.85ε (Mean = 0.491ε)

- (<math.h>: Max = 3.17ε (Mean = 0.928ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.95ε (Mean = 0.783ε))
(Rmath - 3.0.2: Max = 314ε (Mean = 93.4ε))
(Cephes: - Max = 3.19ε (Mean = 0.884ε)) -

-
-

- Max = 1.96ε (Mean = 0.483ε)

- (<tr1/cmath>: Max = 1.66ε (Mean = 0.584ε))
- (<math.h>: Max = 1.66ε (Mean = 0.584ε)) -

-
-

- Max = 172ε (Mean = 41ε)

- (<math.h>: Max = 0ε (Mean = 0ε)) -

-
-

- near 0 -

-
-

- Max = 1.96ε (Mean = 0.684ε)

- (<math.h>: Max = 1ε (Mean = 0.405ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.51ε (Mean = 1.92ε))
(Rmath - 3.0.2: Max = 1ε (Mean = 0.335ε))
(Cephes: - Max = 1ε (Mean = 0.548ε)) -

-
-

- Max = 2ε (Mean = 0.73ε)

- (<tr1/cmath>: Max = 1ε (Mean = 0.376ε))
- (<math.h>: Max = 1ε (Mean = 0.376ε)) -

-
-

- Max = 2ε (Mean = 0.647ε)

- (<math.h>: Max = 0.5ε (Mean = 0.0791ε)) -

-
-

- near 1 -

-
-

- Max = 2ε (Mean = 0.865ε)

- (<math.h>: Max = 1ε (Mean = 0.4ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 4.41ε (Mean = 1.81ε))
(Rmath - 3.0.2: Max = 1ε (Mean = 0.32ε))
(Cephes: - Max = 1ε (Mean = 0.518ε)) -

-
-

- Max = 2ε (Mean = 0.85ε)

- (<tr1/cmath>: Max = 0.918ε (Mean = 0.203ε))
- (<math.h>: Max = 0.918ε (Mean = 0.203ε)) -

-
-

- Max = 3.01ε (Mean = 1.06ε)

- (<math.h>: Max = 1ε (Mean = 0.175ε)) -

-
-

- near 2 -

-
-

- Max = 2ε (Mean = 0.995ε)

- (<math.h>: Max = 0ε (Mean = 0ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 7.95ε (Mean = 3.12ε))
(Rmath - 3.0.2: Max = 1ε (Mean = 0.191ε))
(Cephes: - Max = 1.09ε (Mean = 0.502ε)) -

-
-

- Max = 2ε (Mean = 0.913ε)

- (<tr1/cmath>: Max = 0.558ε (Mean = 0.298ε))
- (<math.h>: Max = 0.558ε (Mean = 0.298ε)) -

-
-

- Max = 5.01ε (Mean = 1.89ε)

- (<math.h>: Max = 0ε (Mean = 0ε)) -

-
-

- near -10 -

-
-

- Max = 1.73ε (Mean = 0.729ε)

- (<math.h>: Max = 0.866ε (Mean = 0.445ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 2.6ε (Mean = 1.05ε))
(Rmath - 3.0.2: Max = 6.34e+05ε (Mean = 1.2e+05ε))
(Cephes: - Max = 2.6ε (Mean = 0.956ε)) -

-
-

- Max = 2.6ε (Mean = 0.985ε)

- (<tr1/cmath>: Max = 2.26ε (Mean = 1.08ε))
- (<math.h>: Max = 2.26ε (Mean = 1.08ε)) -

-
-

- Max = 1.75ε (Mean = 0.819ε)

- (<math.h>: Max = 0ε (Mean = 0ε)) -

-
-

- near -55 -

-
-

- Max = 1.8ε (Mean = 0.817ε)

- (<math.h>: Max = 3.87e+004ε (Mean = 6.71e+003ε)) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 1.8ε (Mean = 0.782ε))
(Rmath - 3.0.2: Max = 6.36e+06ε (Mean = 1.13e+06ε))
(Cephes: - Max = 2.7ε (Mean = 0.988ε)) -

-
-

- Max = 1.8ε (Mean = 0.847ε)

- (<tr1/cmath>: Max = 1.79ε (Mean = 0.75ε))
- (<math.h>: Max = 1.79ε (Mean = 0.75ε)) -

-
-

- Max = 98.5ε (Mean = 53.4ε)

- (<math.h>: Max = 0ε (Mean = 0ε)) -

-
-
-
-

Table 6.2. Error rates for tgamma1pm1

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- tgamma1pm1(dz) -

-
-

- Max = 0.982ε (Mean = 0.399ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 1.12ε (Mean = 0.49ε) -

-
-

- Max = 3.97ε (Mean = 0.713ε) -

-
-
-
- - Testing -
-

- The gamma is relatively easy to test: factorials and half-integer factorials - can be calculated exactly by other means and compared with the gamma function. - In addition, some accuracy tests in known tricky areas were computed at high - precision using the generic version of this function. -

-

- The function tgamma1pm1 is - tested against values calculated very naively using the formula tgamma(1+dz)-1 with a - lanczos approximation accurate to around 100 decimal digits. -

-
- - Implementation -
-

- The generic version of the tgamma - function is implemented Sterling's approximation for lgamma for large z: -

-

- -

-

- Following exponentiation, downward recursion is then used for small values - of z. -

-

- For types of known precision the Lanczos - approximation is used, a traits class boost::math::lanczos::lanczos_traits - maps type T to an appropriate approximation. -

-

- For z in the range -20 < z < 1 then recursion is used to shift to z - > 1 via: -

-

- -

-

- For very small z, this helps to preserve the identity: -

-

- -

-

- For z < -20 the reflection formula: -

-

- -

-

- is used. Particular care has to be taken to evaluate the z * sin(π   * - z) part: a special routine is used to reduce z prior to multiplying - by π   to ensure that the result in is the range [0, π/2]. Without this an excessive - amount of error occurs in this region (which is hard enough already, as the - rate of change near a negative pole is exceptionally - high). -

-

- Finally if the argument is a small integer then table lookup of the factorial - is used. -

-

- The function tgamma1pm1 is - implemented using rational approximations devised - by JM in the region -0.5 < dz - < 2. - These are the same approximations (and internal routines) that are used for - lgamma, and so aren't - detailed further here. The result of the approximation is log(tgamma(dz+1)) which can - fed into expm1 to give the - desired result. Outside the range -0.5 < dz - < 2 - then the naive formula tgamma1pm1(dz) - = tgamma(dz+1)-1 - can be used directly. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_gamma/trigamma.html b/boost/libs/math/doc/html/math_toolkit/sf_gamma/trigamma.html deleted file mode 100644 index 28aacc06..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_gamma/trigamma.html +++ /dev/null @@ -1,205 +0,0 @@ - - - -Trigamma - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/trigamma.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type trigamma(T z);
-
-template <class T, class Policy>
-calculated-result-type trigamma(T z, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- Returns the trigamma function of x. Trigamma is defined - as the derivative of the digamma function: -

-

- -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The return type of this function is computed using the result - type calculation rules: the result is of type double when T is an integer type, and type - T otherwise. -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types. Unless otherwise specified - any floating point type that is narrower than the one shown will have effectively zero error. -

-
-

Table 6.5. Error rates for trigamma

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Mathematica Data -

-
-

- Max = 1ε (Mean = 0.382ε) -

-
-

- Max = 0.998ε (Mean = 0.105ε)

- (Rmath 3.0.2: Max = 1.34e+04ε (Mean = 1.51e+03ε))
- (GSL 1.16: Max = 1.34e+04ε (Mean = 1.49e+03ε)) -

-
-

- Max = 1.28ε (Mean = 0.449ε) -

-
-

- Max = 1.28ε (Mean = 0.447ε) -

-
-
-

- As shown above, error rates are generally very low for built in types. For - multiprecision types, error rates are typically in the order of a few epsilon. -

-
- - Testing -
-

- Testing is against Mathematica generated spot values to 35 digit precision. -

-
- - Implementation -
-

- The arbitrary precision version of this function simply calls polygamma. -

-

- For built in fixed precision types, negative arguments are first made positive - via: -

-

- -

-

- Then arguments in the range [0, 1) are shifted to >= 1 via: -

-

- -

-

- Then evaluation is via one of a number of rational approximations, for small - x these are of the form: -

-

- -

-

- and for large x of the form: -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_implementation.html b/boost/libs/math/doc/html/math_toolkit/sf_implementation.html deleted file mode 100644 index d09f8c1e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_implementation.html +++ /dev/null @@ -1,862 +0,0 @@ - - - -Additional Implementation Notes - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The majority of the implementation notes are included with the documentation - of each function or distribution. The notes here are of a more general nature, - and reflect more the general implementation philosophy used. -

-
- - Implementation - philosophy -
-

- "First be right, then be fast." -

-

- There will always be potential compromises to be made between speed and accuracy. - It may be possible to find faster methods, particularly for certain limited - ranges of arguments, but for most applications of math functions and distributions, - we judge that speed is rarely as important as accuracy. -

-

- So our priority is accuracy. -

-

- To permit evaluation of accuracy of the special functions, production of extremely - accurate tables of test values has received considerable effort. -

-

- (It also required much CPU effort - there was some danger of molten plastic - dripping from the bottom of JM's laptop, so instead, PAB's Dual-core desktop - was kept 50% busy for days calculating some - tables of test values!) -

-

- For a specific RealType, say float - or double, it may be possible - to find approximations for some functions that are simpler and thus faster, - but less accurate (perhaps because there are no refining iterations, for example, - when calculating inverse functions). -

-

- If these prove accurate enough to be "fit for his purpose", then - a user may substitute his custom specialization. -

-

- For example, there are approximations dating back from times when computation - was a lot more expensive: -

-

- H Goldberg and H Levine, Approximate formulas for percentage points and normalisation - of t and chi squared, Ann. Math. Stat., 17(4), 216 - 225 (Dec 1946). -

-

- A H Carter, Approximations to percentage points of the z-distribution, Biometrika - 34(2), 352 - 358 (Dec 1947). -

-

- These could still provide sufficient accuracy for some speed-critical applications. -

-
- - Accuracy - and Representation of Test Values -
-

- In order to be accurate enough for as many as possible real types, constant - values are given to 50 decimal digits if available (though many sources proved - only accurate near to 64-bit double precision). Values are specified as long - double types by appending L, unless they are exactly representable, for example - integers, or binary fractions like 0.125. This avoids the risk of loss of accuracy - converting from double, the default type. Values are used after static_cast<RealType>(1.2345L) to provide - the appropriate RealType for spot tests. -

-

- Functions that return constants values, like kurtosis for example, are written - as -

-

- static_cast<RealType>(-3) / - 5; -

-

- to provide the most accurate value that the compiler can compute for the real - type. (The denominator is an integer and so will be promoted exactly). -

-

- So tests for one third, not exactly representable - with radix two floating-point, (should) use, for example: -

-

- static_cast<RealType>(1) / - 3; -

-

- If a function is very sensitive to changes in input, specifying an inexact - value as input (such as 0.1) can throw the result off by a noticeable amount: - 0.1f is "wrong" by ~1e-7 for example (because 0.1 has no exact binary - representation). That is why exact binary values - halves, quarters, and eighths - etc - are used in test code along with the occasional fraction a/b - with b a power of two (in order - to ensure that the result is an exactly representable binary value). -

-
- - Tolerance - of Tests -
-

- The tolerances need to be set to the maximum of: -

-
    -
  • - Some epsilon value. -
  • -
  • - The accuracy of the data (often only near 64-bit double). -
  • -
-

- Otherwise when long double has more digits than the test data, then no amount - of tweaking an epsilon based tolerance will work. -

-

- A common problem is when tolerances that are suitable for implementations like - Microsoft VS.NET where double and long double are the same size: tests fail - on other systems where long double is more accurate than double. Check first - that the suffix L is present, and then that the tolerance is big enough. -

-
- - Handling - Unsuitable Arguments -
-

- In Errors - in Mathematical Special Functions, J. Marraffino & M. Paterno it - is proposed that signalling a domain error is mandatory when the argument would - give an mathematically undefined result. -

-
  • - Guideline 1 -
-

- A mathematical function is said to be defined at a point a = (a1, a2, . . - .) if the limits as x = (x1, x2, . . .) 'approaches a from all directions - agree'. The defined value may be any number, or +infinity, or -infinity. -

-

- Put crudely, if the function goes to + infinity and then emerges 'round-the-back' - with - infinity, it is NOT defined. -

-

- The library function which approximates a mathematical function shall signal - a domain error whenever evaluated with argument values for which the mathematical - function is undefined. -

-
  • - Guideline 2 -
-

- The library function which approximates a mathematical function shall signal - a domain error whenever evaluated with argument values for which the mathematical - function obtains a non-real value. -

-

- This implementation is believed to follow these proposals and to assist compatibility - with ISO/IEC 9899:1999 Programming languages - C and with - the Draft - Technical Report on C++ Library Extensions, 2005-06-24, section 5.2.1, paragraph - 5. See also domain_error. -

-

- See policy reference for details - of the error handling policies that should allow a user to comply with any - of these recommendations, as well as other behaviour. -

-

- See error handling for a - detailed explanation of the mechanism, and error_handling - example and error_handling_example.cpp -

-
- - - - - -
[Caution]Caution

- If you enable throw but do NOT have try & catch block, then the program - will terminate with an uncaught exception and probably abort. Therefore to - get the benefit of helpful error messages, enabling all - exceptions and using try&catch is recommended - for all applications. However, for simplicity, this is not done for most - examples. -

-
- - Handling - of Functions that are Not Mathematically defined -
-

- Functions that are not mathematically defined, like the Cauchy mean, fail to - compile by default. A policy - allows control of this. -

-

- If the policy is to permit undefined functions, then calling them throws a - domain error, by default. But the error policy can be set to not throw, and - to return NaN instead. For example, -

-

- #define BOOST_MATH_DOMAIN_ERROR_POLICY - ignore_error -

-

- appears before the first Boost include, then if the un-implemented function - is called, mean(cauchy<>()) will return std::numeric_limits<T>::quiet_NaN(). -

-
- - - - - -
[Warning]Warning

- If std::numeric_limits<T>::has_quiet_NaN is false (for example, if - T is a User-defined type without NaN support), then an exception will always - be thrown when a domain error occurs. Catching exceptions is therefore strongly - recommended. -

-
- - Median of - distributions -
-

- There are many distributions for which we have been unable to find an analytic - formula, and this has deterred us from implementing median - functions, the mid-point in a list of values. -

-

- However a useful numerical approximation for distribution dist - is available as usual as an accessor non-member function median using median(dist), that may be evaluated (in the absence of - an analytic formula) by calling -

-

- quantile(dist, 0.5) (this is the mathematical - definition of course). -

-

- Mean, - Median, and Skew, Paul T von Hippel -

-

- Descriptive - Statistics, -

-

- and - -

-

- Mathematica - Basic Statistics. give more detail, in particular for discrete distributions. -

-
- - Handling - of Floating-Point Infinity -
-

- Some functions and distributions are well defined with + or - infinity as argument(s), - but after some experiments with handling infinite arguments as special cases, - we concluded that it was generally more useful to forbid this, and instead - to return the result of domain_error. -

-

- Handling infinity as special cases is additionally complicated because, unlike - built-in types on most - but not all - platforms, not all User-Defined Types - are specialized to provide std::numeric_limits<RealType>::infinity() and would return zero rather than any representation - of infinity. -

-

- The rationale is that non-finiteness may happen because of error or overflow - in the users code, and it will be more helpful for this to be diagnosed promptly - rather than just continuing. The code also became much more complicated, more - error-prone, much more work to test, and much less readable. -

-

- However in a few cases, for example normal, where we felt it obvious, we have - permitted argument(s) to be infinity, provided infinity is implemented for - the RealType on that implementation, - and it is supported and tested by the distribution. -

-

- The range for these distributions is set to infinity if supported by the platform, - (by testing std::numeric_limits<RealType>::has_infinity) else the maximum value provided - for the RealType by Boost.Math. -

-

- Testing for has_infinity is obviously important for arbitrary precision types - where infinity makes much less sense than for IEEE754 floating-point. -

-

- So far we have not set support() function (only range) on the grounds that - the PDF is uninteresting/zero for infinities. -

-

- Users who require special handling of infinity (or other specific value) can, - of course, always intercept this before calling a distribution or function - and return their own choice of value, or other behavior. This will often be - simpler than trying to handle the aftermath of the error policy. -

-

- Overflow, underflow, denorm can be handled using error - handling policies. -

-

- We have also tried to catch boundary cases where the mathematical specification - would result in divide by zero or overflow and signalling these similarly. - What happens at (and near), poles can be controlled through error - handling policies. -

-
- - Scale, Shape - and Location -
-

- We considered adding location and scale to the list of functions, for example: -

-
template <class RealType>
-inline RealType scale(const triangular_distribution<RealType>& dist)
-{
-  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))
-  {
-    return result;
-  }
-  return (upper - lower);
-}
-
-

- but found that these concepts are not defined (or their definition too contentious) - for too many distributions to be generally applicable. Because they are non-member - 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 as a approximation - for the normal distribution, the most common usage, lower = -1, mode = - 0 and upper = 1 would be more suitable. -
-
- - Rational - Approximations Used -
-

- Some of the special functions in this library are implemented via rational - approximations. These are either taken from the literature, or devised by John - Maddock using our Remez code. -

-

- Rational rather than Polynomial approximations are used to ensure accuracy: - polynomial approximations are often wonderful up to a certain level of accuracy, - but then quite often fail to provide much greater accuracy no matter how many - more terms are added. -

-

- Our own approximations were devised either for added accuracy (to support 128-bit - long doubles for example), or because literature methods were unavailable or - under non-BSL compatible license. Our Remez code is known to produce good agreement - with literature results in fairly simple "toy" cases. All approximations - were checked for convergence and to ensure that they were not ill-conditioned - (the coefficients can give a theoretically good solution, but the resulting - rational function may be un-computable at fixed precision). -

-

- Recomputing using different Remez implementations may well produce differing - coefficients: the problem is well known to be ill conditioned in general, and - our Remez implementation often found a broad and ill-defined minima for many - of these approximations (of course for simple "toy" examples like - approximating exp the minima - is well defined, and the coefficients should agree no matter whose Remez implementation - is used). This should not in general effect the validity of the approximations: - there's good literature supporting the idea that coefficients can be "in - error" without necessarily adversely effecting the result. Note that "in - error" has a special meaning in this context, see "Approximate - construction of rational approximations and the effect of error autocorrection.", - Grigori Litvinov, eprint arXiv:math/0101042. Therefore the coefficients - still need to be accurately calculated, even if they can be in error compared - to the "true" minimax solution. -

-
- - Representation - of Mathematical Constants -
-

- A macro BOOST_DEFINE_MATH_CONSTANT in constants.hpp is used to provide high - accuracy constants to mathematical functions and distributions, since it is - important to provide values uniformly for both built-in float, double and long - double types, and for User Defined types in Boost.Multiprecision - like cpp_dec_float. - and others like NTL::quad_float and NTL::RR. -

-

- To permit calculations in this Math ToolKit and its tests, (and elsewhere) - at about 100 decimal digits with NTL::RR type, it is obviously necessary to - define constants to this accuracy. -

-

- However, some compilers do not accept decimal digits strings as long as this. - So the constant is split into two parts, with the 1st containing at least long - double precision, and the 2nd zero if not needed or known. The 3rd part permits - an exponent to be provided if necessary (use zero if none) - the other two - parameters may only contain decimal digits (and sign and decimal point), and - may NOT include an exponent like 1.234E99 (nor a trailing F or L). The second - digit string is only used if T is a User-Defined Type, when the constant is - converted to a long string literal and lexical_casted to type T. (This is necessary - because you can't use a numeric constant since even a long double might not - have enough digits). -

-

- For example, pi is defined: -

-
BOOST_DEFINE_MATH_CONSTANT(pi,
-  3.141592653589793238462643383279502884197169399375105820974944,
-  5923078164062862089986280348253421170679821480865132823066470938446095505,
-  0)
-
-

- And used thus: -

-
using namespace boost::math::constants;
-
-double diameter = 1.;
-double radius = diameter * pi<double>();
-
-or boost::math::constants::pi<NTL::RR>()
-
-

- Note that it is necessary (if inconvenient) to specify the type explicitly. -

-

- So you cannot write -

-
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
-
-
- - Thread - safety -
-

- Reporting of error by setting errno - should be thread-safe already (otherwise none of the std lib math functions - would be thread safe?). If you turn on reporting of errors via exceptions, - errno gets left unused anyway. -

-

- For normal C++ usage, the Boost.Math static - const constants are now thread-safe - so for built-in real-number types: float, - double and long - double are all thread safe. -

-

- For User_defined types, for example, cpp_dec_float, - the Boost.Math should also be thread-safe, (thought we are unsure how to rigorously - prove this). -

-

- (Thread safety has received attention in the C++11 Standard revision, so hopefully - all compilers will do the right thing here at some point.) -

-
- - Sources - of Test Data -
-

- We found a large number of sources of test data. We have assumed that these - are "known good" if they agree with the results - from our test and only consulted other sources for their 'vote' - in the case of serious disagreement. The accuracy, actual and claimed, vary - very widely. Only Wolfram Mathematica - functions provided a higher accuracy than C++ double (64-bit floating-point) - and was regarded as the most-trusted source by far. The The - R Project for Statistical Computing provided the widest range of distributions, - but the usual Intel X86 distribution uses 64-but doubles, so our use was limited - to the 15 to 17 decimal digit accuracy. -

-

- A useful index of sources is: Web-oriented - Teaching Resources in Probability and Statistics -

-

- Statlet: - Is a Javascript application that calculates and plots probability distributions, - and provides the most complete range of distributions: -

-

- Bernoulli, Binomial, discrete uniform, geometric, hypergeometric, negative - binomial, Poisson, beta, Cauchy-Lorentz, chi-sequared, Erlang, exponential, - extreme value, Fisher, gamma, Laplace, logistic, lognormal, normal, Parteo, - Student's t, triangular, uniform, and Weibull. -

-

- It calculates pdf, cdf, survivor, log survivor, hazard, tail areas, & critical - values for 5 tail values. -

-

- It is also the only independent source found for the Weibull distribution; - unfortunately it appears to suffer from very poor accuracy in areas where the - underlying special function is known to be difficult to implement. -

-
- - Testing - for Invalid Parameters to Functions and Constructors -
-

- After finding that some 'bad' parameters (like NaN) were not throwing a domain_error exception as they should, a - function -

-

- check_out_of_range (in test_out_of_range.hpp) was devised by JM to check (using Boost.Test's - BOOST_CHECK_THROW macro) that bad parameters passed to constructors and functions - throw domain_error exceptions. -

-

- Usage is check_out_of_range< DistributionType - >(list-of-params); - Where list-of-params is a list of valid parameters - from which the distribution can be constructed - ie the same number of args - are passed to the function, as are passed to the distribution constructor. -

-

- The values of the parameters are not important, but must be valid - to pass the constructor checks; the default values are suitable, but must be - explicitly provided, for example: -

-
check_out_of_range<extreme_value_distribution<RealType> >(1, 2);
-
-

- Checks made are: -

-
    -
  • - Infinity or NaN (if available) passed in place of each of the valid params. -
  • -
  • - Infinity or NaN (if available) as a random variable. -
  • -
  • - Out-of-range random variable passed to pdf and cdf (ie outside of "range(DistributionType)"). -
  • -
  • - Out-of-range probability passed to quantile function and complement. -
  • -
-

- but does not check finite but out-of-range - parameters to the constructor because these are specific to each distribution, - for example: -

-
BOOST_CHECK_THROW(pdf(pareto_distribution<RealType>(0, 1), 0), std::domain_error);
-BOOST_CHECK_THROW(pdf(pareto_distribution<RealType>(1, 0), 0), std::domain_error);
-
-

- checks scale and shape parameters are both > 0 by checking - that domain_error exception - is thrown if either are == 0. -

-

- (Use of check_out_of_range - function may mean that some previous tests are now redundant). -

-

- It was also noted that if more than one parameter is bad, then only the first - detected will be reported by the error message. -

-
- - Creating - and Managing the Equations -
-

- Equations that fit on a single line can most easily be produced by inline Quickbook - code using templates for Unicode Greek and Unicode Math symbols. All Greek - letter and small set of Math symbols is available at /boost-path/libs/math/doc/sf_and_dist/html4_symbols.qbk -

-

- Where equations need to use more than one line, real Math editors were used. -

-

- The primary source for the equations is now MathML: - see the *.mml files in libs/math/doc/sf_and_dist/equations/. -

-

- These are most easily edited by a GUI editor such as Mathcast, - please note that the equation editor supplied with Open Office currently mangles - these files and should not currently be used. -

-

- Conversion to SVG was achieved using SVGMath - and a command line such as: -

-
$for file in *.mml; do
->/cygdrive/c/Python25/python.exe 'C:\download\open\SVGMath-0.3.1\math2svg.py' \
->>$file > $(basename $file .mml).svg
->done
-
-

- See also the section on "Using Python to run Inkscape" and "Using - inkscape to convert scalable vector SVG files to Portable Network graphic PNG". -

-

- Note that SVGMath requires that the mml files are not - wrapped in an XHTML XML wrapper - this is added by Mathcast by default - one - workaround is to copy an existing mml file and then edit it with Mathcast: - the existing format should then be preserved. This is a bug in the XML parser - used by SVGMath which the author is aware of. -

-

- If necessary the XHTML wrapper can be removed with: -

-
cat filename | tr -d "\r\n" | sed -e 's/.*\(<math[^>]*>.*</math>\).*/\1/' > newfile
-

- Setting up fonts for SVGMath is currently rather tricky, on a Windows XP system - JM's font setup is the same as the sample config file provided with SVGMath - but with: -

-
    <!-- Double-struck -->
-    <mathvariant name="double-struck" family="Mathematica7, Lucida Sans Unicode"/>
-
-

- changed to: -

-
    <!-- Double-struck -->
-    <mathvariant name="double-struck" family="Lucida Sans Unicode"/>
-
-

- Note that unlike the sample config file supplied with SVGMath, this does not - make use of the Mathematica - 7 font as this lacks sufficient Unicode information for it to be used - with either SVGMath or XEP "as is". -

-

- Also note that the SVG files in the repository are almost certainly Windows-specific - since they reference various Windows Fonts. -

-

- PNG files can be created from the SVGs using Batik - and a command such as: -

-
java -jar 'C:\download\open\batik-1.7\batik-rasterizer.jar' -dpi 120 *.svg
-

- Or using Inkscape (File, Export bitmap, Drawing tab, bitmap size (default size, - 100 dpi), Filename (default). png) -

-

- or Using Cygwin, a command such as: -

-
for file in *.svg; do
-  /cygdrive/c/progra~1/Inkscape/inkscape -d 120 -e $(cygpath -a -w $(basename $file .svg).png) $(cygpath -a -w $file);
-done
-

- Using BASH -

-
# Convert single SVG to PNG file.
-# /c/progra~1/Inkscape/inkscape -d 120 -e a.png a.svg
-
-

- or to convert All files in folder SVG to PNG. -

-
for file in *.svg; do
-/c/progra~1/Inkscape/inkscape -d 120 -e $(basename $file .svg).png $file
-done
-
-

- Currently Inkscape seems to generate the better looking PNGs. -

-

- The PDF is generated into \pdf\math.pdf using a command from a shell or command - window with current directory \math_toolkit\libs\math\doc\sf_and_dist, typically: -

-
bjam -a pdf >math_pdf.log
-

- Note that XEP will have to be configured to use and embed - whatever fonts are used by the SVG equations (almost certainly editing the - sample xep.xml provided by the XEP installation). If you fail to do this you - will get XEP warnings in the log file like -

-
[warning]could not find any font family matching "Times New Roman"; replaced by Helvetica
-

- (html is the default so it is generated at libs\math\doc\html\index.html using - command line >bjam -a > math_toolkit.docs.log). -

-
<!-- Sample configuration for Windows TrueType fonts.  -->
-
-

- is provided in the xep.xml downloaded, but the Windows TrueType fonts are commented - out. -

-

- JM's XEP config file \xep\xep.xml has the following font configuration section - added: -

-
    <font-group xml:base="file:/C:/Windows/Fonts/" label="Windows TrueType" embed="true" subset="true">
-      <font-family name="Arial">
-        <font><font-data ttf="arial.ttf"/></font>
-        <font style="oblique"><font-data ttf="ariali.ttf"/></font>
-        <font weight="bold"><font-data ttf="arialbd.ttf"/></font>
-        <font weight="bold" style="oblique"><font-data ttf="arialbi.ttf"/></font>
-      </font-family>
-
-      <font-family name="Times New Roman" ligatures="&#xFB01; &#xFB02;">
-        <font><font-data ttf="times.ttf"/></font>
-        <font style="italic"><font-data ttf="timesi.ttf"/></font>
-        <font weight="bold"><font-data ttf="timesbd.ttf"/></font>
-        <font weight="bold" style="italic"><font-data ttf="timesbi.ttf"/></font>
-      </font-family>
-
-      <font-family name="Courier New">
-        <font><font-data ttf="cour.ttf"/></font>
-        <font style="oblique"><font-data ttf="couri.ttf"/></font>
-        <font weight="bold"><font-data ttf="courbd.ttf"/></font>
-        <font weight="bold" style="oblique"><font-data ttf="courbi.ttf"/></font>
-      </font-family>
-
-      <font-family name="Tahoma" embed="true">
-        <font><font-data ttf="tahoma.ttf"/></font>
-        <font weight="bold"><font-data ttf="tahomabd.ttf"/></font>
-      </font-family>
-
-      <font-family name="Verdana" embed="true">
-        <font><font-data ttf="verdana.ttf"/></font>
-        <font style="oblique"><font-data ttf="verdanai.ttf"/></font>
-        <font weight="bold"><font-data ttf="verdanab.ttf"/></font>
-        <font weight="bold" style="oblique"><font-data ttf="verdanaz.ttf"/></font>
-      </font-family>
-
-      <font-family name="Palatino" embed="true" ligatures="&#xFB00; &#xFB01; &#xFB02; &#xFB03; &#xFB04;">
-        <font><font-data ttf="pala.ttf"/></font>
-        <font style="italic"><font-data ttf="palai.ttf"/></font>
-        <font weight="bold"><font-data ttf="palab.ttf"/></font>
-        <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> -->
-         <!-- actually called l_10646.ttf on Windows 2000 and Vista Sp1 -->
-         <font><font-data ttf="l_10646.ttf"></font>
-    </font-family>
-
-

- PAB had to alter his because the Lucida Sans Unicode font had a different name. - Other changes are very likely to be required if you are not using Windows. -

-

- XZ authored his equations using the venerable Latex, JM converted these to - MathML using mxlatex. - This process is currently unreliable and required some manual intervention: - consequently Latex source is not considered a viable route for the automatic - production of SVG versions of equations. -

-

- Equations are embedded in the quickbook source using the equation - template defined in math.qbk. This outputs Docbook XML that looks like: -

-
<inlinemediaobject>
-<imageobject role="html">
-<imagedata fileref="../equations/myfile.png"></imagedata>
-</imageobject>
-<imageobject role="print">
-<imagedata fileref="../equations/myfile.svg"></imagedata>
-</imageobject>
-</inlinemediaobject>
-
-

- MathML is not currently present in the Docbook output, or in the generated - HTML: this needs further investigation. -

-
- - Producing - Graphs -
-

- Graphs were produced in SVG format and then converted to PNG's using the same - process as the equations. -

-

- The programs /libs/math/doc/sf_and_dist/graphs/dist_graphs.cpp and /libs/math/doc/sf_and_dist/graphs/sf_graphs.cpp generate - the SVG's directly using the Google - Summer of Code 2007 project of Jacob Voytko (whose work so far, considerably - enhanced and now reasonably mature and usable, by Paul A. Bristow, is at .\boost-sandbox\SOC\2007\visualization). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_poly.html b/boost/libs/math/doc/html/math_toolkit/sf_poly.html deleted file mode 100644 index 3e5fc672..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_poly.html +++ /dev/null @@ -1,54 +0,0 @@ - - - -Polynomials - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_poly/hermite.html b/boost/libs/math/doc/html/math_toolkit/sf_poly/hermite.html deleted file mode 100644 index 6711df39..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_poly/hermite.html +++ /dev/null @@ -1,243 +0,0 @@ - - - -Hermite Polynomials - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/hermite.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type hermite(unsigned n, T x);
-
-template <class T, class Policy>
-calculated-result-type hermite(unsigned n, T x, const Policy&);
-
-template <class T1, class T2, class T3>
-calculated-result-type hermite_next(unsigned n, T1 x, T2 Hn, T3 Hnm1);
-
-}} // namespaces
-
-
- - Description -
-

- The return type of these functions is computed using the result - type calculation rules: note than when there is a single - template argument the result is the same type as that argument or double if the template argument is an integer - type. -

-
template <class T>
-calculated-result-type hermite(unsigned n, T x);
-
-template <class T, class Policy>
-calculated-result-type hermite(unsigned n, T x, const Policy&);
-
-

- Returns the value of the Hermite Polynomial of order n - at point x: -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- The following graph illustrates the behaviour of the first few Hermite Polynomials: -

-

- -

-
template <class T1, class T2, class T3>
-calculated-result-type hermite_next(unsigned n, T1 x, T2 Hn, T3 Hnm1);
-
-

- Implements the three term recurrence relation for the Hermite polynomials, - this function can be used to create a sequence of values evaluated at the - same x, and for rising n. -

-

- -

-

- For example we could produce a vector of the first 10 polynomial values using: -

-
double x = 0.5;  // Abscissa value
-vector<double> v;
-v.push_back(hermite(0, x)).push_back(hermite(1, x));
-for(unsigned l = 1; l < 10; ++l)
-   v.push_back(hermite_next(l, x, v[l], v[l-1]));
-
-

- Formally the arguments are: -

-
-

-
-
n
-

- The degree n of the last polynomial calculated. -

-
x
-

- The abscissa value -

-
Hn
-

- The value of the polynomial evaluated at degree n. -

-
Hnm1
-

- The value of the polynomial evaluated at degree n-1. -

-
-
-
- - Accuracy -
-

- The following table shows peak errors (in units of epsilon) for various domains - of input arguments. Note that only results for the widest floating point - type on the system are given as narrower types have effectively - zero error. -

-
-

Table 6.37. Error rates for hermite

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Hermite Polynomials -

-
-

- Max = 4.46ε (Mean = 1.41ε) -

-
-

- Max = 0ε (Mean = 0ε) -

-
-

- Max = 6.24ε (Mean = 2.07ε) -

-
-

- Max = 6.24ε (Mean = 2.07ε) -

-
-
-

- Note that the worst errors occur when the degree increases, values greater - than ~120 are very unlikely to produce sensible results, especially in the - associated polynomial case when the order is also large. Further the relative - errors are likely to grow arbitrarily large when the function is very close - to a root. -

-
- - Testing -
-

- A mixture of spot tests of values calculated using functions.wolfram.com, - and randomly generated test data are used: the test data was computed using - NTL::RR at 1000-bit - precision. -

-
- - Implementation -
-

- These functions are implemented using the stable three term recurrence relations. - These relations guarantee low absolute error but cannot guarantee low relative - error near one of the roots of the polynomials. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_poly/laguerre.html b/boost/libs/math/doc/html/math_toolkit/sf_poly/laguerre.html deleted file mode 100644 index 4e7f295b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_poly/laguerre.html +++ /dev/null @@ -1,384 +0,0 @@ - - - -Laguerre (and Associated) Polynomials - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/laguerre.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type laguerre(unsigned n, T x);
-
-template <class T, class Policy>
-calculated-result-type laguerre(unsigned n, T x, const Policy&);
-
-template <class T>
-calculated-result-type laguerre(unsigned n, unsigned m, T x);
-
-template <class T, class Policy>
-calculated-result-type laguerre(unsigned n, unsigned m, T x, const Policy&);
-
-template <class T1, class T2, class T3>
-calculated-result-type laguerre_next(unsigned n, T1 x, T2 Ln, T3 Lnm1);
-
-template <class T1, class T2, class T3>
-calculated-result-type laguerre_next(unsigned n, unsigned m, T1 x, T2 Ln, T3 Lnm1);
-
-
-}} // namespaces
-
-
- - Description -
-

- The return type of these functions is computed using the result - type calculation rules: note than when there is a single - template argument the result is the same type as that argument or double if the template argument is an integer - type. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T>
-calculated-result-type laguerre(unsigned n, T x);
-
-template <class T, class Policy>
-calculated-result-type laguerre(unsigned n, T x, const Policy&);
-
-

- Returns the value of the Laguerre Polynomial of order n - at point x: -

-

- -

-

- The following graph illustrates the behaviour of the first few Laguerre Polynomials: -

-

- -

-
template <class T>
-calculated-result-type laguerre(unsigned n, unsigned m, T x);
-
-template <class T, class Policy>
-calculated-result-type laguerre(unsigned n, unsigned m, T x, const Policy&);
-
-

- Returns the Associated Laguerre polynomial of degree n - and order m at point x: -

-

- -

-
template <class T1, class T2, class T3>
-calculated-result-type laguerre_next(unsigned n, T1 x, T2 Ln, T3 Lnm1);
-
-

- Implements the three term recurrence relation for the Laguerre polynomials, - this function can be used to create a sequence of values evaluated at the - same x, and for rising n. -

-

- -

-

- For example we could produce a vector of the first 10 polynomial values using: -

-
double x = 0.5;  // Abscissa value
-vector<double> v;
-v.push_back(laguerre(0, x)).push_back(laguerre(1, x));
-for(unsigned l = 1; l < 10; ++l)
-   v.push_back(laguerre_next(l, x, v[l], v[l-1]));
-
-

- Formally the arguments are: -

-
-

-
-
n
-

- The degree n of the last polynomial calculated. -

-
x
-

- The abscissa value -

-
Ln
-

- The value of the polynomial evaluated at degree n. -

-
Lnm1
-

- The value of the polynomial evaluated at degree n-1. -

-
-
-
template <class T1, class T2, class T3>
-calculated-result-type laguerre_next(unsigned n, unsigned m, T1 x, T2 Ln, T3 Lnm1);
-
-

- Implements the three term recurrence relation for the Associated Laguerre - polynomials, this function can be used to create a sequence of values evaluated - at the same x, and for rising degree n. -

-

- -

-

- For example we could produce a vector of the first 10 polynomial values using: -

-
double x = 0.5;  // Abscissa value
-int m = 10;      // order
-vector<double> v;
-v.push_back(laguerre(0, m, x)).push_back(laguerre(1, m, x));
-for(unsigned l = 1; l < 10; ++l)
-   v.push_back(laguerre_next(l, m, x, v[l], v[l-1]));
-
-

- Formally the arguments are: -

-
-

-
-
n
-

- The degree of the last polynomial calculated. -

-
m
-

- The order of the Associated Polynomial. -

-
x
-

- The abscissa value. -

-
Ln
-

- The value of the polynomial evaluated at degree n. -

-
Lnm1
-

- The value of the polynomial evaluated at degree n-1. -

-
-
-
- - Accuracy -
-

- The following table shows peak errors (in units of epsilon) for various domains - of input arguments. Note that only results for the widest floating point - type on the system are given as narrower types have effectively - zero error. -

-
-

Table 6.35. Error rates for laguerre(n, x)

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Laguerre Polynomials -

-
-

- Max = 3.1e+003ε (Mean = 185ε) -

-
-

- Max = 6.82ε (Mean = 0.408ε)

- (GSL 1.16: Max = 3.1e+03ε (Mean = 185ε)) -

-
-

- Max = 1.39e+04ε (Mean = 828ε)
-
(<tr1/cmath>: Max = 4.2e+03ε (Mean - = 251ε)) -

-
-

- Max = 1.39e+04ε (Mean = 828ε) -

-
-
-
-

Table 6.36. Error rates for laguerre(n, m, x)

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Associated Laguerre Polynomials -

-
-

- Max = 434ε (Mean = 11.1ε) -

-
-

- Max = 0.84ε (Mean = 0.0358ε)

- (GSL 1.16: Max = 434ε (Mean = 10.7ε)) -

-
-

- Max = 167ε (Mean = 6.38ε)

- (<tr1/cmath>: Max = 206ε (Mean = 6.86ε)) -

-
-

- Max = 167ε (Mean = 6.38ε) -

-
-
-

- Note that the worst errors occur when the degree increases, values greater - than ~120 are very unlikely to produce sensible results, especially in the - associated polynomial case when the order is also large. Further the relative - errors are likely to grow arbitrarily large when the function is very close - to a root. -

-
- - Testing -
-

- A mixture of spot tests of values calculated using functions.wolfram.com, - and randomly generated test data are used: the test data was computed using - NTL::RR at 1000-bit - precision. -

-
- - Implementation -
-

- These functions are implemented using the stable three term recurrence relations. - These relations guarantee low absolute error but cannot guarantee low relative - error near one of the roots of the polynomials. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_poly/legendre.html b/boost/libs/math/doc/html/math_toolkit/sf_poly/legendre.html deleted file mode 100644 index 30979640..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_poly/legendre.html +++ /dev/null @@ -1,602 +0,0 @@ - - - -Legendre (and Associated) Polynomials - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/legendre.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type legendre_p(int n, T x);
-
-template <class T, class Policy>
-calculated-result-type legendre_p(int n, T x, const Policy&);
-
-template <class T>
-calculated-result-type legendre_p(int n, int m, T x);
-
-template <class T, class Policy>
-calculated-result-type legendre_p(int n, int m, T x, const Policy&);
-
-template <class T>
-calculated-result-type legendre_q(unsigned n, T x);
-
-template <class T, class Policy>
-calculated-result-type legendre_q(unsigned n, T x, const Policy&);
-
-template <class T1, class T2, class T3>
-calculated-result-type legendre_next(unsigned l, T1 x, T2 Pl, T3 Plm1);
-
-template <class T1, class T2, class T3>
-calculated-result-type legendre_next(unsigned l, unsigned m, T1 x, T2 Pl, T3 Plm1);
-
-
-}} // namespaces
-
-

- The return type of these functions is computed using the result - type calculation rules: note than when there is a single - template argument the result is the same type as that argument or double if the template argument is an integer - type. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Description -
-
template <class T>
-calculated-result-type legendre_p(int l, T x);
-
-template <class T, class Policy>
-calculated-result-type legendre_p(int l, T x, const Policy&);
-
-

- Returns the Legendre Polynomial of the first kind: -

-

- -

-

- Requires -1 <= x <= 1, otherwise returns the result of domain_error. -

-

- Negative orders are handled via the reflection formula: -

-

- P-l-1(x) = Pl(x) -

-

- The following graph illustrates the behaviour of the first few Legendre Polynomials: -

-

- -

-
template <class T>
-calculated-result-type legendre_p(int l, int m, T x);
-
-template <class T, class Policy>
-calculated-result-type legendre_p(int l, int m, T x, const Policy&);
-
-

- Returns the associated Legendre polynomial of the first kind: -

-

- -

-

- Requires -1 <= x <= 1, otherwise returns the result of domain_error. -

-

- Negative values of l and m are - handled via the identity relations: -

-

- -

-
- - - - - -
[Caution]Caution
-

- The definition of the associated Legendre polynomial used here includes - a leading Condon-Shortley phase term of (-1)m. This matches the definition - given by Abramowitz and Stegun (8.6.6) and that used by Mathworld - and Mathematica's - LegendreP function. However, uses in the literature do not always - include this phase term, and strangely the specification for the associated - Legendre function in the C++ TR1 (assoc_legendre) also omits it, in spite - of stating that it uses Abramowitz and Stegun as the final arbiter on these - matters. -

-

- See: -

-

- Weisstein, - Eric W. "Legendre Polynomial." From MathWorld--A Wolfram Web - Resource. -

-

- Abramowitz, M. and Stegun, I. A. (Eds.). "Legendre Functions" - and "Orthogonal Polynomials." Ch. 22 in Chs. 8 and 22 in Handbook - of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, - 9th printing. New York: Dover, pp. 331-339 and 771-802, 1972. -

-
-
template <class T>
-calculated-result-type legendre_q(unsigned n, T x);
-
-template <class T, class Policy>
-calculated-result-type legendre_q(unsigned n, T x, const Policy&);
-
-

- Returns the value of the Legendre polynomial that is the second solution - to the Legendre differential equation, for example: -

-

- -

-

- Requires -1 <= x <= 1, otherwise domain_error - is called. -

-

- The following graph illustrates the first few Legendre functions of the second - kind: -

-

- -

-
template <class T1, class T2, class T3>
-calculated-result-type legendre_next(unsigned l, T1 x, T2 Pl, T3 Plm1);
-
-

- Implements the three term recurrence relation for the Legendre polynomials, - this function can be used to create a sequence of values evaluated at the - same x, and for rising l. This - recurrence relation holds for Legendre Polynomials of both the first and - second kinds. -

-

- -

-

- For example we could produce a vector of the first 10 polynomial values using: -

-
double x = 0.5;  // Abscissa value
-vector<double> v;
-v.push_back(legendre_p(0, x));
-v.push_back(legendre_p(1, x));
-for(unsigned l = 1; l < 10; ++l)
-   v.push_back(legendre_next(l, x, v[l], v[l-1]));
-// Double check values:
-for(unsigned l = 1; l < 10; ++l)
-   assert(v[l] == legendre_p(l, x));
-
-

- Formally the arguments are: -

-
-

-
-
l
-

- The degree of the last polynomial calculated. -

-
x
-

- The abscissa value -

-
Pl
-

- The value of the polynomial evaluated at degree l. -

-
Plm1
-

- The value of the polynomial evaluated at degree l-1. -

-
-
-
template <class T1, class T2, class T3>
-calculated-result-type legendre_next(unsigned l, unsigned m, T1 x, T2 Pl, T3 Plm1);
-
-

- Implements the three term recurrence relation for the Associated Legendre - polynomials, this function can be used to create a sequence of values evaluated - at the same x, and for rising l. -

-

- -

-

- For example we could produce a vector of the first m+10 polynomial values - using: -

-
double x = 0.5;  // Abscissa value
-int m = 10;      // order
-vector<double> v;
-v.push_back(legendre_p(m, m, x));
-v.push_back(legendre_p(1 + m, m, x));
-for(unsigned l = 1; l < 10; ++l)
-   v.push_back(legendre_next(l + 10, m, x, v[l], v[l-1]));
-// Double check values:
-for(unsigned l = 1; l < 10; ++l)
-   assert(v[l] == legendre_p(10 + l, m, x));
-
-

- Formally the arguments are: -

-
-

-
-
l
-

- The degree of the last polynomial calculated. -

-
m
-

- The order of the Associated Polynomial. -

-
x
-

- The abscissa value -

-
Pl
-

- The value of the polynomial evaluated at degree l. -

-
Plm1
-

- The value of the polynomial evaluated at degree l-1. -

-
-
-
- - Accuracy -
-

- The following table shows peak errors (in units of epsilon) for various domains - of input arguments. Note that only results for the widest floating point - type on the system are given as narrower types have effectively - zero error. -

-
-

Table 6.32. Error rates for legendre_p

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Legendre Polynomials: Small Values -

-
-

- Max = 211ε (Mean = 20.4ε) -

-
-

- Max = 0.732ε (Mean = 0.0619ε)
-
(GSL 1.16: Max = 211ε (Mean = 20.4ε)) -

-
-

- Max = 69.2ε (Mean = 9.58ε)

- (<tr1/cmath>: Max = 124ε (Mean = 13.2ε)) -

-
-

- Max = 69.2ε (Mean = 9.58ε) -

-
-

- Legendre Polynomials: Large Values -

-
-

- Max = 300ε (Mean = 33.2ε) -

-
-

- Max = 0.632ε (Mean = 0.0693ε)
-
(GSL 1.16: Max = 300ε (Mean = 33.2ε)) -

-
-

- Max = 699ε (Mean = 59.6ε)

- (<tr1/cmath>: Max = 343ε (Mean = 32.1ε)) -

-
-

- Max = 699ε (Mean = 59.6ε) -

-
-
-
-

Table 6.33. Error rates for legendre_q

-
------- - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Legendre Polynomials: Small Values -

-
-

- Max = 46.4ε (Mean = 7.32ε) -

-
-

- Max = 0.612ε (Mean = 0.0517ε)
-
(GSL 1.16: Max = 46.4ε (Mean = 7.46ε)) -

-
-

- Max = 50.9ε (Mean = 9ε) -

-
-

- Max = 50.9ε (Mean = 8.98ε) -

-
-

- Legendre Polynomials: Large Values -

-
-

- Max = 4.6e+003ε (Mean = 366ε) -

-
-

- Max = 2.49ε (Mean = 0.202ε)

- (GSL 1.16: Max = 4.6e+03ε (Mean = 366ε)) -

-
-

- Max = 5.98e+03ε (Mean = 478ε) -

-
-

- Max = 5.98e+03ε (Mean = 478ε) -

-
-
-
-

Table 6.34. Error rates for legendre_p (associated)

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Associated Legendre Polynomials: Small Values -

-
-

- Max = 121ε (Mean = 7.14ε) -

-
-

- Max = 0.999ε (Mean = 0.05ε)

- (GSL 1.16: Max = 121ε (Mean = 6.75ε) And - other failures.) -

-
-

- Max = 175ε (Mean = 9.88ε)

- (<tr1/cmath>: Max = 175ε (Mean = 9.36ε) - And - other failures.) -

-
-

- Max = 77.7ε (Mean = 5.59ε) -

-
-
-

- Note that the worst errors occur when the order increases, values greater - than ~120 are very unlikely to produce sensible results, especially in the - associated polynomial case when the degree is also large. Further the relative - errors are likely to grow arbitrarily large when the function is very close - to a root. -

-
- - Testing -
-

- A mixture of spot tests of values calculated using functions.wolfram.com, - and randomly generated test data are used: the test data was computed using - NTL::RR at 1000-bit - precision. -

-
- - Implementation -
-

- These functions are implemented using the stable three term recurrence relations. - These relations guarantee low absolute error but cannot guarantee low relative - error near one of the roots of the polynomials. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sf_poly/sph_harm.html b/boost/libs/math/doc/html/math_toolkit/sf_poly/sph_harm.html deleted file mode 100644 index 0bdb78bd..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sf_poly/sph_harm.html +++ /dev/null @@ -1,334 +0,0 @@ - - - -Spherical Harmonics - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/spherical_harmonic.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T1, class T2>
-std::complex<calculated-result-type> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi);
-
-template <class T1, class T2, class Policy>
-std::complex<calculated-result-type> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi, const Policy&);
-
-template <class T1, class T2>
-calculated-result-type spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi, const Policy&);
-
-}} // namespaces
-
-
- - Description -
-

- The return type of these functions is computed using the result - type calculation rules when T1 and T2 are different types. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
template <class T1, class T2>
-std::complex<calculated-result-type> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi);
-
-template <class T1, class T2, class Policy>
-std::complex<calculated-result-type> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi, const Policy&);
-
-

- Returns the value of the Spherical Harmonic Ynm(theta, phi): -

-

- -

-

- The spherical harmonics Ynm(theta, phi) are the angular portion of the solution - to Laplace's equation in spherical coordinates where azimuthal symmetry is - not present. -

-
- - - - - -
[Caution]Caution
-

- Care must be taken in correctly identifying the arguments to this function: - θ   is taken as the polar (colatitudinal) coordinate with θ   in [0, π], and φ   as - the azimuthal (longitudinal) coordinate with φ   in [0,2π). This is the convention - used in Physics, and matches the definition used by Mathematica - in the function SpericalHarmonicY, but is opposite to the usual - mathematical conventions. -

-

- Some other sources include an additional Condon-Shortley phase term of - (-1)m in the definition of this function: note however that our definition - of the associated Legendre polynomial already includes this term. -

-

- This implementation returns zero for m > n -

-

- For θ   outside [0, π] and φ   outside [0, 2π] this implementation follows the convention - used by Mathematica: the function is periodic with period π   in θ   and 2π   in φ. - Please note that this is not the behaviour one would get from a casual - application of the function's definition. Cautious users should keep θ   and - φ   to the range [0, π] and [0, 2π] respectively. -

-

- See: Weisstein, - Eric W. "Spherical Harmonic." From MathWorld--A Wolfram Web Resource. -

-
-
template <class T1, class T2>
-calculated-result-type spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi, const Policy&);
-
-

- Returns the real part of Ynm(theta, phi): -

-

- -

-
template <class T1, class T2>
-calculated-result-type spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi);
-
-template <class T1, class T2, class Policy>
-calculated-result-type spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi, const Policy&);
-
-

- Returns the imaginary part of Ynm(theta, phi): -

-

- -

-
- - Accuracy -
-

- The following table shows peak errors for various domains of input arguments. - Note that only results for the widest floating point type on the system are - given as narrower types have effectively - zero error. Peak errors are the same for both the real and imaginary - parts, as the error is dominated by calculation of the associated Legendre - polynomials: especially near the roots of the associated Legendre function. -

-

- All values are in units of epsilon. -

-
-

Table 6.38. Error rates for spherical_harmonic_r

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Spherical Harmonics -

-
-

- Max = 2.27e+004ε (Mean = 725ε) -

-
-

- Max = 1.58ε (Mean = 0.0707ε) -

-
-

- Max = 2.89e+03ε (Mean = 108ε) -

-
-

- Max = 1.03e+04ε (Mean = 327ε) -

-
-
-
-

Table 6.39. Error rates for spherical_harmonic_i

-
------- - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Spherical Harmonics -

-
-

- Max = 2.27e+004ε (Mean = 725ε) -

-
-

- Max = 1.36ε (Mean = 0.0765ε) -

-
-

- Max = 2.89e+03ε (Mean = 108ε) -

-
-

- Max = 1.03e+04ε (Mean = 327ε) -

-
-
-

- Note that the worst errors occur when the degree increases, values greater - than ~120 are very unlikely to produce sensible results, especially when - the order is also large. Further the relative errors are likely to grow arbitrarily - large when the function is very close to a root. -

-
- - Testing -
-

- A mixture of spot tests of values calculated using functions.wolfram.com, - and randomly generated test data are used: the test data was computed using - NTL::RR at 1000-bit - precision. -

-
- - Implementation -
-

- These functions are implemented fairly naively using the formulae given above. - Some extra care is taken to prevent roundoff error when converting from polar - coordinates (so for example the 1-x2 term used by the - associated Legendre functions is calculated without roundoff error using - x = cos(theta), and 1-x2 = sin2(theta)). - The limiting factor in the error rates for these functions is the need to - calculate values near the roots of the associated Legendre functions. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sign_functions.html b/boost/libs/math/doc/html/math_toolkit/sign_functions.html deleted file mode 100644 index c4f7f44d..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sign_functions.html +++ /dev/null @@ -1,251 +0,0 @@ - - - -Sign Manipulation Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/sign.hpp>
-
-
namespace boost{ namespace math{
-
-template<class T>
-int signbit(T x);
-
-template <class T>
-int sign (const T& z);
-
-template <class T, class U>
-T copysign (const T& x, const U& y);
-
-template <class T>
-calculated-result-type changesign (const T& z);
-
-}} // namespaces
-
-
- - Description -
-
template<class T>
-int signbit(T x);
-
-

- Returns a non-zero value if the sign bit is set in variable x, - otherwise 0. -

-
- - - - - -
[Important]Important

- The return value from this function is zero or not-zero - and not zero or one. -

-
template <class T>
-int sign (const T& z);
-
-

- Returns 1 if x - > 0, - -1 - if x < 0, and 0 - if x is zero. -

-
template <class T, class U>
-calculated-result-type copysign (const T& x, const U& y);
-
-

- Sets the sign of x to be the same as the sign of y. -

-

- See C99 - 7.12.11.1 The copysign functions for more detail. -

-
template <class T>
-T changesign (const T& z);
-
-

- Returns a floating-point number with a binary representation where the signbit - is the opposite of the sign bit in x, and where the other - bits are the same as in x. -

-

- This function is widely available, but not specified in any standards. -

-

- Rationale: Not specified by TR1, but changesign(x) - is both easier to read and more efficient than -

-
copysign(x, signbit(x) ? 1.0 : -1.0);
-
-

- For finite values, this function has the same effect as simple negation, the - assignment z = -z, but for nonfinite values, infinities - and NaNs, the changesign(x) function - may be the only portable way to ensure that the sign bit is changed. -

-
- - Sign - bits -
-

- One of the bits in the binary representation of a floating-point number gives - the sign, and the remaining bits give the absolute value. That bit is known - as the sign bit. The sign bit is set = 1 for negative numbers, and is not set - = 0 for positive numbers. (This is true for all binary representations of floating-point - numbers that are used by modern microprocessors.) -

-

- C++ - TR1 specifies copysign - functions and function templates for accessing the sign bit. -

-

- For user-defined types (UDT), the sign may be stored in some other way. They - may also not provide infinity or NaNs. To use these functions with a UDT, it - may be necessary to explicitly specialize them for UDT type T. -

-
- - Examples -
-
signbit(3.5) is zero (or false)
-signbit(-7.1) is 1 (or true)
-copysign(4.2, 7.9) is 4.2
-copysign(3.5 -1.4) is -3.5
-copysign(-4.2, 1.0) is 4.2
-copysign(-8.6, -3.3) is -8.6
-changesign(6.9) is -6.9
-changesign(-1.8) is 1.8
-
-
- - Portability -
-

- The library supports the following binary floating-point formats: -

-
    -
  • - IEEE 754 single precision -
  • -
  • - IEEE 754 double precision -
  • -
  • - IEEE 754 extended double precision with 15 exponent bits -
  • -
  • - Intel extended double precision -
  • -
  • - PowerPC extended double precision -
  • -
  • - Motorola 68K extended double precision -
  • -
-

- The library does not support the VAX floating-point formats. (These are available - on VMS, but the default on VMS is the IEEE 754 floating-point format.) -

-

- The main portability issues are: -

-
    -
  • - Unsupported floating-point formats. -
  • -
  • - The library depends on the header boost/detail/endian.hpp - to detemine endianness. -
  • -
  • - Code such as #if defined(__ia64) || defined(__ia64__) || defined(_M_IA64) is used to determine the processor type. -
  • -
-

- The library has passed all tests on the following platforms: -

-
    -
  • - Win32 / MSVC 7.1 / 10.0 / x86 32 and 64-bit, and later Win32 -
  • -
  • - Win32 / Intel C++ 7.1, 8.1, 9.1 / x86 -
  • -
  • - Mac OS X / GCC 3.3, 4.0 / ppc -
  • -
  • - Linux / Intel C++ 9.1 / x86, ia64 -
  • -
  • - Linux / GCC 3.3 / x86, x64, ia64, ppc, hppa, mips, m68k -
  • -
  • - Linux / GCC 3.4 / x64 -
  • -
  • - HP-UX / aCC, GCC 4.1 / ia64 -
  • -
  • - HP-UX / aCC / hppa -
  • -
  • - Tru64 / Compaq C++ 7.1 / alpha -
  • -
  • - VMS / HP C++ 7.1 / alpha (in IEEE floating-point mode) -
  • -
  • - VMS / HP C++ 7.2 / ia64 (in IEEE floating-point mode) -
  • -
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sinc.html b/boost/libs/math/doc/html/math_toolkit/sinc.html deleted file mode 100644 index 3ee1b373..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sinc.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Sinus Cardinal and Hyperbolic Sinus Cardinal Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sinc/sinc_overview.html b/boost/libs/math/doc/html/math_toolkit/sinc/sinc_overview.html deleted file mode 100644 index 81b86541..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sinc/sinc_overview.html +++ /dev/null @@ -1,83 +0,0 @@ - - - -Sinus Cardinal and Hyperbolic Sinus Cardinal Functions Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The Sinus Cardinal - family of functions (indexed by the family of indices a - > 0) is defined by -

-

- -

-

- it sees heavy use in signal processing tasks. -

-

- By analogy, the Hyperbolic - Sinus Cardinal family of functions (also indexed by the family of - indices a > 0) is defined by -

-

- -

-

- These two families of functions are composed of entire functions. -

-

- These functions (sinc_pi - and sinhc_pi) are needed - by our - implementation of quaternions - and octonions. -

-

- Sinus Cardinal of index pi (purple) and - Hyperbolic Sinus Cardinal of index pi (red) on R -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sinc/sinc_pi.html b/boost/libs/math/doc/html/math_toolkit/sinc/sinc_pi.html deleted file mode 100644 index bea41792..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sinc/sinc_pi.html +++ /dev/null @@ -1,79 +0,0 @@ - - - -sinc_pi - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/sinc.hpp>
-
-
template<class T>
-calculated-result-type sinc_pi(const T x);
-
-template<class T, class Policy>
-calculated-result-type sinc_pi(const T x, const Policy&);
-
-template<class T, template<typename> class U>
-U<T> sinc_pi(const U<T> x);
-
-template<class T, template<typename> class U, class Policy>
-U<T> sinc_pi(const U<T> x, const Policy&);
-
-

- Computes the Sinus Cardinal - of x: -

-
sinc_pi(x) = sin(x) / x
-
-

- The second form is for complex numbers, quaternions, octonions etc. Taylor - series are used at the origin to ensure accuracy. -

-

- -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/sinc/sinhc_pi.html b/boost/libs/math/doc/html/math_toolkit/sinc/sinhc_pi.html deleted file mode 100644 index 803f6235..00000000 --- a/boost/libs/math/doc/html/math_toolkit/sinc/sinhc_pi.html +++ /dev/null @@ -1,83 +0,0 @@ - - - -sinhc_pi - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
#include <boost/math/special_functions/sinhc.hpp>
-
-
template<class T>
-calculated-result-type sinhc_pi(const T x);
-
-template<class T, class Policy>
-calculated-result-type sinhc_pi(const T x, const Policy&);
-
-template<typename T, template<typename> class U>
-U<T> sinhc_pi(const U<T> x);
-
-template<class T, template<typename> class U, class Policy>
-U<T> sinhc_pi(const U<T> x, const Policy&);
-
-

- Computes http://mathworld.wolfram.com/SinhcFunction.html the - Hyperbolic Sinus Cardinal of x: -

-
sinhc_pi(x) = sinh(x) / x
-
-

- The second form is for complex numbers, quaternions, octonions etc. Taylor - series are used at the origin to ensure accuracy. -

-

- The return type of the first form is computed using the result - type calculation rules when T is an integer type. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-

- -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/spec.html b/boost/libs/math/doc/html/math_toolkit/spec.html deleted file mode 100644 index 20a22313..00000000 --- a/boost/libs/math/doc/html/math_toolkit/spec.html +++ /dev/null @@ -1,192 +0,0 @@ - - - -Quaternion Specializations - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
namespace boost{ namespace math{
-
-template<>
-class quaternion<float>
-{
-public:
-   typedef float value_type;
-
-   explicit quaternion(float const & requested_a = 0.0f, float const & requested_b = 0.0f, float const & requested_c = 0.0f, float const & requested_d = 0.0f);
-   explicit quaternion(::std::complex<float> const & z0, ::std::complex<float> const & z1 = ::std::complex<float>());
-   explicit quaternion(quaternion<double> const & a_recopier);
-   explicit quaternion(quaternion<long double> const & a_recopier);
-
-   float                  real() const;
-   quaternion<float>      unreal() const;
-   float                  R_component_1() const;
-   float                  R_component_2() const;
-   float                  R_component_3() const;
-   float                  R_component_4() const;
-   ::std::complex<float>  C_component_1() const;
-   ::std::complex<float>  C_component_2() const;
-
-   quaternion<float>&     operator = (quaternion<float> const  & a_affecter);
-   template<typename X>
-   quaternion<float>&     operator = (quaternion<X> const  & a_affecter);
-   quaternion<float>&     operator = (float const  & a_affecter);
-   quaternion<float>&     operator = (::std::complex<float> const & a_affecter);
-
-   quaternion<float>&     operator += (float const & rhs);
-   quaternion<float>&     operator += (::std::complex<float> const & rhs);
-   template<typename X>
-   quaternion<float>&     operator += (quaternion<X> const & rhs);
-
-   quaternion<float>&     operator -= (float const & rhs);
-   quaternion<float>&     operator -= (::std::complex<float> const & rhs);
-   template<typename X>
-   quaternion<float>&     operator -= (quaternion<X> const & rhs);
-
-   quaternion<float>&     operator *= (float const & rhs);
-   quaternion<float>&     operator *= (::std::complex<float> const & rhs);
-   template<typename X>
-   quaternion<float>&     operator *= (quaternion<X> const & rhs);
-
-   quaternion<float>&     operator /= (float const & rhs);
-   quaternion<float>&     operator /= (::std::complex<float> const & rhs);
-   template<typename X>
-   quaternion<float>&     operator /= (quaternion<X> const & rhs);
-};
-
-
template<>
-class quaternion<double>
-{
-public:
-   typedef double value_type;
-
-   explicit quaternion(double const & requested_a = 0.0, double const & requested_b = 0.0, double const & requested_c = 0.0, double const & requested_d = 0.0);
-   explicit quaternion(::std::complex<double> const & z0, ::std::complex<double> const & z1 = ::std::complex<double>());
-   explicit quaternion(quaternion<float> const & a_recopier);
-   explicit quaternion(quaternion<long double> const & a_recopier);
-
-   double                  real() const;
-   quaternion<double>      unreal() const;
-   double                  R_component_1() const;
-   double                  R_component_2() const;
-   double                  R_component_3() const;
-   double                  R_component_4() const;
-   ::std::complex<double>  C_component_1() const;
-   ::std::complex<double>  C_component_2() const;
-
-   quaternion<double>&     operator = (quaternion<double> const  & a_affecter);
-   template<typename X>
-   quaternion<double>&     operator = (quaternion<X> const  & a_affecter);
-   quaternion<double>&     operator = (double const  & a_affecter);
-   quaternion<double>&     operator = (::std::complex<double> const & a_affecter);
-
-   quaternion<double>&     operator += (double const & rhs);
-   quaternion<double>&     operator += (::std::complex<double> const & rhs);
-   template<typename X>
-   quaternion<double>&     operator += (quaternion<X> const & rhs);
-
-   quaternion<double>&     operator -= (double const & rhs);
-   quaternion<double>&     operator -= (::std::complex<double> const & rhs);
-   template<typename X>
-   quaternion<double>&     operator -= (quaternion<X> const & rhs);
-
-   quaternion<double>&     operator *= (double const & rhs);
-   quaternion<double>&     operator *= (::std::complex<double> const & rhs);
-   template<typename X>
-   quaternion<double>&     operator *= (quaternion<X> const & rhs);
-
-   quaternion<double>&     operator /= (double const & rhs);
-   quaternion<double>&     operator /= (::std::complex<double> const & rhs);
-   template<typename X>
-   quaternion<double>&     operator /= (quaternion<X> const & rhs);
-};
-
-
template<>
-class quaternion<long double>
-{
-public:
-   typedef long double value_type;
-
-   explicit quaternion(long double const & requested_a = 0.0L, long double const & requested_b = 0.0L, long double const & requested_c = 0.0L, long double const & requested_d = 0.0L);
-   explicit quaternion(::std::complex<long double> const & z0, ::std::complex<long double> const & z1 = ::std::complex<long double>());
-   explicit quaternion(quaternion<float> const & a_recopier);
-   explicit quaternion(quaternion<double> const & a_recopier);
-
-   long double                  real() const;
-   quaternion<long double>      unreal() const;
-   long double                  R_component_1() const;
-   long double                  R_component_2() const;
-   long double                  R_component_3() const;
-   long double                  R_component_4() const;
-   ::std::complex<long double>  C_component_1() const;
-   ::std::complex<long double>  C_component_2() const;
-
-   quaternion<long double>&     operator = (quaternion<long double> const  & a_affecter);
-   template<typename X>
-   quaternion<long double>&     operator = (quaternion<X> const  & a_affecter);
-   quaternion<long double>&     operator = (long double const  & a_affecter);
-   quaternion<long double>&     operator = (::std::complex<long double> const & a_affecter);
-
-   quaternion<long double>&     operator += (long double const & rhs);
-   quaternion<long double>&     operator += (::std::complex<long double> const & rhs);
-   template<typename X>
-   quaternion<long double>&     operator += (quaternion<X> const & rhs);
-
-   quaternion<long double>&     operator -= (long double const & rhs);
-   quaternion<long double>&     operator -= (::std::complex<long double> const & rhs);
-   template<typename X>
-   quaternion<long double>&     operator -= (quaternion<X> const & rhs);
-
-   quaternion<long double>&     operator *= (long double const & rhs);
-   quaternion<long double>&     operator *= (::std::complex<long double> const & rhs);
-   template<typename X>
-   quaternion<long double>&     operator *= (quaternion<X> const & rhs);
-
-   quaternion<long double>&     operator /= (long double const & rhs);
-   quaternion<long double>&     operator /= (::std::complex<long double> const & rhs);
-   template<typename X>
-   quaternion<long double>&     operator /= (quaternion<X> const & rhs);
-};
-
-} // namespace math
-} // namespace boost
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/special_tut.html b/boost/libs/math/doc/html/math_toolkit/special_tut.html deleted file mode 100644 index 6ab55af0..00000000 --- a/boost/libs/math/doc/html/math_toolkit/special_tut.html +++ /dev/null @@ -1,51 +0,0 @@ - - - -Tutorial: How to Write a New Special Function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/special_tut/special_tut_impl.html b/boost/libs/math/doc/html/math_toolkit/special_tut/special_tut_impl.html deleted file mode 100644 index 18189d1a..00000000 --- a/boost/libs/math/doc/html/math_toolkit/special_tut/special_tut_impl.html +++ /dev/null @@ -1,390 +0,0 @@ - - - -Implementation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- In this section, we'll provide a "recipe" for adding a new special - function to this library to make life easier for future authors wishing to - contribute. We'll assume the function returns a single floating-point result, - and takes two floating-point arguments. For the sake of exposition we'll - give the function the name my_special. -

-

- Normally, the implementation of such a function is split into two layers - - a public user layer, and an internal implementation layer that does the - actual work. The implementation layer is declared inside a detail namespace and has a simple signature: -

-
namespace boost { namespace math { namespace detail {
-
-template <class T, class Policy>
-T my_special_imp(const T& a, const T&b, const Policy& pol)
-{
-   /* Implementation goes here */
-}
-
-}}} // namespaces
-
-

- We'll come back to what can go inside the implementation later, but first - lets look at the user layer. This consists of two overloads of the function, - with and without a Policy argument: -

-
namespace boost{ namespace math{
-
-template <class T, class U>
-typename tools::promote_args<T, U>::type my_special(const T& a, const U& b);
-
-template <class T, class U, class Policy>
-typename tools::promote_args<T, U>::type my_special(const T& a, const U& b, const Policy& pol);
-
-}} // namespaces
-
-

- Note how each argument has a different template type - this allows for mixed - type arguments - the return type is computed from a traits class and is the - "common type" of all the arguments after any integer arguments - have been promoted to type double. -

-

- The implementation of the non-policy overload is trivial: -

-
namespace boost{ namespace math{
-
-template <class T, class U>
-inline typename tools::promote_args<T, U>::type my_special(const T& a, const U& b)
-{
-   // Simply forward with a default policy:
-   return my_special(a, b, policies::policy<>();
-}
-
-}} // namespaces
-
-

- The implementation of the other overload is somewhat more complex, as there's - some meta-programming to do, but from a runtime perspective is still a one-line - forwarding function. Here it is with comments explaining what each line does: -

-
namespace boost{ namespace math{
-
-template <class T, class U, class Policy>
-inline typename tools::promote_args<T, U>::type my_special(const T& a, const U& b, const Policy& pol)
-{
-   //
-   // We've found some standard library functions to misbehave if any FPU exception flags
-   // are set prior to their call, this code will clear those flags, then reset them
-   // on exit:
-   //
-   BOOST_FPU_EXCEPTION_GUARD
-   //
-   // The type of the result - the common type of T and U after
-   // any integer types have been promoted to double:
-   //
-   typedef typename tools::promote_args<T, U>::type result_type;
-   //
-   // The type used for the calculation.  This may be a wider type than
-   // the result in order to ensure full precision:
-   //
-   typedef typename policies::evaluation<result_type, Policy>::type value_type;
-   //
-   // The type of the policy to forward to the actual implementation.
-   // We disable promotion of float and double as that's [possibly]
-   // happened already in the line above.  Also reset to the default
-   // any policies we don't use (reduces code bloat if we're called
-   // multiple times with differing policies we don't actually use).
-   // Also normalise the type, again to reduce code bloat in case we're
-   // called multiple times with functionally identical policies that happen
-   // to be different types.
-   //
-   typedef typename policies::normalise<
-      Policy,
-      policies::promote_float<false>,
-      policies::promote_double<false>,
-      policies::discrete_quantile<>,
-      policies::assert_undefined<> >::type forwarding_policy;
-   //
-   // Whew.  Now we can make the actual call to the implementation.
-   // Arguments are explicitly cast to the evaluation type, and the result
-   // passed through checked_narrowing_cast which handles things like overflow
-   // according to the policy passed:
-   //
-   return policies::checked_narrowing_cast<result_type, forwarding_policy>(
-         detail::my_special_imp(
-               static_cast<value_type>(a),
-               static_cast<value_type>(x),
-               forwarding_policy()),
-         "boost::math::my_special<%1%>(%1%, %1%)");
-}
-
-}} // namespaces
-
-

- We're now almost there, we just need to flesh out the details of the implementation - layer: -

-
namespace boost { namespace math { namespace detail {
-
-template <class T, class Policy>
-T my_special_imp(const T& a, const T&b, const Policy& pol)
-{
-   /* Implementation goes here */
-}
-
-}}} // namespaces
-
-

- The following guidelines indicate what (other than basic arithmetic) can - go in the implementation: -

-
    -
  • - Error conditions (for example bad arguments) should be handled by calling - one of the policy - based error handlers. -
  • -
  • - Calls to standard library functions should be made unqualified (this - allows argument dependent lookup to find standard library functions for - user-defined floating point types such as those from Boost.Multiprecision). - In addition, the macro BOOST_MATH_STD_USING - should appear at the start of the function (note no semi-colon afterwards!) - so that all the math functions in namespace - std are visible in the current - scope. -
  • -
  • - Calls to other special functions should be made as fully qualified calls, - and include the policy parameter as the last argument, for example boost::math::tgamma(a, pol). -
  • -
  • - Where possible, evaluation of series, continued fractions, polynomials, - or root finding should use one of the boiler-plate - functions. In any case, after any iterative method, you should - verify that the number of iterations did not exceed the maximum specified - in the Policy type, and if it did terminate - as a result of exceeding the maximum, then the appropriate error handler - should be called (see existing code for examples). -
  • -
  • - Numeric constants such as π etc should be obtained via a call to the appropriate function, for example: - constants::pi<T>(). -
  • -
  • - Where tables of coefficients are used (for example for rational approximations), - care should be taken to ensure these are initialized at program startup - to ensure thread safety when using user-defined number types. See for - example the use of erf_initializer - in erf.hpp. -
  • -
-

- Here are some other useful internal functions: -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- function -

-
-

- Meaning -

-
-

- policies::digits<T, - Policy>() -

-
-

- Returns number of binary digits in T (possible overridden by the - policy). -

-
-

- policies::get_max_series_iterations<Policy>() -

-
-

- Maximum number of iterations for series evaluation. -

-
-

- policies::get_max_root_iterations<Policy>() -

-
-

- Maximum number of iterations for root finding. -

-
-

- polices::get_epsilon<T, - Policy>() -

-
-

- Epsilon for type T, possibly overridden by the Policy. -

-
-

- tools::digits<T>() -

-
-

- Returns the number of binary digits in T. -

-
-

- tools::max_value<T>() -

-
-

- Equivalent to std::numeric_limits<T>::max() -

-
-

- tools::min_value<T>() -

-
-

- Equivalent to std::numeric_limits<T>::min() -

-
-

- tools::log_max_value<T>() -

-
-

- Equivalent to the natural logarithm of std::numeric_limits<T>::max() -

-
-

- tools::log_min_value<T>() -

-
-

- Equivalent to the natural logarithm of std::numeric_limits<T>::min() -

-
-

- tools::epsilon<T>() -

-
-

- Equivalent to std::numeric_limits<T>::epsilon(). -

-
-

- tools::root_epsilon<T>() -

-
-

- Equivalent to the square root of std::numeric_limits<T>::epsilon(). -

-
-

- tools::forth_root_epsilon<T>() -

-
-

- Equivalent to the forth root of std::numeric_limits<T>::epsilon(). -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/special_tut/special_tut_test.html b/boost/libs/math/doc/html/math_toolkit/special_tut/special_tut_test.html deleted file mode 100644 index f7897038..00000000 --- a/boost/libs/math/doc/html/math_toolkit/special_tut/special_tut_test.html +++ /dev/null @@ -1,525 +0,0 @@ - - - -Testing - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- We work under the assumption that untested code doesn't work, so some tests - for your new special function are in order, we'll divide these up in to 3 - main categories: -

-
- - Spot Tests -
-

- Spot tests consist of checking that the expected exception is generated when - the inputs are in error (or otherwise generate undefined values), and checking - any special values. We can check for expected exceptions with BOOST_CHECK_THROW, so for example if it's - a domain error for the last parameter to be outside the range [0,1] then we - might have: -

-
BOOST_CHECK_THROW(my_special(0, -0.1), std::domain_error);
-BOOST_CHECK_THROW(my_special(0, 1.1), std::domain_error);
-
-

- When the function has known exact values (typically integer values) we can - use BOOST_CHECK_EQUAL: -

-
BOOST_CHECK_EQUAL(my_special(1.0, 0.0), 0);
-BOOST_CHECK_EQUAL(my_special(1.0, 1.0), 1);
-
-

- When the function has known values which are not exact (from a floating point - perspective) then we can use BOOST_CHECK_CLOSE_FRACTION: -

-
// Assumes 4 epsilon is as close as we can get to a true value of 2Pi:
-BOOST_CHECK_CLOSE_FRACTION(my_special(0.5, 0.5), 2 * constants::pi<double>(), std::numeric_limits<double>::epsilon() * 4);
-
-
- - Independent - Test Values -
-

- If the function is implemented by some other known good source (for example - Mathematica or it's online versions functions.wolfram.com - or www.wolframalpha.com - then it's a good idea to sanity check our implementation by having at least - one independendly generated value for each code branch our implementation - may take. To slot these in nicely with our testing framework it's best to - tabulate these like this: -

-
// function values calculated on http://functions.wolfram.com/
-static const boost::array<boost::array<T, 3>, 10> my_special_data = {{
-    {{ SC_(0), SC_(0), SC_(1) }},
-    {{ SC_(0), SC_(1), SC_(1.26606587775200833559824462521471753760767031135496220680814) }},
-    /* More values here... */
-}};
-
-

- We'll see how to use this table and the meaning of the SC_ - macro later. One important point is to make sure that the input values have - exact binary representations: so choose values such as 1.5, 1.25, 1.125 etc. - This ensures that if my_special - is unusually sensitive in one area, that we don't get apparently large errors - just because the inputs are 0.5 ulp in error. -

-
- - Random - Test Values -
-

- We can generate a large number of test values to check both for future regressions, - and for accumulated rounding or cancellation error in our implementation. - Ideally we would use an independent implementation for this (for example - my_special may be defined in directly terms of other special functions but - not implemented that way for performance or accuracy reasons). Alternatively - we may use our own implementation directly, but with any special cases (asymptotic - expansions etc) disabled. We have a set of tools - to generate test data directly, here's a typical example: -

-
#include <boost/multiprecision/cpp_dec_float.hpp>
-#include <boost/math/tools/test_data.hpp>
-#include <boost/test/included/prg_exec_monitor.hpp>
-#include <fstream>
-
-using namespace boost::math::tools;
-using namespace boost::math;
-using namespace std;
-using namespace boost::multiprecision;
-
-template <class T>
-T my_special(T a, T b)
-{
-   // Implementation of my_special here...
-   return a + b;
-}
-
-int cpp_main(int argc, char*argv [])
-{
-   //
-   // We'll use so many digits of precision that any
-   // calculation errors will still leave us with
-   // 40-50 good digits.  We'll only run this program
-   // once so it doesn't matter too much how long this takes!
-   //
-   typedef number<cpp_dec_float<500> > bignum;
-
-   parameter_info<bignum> arg1, arg2;
-   test_data<bignum> data;
-
-   bool cont;
-   std::string line;
-
-   if(argc < 1)
-      return 1;
-
-   do{
-      //
-      // User interface which prompts for 
-      // range of input parameters:
-      //
-      if(0 == get_user_parameter_info(arg1, "a"))
-         return 1;
-      if(0 == get_user_parameter_info(arg2, "b"))
-         return 1;
-
-      //
-      // Get a pointer to the function and call
-      // test_data::insert to actually generate
-      // the values.
-      //
-      bignum (*fp)(bignum, bignum) = &my_special;
-      data.insert(fp, arg2, arg1);
-
-      std::cout << "Any more data [y/n]?";
-      std::getline(std::cin, line);
-      boost::algorithm::trim(line);
-      cont = (line == "y");
-   }while(cont);
-   //
-   // Just need to write the results to a file:
-   //
-   std::cout << "Enter name of test data file [default=my_special.ipp]";
-   std::getline(std::cin, line);
-   boost::algorithm::trim(line);
-   if(line == "")
-      line = "my_special.ipp";
-   std::ofstream ofs(line.c_str());
-   line.erase(line.find('.'));
-   ofs << std::scientific << std::setprecision(50);
-   write_code(ofs, data, line.c_str());
-
-   return 0;
-}
-
-

- Typically several sets of data will be generated this way, including random - values in some "normal" range, extreme values (very large or very - small), and values close to any "interesting" behaviour of the - function (singularities etc). -

-
- - The - Test File Header -
-

- We split the actual test file into 2 distinct parts: a header that contains - the testing code as a series of function templates, and the actual .cpp test - driver that decides which types are tested, and sets the "expected" - error rates for those types. It's done this way because: -

-
    -
  • - We want to test with both built in floating point types, and with multiprecision - types. However, both compile and runtimes with the latter can be too - long for the folks who run the tests to realistically cope with, so it - makes sense to split the test into (at least) 2 parts. -
  • -
  • - The definition of the SC_ macro used in our tables of data may differ - depending on what type we're testing (see below). Again this is largely - a matter of managing compile times as large tables of user-defined-types - can take a crazy amount of time to compile with some compilers. -
  • -
-

- The test header contains 2 functions: -

-
template <class Real, class T>
-void do_test(const T& data, const char* type_name, const char* test_name);
-
-template <class T>
-void test(T, const char* type_name);
-
-

- Before implementing those, we'll include the headers we'll need, and provide - a default definition for the SC_ macro: -

-
// A couple of Boost.Test headers in case we need any BOOST_CHECK_* macros:
-#include <boost/test/unit_test.hpp>
-#include <boost/test/floating_point_comparison.hpp>
-// Our function to test:
-#include <boost/math/special_functions/my_special.hpp>
-// We need boost::array for our test data, plus a few headers from
-// libs/math/test that contain our testing machinary:
-#include <boost/array.hpp>
-#include "functor.hpp"
-#include "handle_test_result.hpp"
-#include "table_type.hpp"
-
-#ifndef SC_
-#define SC_(x) static_cast<typename table_type<T>::type>(BOOST_JOIN(x, L))
-#endif
-
-

- The easiest function to implement is the "test" function which - is what we'll be calling from the test-driver program. It simply includes - the files containing the tabular test data and calls do_test - function for each table, along with a description of what's being tested: -

-
template <class T>
-void test(T, const char* type_name)
-{
-   //
-   // The actual test data is rather verbose, so it's in a separate file
-   //
-   // The contents are as follows, each row of data contains
-   // three items, input value a, input value b and my_special(a, b):
-   //
-#  include "my_special_1.ipp"
-
-   do_test<T>(my_special_1, name, "MySpecial Function: Mathematica Values");
-
-#  include "my_special_2.ipp"
-
-   do_test<T>(my_special_2, name, "MySpecial Function: Random Values");
-
-#  include "my_special_3.ipp"
-
-   do_test<T>(my_special_3, name, "MySpecial Function: Very Small Values");
-}
-
-

- The function do_test takes - each table of data and calculates values for each row of data, along with - statistics for max and mean error etc, most of this is handled by some boilerplate - code: -

-
template <class Real, class T>
-void do_test(const T& data, const char* type_name, const char* test_name)
-{
-   // Get the type of each row and each element in the rows:
-   typedef typename T::value_type row_type;
-   typedef Real                   value_type;
-
-   // Get a pointer to our function, we have to use a workaround here
-   // as some compilers require the template types to be explicitly
-   // specified, while others don't much like it if it is!
-   typedef value_type (*pg)(value_type, value_type);
-#if defined(BOOST_MATH_NO_DEDUCED_FUNCTION_POINTERS)
-   pg funcp = boost::math::my_special<value_type, value_type>;
-#else
-   pg funcp = boost::math::my_special;
-#endif
-
-   // Somewhere to hold our results:
-   boost::math::tools::test_result<value_type> result;
-   // And some pretty printing:
-   std::cout << "Testing " << test_name << " with type " << type_name
-      << "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
-
-   //
-   // Test my_special against data:
-   //
-   result = boost::math::tools::test_hetero<Real>(
-      /* First argument is the table */
-      data,
-      /* Next comes our function pointer, plus the indexes of it's arguments in the table */
-      bind_func<Real>(funcp, 0, 1),
-      /* Then the index of the result in the table - potentially we can test several
-      related functions this way, each having the same input arguments, and different
-      output values in different indexes in the table */
-      extract_result<Real>(2));
-   //
-   // Finish off with some boilerplate to check the results were within the expected errors,
-   // and pretty print the results:
-   //
-   handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::my_special", test_name);
-}
-
-

- Now we just need to write the test driver program, at it's most basic it - looks something like this: -

-
#include <boost/math/special_functions/math_fwd.hpp>
-#include <boost/math/tools/test.hpp>
-#include <boost/math/tools/stats.hpp>
-#include <boost/type_traits.hpp>
-#include <boost/array.hpp>
-#include "functor.hpp"
-
-#include "handle_test_result.hpp"
-#include "test_my_special.hpp"
-
-BOOST_AUTO_TEST_CASE( test_main )
-{
-   //
-   // Test each floating point type, plus real_concept.
-   // We specify the name of each type by hand as typeid(T).name()
-   // often gives an unreadable mangled name.
-   //
-   test(0.1F, "float");
-   test(0.1, "double");
-   //
-   // Testing of long double and real_concept is protected
-   // by some logic to disable these for unsupported
-   // or problem compilers.
-   //
-#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
-   test(0.1L, "long double");
-#ifndef BOOST_MATH_NO_REAL_CONCEPT_TESTS
-#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
-   test(boost::math::concepts::real_concept(0.1), "real_concept");
-#endif
-#endif
-#else
-   std::cout << "<note>The long double tests have been disabled on this platform "
-      "either because the long double overloads of the usual math functions are "
-      "not available at all, or because they are too inaccurate for these tests "
-      "to pass.</note>" << std::cout;
-#endif
-}
-
-

- That's almost all there is too it - except that if the above program is run - it's very likely that all the tests will fail as the default maximum allowable - error is 1 epsilon. So we'll define a function (don't forget to call it from - the start of the test_main - above) to up the limits to something sensible, based both on the function - we're calling and on the particular tests plus the platform and compiler: -

-
void expected_results()
-{
-   //
-   // Define the max and mean errors expected for
-   // various compilers and platforms.
-   //
-   const char* largest_type;
-#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
-   if(boost::math::policies::digits<double, boost::math::policies::policy<> >() == boost::math::policies::digits<long double, boost::math::policies::policy<> >())
-   {
-      largest_type = "(long\\s+)?double|real_concept";
-   }
-   else
-   {
-      largest_type = "long double|real_concept";
-   }
-#else
-   largest_type = "(long\\s+)?double";
-#endif
-   //
-   // We call add_expected_result for each error rate we wish to adjust, these tell
-   // handle_test_result what level of error is acceptable.  We can have as many calls
-   // to add_expected_result as we need, each one establishes a rule for acceptable error
-   // with rules set first given preference.
-   //
-   add_expected_result(
-      /* First argument is a regular expression to match against the name of the compiler
-         set in BOOST_COMPILER */
-      ".*",
-      /* Second argument is a regular expression to match against the name of the
-         C++ standard library as set in BOOST_STDLIB */
-      ".*",
-      /* Third argument is a regular expression to match against the name of the
-         platform as set in BOOST_PLATFORM */
-      ".*",
-      /* Forth argument is the name of the type being tested, normally we will
-         only need to up the acceptable error rate for the widest floating
-         point type being tested */
-      largest_real,
-      /* Fifth argument is a regular expression to match against
-         the name of the group of data being tested */
-      "MySpecial Function:.*Small.*",
-      /* Sixth argument is a regular expression to match against the name
-         of the function being tested */
-      "boost::math::my_special",
-      /* Seventh argument is the maximum allowable error expressed in units
-         of machine epsilon passed as a long integer value */
-      50,
-      /* Eighth argument is the maximum allowable mean error expressed in units
-         of machine epsilon passed as a long integer value */
-      20);
-}
-
-
- - Testing - Multiprecision Types -
-

- Testing of multiprecision types is handled by the test drivers in libs/multiprecision/test/math, - please refer to these for examples. Note that these tests are run only occationally - as they take a lot of CPU cycles to build and run. -

-
- - Improving - Compile Times -
-

- As noted above, these test programs can take a while to build as we're instantiating - a lot of templates for several different types, and our test runners are - already stretched to the limit, and probably using outdated "spare" - hardware. There are two things we can do to speed things up: -

-
    -
  • - Use a precompiled header. -
  • -
  • - Use separate compilation of our special function templates. -
  • -
-

- We can make these changes by changing the list of includes from: -

-
#include <boost/math/special_functions/math_fwd.hpp>
-#include <boost/math/tools/test.hpp>
-#include <boost/math/tools/stats.hpp>
-#include <boost/type_traits.hpp>
-#include <boost/array.hpp>
-#include "functor.hpp"
-
-#include "handle_test_result.hpp"
-
-

- To just: -

-
#include <pch_light.hpp>
-
-

- And changing -

-
#include <boost/math/special_functions/my_special.hpp>
-
-

- To: -

-
#include <boost/math/special_functions/math_fwd.hpp>
-
-

- The Jamfile target that builds the test program will need the targets -

-
test_instances//test_instances pch_light
-
-

- adding to it's list of source dependencies (see the Jamfile for examples). -

-

- Finally the project in libs/math/test/test_instances will need modifying - to instantiate function my_special. -

-

- These changes should be made last, when my_special - is stable and the code is in Trunk. -

-
- - Concept - Checks -
-

- Our concept checks verify that your function's implementation makes no assumptions - that aren't required by our Real - number conceptual requirements. They also check for various common - bugs and programming traps that we've fallen into over time. To add your - function to these tests, edit libs/math/test/compile_test/instantiate.hpp - to add calls to your function: there are 7 calls to each function, each with - a different purpose. Search for something like "ibeta" or "gamm_p" - and follow their examples. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/specified_typedefs.html b/boost/libs/math/doc/html/math_toolkit/specified_typedefs.html deleted file mode 100644 index 42194848..00000000 --- a/boost/libs/math/doc/html/math_toolkit/specified_typedefs.html +++ /dev/null @@ -1,108 +0,0 @@ - - - -Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The header <boost/cstdfloat.hpp> - provides optional standardized floating-point - typedefs having specified - widths. These are useful for writing portable code because they - should behave identically on all platforms. These typedefs - are the floating-point analog of specified-width integers in <cstdint> and stdint.h. -

-

- The typedefs are based on N3626 - proposed for a new C++14 standard header <cstdfloat> - and N1703 - proposed for a new C language standard header <stdfloat.h>. -

-

- All typedefs are in namespace boost - (would be in namespace std - if eventually standardized). -

-

- The typedefs include float16_t, float32_t, float64_t, float80_t, float128_t, their corresponding least and - fast types, and the corresponding maximum-width type. The typedefs - are based on underlying built-in types such as float, - double, or long - double, or the proposed N2016 - short float type, or based on other compiler-specific non-standardized - types such as __float128. The - underlying types of these typedefs - must conform with the corresponding specifications of binary16, binary32, binary64, - and binary128 in IEEE_floating_point - floating-point format, and std::numeric_limits<>::is_iec559 - == true. -

-

- The 128-bit floating-point type (of great interest in scientific and numeric - programming) is not required in the Boost header, and may not be supplied for - all platforms/compilers, because compiler support for a 128-bit floating-point - type is not mandated by either the C standard or the C++ standard. -

-

- If 128-bit floating-point is supported, then including boost/cstdfloat.hpp provides - a native 128-bit type, and includes other - headers in folder boost/math/cstdfloat - that provide C++ quad support for C - math functions in <cmath>, - <limits>, <iostream>, - <complex>, and the available floating-point types. -

-

- One can also, more robustly, include boost/multiprecision/float128.hpp and - this provides a thin wrapper selecting the appropriate 128-bit native type - from cstdfloat if available, - or else a 128-bit multiprecision type. -

-

- See Jahnke-Emden-Lambda function - example for an example using both a <cmath> - function and a Boost.Math function to evaluate a moderately interesting function, - the Jahnke-Emden-Lambda - function and normal - distribution as an example of a statistical distribution from Boost.Math. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut.html b/boost/libs/math/doc/html/math_toolkit/stat_tut.html deleted file mode 100644 index ca5d330b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut.html +++ /dev/null @@ -1,155 +0,0 @@ - - - -Statistical Distributions Tutorial - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
-
Overview of Distributions
-
-
Headers and - Namespaces
-
Distributions - are Objects
-
Generic operations - common to all distributions are non-member functions
-
Complements - are supported too - and when to use them
-
Parameters - can be calculated
-
Summary
-
-
Worked Examples
-
-
Distribution - Construction Examples
-
Student's t Distribution - Examples
-
-
Calculating - confidence intervals on the mean with the Students-t distribution
-
Testing - a sample mean for difference from a "true" mean
-
Estimating - how large a sample size would have to become in order to give a significant - Students-t test result with a single sample test
-
Comparing - the means of two samples with the Students-t test
-
Comparing - two paired samples with the Student's t distribution
-
-
Chi Squared Distribution - Examples
-
-
Confidence - Intervals on the Standard Deviation
-
Chi-Square - Test for the Standard Deviation
-
Estimating - the Required Sample Sizes for a Chi-Square Test for the Standard Deviation
-
-
F Distribution Examples
-
Binomial Distribution - Examples
-
-
Binomial - Coin-Flipping Example
-
Binomial - Quiz Example
-
Calculating - Confidence Limits on the Frequency of Occurrence for a Binomial Distribution
-
Estimating - Sample Sizes for a Binomial Distribution.
-
-
Geometric Distribution - Examples
-
Negative Binomial - Distribution Examples
-
-
Calculating - Confidence Limits on the Frequency of Occurrence for the Negative Binomial - Distribution
-
Estimating - Sample Sizes for the Negative Binomial.
-
Negative - Binomial Sales Quota Example.
-
Negative - Binomial Table Printing Example.
-
-
Normal Distribution - Examples
-
Some - Miscellaneous Examples of the Normal (Gaussian) Distribution
-
Inverse - Chi-Squared Distribution Bayes Example
-
Non Central Chi - Squared Example
-
Tables - of the power function of the chi2 test.
-
Error Handling - Example
-
Find Location and - Scale Examples
-
-
Find - Location (Mean) Example
-
Find - Scale (Standard Deviation) Example
-
Find - mean and standard deviation example
-
-
Comparison with - C, R, FORTRAN-style Free Functions
-
Using the Distributions - from Within C#
-
-
Random Variates and Distribution - Parameters
-
Discrete Probability - Distributions
-
-

- This library is centred around statistical distributions, this tutorial will - give you an overview of what they are, how they can be used, and provides a - few worked examples of applying the library to statistical tests. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/dist_params.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/dist_params.html deleted file mode 100644 index c9e0fe23..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/dist_params.html +++ /dev/null @@ -1,100 +0,0 @@ - - - -Discrete Probability Distributions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Note that the discrete - distributions, including the binomial, negative binomial, Poisson - & Bernoulli, are all mathematically defined as discrete functions: only - integral values of the random - variate are envisaged and the functions are only defined at these - integral values. However because the method of calculation often uses continuous - functions, it is convenient to treat them as if they were continuous functions, - and permit non-integral values of their parameters. -

-

- To enforce a strict mathematical model, users may use floor or ceil functions - on the random variate, - prior to calling the distribution function, to enforce integral values. -

-

- For similar reasons, in continuous distributions, parameters like degrees - of freedom that might appear to be integral, are treated as real values (and - are promoted from integer to floating-point if necessary). In this case however, - that there are a small number of situations where non-integral degrees of - freedom do have a genuine meaning. -

-

- Generally speaking there is no loss of performance from allowing real-values - parameters: the underlying special functions contain optimizations for integer-valued - arguments when applicable. -

-
- - - - - -
[Caution]Caution
-

- The quantile function of a discrete distribution will by default return - an integer result that has been rounded outwards. - That is to say lower quantiles (where the probability is less than 0.5) - are rounded downward, and upper quantiles (where the probability is greater - than 0.5) are rounded upwards. This behaviour ensures that if an X% quantile - is requested, then at least the requested coverage - will be present in the central region, and no more than - the requested coverage will be present in the tails. -

-

- This behaviour can be changed so that the quantile functions are rounded - differently, or even return a real-valued result using Policies. - It is strongly recommended that you read the tutorial Understanding - Quantiles of Discrete Distributions before using the quantile function - on a discrete distribution. The reference - docs describe how to change the rounding policy for these distributions. -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/overview.html deleted file mode 100644 index 31489cfd..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview.html +++ /dev/null @@ -1,59 +0,0 @@ - - - -Overview of Distributions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/complements.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/complements.html deleted file mode 100644 index defcbc96..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/complements.html +++ /dev/null @@ -1,200 +0,0 @@ - - - -Complements are supported too - and when to use them - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Often you don't want the value of the CDF, but its complement, which is - to say 1-p rather than p. - It is tempting to calculate the CDF and subtract it from 1, but if p - is very close to 1 then cancellation - error will cause you to lose accuracy, perhaps totally. -

-

- See below "Why and when - to use complements?" -

-

- In this library, whenever you want to receive a complement, just wrap all - the function arguments in a call to complement(...), for example: -

-
students_t dist(5);
-cout << "CDF at t = 1 is " << cdf(dist, 1.0) << endl;
-cout << "Complement of CDF at t = 1 is " << cdf(complement(dist, 1.0)) << endl;
-
-

- But wait, now that we have a complement, we have to be able to use it as - well. Any function that accepts a probability as an argument can also accept - a complement by wrapping all of its arguments in a call to complement(...), - for example: -

-
students_t dist(5);
-
-for(double i = 10; i < 1e10; i *= 10)
-{
-   // Calculate the quantile for a 1 in i chance:
-   double t = quantile(complement(dist, 1/i));
-   // Print it out:
-   cout << "Quantile of students-t with 5 degrees of freedom\n"
-           "for a 1 in " << i << " chance is " << t << endl;
-}
-
-
- - - - - -
[Tip]Tip
-

- Critical values are just quantiles -

-

- Some texts talk about quantiles, or percentiles or fractiles, others - about critical values, the basic rule is: -

-

- Lower critical values are the same as the quantile. -

-

- Upper critical values are the same as the quantile - from the complement of the probability. -

-

- For example, suppose we have a Bernoulli process, giving rise to a binomial - distribution with success ratio 0.1 and 100 trials in total. The lower - critical value for a probability of 0.05 is given by: -

-

- quantile(binomial(100, 0.1), 0.05) -

-

- and the upper critical value is given by: -

-

- quantile(complement(binomial(100, 0.1), 0.05)) -

-

- which return 4.82 and 14.63 respectively. -

-
-
- - - - - -
[Tip]Tip
-

- Why bother with complements anyway? -

-

- It's very tempting to dispense with complements, and simply subtract - the probability from 1 when required. However, consider what happens - when the probability is very close to 1: let's say the probability expressed - at float precision is 0.999999940f, - then 1 - - 0.999999940f = - 5.96046448e-008, but the result - is actually accurate to just one single bit: the - only bit that didn't cancel out! -

-

- Or to look at this another way: consider that we want the risk of falsely - rejecting the null-hypothesis in the Student's t test to be 1 in 1 billion, - for a sample size of 10,000. This gives a probability of 1 - 10-9, which - is exactly 1 when calculated at float precision. In this case calculating - the quantile from the complement neatly solves the problem, so for example: -

-

- quantile(complement(students_t(10000), 1e-9)) -

-

- returns the expected t-statistic 6.00336, - where as: -

-

- quantile(students_t(10000), 1-1e-9f) -

-

- raises an overflow error, since it is the same as: -

-

- quantile(students_t(10000), 1) -

-

- Which has no finite result. -

-

- With all distributions, even for more reasonable probability (unless - the value of p can be represented exactly in the floating-point type) - the loss of accuracy quickly becomes significant if you simply calculate - probability from 1 - p (because it will be mostly garbage digits for - p ~ 1). -

-

- So always avoid, for example, using a probability near to unity like - 0.99999 -

-

- quantile(my_distribution, - 0.99999) -

-

- and instead use -

-

- quantile(complement(my_distribution, - 0.00001)) -

-

- since 1 - 0.99999 is not exactly equal to 0.00001 when using floating-point - arithmetic. -

-

- This assumes that the 0.00001 value is either a constant, or can be computed - by some manner other than subtracting 0.99999 from 1. -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/generic.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/generic.html deleted file mode 100644 index 839388f9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/generic.html +++ /dev/null @@ -1,254 +0,0 @@ - - - -Generic operations common to all distributions are non-member functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Want to calculate the PDF (Probability Density Function) of a distribution? - No problem, just use: -

-
pdf(my_dist, x);  // Returns PDF (density) at point x of distribution my_dist.
-
-

- Or how about the CDF (Cumulative Distribution Function): -

-
cdf(my_dist, x);  // Returns CDF (integral from -infinity to point x)
-                  // of distribution my_dist.
-
-

- And quantiles are just the same: -

-
quantile(my_dist, p);  // Returns the value of the random variable x
-                       // such that cdf(my_dist, x) == p.
-
-

- If you're wondering why these aren't member functions, it's to make the - library more easily extensible: if you want to add additional generic operations - - let's say the n'th moment - then all you have to - do is add the appropriate non-member functions, overloaded for each implemented - distribution type. -

-
- - - - - -
[Tip]Tip
-

- Random numbers that approximate Quantiles of Distributions -

-

- If you want random numbers that are distributed in a specific way, for - example in a uniform, normal or triangular, see Boost.Random. -

-

- Whilst in principal there's nothing to prevent you from using the quantile - function to convert a uniformly distributed random number to another - distribution, in practice there are much more efficient algorithms available - that are specific to random number generation. -

-
-

- For example, the binomial distribution has two parameters: n (the number - of trials) and p (the probability of success on any one trial). -

-

- The binomial_distribution - constructor therefore has two parameters: -

-

- binomial_distribution(RealType n, RealType - p); -

-

- For this distribution the random - variate is k: the number of successes observed. The probability - density/mass function (pdf) is therefore written as f(k; n, p). -

-
- - - - - -
[Note]Note
-

- Random Variates and Distribution Parameters -

-

- The concept of a random - variable is closely linked to the term random - variate: a random variate is a particular value (outcome) of - a random variable. and distribution - parameters are conventionally distinguished (for example in Wikipedia - and Wolfram MathWorld) by placing a semi-colon or vertical bar) after - the random - variable (whose value you 'choose'), to separate the variate - from the parameter(s) that defines the shape of the distribution.
- For example, the binomial distribution probability distribution function - (PDF) is written as f(k| n, p) = Pr(K = k|n, p) - = probability of observing k successes out of n trials. K is the random variable, - k is the random - variate, the parameters are n (trials) and p (probability). -

-
-
- - - - - -
[Note]Note

- By convention, random - variate are lower case, usually k is integral, x if real, and - random variable - are upper case, K if integral, X if real. But this implementation treats - all as floating point values RealType, - so if you really want an integral result, you must round: see note on - Discrete Probability Distributions below for details. -

-

- As noted above the non-member function pdf - has one parameter for the distribution object, and a second for the random - variate. So taking our binomial distribution example, we would write: -

-

- pdf(binomial_distribution<RealType>(n, p), k); -

-

- The ranges of random - variate values that are permitted and are supported can be tested - by using two functions range - and support. -

-

- The distribution (effectively the random - variate) is said to be 'supported' over a range that is "the smallest - closed set whose complement has probability zero". MathWorld - uses the word 'defined' for this range. Non-mathematicians might say it - means the 'interesting' smallest range of random variate x that has the - cdf going from zero to unity. Outside are uninteresting zones where the - pdf is zero, and the cdf zero or unity. -

-

- For most distributions, with probability distribution functions one might - describe as 'well-behaved', we have decided that it is most useful for - the supported range to exclude random - variate values like exact zero if the end point is - discontinuous. For example, the Weibull (scale 1, shape 1) distribution - smoothly heads for unity as the random variate x declines towards zero. - But at x = zero, the value of the pdf is suddenly exactly zero, by definition. - If you are plotting the PDF, or otherwise calculating, zero is not the - most useful value for the lower limit of supported, as we discovered. So - for this, and similar distributions, we have decided it is most numerically - useful to use the closest value to zero, min_value, for the limit of the - supported range. (The range - remains from zero, so you will still get pdf(weibull, 0) - == 0). - (Exponential and gamma distributions have similarly discontinuous functions). -

-

- Mathematically, the functions may make sense with an (+ or -) infinite - value, but except for a few special cases (in the Normal and Cauchy distributions) - this implementation limits random variates to finite values from the max to min - for the RealType. (See - Handling - of Floating-Point Infinity for rationale). -

-
- - - - - -
[Note]Note
-

- Discrete Probability Distributions -

-

- Note that the discrete - distributions, including the binomial, negative binomial, Poisson - & Bernoulli, are all mathematically defined as discrete functions: - that is to say the functions cdf - and pdf are only defined - for integral values of the random variate. -

-

- However, because the method of calculation often uses continuous functions - it is convenient to treat them as if they were continuous functions, - and permit non-integral values of their parameters. -

-

- Users wanting to enforce a strict mathematical model may use floor or ceil - functions on the random variate prior to calling the distribution function. -

-

- The quantile functions for these distributions are hard to specify in - a manner that will satisfy everyone all of the time. The default behaviour - is to return an integer result, that has been rounded outwards: - that is to say, lower quantiles - where the probablity is less than 0.5 - are rounded down, while upper quantiles - where the probability is greater - than 0.5 - are rounded up. This behaviour ensures that if an X% quantile - is requested, then at least the requested coverage - will be present in the central region, and no more than - the requested coverage will be present in the tails. -

-

- This behaviour can be changed so that the quantile functions are rounded - differently, or return a real-valued result using Policies. - It is strongly recommended that you read the tutorial Understanding - Quantiles of Discrete Distributions before using the quantile - function on a discrete distribtion. The reference - docs describe how to change the rounding policy for these distributions. -

-

- For similar reasons continuous distributions with parameters like "degrees - of freedom" that might appear to be integral, are treated as real - values (and are promoted from integer to floating-point if necessary). - In this case however, there are a small number of situations where non-integral - degrees of freedom do have a genuine meaning. -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/headers.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/headers.html deleted file mode 100644 index c0f4395e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/headers.html +++ /dev/null @@ -1,78 +0,0 @@ - - - -Headers and Namespaces - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- All the code in this library is inside namespace boost::math. -

-

- In order to use a distribution my_distribution you - will need to include either the header <boost/math/my_distribution.hpp> - or the "include all the distributions" header: <boost/math/distributions.hpp>. -

-

- For example, to use the Students-t distribution include either <boost/math/students_t.hpp> - or <boost/math/distributions.hpp> -

-

- You also need to bring distribution names into scope, perhaps with a using namespace - boost::math; - declaration, -

-

- or specific using declarations - like using boost::math::normal; (recommended). -

-
- - - - - -
[Caution]Caution

- Some math function names are also used in namespace std so including - <random> could cause ambiguity! -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/objects.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/objects.html deleted file mode 100644 index f0d3ed83..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/objects.html +++ /dev/null @@ -1,134 +0,0 @@ - - - -Distributions are Objects - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Each kind of distribution in this library is a class type - an object. -

-

- Policies provide fine-grained control of - the behaviour of these classes, allowing the user to customise behaviour - such as how errors are handled, or how the quantiles of discrete distribtions - behave. -

-
- - - - - -
[Tip]Tip

- If you are familiar with statistics libraries using functions, and 'Distributions - as Objects' seem alien, see the - comparison to other statistics libraries. -

-

- Making distributions class types does two things: -

-
    -
  • - It encapsulates the kind of distribution in the C++ type system; so, - for example, Students-t distributions are always a different C++ type - from Chi-Squared distributions. -
  • -
  • - The distribution objects store any parameters associated with the distribution: - for example, the Students-t distribution has a degrees of - freedom parameter that controls the shape of the distribution. - This degrees of freedom parameter has to be provided - to the Students-t object when it is constructed. -
  • -
-

- Although the distribution classes in this library are templates, there - are typedefs on type double that mostly take the usual - name of the distribution (except where there is a clash with a function - of the same name: beta and gamma, in which case using the default template - arguments - RealType = - double - is nearly as convenient). - Probably 95% of uses are covered by these typedefs: -

-
// using namespace boost::math; // Avoid potential ambiguity with names in std <random>
-// Safer to declare specific functions with using statement(s):
-
-using boost::math::beta_distribution;
-using boost::math::binomial_distribution;
-using boost::math::students_t;
-
-// Construct a students_t distribution with 4 degrees of freedom:
-students_t d1(4);
-
-// Construct a double-precision beta distribution
-// with parameters a = 10, b = 20
-beta_distribution<> d2(10, 20); // Note: _distribution<> suffix !
-
-

- If you need to use the distributions with a type other than double, then you can instantiate the template - directly: the names of the templates are the same as the double typedef but with _distribution - appended, for example: Students - t Distribution or Binomial - Distribution: -

-
// Construct a students_t distribution, of float type,
-// with 4 degrees of freedom:
-students_t_distribution<float> d3(4);
-
-// Construct a binomial distribution, of long double type,
-// with probability of success 0.3
-// and 20 trials in total:
-binomial_distribution<long double> d4(20, 0.3);
-
-

- The parameters passed to the distributions can be accessed via getter member - functions: -

-
d1.degrees_of_freedom();  // returns 4.0
-
-

- This is all well and good, but not very useful so far. What we often want - is to be able to calculate the cumulative distribution functions - and quantiles etc for these distributions. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/parameters.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/parameters.html deleted file mode 100644 index 03e7fa8d..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/parameters.html +++ /dev/null @@ -1,73 +0,0 @@ - - - -Parameters can be calculated - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Sometimes it's the parameters that define the distribution that you need - to find. Suppose, for example, you have conducted a Students-t test for - equal means and the result is borderline. Maybe your two samples differ - from each other, or maybe they don't; based on the result of the test you - can't be sure. A legitimate question to ask then is "How many more - measurements would I have to take before I would get an X% probability - that the difference is real?" Parameter finders can answer questions - like this, and are necessarily different for each distribution. They are - implemented as static member functions of the distributions, for example: -

-
students_t::find_degrees_of_freedom(
-   1.3,        // difference from true mean to detect
-   0.05,       // maximum risk of falsely rejecting the null-hypothesis.
-   0.1,        // maximum risk of falsely failing to reject the null-hypothesis.
-   0.13);      // sample standard deviation
-
-

- Returns the number of degrees of freedom required to obtain a 95% probability - that the observed differences in means is not down to chance alone. In - the case that a borderline Students-t test result was previously obtained, - this can be used to estimate how large the sample size would have to become - before the observed difference was considered significant. It assumes, - of course, that the sample mean and standard deviation are invariant with - sample size. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/summary.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/summary.html deleted file mode 100644 index cc2a0844..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/overview/summary.html +++ /dev/null @@ -1,75 +0,0 @@ - - - -Summary - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
    -
  • - Distributions are objects, which are constructed from whatever parameters - the distribution may have. -
  • -
  • - Member functions allow you to retrieve the parameters of a distribution. -
  • -
  • - Generic non-member functions provide access to the properties that - are common to all the distributions (PDF, CDF, quantile etc). -
  • -
  • - Complements of probabilities are calculated by wrapping the function's - arguments in a call to complement(...). -
  • -
  • - Functions that accept a probability can accept a complement of the - probability as well, by wrapping the function's arguments in a call - to complement(...). -
  • -
  • - Static member functions allow the parameters of a distribution to be - found from other information. -
  • -
-

- Now that you have the basics, the next section looks at some worked examples. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/variates.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/variates.html deleted file mode 100644 index 324e14e9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/variates.html +++ /dev/null @@ -1,76 +0,0 @@ - - - -Random Variates and Distribution Parameters - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Random variates - and distribution parameters - are conventionally distinguished (for example in Wikipedia and Wolfram MathWorld - by placing a semi-colon after the random - variate (whose value you 'choose'), to separate the variate from - the parameter(s) that defines the shape of the distribution. -

-

- For example, the binomial distribution has two parameters: n (the number - of trials) and p (the probability of success on one trial). It also has the - random variate - k: the number of successes observed. This means the - probability density/mass function (pdf) is written as f(k; n, p). -

-

- Translating this into code the binomial_distribution - constructor therefore has two parameters: -

-
binomial_distribution(RealType n, RealType p);
-
-

- While the function pdf has - one argument specifying the distribution type (which includes its parameters, - if any), and a second argument for the random - variate. So taking our binomial distribution example, we would write: -

-
pdf(binomial_distribution<RealType>(n, p), k);
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg.html deleted file mode 100644 index d6d82879..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg.html +++ /dev/null @@ -1,129 +0,0 @@ - - - -Worked Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
-
Distribution - Construction Examples
-
Student's t Distribution - Examples
-
-
Calculating - confidence intervals on the mean with the Students-t distribution
-
Testing - a sample mean for difference from a "true" mean
-
Estimating - how large a sample size would have to become in order to give a significant - Students-t test result with a single sample test
-
Comparing - the means of two samples with the Students-t test
-
Comparing - two paired samples with the Student's t distribution
-
-
Chi Squared Distribution - Examples
-
-
Confidence - Intervals on the Standard Deviation
-
Chi-Square - Test for the Standard Deviation
-
Estimating - the Required Sample Sizes for a Chi-Square Test for the Standard Deviation
-
-
F Distribution Examples
-
Binomial Distribution - Examples
-
-
Binomial - Coin-Flipping Example
-
Binomial - Quiz Example
-
Calculating - Confidence Limits on the Frequency of Occurrence for a Binomial Distribution
-
Estimating - Sample Sizes for a Binomial Distribution.
-
-
Geometric Distribution - Examples
-
Negative Binomial - Distribution Examples
-
-
Calculating - Confidence Limits on the Frequency of Occurrence for the Negative Binomial - Distribution
-
Estimating - Sample Sizes for the Negative Binomial.
-
Negative - Binomial Sales Quota Example.
-
Negative - Binomial Table Printing Example.
-
-
Normal Distribution - Examples
-
Some - Miscellaneous Examples of the Normal (Gaussian) Distribution
-
Inverse - Chi-Squared Distribution Bayes Example
-
Non Central Chi - Squared Example
-
Tables - of the power function of the chi2 test.
-
Error Handling - Example
-
Find Location and - Scale Examples
-
-
Find - Location (Mean) Example
-
Find - Scale (Standard Deviation) Example
-
Find - mean and standard deviation example
-
-
Comparison with - C, R, FORTRAN-style Free Functions
-
Using the Distributions - from Within C#
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg.html deleted file mode 100644 index 6e055cd0..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg.html +++ /dev/null @@ -1,61 +0,0 @@ - - - -Binomial Distribution Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binom_conf.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binom_conf.html deleted file mode 100644 index 03374cc0..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binom_conf.html +++ /dev/null @@ -1,241 +0,0 @@ - - - -Calculating Confidence Limits on the Frequency of Occurrence for a Binomial Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Imagine you have a process that follows a binomial distribution: for - each trial conducted, an event either occurs or does it does not, referred - to as "successes" and "failures". If, by experiment, - you want to measure the frequency with which successes occur, the best - estimate is given simply by k / N, - for k successes out of N trials. - However our confidence in that estimate will be shaped by how many trials - were conducted, and how many successes were observed. The static member - functions binomial_distribution<>::find_lower_bound_on_p - and binomial_distribution<>::find_upper_bound_on_p - allow you to calculate the confidence intervals for your estimate of - the occurrence frequency. -

-

- The sample program binomial_confidence_limits.cpp - illustrates their use. It begins by defining a procedure that will print - a table of confidence limits for various degrees of certainty: -

-
#include <iostream>
-#include <iomanip>
-#include <boost/math/distributions/binomial.hpp>
-
-void confidence_limits_on_frequency(unsigned trials, unsigned successes)
-{
-   //
-   // trials = Total number of trials.
-   // successes = Total number of observed successes.
-   //
-   // Calculate confidence limits for an observed
-   // frequency of occurrence that follows a binomial
-   // distribution.
-   //
-   using namespace std;
-   using namespace boost::math;
-
-   // Print out general info:
-   cout <<
-      "___________________________________________\n"
-      "2-Sided Confidence Limits For Success Ratio\n"
-      "___________________________________________\n\n";
-   cout << setprecision(7);
-   cout << setw(40) << left << "Number of Observations" << "=  " << trials << "\n";
-   cout << setw(40) << left << "Number of successes" << "=  " << successes << "\n";
-   cout << setw(40) << left << "Sample frequency of occurrence" << "=  " << double(successes) / trials << "\n";
-
-

- The procedure now defines a table of significance levels: these are the - probabilities that the true occurrence frequency lies outside the calculated - interval: -

-
double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 };
-
-

- Some pretty printing of the table header follows: -

-
cout << "\n\n"
-        "_______________________________________________________________________\n"
-        "Confidence        Lower CP       Upper CP       Lower JP       Upper JP\n"
-        " Value (%)        Limit          Limit          Limit          Limit\n"
-        "_______________________________________________________________________\n";
-
-

- And now for the important part - the intervals themselves - for each - value of alpha, we call find_lower_bound_on_p - and find_lower_upper_on_p - to obtain lower and upper bounds respectively. Note that since we are - calculating a two-sided interval, we must divide the value of alpha in - two. -

-

- Please note that calculating two separate single sided bounds, - each with risk level α  is not the same thing as calculating a two sided - interval. Had we calculate two single-sided intervals each with a risk - that the true value is outside the interval of α, then: -

-
  • - The risk that it is less than the lower bound is α. -
-

- and -

-
  • - The risk that it is greater than the upper bound is also α. -
-

- So the risk it is outside upper or lower bound, - is twice alpha, and the probability - that it is inside the bounds is therefore not nearly as high as one might - have thought. This is why α/2 must be used in the calculations below. -

-

- In contrast, had we been calculating a single-sided interval, for example: - "Calculate a lower bound so that we are P% sure that the - true occurrence frequency is greater than some value" - then we would not have divided by two. -

-

- Finally note that binomial_distribution - provides a choice of two methods for the calculation, we print out the - results from both methods in this example: -

-
   for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i)
-   {
-      // Confidence value:
-      cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]);
-      // Calculate Clopper Pearson bounds:
-      double l = binomial_distribution<>::find_lower_bound_on_p(
-                     trials, successes, alpha[i]/2);
-      double u = binomial_distribution<>::find_upper_bound_on_p(
-                     trials, successes, alpha[i]/2);
-      // Print Clopper Pearson Limits:
-      cout << fixed << setprecision(5) << setw(15) << right << l;
-      cout << fixed << setprecision(5) << setw(15) << right << u;
-      // Calculate Jeffreys Prior Bounds:
-      l = binomial_distribution<>::find_lower_bound_on_p(
-            trials, successes, alpha[i]/2,
-            binomial_distribution<>::jeffreys_prior_interval);
-      u = binomial_distribution<>::find_upper_bound_on_p(
-            trials, successes, alpha[i]/2,
-            binomial_distribution<>::jeffreys_prior_interval);
-      // Print Jeffreys Prior Limits:
-      cout << fixed << setprecision(5) << setw(15) << right << l;
-      cout << fixed << setprecision(5) << setw(15) << right << u << std::endl;
-   }
-   cout << endl;
-}
-
-

- And that's all there is to it. Let's see some sample output for a 2 in - 10 success ratio, first for 20 trials: -

-
___________________________________________
-2-Sided Confidence Limits For Success Ratio
-___________________________________________
-
-Number of Observations                  =  20
-Number of successes                     =  4
-Sample frequency of occurrence          =  0.2
-
-
-_______________________________________________________________________
-Confidence        Lower CP       Upper CP       Lower JP       Upper JP
- Value (%)        Limit          Limit          Limit          Limit
-_______________________________________________________________________
-    50.000        0.12840        0.29588        0.14974        0.26916
-    75.000        0.09775        0.34633        0.11653        0.31861
-    90.000        0.07135        0.40103        0.08734        0.37274
-    95.000        0.05733        0.43661        0.07152        0.40823
-    99.000        0.03576        0.50661        0.04655        0.47859
-    99.900        0.01905        0.58632        0.02634        0.55960
-    99.990        0.01042        0.64997        0.01530        0.62495
-    99.999        0.00577        0.70216        0.00901        0.67897
-
-

- As you can see, even at the 95% confidence level the bounds are really - quite wide (this example is chosen to be easily compared to the one in - the NIST/SEMATECH - e-Handbook of Statistical Methods. here). - Note also that the Clopper-Pearson calculation method (CP above) produces - quite noticeably more pessimistic estimates than the Jeffreys Prior method - (JP above). -

-

- Compare that with the program output for 2000 trials: -

-
___________________________________________
-2-Sided Confidence Limits For Success Ratio
-___________________________________________
-
-Number of Observations                  =  2000
-Number of successes                     =  400
-Sample frequency of occurrence          =  0.2000000
-
-
-_______________________________________________________________________
-Confidence        Lower CP       Upper CP       Lower JP       Upper JP
- Value (%)        Limit          Limit          Limit          Limit
-_______________________________________________________________________
-    50.000        0.19382        0.20638        0.19406        0.20613
-    75.000        0.18965        0.21072        0.18990        0.21047
-    90.000        0.18537        0.21528        0.18561        0.21503
-    95.000        0.18267        0.21821        0.18291        0.21796
-    99.000        0.17745        0.22400        0.17769        0.22374
-    99.900        0.17150        0.23079        0.17173        0.23053
-    99.990        0.16658        0.23657        0.16681        0.23631
-    99.999        0.16233        0.24169        0.16256        0.24143
-
-

- Now even when the confidence level is very high, the limits are really - quite close to the experimentally calculated value of 0.2. Furthermore - the difference between the two calculation methods is now really quite - small. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binom_size_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binom_size_eg.html deleted file mode 100644 index 16e10e88..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binom_size_eg.html +++ /dev/null @@ -1,160 +0,0 @@ - - - -Estimating Sample Sizes for a Binomial Distribution. - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Imagine you have a critical component that you know will fail in 1 in - N "uses" (for some suitable definition of "use"). - You may want to schedule routine replacement of the component so that - its chance of failure between routine replacements is less than P%. If - the failures follow a binomial distribution (each time the component - is "used" it either fails or does not) then the static member - function binomial_distibution<>::find_maximum_number_of_trials - can be used to estimate the maximum number of "uses" of that - component for some acceptable risk level alpha. -

-

- The example program binomial_sample_sizes.cpp - demonstrates its usage. It centres on a routine that prints out a table - of maximum sample sizes for various probability thresholds: -

-
void find_max_sample_size(
-   double p,              // success ratio.
-   unsigned successes)    // Total number of observed successes permitted.
-{
-
-

- The routine then declares a table of probability thresholds: these are - the maximum acceptable probability that successes - or fewer events will be observed. In our example, successes - will be always zero, since we want no component failures, but in other - situations non-zero values may well make sense. -

-
double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 };
-
-

- Much of the rest of the program is pretty-printing, the important part - is in the calculation of maximum number of permitted trials for each - value of alpha: -

-
for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i)
-{
-   // Confidence value:
-   cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]);
-   // calculate trials:
-   double t = binomial::find_maximum_number_of_trials(
-                  successes, p, alpha[i]);
-   t = floor(t);
-   // Print Trials:
-   cout << fixed << setprecision(5) << setw(15) << right << t << endl;
-}
-
-

- Note that since we're calculating the maximum number of trials permitted, - we'll err on the safe side and take the floor of the result. Had we been - calculating the minimum number of trials required - to observe a certain number of successes using - find_minimum_number_of_trials - we would have taken the ceiling instead. -

-

- We'll finish off by looking at some sample output, firstly for a 1 in - 1000 chance of component failure with each use: -

-
________________________
-Maximum Number of Trials
-________________________
-
-Success ratio                           =  0.001
-Maximum Number of "successes" permitted =  0
-
-
-____________________________
-Confidence        Max Number
- Value (%)        Of Trials
-____________________________
-    50.000            692
-    75.000            287
-    90.000            105
-    95.000             51
-    99.000             10
-    99.900              0
-    99.990              0
-    99.999              0
-
-

- So 51 "uses" of the component would yield a 95% chance that - no component failures would be observed. -

-

- Compare that with a 1 in 1 million chance of component failure: -

-
________________________
-Maximum Number of Trials
-________________________
-
-Success ratio                           =  0.0000010
-Maximum Number of "successes" permitted =  0
-
-
-____________________________
-Confidence        Max Number
- Value (%)        Of Trials
-____________________________
-    50.000         693146
-    75.000         287681
-    90.000         105360
-    95.000          51293
-    99.000          10050
-    99.900           1000
-    99.990            100
-    99.999             10
-
-

- In this case, even 1000 uses of the component would still yield a less - than 1 in 1000 chance of observing a component failure (i.e. a 99.9% - chance of no failure). -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binomial_coinflip_example.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binomial_coinflip_example.html deleted file mode 100644 index 7239542e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binomial_coinflip_example.html +++ /dev/null @@ -1,274 +0,0 @@ - - - -Binomial Coin-Flipping Example - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- An example of a Bernoulli - process is coin flipping. A variable in such a sequence may be - called a Bernoulli variable. -

-

- This example shows using the Binomial distribution to predict the probability - of heads and tails when throwing a coin. -

-

- The number of correct answers (say heads), X, is distributed as a binomial - random variable with binomial distribution parameters number of trials - (flips) n = 10 and probability (success_fraction) of getting a head p - = 0.5 (a 'fair' coin). -

-

- (Our coin is assumed fair, but we could easily change the success_fraction - parameter p from 0.5 to some other value to simulate an unfair coin, - say 0.6 for one with chewing gum on the tail, so it is more likely to - fall tails down and heads up). -

-

- First we need some includes and using statements to be able to use the - binomial distribution, some std input and output, and get started: -

-
#include <boost/math/distributions/binomial.hpp>
-  using boost::math::binomial;
-
-#include <iostream>
-  using std::cout;  using std::endl;  using std::left;
-#include <iomanip>
-  using std::setw;
-
-int main()
-{
-  cout << "Using Binomial distribution to predict how many heads and tails." << endl;
-  try
-  {
-
-

- See note with the catch block - about why a try and catch block is always a good idea. -

-

- First, construct a binomial distribution with parameters success_fraction - 1/2, and how many flips. -

-
const double success_fraction = 0.5; // = 50% = 1/2 for a 'fair' coin.
-int flips = 10;
-binomial flip(flips, success_fraction);
-
-cout.precision(4);
-
-

- Then some examples of using Binomial moments (and echoing the parameters). -

-
cout << "From " << flips << " one can expect to get on average "
-  << mean(flip) << " heads (or tails)." << endl;
-cout << "Mode is " << mode(flip) << endl;
-cout << "Standard deviation is " << standard_deviation(flip) << endl;
-cout << "So about 2/3 will lie within 1 standard deviation and get between "
-  <<  ceil(mean(flip) - standard_deviation(flip))  << " and "
-  << floor(mean(flip) + standard_deviation(flip)) << " correct." << endl;
-cout << "Skewness is " << skewness(flip) << endl;
-// Skewness of binomial distributions is only zero (symmetrical)
-// if success_fraction is exactly one half,
-// for example, when flipping 'fair' coins.
-cout << "Skewness if success_fraction is " << flip.success_fraction()
-  << " is " << skewness(flip) << endl << endl; // Expect zero for a 'fair' coin.
-
-

- Now we show a variety of predictions on the probability of heads: -

-
cout << "For " << flip.trials() << " coin flips: " << endl;
-cout << "Probability of getting no heads is " << pdf(flip, 0) << endl;
-cout << "Probability of getting at least one head is " << 1. - pdf(flip, 0) << endl;
-
-

- When we want to calculate the probability for a range or values we can - sum the PDF's: -

-
cout << "Probability of getting 0 or 1 heads is "
-  << pdf(flip, 0) + pdf(flip, 1) << endl; // sum of exactly == probabilities
-
-

- Or we can use the cdf. -

-
cout << "Probability of getting 0 or 1 (<= 1) heads is " << cdf(flip, 1) << endl;
-cout << "Probability of getting 9 or 10 heads is " << pdf(flip, 9) + pdf(flip, 10) << endl;
-
-

- Note that using -

-
cout << "Probability of getting 9 or 10 heads is " << 1. - cdf(flip, 8) << endl;
-
-

- is less accurate than using the complement -

-
cout << "Probability of getting 9 or 10 heads is " << cdf(complement(flip, 8)) << endl;
-
-

- Since the subtraction may involve cancellation - error, where as cdf(complement(flip, 8)) - does not use such a subtraction internally, and so does not exhibit the - problem. -

-

- To get the probability for a range of heads, we can either add the pdfs - for each number of heads -

-
cout << "Probability of between 4 and 6 heads (4 or 5 or 6) is "
-  //  P(X == 4) + P(X == 5) + P(X == 6)
-  << pdf(flip, 4) + pdf(flip, 5) + pdf(flip, 6) << endl;
-
-

- But this is probably less efficient than using the cdf -

-
cout << "Probability of between 4 and 6 heads (4 or 5 or 6) is "
-  // P(X <= 6) - P(X <= 3) == P(X < 4)
-  << cdf(flip, 6) - cdf(flip, 3) << endl;
-
-

- Certainly for a bigger range like, 3 to 7 -

-
cout << "Probability of between 3 and 7 heads (3, 4, 5, 6 or 7) is "
-  // P(X <= 7) - P(X <= 2) == P(X < 3)
-  << cdf(flip, 7) - cdf(flip, 2) << endl;
-cout << endl;
-
-

- Finally, print two tables of probability for the exactly - and at least a number of heads. -

-
// Print a table of probability for the exactly a number of heads.
-cout << "Probability of getting exactly (==) heads" << endl;
-for (int successes = 0; successes <= flips; successes++)
-{ // Say success means getting a head (or equally success means getting a tail).
-  double probability = pdf(flip, successes);
-  cout << left << setw(2) << successes << "     " << setw(10)
-    << probability << " or 1 in " << 1. / probability
-    << ", or " << probability * 100. << "%" << endl;
-} // for i
-cout << endl;
-
-// Tabulate the probability of getting between zero heads and 0 upto 10 heads.
-cout << "Probability of getting upto (<=) heads" << endl;
-for (int successes = 0; successes <= flips; successes++)
-{ // Say success means getting a head
-  // (equally success could mean getting a tail).
-  double probability = cdf(flip, successes); // P(X <= heads)
-  cout << setw(2) << successes << "        " << setw(10) << left
-    << probability << " or 1 in " << 1. / probability << ", or "
-    << probability * 100. << "%"<< endl;
-} // for i
-
-

- The last (0 to 10 heads) must, of course, be 100% probability. -

-
}
-catch(const std::exception& e)
-{
-  //
-
-

- It is always essential to include try - & catch blocks because default policies are to throw exceptions on - arguments that are out of domain or cause errors like numeric-overflow. -

-

- Lacking try & catch blocks, the program will abort, whereas the message - below from the thrown exception will give some helpful clues as to the - cause of the problem. -

-
  std::cout <<
-    "\n""Message from thrown exception was:\n   " << e.what() << std::endl;
-}
-
-

- See binomial_coinflip_example.cpp - for full source code, the program output looks like this: -

-
Using Binomial distribution to predict how many heads and tails.
-From 10 one can expect to get on average 5 heads (or tails).
-Mode is 5
-Standard deviation is 1.581
-So about 2/3 will lie within 1 standard deviation and get between 4 and 6 correct.
-Skewness is 0
-Skewness if success_fraction is 0.5 is 0
-
-For 10 coin flips:
-Probability of getting no heads is 0.0009766
-Probability of getting at least one head is 0.999
-Probability of getting 0 or 1 heads is 0.01074
-Probability of getting 0 or 1 (<= 1) heads is 0.01074
-Probability of getting 9 or 10 heads is 0.01074
-Probability of getting 9 or 10 heads is 0.01074
-Probability of getting 9 or 10 heads is 0.01074
-Probability of between 4 and 6 heads (4 or 5 or 6) is 0.6562
-Probability of between 4 and 6 heads (4 or 5 or 6) is 0.6563
-Probability of between 3 and 7 heads (3, 4, 5, 6 or 7) is 0.8906
-
-Probability of getting exactly (==) heads
-0      0.0009766  or 1 in 1024, or 0.09766%
-1      0.009766   or 1 in 102.4, or 0.9766%
-2      0.04395    or 1 in 22.76, or 4.395%
-3      0.1172     or 1 in 8.533, or 11.72%
-4      0.2051     or 1 in 4.876, or 20.51%
-5      0.2461     or 1 in 4.063, or 24.61%
-6      0.2051     or 1 in 4.876, or 20.51%
-7      0.1172     or 1 in 8.533, or 11.72%
-8      0.04395    or 1 in 22.76, or 4.395%
-9      0.009766   or 1 in 102.4, or 0.9766%
-10     0.0009766  or 1 in 1024, or 0.09766%
-
-Probability of getting upto (<=) heads
-0         0.0009766  or 1 in 1024, or 0.09766%
-1         0.01074    or 1 in 93.09, or 1.074%
-2         0.05469    or 1 in 18.29, or 5.469%
-3         0.1719     or 1 in 5.818, or 17.19%
-4         0.377      or 1 in 2.653, or 37.7%
-5         0.623      or 1 in 1.605, or 62.3%
-6         0.8281     or 1 in 1.208, or 82.81%
-7         0.9453     or 1 in 1.058, or 94.53%
-8         0.9893     or 1 in 1.011, or 98.93%
-9         0.999      or 1 in 1.001, or 99.9%
-10        1          or 1 in 1, or 100%
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binomial_quiz_example.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binomial_quiz_example.html deleted file mode 100644 index 81f54c2e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/binom_eg/binomial_quiz_example.html +++ /dev/null @@ -1,458 +0,0 @@ - - - -Binomial Quiz Example - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- A multiple choice test has four possible answers to each of 16 questions. - A student guesses the answer to each question, so the probability of - getting a correct answer on any given question is one in four, a quarter, - 1/4, 25% or fraction 0.25. The conditions of the binomial experiment - are assumed to be met: n = 16 questions constitute the trials; each question - results in one of two possible outcomes (correct or incorrect); the probability - of being correct is 0.25 and is constant if no knowledge about the subject - is assumed; the questions are answered independently if the student's - answer to a question in no way influences his/her answer to another question. -

-

- First, we need to be able to use the binomial distribution constructor - (and some std input/output, of course). -

-
#include <boost/math/distributions/binomial.hpp>
-  using boost::math::binomial;
-
-#include <iostream>
-  using std::cout; using std::endl;
-  using std::ios; using std::flush; using std::left; using std::right; using std::fixed;
-#include <iomanip>
-  using std::setw; using std::setprecision;
-#include <exception>
-
-

- The number of correct answers, X, is distributed as a binomial random - variable with binomial distribution parameters: questions n and success - fraction probability p. So we construct a binomial distribution: -

-
int questions = 16; // All the questions in the quiz.
-int answers = 4; // Possible answers to each question.
-double success_fraction = 1. / answers; // If a random guess, p = 1/4 = 0.25.
-binomial quiz(questions, success_fraction);
-
-

- and display the distribution parameters we used thus: -

-
cout << "In a quiz with " << quiz.trials()
-  << " questions and with a probability of guessing right of "
-  << quiz.success_fraction() * 100 << " %"
-  << " or 1 in " << static_cast<int>(1. / quiz.success_fraction()) << endl;
-
-

- Show a few probabilities of just guessing: -

-
cout << "Probability of getting none right is " << pdf(quiz, 0) << endl; // 0.010023
-cout << "Probability of getting exactly one right is " << pdf(quiz, 1) << endl;
-cout << "Probability of getting exactly two right is " << pdf(quiz, 2) << endl;
-int pass_score = 11;
-cout << "Probability of getting exactly " << pass_score << " answers right by chance is "
-  << pdf(quiz, pass_score) << endl;
-cout << "Probability of getting all " << questions << " answers right by chance is "
-  << pdf(quiz, questions) << endl;
-
-
Probability of getting none right is 0.0100226
-Probability of getting exactly one right is 0.0534538
-Probability of getting exactly two right is 0.133635
-Probability of getting exactly 11 right is 0.000247132
-Probability of getting exactly all 16 answers right by chance is 2.32831e-010
-
-

- These don't give any encouragement to guessers! -

-

- We can tabulate the 'getting exactly right' ( == ) probabilities thus: -

-
cout << "\n" "Guessed Probability" << right << endl;
-for (int successes = 0; successes <= questions; successes++)
-{
-  double probability = pdf(quiz, successes);
-  cout << setw(2) << successes << "      " << probability << endl;
-}
-cout << endl;
-
-
Guessed Probability
- 0      0.0100226
- 1      0.0534538
- 2      0.133635
- 3      0.207876
- 4      0.225199
- 5      0.180159
- 6      0.110097
- 7      0.0524273
- 8      0.0196602
- 9      0.00582526
-10      0.00135923
-11      0.000247132
-12      3.43239e-005
-13      3.5204e-006
-14      2.51457e-007
-15      1.11759e-008
-16      2.32831e-010
-
-

- Then we can add the probabilities of some 'exactly right' like this: -

-
cout << "Probability of getting none or one right is " << pdf(quiz, 0) + pdf(quiz, 1) << endl;
-
-
Probability of getting none or one right is 0.0634764
-
-

- But if more than a couple of scores are involved, it is more convenient - (and may be more accurate) to use the Cumulative Distribution Function - (cdf) instead: -

-
cout << "Probability of getting none or one right is " << cdf(quiz, 1) << endl;
-
-
Probability of getting none or one right is 0.0634764
-
-

- Since the cdf is inclusive, we can get the probability of getting up - to 10 right ( <= ) -

-
cout << "Probability of getting <= 10 right (to fail) is " << cdf(quiz, 10) << endl;
-
-
Probability of getting <= 10 right (to fail) is 0.999715
-
-

- To get the probability of getting 11 or more right (to pass), it is tempting - to use -

-
1 - cdf(quiz, 10)
-

- to get the probability of > 10 -

-
cout << "Probability of getting > 10 right (to pass) is " << 1 - cdf(quiz, 10) << endl;
-
-
Probability of getting > 10 right (to pass) is 0.000285239
-
-

- But this should be resisted in favor of using the complements - function (see why complements?). -

-
cout << "Probability of getting > 10 right (to pass) is " << cdf(complement(quiz, 10)) << endl;
-
-
Probability of getting > 10 right (to pass) is 0.000285239
-
-

- And we can check that these two, <= 10 and > 10, add up to unity. -

-
BOOST_ASSERT((cdf(quiz, 10) + cdf(complement(quiz, 10))) == 1.);
-
-

- If we want a < rather than a <= test, because the CDF is inclusive, - we must subtract one from the score. -

-
cout << "Probability of getting less than " << pass_score
-  << " (< " << pass_score << ") answers right by guessing is "
-  << cdf(quiz, pass_score -1) << endl;
-
-
Probability of getting less than 11 (< 11) answers right by guessing is 0.999715
-
-

- and similarly to get a >= rather than a > test we also need to - subtract one from the score (and can again check the sum is unity). This - is because if the cdf is inclusive, then its complement - must be exclusive otherwise there would be one possible - outcome counted twice! -

-
cout << "Probability of getting at least " << pass_score
-  << "(>= " << pass_score << ") answers right by guessing is "
-  << cdf(complement(quiz, pass_score-1))
-  << ", only 1 in " << 1/cdf(complement(quiz, pass_score-1)) << endl;
-
-BOOST_ASSERT((cdf(quiz, pass_score -1) + cdf(complement(quiz, pass_score-1))) == 1);
-
-
Probability of getting at least 11 (>= 11) answers right by guessing is 0.000285239, only 1 in 3505.83
-
-

- Finally we can tabulate some probabilities: -

-
cout << "\n" "At most (<=)""\n""Guessed OK   Probability" << right << endl;
-for (int score = 0; score <= questions; score++)
-{
-  cout << setw(2) << score << "           " << setprecision(10)
-    << cdf(quiz, score) << endl;
-}
-cout << endl;
-
-
At most (<=)
-Guessed OK   Probability
- 0           0.01002259576
- 1           0.0634764398
- 2           0.1971110499
- 3           0.4049871101
- 4           0.6301861752
- 5           0.8103454274
- 6           0.9204427481
- 7           0.9728700437
- 8           0.9925302796
- 9           0.9983555346
-10           0.9997147608
-11           0.9999618928
-12           0.9999962167
-13           0.9999997371
-14           0.9999999886
-15           0.9999999998
-16           1
-
-
cout << "\n" "At least (>)""\n""Guessed OK   Probability" << right << endl;
-for (int score = 0; score <= questions; score++)
-{
-  cout << setw(2) << score << "           "  << setprecision(10)
-    << cdf(complement(quiz, score)) << endl;
-}
-
-
At least (>)
-Guessed OK   Probability
- 0           0.9899774042
- 1           0.9365235602
- 2           0.8028889501
- 3           0.5950128899
- 4           0.3698138248
- 5           0.1896545726
- 6           0.07955725188
- 7           0.02712995629
- 8           0.00746972044
- 9           0.001644465374
-10           0.0002852391917
-11           3.810715862e-005
-12           3.783265129e-006
-13           2.628657967e-007
-14           1.140870154e-008
-15           2.328306437e-010
-16           0
-
-

- We now consider the probabilities of ranges - of correct guesses. -

-

- First, calculate the probability of getting a range of guesses right, - by adding the exact probabilities of each from low ... high. -

-
int low = 3; // Getting at least 3 right.
-int high = 5; // Getting as most 5 right.
-double sum = 0.;
-for (int i = low; i <= high; i++)
-{
-  sum += pdf(quiz, i);
-}
-cout.precision(4);
-cout << "Probability of getting between "
-  << low << " and " << high << " answers right by guessing is "
-  << sum  << endl; // 0.61323
-
-
Probability of getting between 3 and 5 answers right by guessing is 0.6132
-
-

- Or, usually better, we can use the difference of cdfs instead: -

-
cout << "Probability of getting between " << low << " and " << high << " answers right by guessing is "
-  <<  cdf(quiz, high) - cdf(quiz, low - 1) << endl; // 0.61323
-
-
Probability of getting between 3 and 5 answers right by guessing is 0.6132
-
-

- And we can also try a few more combinations of high and low choices: -

-
low = 1; high = 6;
-cout << "Probability of getting between " << low << " and " << high << " answers right by guessing is "
-  <<  cdf(quiz, high) - cdf(quiz, low - 1) << endl; // 1 and 6 P= 0.91042
-low = 1; high = 8;
-cout << "Probability of getting between " << low << " and " << high << " answers right by guessing is "
-  <<  cdf(quiz, high) - cdf(quiz, low - 1) << endl; // 1 <= x 8 P = 0.9825
-low = 4; high = 4;
-cout << "Probability of getting between " << low << " and " << high << " answers right by guessing is "
-  <<  cdf(quiz, high) - cdf(quiz, low - 1) << endl; // 4 <= x 4 P = 0.22520
-
-
Probability of getting between 1 and 6 answers right by guessing is 0.9104
-Probability of getting between 1 and 8 answers right by guessing is 0.9825
-Probability of getting between 4 and 4 answers right by guessing is 0.2252
-
-
- - Using - Binomial distribution moments -
-

- Using moments of the distribution, we can say more about the spread of - results from guessing. -

-
cout << "By guessing, on average, one can expect to get " << mean(quiz) << " correct answers." << endl;
-cout << "Standard deviation is " << standard_deviation(quiz) << endl;
-cout << "So about 2/3 will lie within 1 standard deviation and get between "
-  <<  ceil(mean(quiz) - standard_deviation(quiz))  << " and "
-  << floor(mean(quiz) + standard_deviation(quiz)) << " correct." << endl;
-cout << "Mode (the most frequent) is " << mode(quiz) << endl;
-cout << "Skewness is " << skewness(quiz) << endl;
-
-
By guessing, on average, one can expect to get 4 correct answers.
-Standard deviation is 1.732
-So about 2/3 will lie within 1 standard deviation and get between 3 and 5 correct.
-Mode (the most frequent) is 4
-Skewness is 0.2887
-
-
- - Quantiles -
-

- The quantiles (percentiles or percentage points) for a few probability - levels: -

-
cout << "Quartiles " << quantile(quiz, 0.25) << " to "
-  << quantile(complement(quiz, 0.25)) << endl; // Quartiles
-cout << "1 standard deviation " << quantile(quiz, 0.33) << " to "
-  << quantile(quiz, 0.67) << endl; // 1 sd
-cout << "Deciles " << quantile(quiz, 0.1)  << " to "
-  << quantile(complement(quiz, 0.1))<< endl; // Deciles
-cout << "5 to 95% " << quantile(quiz, 0.05)  << " to "
-  << quantile(complement(quiz, 0.05))<< endl; // 5 to 95%
-cout << "2.5 to 97.5% " << quantile(quiz, 0.025) << " to "
-  <<  quantile(complement(quiz, 0.025)) << endl; // 2.5 to 97.5%
-cout << "2 to 98% " << quantile(quiz, 0.02)  << " to "
-  << quantile(complement(quiz, 0.02)) << endl; //  2 to 98%
-
-cout << "If guessing then percentiles 1 to 99% will get " << quantile(quiz, 0.01)
-  << " to " << quantile(complement(quiz, 0.01)) << " right." << endl;
-
-

- Notice that these output integral values because the default policy is - integer_round_outwards. -

-
Quartiles 2 to 5
-1 standard deviation 2 to 5
-Deciles 1 to 6
-5 to 95% 0 to 7
-2.5 to 97.5% 0 to 8
-2 to 98% 0 to 8
-
-

- Quantiles values are controlled by the understanding - discrete quantiles quantile policy chosen. The default is integer_round_outwards, so the lower - quantile is rounded down, and the upper quantile is rounded up. -

-

- But we might believe that the real values tell us a little more - see - discrete functions. -

-

- We could control the policy for all - distributions by -

-
#define BOOST_MATH_DISCRETE_QUANTILE_POLICY real
-
-at the head of the program would make this policy apply
-
-

- to this one, and only, translation unit. -

-

- Or we can now create a (typedef for) policy that has discrete quantiles - real (here avoiding any 'using namespaces ...' statements): -

-
using boost::math::policies::policy;
-using boost::math::policies::discrete_quantile;
-using boost::math::policies::real;
-using boost::math::policies::integer_round_outwards; // Default.
-typedef boost::math::policies::policy<discrete_quantile<real> > real_quantile_policy;
-
-

- Add a custom binomial distribution called -

-
real_quantile_binomial
-

- that uses -

-
real_quantile_policy
-
using boost::math::binomial_distribution;
-typedef binomial_distribution<double, real_quantile_policy> real_quantile_binomial;
-
-

- Construct an object of this custom distribution: -

-
real_quantile_binomial quiz_real(questions, success_fraction);
-
-

- And use this to show some quantiles - that now have real rather than - integer values. -

-
cout << "Quartiles " << quantile(quiz, 0.25) << " to "
-  << quantile(complement(quiz_real, 0.25)) << endl; // Quartiles 2 to 4.6212
-cout << "1 standard deviation " << quantile(quiz_real, 0.33) << " to "
-  << quantile(quiz_real, 0.67) << endl; // 1 sd 2.6654 4.194
-cout << "Deciles " << quantile(quiz_real, 0.1)  << " to "
-  << quantile(complement(quiz_real, 0.1))<< endl; // Deciles 1.3487 5.7583
-cout << "5 to 95% " << quantile(quiz_real, 0.05)  << " to "
-  << quantile(complement(quiz_real, 0.05))<< endl; // 5 to 95% 0.83739 6.4559
-cout << "2.5 to 97.5% " << quantile(quiz_real, 0.025) << " to "
-  <<  quantile(complement(quiz_real, 0.025)) << endl; // 2.5 to 97.5% 0.42806 7.0688
-cout << "2 to 98% " << quantile(quiz_real, 0.02)  << " to "
-  << quantile(complement(quiz_real, 0.02)) << endl; //  2 to 98% 0.31311 7.7880
-
-cout << "If guessing, then percentiles 1 to 99% will get " << quantile(quiz_real, 0.01)
-  << " to " << quantile(complement(quiz_real, 0.01)) << " right." << endl;
-
-
Real Quantiles
-Quartiles 2 to 4.621
-1 standard deviation 2.665 to 4.194
-Deciles 1.349 to 5.758
-5 to 95% 0.8374 to 6.456
-2.5 to 97.5% 0.4281 to 7.069
-2 to 98% 0.3131 to 7.252
-If guessing then percentiles 1 to 99% will get 0 to 7.788 right.
-
-

- See binomial_quiz_example.cpp - for full source code and output. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/c_sharp.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/c_sharp.html deleted file mode 100644 index bec369ff..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/c_sharp.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -Using the Distributions from Within C# - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The distributions in this library can be used from the C# programming language - when they are built using Microsoft's Common Language Runtime (CLR) option. -

-

- An example of this kind of usage is given in the Distribution - Explorer example. See boost-root/libs/math/dot_net_example - for the source code: the application consists of a C++ .dll that contains - the actual distributions, and a C# GUI that allows you to explore their - properties. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg.html deleted file mode 100644 index ac3b4550..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg.html +++ /dev/null @@ -1,55 +0,0 @@ - - - -Chi Squared Distribution Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_intervals.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_intervals.html deleted file mode 100644 index b01b22ca..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_intervals.html +++ /dev/null @@ -1,236 +0,0 @@ - - - -Confidence Intervals on the Standard Deviation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Once you have calculated the standard deviation for your data, a legitimate - question to ask is "How reliable is the calculated standard deviation?". - For this situation the Chi Squared distribution can be used to calculate - confidence intervals for the standard deviation. -

-

- The full example code & sample output is in chi_square_std_dev_test.cpp. -

-

- We'll begin by defining the procedure that will calculate and print out - the confidence intervals: -

-
void confidence_limits_on_std_deviation(
-     double Sd,    // Sample Standard Deviation
-     unsigned N)   // Sample size
-{
-
-

- We'll begin by printing out some general information: -

-
cout <<
-   "________________________________________________\n"
-   "2-Sided Confidence Limits For Standard Deviation\n"
-   "________________________________________________\n\n";
-cout << setprecision(7);
-cout << setw(40) << left << "Number of Observations" << "=  " << N << "\n";
-cout << setw(40) << left << "Standard Deviation" << "=  " << Sd << "\n";
-
-

- and then define a table of significance levels for which we'll calculate - intervals: -

-
double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 };
-
-

- The distribution we'll need to calculate the confidence intervals is - a Chi Squared distribution, with N-1 degrees of freedom: -

-
chi_squared dist(N - 1);
-
-

- For each value of alpha, the formula for the confidence interval is given - by: -

-

- -

-

- Where is the upper critical value, and is - the lower critical value of the Chi Squared distribution. -

-

- In code we begin by printing out a table header: -

-
cout << "\n\n"
-        "_____________________________________________\n"
-        "Confidence          Lower          Upper\n"
-        " Value (%)          Limit          Limit\n"
-        "_____________________________________________\n";
-
-

- and then loop over the values of alpha and calculate the intervals for - each: remember that the lower critical value is the same as the quantile, - and the upper critical value is the same as the quantile from the complement - of the probability: -

-
for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i)
-{
-   // Confidence value:
-   cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]);
-   // Calculate limits:
-   double lower_limit = sqrt((N - 1) * Sd * Sd / quantile(complement(dist, alpha[i] / 2)));
-   double upper_limit = sqrt((N - 1) * Sd * Sd / quantile(dist, alpha[i] / 2));
-   // Print Limits:
-   cout << fixed << setprecision(5) << setw(15) << right << lower_limit;
-   cout << fixed << setprecision(5) << setw(15) << right << upper_limit << endl;
-}
-cout << endl;
-
-

- To see some example output we'll use the gear - data from the NIST/SEMATECH - e-Handbook of Statistical Methods.. The data represents measurements - of gear diameter from a manufacturing process. -

-
________________________________________________
-2-Sided Confidence Limits For Standard Deviation
-________________________________________________
-
-Number of Observations                  =  100
-Standard Deviation                      =  0.006278908
-
-
-_____________________________________________
-Confidence          Lower          Upper
- Value (%)          Limit          Limit
-_____________________________________________
-    50.000        0.00601        0.00662
-    75.000        0.00582        0.00685
-    90.000        0.00563        0.00712
-    95.000        0.00551        0.00729
-    99.000        0.00530        0.00766
-    99.900        0.00507        0.00812
-    99.990        0.00489        0.00855
-    99.999        0.00474        0.00895
-
-

- So at the 95% confidence level we conclude that the standard deviation - is between 0.00551 and 0.00729. -

-
- - Confidence - intervals as a function of the number of observations -
-

- Similarly, we can also list the confidence intervals for the standard - deviation for the common confidence levels 95%, for increasing numbers - of observations. -

-

- The standard deviation used to compute these values is unity, so the - limits listed are multipliers for any - particular standard deviation. For example, given a standard deviation - of 0.0062789 as in the example above; for 100 observations the multiplier - is 0.8780 giving the lower confidence limit of 0.8780 * 0.006728 = 0.00551. -

-
____________________________________________________
-Confidence level (two-sided)            =  0.0500000
-Standard Deviation                      =  1.0000000
-________________________________________
-Observations        Lower          Upper
-                    Limit          Limit
-________________________________________
-         2         0.4461        31.9102
-         3         0.5207         6.2847
-         4         0.5665         3.7285
-         5         0.5991         2.8736
-         6         0.6242         2.4526
-         7         0.6444         2.2021
-         8         0.6612         2.0353
-         9         0.6755         1.9158
-        10         0.6878         1.8256
-        15         0.7321         1.5771
-        20         0.7605         1.4606
-        30         0.7964         1.3443
-        40         0.8192         1.2840
-        50         0.8353         1.2461
-        60         0.8476         1.2197
-       100         0.8780         1.1617
-       120         0.8875         1.1454
-      1000         0.9580         1.0459
-     10000         0.9863         1.0141
-     50000         0.9938         1.0062
-    100000         0.9956         1.0044
-   1000000         0.9986         1.0014
-
-

- With just 2 observations the limits are from 0.445 - up to to 31.9, so the standard deviation - might be about half the observed value - up to 30 times the observed value! -

-

- Estimating a standard deviation with just a handful of values leaves - a very great uncertainty, especially the upper limit. Note especially - how far the upper limit is skewed from the most likely standard deviation. -

-

- Even for 10 observations, normally considered a reasonable number, the - range is still from 0.69 to 1.8, about a range of 0.7 to 2, and is still - highly skewed with an upper limit twice - the median. -

-

- When we have 1000 observations, the estimate of the standard deviation - is starting to look convincing, with a range from 0.95 to 1.05 - now - near symmetrical, but still about + or - 5%. -

-

- Only when we have 10000 or more repeated observations can we start to - be reasonably confident (provided we are sure that other factors like - drift are not creeping in). -

-

- For 10000 observations, the interval is 0.99 to 1.1 - finally a really - convincing + or -1% confidence. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_size.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_size.html deleted file mode 100644 index efc12fde..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_size.html +++ /dev/null @@ -1,182 +0,0 @@ - - - -Estimating the Required Sample Sizes for a Chi-Square Test for the Standard Deviation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Suppose we conduct a Chi Squared test for standard deviation and the - result is borderline, a legitimate question to ask is "How large - would the sample size have to be in order to produce a definitive result?" -

-

- The class template chi_squared_distribution - has a static method find_degrees_of_freedom - that will calculate this value for some acceptable risk of type I failure - alpha, type II failure beta, - and difference from the standard deviation diff. - Please note that the method used works on variance, and not standard - deviation as is usual for the Chi Squared Test. -

-

- The code for this example is located in chi_square_std_dev_test.cpp. -

-

- We begin by defining a procedure to print out the sample sizes required - for various risk levels: -

-
void chi_squared_sample_sized(
-     double diff,      // difference from variance to detect
-     double variance)  // true variance
-{
-
-

- The procedure begins by printing out the input data: -

-
using namespace std;
-using namespace boost::math;
-
-// Print out general info:
-cout <<
-   "_____________________________________________________________\n"
-   "Estimated sample sizes required for various confidence levels\n"
-   "_____________________________________________________________\n\n";
-cout << setprecision(5);
-cout << setw(40) << left << "True Variance" << "=  " << variance << "\n";
-cout << setw(40) << left << "Difference to detect" << "=  " << diff << "\n";
-
-

- And defines a table of significance levels for which we'll calculate - sample sizes: -

-
double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 };
-
-

- For each value of alpha we can calculate two sample sizes: one where - the sample variance is less than the true value by diff - and one where it is greater than the true value by diff. - Thanks to the asymmetric nature of the Chi Squared distribution these - two values will not be the same, the difference in their calculation - differs only in the sign of diff that's passed to - find_degrees_of_freedom. - Finally in this example we'll simply things, and let risk level beta - be the same as alpha: -

-
cout << "\n\n"
-        "_______________________________________________________________\n"
-        "Confidence       Estimated          Estimated\n"
-        " Value (%)      Sample Size        Sample Size\n"
-        "                (lower one         (upper one\n"
-        "                 sided test)        sided test)\n"
-        "_______________________________________________________________\n";
-//
-// Now print out the data for the table rows.
-//
-for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i)
-{
-   // Confidence value:
-   cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]);
-   // calculate df for a lower single sided test:
-   double df = chi_squared::find_degrees_of_freedom(
-      -diff, alpha[i], alpha[i], variance);
-   // convert to sample size:
-   double size = ceil(df) + 1;
-   // Print size:
-   cout << fixed << setprecision(0) << setw(16) << right << size;
-   // calculate df for an upper single sided test:
-   df = chi_squared::find_degrees_of_freedom(
-      diff, alpha[i], alpha[i], variance);
-   // convert to sample size:
-   size = ceil(df) + 1;
-   // Print size:
-   cout << fixed << setprecision(0) << setw(16) << right << size << endl;
-}
-cout << endl;
-
-

- For some example output, consider the silicon - wafer data from the NIST/SEMATECH - e-Handbook of Statistical Methods.. In this scenario a supplier - of 100 ohm.cm silicon wafers claims that his fabrication process can - produce wafers with sufficient consistency so that the standard deviation - of resistivity for the lot does not exceed 10 ohm.cm. A sample of N = - 10 wafers taken from the lot has a standard deviation of 13.97 ohm.cm, - and the question we ask ourselves is "How large would our sample - have to be to reliably detect this difference?". -

-

- To use our procedure above, we have to convert the standard deviations - to variance (square them), after which the program output looks like - this: -

-
_____________________________________________________________
-Estimated sample sizes required for various confidence levels
-_____________________________________________________________
-
-True Variance                           =  100.00000
-Difference to detect                    =  95.16090
-
-
-_______________________________________________________________
-Confidence       Estimated          Estimated
- Value (%)      Sample Size        Sample Size
-                (lower one         (upper one
-                 sided test)        sided test)
-_______________________________________________________________
-    50.000               2               2
-    75.000               2              10
-    90.000               4              32
-    95.000               5              51
-    99.000               7              99
-    99.900              11             174
-    99.990              15             251
-    99.999              20             330
-
-

- In this case we are interested in a upper single sided test. So for example, - if the maximum acceptable risk of falsely rejecting the null-hypothesis - is 0.05 (Type I error), and the maximum acceptable risk of failing to - reject the null-hypothesis is also 0.05 (Type II error), we estimate - that we would need a sample size of 51. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_test.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_test.html deleted file mode 100644 index 6416e691..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_test.html +++ /dev/null @@ -1,297 +0,0 @@ - - - -Chi-Square Test for the Standard Deviation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- We use this test to determine whether the standard deviation of a sample - differs from a specified value. Typically this occurs in process change - situations where we wish to compare the standard deviation of a new process - to an established one. -

-

- The code for this example is contained in chi_square_std_dev_test.cpp, - and we'll begin by defining the procedure that will print out the test - statistics: -

-
void chi_squared_test(
-    double Sd,     // Sample std deviation
-    double D,      // True std deviation
-    unsigned N,    // Sample size
-    double alpha)  // Significance level
-{
-
-

- The procedure begins by printing a summary of the input data: -

-
using namespace std;
-using namespace boost::math;
-
-// Print header:
-cout <<
-   "______________________________________________\n"
-   "Chi Squared test for sample standard deviation\n"
-   "______________________________________________\n\n";
-cout << setprecision(5);
-cout << setw(55) << left << "Number of Observations" << "=  " << N << "\n";
-cout << setw(55) << left << "Sample Standard Deviation" << "=  " << Sd << "\n";
-cout << setw(55) << left << "Expected True Standard Deviation" << "=  " << D << "\n\n";
-
-

- The test statistic (T) is simply the ratio of the sample and "true" - standard deviations squared, multiplied by the number of degrees of freedom - (the sample size less one): -

-
double t_stat = (N - 1) * (Sd / D) * (Sd / D);
-cout << setw(55) << left << "Test Statistic" << "=  " << t_stat << "\n";
-
-

- The distribution we need to use, is a Chi Squared distribution with N-1 - degrees of freedom: -

-
chi_squared dist(N - 1);
-
-

- The various hypothesis that can be tested are summarised in the following - table: -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Hypothesis -

-
-

- Test -

-
-

- The null-hypothesis: there is no difference in standard deviation - from the specified value -

-
-

- Reject if T < χ2(1-alpha/2; N-1) or T > χ2(alpha/2; N-1) -

-
-

- The alternative hypothesis: there is a difference in standard - deviation from the specified value -

-
-

- Reject if χ2(1-alpha/2; N-1) >= T >= χ2(alpha/2; N-1) -

-
-

- The alternative hypothesis: the standard deviation is less - than the specified value -

-
-

- Reject if χ2(1-alpha; N-1) <= T -

-
-

- The alternative hypothesis: the standard deviation is greater - than the specified value -

-
-

- Reject if χ2(alpha; N-1) >= T -

-
-

- Where χ2(alpha; N-1) is the upper critical value of the Chi Squared distribution, - and χ2(1-alpha; N-1) is the lower critical value. -

-

- Recall that the lower critical value is the same as the quantile, and - the upper critical value is the same as the quantile from the complement - of the probability, that gives us the following code to calculate the - critical values: -

-
double ucv = quantile(complement(dist, alpha));
-double ucv2 = quantile(complement(dist, alpha / 2));
-double lcv = quantile(dist, alpha);
-double lcv2 = quantile(dist, alpha / 2);
-cout << setw(55) << left << "Upper Critical Value at alpha: " << "=  "
-   << setprecision(3) << scientific << ucv << "\n";
-cout << setw(55) << left << "Upper Critical Value at alpha/2: " << "=  "
-   << setprecision(3) << scientific << ucv2 << "\n";
-cout << setw(55) << left << "Lower Critical Value at alpha: " << "=  "
-   << setprecision(3) << scientific << lcv << "\n";
-cout << setw(55) << left << "Lower Critical Value at alpha/2: " << "=  "
-   << setprecision(3) << scientific << lcv2 << "\n\n";
-
-

- Now that we have the critical values, we can compare these to our test - statistic, and print out the result of each hypothesis and test: -

-
cout << setw(55) << left <<
-   "Results for Alternative Hypothesis and alpha" << "=  "
-   << setprecision(4) << fixed << alpha << "\n\n";
-cout << "Alternative Hypothesis              Conclusion\n";
-
-cout << "Standard Deviation != " << setprecision(3) << fixed << D << "            ";
-if((ucv2 < t_stat) || (lcv2 > t_stat))
-   cout << "ACCEPTED\n";
-else
-   cout << "REJECTED\n";
-
-cout << "Standard Deviation  < " << setprecision(3) << fixed << D << "            ";
-if(lcv > t_stat)
-   cout << "ACCEPTED\n";
-else
-   cout << "REJECTED\n";
-
-cout << "Standard Deviation  > " << setprecision(3) << fixed << D << "            ";
-if(ucv < t_stat)
-   cout << "ACCEPTED\n";
-else
-   cout << "REJECTED\n";
-cout << endl << endl;
-
-

- To see some example output we'll use the gear - data from the NIST/SEMATECH - e-Handbook of Statistical Methods.. The data represents measurements - of gear diameter from a manufacturing process. The program output is - deliberately designed to mirror the DATAPLOT output shown in the NIST - Handbook Example. -

-
______________________________________________
-Chi Squared test for sample standard deviation
-______________________________________________
-
-Number of Observations                                 =  100
-Sample Standard Deviation                              =  0.00628
-Expected True Standard Deviation                       =  0.10000
-
-Test Statistic                                         =  0.39030
-CDF of test statistic:                                 =  1.438e-099
-Upper Critical Value at alpha:                         =  1.232e+002
-Upper Critical Value at alpha/2:                       =  1.284e+002
-Lower Critical Value at alpha:                         =  7.705e+001
-Lower Critical Value at alpha/2:                       =  7.336e+001
-
-Results for Alternative Hypothesis and alpha           =  0.0500
-
-Alternative Hypothesis              Conclusion
-Standard Deviation != 0.100            ACCEPTED
-Standard Deviation  < 0.100            ACCEPTED
-Standard Deviation  > 0.100            REJECTED
-
-

- In this case we are testing whether the sample standard deviation is - 0.1, and the null-hypothesis is rejected, so we conclude that the standard - deviation is not 0.1. -

-

- For an alternative example, consider the silicon - wafer data again from the NIST/SEMATECH - e-Handbook of Statistical Methods.. In this scenario a supplier - of 100 ohm.cm silicon wafers claims that his fabrication process can - produce wafers with sufficient consistency so that the standard deviation - of resistivity for the lot does not exceed 10 ohm.cm. A sample of N = - 10 wafers taken from the lot has a standard deviation of 13.97 ohm.cm, - and the question we ask ourselves is "Is the suppliers claim correct?". -

-

- The program output now looks like this: -

-
______________________________________________
-Chi Squared test for sample standard deviation
-______________________________________________
-
-Number of Observations                                 =  10
-Sample Standard Deviation                              =  13.97000
-Expected True Standard Deviation                       =  10.00000
-
-Test Statistic                                         =  17.56448
-CDF of test statistic:                                 =  9.594e-001
-Upper Critical Value at alpha:                         =  1.692e+001
-Upper Critical Value at alpha/2:                       =  1.902e+001
-Lower Critical Value at alpha:                         =  3.325e+000
-Lower Critical Value at alpha/2:                       =  2.700e+000
-
-Results for Alternative Hypothesis and alpha           =  0.0500
-
-Alternative Hypothesis              Conclusion
-Standard Deviation != 10.000            REJECTED
-Standard Deviation  < 10.000            REJECTED
-Standard Deviation  > 10.000            ACCEPTED
-
-

- In this case, our null-hypothesis is that the standard deviation of the - sample is less than 10: this hypothesis is rejected in the analysis above, - and so we reject the manufacturers claim. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/dist_construct_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/dist_construct_eg.html deleted file mode 100644 index ce0b91d8..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/dist_construct_eg.html +++ /dev/null @@ -1,333 +0,0 @@ - - - -Distribution Construction Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The structure of distributions is rather different from some other statistical - libraries, for example, those written in less object-oriented language - like FORTRAN and C: these provide a few arguments to each free function. -

-

- Boost.Math library provides each distribution as a template C++ class. - A distribution is constructed with a few arguments, and then member and - non-member functions are used to find values of the distribution, often - a function of a random variate. -

-

- For this demonstration, first we need some includes to access the negative - binomial distribution (and the binomial, beta and gamma distributions too). -

-

- To demonstrate the use with a high precision User-defined floating-point - type cpp_dec_float we also - need an include from Boost.Multiprecision. -

-
#include <boost/math/distributions/negative_binomial.hpp> // for negative_binomial_distribution
-  using boost::math::negative_binomial_distribution; // default type is double.
-  using boost::math::negative_binomial; // typedef provides default type is double.
-#include <boost/math/distributions/binomial.hpp> // for binomial_distribution.
-#include <boost/math/distributions/beta.hpp> // for beta_distribution.
-#include <boost/math/distributions/gamma.hpp> // for gamma_distribution.
-#include <boost/math/distributions/normal.hpp> // for normal_distribution.
-
-#include <boost/multiprecision/cpp_dec_float.hpp> // for cpp_dec_float_100
-
-

- Several examples of constructing distributions follow: -

-

- First, a negative binomial distribution with 8 successes and a success - fraction 0.25, 25% or 1 in 4, is constructed like this: -

-
boost::math::negative_binomial_distribution<double> mydist0(8., 0.25);
-
-

- But this is inconveniently long, so we might be tempted to write -

-
using namespace boost::math;
-
-

- but this might risk ambiguity with names in std - random so much - better is explicit using boost::math:: - statements, for example: -

-
using boost::math::negative_binomial_distribution;
-
-

- and we can still reduce typing. -

-

- Since the vast majority of applications use will be using double precision, the template argument - to the distribution (RealType) - defaults to type double, so - we can also write: -

-
negative_binomial_distribution<> mydist9(8., 0.25); // Uses default `RealType = double`.
-
-

- But the name negative_binomial_distribution - is still inconveniently long, so, for most distributions, a convenience - typedef is provided, for example: -

-
typedef negative_binomial_distribution<double> negative_binomial; // Reserved name of type double.
-
-
- - - - - -
[Caution]Caution

- This convenience typedef is not provided - if a clash would occur with the name of a function: currently only beta and gamma - fall into this category. -

-

- So, after a using statement, -

-
using boost::math::negative_binomial;
-
-

- we have a convenient typedef to negative_binomial_distribution<double>: -

-
negative_binomial mydist(8., 0.25);
-
-

- Some more examples using the convenience typedef: -

-
negative_binomial mydist10(5., 0.4); // Both arguments double.
-
-

- And automatic conversion takes place, so you can use integers and floats: -

-
negative_binomial mydist11(5, 0.4); // Using provided typedef double, int and double arguments.
-
-

- This is probably the most common usage. -

-
negative_binomial mydist12(5., 0.4F); // Double and float arguments.
-negative_binomial mydist13(5, 1); // Both arguments integer.
-
-

- Similarly for most other distributions like the binomial. -

-
binomial mybinomial(1, 0.5); // is more concise than
-binomial_distribution<> mybinomd1(1, 0.5);
-
-

- For cases when the typdef distribution name would clash with a math special - function (currently only beta and gamma) the typedef is deliberately not - provided, and the longer version of the name must be used. For example - do not use: -

-
using boost::math::beta;
-beta mybetad0(1, 0.5); // Error beta is a math FUNCTION!
-
-

- Which produces the error messages: -

-
error C2146: syntax error : missing ';' before identifier 'mybetad0'
-warning C4551: function call missing argument list
-error C3861: 'mybetad0': identifier not found
-
-

- Instead you should use: -

-
using boost::math::beta_distribution;
-beta_distribution<> mybetad1(1, 0.5);
-
-

- or for the gamma distribution: -

-
gamma_distribution<> mygammad1(1, 0.5);
-
-

- We can, of course, still provide the type explicitly thus: -

-
// Explicit double precision:  both arguments are double:
-negative_binomial_distribution<double>        mydist1(8., 0.25);
-
-// Explicit float precision, double arguments are truncated to float:
-negative_binomial_distribution<float>         mydist2(8., 0.25);
-
-// Explicit float precision, integer & double arguments converted to float:
-negative_binomial_distribution<float>         mydist3(8, 0.25);
-
-// Explicit float precision, float arguments, so no conversion:
-negative_binomial_distribution<float>         mydist4(8.F, 0.25F);
-
-// Explicit float precision, integer arguments promoted to float.
-negative_binomial_distribution<float>         mydist5(8, 1);
-
-// Explicit double precision:
-negative_binomial_distribution<double>        mydist6(8., 0.25);
-
-// Explicit long double precision:
-negative_binomial_distribution<long double>   mydist7(8., 0.25);
-
-

- And you can use your own RealType, for example, boost::math::cpp_dec_float_50 - (an arbitrary 50 decimal digits precision type), then we can write: -

-
 using namespace boost::multiprecision;
-
- negative_binomial_distribution<cpp_dec_float_50>  mydist8(8, 0.25);
- // `integer` arguments are promoted to your RealType exactly, but
- // `double` argument are converted to RealType,
- // possibly losing precision, so don't write:
-
- negative_binomial_distribution<cpp_dec_float_50>  mydist20(8, 0.23456789012345678901234567890);
-// to avoid truncation of second parameter to `0.2345678901234567`.
-
- negative_binomial_distribution<cpp_dec_float_50>  mydist21(8, cpp_dec_float_50("0.23456789012345678901234567890") );
-
- // Ensure that all potentially significant digits are shown.
- std::cout.precision(std::numeric_limits<cpp_dec_float_50>::digits10);
- cpp_dec_float_50 x("1.23456789012345678901234567890");
- std::cout << pdf(mydist8, x) << std::endl;
-
-
showing  0.00012630010495970320103876754721976419438231705359935
-
-
- - - - - -
[Warning]Warning

- When using multiprecision, it is all too easy to get accidental truncation! -

-

- For example, if you write -

-
std::cout << pdf(mydist8, 1.23456789012345678901234567890) << std::endl;
-
-

- showing 0.00012630010495970318465064569310967179576805651692929, which - is wrong at about the 17th decimal digit! -

-

- This is because the value provided is truncated to a double, - effectively double x - = 1.23456789012345678901234567890; -

-

- Then the now double x - is passed to function pdf, - and this truncated double - value is finally promoted to cpp_dec_float_50. -

-

- Another way of quietly getting the wrong answer is to write: -

-
std::cout << pdf(mydist8, cpp_dec_float_50(1.23456789012345678901234567890)) << std::endl;
-
-

- A correct way from a multi-digit string value is -

-
std::cout << pdf(mydist8, cpp_dec_float_50("1.23456789012345678901234567890")) << std::endl;
-
-
- - - - - -
[Tip]Tip

- Getting about 17 decimal digits followed by many zeros is often a sign - of accidental truncation. -

-
- - Default - arguments to distribution constructors. -
-

- Note that default constructor arguments are only provided for some distributions. - So if you wrongly assume a default argument, you will get an error message, - for example: -

-
negative_binomial_distribution<> mydist8;
-
-
error C2512 no appropriate default constructor available.
-

- No default constructors are provided for the negative - binomial distribution, because - it is difficult to chose any sensible default values for this distribution. -

-

- For other distributions, like the normal distribution, it is obviously - very useful to provide 'standard' defaults for the mean (zero) and standard - deviation (unity) thus: -

-
normal_distribution(RealType mean = 0, RealType sd = 1);
-
-

- So in this case we can write: -

-
  using boost::math::normal;
-
-  normal norm1;       // Standard normal distribution.
-  normal norm2(2);    // Mean = 2, std deviation = 1.
-  normal norm3(2, 3); // Mean = 2, std deviation = 3.
-
-  }
-  catch(std::exception &ex)
-  {
-    std::cout << ex.what() << std::endl;
-  }
-
-  return 0;
-}  // int main()
-
-

- There is no useful output from this demonstration program, of course. -

-

- See distribution_construction.cpp - for full source code. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/error_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/error_eg.html deleted file mode 100644 index c2fb76bd..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/error_eg.html +++ /dev/null @@ -1,206 +0,0 @@ - - - -Error Handling Example - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- See error handling documentation - for a detailed explanation of the mechanism of handling errors, including - the common "bad" arguments to distributions and functions, and - how to use Policies to control it. -

-

- But, by default, exceptions will be raised, - for domain errors, pole errors, numeric overflow, and internal evaluation - errors. To avoid the exceptions from getting thrown and instead get an - appropriate value returned, usually a NaN (domain errors pole errors or - internal errors), or infinity (from overflow), you need to change the policy. -

-

- The following example demonstrates the effect of setting the macro BOOST_MATH_DOMAIN_ERROR_POLICY - when an invalid argument is encountered. For the purposes of this example, - we'll pass a negative degrees of freedom parameter to the student's t distribution. -

-

- Since we know that this is a single file program we could just add: -

-
#define BOOST_MATH_DOMAIN_ERROR_POLICY ignore_error
-
-

- to the top of the source file to change the default policy to one that - simply returns a NaN when a domain error occurs. Alternatively we could - use: -

-
#define BOOST_MATH_DOMAIN_ERROR_POLICY errno_on_error
-
-

- To ensure the ::errno - is set when a domain error occurs as well as returning a NaN. -

-

- This is safe provided the program consists of a single translation unit - and we place the define before - any #includes. Note that should we add the define after the includes then - it will have no effect! A warning such as: -

-
warning C4005: 'BOOST_MATH_OVERFLOW_ERROR_POLICY' : macro redefinition
-

- is a certain sign that it will not have the desired - effect. -

-

- We'll begin our sample program with the needed includes: -

-
   #define BOOST_MATH_DOMAIN_ERROR_POLICY ignore_error
-
-// Boost
-#include <boost/math/distributions/students_t.hpp>
-   using boost::math::students_t;  // Probability of students_t(df, t).
-
-// std
-#include <iostream>
-   using std::cout;
-   using std::endl;
-
-#include <stdexcept>
-
-
-#include <cstddef>
-   // using ::errno
-
-

- Next we'll define the program's main() to call the student's t distribution - with an invalid degrees of freedom parameter, the program is set up to - handle either an exception or a NaN: -

-
int main()
-{
-   cout << "Example error handling using Student's t function. " << endl;
-   cout << "BOOST_MATH_DOMAIN_ERROR_POLICY is set to: "
-      << BOOST_STRINGIZE(BOOST_MATH_DOMAIN_ERROR_POLICY) << endl;
-
-   double degrees_of_freedom = -1; // A bad argument!
-   double t = 10;
-
-   try
-   {
-      errno = 0; // Clear/reset.
-      students_t dist(degrees_of_freedom); // exception is thrown here if enabled.
-      double p = cdf(dist, t);
-      // Test for error reported by other means:
-      if((boost::math::isnan)(p))
-      {
-         cout << "cdf returned a NaN!" << endl;
-         if (errno != 0)
-         { // So errno has been set.
-           cout << "errno is set to: " << errno << endl;
-         }
-      }
-      else
-         cout << "Probability of Student's t is " << p << endl;
-   }
-   catch(const std::exception& e)
-   {
-      std::cout <<
-         "\n""Message from thrown exception was:\n   " << e.what() << std::endl;
-   }
-   return 0;
-} // int main()
-
-

- Here's what the program output looks like with a default build (one that - does throw exceptions): -

-
Example error handling using Student's t function.
-BOOST_MATH_DOMAIN_ERROR_POLICY is set to: throw_on_error
-
-Message from thrown exception was:
-   Error in function boost::math::students_t_distribution<double>::students_t_distribution:
-   Degrees of freedom argument is -1, but must be > 0 !
-
-

- Alternatively let's build with: -

-
#define BOOST_MATH_DOMAIN_ERROR_POLICY ignore_error
-
-

- Now the program output is: -

-
Example error handling using Student's t function.
-BOOST_MATH_DOMAIN_ERROR_POLICY is set to: ignore_error
-cdf returned a NaN!
-
-

- And finally let's build with: -

-
#define BOOST_MATH_DOMAIN_ERROR_POLICY errno_on_error
-
-

- Which gives the output show errno: -

-
Example error handling using Student's t function.
-BOOST_MATH_DOMAIN_ERROR_POLICY is set to: errno_on_error
-cdf returned a NaN!
-errno is set to: 33
-
-
- - - - - -
[Caution]Caution
-

- If throwing of exceptions is enabled (the default) but you do not have try & catch block, then the program - will terminate with an uncaught exception and probably abort. -

-

- Therefore to get the benefit of helpful error messages, enabling all exceptions and using try & catch is recommended - for most applications. -

-

- However, for simplicity, the is not done for most examples. -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/f_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/f_eg.html deleted file mode 100644 index 73e26829..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/f_eg.html +++ /dev/null @@ -1,329 +0,0 @@ - - - -F Distribution Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Imagine that you want to compare the standard deviations of two sample - to determine if they differ in any significant way, in this situation you - use the F distribution and perform an F-test. This situation commonly occurs - when conducting a process change comparison: "is a new process more - consistent that the old one?". -

-

- In this example we'll be using the data for ceramic strength from http://www.itl.nist.gov/div898/handbook/eda/section4/eda42a1.htm. - The data for this case study were collected by Said Jahanmir of the NIST - Ceramics Division in 1996 in connection with a NIST/industry ceramics consortium - for strength optimization of ceramic strength. -

-

- The example program is f_test.cpp, - program output has been deliberately made as similar as possible to the - DATAPLOT output in the corresponding NIST - EngineeringStatistics Handbook example. -

-

- We'll begin by defining the procedure to conduct the test: -

-
void f_test(
-    double sd1,     // Sample 1 std deviation
-    double sd2,     // Sample 2 std deviation
-    double N1,      // Sample 1 size
-    double N2,      // Sample 2 size
-    double alpha)  // Significance level
-{
-
-

- The procedure begins by printing out a summary of our input data: -

-
using namespace std;
-using namespace boost::math;
-
-// Print header:
-cout <<
-   "____________________________________\n"
-   "F test for equal standard deviations\n"
-   "____________________________________\n\n";
-cout << setprecision(5);
-cout << "Sample 1:\n";
-cout << setw(55) << left << "Number of Observations" << "=  " << N1 << "\n";
-cout << setw(55) << left << "Sample Standard Deviation" << "=  " << sd1 << "\n\n";
-cout << "Sample 2:\n";
-cout << setw(55) << left << "Number of Observations" << "=  " << N2 << "\n";
-cout << setw(55) << left << "Sample Standard Deviation" << "=  " << sd2 << "\n\n";
-
-

- The test statistic for an F-test is simply the ratio of the square of the - two standard deviations: -

-

- F = s12 / s22 -

-

- where s1 is the standard deviation of the first sample and s2 -is the standard - deviation of the second sample. Or in code: -

-
double F = (sd1 / sd2);
-F *= F;
-cout << setw(55) << left << "Test Statistic" << "=  " << F << "\n\n";
-
-

- At this point a word of caution: the F distribution is asymmetric, so we - have to be careful how we compute the tests, the following table summarises - the options available: -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Hypothesis -

-
-

- Test -

-
-

- The null-hypothesis: there is no difference in standard deviations - (two sided test) -

-
-

- Reject if F <= F(1-alpha/2; N1-1, N2-1) or F >= F(alpha/2; - N1-1, N2-1) -

-
-

- The alternative hypothesis: there is a difference in means (two - sided test) -

-
-

- Reject if F(1-alpha/2; N1-1, N2-1) <= F <= F(alpha/2; N1-1, - N2-1) -

-
-

- The alternative hypothesis: Standard deviation of sample 1 is - greater than that of sample 2 -

-
-

- Reject if F < F(alpha; N1-1, N2-1) -

-
-

- The alternative hypothesis: Standard deviation of sample 1 is - less than that of sample 2 -

-
-

- Reject if F > F(1-alpha; N1-1, N2-1) -

-
-

- Where F(1-alpha; N1-1, N2-1) is the lower critical value of the F distribution - with degrees of freedom N1-1 and N2-1, and F(alpha; N1-1, N2-1) is the upper - critical value of the F distribution with degrees of freedom N1-1 and N2-1. -

-

- The upper and lower critical values can be computed using the quantile - function: -

-

- F(1-alpha; N1-1, N2-1) = quantile(fisher_f(N1-1, N2-1), - alpha) -

-

- F(alpha; N1-1, N2-1) = quantile(complement(fisher_f(N1-1, N2-1), - alpha)) -

-

- In our example program we need both upper and lower critical values for - alpha and for alpha/2: -

-
double ucv = quantile(complement(dist, alpha));
-double ucv2 = quantile(complement(dist, alpha / 2));
-double lcv = quantile(dist, alpha);
-double lcv2 = quantile(dist, alpha / 2);
-cout << setw(55) << left << "Upper Critical Value at alpha: " << "=  "
-   << setprecision(3) << scientific << ucv << "\n";
-cout << setw(55) << left << "Upper Critical Value at alpha/2: " << "=  "
-   << setprecision(3) << scientific << ucv2 << "\n";
-cout << setw(55) << left << "Lower Critical Value at alpha: " << "=  "
-   << setprecision(3) << scientific << lcv << "\n";
-cout << setw(55) << left << "Lower Critical Value at alpha/2: " << "=  "
-   << setprecision(3) << scientific << lcv2 << "\n\n";
-
-

- The final step is to perform the comparisons given above, and print out - whether the hypothesis is rejected or not: -

-
cout << setw(55) << left <<
-   "Results for Alternative Hypothesis and alpha" << "=  "
-   << setprecision(4) << fixed << alpha << "\n\n";
-cout << "Alternative Hypothesis                                    Conclusion\n";
-
-cout << "Standard deviations are unequal (two sided test)          ";
-if((ucv2 < F) || (lcv2 > F))
-   cout << "ACCEPTED\n";
-else
-   cout << "REJECTED\n";
-
-cout << "Standard deviation 1 is less than standard deviation 2    ";
-if(lcv > F)
-   cout << "ACCEPTED\n";
-else
-   cout << "REJECTED\n";
-
-cout << "Standard deviation 1 is greater than standard deviation 2 ";
-if(ucv < F)
-   cout << "ACCEPTED\n";
-else
-   cout << "REJECTED\n";
-cout << endl << endl;
-
-

- Using the ceramic strength data as an example we get the following output: -

-
F test for equal standard deviations
-____________________________________
-
-Sample 1:
-Number of Observations                                 =  240
-Sample Standard Deviation                              =  65.549
-
-Sample 2:
-Number of Observations                                 =  240
-Sample Standard Deviation                              =  61.854
-
-Test Statistic                                         =  1.123
-
-CDF of test statistic:                                 =  8.148e-001
-Upper Critical Value at alpha:                         =  1.238e+000
-Upper Critical Value at alpha/2:                       =  1.289e+000
-Lower Critical Value at alpha:                         =  8.080e-001
-Lower Critical Value at alpha/2:                       =  7.756e-001
-
-Results for Alternative Hypothesis and alpha           =  0.0500
-
-Alternative Hypothesis                                    Conclusion
-Standard deviations are unequal (two sided test)          REJECTED
-Standard deviation 1 is less than standard deviation 2    REJECTED
-Standard deviation 1 is greater than standard deviation 2 REJECTED
-
-

- In this case we are unable to reject the null-hypothesis, and must instead - reject the alternative hypothesis. -

-

- By contrast let's see what happens when we use some different sample - data:, once again from the NIST Engineering Statistics Handbook: - A new procedure to assemble a device is introduced and tested for possible - improvement in time of assembly. The question being addressed is whether - the standard deviation of the new assembly process (sample 2) is better - (i.e., smaller) than the standard deviation for the old assembly process - (sample 1). -

-
____________________________________
-F test for equal standard deviations
-____________________________________
-
-Sample 1:
-Number of Observations                                 =  11.00000
-Sample Standard Deviation                              =  4.90820
-
-Sample 2:
-Number of Observations                                 =  9.00000
-Sample Standard Deviation                              =  2.58740
-
-Test Statistic                                         =  3.59847
-
-CDF of test statistic:                                 =  9.589e-001
-Upper Critical Value at alpha:                         =  3.347e+000
-Upper Critical Value at alpha/2:                       =  4.295e+000
-Lower Critical Value at alpha:                         =  3.256e-001
-Lower Critical Value at alpha/2:                       =  2.594e-001
-
-Results for Alternative Hypothesis and alpha           =  0.0500
-
-Alternative Hypothesis                                    Conclusion
-Standard deviations are unequal (two sided test)          REJECTED
-Standard deviation 1 is less than standard deviation 2    REJECTED
-Standard deviation 1 is greater than standard deviation 2 ACCEPTED
-
-

- In this case we take our null hypothesis as "standard deviation 1 - is less than or equal to standard deviation 2", since this represents - the "no change" situation. So we want to compare the upper critical - value at alpha (a one sided test) with the test statistic, - and since 3.35 < 3.6 this hypothesis must be rejected. We therefore - conclude that there is a change for the better in our standard deviation. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg.html deleted file mode 100644 index 0a292557..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg.html +++ /dev/null @@ -1,55 +0,0 @@ - - - -Find Location and Scale Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_location_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_location_eg.html deleted file mode 100644 index 6a326882..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_location_eg.html +++ /dev/null @@ -1,190 +0,0 @@ - - - -Find Location (Mean) Example - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- First we need some includes to access the normal distribution, the algorithms - to find location (and some std output of course). -

-
#include <boost/math/distributions/normal.hpp> // for normal_distribution
-  using boost::math::normal; // typedef provides default type is double.
-#include <boost/math/distributions/cauchy.hpp> // for cauchy_distribution
-  using boost::math::cauchy; // typedef provides default type is double.
-#include <boost/math/distributions/find_location.hpp>
-  using boost::math::find_location; // for mean
-#include <boost/math/distributions/find_scale.hpp>
-  using boost::math::find_scale; // for standard devation
-  using boost::math::complement; // Needed if you want to use the complement version.
-  using boost::math::policies::policy;
-
-#include <iostream>
-  using std::cout; using std::endl;
-#include <iomanip>
-  using std::setw; using std::setprecision;
-#include <limits>
-  using std::numeric_limits;
-
-

- For this example, we will use the standard normal distribution, with - mean (location) zero and standard deviation (scale) unity. This is also - the default for this implementation. -

-
normal N01;  // Default 'standard' normal distribution with zero mean and
-double sd = 1.; // normal default standard deviation is 1.
-
-

- Suppose we want to find a different normal distribution whose mean is - shifted so that only fraction p (here 0.001 or 0.1%) are below a certain - chosen limit (here -2, two standard deviations). -

-
double z = -2.; // z to give prob p
-double p = 0.001; // only 0.1% below z
-
-cout << "Normal distribution with mean = " << N01.location()
-  << ", standard deviation " << N01.scale()
-  << ", has " << "fraction <= " << z
-  << ", p = "  << cdf(N01, z) << endl;
-cout << "Normal distribution with mean = " << N01.location()
-  << ", standard deviation " << N01.scale()
-  << ", has " << "fraction > " << z
-  << ", p = "  << cdf(complement(N01, z)) << endl; // Note: uses complement.
-
-
Normal distribution with mean = 0, standard deviation 1, has fraction <= -2, p = 0.0227501
-Normal distribution with mean = 0, standard deviation 1, has fraction > -2, p = 0.97725
-
-

- We can now use ''find_location'' to give a new offset mean. -

-
double l = find_location<normal>(z, p, sd);
-cout << "offset location (mean) = " << l << endl;
-
-

- that outputs: -

-
offset location (mean) = 1.09023
-
-

- showing that we need to shift the mean just over one standard deviation - from its previous value of zero. -

-

- Then we can check that we have achieved our objective by constructing - a new distribution with the offset mean (but same standard deviation): -

-
normal np001pc(l, sd); // Same standard_deviation (scale) but with mean (location) shifted.
-
-

- And re-calculating the fraction below our chosen limit. -

-
cout << "Normal distribution with mean = " << l
-    << " has " << "fraction <= " << z
-    << ", p = "  << cdf(np001pc, z) << endl;
-  cout << "Normal distribution with mean = " << l
-    << " has " << "fraction > " << z
-    << ", p = "  << cdf(complement(np001pc, z)) << endl;
-
-
Normal distribution with mean = 1.09023 has fraction <= -2, p = 0.001
-Normal distribution with mean = 1.09023 has fraction > -2, p = 0.999
-
-
- - Controlling - Error Handling from find_location -
-

- We can also control the policy for handling various errors. For example, - we can define a new (possibly unwise) policy to ignore domain errors - ('bad' arguments). -

-

- Unless we are using the boost::math namespace, we will need: -

-
using boost::math::policies::policy;
-using boost::math::policies::domain_error;
-using boost::math::policies::ignore_error;
-
-

- Using a typedef is often convenient, especially if it is re-used, although - it is not required, as the various examples below show. -

-
typedef policy<domain_error<ignore_error> > ignore_domain_policy;
-// find_location with new policy, using typedef.
-l = find_location<normal>(z, p, sd, ignore_domain_policy());
-// Default policy policy<>, needs "using boost::math::policies::policy;"
-l = find_location<normal>(z, p, sd, policy<>());
-// Default policy, fully specified.
-l = find_location<normal>(z, p, sd, boost::math::policies::policy<>());
-// A new policy, ignoring domain errors, without using a typedef.
-l = find_location<normal>(z, p, sd, policy<domain_error<ignore_error> >());
-
-

- If we want to use a probability that is the complements - of our probability, we should not even think of writing find_location<normal>(z, 1 - p, sd), but use the complement version, see - why complements?. -

-
z = 2.;
-double q = 0.95; // = 1 - p; // complement.
-l = find_location<normal>(complement(z, q, sd));
-
-normal np95pc(l, sd); // Same standard_deviation (scale) but with mean(location) shifted
-cout << "Normal distribution with mean = " << l << " has "
-  << "fraction <= " << z << " = "  << cdf(np95pc, z) << endl;
-cout << "Normal distribution with mean = " << l << " has "
-  << "fraction > " << z << " = "  << cdf(complement(np95pc, z)) << endl;
-
-

- See find_location_example.cpp - for full source code: the program output looks like this: -

-
Example: Find location (mean).
-Normal distribution with mean = 0, standard deviation 1, has fraction <= -2, p = 0.0227501
-Normal distribution with mean = 0, standard deviation 1, has fraction > -2, p = 0.97725
-offset location (mean) = 1.09023
-Normal distribution with mean = 1.09023 has fraction <= -2, p = 0.001
-Normal distribution with mean = 1.09023 has fraction > -2, p = 0.999
-Normal distribution with mean = 0.355146 has fraction <= 2 = 0.95
-Normal distribution with mean = 0.355146 has fraction > 2 = 0.05
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_mean_and_sd_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_mean_and_sd_eg.html deleted file mode 100644 index 7e2f93d3..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_mean_and_sd_eg.html +++ /dev/null @@ -1,455 +0,0 @@ - - - -Find mean and standard deviation example - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- First we need some includes to access the normal distribution, the algorithms - to find location and scale (and some std output of course). -

-
#include <boost/math/distributions/normal.hpp> // for normal_distribution
-  using boost::math::normal; // typedef provides default type is double.
-#include <boost/math/distributions/cauchy.hpp> // for cauchy_distribution
-  using boost::math::cauchy; // typedef provides default type is double.
-#include <boost/math/distributions/find_location.hpp>
-  using boost::math::find_location;
-#include <boost/math/distributions/find_scale.hpp>
-  using boost::math::find_scale;
-  using boost::math::complement;
-  using boost::math::policies::policy;
-
-#include <iostream>
-  using std::cout; using std::endl; using std::left; using std::showpoint; using std::noshowpoint;
-#include <iomanip>
-  using std::setw; using std::setprecision;
-#include <limits>
-  using std::numeric_limits;
-#include <stdexcept>
-
-
- - Using - find_location and find_scale to meet dispensing and measurement specifications -
-

- Consider an example from K Krishnamoorthy, Handbook of Statistical Distributions - with Applications, ISBN 1-58488-635-8, (2006) p 126, example 10.3.7. -

-

- "A machine is set to pack 3 kg of ground beef per pack. Over a long - period of time it is found that the average packed was 3 kg with a standard - deviation of 0.1 kg. Assume the packing is normally distributed." -

-

- We start by constructing a normal distribution with the given parameters: -

-
double mean = 3.; // kg
-double standard_deviation = 0.1; // kg
-normal packs(mean, standard_deviation);
-
-

- We can then find the fraction (or %) of packages that weigh more than - 3.1 kg. -

-
double max_weight = 3.1; // kg
-cout << "Percentage of packs > " << max_weight << " is "
-<< cdf(complement(packs, max_weight)) * 100. << endl; // P(X > 3.1)
-
-

- We might want to ensure that 95% of packs are over a minimum weight specification, - then we want the value of the mean such that P(X < 2.9) = 0.05. -

-

- Using the mean of 3 kg, we can estimate the fraction of packs that fail - to meet the specification of 2.9 kg. -

-
double minimum_weight = 2.9;
-cout <<"Fraction of packs <= " << minimum_weight << " with a mean of " << mean
-  << " is " << cdf(complement(packs, minimum_weight)) << endl;
-// fraction of packs <= 2.9 with a mean of 3 is 0.841345
-
-

- This is 0.84 - more than the target fraction of 0.95. If we want 95% - to be over the minimum weight, what should we set the mean weight to - be? -

-

- Using the KK StatCalc program supplied with the book and the method given - on page 126 gives 3.06449. -

-

- We can confirm this by constructing a new distribution which we call - 'xpacks' with a safety margin mean of 3.06449 thus: -

-
double over_mean = 3.06449;
-normal xpacks(over_mean, standard_deviation);
-cout << "Fraction of packs >= " << minimum_weight
-<< " with a mean of " << xpacks.mean()
-  << " is " << cdf(complement(xpacks, minimum_weight)) << endl;
-// fraction of packs >= 2.9 with a mean of 3.06449 is 0.950005
-
-

- Using this Math Toolkit, we can calculate the required mean directly - thus: -

-
double under_fraction = 0.05;  // so 95% are above the minimum weight mean - sd = 2.9
-double low_limit = standard_deviation;
-double offset = mean - low_limit - quantile(packs, under_fraction);
-double nominal_mean = mean + offset;
-// mean + (mean - low_limit - quantile(packs, under_fraction));
-
-normal nominal_packs(nominal_mean, standard_deviation);
-cout << "Setting the packer to " << nominal_mean << " will mean that "
-  << "fraction of packs >= " << minimum_weight
-  << " is " << cdf(complement(nominal_packs, minimum_weight)) << endl;
-// Setting the packer to 3.06449 will mean that fraction of packs >= 2.9 is 0.95
-
-

- This calculation is generalized as the free function called find_location, see algorithms. -

-

- To use this we will need to -

-
#include <boost/math/distributions/find_location.hpp>
-  using boost::math::find_location;
-
-

- and then use find_location function to find safe_mean, & construct - a new normal distribution called 'goodpacks'. -

-
double safe_mean = find_location<normal>(minimum_weight, under_fraction, standard_deviation);
-normal good_packs(safe_mean, standard_deviation);
-
-

- with the same confirmation as before: -

-
cout << "Setting the packer to " << nominal_mean << " will mean that "
-  << "fraction of packs >= " << minimum_weight
-  << " is " << cdf(complement(good_packs, minimum_weight)) << endl;
-// Setting the packer to 3.06449 will mean that fraction of packs >= 2.9 is 0.95
-
-
- - Using - Cauchy-Lorentz instead of normal distribution -
-

- After examining the weight distribution of a large number of packs, we - might decide that, after all, the assumption of a normal distribution - is not really justified. We might find that the fit is better to a Cauchy Distribution. - This distribution has wider 'wings', so that whereas most of the values - are closer to the mean than the normal, there are also more values than - 'normal' that lie further from the mean than the normal. -

-

- This might happen because a larger than normal lump of meat is either - included or excluded. -

-

- We first create a Cauchy - Distribution with the original mean and standard deviation, and - estimate the fraction that lie below our minimum weight specification. -

-
cauchy cpacks(mean, standard_deviation);
-cout << "Cauchy Setting the packer to " << mean << " will mean that "
-  << "fraction of packs >= " << minimum_weight
-  << " is " << cdf(complement(cpacks, minimum_weight)) << endl;
-// Cauchy Setting the packer to 3 will mean that fraction of packs >= 2.9 is 0.75
-
-

- Note that far fewer of the packs meet the specification, only 75% instead - of 95%. Now we can repeat the find_location, using the cauchy distribution - as template parameter, in place of the normal used above. -

-
double lc = find_location<cauchy>(minimum_weight, under_fraction, standard_deviation);
-cout << "find_location<cauchy>(minimum_weight, over fraction, standard_deviation); " << lc << endl;
-// find_location<cauchy>(minimum_weight, over fraction, packs.standard_deviation()); 3.53138
-
-

- Note that the safe_mean setting needs to be much higher, 3.53138 instead - of 3.06449, so we will make rather less profit. -

-

- And again confirm that the fraction meeting specification is as expected. -

-
cauchy goodcpacks(lc, standard_deviation);
-cout << "Cauchy Setting the packer to " << lc << " will mean that "
-  << "fraction of packs >= " << minimum_weight
-  << " is " << cdf(complement(goodcpacks, minimum_weight)) << endl;
-// Cauchy Setting the packer to 3.53138 will mean that fraction of packs >= 2.9 is 0.95
-
-

- Finally we could estimate the effect of a much tighter specification, - that 99% of packs met the specification. -

-
cout << "Cauchy Setting the packer to "
-  << find_location<cauchy>(minimum_weight, 0.99, standard_deviation)
-  << " will mean that "
-  << "fraction of packs >= " << minimum_weight
-  << " is " << cdf(complement(goodcpacks, minimum_weight)) << endl;
-
-

- Setting the packer to 3.13263 will mean that fraction of packs >= - 2.9 is 0.99, but will more than double the mean loss from 0.0644 to 0.133 - kg per pack. -

-

- Of course, this calculation is not limited to packs of meat, it applies - to dispensing anything, and it also applies to a 'virtual' material like - any measurement. -

-

- The only caveat is that the calculation assumes that the standard deviation - (scale) is known with a reasonably low uncertainty, something that is - not so easy to ensure in practice. And that the distribution is well - defined, Normal - Distribution or Cauchy - Distribution, or some other. -

-

- If one is simply dispensing a very large number of packs, then it may - be feasible to measure the weight of hundreds or thousands of packs. - With a healthy 'degrees of freedom', the confidence intervals for the - standard deviation are not too wide, typically about + and - 10% for - hundreds of observations. -

-

- For other applications, where it is more difficult or expensive to make - many observations, the confidence intervals are depressingly wide. -

-

- See Confidence - Intervals on the standard deviation for a worked example chi_square_std_dev_test.cpp - of estimating these intervals. -

-
- - Changing - the scale or standard deviation -
-

- Alternatively, we could invest in a better (more precise) packer (or - measuring device) with a lower standard deviation, or scale. -

-

- This might cost more, but would reduce the amount we have to 'give away' - in order to meet the specification. -

-

- To estimate how much better (how much smaller standard deviation) it - would have to be, we need to get the 5% quantile to be located at the - under_weight limit, 2.9 -

-
double p = 0.05; // wanted p th quantile.
-cout << "Quantile of " << p << " = " << quantile(packs, p)
-  << ", mean = " << packs.mean() << ", sd = " << packs.standard_deviation() << endl;
-
-

- Quantile of 0.05 = 2.83551, mean = 3, sd = 0.1 -

-

- With the current packer (mean = 3, sd = 0.1), the 5% quantile is at 2.8551 - kg, a little below our target of 2.9 kg. So we know that the standard - deviation is going to have to be smaller. -

-

- Let's start by guessing that it (now 0.1) needs to be halved, to a standard - deviation of 0.05 kg. -

-
normal pack05(mean, 0.05);
-cout << "Quantile of " << p << " = " << quantile(pack05, p)
-  << ", mean = " << pack05.mean() << ", sd = " << pack05.standard_deviation() << endl;
-// Quantile of 0.05 = 2.91776, mean = 3, sd = 0.05
-
-cout <<"Fraction of packs >= " << minimum_weight << " with a mean of " << mean
-  << " and standard deviation of " << pack05.standard_deviation()
-  << " is " << cdf(complement(pack05, minimum_weight)) << endl;
-// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.05 is 0.97725
-
-

- So 0.05 was quite a good guess, but we are a little over the 2.9 target, - so the standard deviation could be a tiny bit more. So we could do some - more guessing to get closer, say by increasing standard deviation to - 0.06 kg, constructing another new distribution called pack06. -

-
normal pack06(mean, 0.06);
-cout << "Quantile of " << p << " = " << quantile(pack06, p)
-  << ", mean = " << pack06.mean() << ", sd = " << pack06.standard_deviation() << endl;
-// Quantile of 0.05 = 2.90131, mean = 3, sd = 0.06
-
-cout <<"Fraction of packs >= " << minimum_weight << " with a mean of " << mean
-  << " and standard deviation of " << pack06.standard_deviation()
-  << " is " << cdf(complement(pack06, minimum_weight)) << endl;
-// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.06 is 0.95221
-
-

- Now we are getting really close, but to do the job properly, we might - need to use root finding method, for example the tools provided, and - used elsewhere, in the Math Toolkit, see root-finding - without derivatives -

-

- But in this (normal) distribution case, we can and should be even smarter - and make a direct calculation. -

-

- Our required limit is minimum_weight = 2.9 kg, often called the random - variate z. For a standard normal distribution, then probability p = N((minimum_weight - - mean) / sd). -

-

- We want to find the standard deviation that would be required to meet - this limit, so that the p th quantile is located at z (minimum_weight). - In this case, the 0.05 (5%) quantile is at 2.9 kg pack weight, when the - mean is 3 kg, ensuring that 0.95 (95%) of packs are above the minimum - weight. -

-

- Rearranging, we can directly calculate the required standard deviation: -

-
normal N01; // standard normal distribution with mean zero and unit standard deviation.
-p = 0.05;
-double qp = quantile(N01, p);
-double sd95 = (minimum_weight - mean) / qp;
-
-cout << "For the "<< p << "th quantile to be located at "
-  << minimum_weight << ", would need a standard deviation of " << sd95 << endl;
-// For the 0.05th quantile to be located at 2.9, would need a standard deviation of 0.0607957
-
-

- We can now construct a new (normal) distribution pack95 for the 'better' - packer, and check that our distribution will meet the specification. -

-
normal pack95(mean, sd95);
-cout <<"Fraction of packs >= " << minimum_weight << " with a mean of " << mean
-  << " and standard deviation of " << pack95.standard_deviation()
-  << " is " << cdf(complement(pack95, minimum_weight)) << endl;
-// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.0607957 is 0.95
-
-

- This calculation is generalized in the free function find_scale, as shown - below, giving the same standard deviation. -

-
double ss = find_scale<normal>(minimum_weight, under_fraction, packs.mean());
-cout << "find_scale<normal>(minimum_weight, under_fraction, packs.mean()); " << ss << endl;
-// find_scale<normal>(minimum_weight, under_fraction, packs.mean()); 0.0607957
-
-

- If we had defined an over_fraction, or percentage that must pass specification -

-
double over_fraction = 0.95;
-
-

- And (wrongly) written -

-
double sso = find_scale<normal>(minimum_weight, over_fraction, packs.mean());
-
-

- With the default policy, we would get a message like -

-
Message from thrown exception was:
-   Error in function boost::math::find_scale<Dist, Policy>(double, double, double, Policy):
-   Computed scale (-0.060795683191176959) is <= 0! Was the complement intended?
-
-

- But this would return a negative standard - deviation - obviously impossible. The probability should be 1 - over_fraction, - not over_fraction, thus: -

-
double ss1o = find_scale<normal>(minimum_weight, 1 - over_fraction, packs.mean());
-cout << "find_scale<normal>(minimum_weight, under_fraction, packs.mean()); " << ss1o << endl;
-// find_scale<normal>(minimum_weight, under_fraction, packs.mean()); 0.0607957
-
-

- But notice that using '1 - over_fraction' - will lead to a loss of accuracy, - especially if over_fraction was close to unity. (See why - complements?). In this (very common) case, we should instead use - the complements, - giving the most accurate result. -

-
double ssc = find_scale<normal>(complement(minimum_weight, over_fraction, packs.mean()));
-cout << "find_scale<normal>(complement(minimum_weight, over_fraction, packs.mean())); " << ssc << endl;
-// find_scale<normal>(complement(minimum_weight, over_fraction, packs.mean())); 0.0607957
-
-

- Note that our guess of 0.06 was close to the accurate value of 0.060795683191176959. -

-

- We can again confirm our prediction thus: -

-
normal pack95c(mean, ssc);
-cout <<"Fraction of packs >= " << minimum_weight << " with a mean of " << mean
-  << " and standard deviation of " << pack95c.standard_deviation()
-  << " is " << cdf(complement(pack95c, minimum_weight)) << endl;
-// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.0607957 is 0.95
-
-

- Notice that these two deceptively simple questions: -

-
  • - Do we over-fill to make sure we meet a minimum specification (or - under-fill to avoid an overdose)? -
-

- and/or -

-
  • - Do we measure better? -
-

- are actually extremely common. -

-

- The weight of beef might be replaced by a measurement of more or less - anything, from drug tablet content, Apollo landing rocket firing, X-ray - treatment doses... -

-

- The scale can be variation in dispensing or uncertainty in measurement. -

-

- See find_mean_and_sd_normal.cpp - for full source code & appended program output. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_scale_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_scale_eg.html deleted file mode 100644 index 82fd9a14..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/find_eg/find_scale_eg.html +++ /dev/null @@ -1,209 +0,0 @@ - - - -Find Scale (Standard Deviation) Example - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- First we need some includes to access the Normal - Distribution, the algorithms to find scale (and some std output - of course). -

-
#include <boost/math/distributions/normal.hpp> // for normal_distribution
-  using boost::math::normal; // typedef provides default type is double.
-#include <boost/math/distributions/find_scale.hpp>
-  using boost::math::find_scale;
-  using boost::math::complement; // Needed if you want to use the complement version.
-  using boost::math::policies::policy; // Needed to specify the error handling policy.
-
-#include <iostream>
-  using std::cout; using std::endl;
-#include <iomanip>
-  using std::setw; using std::setprecision;
-#include <limits>
-  using std::numeric_limits;
-
-

- For this example, we will use the standard Normal - Distribution, with location (mean) zero and standard deviation - (scale) unity. Conveniently, this is also the default for this implementation's - constructor. -

-
normal N01;  // Default 'standard' normal distribution with zero mean
-double sd = 1.; // and standard deviation is 1.
-
-

- Suppose we want to find a different normal distribution with standard - deviation so that only fraction p (here 0.001 or 0.1%) are below a certain - chosen limit (here -2. standard deviations). -

-
double z = -2.; // z to give prob p
-double p = 0.001; // only 0.1% below z = -2
-
-cout << "Normal distribution with mean = " << N01.location()  // aka N01.mean()
-  << ", standard deviation " << N01.scale() // aka N01.standard_deviation()
-  << ", has " << "fraction <= " << z
-  << ", p = "  << cdf(N01, z) << endl;
-cout << "Normal distribution with mean = " << N01.location()
-  << ", standard deviation " << N01.scale()
-  << ", has " << "fraction > " << z
-  << ", p = "  << cdf(complement(N01, z)) << endl; // Note: uses complement.
-
-
Normal distribution with mean = 0 has fraction <= -2, p = 0.0227501
-Normal distribution with mean = 0 has fraction > -2, p = 0.97725
-
-

- Noting that p = 0.02 instead of our target of 0.001, we can now use - find_scale to give a - new standard deviation. -

-
double l = N01.location();
-double s = find_scale<normal>(z, p, l);
-cout << "scale (standard deviation) = " << s << endl;
-
-

- that outputs: -

-
scale (standard deviation) = 0.647201
-
-

- showing that we need to reduce the standard deviation from 1. to 0.65. -

-

- Then we can check that we have achieved our objective by constructing - a new distribution with the new standard deviation (but same zero mean): -

-
normal np001pc(N01.location(), s);
-
-

- And re-calculating the fraction below (and above) our chosen limit. -

-
cout << "Normal distribution with mean = " << l
-  << " has " << "fraction <= " << z
-  << ", p = "  << cdf(np001pc, z) << endl;
-cout << "Normal distribution with mean = " << l
-  << " has " << "fraction > " << z
-  << ", p = "  << cdf(complement(np001pc, z)) << endl;
-
-
Normal distribution with mean = 0 has fraction <= -2, p = 0.001
-Normal distribution with mean = 0 has fraction > -2, p = 0.999
-
-
- - Controlling - how Errors from find_scale are handled -
-

- We can also control the policy for handling various errors. For example, - we can define a new (possibly unwise) policy to ignore domain errors - ('bad' arguments). -

-

- Unless we are using the boost::math namespace, we will need: -

-
using boost::math::policies::policy;
-using boost::math::policies::domain_error;
-using boost::math::policies::ignore_error;
-
-

- Using a typedef is convenient, especially if it is re-used, although - it is not required, as the various examples below show. -

-
typedef policy<domain_error<ignore_error> > ignore_domain_policy;
-// find_scale with new policy, using typedef.
-l = find_scale<normal>(z, p, l, ignore_domain_policy());
-// Default policy policy<>, needs using boost::math::policies::policy;
-
-l = find_scale<normal>(z, p, l, policy<>());
-// Default policy, fully specified.
-l = find_scale<normal>(z, p, l, boost::math::policies::policy<>());
-// New policy, without typedef.
-l = find_scale<normal>(z, p, l, policy<domain_error<ignore_error> >());
-
-

- If we want to express a probability, say 0.999, that is a complement, - 1 - - p we should not even think - of writing find_scale<normal>(z, 1 - - p, - l), - but use the complements - version (see why complements?). -

-
z = -2.;
-double q = 0.999; // = 1 - p; // complement of 0.001.
-sd = find_scale<normal>(complement(z, q, l));
-
-normal np95pc(l, sd); // Same standard_deviation (scale) but with mean(scale) shifted
-cout << "Normal distribution with mean = " << l << " has "
-  << "fraction <= " << z << " = "  << cdf(np95pc, z) << endl;
-cout << "Normal distribution with mean = " << l << " has "
-  << "fraction > " << z << " = "  << cdf(complement(np95pc, z)) << endl;
-
-

- Sadly, it is all too easy to get probabilities the wrong way round, when - you may get a warning like this: -

-
Message from thrown exception was:
-   Error in function boost::math::find_scale<Dist, Policy>(complement(double, double, double, Policy)):
-   Computed scale (-0.48043523852179076) is <= 0! Was the complement intended?
-
-

- The default error handling policy is to throw an exception with this - message, but if you chose a policy to ignore the error, the (impossible) - negative scale is quietly returned. -

-

- See find_scale_example.cpp - for full source code: the program output looks like this: -

-
Example: Find scale (standard deviation).
-Normal distribution with mean = 0, standard deviation 1, has fraction <= -2, p = 0.0227501
-Normal distribution with mean = 0, standard deviation 1, has fraction > -2, p = 0.97725
-scale (standard deviation) = 0.647201
-Normal distribution with mean = 0 has fraction <= -2, p = 0.001
-Normal distribution with mean = 0 has fraction > -2, p = 0.999
-Normal distribution with mean = 0.946339 has fraction <= -2 = 0.001
-Normal distribution with mean = 0.946339 has fraction > -2 = 0.999
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/geometric_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/geometric_eg.html deleted file mode 100644 index da244826..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/geometric_eg.html +++ /dev/null @@ -1,422 +0,0 @@ - - - -Geometric Distribution Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- For this example, we will opt to #define two macros to control the error - and discrete handling policies. For this simple example, we want to avoid - throwing an exception (the default policy) and just return infinity. We - want to treat the distribution as if it was continuous, so we choose a - discrete_quantile policy of real, rather than the default policy integer_round_outwards. -

-
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
-#define BOOST_MATH_DISCRETE_QUANTILE_POLICY real
-
-
- - - - - -
[Caution]Caution

- It is vital to #include distributions etc after - the above #defines -

-

- After that we need some includes to provide easy access to the negative - binomial distribution, and we need some std library iostream, of course. -

-
#include <boost/math/distributions/geometric.hpp>
-  // for geometric_distribution
-  using ::boost::math::geometric_distribution; //
-  using ::boost::math::geometric; // typedef provides default type is double.
-  using  ::boost::math::pdf; // Probability mass function.
-  using  ::boost::math::cdf; // Cumulative density function.
-  using  ::boost::math::quantile;
-
-#include <boost/math/distributions/negative_binomial.hpp>
-  // for negative_binomial_distribution
-  using boost::math::negative_binomial; // typedef provides default type is double.
-
-#include <boost/math/distributions/normal.hpp>
-  // for negative_binomial_distribution
-  using boost::math::normal; // typedef provides default type is double.
-
-#include <iostream>
-  using std::cout; using std::endl;
-  using std::noshowpoint; using std::fixed; using std::right; using std::left;
-#include <iomanip>
-  using std::setprecision; using std::setw;
-
-#include <limits>
-  using std::numeric_limits;
-
-

- It is always sensible to use try and catch blocks because defaults policies - are to throw an exception if anything goes wrong. -

-

- Simple try'n'catch blocks (see below) will ensure that you get a helpful - error message instead of an abrupt (and silent) program abort. -

-
- - Throwing - a dice -
-

- The Geometric distribution describes the probability (p) - of a number of failures to get the first success in k - Bernoulli trials. (A Bernoulli - trial is one with only two possible outcomes, success of failure, - and p is the probability of success). -

-

- Suppose an 'fair' 6-face dice is thrown repeatedly: -

-
double success_fraction = 1./6; // success_fraction (p) = 0.1666
-// (so failure_fraction is 1 - success_fraction = 5./6 = 1- 0.1666 = 0.8333)
-
-

- If the dice is thrown repeatedly until the first - time a three appears. The probablility distribution - of the number of times it is thrown not - getting a three (not-a-threes - number of failures to get a three) is a geometric - distribution with the success_fraction = 1/6 = 0.1666 ̇. -

-

- We therefore start by constructing a geometric distribution with the one - parameter success_fraction, the probability of success. -

-
geometric g6(success_fraction); // type double by default.
-
-

- To confirm, we can echo the success_fraction parameter of the distribution. -

-
cout << "success fraction of a six-sided dice is " << g6.success_fraction() << endl;
-
-

- So the probability of getting a three at the first throw (zero failures) - is -

-
cout << pdf(g6, 0) << endl; // 0.1667
-cout << cdf(g6, 0) << endl; // 0.1667
-
-

- Note that the cdf and pdf are identical because the is only one throw. - If we want the probability of getting the first three - on the 2nd throw: -

-
cout << pdf(g6, 1) << endl; // 0.1389
-
-

- If we want the probability of getting the first three - on the 1st or 2nd throw (allowing one failure): -

-
cout << "pdf(g6, 0) + pdf(g6, 1) = " << pdf(g6, 0) + pdf(g6, 1) << endl;
-
-

- Or more conveniently, and more generally, we can use the Cumulative Distribution - Function CDF. -

-
cout << "cdf(g6, 1) = " << cdf(g6, 1) << endl; // 0.3056
-
-

- If we allow many more (12) throws, the probability of getting our three - gets very high: -

-
cout << "cdf(g6, 12) = " << cdf(g6, 12) << endl; // 0.9065 or 90% probability.
-
-

- If we want to be much more confident, say 99%, we can estimate the number - of throws to be this sure using the inverse or quantile. -

-
cout << "quantile(g6, 0.99) = " << quantile(g6, 0.99) << endl; // 24.26
-
-

- Note that the value returned is not an integer: if you want an integer - result you should use either floor, round or ceil functions, or use the - policies mechanism. -

-

- See understanding - discrete quantiles. -

-

- The geometric distribution is related to the negative binomial    negative_binomial_distribution(RealType r, RealType - p); - with parameter r = 1. So we could get the same result - using the negative binomial, but using the geometric the results will be - faster, and may be more accurate. -

-
negative_binomial nb(1, success_fraction);
-cout << pdf(nb, 1) << endl; // 0.1389
-cout << cdf(nb, 1) << endl; // 0.3056
-
-

- We could also the complement to express the required probability as 1 - - 0.99 = 0.01 (and get the same result): -

-
cout << "quantile(complement(g6, 1 - p))  " << quantile(complement(g6, 0.01)) << endl; // 24.26
-
-

- Note too that Boost.Math geometric distribution is implemented as a continuous - function. Unlike other implementations (for example R) it uses - the number of failures as a real parameter, - not as an integer. If you want this integer behaviour, you may need to - enforce this by rounding the parameter you pass, probably rounding down, - to the nearest integer. For example, R returns the success fraction probability - for all values of failures from 0 to 0.999999 thus: -

-
   R> formatC(pgeom(0.0001,0.5, FALSE), digits=17) "               0.5"
-
-

- So in Boost.Math the equivalent is -

-
    geometric g05(0.5);  // Probability of success = 0.5 or 50%
-    // Output all potentially significant digits for the type, here double.
-
-#ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
-  int max_digits10 = 2 + (boost::math::policies::digits<double, boost::math::policies::policy<> >() * 30103UL) / 100000UL;
-  cout << "BOOST_NO_CXX11_NUMERIC_LIMITS is defined" << endl;
-#else
-  int max_digits10 = std::numeric_limits<double>::max_digits10;
-#endif
-  cout << "Show all potentially significant decimal digits std::numeric_limits<double>::max_digits10 = "
-    << max_digits10 << endl;
-  cout.precision(max_digits10); //
-
-    cout << cdf(g05, 0.0001) << endl; // returns 0.5000346561579232, not exact 0.5.
-
-

- To get the R discrete behaviour, you simply need to round with, for example, - the floor function. -

-
cout << cdf(g05, floor(0.0001)) << endl; // returns exactly 0.5
-
-
> formatC(pgeom(0.9999999,0.5, FALSE), digits=17) [1] "              0.25"
-> formatC(pgeom(1.999999,0.5, FALSE), digits=17)[1] "              0.25" k = 1
-> formatC(pgeom(1.9999999,0.5, FALSE), digits=17)[1] "0.12500000000000003" k = 2
-
-

- shows that R makes an arbitrary round-up decision at about 1e7 from the - next integer above. This may be convenient in practice, and could be replicated - in C++ if desired. -

-
- - Surveying - customers to find one with a faulty product -
-

- A company knows from warranty claims that 2% of their products will be - faulty, so the 'success_fraction' of finding a fault is 0.02. It wants - to interview a purchaser of faulty products to assess their 'user experience'. -

-

- To estimate how many customers they will probably need to contact in order - to find one who has suffered from the fault, we first construct a geometric - distribution with probability 0.02, and then chose a confidence, say 80%, - 95%, or 99% to finding a customer with a fault. Finally, we probably want - to round up the result to the integer above using the ceil - function. (We could also use a policy, but that is hardly worthwhile for - this simple application.) -

-

- (This also assumes that each customer only buys one product: if customers - bought more than one item, the probability of finding a customer with a - fault obviously improves.) -

-
cout.precision(5);
-geometric g(0.02); // On average, 2 in 100 products are faulty.
-double c = 0.95; // 95% confidence.
-cout << " quantile(g, " << c << ") = " << quantile(g, c) << endl;
-
-cout << "To be " << c * 100
-  << "% confident of finding we customer with a fault, need to survey "
-  <<  ceil(quantile(g, c)) << " customers." << endl; // 148
-c = 0.99; // Very confident.
-cout << "To be " << c * 100
-  << "% confident of finding we customer with a fault, need to survey "
-  <<  ceil(quantile(g, c)) << " customers." << endl; // 227
-c = 0.80; // Only reasonably confident.
-cout << "To be " << c * 100
-  << "% confident of finding we customer with a fault, need to survey "
-  <<  ceil(quantile(g, c)) << " customers." << endl; // 79
-
-
- - Basket - Ball Shooters -
-

- According to Wikipedia, average pro basket ball players get free - throws in the baskets 70 to 80 % of the time, but some get as high - as 95%, and others as low as 50%. Suppose we want to compare the probabilities - of failing to get a score only on the first or on the fifth shot? To start - we will consider the average shooter, say 75%. So we construct a geometric - distribution with success_fraction parameter 75/100 = 0.75. -

-
cout.precision(2);
-geometric gav(0.75); // Shooter averages 7.5 out of 10 in the basket.
-
-

- What is probability of getting 1st try in the basket, that is with no failures? -

-
cout << "Probability of score on 1st try = " << pdf(gav, 0) << endl; // 0.75
-
-

- This is, of course, the success_fraction probability 75%. What is the probability - that the shooter only scores on the fifth shot? So there are 5-1 = 4 failures - before the first success. -

-
cout << "Probability of score on 5th try = " << pdf(gav, 4) << endl; // 0.0029
-
-

- Now compare this with the poor and the best players success fraction. We - need to constructing new distributions with the different success fractions, - and then get the corresponding probability density functions values: -

-
geometric gbest(0.95);
-cout << "Probability of score on 5th try = " << pdf(gbest, 4) << endl; // 5.9e-6
-geometric gmediocre(0.50);
-cout << "Probability of score on 5th try = " << pdf(gmediocre, 4) << endl; // 0.031
-
-

- So we can see the very much smaller chance (0.000006) of 4 failures by - the best shooters, compared to the 0.03 of the mediocre. -

-
- - Estimating - failures -
-

- Of course one man's failure is an other man's success. So a fault can be - defined as a 'success'. -

-

- If a fault occurs once after 100 flights, then one might naively say that - the risk of fault is obviously 1 in 100 = 1/100, a probability of 0.01. -

-

- This is the best estimate we can make, but while it is the truth, it is - not the whole truth, for it hides the big uncertainty when estimating from - a single event. "One swallow doesn't make a summer." To show - the magnitude of the uncertainty, the geometric (or the negative binomial) - distribution can be used. -

-

- If we chose the popular 95% confidence in the limits, corresponding to - an alpha of 0.05, because we are calculating a two-sided interval, we must - divide alpha by two. -

-
double alpha = 0.05;
-double k = 100; // So frequency of occurrence is 1/100.
-cout << "Probability is failure is " << 1/k << endl;
-double t = geometric::find_lower_bound_on_p(k, alpha/2);
-cout << "geometric::find_lower_bound_on_p(" << int(k) << ", " << alpha/2 << ") = "
-  << t << endl; // 0.00025
-t = geometric::find_upper_bound_on_p(k, alpha/2);
-cout << "geometric::find_upper_bound_on_p(" << int(k) << ", " << alpha/2 << ") = "
-  << t << endl; // 0.037
-
-

- So while we estimate the probability is 0.01, it might lie between 0.0003 - and 0.04. Even if we relax our confidence to alpha = 90%, the bounds only - contract to 0.0005 and 0.03. And if we require a high confidence, they - widen to 0.00005 to 0.05. -

-
alpha = 0.1; // 90% confidence.
-t = geometric::find_lower_bound_on_p(k, alpha/2);
-cout << "geometric::find_lower_bound_on_p(" << int(k) << ", " << alpha/2 << ") = "
-  << t << endl; // 0.0005
-t = geometric::find_upper_bound_on_p(k, alpha/2);
-cout << "geometric::find_upper_bound_on_p(" << int(k) << ", " << alpha/2 << ") = "
-  << t << endl; // 0.03
-
-alpha = 0.01; // 99% confidence.
-t = geometric::find_lower_bound_on_p(k, alpha/2);
-cout << "geometric::find_lower_bound_on_p(" << int(k) << ", " << alpha/2 << ") = "
-  << t << endl; // 5e-005
-t = geometric::find_upper_bound_on_p(k, alpha/2);
-cout << "geometric::find_upper_bound_on_p(" << int(k) << ", " << alpha/2 << ") = "
-    << t << endl; // 0.052
-
-

- In real life, there will usually be more than one event (fault or success), - when the negative binomial, which has the neccessary extra parameter, will - be needed. -

-

- As noted above, using a catch block is always a good idea, even if you - hope not to use it! -

-
}
-catch(const std::exception& e)
-{ // Since we have set an overflow policy of ignore_error,
-  // an overflow exception should never be thrown.
-   std::cout << "\nMessage from thrown exception was:\n " << e.what() << std::endl;
-
-

- For example, without a ignore domain error policy, if we asked for -

-
pdf(g, -1)
-

- for example, we would get an unhelpful abort, but with a catch: -

-
Message from thrown exception was:
- Error in function boost::math::pdf(const exponential_distribution<double>&, double):
- Number of failures argument is -1, but must be >= 0 !
-
-

- See full source C++ of this example at geometric_examples.cpp -

-

- See - negative_binomial confidence interval example. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/inverse_chi_squared_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/inverse_chi_squared_eg.html deleted file mode 100644 index 9fbe8186..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/inverse_chi_squared_eg.html +++ /dev/null @@ -1,360 +0,0 @@ - - - -Inverse Chi-Squared Distribution Bayes Example - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The scaled-inversed-chi-squared distribution is the conjugate prior distribution - for the variance (σ2) parameter of a normal distribution with known expectation - (μ). As such it has widespread application in Bayesian statistics: -

-

- In Bayesian - inference, the strength of belief into certain parameter values - is itself described through a distribution. Parameters hence become themselves - modelled and interpreted as random variables. -

-

- In this worked example, we perform such a Bayesian analysis by using the - scaled-inverse-chi-squared distribution as prior and posterior distribution - for the variance parameter of a normal distribution. -

-

- For more general information on Bayesian type of analyses, see: -

-
    -
  • - Andrew Gelman, John B. Carlin, Hal E. Stern, Donald B. Rubin, Bayesian - Data Analysis, 2003, ISBN 978-1439840955. -
  • -
  • - Jim Albert, Bayesian Compution with R, Springer, 2009, ISBN 978-0387922973. -
  • -
-

- (As the scaled-inversed-chi-squared is another parameterization of the - inverse-gamma distribution, this example could also have used the inverse-gamma - distribution). -

-

- Consider precision machines which produce balls for a high-quality ball - bearing. Ideally each ball should have a diameter of precisely 3000 μm (3 - mm). Assume that machines generally produce balls of that size on average - (mean), but individual balls can vary slightly in either direction following - (approximately) a normal distribution. Depending on various production - conditions (e.g. raw material used for balls, workplace temperature and - humidity, maintenance frequency and quality) some machines produce balls - tighter distributed around the target of 3000 μm, while others produce balls - with a wider distribution. Therefore the variance parameter of the normal - distribution of the ball sizes varies from machine to machine. An extensive - survey by the precision machinery manufacturer, however, has shown that - most machines operate with a variance between 15 and 50, and near 25 μm2 on - average. -

-

- Using this information, we want to model the variance of the machines. - The variance is strictly positive, and therefore we look for a statistical - distribution with support in the positive domain of the real numbers. Given - the expectation of the normal distribution of the balls is known (3000 - μm), for reasons of conjugacy, it is customary practice in Bayesian statistics - to model the variance to be scaled-inverse-chi-squared distributed. -

-

- In a first step, we will try to use the survey information to model the - general knowledge about the variance parameter of machines measured by - the manufacturer. This will provide us with a generic prior distribution - that is applicable if nothing more specific is known about a particular - machine. -

-

- In a second step, we will then combine the prior-distribution information - in a Bayesian analysis with data on a specific single machine to derive - a posterior distribution for that machine. -

-
- - Step - one: Using the survey information. -
-

- Using the survey results, we try to find the parameter set of a scaled-inverse-chi-squared - distribution so that the properties of this distribution match the results. - Using the mathematical properties of the scaled-inverse-chi-squared distribution - as guideline, we see that that both the mean and mode of the scaled-inverse-chi-squared - distribution are approximately given by the scale parameter (s) of the - distribution. As the survey machines operated at a variance of 25 μm2 on - average, we hence set the scale parameter (sprior) of our prior distribution - equal to this value. Using some trial-and-error and calls to the global - quantile function, we also find that a value of 20 for the degrees-of-freedom - (νprior) parameter is adequate so that most of the prior distribution mass - is located between 15 and 50 (see figure below). -

-

- We first construct our prior distribution using these values, and then - list out a few quantiles: -

-
double priorDF = 20.0;
-double priorScale = 25.0;
-
-inverse_chi_squared prior(priorDF, priorScale);
-// Using an inverse_gamma distribution instead, we could equivalently write
-// inverse_gamma prior(priorDF / 2.0, priorScale * priorDF / 2.0);
-
-cout << "Prior distribution:" << endl << endl;
-cout << "  2.5% quantile: " << quantile(prior, 0.025) << endl;
-cout << "  50% quantile: " << quantile(prior, 0.5) << endl;
-cout << "  97.5% quantile: " << quantile(prior, 0.975) << endl << endl;
-
-

- This produces this output: -

-
Prior distribution:
-
-2.5% quantile: 14.6
-50% quantile: 25.9
-97.5% quantile: 52.1
-
-

- Based on this distribution, we can now calculate the probability of having - a machine working with an unusual work precision (variance) at <= 15 - or > 50. For this task, we use calls to the boost::math:: functions cdf - and complement, respectively, - and find a probability of about 0.031 (3.1%) for each case. -

-
cout << "  probability variance <= 15: " << boost::math::cdf(prior, 15.0) << endl;
-cout << "  probability variance <= 25: " << boost::math::cdf(prior, 25.0) << endl;
-cout << "  probability variance > 50: "
-  << boost::math::cdf(boost::math::complement(prior, 50.0))
-<< endl << endl;
-
-

- This produces this output: -

-
probability variance <= 15: 0.031
-probability variance <= 25: 0.458
-probability variance > 50: 0.0318
-
-

- Therefore, only 3.1% of all precision machines produce balls with a variance - of 15 or less (particularly precise machines), but also only 3.2% of all - machines produce balls with a variance of as high as 50 or more (particularly - imprecise machines). Moreover, slightly more than one-half (1 - 0.458 = - 54.2%) of the machines work at a variance greater than 25. -

-

- Notice here the distinction between a Bayesian - analysis and a frequentist - analysis: because we model the variance as random variable itself, we can - calculate and straightforwardly interpret probabilities for given parameter - values directly, while such an approach is not possible (and interpretationally - a strict must-not) in the frequentist world. -

-
- - Step - 2: Investigate a single machine -
-

- In the second step, we investigate a single machine, which is suspected - to suffer from a major fault as the produced balls show fairly high size - variability. Based on the prior distribution of generic machinery performance - (derived above) and data on balls produced by the suspect machine, we calculate - the posterior distribution for that machine and use its properties for - guidance regarding continued machine operation or suspension. -

-

- It can be shown that if the prior distribution was chosen to be scaled-inverse-chi-square - distributed, then the posterior distribution is also scaled-inverse-chi-squared-distributed - (prior and posterior distributions are hence conjugate). For more details - regarding conjugacy and formula to derive the parameters set for the posterior - distribution see Conjugate - prior. -

-

- Given the prior distribution parameters and sample data (of size n), the - posterior distribution parameters are given by the two expressions: -

-

-    νposterior = νprior + n -

-

- which gives the posteriorDF below, and -

-

-    sposterior = (νpriorsprior + Σni=1(xi - μ)2) / (νprior + n) -

-

- which after some rearrangement gives the formula for the posteriorScale - below. -

-

- Machine-specific data consist of 100 balls which were accurately measured - and show the expected mean of 3000 μm and a sample variance of 55 (calculated - for a sample mean defined to be 3000 exactly). From these data, the prior - parameterization, and noting that the term Σni=1(xi - μ)2 equals the sample - variance multiplied by n - 1, it follows that the posterior distribution - of the variance parameter is scaled-inverse-chi-squared distribution with - degrees-of-freedom (νposterior) = 120 and scale (sposterior) = 49.54. -

-
int ballsSampleSize = 100;
-cout <<"balls sample size: " << ballsSampleSize << endl;
-double ballsSampleVariance = 55.0;
-cout <<"balls sample variance: " << ballsSampleVariance << endl;
-
-double posteriorDF = priorDF + ballsSampleSize;
-cout << "prior degrees-of-freedom: " << priorDF << endl;
-cout << "posterior degrees-of-freedom: " << posteriorDF << endl;
-
-double posteriorScale =
-  (priorDF * priorScale + (ballsSampleVariance * (ballsSampleSize - 1))) / posteriorDF;
-cout << "prior scale: " << priorScale  << endl;
-cout << "posterior scale: " << posteriorScale << endl;
-
-

- An interesting feature here is that one needs only to know a summary statistics - of the sample to parameterize the posterior distribution: the 100 individual - ball measurements are irrelevant, just knowledge of the sample variance - and number of measurements is sufficient. -

-

- That produces this output: -

-
balls sample size: 100
-balls sample variance: 55
-prior degrees-of-freedom: 20
-posterior degrees-of-freedom: 120
-prior scale: 25
-posterior scale: 49.5
-
-
-

- To compare the generic machinery performance with our suspect machine, - we calculate again the same quantiles and probabilities as above, and find - a distribution clearly shifted to greater values (see figure). -

-

- -

-
inverse_chi_squared posterior(posteriorDF, posteriorScale);
-
- cout << "Posterior distribution:" << endl << endl;
- cout << "  2.5% quantile: " << boost::math::quantile(posterior, 0.025) << endl;
- cout << "  50% quantile: " << boost::math::quantile(posterior, 0.5) << endl;
- cout << "  97.5% quantile: " << boost::math::quantile(posterior, 0.975) << endl << endl;
-
- cout << "  probability variance <= 15: " << boost::math::cdf(posterior, 15.0) << endl;
- cout << "  probability variance <= 25: " << boost::math::cdf(posterior, 25.0) << endl;
- cout << "  probability variance > 50: "
-   << boost::math::cdf(boost::math::complement(posterior, 50.0)) << endl;
-
-

- This produces this output: -

-
Posterior distribution:
-
-   2.5% quantile: 39.1
-   50% quantile: 49.8
-   97.5% quantile: 64.9
-
-   probability variance <= 15: 2.97e-031
-   probability variance <= 25: 8.85e-010
-   probability variance > 50: 0.489
-
-

- Indeed, the probability that the machine works at a low variance (<= - 15) is almost zero, and even the probability of working at average or better - performance is negligibly small (less than one-millionth of a permille). - On the other hand, with an almost near-half probability (49%), the machine - operates in the extreme high variance range of > 50 characteristic for - poorly performing machines. -

-

- Based on this information the operation of the machine is taken out of - use and serviced. -

-

- In summary, the Bayesian analysis allowed us to make exact probabilistic - statements about a parameter of interest, and hence provided us results - with straightforward interpretation. -

-

- A full sample output is: -

-
 Inverse_chi_squared_distribution Bayes example:
-
-   Prior distribution:
-
-    2.5% quantile: 14.6
-    50% quantile: 25.9
-    97.5% quantile: 52.1
-
-    probability variance <= 15: 0.031
-    probability variance <= 25: 0.458
-    probability variance > 50: 0.0318
-
-  balls sample size: 100
-  balls sample variance: 55
-  prior degrees-of-freedom: 20
-  posterior degrees-of-freedom: 120
-  prior scale: 25
-  posterior scale: 49.5
-  Posterior distribution:
-
-    2.5% quantile: 39.1
-    50% quantile: 49.8
-    97.5% quantile: 64.9
-
-    probability variance <= 15: 2.97e-031
-    probability variance <= 25: 8.85e-010
-    probability variance > 50: 0.489
-
-
-

- (See also the reference documentation for the Inverse - chi squared Distribution.) -

-

- See the full source C++ of this example at ../../example/inverse_chi_squared_bayes_eg.cpp -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nag_library.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nag_library.html deleted file mode 100644 index 45eaf30e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nag_library.html +++ /dev/null @@ -1,116 +0,0 @@ - - - -Comparison with C, R, FORTRAN-style Free Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- You are probably familiar with a statistics library that has free functions, - for example the classic NAG - C library and matching NAG - FORTRAN Library, Microsoft - Excel BINOMDIST(number_s,trials,probability_s,cumulative), R, MathCAD - pbinom and many others. -

-

- If so, you may find 'Distributions as Objects' unfamiliar, if not alien. -

-

- However, do not panic, both definition - and usage are not really very different. -

-

- A very simple example of generating the same values as the NAG - C library for the binomial distribution follows. (If you find slightly - different values, the Boost C++ version, using double or better, is very - likely to be the more accurate. Of course, accuracy is not usually a concern - for most applications of this function). -

-

- The NAG - function specification is -

-
void nag_binomial_dist(Integer n, double p, Integer k,
-double *plek, double *pgtk, double *peqk, NagError *fail)
-
-

- and is called -

-
g01bjc(n, p, k, &plek, &pgtk, &peqk, NAGERR_DEFAULT);
-
-

- The equivalent using this Boost C++ library is: -

-
using namespace boost::math;  // Using declaration avoids very long names.
-binomial my_dist(4, 0.5); // c.f. NAG n = 4, p = 0.5
-
-

- and values can be output thus: -

-
cout
-  << my_dist.trials() << " "             // Echo the NAG input n = 4 trials.
-  << my_dist.success_fraction() << " "   // Echo the NAG input p = 0.5
-  << cdf(my_dist, 2) << "  "             // NAG plek with k = 2
-  << cdf(complement(my_dist, 2)) << "  " // NAG pgtk with k = 2
-  << pdf(my_dist, 2) << endl;            // NAG peqk with k = 2
-
-

- cdf(dist, k) is - equivalent to NAG library plek, - lower tail probability of <= k -

-

- cdf(complement(dist, k)) is - equivalent to NAG library pgtk, - upper tail probability of > k -

-

- pdf(dist, k) is - equivalent to NAG library peqk, - point probability of == k -

-

- See binomial_example_nag.cpp - for details. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nccs_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nccs_eg.html deleted file mode 100644 index 7dccbf73..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nccs_eg.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Non Central Chi Squared Example - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nccs_eg/nccs_power_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nccs_eg/nccs_power_eg.html deleted file mode 100644 index 5b9011e7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/nccs_eg/nccs_power_eg.html +++ /dev/null @@ -1,1287 +0,0 @@ - - - -Tables of the power function of the chi2 test. - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- This example computes a table of the power of the χ2 -test at the 5% significance - level, for various degrees of freedom and non-centrality parameters. - The table is deliberately the same as Table 6 from "The Non-Central - χ2 and F-Distributions and their applications.", P. B. Patnaik, Biometrika, - Vol. 36, No. 1/2 (June 1949), 202-232. -

-

- First we need some includes to access the non-central chi squared distribution - (and some basic std output of course). -

-
#include <boost/math/distributions/non_central_chi_squared.hpp>
-using boost::math::chi_squared;
-using boost::math::non_central_chi_squared;
-
-#include <iostream>
-using std::cout; using std::endl;
-using std::setprecision;
-
-int main()
-{
-
-

- Create a table of the power of the χ2 test at 5% significance level, start - with a table header: -

-
cout << "[table\n[[[nu]]";
-for(int lam = 2; lam <= 20; lam += 2)
-{
-   cout << "[[lambda]=" << lam << "]";
-}
-cout << "]\n";
-
-

- (Note: the enclosing [] brackets are to format as a table in Boost.Quickbook). -

-

- Enumerate the rows and columns and print the power of the test for each - table cell: -

-
for(int n = 2; n <= 20; ++n)
-{
-   cout << "[[" << n << "]";
-   for(int lam = 2; lam <= 20; lam += 2)
-   {
-
-

- Calculate the χ2 statistic for a 5% significance: -

-
double cs = quantile(complement(chi_squared(n), 0.05));
-
-

- The power of the test is given by the complement of the CDF of the non-central - χ2 distribution: -

-
double beta = cdf(complement(non_central_chi_squared(n, lam), cs));
-
-

- Then output the cell value: -

-
         cout << "[" << setprecision(3) << beta << "]";
-      }
-      cout << "]" << endl;
-   }
-   cout << "]" << endl;
-}
-
-

- The output from this program is a table in Boost.Quickbook format as - shown below. -

-

- We can interpret this as follows - for example if ν=10 and λ=10 then the - power of the test is 0.542 - so we have only a 54% chance of correctly - detecting that our null hypothesis is false, and a 46% chance of incurring - a type II error (failing to reject the null hypothesis when it is in - fact false): -

-
------------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- ν -

-
-

- λ=2 -

-
-

- λ=4 -

-
-

- λ=6 -

-
-

- λ=8 -

-
-

- λ=10 -

-
-

- λ=12 -

-
-

- λ=14 -

-
-

- λ=16 -

-
-

- λ=18 -

-
-

- λ=20 -

-
-

- 2 -

-
-

- 0.226 -

-
-

- 0.415 -

-
-

- 0.584 -

-
-

- 0.718 -

-
-

- 0.815 -

-
-

- 0.883 -

-
-

- 0.928 -

-
-

- 0.957 -

-
-

- 0.974 -

-
-

- 0.985 -

-
-

- 3 -

-
-

- 0.192 -

-
-

- 0.359 -

-
-

- 0.518 -

-
-

- 0.654 -

-
-

- 0.761 -

-
-

- 0.84 -

-
-

- 0.896 -

-
-

- 0.934 -

-
-

- 0.959 -

-
-

- 0.975 -

-
-

- 4 -

-
-

- 0.171 -

-
-

- 0.32 -

-
-

- 0.47 -

-
-

- 0.605 -

-
-

- 0.716 -

-
-

- 0.802 -

-
-

- 0.866 -

-
-

- 0.912 -

-
-

- 0.943 -

-
-

- 0.964 -

-
-

- 5 -

-
-

- 0.157 -

-
-

- 0.292 -

-
-

- 0.433 -

-
-

- 0.564 -

-
-

- 0.677 -

-
-

- 0.769 -

-
-

- 0.839 -

-
-

- 0.89 -

-
-

- 0.927 -

-
-

- 0.952 -

-
-

- 6 -

-
-

- 0.146 -

-
-

- 0.27 -

-
-

- 0.403 -

-
-

- 0.531 -

-
-

- 0.644 -

-
-

- 0.738 -

-
-

- 0.813 -

-
-

- 0.869 -

-
-

- 0.911 -

-
-

- 0.94 -

-
-

- 7 -

-
-

- 0.138 -

-
-

- 0.252 -

-
-

- 0.378 -

-
-

- 0.502 -

-
-

- 0.614 -

-
-

- 0.71 -

-
-

- 0.788 -

-
-

- 0.849 -

-
-

- 0.895 -

-
-

- 0.928 -

-
-

- 8 -

-
-

- 0.131 -

-
-

- 0.238 -

-
-

- 0.357 -

-
-

- 0.477 -

-
-

- 0.588 -

-
-

- 0.685 -

-
-

- 0.765 -

-
-

- 0.829 -

-
-

- 0.879 -

-
-

- 0.915 -

-
-

- 9 -

-
-

- 0.125 -

-
-

- 0.225 -

-
-

- 0.339 -

-
-

- 0.454 -

-
-

- 0.564 -

-
-

- 0.661 -

-
-

- 0.744 -

-
-

- 0.811 -

-
-

- 0.863 -

-
-

- 0.903 -

-
-

- 10 -

-
-

- 0.121 -

-
-

- 0.215 -

-
-

- 0.323 -

-
-

- 0.435 -

-
-

- 0.542 -

-
-

- 0.64 -

-
-

- 0.723 -

-
-

- 0.793 -

-
-

- 0.848 -

-
-

- 0.891 -

-
-

- 11 -

-
-

- 0.117 -

-
-

- 0.206 -

-
-

- 0.309 -

-
-

- 0.417 -

-
-

- 0.523 -

-
-

- 0.62 -

-
-

- 0.704 -

-
-

- 0.775 -

-
-

- 0.833 -

-
-

- 0.878 -

-
-

- 12 -

-
-

- 0.113 -

-
-

- 0.198 -

-
-

- 0.297 -

-
-

- 0.402 -

-
-

- 0.505 -

-
-

- 0.601 -

-
-

- 0.686 -

-
-

- 0.759 -

-
-

- 0.818 -

-
-

- 0.866 -

-
-

- 13 -

-
-

- 0.11 -

-
-

- 0.191 -

-
-

- 0.286 -

-
-

- 0.387 -

-
-

- 0.488 -

-
-

- 0.584 -

-
-

- 0.669 -

-
-

- 0.743 -

-
-

- 0.804 -

-
-

- 0.854 -

-
-

- 14 -

-
-

- 0.108 -

-
-

- 0.185 -

-
-

- 0.276 -

-
-

- 0.374 -

-
-

- 0.473 -

-
-

- 0.567 -

-
-

- 0.653 -

-
-

- 0.728 -

-
-

- 0.791 -

-
-

- 0.842 -

-
-

- 15 -

-
-

- 0.105 -

-
-

- 0.179 -

-
-

- 0.267 -

-
-

- 0.362 -

-
-

- 0.459 -

-
-

- 0.552 -

-
-

- 0.638 -

-
-

- 0.713 -

-
-

- 0.777 -

-
-

- 0.83 -

-
-

- 16 -

-
-

- 0.103 -

-
-

- 0.174 -

-
-

- 0.259 -

-
-

- 0.351 -

-
-

- 0.446 -

-
-

- 0.538 -

-
-

- 0.623 -

-
-

- 0.699 -

-
-

- 0.764 -

-
-

- 0.819 -

-
-

- 17 -

-
-

- 0.101 -

-
-

- 0.169 -

-
-

- 0.251 -

-
-

- 0.341 -

-
-

- 0.434 -

-
-

- 0.525 -

-
-

- 0.609 -

-
-

- 0.686 -

-
-

- 0.752 -

-
-

- 0.807 -

-
-

- 18 -

-
-

- 0.0992 -

-
-

- 0.165 -

-
-

- 0.244 -

-
-

- 0.332 -

-
-

- 0.423 -

-
-

- 0.512 -

-
-

- 0.596 -

-
-

- 0.673 -

-
-

- 0.74 -

-
-

- 0.796 -

-
-

- 19 -

-
-

- 0.0976 -

-
-

- 0.161 -

-
-

- 0.238 -

-
-

- 0.323 -

-
-

- 0.412 -

-
-

- 0.5 -

-
-

- 0.584 -

-
-

- 0.66 -

-
-

- 0.728 -

-
-

- 0.786 -

-
-

- 20 -

-
-

- 0.0961 -

-
-

- 0.158 -

-
-

- 0.232 -

-
-

- 0.315 -

-
-

- 0.402 -

-
-

- 0.489 -

-
-

- 0.572 -

-
-

- 0.648 -

-
-

- 0.716 -

-
-

- 0.775 -

-
-

- See nc_chi_sq_example.cpp - for the full C++ source code. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg.html deleted file mode 100644 index 7588620b..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg.html +++ /dev/null @@ -1,62 +0,0 @@ - - - -Negative Binomial Distribution Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_conf.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_conf.html deleted file mode 100644 index 05b11fad..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_conf.html +++ /dev/null @@ -1,221 +0,0 @@ - - - -Calculating Confidence Limits on the Frequency of Occurrence for the Negative Binomial Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Imagine you have a process that follows a negative binomial distribution: - for each trial conducted, an event either occurs or does it does not, - referred to as "successes" and "failures". The frequency - with which successes occur is variously referred to as the success fraction, - success ratio, success percentage, occurrence frequency, or probability - of occurrence. -

-

- If, by experiment, you want to measure the the best estimate of success - fraction is given simply by k / N, - for k successes out of N trials. -

-

- However our confidence in that estimate will be shaped by how many trials - were conducted, and how many successes were observed. The static member - functions negative_binomial_distribution<>::find_lower_bound_on_p - and negative_binomial_distribution<>::find_upper_bound_on_p - allow you to calculate the confidence intervals for your estimate of - the success fraction. -

-

- The sample program neg_binom_confidence_limits.cpp - illustrates their use. -

-

- First we need some includes to access the negative binomial distribution - (and some basic std output of course). -

-
#include <boost/math/distributions/negative_binomial.hpp>
-using boost::math::negative_binomial;
-
-#include <iostream>
-using std::cout; using std::endl;
-#include <iomanip>
-using std::setprecision;
-using std::setw; using std::left; using std::fixed; using std::right;
-
-

- First define a table of significance levels: these are the probabilities - that the true occurrence frequency lies outside the calculated interval: -

-
double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 };
-
-

- Confidence value as % is (1 - alpha) * 100, so alpha 0.05 == 95% confidence - that the true occurrence frequency lies inside - the calculated interval. -

-

- We need a function to calculate and print confidence limits for an observed - frequency of occurrence that follows a negative binomial distribution. -

-
void confidence_limits_on_frequency(unsigned trials, unsigned successes)
-{
-   // trials = Total number of trials.
-   // successes = Total number of observed successes.
-   // failures = trials - successes.
-   // success_fraction = successes /trials.
-   // Print out general info:
-   cout <<
-      "______________________________________________\n"
-      "2-Sided Confidence Limits For Success Fraction\n"
-      "______________________________________________\n\n";
-   cout << setprecision(7);
-   cout << setw(40) << left << "Number of trials" << " =  " << trials << "\n";
-   cout << setw(40) << left << "Number of successes" << " =  " << successes << "\n";
-   cout << setw(40) << left << "Number of failures" << " =  " << trials - successes << "\n";
-   cout << setw(40) << left << "Observed frequency of occurrence" << " =  " << double(successes) / trials << "\n";
-
-   // Print table header:
-   cout << "\n\n"
-           "___________________________________________\n"
-           "Confidence        Lower          Upper\n"
-           " Value (%)        Limit          Limit\n"
-           "___________________________________________\n";
-
-

- And now for the important part - the bounds themselves. For each value - of alpha, we call find_lower_bound_on_p - and find_upper_bound_on_p - to obtain lower and upper bounds respectively. Note that since we are - calculating a two-sided interval, we must divide the value of alpha in - two. Had we been calculating a single-sided interval, for example: "Calculate - a lower bound so that we are P% sure that the true occurrence frequency - is greater than some value" then we would not - have divided by two. -

-
   // Now print out the upper and lower limits for the alpha table values.
-   for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i)
-   {
-      // Confidence value:
-      cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]);
-      // Calculate bounds:
-      double lower = negative_binomial::find_lower_bound_on_p(trials, successes, alpha[i]/2);
-      double upper = negative_binomial::find_upper_bound_on_p(trials, successes, alpha[i]/2);
-      // Print limits:
-      cout << fixed << setprecision(5) << setw(15) << right << lower;
-      cout << fixed << setprecision(5) << setw(15) << right << upper << endl;
-   }
-   cout << endl;
-} // void confidence_limits_on_frequency(unsigned trials, unsigned successes)
-
-

- And then call confidence_limits_on_frequency with increasing numbers - of trials, but always the same success fraction 0.1, or 1 in 10. -

-
int main()
-{
-  confidence_limits_on_frequency(20, 2); // 20 trials, 2 successes, 2 in 20, = 1 in 10 = 0.1 success fraction.
-  confidence_limits_on_frequency(200, 20); // More trials, but same 0.1 success fraction.
-  confidence_limits_on_frequency(2000, 200); // Many more trials, but same 0.1 success fraction.
-
-  return 0;
-} // int main()
-
-

- Let's see some sample output for a 1 in 10 success ratio, first for a - mere 20 trials: -

-
______________________________________________
-2-Sided Confidence Limits For Success Fraction
-______________________________________________
-Number of trials                         =  20
-Number of successes                      =  2
-Number of failures                       =  18
-Observed frequency of occurrence         =  0.1
-___________________________________________
-Confidence        Lower          Upper
- Value (%)        Limit          Limit
-___________________________________________
-    50.000        0.04812        0.13554
-    75.000        0.03078        0.17727
-    90.000        0.01807        0.22637
-    95.000        0.01235        0.26028
-    99.000        0.00530        0.33111
-    99.900        0.00164        0.41802
-    99.990        0.00051        0.49202
-    99.999        0.00016        0.55574
-
-

- As you can see, even at the 95% confidence level the bounds (0.012 to - 0.26) are really very wide, and very asymmetric about the observed value - 0.1. -

-

- Compare that with the program output for a mass 2000 trials: -

-
______________________________________________
-2-Sided Confidence Limits For Success Fraction
-______________________________________________
-Number of trials                         =  2000
-Number of successes                      =  200
-Number of failures                       =  1800
-Observed frequency of occurrence         =  0.1
-___________________________________________
-Confidence        Lower          Upper
- Value (%)        Limit          Limit
-___________________________________________
-    50.000        0.09536        0.10445
-    75.000        0.09228        0.10776
-    90.000        0.08916        0.11125
-    95.000        0.08720        0.11352
-    99.000        0.08344        0.11802
-    99.900        0.07921        0.12336
-    99.990        0.07577        0.12795
-    99.999        0.07282        0.13206
-
-

- Now even when the confidence level is very high, the limits (at 99.999%, - 0.07 to 0.13) are really quite close and nearly symmetric to the observed - value of 0.1. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_size_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_size_eg.html deleted file mode 100644 index b25a385e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_size_eg.html +++ /dev/null @@ -1,207 +0,0 @@ - - - -Estimating Sample Sizes for the Negative Binomial. - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Imagine you have an event (let's call it a "failure" - though - we could equally well call it a success if we felt it was a 'good' event) - that you know will occur in 1 in N trials. You may want to know how many - trials you need to conduct to be P% sure of observing at least k such - failures. If the failure events follow a negative binomial distribution - (each trial either succeeds or fails) then the static member function - negative_binomial_distibution<>::find_minimum_number_of_trials - can be used to estimate the minimum number of trials required to be P% - sure of observing the desired number of failures. -

-

- The example program neg_binomial_sample_sizes.cpp - demonstrates its usage. -

-

- It centres around a routine that prints out a table of minimum sample - sizes (number of trials) for various probability thresholds: -

-
void find_number_of_trials(double failures, double p);
-
-

- First define a table of significance levels: these are the maximum acceptable - probability that failure or fewer events will be - observed. -

-
double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 };
-
-

- Confidence value as % is (1 - alpha) * 100, so alpha 0.05 == 95% confidence - that the desired number of failures will be observed. The values range - from a very low 0.5 or 50% confidence up to an extremely high confidence - of 99.999. -

-

- Much of the rest of the program is pretty-printing, the important part - is in the calculation of minimum number of trials required for each value - of alpha using: -

-
(int)ceil(negative_binomial::find_minimum_number_of_trials(failures, p, alpha[i]);
-
-

- find_minimum_number_of_trials returns a double, so ceil - rounds this up to ensure we have an integral minimum number of trials. -

-
void find_number_of_trials(double failures, double p)
-{
-   // trials = number of trials
-   // failures = number of failures before achieving required success(es).
-   // p        = success fraction (0 <= p <= 1.).
-   //
-   // Calculate how many trials we need to ensure the
-   // required number of failures DOES exceed "failures".
-
-  cout << "\n""Target number of failures = " << (int)failures;
-  cout << ",   Success fraction = " << fixed << setprecision(1) << 100 * p << "%" << endl;
-   // Print table header:
-   cout << "____________________________\n"
-           "Confidence        Min Number\n"
-           " Value (%)        Of Trials \n"
-           "____________________________\n";
-   // Now print out the data for the alpha table values.
-  for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i)
-   { // Confidence values %:
-      cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]) << "      "
-      // find_minimum_number_of_trials
-      << setw(6) << right
-      << (int)ceil(negative_binomial::find_minimum_number_of_trials(failures, p, alpha[i]))
-      << endl;
-   }
-   cout << endl;
-} // void find_number_of_trials(double failures, double p)
-
-

- finally we can produce some tables of minimum trials for the chosen confidence - levels: -

-
int main()
-{
-    find_number_of_trials(5, 0.5);
-    find_number_of_trials(50, 0.5);
-    find_number_of_trials(500, 0.5);
-    find_number_of_trials(50, 0.1);
-    find_number_of_trials(500, 0.1);
-    find_number_of_trials(5, 0.9);
-
-    return 0;
-} // int main()
-
-
- - - - - -
[Note]Note
-

- Since we're calculating the minimum number of - trials required, we'll err on the safe side and take the ceiling of - the result. Had we been calculating the maximum - number of trials permitted to observe less than a certain number of - failures then we would have taken the floor instead. - We would also have called find_minimum_number_of_trials - like this: -

-
floor(negative_binomial::find_minimum_number_of_trials(failures, p, alpha[i]))
-
-

- which would give us the largest number of trials we could conduct and - still be P% sure of observing failures or less - failure events, when the probability of success is p. -

-
-

- We'll finish off by looking at some sample output, firstly suppose we - wish to observe at least 5 "failures" with a 50/50 (0.5) chance - of success or failure: -

-
Target number of failures = 5,   Success fraction = 50%
-
-____________________________
-Confidence        Min Number
- Value (%)        Of Trials
-____________________________
-    50.000          11
-    75.000          14
-    90.000          17
-    95.000          18
-    99.000          22
-    99.900          27
-    99.990          31
-    99.999          36
-
-
-

- So 18 trials or more would yield a 95% chance that at least our 5 required - failures would be observed. -

-

- Compare that to what happens if the success ratio is 90%: -

-
Target number of failures = 5.000,   Success fraction = 90.000%
-
-____________________________
-Confidence        Min Number
- Value (%)        Of Trials
-____________________________
-    50.000          57
-    75.000          73
-    90.000          91
-    95.000         103
-    99.000         127
-    99.900         159
-    99.990         189
-    99.999         217
-
-

- So now 103 trials are required to observe at least 5 failures with 95% - certainty. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example1.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example1.html deleted file mode 100644 index 944ccbd0..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example1.html +++ /dev/null @@ -1,507 +0,0 @@ - - - -Negative Binomial Sales Quota Example. - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- This example program negative_binomial_example1.cpp - (full source code) demonstrates a simple use to find the probability - of meeting a sales quota. -

-

- Based on a - problem by Dr. Diane Evans, Professor of Mathematics at Rose-Hulman Institute - of Technology. -

-

- Pat is required to sell candy bars to raise money for the 6th grade field - trip. There are thirty houses in the neighborhood, and Pat is not supposed - to return home until five candy bars have been sold. So the child goes - door to door, selling candy bars. At each house, there is a 0.4 probability - (40%) of selling one candy bar and a 0.6 probability (60%) of selling - nothing. -

-

- What is the probability mass (density) function (pdf) for selling the - last (fifth) candy bar at the nth house? -

-

- The Negative Binomial(r, p) distribution describes the probability of - k failures and r successes in k+r Bernoulli(p) trials with success on - the last trial. (A Bernoulli - trial is one with only two possible outcomes, success of failure, - and p is the probability of success). See also Bernoulli - distribution and Bernoulli - applications. -

-

- In this example, we will deliberately produce a variety of calculations - and outputs to demonstrate the ways that the negative binomial distribution - can be implemented with this library: it is also deliberately over-commented. -

-

- First we need to #define macros to control the error and discrete handling - policies. For this simple example, we want to avoid throwing an exception - (the default policy) and just return infinity. We want to treat the distribution - as if it was continuous, so we choose a discrete_quantile policy of real, - rather than the default policy integer_round_outwards. -

-
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
-#define BOOST_MATH_DISCRETE_QUANTILE_POLICY real
-
-

- After that we need some includes to provide easy access to the negative - binomial distribution, -

-
- - - - - -
[Caution]Caution

- It is vital to #include distributions etc after - the above #defines -

-

- and we need some std library iostream, of course. -

-
#include <boost/math/distributions/negative_binomial.hpp>
-  // for negative_binomial_distribution
-  using boost::math::negative_binomial; // typedef provides default type is double.
-  using  ::boost::math::pdf; // Probability mass function.
-  using  ::boost::math::cdf; // Cumulative density function.
-  using  ::boost::math::quantile;
-
-#include <iostream>
-  using std::cout; using std::endl;
-  using std::noshowpoint; using std::fixed; using std::right; using std::left;
-#include <iomanip>
-  using std::setprecision; using std::setw;
-
-#include <limits>
-  using std::numeric_limits;
-
-

- It is always sensible to use try and catch blocks because defaults policies - are to throw an exception if anything goes wrong. -

-

- A simple catch block (see below) will ensure that you get a helpful error - message instead of an abrupt program abort. -

-
try
-{
-
-

- Selling five candy bars means getting five successes, so successes r - = 5. The total number of trials (n, in this case, houses visited) this - takes is therefore = sucesses + failures or k + r = k + 5. -

-
double sales_quota = 5; // Pat's sales quota - successes (r).
-
-

- At each house, there is a 0.4 probability (40%) of selling one candy - bar and a 0.6 probability (60%) of selling nothing. -

-
double success_fraction = 0.4; // success_fraction (p) - so failure_fraction is 0.6.
-
-

- The Negative Binomial(r, p) distribution describes the probability of - k failures and r successes in k+r Bernoulli(p) trials with success on - the last trial. (A Bernoulli - trial is one with only two possible outcomes, success of failure, - and p is the probability of success). -

-

- We therefore start by constructing a negative binomial distribution with - parameters sales_quota (required successes) and probability of success. -

-
negative_binomial nb(sales_quota, success_fraction); // type double by default.
-
-

- To confirm, display the success_fraction & successes parameters of - the distribution. -

-
cout << "Pat has a sales per house success rate of " << success_fraction
-  << ".\nTherefore he would, on average, sell " << nb.success_fraction() * 100
-  << " bars after trying 100 houses." << endl;
-
-int all_houses = 30; // The number of houses on the estate.
-
-cout << "With a success rate of " << nb.success_fraction()
-  << ", he might expect, on average,\n"
-    "to need to visit about " << success_fraction * all_houses
-    << " houses in order to sell all " << nb.successes() << " bars. " << endl;
-
-
Pat has a sales per house success rate of 0.4.
-Therefore he would, on average, sell 40 bars after trying 100 houses.
-With a success rate of 0.4, he might expect, on average,
-to need to visit about 12 houses in order to sell all 5 bars.
-
-

- The random variable of interest is the number of houses that must be - visited to sell five candy bars, so we substitute k = n - 5 into a negative_binomial(5, - 0.4) and obtain the Probability - Density Function of the distribution of houses visited. Obviously, - the best possible case is that Pat makes sales on all the first five - houses. -

-

- We calculate this using the pdf function: -

-
cout << "Probability that Pat finishes on the " << sales_quota << "th house is "
-  << pdf(nb, 5 - sales_quota) << endl; // == pdf(nb, 0)
-
-

- Of course, he could not finish on fewer than 5 houses because he must - sell 5 candy bars. So the 5th house is the first that he could possibly - finish on. -

-

- To finish on or before the 8th house, Pat must finish at the 5th, 6th, - 7th or 8th house. The probability that he will finish on exactly - ( == ) on any house is the Probability Density Function (pdf). -

-
cout << "Probability that Pat finishes on the 6th house is "
-  << pdf(nb, 6 - sales_quota) << endl;
-cout << "Probability that Pat finishes on the 7th house is "
-  << pdf(nb, 7 - sales_quota) << endl;
-cout << "Probability that Pat finishes on the 8th house is "
-  << pdf(nb, 8 - sales_quota) << endl;
-
-
Probability that Pat finishes on the 6th house is 0.03072
-Probability that Pat finishes on the 7th house is 0.055296
-Probability that Pat finishes on the 8th house is 0.077414
-
-

- The sum of the probabilities for these houses is the Cumulative Distribution - Function (cdf). We can calculate it by adding the individual probabilities. -

-
cout << "Probability that Pat finishes on or before the 8th house is sum "
-  "\n" << "pdf(sales_quota) + pdf(6) + pdf(7) + pdf(8) = "
-  // Sum each of the mass/density probabilities for houses sales_quota = 5, 6, 7, & 8.
-  << pdf(nb, 5 - sales_quota) // 0 failures.
-    + pdf(nb, 6 - sales_quota) // 1 failure.
-    + pdf(nb, 7 - sales_quota) // 2 failures.
-    + pdf(nb, 8 - sales_quota) // 3 failures.
-  << endl;
-
-
pdf(sales_quota) + pdf(6) + pdf(7) + pdf(8) = 0.17367
-
-

- Or, usually better, by using the negative binomial cumulative - distribution function. -

-
cout << "\nProbability of selling his quota of " << sales_quota
-  << " bars\non or before the " << 8 << "th house is "
-  << cdf(nb, 8 - sales_quota) << endl;
-
-
Probability of selling his quota of 5 bars on or before the 8th house is 0.17367
-
-
cout << "\nProbability that Pat finishes exactly on the 10th house is "
-  << pdf(nb, 10 - sales_quota) << endl;
-cout << "\nProbability of selling his quota of " << sales_quota
-  << " bars\non or before the " << 10 << "th house is "
-  << cdf(nb, 10 - sales_quota) << endl;
-
-
Probability that Pat finishes exactly on the 10th house is 0.10033
-Probability of selling his quota of 5 bars on or before the 10th house is 0.3669
-
-
cout << "Probability that Pat finishes exactly on the 11th house is "
-  << pdf(nb, 11 - sales_quota) << endl;
-cout << "\nProbability of selling his quota of " << sales_quota
-  << " bars\non or before the " << 11 << "th house is "
-  << cdf(nb, 11 - sales_quota) << endl;
-
-
Probability that Pat finishes on the 11th house is 0.10033
-Probability of selling his quota of 5 candy bars
-on or before the 11th house is 0.46723
-
-
cout << "Probability that Pat finishes exactly on the 12th house is "
-  << pdf(nb, 12 - sales_quota) << endl;
-
-cout << "\nProbability of selling his quota of " << sales_quota
-  << " bars\non or before the " << 12 << "th house is "
-  << cdf(nb, 12 - sales_quota) << endl;
-
-
Probability that Pat finishes on the 12th house is 0.094596
-Probability of selling his quota of 5 candy bars
-on or before the 12th house is 0.56182
-
-

- Finally consider the risk of Pat not selling his quota of 5 bars even - after visiting all the houses. Calculate the probability that he will - sell on or before the last house: Calculate the probability that he would - sell all his quota on the very last house. -

-
cout << "Probability that Pat finishes on the " << all_houses
-  << " house is " << pdf(nb, all_houses - sales_quota) << endl;
-
-

- Probability of selling his quota of 5 bars on the 30th house is -

-
Probability that Pat finishes on the 30 house is 0.00069145
-
-

- when he'd be very unlucky indeed! -

-

- What is the probability that Pat exhausts all 30 houses in the neighborhood, - and still doesn't sell the required - 5 candy bars? -

-
cout << "\nProbability of selling his quota of " << sales_quota
-  << " bars\non or before the " << all_houses << "th house is "
-  << cdf(nb, all_houses - sales_quota) << endl;
-
-
Probability of selling his quota of 5 bars
-on or before the 30th house is 0.99849
-
-

- /*So the - risk of - failing even - after visiting - all the - houses is - 1 - this probability, 1 - - cdf(nb, all_houses - - sales_quota - But using - this expression - may cause - serious inaccuracy, so it would - be much - better to - use the - complement of - the cdf: So the risk - of failing - even at, or after, the 31th (non-existent) - houses is - 1 - this probability, 1 - - cdf(nb, all_houses - - sales_quota)` But using this expression may cause - serious inaccuracy. So it would be much better to use the __complement - of the cdf (see why complements?). -

-
cout << "\nProbability of failing to sell his quota of " << sales_quota
-  << " bars\neven after visiting all " << all_houses << " houses is "
-  << cdf(complement(nb, all_houses - sales_quota)) << endl;
-
-
Probability of failing to sell his quota of 5 bars
-even after visiting all 30 houses is 0.0015101
-
-

- We can also use the quantile (percentile), the inverse of the cdf, to - predict which house Pat will finish on. So for the 8th house: -

-
double p = cdf(nb, (8 - sales_quota));
-cout << "Probability of meeting sales quota on or before 8th house is "<< p << endl;
-
-
Probability of meeting sales quota on or before 8th house is 0.174
-
-
cout << "If the confidence of meeting sales quota is " << p
-    << ", then the finishing house is " << quantile(nb, p) + sales_quota << endl;
-
-cout<< " quantile(nb, p) = " << quantile(nb, p) << endl;
-
-
If the confidence of meeting sales quota is 0.17367, then the finishing house is 8
-
-

- Demanding absolute certainty that all 5 will be sold, implies an infinite - number of trials. (Of course, there are only 30 houses on the estate, - so he can't ever be certain of selling - his quota). -

-
cout << "If the confidence of meeting sales quota is " << 1.
-    << ", then the finishing house is " << quantile(nb, 1) + sales_quota << endl;
-//  1.#INF == infinity.
-
-
If the confidence of meeting sales quota is 1, then the finishing house is 1.#INF
-
-

- And similarly for a few other probabilities: -

-
cout << "If the confidence of meeting sales quota is " << 0.
-    << ", then the finishing house is " << quantile(nb, 0.) + sales_quota << endl;
-
-cout << "If the confidence of meeting sales quota is " << 0.5
-    << ", then the finishing house is " << quantile(nb, 0.5) + sales_quota << endl;
-
-cout << "If the confidence of meeting sales quota is " << 1 - 0.00151 // 30 th
-    << ", then the finishing house is " << quantile(nb, 1 - 0.00151) + sales_quota << endl;
-
-
If the confidence of meeting sales quota is 0, then the finishing house is 5
-If the confidence of meeting sales quota is 0.5, then the finishing house is 11.337
-If the confidence of meeting sales quota is 0.99849, then the finishing house is 30
-
-

- Notice that because we chose a discrete quantile policy of real, the - result can be an 'unreal' fractional house. -

-

- If the opposite is true, we don't want to assume any confidence, then - this is tantamount to assuming that all the first sales_quota trials - will be successful sales. -

-
cout << "If confidence of meeting quota is zero\n(we assume all houses are successful sales)"
-  ", then finishing house is " << sales_quota << endl;
-
-
If confidence of meeting quota is zero (we assume all houses are successful sales), then finishing house is 5
-If confidence of meeting quota is 0, then finishing house is 5
-
-

- We can list quantiles for a few probabilities: -

-
 double ps[] = {0., 0.001, 0.01, 0.05, 0.1, 0.5, 0.9, 0.95, 0.99, 0.999, 1.};
- // Confidence as fraction = 1-alpha, as percent =  100 * (1-alpha[i]) %
- cout.precision(3);
- for (int i = 0; i < sizeof(ps)/sizeof(ps[0]); i++)
- {
-   cout << "If confidence of meeting quota is " << ps[i]
-     << ", then finishing house is " << quantile(nb, ps[i]) + sales_quota
-     << endl;
-}
-
-
If confidence of meeting quota is 0, then finishing house is 5
-If confidence of meeting quota is 0.001, then finishing house is 5
-If confidence of meeting quota is 0.01, then finishing house is 5
-If confidence of meeting quota is 0.05, then finishing house is 6.2
-If confidence of meeting quota is 0.1, then finishing house is 7.06
-If confidence of meeting quota is 0.5, then finishing house is 11.3
-If confidence of meeting quota is 0.9, then finishing house is 17.8
-If confidence of meeting quota is 0.95, then finishing house is 20.1
-If confidence of meeting quota is 0.99, then finishing house is 24.8
-If confidence of meeting quota is 0.999, then finishing house is 31.1
-If confidence of meeting quota is 1, then finishing house is 1.#INF
-
-

- We could have applied a ceil function to obtain a 'worst case' integer - value for house. -

-
ceil(quantile(nb, ps[i]))
-

- Or, if we had used the default discrete quantile policy, integer_outside, - by omitting -

-
#define BOOST_MATH_DISCRETE_QUANTILE_POLICY real
-

- we would have achieved the same effect. -

-

- The real result gives some suggestion which house is most likely. For - example, compare the real and integer_outside for 95% confidence. -

-
If confidence of meeting quota is 0.95, then finishing house is 20.1
-If confidence of meeting quota is 0.95, then finishing house is 21
-
-

- The real value 20.1 is much closer to 20 than 21, so integer_outside - is pessimistic. We could also use integer_round_nearest policy to suggest - that 20 is more likely. -

-

- Finally, we can tabulate the probability for the last sale being exactly - on each house. -

-
cout << "\nHouse for " << sales_quota << "th (last) sale.  Probability (%)" << endl;
-cout.precision(5);
-for (int i = (int)sales_quota; i < all_houses+1; i++)
-{
-  cout << left << setw(3) << i << "                             " << setw(8) << cdf(nb, i - sales_quota)  << endl;
-}
-cout << endl;
-
-
House for 5 th (last) sale.  Probability (%)
-5                               0.01024
-6                               0.04096
-7                               0.096256
-8                               0.17367
-9                               0.26657
-10                              0.3669
-11                              0.46723
-12                              0.56182
-13                              0.64696
-14                              0.72074
-15                              0.78272
-16                              0.83343
-17                              0.874
-18                              0.90583
-19                              0.93039
-20                              0.94905
-21                              0.96304
-22                              0.97342
-23                              0.98103
-24                              0.98655
-25                              0.99053
-26                              0.99337
-27                              0.99539
-28                              0.99681
-29                              0.9978
-30                              0.99849
-
-

- As noted above, using a catch block is always a good idea, even if you - do not expect to use it. -

-
}
-catch(const std::exception& e)
-{ // Since we have set an overflow policy of ignore_error,
-  // an overflow exception should never be thrown.
-   std::cout << "\nMessage from thrown exception was:\n " << e.what() << std::endl;
-
-

- For example, without a ignore domain error policy, if we asked for -

-
pdf(nb, -1)
-

- for example, we would get: -

-
Message from thrown exception was:
- Error in function boost::math::pdf(const negative_binomial_distribution<double>&, double):
- Number of failures argument is -1, but must be >= 0 !
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example2.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example2.html deleted file mode 100644 index d9ccf4d7..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example2.html +++ /dev/null @@ -1,136 +0,0 @@ - - - -Negative Binomial Table Printing Example. - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Example program showing output of a table of values of cdf and pdf for - various k failures. -

-
// Print a table of values that can be used to plot
-// using Excel, or some other superior graphical display tool.
-
-cout.precision(17); // Use max_digits10 precision, the maximum available for a reference table.
-cout << showpoint << endl; // include trailing zeros.
-// This is a maximum possible precision for the type (here double) to suit a reference table.
-int maxk = static_cast<int>(2. * mynbdist.successes() /  mynbdist.success_fraction());
-// This maxk shows most of the range of interest, probability about 0.0001 to 0.999.
-cout << "\n"" k            pdf                      cdf""\n" << endl;
-for (int k = 0; k < maxk; k++)
-{
-  cout << right << setprecision(17) << showpoint
-    << right << setw(3) << k  << ", "
-    << left << setw(25) << pdf(mynbdist, static_cast<double>(k))
-    << left << setw(25) << cdf(mynbdist, static_cast<double>(k))
-    << endl;
-}
-cout << endl;
-
-
k            pdf                      cdf
- 0, 1.5258789062500000e-005  1.5258789062500003e-005
- 1, 9.1552734375000000e-005  0.00010681152343750000
- 2, 0.00030899047851562522   0.00041580200195312500
- 3, 0.00077247619628906272   0.0011882781982421875
- 4, 0.0015932321548461918    0.0027815103530883789
- 5, 0.0028678178787231476    0.0056493282318115234
- 6, 0.0046602040529251142    0.010309532284736633
- 7, 0.0069903060793876605    0.017299838364124298
- 8, 0.0098301179241389001    0.027129956288263202
- 9, 0.013106823898851871     0.040236780187115073
-10, 0.016711200471036140     0.056947980658151209
-11, 0.020509200578089786     0.077457181236241013
-12, 0.024354675686481652     0.10181185692272265
-13, 0.028101548869017230     0.12991340579173993
-14, 0.031614242477644432     0.16152764826938440
-15, 0.034775666725408917     0.19630331499479325
-16, 0.037492515688331451     0.23379583068312471
-17, 0.039697957787645101     0.27349378847076977
-18, 0.041352039362130305     0.31484582783290005
-19, 0.042440250924291580     0.35728607875719176
-20, 0.042970754060845245     0.40025683281803687
-21, 0.042970754060845225     0.44322758687888220
-22, 0.042482450037426581     0.48571003691630876
-23, 0.041558918514873783     0.52726895543118257
-24, 0.040260202311284021     0.56752915774246648
-25, 0.038649794218832620     0.60617895196129912
-26, 0.036791631035234917     0.64297058299653398
-27, 0.034747651533277427     0.67771823452981139
-28, 0.032575923312447595     0.71029415784225891
-29, 0.030329307911589130     0.74062346575384819
-30, 0.028054609818219924     0.76867807557206813
-31, 0.025792141284492545     0.79447021685656061
-32, 0.023575629142856460     0.81804584599941710
-33, 0.021432390129869489     0.83947823612928651
-34, 0.019383705779220189     0.85886194190850684
-35, 0.017445335201298231     0.87630727710980494
-36, 0.015628112784496322     0.89193538989430121
-37, 0.013938587078064250     0.90587397697236549
-38, 0.012379666154859701     0.91825364312722524
-39, 0.010951243136991251     0.92920488626421649
-40, 0.0096507830144735539    0.93885566927869002
-41, 0.0084738582566109364    0.94732952753530097
-42, 0.0074146259745345548    0.95474415350983555
-43, 0.0064662435824429246    0.96121039709227851
-44, 0.0056212231142827853    0.96683162020656122
-45, 0.0048717266990450708    0.97170334690560634
-46, 0.0042098073105878630    0.97591315421619418
-47, 0.0036275999165703964    0.97954075413276465
-48, 0.0031174686783026818    0.98265822281106729
-49, 0.0026721160099737302    0.98533033882104104
-50, 0.0022846591885275322    0.98761499800956853
-51, 0.0019486798960970148    0.98956367790566557
-52, 0.0016582516423517923    0.99122192954801736
-53, 0.0014079495076571762    0.99262987905567457
-54, 0.0011928461106539983    0.99382272516632852
-55, 0.0010084971662802015    0.99483122233260868
-56, 0.00085091948404891532   0.99568214181665760
-57, 0.00071656377604119542   0.99639870559269883
-58, 0.00060228420831048650   0.99700098980100937
-59, 0.00050530624256557675   0.99750629604357488
-60, 0.00042319397814867202   0.99792949002172360
-61, 0.00035381791615708398   0.99828330793788067
-62, 0.00029532382517950324   0.99857863176306016
-63, 0.00024610318764958566   0.99882473495070978
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/normal_example.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/normal_example.html deleted file mode 100644 index c49fe556..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/normal_example.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Normal Distribution Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/normal_example/normal_misc.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/normal_example/normal_misc.html deleted file mode 100644 index 49863042..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/normal_example/normal_misc.html +++ /dev/null @@ -1,518 +0,0 @@ - - - -Some Miscellaneous Examples of the Normal (Gaussian) Distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The sample program normal_misc_examples.cpp - illustrates their use. -

-
- - Traditional - Tables -
-

- First we need some includes to access the normal distribution (and some - std output of course). -

-
#include <boost/math/distributions/normal.hpp> // for normal_distribution
-  using boost::math::normal; // typedef provides default type is double.
-
-#include <iostream>
-  using std::cout; using std::endl; using std::left; using std::showpoint; using std::noshowpoint;
-#include <iomanip>
-  using std::setw; using std::setprecision;
-#include <limits>
-  using std::numeric_limits;
-
-int main()
-{
-  cout << "Example: Normal distribution, Miscellaneous Applications.";
-
-  try
-  {
-    { // Traditional tables and values.
-
-

- Let's start by printing some traditional tables. -

-
double step = 1.; // in z
-double range = 4; // min and max z = -range to +range.
-int precision = 17; // traditional tables are only computed to much lower precision.
-// but std::numeric_limits<double>::max_digits10; on new Standard Libraries gives
-// 17, the maximum number of digits that can possibly be significant.
-// std::numeric_limits<double>::digits10; == 15 is number of guaranteed digits,
-// the other two digits being 'noisy'.
-
-// Construct a standard normal distribution s
-  normal s; // (default mean = zero, and standard deviation = unity)
-  cout << "Standard normal distribution, mean = "<< s.mean()
-    << ", standard deviation = " << s.standard_deviation() << endl;
-
-

- First the probability distribution function (pdf). -

-
cout << "Probability distribution function values" << endl;
-cout << "  z " "      pdf " << endl;
-cout.precision(5);
-for (double z = -range; z < range + step; z += step)
-{
-  cout << left << setprecision(3) << setw(6) << z << " "
-    << setprecision(precision) << setw(12) << pdf(s, z) << endl;
-}
-cout.precision(6); // default
-
-

- And the area under the normal curve from -∞ up to z, the cumulative distribution - function (cdf). -

-
// For a standard normal distribution
-cout << "Standard normal mean = "<< s.mean()
-  << ", standard deviation = " << s.standard_deviation() << endl;
-cout << "Integral (area under the curve) from - infinity up to z " << endl;
-cout << "  z " "      cdf " << endl;
-for (double z = -range; z < range + step; z += step)
-{
-  cout << left << setprecision(3) << setw(6) << z << " "
-    << setprecision(precision) << setw(12) << cdf(s, z) << endl;
-}
-cout.precision(6); // default
-
-

- And all this you can do with a nanoscopic amount of work compared to - the team of human computers toiling - with Milton Abramovitz and Irene Stegen at the US National Bureau of - Standards (now NIST). Starting - in 1938, their "Handbook of Mathematical Functions with Formulas, - Graphs and Mathematical Tables", was eventually published in 1964, - and has been reprinted numerous times since. (A major replacement is - planned at Digital Library of Mathematical - Functions). -

-

- Pretty-printing a traditional 2-dimensional table is left as an exercise - for the student, but why bother now that the Math Toolkit lets you write -

-
double z = 2.;
-cout << "Area for z = " << z << " is " << cdf(s, z) << endl; // to get the area for z.
-
-

- Correspondingly, we can obtain the traditional 'critical' values for - significance levels. For the 95% confidence level, the significance level - usually called alpha, is 0.05 = 1 - 0.95 (for a one-sided test), so we - can write -

-
  cout << "95% of area has a z below " << quantile(s, 0.95) << endl;
-// 95% of area has a z below 1.64485
-
-

- and a two-sided test (a comparison between two levels, rather than a - one-sided test) -

-
  cout << "95% of area has a z between " << quantile(s, 0.975)
-    << " and " << -quantile(s, 0.975) << endl;
-// 95% of area has a z between 1.95996 and -1.95996
-
-

- First, define a table of significance levels: these are the probabilities - that the true occurrence frequency lies outside the calculated interval. -

-

- It is convenient to have an alpha level for the probability that z lies - outside just one standard deviation. This will not be some nice neat - number like 0.05, but we can easily calculate it, -

-
double alpha1 = cdf(s, -1) * 2; // 0.3173105078629142
-cout << setprecision(17) << "Significance level for z == 1 is " << alpha1 << endl;
-
-

- and place in our array of favorite alpha values. -

-
double alpha[] = {0.3173105078629142, // z for 1 standard deviation.
-  0.20, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 };
-
-

- Confidence value as % is (1 - alpha) * 100 (so alpha 0.05 == 95% confidence) - that the true occurrence frequency lies inside - the calculated interval. -

-
cout << "level of significance (alpha)" << setprecision(4) << endl;
-cout << "2-sided       1 -sided          z(alpha) " << endl;
-for (int i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i)
-{
-  cout << setw(15) << alpha[i] << setw(15) << alpha[i] /2 << setw(10) << quantile(complement(s,  alpha[i]/2)) << endl;
-  // Use quantile(complement(s, alpha[i]/2)) to avoid potential loss of accuracy from quantile(s,  1 - alpha[i]/2)
-}
-cout << endl;
-
-

- Notice the distinction between one-sided (also called one-tailed) where - we are using a > or < test (and - not both) and considering the area of the tail (integral) from z up to - +∞, and a two-sided test where we are using two > and - < tests, and thus considering two tails, from -∞ up to z low and z high - up to +∞. -

-

- So the 2-sided values alpha[i] are calculated using alpha[i]/2. -

-

- If we consider a simple example of alpha = 0.05, then for a two-sided - test, the lower tail area from -∞ up to -1.96 is 0.025 (alpha/2) and the - upper tail area from +z up to +1.96 is also 0.025 (alpha/2), and the - area between -1.96 up to 12.96 is alpha = 0.95. and the sum of the two - tails is 0.025 + 0.025 = 0.05, -

-
- - Standard - deviations either side of the Mean -
-

- Armed with the cumulative distribution function, we can easily calculate - the easy to remember proportion of values that lie within 1, 2 and 3 - standard deviations from the mean. -

-
cout.precision(3);
-cout << showpoint << "cdf(s, s.standard_deviation()) = "
-  << cdf(s, s.standard_deviation()) << endl;  // from -infinity to 1 sd
-cout << "cdf(complement(s, s.standard_deviation())) = "
-  << cdf(complement(s, s.standard_deviation())) << endl;
-cout << "Fraction 1 standard deviation within either side of mean is "
-  << 1 -  cdf(complement(s, s.standard_deviation())) * 2 << endl;
-cout << "Fraction 2 standard deviations within either side of mean is "
-  << 1 -  cdf(complement(s, 2 * s.standard_deviation())) * 2 << endl;
-cout << "Fraction 3 standard deviations within either side of mean is "
-  << 1 -  cdf(complement(s, 3 * s.standard_deviation())) * 2 << endl;
-
-

- To a useful precision, the 1, 2 & 3 percentages are 68, 95 and 99.7, - and these are worth memorising as useful 'rules of thumb', as, for example, - in standard - deviation: -

-
Fraction 1 standard deviation within either side of mean is 0.683
-Fraction 2 standard deviations within either side of mean is 0.954
-Fraction 3 standard deviations within either side of mean is 0.997
-
-

- We could of course get some really accurate values for these confidence - intervals by using cout.precision(15); -

-
Fraction 1 standard deviation within either side of mean is 0.682689492137086
-Fraction 2 standard deviations within either side of mean is 0.954499736103642
-Fraction 3 standard deviations within either side of mean is 0.997300203936740
-
-

- But before you get too excited about this impressive precision, don't - forget that the confidence intervals of the standard - deviation are surprisingly wide, especially if you have estimated - the standard deviation from only a few measurements. -

-
- - Some - simple examples -
-
- - Life - of light bulbs -
-

- Examples from K. Krishnamoorthy, Handbook of Statistical Distributions - with Applications, ISBN 1 58488 635 8, page 125... implemented using - the Math Toolkit library. -

-

- A few very simple examples are shown here: -

-
// K. Krishnamoorthy, Handbook of Statistical Distributions with Applications,
- // ISBN 1 58488 635 8, page 125, example 10.3.5
-
-

- Mean lifespan of 100 W bulbs is 1100 h with standard deviation of 100 - h. Assuming, perhaps with little evidence and much faith, that the distribution - is normal, we construct a normal distribution called bulbs - with these values: -

-
double mean_life = 1100.;
-double life_standard_deviation = 100.;
-normal bulbs(mean_life, life_standard_deviation);
-double expected_life = 1000.;
-
-

- The we can use the Cumulative distribution function to predict fractions - (or percentages, if * 100) that will last various lifetimes. -

-
cout << "Fraction of bulbs that will last at best (<=) " // P(X <= 1000)
-  << expected_life << " is "<< cdf(bulbs, expected_life) << endl;
-cout << "Fraction of bulbs that will last at least (>) " // P(X > 1000)
-  << expected_life << " is "<< cdf(complement(bulbs, expected_life)) << endl;
-double min_life = 900;
-double max_life = 1200;
-cout << "Fraction of bulbs that will last between "
-  << min_life << " and " << max_life << " is "
-  << cdf(bulbs, max_life)  // P(X <= 1200)
-   - cdf(bulbs, min_life) << endl; // P(X <= 900)
-
-
- - - - - -
[Note]Note

- Real-life failures are often very ab-normal, with a significant number - that 'dead-on-arrival' or suffer failure very early in their life: - the lifetime of the survivors of 'early mortality' may be well described - by the normal distribution. -

-
- - How - many onions? -
-

- Weekly demand for 5 lb sacks of onions at a store is normally distributed - with mean 140 sacks and standard deviation 10. -

-
double mean = 140.; // sacks per week.
-double standard_deviation = 10;
-normal sacks(mean, standard_deviation);
-
-double stock = 160.; // per week.
-cout << "Percentage of weeks overstocked "
-  << cdf(sacks, stock) * 100. << endl; // P(X <=160)
-// Percentage of weeks overstocked 97.7
-
-

- So there will be lots of mouldy onions! So we should be able to say what - stock level will meet demand 95% of the weeks. -

-
double stock_95 = quantile(sacks, 0.95);
-cout << "Store should stock " << int(stock_95) << " sacks to meet 95% of demands." << endl;
-
-

- And it is easy to estimate how to meet 80% of demand, and waste even - less. -

-
double stock_80 = quantile(sacks, 0.80);
-cout << "Store should stock " << int(stock_80) << " sacks to meet 8 out of 10 demands." << endl;
-
-
- - Packing - beef -
-

- A machine is set to pack 3 kg of ground beef per pack. Over a long period - of time it is found that the average packed was 3 kg with a standard - deviation of 0.1 kg. Assuming the packing is normally distributed, we - can find the fraction (or %) of packages that weigh more than 3.1 kg. -

-
double mean = 3.; // kg
-double standard_deviation = 0.1; // kg
-normal packs(mean, standard_deviation);
-
-double max_weight = 3.1; // kg
-cout << "Percentage of packs > " << max_weight << " is "
-<< cdf(complement(packs, max_weight)) << endl; // P(X > 3.1)
-
-double under_weight = 2.9;
-cout <<"fraction of packs <= " << under_weight << " with a mean of " << mean
-  << " is " << cdf(complement(packs, under_weight)) << endl;
-// fraction of packs <= 2.9 with a mean of 3 is 0.841345
-// This is 0.84 - more than the target 0.95
-// Want 95% to be over this weight, so what should we set the mean weight to be?
-// KK StatCalc says:
-double over_mean = 3.0664;
-normal xpacks(over_mean, standard_deviation);
-cout << "fraction of packs >= " << under_weight
-<< " with a mean of " << xpacks.mean()
-  << " is " << cdf(complement(xpacks, under_weight)) << endl;
-// fraction of packs >= 2.9 with a mean of 3.06449 is 0.950005
-double under_fraction = 0.05;  // so 95% are above the minimum weight mean - sd = 2.9
-double low_limit = standard_deviation;
-double offset = mean - low_limit - quantile(packs, under_fraction);
-double nominal_mean = mean + offset;
-
-normal nominal_packs(nominal_mean, standard_deviation);
-cout << "Setting the packer to " << nominal_mean << " will mean that "
-  << "fraction of packs >= " << under_weight
-  << " is " << cdf(complement(nominal_packs, under_weight)) << endl;
-
-

- Setting the packer to 3.06449 will mean that fraction of packs >= - 2.9 is 0.95. -

-

- Setting the packer to 3.13263 will mean that fraction of packs >= - 2.9 is 0.99, but will more than double the mean loss from 0.0644 to 0.133. -

-

- Alternatively, we could invest in a better (more precise) packer with - a lower standard deviation. -

-

- To estimate how much better (how much smaller standard deviation) it - would have to be, we need to get the 5% quantile to be located at the - under_weight limit, 2.9 -

-
double p = 0.05; // wanted p th quantile.
-cout << "Quantile of " << p << " = " << quantile(packs, p)
-  << ", mean = " << packs.mean() << ", sd = " << packs.standard_deviation() << endl; //
-
-

- Quantile of 0.05 = 2.83551, mean = 3, sd = 0.1 -

-

- With the current packer (mean = 3, sd = 0.1), the 5% quantile is at 2.8551 - kg, a little below our target of 2.9 kg. So we know that the standard - deviation is going to have to be smaller. -

-

- Let's start by guessing that it (now 0.1) needs to be halved, to a standard - deviation of 0.05 -

-
normal pack05(mean, 0.05);
-cout << "Quantile of " << p << " = " << quantile(pack05, p)
-  << ", mean = " << pack05.mean() << ", sd = " << pack05.standard_deviation() << endl;
-
-cout <<"Fraction of packs >= " << under_weight << " with a mean of " << mean
-  << " and standard deviation of " << pack05.standard_deviation()
-  << " is " << cdf(complement(pack05, under_weight)) << endl;
-//
-
-

- Fraction of packs >= 2.9 with a mean of 3 and standard deviation of - 0.05 is 0.9772 -

-

- So 0.05 was quite a good guess, but we are a little over the 2.9 target, - so the standard deviation could be a tiny bit more. So we could do some - more guessing to get closer, say by increasing to 0.06 -

-
normal pack06(mean, 0.06);
-cout << "Quantile of " << p << " = " << quantile(pack06, p)
-  << ", mean = " << pack06.mean() << ", sd = " << pack06.standard_deviation() << endl;
-
-cout <<"Fraction of packs >= " << under_weight << " with a mean of " << mean
-  << " and standard deviation of " << pack06.standard_deviation()
-  << " is " << cdf(complement(pack06, under_weight)) << endl;
-
-

- Fraction of packs >= 2.9 with a mean of 3 and standard deviation of - 0.06 is 0.9522 -

-

- Now we are getting really close, but to do the job properly, we could - use root finding method, for example the tools provided, and used elsewhere, - in the Math Toolkit, see root-finding - without derivatives. -

-

- But in this normal distribution case, we could be even smarter and make - a direct calculation. -

-
normal s; // For standard normal distribution,
-double sd = 0.1;
-double x = 2.9; // Our required limit.
-// then probability p = N((x - mean) / sd)
-// So if we want to find the standard deviation that would be required to meet this limit,
-// so that the p th quantile is located at x,
-// in this case the 0.95 (95%) quantile at 2.9 kg pack weight, when the mean is 3 kg.
-
-double prob =  pdf(s, (x - mean) / sd);
-double qp = quantile(s, 0.95);
-cout << "prob = " << prob << ", quantile(p) " << qp << endl; // p = 0.241971, quantile(p) 1.64485
-// Rearranging, we can directly calculate the required standard deviation:
-double sd95 = std::abs((x - mean)) / qp;
-
-cout << "If we want the "<< p << " th quantile to be located at "
-  << x << ", would need a standard deviation of " << sd95 << endl;
-
-normal pack95(mean, sd95);  // Distribution of the 'ideal better' packer.
-cout <<"Fraction of packs >= " << under_weight << " with a mean of " << mean
-  << " and standard deviation of " << pack95.standard_deviation()
-  << " is " << cdf(complement(pack95, under_weight)) << endl;
-
-// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.0608 is 0.95
-
-

- Notice that these two deceptively simple questions (do we over-fill or - measure better) are actually very common. The weight of beef might be - replaced by a measurement of more or less anything. But the calculations - rely on the accuracy of the standard deviation - something that is almost - always less good than we might wish, especially if based on a few measurements. -

-
- - Length - of bolts -
-

- A bolt is usable if between 3.9 and 4.1 long. From a large batch of bolts, - a sample of 50 show a mean length of 3.95 with standard deviation 0.1. - Assuming a normal distribution, what proportion is usable? The true sample - mean is unknown, but we can use the sample mean and standard deviation - to find approximate solutions. -

-
    normal bolts(3.95, 0.1);
-    double top = 4.1;
-    double bottom = 3.9;
-
-cout << "Fraction long enough [ P(X <= " << top << ") ] is " << cdf(bolts, top) << endl;
-cout << "Fraction too short [ P(X <= " << bottom << ") ] is " << cdf(bolts, bottom) << endl;
-cout << "Fraction OK  -between " << bottom << " and " << top
-  << "[ P(X <= " << top  << ") - P(X<= " << bottom << " ) ] is "
-  << cdf(bolts, top) - cdf(bolts, bottom) << endl;
-
-cout << "Fraction too long [ P(X > " << top << ") ] is "
-  << cdf(complement(bolts, top)) << endl;
-
-cout << "95% of bolts are shorter than " << quantile(bolts, 0.95) << endl;
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg.html deleted file mode 100644 index f12eccb9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg.html +++ /dev/null @@ -1,60 +0,0 @@ - - - -Student's t Distribution Examples - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/paired_st.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/paired_st.html deleted file mode 100644 index c1e97eeb..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/paired_st.html +++ /dev/null @@ -1,81 +0,0 @@ - - - -Comparing two paired samples with the Student's t distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Imagine that we have a before and after reading for each item in the - sample: for example we might have measured blood pressure before and - after administration of a new drug. We can't pool the results and compare - the means before and after the change, because each patient will have - a different baseline reading. Instead we calculate the difference between - before and after measurements in each patient, and calculate the mean - and standard deviation of the differences. To test whether a significant - change has taken place, we can then test the null-hypothesis that the - true mean is zero using the same procedure we used in the single sample - cases previously discussed. -

-

- That means we can: -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_intervals.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_intervals.html deleted file mode 100644 index 4ccaf10c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_intervals.html +++ /dev/null @@ -1,267 +0,0 @@ - - - -Calculating confidence intervals on the mean with the Students-t distribution - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Let's say you have a sample mean, you may wish to know what confidence - intervals you can place on that mean. Colloquially: "I want an interval - that I can be P% sure contains the true mean". (On a technical point, - note that the interval either contains the true mean or it does not: - the meaning of the confidence level is subtly different from this colloquialism. - More background information can be found on the NIST - site). -

-

- The formula for the interval can be expressed as: -

-

- -

-

- Where, Ys is the sample mean, s - is the sample standard deviation, N is the sample - size, /α/ is the desired significance level and t(α/2,N-1) - is the upper critical value of the Students-t distribution with N-1 - degrees of freedom. -

-
- - - - - -
[Note]Note
-

- The quantity α   is the maximum acceptable risk of falsely rejecting the - null-hypothesis. The smaller the value of α the greater the strength - of the test. -

-

- The confidence level of the test is defined as 1 - α, and often expressed - as a percentage. So for example a significance level of 0.05, is equivalent - to a 95% confidence level. Refer to "What - are confidence intervals?" in NIST/SEMATECH - e-Handbook of Statistical Methods. for more information. -

-
-
- - - - - -
[Note]Note

- The usual assumptions of independent - and identically distributed (i.i.d.) variables and normal - distribution of course apply here, as they do in other examples. -

-

- From the formula, it should be clear that: -

-
    -
  • - The width of the confidence interval decreases as the sample size - increases. -
  • -
  • - The width increases as the standard deviation increases. -
  • -
  • - The width increases as the confidence level increases - (0.5 towards 0.99999 - stronger). -
  • -
  • - The width increases as the significance level decreases - (0.5 towards 0.00000...01 - stronger). -
  • -
-

- The following example code is taken from the example program students_t_single_sample.cpp. -

-

- We'll begin by defining a procedure to calculate intervals for various - confidence levels; the procedure will print these out as a table: -

-
// Needed includes:
-#include <boost/math/distributions/students_t.hpp>
-#include <iostream>
-#include <iomanip>
-// Bring everything into global namespace for ease of use:
-using namespace boost::math;
-using namespace std;
-
-void confidence_limits_on_mean(
-   double Sm,           // Sm = Sample Mean.
-   double Sd,           // Sd = Sample Standard Deviation.
-   unsigned Sn)         // Sn = Sample Size.
-{
-   using namespace std;
-   using namespace boost::math;
-
-   // Print out general info:
-   cout <<
-      "__________________________________\n"
-      "2-Sided Confidence Limits For Mean\n"
-      "__________________________________\n\n";
-   cout << setprecision(7);
-   cout << setw(40) << left << "Number of Observations" << "=  " << Sn << "\n";
-   cout << setw(40) << left << "Mean" << "=  " << Sm << "\n";
-   cout << setw(40) << left << "Standard Deviation" << "=  " << Sd << "\n";
-
-

- We'll define a table of significance/risk levels for which we'll compute - intervals: -

-
double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 };
-
-

- Note that these are the complements of the confidence/probability levels: - 0.5, 0.75, 0.9 .. 0.99999). -

-

- Next we'll declare the distribution object we'll need, note that the - degrees of freedom parameter is the sample size - less one: -

-
students_t dist(Sn - 1);
-
-

- Most of what follows in the program is pretty printing, so let's focus - on the calculation of the interval. First we need the t-statistic, computed - using the quantile function and our significance - level. Note that since the significance levels are the complement of - the probability, we have to wrap the arguments in a call to complement(...): -

-
double T = quantile(complement(dist, alpha[i] / 2));
-
-

- Note that alpha was divided by two, since we'll be calculating both the - upper and lower bounds: had we been interested in a single sided interval - then we would have omitted this step. -

-

- Now to complete the picture, we'll get the (one-sided) width of the interval - from the t-statistic by multiplying by the standard deviation, and dividing - by the square root of the sample size: -

-
double w = T * Sd / sqrt(double(Sn));
-
-

- The two-sided interval is then the sample mean plus and minus this width. -

-

- And apart from some more pretty-printing that completes the procedure. -

-

- Let's take a look at some sample output, first using the Heat - flow data from the NIST site. The data set was collected by Bob - Zarr of NIST in January, 1990 from a heat flow meter calibration and - stability analysis. The corresponding dataplot output for this test can - be found in section - 3.5.2 of the NIST/SEMATECH - e-Handbook of Statistical Methods.. -

-
   __________________________________
-   2-Sided Confidence Limits For Mean
-   __________________________________
-
-   Number of Observations                  =  195
-   Mean                                    =  9.26146
-   Standard Deviation                      =  0.02278881
-
-
-   ___________________________________________________________________
-   Confidence       T           Interval          Lower          Upper
-    Value (%)     Value          Width            Limit          Limit
-   ___________________________________________________________________
-       50.000     0.676       1.103e-003        9.26036        9.26256
-       75.000     1.154       1.883e-003        9.25958        9.26334
-       90.000     1.653       2.697e-003        9.25876        9.26416
-       95.000     1.972       3.219e-003        9.25824        9.26468
-       99.000     2.601       4.245e-003        9.25721        9.26571
-       99.900     3.341       5.453e-003        9.25601        9.26691
-       99.990     3.973       6.484e-003        9.25498        9.26794
-       99.999     4.537       7.404e-003        9.25406        9.26886
-
-

- As you can see the large sample size (195) and small standard deviation - (0.023) have combined to give very small intervals, indeed we can be - very confident that the true mean is 9.2. -

-

- For comparison the next example data output is taken from P.K.Hou, - O. W. Lau & M.C. Wong, Analyst (1983) vol. 108, p 64. and from Statistics - for Analytical Chemistry, 3rd ed. (1994), pp 54-55 J. C. Miller and J. - N. Miller, Ellis Horwood ISBN 0 13 0309907. The values result - from the determination of mercury by cold-vapour atomic absorption. -

-
   __________________________________
-   2-Sided Confidence Limits For Mean
-   __________________________________
-
-   Number of Observations                  =  3
-   Mean                                    =  37.8000000
-   Standard Deviation                      =  0.9643650
-
-
-   ___________________________________________________________________
-   Confidence       T           Interval          Lower          Upper
-    Value (%)     Value          Width            Limit          Limit
-   ___________________________________________________________________
-       50.000     0.816            0.455       37.34539       38.25461
-       75.000     1.604            0.893       36.90717       38.69283
-       90.000     2.920            1.626       36.17422       39.42578
-       95.000     4.303            2.396       35.40438       40.19562
-       99.000     9.925            5.526       32.27408       43.32592
-       99.900    31.599           17.594       20.20639       55.39361
-       99.990    99.992           55.673      -17.87346       93.47346
-       99.999   316.225          176.067     -138.26683      213.86683
-
-

- This time the fact that there are only three measurements leads to much - wider intervals, indeed such large intervals that it's hard to be very - confident in the location of the mean. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_size.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_size.html deleted file mode 100644 index fe8336ad..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_size.html +++ /dev/null @@ -1,179 +0,0 @@ - - - -Estimating how large a sample size would have to become in order to give a significant Students-t test result with a single sample test - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Imagine you have conducted a Students-t test on a single sample in order - to check for systematic errors in your measurements. Imagine that the - result is borderline. At this point one might go off and collect more - data, but it might be prudent to first ask the question "How much - more?". The parameter estimators of the students_t_distribution - class can provide this information. -

-

- This section is based on the example code in students_t_single_sample.cpp - and we begin by defining a procedure that will print out a table of estimated - sample sizes for various confidence levels: -

-
// Needed includes:
-#include <boost/math/distributions/students_t.hpp>
-#include <iostream>
-#include <iomanip>
-// Bring everything into global namespace for ease of use:
-using namespace boost::math;
-using namespace std;
-
-void single_sample_find_df(
-   double M,          // M = true mean.
-   double Sm,         // Sm = Sample Mean.
-   double Sd)         // Sd = Sample Standard Deviation.
-{
-
-

- Next we define a table of significance levels: -

-
double alpha[] = { 0.5, 0.25, 0.1, 0.05, 0.01, 0.001, 0.0001, 0.00001 };
-
-

- Printing out the table of sample sizes required for various confidence - levels begins with the table header: -

-
cout << "\n\n"
-        "_______________________________________________________________\n"
-        "Confidence       Estimated          Estimated\n"
-        " Value (%)      Sample Size        Sample Size\n"
-        "              (one sided test)    (two sided test)\n"
-        "_______________________________________________________________\n";
-
-

- And now the important part: the sample sizes required. Class students_t_distribution has a static - member function find_degrees_of_freedom - that will calculate how large a sample size needs to be in order to give - a definitive result. -

-

- The first argument is the difference between the means that you wish - to be able to detect, here it's the absolute value of the difference - between the sample mean, and the true mean. -

-

- Then come two probability values: alpha and beta. Alpha is the maximum - acceptable risk of rejecting the null-hypothesis when it is in fact true. - Beta is the maximum acceptable risk of failing to reject the null-hypothesis - when in fact it is false. Also note that for a two-sided test, alpha - must be divided by 2. -

-

- The final parameter of the function is the standard deviation of the - sample. -

-

- In this example, we assume that alpha and beta are the same, and call - find_degrees_of_freedom - twice: once with alpha for a one-sided test, and once with alpha/2 for - a two-sided test. -

-
   for(unsigned i = 0; i < sizeof(alpha)/sizeof(alpha[0]); ++i)
-   {
-      // Confidence value:
-      cout << fixed << setprecision(3) << setw(10) << right << 100 * (1-alpha[i]);
-      // calculate df for single sided test:
-      double df = students_t::find_degrees_of_freedom(
-         fabs(M - Sm), alpha[i], alpha[i], Sd);
-      // convert to sample size:
-      double size = ceil(df) + 1;
-      // Print size:
-      cout << fixed << setprecision(0) << setw(16) << right << size;
-      // calculate df for two sided test:
-      df = students_t::find_degrees_of_freedom(
-         fabs(M - Sm), alpha[i]/2, alpha[i], Sd);
-      // convert to sample size:
-      size = ceil(df) + 1;
-      // Print size:
-      cout << fixed << setprecision(0) << setw(16) << right << size << endl;
-   }
-   cout << endl;
-}
-
-

- Let's now look at some sample output using data taken from P.K.Hou, - O. W. Lau & M.C. Wong, Analyst (1983) vol. 108, p 64. and from Statistics - for Analytical Chemistry, 3rd ed. (1994), pp 54-55 J. C. Miller and J. - N. Miller, Ellis Horwood ISBN 0 13 0309907. The values result - from the determination of mercury by cold-vapour atomic absorption. -

-

- Only three measurements were made, and the Students-t test above gave - a borderline result, so this example will show us how many samples would - need to be collected: -

-
_____________________________________________________________
-Estimated sample sizes required for various confidence levels
-_____________________________________________________________
-
-True Mean                               =  38.90000
-Sample Mean                             =  37.80000
-Sample Standard Deviation               =  0.96437
-
-
-_______________________________________________________________
-Confidence       Estimated          Estimated
- Value (%)      Sample Size        Sample Size
-              (one sided test)    (two sided test)
-_______________________________________________________________
-    75.000               3               4
-    90.000               7               9
-    95.000              11              13
-    99.000              20              22
-    99.900              35              37
-    99.990              50              53
-    99.999              66              68
-
-

- So in this case, many more measurements would have had to be made, for - example at the 95% level, 14 measurements in total for a two-sided test. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_test.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_test.html deleted file mode 100644 index 7939f776..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_test.html +++ /dev/null @@ -1,334 +0,0 @@ - - - -Testing a sample mean for difference from a "true" mean - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- When calibrating or comparing a scientific instrument or measurement - method of some kind, we want to be answer the question "Does an - observed sample mean differ from the "true" mean in any significant - way?". If it does, then we have evidence of a systematic difference. - This question can be answered with a Students-t test: more information - can be found on - the NIST site. -

-

- Of course, the assignment of "true" to one mean may be quite - arbitrary, often this is simply a "traditional" method of measurement. -

-

- The following example code is taken from the example program students_t_single_sample.cpp. -

-

- We'll begin by defining a procedure to determine which of the possible - hypothesis are rejected or not-rejected at a given significance level: -

-
- - - - - -
[Note]Note

- Non-statisticians might say 'not-rejected' means 'accepted', (often - of the null-hypothesis) implying, wrongly, that there really IS no difference, but statisticans eschew this - to avoid implying that there is positive evidence of 'no difference'. - 'Not-rejected' here means there is no evidence - of difference, but there still might well be a difference. For example, - see argument - from ignorance and Absence - of evidence does not constitute evidence of absence. -

-
// Needed includes:
-#include <boost/math/distributions/students_t.hpp>
-#include <iostream>
-#include <iomanip>
-// Bring everything into global namespace for ease of use:
-using namespace boost::math;
-using namespace std;
-
-void single_sample_t_test(double M, double Sm, double Sd, unsigned Sn, double alpha)
-{
-   //
-   // M = true mean.
-   // Sm = Sample Mean.
-   // Sd = Sample Standard Deviation.
-   // Sn = Sample Size.
-   // alpha = Significance Level.
-
-

- Most of the procedure is pretty-printing, so let's just focus on the - calculation, we begin by calculating the t-statistic: -

-
// Difference in means:
-double diff = Sm - M;
-// Degrees of freedom:
-unsigned v = Sn - 1;
-// t-statistic:
-double t_stat = diff * sqrt(double(Sn)) / Sd;
-
-

- Finally calculate the probability from the t-statistic. If we're interested - in simply whether there is a difference (either less or greater) or not, - we don't care about the sign of the t-statistic, and we take the complement - of the probability for comparison to the significance level: -

-
students_t dist(v);
-double q = cdf(complement(dist, fabs(t_stat)));
-
-

- The procedure then prints out the results of the various tests that can - be done, these can be summarised in the following table: -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Hypothesis -

-
-

- Test -

-
-

- The Null-hypothesis: there is no difference - in means -

-
-

- Reject if complement of CDF for |t| < significance level - / 2: -

-

- cdf(complement(dist, - fabs(t))) - < alpha - / 2 -

-
-

- The Alternative-hypothesis: there is - difference in means -

-
-

- Reject if complement of CDF for |t| > significance level - / 2: -

-

- cdf(complement(dist, - fabs(t))) - > alpha - / 2 -

-
-

- The Alternative-hypothesis: the sample mean is - less than the true mean. -

-
-

- Reject if CDF of t > 1 - significance level: -

-

- cdf(complement(dist, - t)) - < alpha -

-
-

- The Alternative-hypothesis: the sample mean is - greater than the true mean. -

-
-

- Reject if complement of CDF of t < significance level: -

-

- cdf(dist, - t) - < alpha -

-
-
- - - - - -
[Note]Note

- Notice that the comparisons are against alpha - / 2 - for a two-sided test and against alpha - for a one-sided test -

-

- Now that we have all the parts in place, let's take a look at some sample - output, first using the Heat - flow data from the NIST site. The data set was collected by Bob - Zarr of NIST in January, 1990 from a heat flow meter calibration and - stability analysis. The corresponding dataplot output for this test can - be found in section - 3.5.2 of the NIST/SEMATECH - e-Handbook of Statistical Methods.. -

-
__________________________________
-Student t test for a single sample
-__________________________________
-
-Number of Observations                                 =  195
-Sample Mean                                            =  9.26146
-Sample Standard Deviation                              =  0.02279
-Expected True Mean                                     =  5.00000
-
-Sample Mean - Expected Test Mean                       =  4.26146
-Degrees of Freedom                                     =  194
-T Statistic                                            =  2611.28380
-Probability that difference is due to chance           =  0.000e+000
-
-Results for Alternative Hypothesis and alpha           =  0.0500
-
-Alternative Hypothesis     Conclusion
-Mean != 5.000            NOT REJECTED
-Mean  < 5.000            REJECTED
-Mean  > 5.000            NOT REJECTED
-
-

- You will note the line that says the probability that the difference - is due to chance is zero. From a philosophical point of view, of course, - the probability can never reach zero. However, in this case the calculated - probability is smaller than the smallest representable double precision - number, hence the appearance of a zero here. Whatever its "true" - value is, we know it must be extraordinarily small, so the alternative - hypothesis - that there is a difference in means - is not rejected. -

-

- For comparison the next example data output is taken from P.K.Hou, - O. W. Lau & M.C. Wong, Analyst (1983) vol. 108, p 64. and from Statistics - for Analytical Chemistry, 3rd ed. (1994), pp 54-55 J. C. Miller and J. - N. Miller, Ellis Horwood ISBN 0 13 0309907. The values result - from the determination of mercury by cold-vapour atomic absorption. -

-
__________________________________
-Student t test for a single sample
-__________________________________
-
-Number of Observations                                 =  3
-Sample Mean                                            =  37.80000
-Sample Standard Deviation                              =  0.96437
-Expected True Mean                                     =  38.90000
-
-Sample Mean - Expected Test Mean                       =  -1.10000
-Degrees of Freedom                                     =  2
-T Statistic                                            =  -1.97566
-Probability that difference is due to chance           =  1.869e-001
-
-Results for Alternative Hypothesis and alpha           =  0.0500
-
-Alternative Hypothesis     Conclusion
-Mean != 38.900            REJECTED
-Mean  < 38.900            NOT REJECTED
-Mean  > 38.900            NOT REJECTED
-
-

- As you can see the small number of measurements (3) has led to a large - uncertainty in the location of the true mean. So even though there appears - to be a difference between the sample mean and the expected true mean, - we conclude that there is no significant difference, and are unable to - reject the null hypothesis. However, if we were to lower the bar for - acceptance down to alpha = 0.1 (a 90% confidence level) we see a different - output: -

-
__________________________________
-Student t test for a single sample
-__________________________________
-
-Number of Observations                                 =  3
-Sample Mean                                            =  37.80000
-Sample Standard Deviation                              =  0.96437
-Expected True Mean                                     =  38.90000
-
-Sample Mean - Expected Test Mean                       =  -1.10000
-Degrees of Freedom                                     =  2
-T Statistic                                            =  -1.97566
-Probability that difference is due to chance           =  1.869e-001
-
-Results for Alternative Hypothesis and alpha           =  0.1000
-
-Alternative Hypothesis     Conclusion
-Mean != 38.900            REJECTED
-Mean  < 38.900            NOT REJECTED
-Mean  > 38.900            REJECTED
-
-

- In this case, we really have a borderline result, and more data (and/or - more accurate data), is needed for a more convincing conclusion. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/two_sample_students_t.html b/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/two_sample_students_t.html deleted file mode 100644 index 9d35bcf6..00000000 --- a/boost/libs/math/doc/html/math_toolkit/stat_tut/weg/st_eg/two_sample_students_t.html +++ /dev/null @@ -1,359 +0,0 @@ - - - -Comparing the means of two samples with the Students-t test - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- Imagine that we have two samples, and we wish to determine whether their - means are different or not. This situation often arises when determining - whether a new process or treatment is better than an old one. -

-

- In this example, we'll be using the Car - Mileage sample data from the NIST - website. The data compares miles per gallon of US cars with miles - per gallon of Japanese cars. -

-

- The sample code is in students_t_two_samples.cpp. -

-

- There are two ways in which this test can be conducted: we can assume - that the true standard deviations of the two samples are equal or not. - If the standard deviations are assumed to be equal, then the calculation - of the t-statistic is greatly simplified, so we'll examine that case - first. In real life we should verify whether this assumption is valid - with a Chi-Squared test for equal variances. -

-

- We begin by defining a procedure that will conduct our test assuming - equal variances: -

-
// Needed headers:
-#include <boost/math/distributions/students_t.hpp>
-#include <iostream>
-#include <iomanip>
-// Simplify usage:
-using namespace boost::math;
-using namespace std;
-
-void two_samples_t_test_equal_sd(
-        double Sm1,       // Sm1 = Sample 1 Mean.
-        double Sd1,       // Sd1 = Sample 1 Standard Deviation.
-        unsigned Sn1,     // Sn1 = Sample 1 Size.
-        double Sm2,       // Sm2 = Sample 2 Mean.
-        double Sd2,       // Sd2 = Sample 2 Standard Deviation.
-        unsigned Sn2,     // Sn2 = Sample 2 Size.
-        double alpha)     // alpha = Significance Level.
-{
-
-

- Our procedure will begin by calculating the t-statistic, assuming equal - variances the needed formulae are: -

-

- -

-

- where Sp is the "pooled" standard deviation of the two samples, - and v is the number of degrees of freedom of the - two combined samples. We can now write the code to calculate the t-statistic: -

-
// Degrees of freedom:
-double v = Sn1 + Sn2 - 2;
-cout << setw(55) << left << "Degrees of Freedom" << "=  " << v << "\n";
-// Pooled variance:
-double sp = sqrt(((Sn1-1) * Sd1 * Sd1 + (Sn2-1) * Sd2 * Sd2) / v);
-cout << setw(55) << left << "Pooled Standard Deviation" << "=  " << sp << "\n";
-// t-statistic:
-double t_stat = (Sm1 - Sm2) / (sp * sqrt(1.0 / Sn1 + 1.0 / Sn2));
-cout << setw(55) << left << "T Statistic" << "=  " << t_stat << "\n";
-
-

- The next step is to define our distribution object, and calculate the - complement of the probability: -

-
students_t dist(v);
-double q = cdf(complement(dist, fabs(t_stat)));
-cout << setw(55) << left << "Probability that difference is due to chance" << "=  "
-   << setprecision(3) << scientific << 2 * q << "\n\n";
-
-

- Here we've used the absolute value of the t-statistic, because we initially - want to know simply whether there is a difference or not (a two-sided - test). However, we can also test whether the mean of the second sample - is greater or is less (one-sided test) than that of the first: all the - possible tests are summed up in the following table: -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Hypothesis -

-
-

- Test -

-
-

- The Null-hypothesis: there is no difference - in means -

-
-

- Reject if complement of CDF for |t| < significance level - / 2: -

-

- cdf(complement(dist, - fabs(t))) - < alpha - / 2 -

-
-

- The Alternative-hypothesis: there is a difference - in means -

-
-

- Reject if complement of CDF for |t| > significance level - / 2: -

-

- cdf(complement(dist, - fabs(t))) - < alpha - / 2 -

-
-

- The Alternative-hypothesis: Sample 1 Mean is less - than Sample 2 Mean. -

-
-

- Reject if CDF of t > significance level: -

-

- cdf(dist, - t) - > alpha -

-
-

- The Alternative-hypothesis: Sample 1 Mean is greater - than Sample 2 Mean. -

-
-

- Reject if complement of CDF of t > significance level: -

-

- cdf(complement(dist, - t)) - > alpha -

-
-
- - - - - -
[Note]Note

- For a two-sided test we must compare against alpha / 2 and not alpha. -

-

- Most of the rest of the sample program is pretty-printing, so we'll skip - over that, and take a look at the sample output for alpha=0.05 (a 95% - probability level). For comparison the dataplot output for the same data - is in section - 1.3.5.3 of the NIST/SEMATECH - e-Handbook of Statistical Methods.. -

-
   ________________________________________________
-   Student t test for two samples (equal variances)
-   ________________________________________________
-
-   Number of Observations (Sample 1)                      =  249
-   Sample 1 Mean                                          =  20.145
-   Sample 1 Standard Deviation                            =  6.4147
-   Number of Observations (Sample 2)                      =  79
-   Sample 2 Mean                                          =  30.481
-   Sample 2 Standard Deviation                            =  6.1077
-   Degrees of Freedom                                     =  326
-   Pooled Standard Deviation                              =  6.3426
-   T Statistic                                            =  -12.621
-   Probability that difference is due to chance           =  5.273e-030
-
-   Results for Alternative Hypothesis and alpha           =  0.0500
-
-   Alternative Hypothesis              Conclusion
-   Sample 1 Mean != Sample 2 Mean       NOT REJECTED
-   Sample 1 Mean <  Sample 2 Mean       NOT REJECTED
-   Sample 1 Mean >  Sample 2 Mean       REJECTED
-
-

- So with a probability that the difference is due to chance of just 5.273e-030, - we can safely conclude that there is indeed a difference. -

-

- The tests on the alternative hypothesis show that we must also reject - the hypothesis that Sample 1 Mean is greater than that for Sample 2: - in this case Sample 1 represents the miles per gallon for Japanese cars, - and Sample 2 the miles per gallon for US cars, so we conclude that Japanese - cars are on average more fuel efficient. -

-

- Now that we have the simple case out of the way, let's look for a moment - at the more complex one: that the standard deviations of the two samples - are not equal. In this case the formula for the t-statistic becomes: -

-

- -

-

- And for the combined degrees of freedom we use the Welch-Satterthwaite - approximation: -

-

- -

-

- Note that this is one of the rare situations where the degrees-of-freedom - parameter to the Student's t distribution is a real number, and not an - integer value. -

-
- - - - - -
[Note]Note

- Some statistical packages truncate the effective degrees of freedom - to an integer value: this may be necessary if you are relying on lookup - tables, but since our code fully supports non-integer degrees of freedom - there is no need to truncate in this case. Also note that when the - degrees of freedom is small then the Welch-Satterthwaite approximation - may be a significant source of error. -

-

- Putting these formulae into code we get: -

-
// Degrees of freedom:
-double v = Sd1 * Sd1 / Sn1 + Sd2 * Sd2 / Sn2;
-v *= v;
-double t1 = Sd1 * Sd1 / Sn1;
-t1 *= t1;
-t1 /=  (Sn1 - 1);
-double t2 = Sd2 * Sd2 / Sn2;
-t2 *= t2;
-t2 /= (Sn2 - 1);
-v /= (t1 + t2);
-cout << setw(55) << left << "Degrees of Freedom" << "=  " << v << "\n";
-// t-statistic:
-double t_stat = (Sm1 - Sm2) / sqrt(Sd1 * Sd1 / Sn1 + Sd2 * Sd2 / Sn2);
-cout << setw(55) << left << "T Statistic" << "=  " << t_stat << "\n";
-
-

- Thereafter the code and the tests are performed the same as before. Using - are car mileage data again, here's what the output looks like: -

-
   __________________________________________________
-   Student t test for two samples (unequal variances)
-   __________________________________________________
-
-   Number of Observations (Sample 1)                      =  249
-   Sample 1 Mean                                          =  20.145
-   Sample 1 Standard Deviation                            =  6.4147
-   Number of Observations (Sample 2)                      =  79
-   Sample 2 Mean                                          =  30.481
-   Sample 2 Standard Deviation                            =  6.1077
-   Degrees of Freedom                                     =  136.87
-   T Statistic                                            =  -12.946
-   Probability that difference is due to chance           =  1.571e-025
-
-   Results for Alternative Hypothesis and alpha           =  0.0500
-
-   Alternative Hypothesis              Conclusion
-   Sample 1 Mean != Sample 2 Mean       NOT REJECTED
-   Sample 1 Mean <  Sample 2 Mean       NOT REJECTED
-   Sample 1 Mean >  Sample 2 Mean       REJECTED
-
-

- This time allowing the variances in the two samples to differ has yielded - a higher likelihood that the observed difference is down to chance alone - (1.571e-025 compared to 5.273e-030 when equal variances were assumed). - However, the conclusion remains the same: US cars are less fuel efficient - than Japanese models. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/synopsis.html b/boost/libs/math/doc/html/math_toolkit/synopsis.html deleted file mode 100644 index 99eca411..00000000 --- a/boost/libs/math/doc/html/math_toolkit/synopsis.html +++ /dev/null @@ -1,73 +0,0 @@ - - - -Synopsis - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
namespace boost
-{
-namespace math
-{
-
-template < typename IntegerType >
-   class gcd_evaluator;
-template < typename IntegerType >
-   class lcm_evaluator;
-
-template < typename IntegerType >
-   IntegerType  gcd( IntegerType const &a, IntegerType const &b );
-template < typename ForwardIterator >
-   std::pair<typename std::iterator_traits<I>::value_type, I> gcd_range(I first, I last);
-template < typename IntegerType >
-   IntegerType  lcm( IntegerType const &a, IntegerType const &b );
-
-typedef see-below static_gcd_type;
-
-template < static_gcd_type Value1, static_gcd_type Value2 >
-   struct static_gcd;
-template < static_gcd_type Value1, static_gcd_type Value2 >
-   struct static_lcm;
-
-}
-}
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/threads.html b/boost/libs/math/doc/html/math_toolkit/threads.html deleted file mode 100644 index 5b792e5e..00000000 --- a/boost/libs/math/doc/html/math_toolkit/threads.html +++ /dev/null @@ -1,52 +0,0 @@ - - - -Thread Safety - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The library is fully thread safe and re-entrant for all functions regards of - the data type they are instantiated on. Thread safety limitations relating - to user defined types present in previous releases (prior to 1.50.0) have been - removed. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/tr1_ref.html b/boost/libs/math/doc/html/math_toolkit/tr1_ref.html deleted file mode 100644 index 699f715c..00000000 --- a/boost/libs/math/doc/html/math_toolkit/tr1_ref.html +++ /dev/null @@ -1,538 +0,0 @@ - - - -TR1 C Functions Quick Reference - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Supported - TR1 Functions -
-
namespace boost{ namespace math{ namespace tr1{ extern "C"{
-
-// [5.2.1.1] associated Laguerre polynomials:
-double assoc_laguerre(unsigned n, unsigned m, double x);
-float assoc_laguerref(unsigned n, unsigned m, float x);
-long double assoc_laguerrel(unsigned n, unsigned m, long double x);
-
-// [5.2.1.2] associated Legendre functions:
-double assoc_legendre(unsigned l, unsigned m, double x);
-float assoc_legendref(unsigned l, unsigned m, float x);
-long double assoc_legendrel(unsigned l, unsigned m, long double x);
-
-// [5.2.1.3] beta function:
-double beta(double x, double y);
-float betaf(float x, float y);
-long double betal(long double x, long double y);
-
-// [5.2.1.4] (complete) elliptic integral of the first kind:
-double comp_ellint_1(double k);
-float comp_ellint_1f(float k);
-long double comp_ellint_1l(long double k);
-
-// [5.2.1.5] (complete) elliptic integral of the second kind:
-double comp_ellint_2(double k);
-float comp_ellint_2f(float k);
-long double comp_ellint_2l(long double k);
-
-// [5.2.1.6] (complete) elliptic integral of the third kind:
-double comp_ellint_3(double k, double nu);
-float comp_ellint_3f(float k, float nu);
-long double comp_ellint_3l(long double k, long double nu);
-
-// [5.2.1.8] regular modified cylindrical Bessel functions:
-double cyl_bessel_i(double nu, double x);
-float cyl_bessel_if(float nu, float x);
-long double cyl_bessel_il(long double nu, long double x);
-
-// [5.2.1.9] cylindrical Bessel functions (of the first kind):
-double cyl_bessel_j(double nu, double x);
-float cyl_bessel_jf(float nu, float x);
-long double cyl_bessel_jl(long double nu, long double x);
-
-// [5.2.1.10] irregular modified cylindrical Bessel functions:
-double cyl_bessel_k(double nu, double x);
-float cyl_bessel_kf(float nu, float x);
-long double cyl_bessel_kl(long double nu, long double x);
-
-// [5.2.1.11] cylindrical Neumann functions;
-// cylindrical Bessel functions (of the second kind):
-double cyl_neumann(double nu, double x);
-float cyl_neumannf(float nu, float x);
-long double cyl_neumannl(long double nu, long double x);
-
-// [5.2.1.12] (incomplete) elliptic integral of the first kind:
-double ellint_1(double k, double phi);
-float ellint_1f(float k, float phi);
-long double ellint_1l(long double k, long double phi);
-
-// [5.2.1.13] (incomplete) elliptic integral of the second kind:
-double ellint_2(double k, double phi);
-float ellint_2f(float k, float phi);
-long double ellint_2l(long double k, long double phi);
-
-// [5.2.1.14] (incomplete) elliptic integral of the third kind:
-double ellint_3(double k, double nu, double phi);
-float ellint_3f(float k, float nu, float phi);
-long double ellint_3l(long double k, long double nu, long double phi);
-
-// [5.2.1.15] exponential integral:
-double expint(double x);
-float expintf(float x);
-long double expintl(long double x);
-
-// [5.2.1.16] Hermite polynomials:
-double hermite(unsigned n, double x);
-float hermitef(unsigned n, float x);
-long double hermitel(unsigned n, long double x);
-
-// [5.2.1.18] Laguerre polynomials:
-double laguerre(unsigned n, double x);
-float laguerref(unsigned n, float x);
-long double laguerrel(unsigned n, long double x);
-
-// [5.2.1.19] Legendre polynomials:
-double legendre(unsigned l, double x);
-float legendref(unsigned l, float x);
-long double legendrel(unsigned l, long double x);
-
-// [5.2.1.20] Riemann zeta function:
-double riemann_zeta(double);
-float riemann_zetaf(float);
-long double riemann_zetal(long double);
-
-// [5.2.1.21] spherical Bessel functions (of the first kind):
-double sph_bessel(unsigned n, double x);
-float sph_besself(unsigned n, float x);
-long double sph_bessell(unsigned n, long double x);
-
-// [5.2.1.22] spherical associated Legendre functions:
-double sph_legendre(unsigned l, unsigned m, double theta);
-float sph_legendref(unsigned l, unsigned m, float theta);
-long double sph_legendrel(unsigned l, unsigned m, long double theta);
-
-// [5.2.1.23] spherical Neumann functions;
-// spherical Bessel functions (of the second kind):
-double sph_neumann(unsigned n, double x);
-float sph_neumannf(unsigned n, float x);
-long double sph_neumannl(unsigned n, long double x);
-
-}}}} // namespaces
-
-

- In addition sufficient additional overloads of the double - versions of the above functions are provided, so that calling the function - with any mixture of float, double, long - double, or integer - arguments is supported, with the return type determined by the result - type calculation rules. -

-

- For example: -

-
expintf(2.0f);  // float version, returns float.
-expint(2.0f);   // also calls the float version and returns float.
-expint(2.0);    // double version, returns double.
-expintl(2.0L);  // long double version, returns a long double.
-expint(2.0L);   // also calls the long double version.
-expint(2);      // integer argument is treated as a double, returns double.
-
-
- - Quick - Reference -
-
// [5.2.1.1] associated Laguerre polynomials:
-double assoc_laguerre(unsigned n, unsigned m, double x);
-float assoc_laguerref(unsigned n, unsigned m, float x);
-long double assoc_laguerrel(unsigned n, unsigned m, long double x);
-
-

- The assoc_laguerre functions return: -

-

- -

-

- See also laguerre for - the full template (header only) version of this function. -

-
// [5.2.1.2] associated Legendre functions:
-double assoc_legendre(unsigned l, unsigned m, double x);
-float assoc_legendref(unsigned l, unsigned m, float x);
-long double assoc_legendrel(unsigned l, unsigned m, long double x);
-
-

- The assoc_legendre functions return: -

-

- -

-

- See also legendre_p for - the full template (header only) version of this function. -

-
// [5.2.1.3] beta function:
-double beta(double x, double y);
-float betaf(float x, float y);
-long double betal(long double x, long double y);
-
-

- Returns the beta function of x and y: -

-

- -

-

- See also beta for - the full template (header only) version of this function. -

-
// [5.2.1.4] (complete) elliptic integral of the first kind:
-double comp_ellint_1(double k);
-float comp_ellint_1f(float k);
-long double comp_ellint_1l(long double k);
-
-

- Returns the complete elliptic integral of the first kind of k: -

-

- -

-

- See also ellint_1 for the - full template (header only) version of this function. -

-
// [5.2.1.5] (complete) elliptic integral of the second kind:
-double comp_ellint_2(double k);
-float comp_ellint_2f(float k);
-long double comp_ellint_2l(long double k);
-
-

- Returns the complete elliptic integral of the second kind of k: -

-

- -

-

- See also ellint_2 for the - full template (header only) version of this function. -

-
// [5.2.1.6] (complete) elliptic integral of the third kind:
-double comp_ellint_3(double k, double nu);
-float comp_ellint_3f(float k, float nu);
-long double comp_ellint_3l(long double k, long double nu);
-
-

- Returns the complete elliptic integral of the third kind of k - and nu: -

-

- -

-

- See also ellint_3 for the - full template (header only) version of this function. -

-
// [5.2.1.8] regular modified cylindrical Bessel functions:
-double cyl_bessel_i(double nu, double x);
-float cyl_bessel_if(float nu, float x);
-long double cyl_bessel_il(long double nu, long double x);
-
-

- Returns the modified bessel function of the first kind of nu - and x: -

-

- -

-

- See also cyl_bessel_i for - the full template (header only) version of this function. -

-
// [5.2.1.9] cylindrical Bessel functions (of the first kind):
-double cyl_bessel_j(double nu, double x);
-float cyl_bessel_jf(float nu, float x);
-long double cyl_bessel_jl(long double nu, long double x);
-
-

- Returns the bessel function of the first kind of nu and - x: -

-

- -

-

- See also cyl_bessel_j - for the full template (header only) version of this function. -

-
// [5.2.1.10] irregular modified cylindrical Bessel functions:
-double cyl_bessel_k(double nu, double x);
-float cyl_bessel_kf(float nu, float x);
-long double cyl_bessel_kl(long double nu, long double x);
-
-

- Returns the modified bessel function of the second kind of nu - and x: -

-

- -

-

- See also cyl_bessel_k for - the full template (header only) version of this function. -

-
// [5.2.1.11] cylindrical Neumann functions;
-// cylindrical Bessel functions (of the second kind):
-double cyl_neumann(double nu, double x);
-float cyl_neumannf(float nu, float x);
-long double cyl_neumannl(long double nu, long double x);
-
-

- Returns the bessel function of the second kind (Neumann function) of nu - and x: -

-

- -

-

- See also cyl_neumann - for the full template (header only) version of this function. -

-
// [5.2.1.12] (incomplete) elliptic integral of the first kind:
-double ellint_1(double k, double phi);
-float ellint_1f(float k, float phi);
-long double ellint_1l(long double k, long double phi);
-
-

- Returns the incomplete elliptic integral of the first kind of k - and phi: -

-

- -

-

- See also ellint_1 for the - full template (header only) version of this function. -

-
// [5.2.1.13] (incomplete) elliptic integral of the second kind:
-double ellint_2(double k, double phi);
-float ellint_2f(float k, float phi);
-long double ellint_2l(long double k, long double phi);
-
-

- Returns the incomplete elliptic integral of the second kind of k - and phi: -

-

- -

-

- See also ellint_2 for the - full template (header only) version of this function. -

-
// [5.2.1.14] (incomplete) elliptic integral of the third kind:
-double ellint_3(double k, double nu, double phi);
-float ellint_3f(float k, float nu, float phi);
-long double ellint_3l(long double k, long double nu, long double phi);
-
-

- Returns the incomplete elliptic integral of the third kind of k, - nu and phi: -

-

- -

-

- See also ellint_3 for the - full template (header only) version of this function. -

-
// [5.2.1.15] exponential integral:
-double expint(double x);
-float expintf(float x);
-long double expintl(long double x);
-
-

- Returns the exponential integral Ei of x: -

-

- -

-

- See also expint for the - full template (header only) version of this function. -

-
// [5.2.1.16] Hermite polynomials:
-double hermite(unsigned n, double x);
-float hermitef(unsigned n, float x);
-long double hermitel(unsigned n, long double x);
-
-

- Returns the n'th Hermite polynomial of x: -

-

- -

-

- See also hermite for the - full template (header only) version of this function. -

-
// [5.2.1.18] Laguerre polynomials:
-double laguerre(unsigned n, double x);
-float laguerref(unsigned n, float x);
-long double laguerrel(unsigned n, long double x);
-
-

- Returns the n'th Laguerre polynomial of x: -

-

- -

-

- See also laguerre for - the full template (header only) version of this function. -

-
// [5.2.1.19] Legendre polynomials:
-double legendre(unsigned l, double x);
-float legendref(unsigned l, float x);
-long double legendrel(unsigned l, long double x);
-
-

- Returns the l'th Legendre polynomial of x: -

-

- -

-

- See also legendre_p for - the full template (header only) version of this function. -

-
// [5.2.1.20] Riemann zeta function:
-double riemann_zeta(double);
-float riemann_zetaf(float);
-long double riemann_zetal(long double);
-
-

- Returns the Riemann Zeta function of x: -

-

- -

-

- See also zeta for the full template - (header only) version of this function. -

-
// [5.2.1.21] spherical Bessel functions (of the first kind):
-double sph_bessel(unsigned n, double x);
-float sph_besself(unsigned n, float x);
-long double sph_bessell(unsigned n, long double x);
-
-

- Returns the spherical Bessel function of the first kind of x - jn(x): -

-

- -

-

- See also sph_bessel for - the full template (header only) version of this function. -

-
// [5.2.1.22] spherical associated Legendre functions:
-double sph_legendre(unsigned l, unsigned m, double theta);
-float sph_legendref(unsigned l, unsigned m, float theta);
-long double sph_legendrel(unsigned l, unsigned m, long double theta);
-
-

- Returns the spherical associated Legendre function of l, - m and theta: -

-

- -

-

- See also spherical_harmonic - for the full template (header only) version of this function. -

-
// [5.2.1.23] spherical Neumann functions;
-// spherical Bessel functions (of the second kind):
-double sph_neumann(unsigned n, double x);
-float sph_neumannf(unsigned n, float x);
-long double sph_neumannl(unsigned n, long double x);
-
-

- Returns the spherical Neumann function of x yn(x): -

-

- -

-

- See also sph_bessel for - the full template (header only) version of this function. -

-
- - Currently - Unsupported TR1 Functions -
-
// [5.2.1.7] confluent hypergeometric functions:
-double conf_hyperg(double a, double c, double x);
-float conf_hypergf(float a, float c, float x);
-long double conf_hypergl(long double a, long double c, long double x);
-
-// [5.2.1.17] hypergeometric functions:
-double hyperg(double a, double b, double c, double x);
-float hypergf(float a, float b, float c, float x);
-long double hypergl(long double a, long double b, long double c,
-long double x);
-
-
- - - - - -
[Note]Note

- These two functions are not implemented as they are not believed to be numerically - stable. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/tradoffs.html b/boost/libs/math/doc/html/math_toolkit/tradoffs.html deleted file mode 100644 index 93e9f985..00000000 --- a/boost/libs/math/doc/html/math_toolkit/tradoffs.html +++ /dev/null @@ -1,178 +0,0 @@ - - - -Trading Accuracy for Performance - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There are a number of Policies that can be used - to trade accuracy for performance: -

-
    -
  • - Internal promotion: by default functions with float - arguments are evaluated at double - precision internally to ensure full precision in the result. Similarly - double precision functions - are evaluated at long double - precision internally by default. Changing these defaults can have a significant - speed advantage at the expense of accuracy, note also that evaluating using - float internally may result - in numerical instability for some of the more complex algorithms, we suggest - you use this option with care. -
  • -
  • - Target accuracy: just because you choose to evaluate at double - precision doesn't mean you necessarily want to target full 16-digit accuracy, - if you wish you can change the default (full machine precision) to whatever - is "good enough" for your particular use case. -
  • -
-

- For example, suppose you want to evaluate double - precision functions at double - precision internally, you can change the global default by passing -DBOOST_MATH_PROMOTE_DOUBLE_POLICY=false on the - command line, or at the point of call via something like this: -

-
double val = boost::math::erf(my_argument, boost::math::policies::make_policy(boost::math::policies::promote_double<false>()));
-
-

- However, an easier option might be: -

-
#include <boost/math/special_functions.hpp> // Or any individual special function header
-
-namespace math{
-
-namespace precise{
-//
-// Define a Policy for accurate evaluation - this is the same as the default, unless
-// someone has changed the global defaults.
-//
-typedef boost::math::policies::policy<> accurate_policy;
-//
-// Invoke BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS to declare
-// functions that use the above policy.  Note no trailing
-// ";" required on the macro call:
-//
-BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(accurate_policy)
-
-
-}
-
-namespace fast{
-//
-// Define a Policy for fast evaluation:
-//
-using namespace boost::math::polcies;
-typedef policy<promote_double<false> > fast_policy;
-//
-// Invoke BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS:
-//
-BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(fast_policy)
-
-}
-
-}
-
-

- And now one can call: -

-
math::accurate::tgamma(x);
-
-

- For the "accurate" version of tgamma, and: -

-
math::fast::tgamma(x);
-
-

- For the faster version. -

-

- Had we wished to change the target precision (to 9 decimal places) as well - as the evaluation type used, we might have done: -

-
namespace math{
-namespace fast{
-//
-// Define a Policy for fast evaluation:
-//
-using namespace boost::math::polcies;
-typedef policy<promote_double<false>, digits10<9> > fast_policy;
-//
-// Invoke BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS:
-//
-BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(fast_policy)
-
-}
-}
-
-

- One can do a similar thing with the distribution classes: -

-
#include <boost/math/distributions.hpp> // or any individual distribution header
-
-namespace math{ namespace fast{
-//
-// Define a policy for fastest possible evaluation:
-//
-using namespace boost::math::polcies;
-typedef policy<promote_float<false> > fast_float_policy;
-//
-// Invoke BOOST_MATH_DECLARE_DISTRIBUTIONS
-//
-BOOST_MATH_DECLARE_DISTRIBUTIONS(float, fast_float_policy)
-
-}} // namespaces
-
-//
-// And use:
-//
-float p_val = cdf(math::fast::normal(1.0f, 3.0f), 0.25f);
-
-

- Here's how these options change the relative performance of the distributions - on Linux: -

-

- [table_Distribution_performance_comparison_for_different_performance_options_with_GNU_C_version_5_1_0_on_linux] -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/trans.html b/boost/libs/math/doc/html/math_toolkit/trans.html deleted file mode 100644 index 05a1ecbc..00000000 --- a/boost/libs/math/doc/html/math_toolkit/trans.html +++ /dev/null @@ -1,144 +0,0 @@ - - - -Quaternion Transcendentals - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There is no log or sqrt provided for quaternions in this implementation, - and pow is likewise restricted - to integral powers of the exponent. There are several reasons to this: on the - one hand, the equivalent of analytic continuation for quaternions ("branch - cuts") remains to be investigated thoroughly (by me, at any rate...), - and we wish to avoid the nonsense introduced in the standard by exponentiations - of complexes by complexes (which is well defined, but not in the standard...). - Talking of nonsense, saying that pow(0,0) is "implementation - defined" is just plain brain-dead... -

-

- We do, however provide several transcendentals, chief among which is the exponential. - This author claims the complete proof of the "closed formula" as - his own, as well as its independant invention (there are claims to prior invention - of the formula, such as one by Professor Shoemake, and it is possible that - the formula had been known a couple of centuries back, but in absence of bibliographical - reference, the matter is pending, awaiting further investigation; on the other - hand, the definition and existence of the exponential on the quaternions, is - of course a fact known for a very long time). Basically, any converging power - series with real coefficients which allows for a closed formula in C can be transposed to H. More transcendentals of this type could - be added in a further revision upon request. It should be noted that it is - these functions which force the dependency upon the boost/math/special_functions/sinc.hpp - and the boost/math/special_functions/sinhc.hpp - headers. -

-
- - exp -
-
template<typename T> quaternion<T> exp(quaternion<T> const & q);
-
-

- Computes the exponential of the quaternion. -

-
- - cos -
-
template<typename T> quaternion<T>  cos(quaternion<T> const & q);
-
-

- Computes the cosine of the quaternion -

-
- - sin -
-
template<typename T> quaternion<T>  sin(quaternion<T> const & q);
-
-

- Computes the sine of the quaternion. -

-
- - tan -
-
template<typename T> quaternion<T>  tan(quaternion<T> const & q);
-
-

- Computes the tangent of the quaternion. -

-
- - cosh -
-
template<typename T> quaternion<T>  cosh(quaternion<T> const & q);
-
-

- Computes the hyperbolic cosine of the quaternion. -

-
- - sinh -
-
template<typename T> quaternion<T>  sinh(quaternion<T> const & q);
-
-

- Computes the hyperbolic sine of the quaternion. -

-
- - tanh -
-
template<typename T> quaternion<T>  tanh(quaternion<T> const & q);
-
-

- Computes the hyperbolic tangent of the quaternion. -

-
- - pow -
-
template<typename T> quaternion<T>  pow(quaternion<T> const & q, int n);
-
-

- Computes the n-th power of the quaternion q. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/tuning.html b/boost/libs/math/doc/html/math_toolkit/tuning.html deleted file mode 100644 index 0566ee38..00000000 --- a/boost/libs/math/doc/html/math_toolkit/tuning.html +++ /dev/null @@ -1,2175 +0,0 @@ - - - -Performance Tuning Macros - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- There are a small number of performance tuning options that are determined - by configuration macros. These should be set in boost/math/tools/user.hpp; - or else reported to the Boost-development mailing list so that the appropriate - option for a given compiler and OS platform can be set automatically in our - configuration setup. -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Macro -

-
-

- Meaning -

-
-

- BOOST_MATH_POLY_METHOD -

-
-

- Determines how polynomials and most rational functions are evaluated. - Define to one of the values 0, 1, 2 or 3: see below for the meaning - of these values. -

-
-

- BOOST_MATH_RATIONAL_METHOD -

-
-

- Determines how symmetrical rational functions are evaluated: mostly - this only effects how the Lanczos approximation is evaluated, and - how the evaluate_rational - function behaves. Define to one of the values 0, 1, 2 or 3: see below - for the meaning of these values. -

-
-

- BOOST_MATH_MAX_POLY_ORDER -

-
-

- The maximum order of polynomial or rational function that will be - evaluated by a method other than 0 (a simple "for" loop). -

-
-

- BOOST_MATH_INT_TABLE_TYPE(RT, IT) -

-
-

- Many of the coefficients to the polynomials and rational functions - used by this library are integers. Normally these are stored as tables - as integers, but if mixed integer / floating point arithmetic is - much slower than regular floating point arithmetic then they can - be stored as tables of floating point values instead. If mixed arithmetic - is slow then add: -

-

- #define BOOST_MATH_INT_TABLE_TYPE(RT, IT) RT -

-

- to boost/math/tools/user.hpp, otherwise the default of: -

-

- #define BOOST_MATH_INT_TABLE_TYPE(RT, IT) IT -

-

- Set in boost/math/config.hpp is fine, and may well result in smaller - code. -

-
-

- The values to which BOOST_MATH_POLY_METHOD - and BOOST_MATH_RATIONAL_METHOD - may be set are as follows: -

-
---- - - - - - - - - - - - - - - - - - - - - - - -
-

- Value -

-
-

- Effect -

-
-

- 0 -

-
-

- The polynomial or rational function is evaluated using Horner's method, - and a simple for-loop. -

-

- Note that if the order of the polynomial or rational function is - a runtime parameter, or the order is greater than the value of BOOST_MATH_MAX_POLY_ORDER, then - this method is always used, irrespective of the value of BOOST_MATH_POLY_METHOD or BOOST_MATH_RATIONAL_METHOD. -

-
-

- 1 -

-
-

- The polynomial or rational function is evaluated without the use - of a loop, and using Horner's method. This only occurs if the order - of the polynomial is known at compile time and is less than or equal - to BOOST_MATH_MAX_POLY_ORDER. -

-
-

- 2 -

-
-

- The polynomial or rational function is evaluated without the use - of a loop, and using a second order Horner's method. In theory this - permits two operations to occur in parallel for polynomials, and - four in parallel for rational functions. This only occurs if the - order of the polynomial is known at compile time and is less than - or equal to BOOST_MATH_MAX_POLY_ORDER. -

-
-

- 3 -

-
-

- The polynomial or rational function is evaluated without the use - of a loop, and using a second order Horner's method. In theory this - permits two operations to occur in parallel for polynomials, and - four in parallel for rational functions. This differs from method - "2" in that the code is carefully ordered to make the parallelisation - more obvious to the compiler: rather than relying on the compiler's - optimiser to spot the parallelisation opportunities. This only occurs - if the order of the polynomial is known at compile time and is less - than or equal to BOOST_MATH_MAX_POLY_ORDER. -

-
-

- The performance test suite generates a report for your particular compiler - showing which method is likely to work best, the following tables show the - results for MSVC-14.0 and GCC-5.1.0 (Linux). There's not much to choose between - the various methods, but generally loop-unrolled methods perform better. Interestingly, - ordering the code to try and "second guess" possible optimizations - seems not to be such a good idea (method 3 below). -

-
-

Table 16.3. Polynomial Method Comparison with Microsoft Visual C++ version 14.0 - on Windows x64

-
----------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Method 0
(Double Coefficients) -

-
-

- Method 0
(Integer Coefficients) -

-
-

- Method 1
(Double Coefficients) -

-
-

- Method 1
(Integer Coefficients) -

-
-

- Method 2
(Double Coefficients) -

-
-

- Method 2
(Integer Coefficients) -

-
-

- Method 3
(Double Coefficients) -

-
-

- Method 3
(Integer Coefficients) -

-
-

- Order 2 -

-
-

- - -

-
-

- - -

-
-

- 1.00
(9ns)
-

-
-

- 1.00
(9ns)
-

-
-

- 1.00
(9ns)
-

-
-

- 1.00
(9ns)
-

-
-

- 1.00
(9ns)
-

-
-

- 1.00
(9ns)
-

-
-

- Order 3 -

-
-

- 2.08
(25ns)
-

-
-

- 2.75
(33ns)
-

-
-

- 1.08
(13ns)
-

-
-

- 1.08
(13ns)
-

-
-

- 1.08
(13ns)
-

-
-

- 1.08
(13ns)
-

-
-

- 1.08
(13ns)
-

-
-

- 1.00
(12ns)
-

-
-

- Order 4 -

-
-

- 2.06
(35ns)
-

-
-

- 2.71
(46ns)
-

-
-

- 1.06
(18ns)
-

-
-

- 1.00
(17ns)
-

-
-

- 1.06
(18ns)
-

-
-

- 1.06
(18ns)
-

-
-

- 1.00
(17ns)
-

-
-

- 1.00
(17ns)
-

-
-

- Order 5 -

-
-

- 1.32
(29ns)
-

-
-

- 2.00
(44ns)
-

-
-

- 1.00
(22ns)
-

-
-

- 1.00
(22ns)
-

-
-

- 1.05
(23ns)
-

-
-

- 1.05
(23ns)
-

-
-

- 1.05
(23ns)
-

-
-

- 1.05
(23ns)
-

-
-

- Order 6 -

-
-

- 1.38
(36ns)
-

-
-

- 2.04
(53ns)
-

-
-

- 1.08
(28ns)
-

-
-

- 1.00
(26ns)
-

-
-

- 1.08
(28ns)
-

-
-

- 1.08
(28ns)
-

-
-

- 1.35
(35ns)
-

-
-

- 1.38
(36ns)
-

-
-

- Order 7 -

-
-

- 1.43
(43ns)
-

-
-

- 2.13
(64ns)
-

-
-

- 1.03
(31ns)
-

-
-

- 1.00
(30ns)
-

-
-

- 1.10
(33ns)
-

-
-

- 1.03
(31ns)
-

-
-

- 1.10
(33ns)
-

-
-

- 1.13
(34ns)
-

-
-

- Order 8 -

-
-

- 1.65
(61ns)
-

-
-

- 2.22
(82ns)
-

-
-

- 1.00
(37ns)
-

-
-

- 1.08
(40ns)
-

-
-

- 1.14
(42ns)
-

-
-

- 1.05
(39ns)
-

-
-

- 1.08
(40ns)
-

-
-

- 1.11
(41ns)
-

-
-

- Order 9 -

-
-

- 1.39
(57ns)
-

-
-

- 2.05
(84ns)
-

-
-

- 1.17
(48ns)
-

-
-

- 1.17
(48ns)
-

-
-

- 1.00
(41ns)
-

-
-

- 1.05
(43ns)
-

-
-

- 1.15
(47ns)
-

-
-

- 1.12
(46ns)
-

-
-

- Order 10 -

-
-

- 1.37
(63ns)
-

-
-

- 2.20
(101ns)
-

-
-

- 1.22
(56ns)
-

-
-

- 1.24
(57ns)
-

-
-

- 1.00
(46ns)
-

-
-

- 1.00
(46ns)
-

-
-

- 1.17
(54ns)
-

-
-

- 1.17
(54ns)
-

-
-

- Order 11 -

-
-

- 1.59
(78ns)
-

-
-

- 2.24
(110ns)
-

-
-

- 1.37
(67ns)
-

-
-

- 1.29
(63ns)
-

-
-

- 1.22
(60ns)
-

-
-

- 1.00
(49ns)
-

-
-

- 1.22
(60ns)
-

-
-

- 1.22
(60ns)
-

-
-

- Order 12 -

-
-

- 1.46
(83ns)
-

-
-

- 2.16
(123ns)
-

-
-

- 1.28
(73ns)
-

-
-

- 1.26
(72ns)
-

-
-

- 1.02
(58ns)
-

-
-

- 1.00
(57ns)
-

-
-

- 1.07
(61ns)
-

-
-

- 1.05
(60ns)
-

-
-

- Order 13 -

-
-

- 1.61
(90ns)
-

-
-

- 2.55
(143ns)
-

-
-

- 1.32
(74ns)
-

-
-

- 1.39
(78ns)
-

-
-

- 1.04
(58ns)
-

-
-

- 1.00
(56ns)
-

-
-

- 1.11
(62ns)
-

-
-

- 1.07
(60ns)
-

-
-

- Order 14 -

-
-

- 1.61
(106ns)
-

-
-

- 2.23
(147ns)
-

-
-

- 1.45
(96ns)
-

-
-

- 1.45
(96ns)
-

-
-

- 1.02
(67ns)
-

-
-

- 1.02
(67ns)
-

-
-

- 1.00
(66ns)
-

-
-

- 1.09
(72ns)
-

-
-

- Order 15 -

-
-

- 1.49
(119ns)
-

-
-

- 2.10
(168ns)
-

-
-

- 1.35
(108ns)
-

-
-

- 1.35
(108ns)
-

-
-

- 1.00
(80ns)
-

-
-

- 1.00
(80ns)
-

-
-

- 1.00
(80ns)
-

-
-

- 1.02
(82ns)
-

-
-

- Order 16 -

-
-

- 1.54
(129ns)
-

-
-

- 1.99
(167ns)
-

-
-

- 1.49
(125ns)
-

-
-

- 1.45
(122ns)
-

-
-

- 1.07
(90ns)
-

-
-

- 1.00
(84ns)
-

-
-

- 1.08
(91ns)
-

-
-

- 1.02
(86ns)
-

-
-

- Order 17 -

-
-

- 1.51
(133ns)
-

-
-

- 2.02
(178ns)
-

-
-

- 1.57
(138ns)
-

-
-

- 1.50
(132ns)
-

-
-

- 1.02
(90ns)
-

-
-

- 1.00
(88ns)
-

-
-

- 1.07
(94ns)
-

-
-

- 1.06
(93ns)
-

-
-

- Order 18 -

-
-

- 1.53
(148ns)
-

-
-

- 2.16
(210ns)
-

-
-

- 1.49
(145ns)
-

-
-

- 1.57
(152ns)
-

-
-

- 1.11
(108ns)
-

-
-

- 1.09
(106ns)
-

-
-

- 1.00
(97ns)
-

-
-

- 1.08
(105ns)
-

-
-

- Order 19 -

-
-

- 1.90
(194ns)
-

-
-

- 2.27
(232ns)
-

-
-

- 1.62
(165ns)
-

-
-

- 1.62
(165ns)
-

-
-

- 1.08
(110ns)
-

-
-

- 1.00
(102ns)
-

-
-

- 1.17
(119ns)
-

-
-

- 1.19
(121ns)
-

-
-

- Order 20 -

-
-

- 1.65
(206ns)
-

-
-

- 2.08
(260ns)
-

-
-

- 1.45
(181ns)
-

-
-

- 1.44
(180ns)
-

-
-

- 1.00
(125ns)
-

-
-

- 1.00
(125ns)
-

-
-

- 1.01
(126ns)
-

-
-

- 1.03
(129ns)
-

-
-
-
-

Table 16.4. Rational Method Comparison with Microsoft Visual C++ version 14.0 on - Windows x64

-
----------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- Function -

-
-

- Method 0
(Double Coefficients) -

-
-

- Method 0
(Integer Coefficients) -

-
-

- Method 1
(Double Coefficients) -

-
-

- Method 1
(Integer Coefficients) -

-
-

- Method 2
(Double Coefficients) -

-
-

- Method 2
(Integer Coefficients) -

-
-

- Method 3
(Double Coefficients) -

-
-

- Method 3
(Integer Coefficients) -

-
-

- Order 2 -

-
-

- - -

-
-

- - -

-
-

- 2.12
(89ns)
-

-
-

- 1.95
(82ns)
-

-
-

- 1.00
(42ns)
-

-
-

- 1.00
(42ns)
-

-
-

- 1.00
(42ns)
-

-
-

- 1.00
(42ns)
-

-
-

- Order 3 -

-
-

- 2.10
(88ns)
-

-
-

- 2.10
(88ns)
-

-
-

- 2.05
(86ns)
-

-
-

- 2.10
(88ns)
-

-
-

- 1.05
(44ns)
-

-
-

- 1.00
(42ns)
-

-
-

- 1.00
(42ns)
-

-
-

- 1.00
(42ns)
-

-
-

- Order 4 -

-
-

- 2.12
(89ns)
-

-
-

- 2.21
(93ns)
-

-
-

- 1.98
(83ns)
-

-
-

- 2.10
(88ns)
-

-
-

- 1.02
(43ns)
-

-
-

- 1.02
(43ns)
-

-
-

- 1.02
(43ns)
-

-
-

- 1.00
(42ns)
-

-
-

- Order 5 -

-
-

- 1.07
(90ns)
-

-
-

- 1.15
(97ns)
-

-
-

- 1.08
(91ns)
-

-
-

- 1.00
(84ns)
-

-
-

- 1.45
(122ns)
-

-
-

- 1.46
(123ns)
-

-
-

- 1.45
(122ns)
-

-
-

- 1.45
(122ns)
-

-
-

- Order 6 -

-
-

- 1.16
(102ns)
-

-
-

- 1.58
(139ns)
-

-
-

- 1.00
(88ns)
-

-
-

- 1.03
(91ns)
-

-
-

- 1.44
(127ns)
-

-
-

- 1.44
(127ns)
-

-
-

- 1.41
(124ns)
-

-
-

- 1.38
(121ns)
-

-
-

- Order 7 -

-
-

- 1.29
(121ns)
-

-
-

- 1.44
(135ns)
-

-
-

- 1.01
(95ns)
-

-
-

- 1.00
(94ns)
-

-
-

- 1.38
(130ns)
-

-
-

- 1.36
(128ns)
-

-
-

- 1.33
(125ns)
-

-
-

- 1.36
(128ns)
-

-
-

- Order 8 -

-
-

- 1.33
(134ns)
-

-
-

- 1.52
(154ns)
-

-
-

- 1.00
(101ns)
-

-
-

- 1.08
(109ns)
-

-
-

- 1.38
(139ns)
-

-
-

- 1.31
(132ns)
-

-
-

- 1.39
(140ns)
-

-
-

- 1.37
(138ns)
-

-
-

- Order 9 -

-
-

- 1.18
(141ns)
-

-
-

- 1.45
(172ns)
-

-
-

- 1.00
(119ns)
-

-
-

- 1.08
(128ns)
-

-
-

- 1.13
(135ns)
-

-
-

- 1.26
(150ns)
-

-
-

- 1.26
(150ns)
-

-
-

- 1.27
(151ns)
-

-
-

- Order 10 -

-
-

- 1.29
(180ns)
-

-
-

- 1.28
(178ns)
-

-
-

- 1.05
(146ns)
-

-
-

- 1.00
(139ns)
-

-
-

- 1.06
(147ns)
-

-
-

- 1.06
(147ns)
-

-
-

- 1.18
(164ns)
-

-
-

- 1.17
(163ns)
-

-
-

- Order 11 -

-
-

- 1.28
(187ns)
-

-
-

- 1.28
(187ns)
-

-
-

- 1.06
(155ns)
-

-
-

- 1.05
(154ns)
-

-
-

- 1.03
(151ns)
-

-
-

- 1.00
(146ns)
-

-
-

- 1.19
(174ns)
-

-
-

- 1.47
(215ns)
-

-
-

- Order 12 -

-
-

- 1.22
(197ns)
-

-
-

- 1.38
(223ns)
-

-
-

- 1.04
(168ns)
-

-
-

- 1.04
(169ns)
-

-
-

- 1.00
(162ns)
-

-
-

- 1.04
(169ns)
-

-
-

- 1.22
(198ns)
-

-
-

- 1.52
(246ns)
-

-
-

- Order 13 -

-
-

- 1.23
(209ns)
-

-
-

- 1.29
(220ns)
-

-
-

- 1.15
(196ns)
-

-
-

- 1.10
(187ns)
-

-
-

- 1.00
(170ns)
-

-
-

- 1.15
(196ns)
-

-
-

- 1.22
(208ns)
-

-
-

- 1.61
(273ns)
-

-
-

- Order 14 -

-
-

- 1.28
(242ns)
-

-
-

- 1.39
(262ns)
-

-
-

- 1.15
(218ns)
-

-
-

- 1.14
(216ns)
-

-
-

- 1.00
(189ns)
-

-
-

- 1.01
(191ns)
-

-
-

- 1.49
(282ns)
-

-
-

- 1.53
(290ns)
-

-
-

- Order 15 -

-
-

- 1.28
(260ns)
-

-
-

- 1.34
(273ns)
-

-
-

- 1.12
(227ns)
-

-
-

- 1.15
(233ns)
-

-
-

- 1.00
(203ns)
-

-
-

- 1.00
(203ns)
-

-
-

- 1.38
(280ns)
-

-
-

- 1.47
(298ns)
-

-
-

- Order 16 -

-
-

- 1.35
(288ns)
-

-
-

- 1.40
(300ns)
-

-
-

- 1.22
(261ns)
-

-
-

- 1.18
(252ns)
-

-
-

- 1.00
(214ns)
-

-
-

- 1.23
(264ns)
-

-
-

- 1.43
(305ns)
-

-
-

- 1.52
(325ns)
-

-
-

- Order 17 -

-
-

- 1.16
(259ns)
-

-
-

- 1.47
(328ns)
-

-
-

- 1.15
(256ns)
-

-
-

- 1.35
(302ns)
-

-
-

- 1.00
(223ns)
-

-
-

- 1.22
(273ns)
-

-
-

- 1.50
(334ns)
-

-
-

- 1.52
(339ns)
-

-
-

- Order 18 -

-
-

- 1.10
(273ns)
-

-
-

- 1.46
(363ns)
-

-
-

- 1.10
(273ns)
-

-
-

- 1.75
(434ns)
-

-
-

- 1.00
(248ns)
-

-
-

- 1.30
(322ns)
-

-
-

- 1.41
(349ns)
-

-
-

- 1.46
(363ns)
-

-
-

- Order 19 -

-
-

- 1.26
(330ns)
-

-
-

- 1.35
(352ns)
-

-
-

- 1.24
(324ns)
-

-
-

- 1.33
(348ns)
-

-
-

- 1.00
(261ns)
-

-
-

- 1.22
(319ns)
-

-
-

- 1.44
(377ns)
-

-
-

- 1.46
(381ns)
-

-
-

- Order 20 -

-
-

- 1.24
(330ns)
-

-
-

- 1.60
(427ns)
-

-
-

- 1.22
(327ns)
-

-
-

- 1.56
(416ns)
-

-
-

- 1.00
(267ns)
-

-
-

- 1.19
(317ns)
-

-
-

- 1.57
(418ns)
-

-
-

- 1.56
(416ns)
-

-
-
-

- [table_Polynomial_Method_Comparison_with_GNU_C_version_5_1_0_on_linux] -

-

- [table_Rational_Method_Comparison_with_GNU_C_version_5_1_0_on_linux] -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/tutorial.html b/boost/libs/math/doc/html/math_toolkit/tutorial.html deleted file mode 100644 index a59d9b02..00000000 --- a/boost/libs/math/doc/html/math_toolkit/tutorial.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Tutorial - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/tutorial/non_templ.html b/boost/libs/math/doc/html/math_toolkit/tutorial/non_templ.html deleted file mode 100644 index 7b193208..00000000 --- a/boost/libs/math/doc/html/math_toolkit/tutorial/non_templ.html +++ /dev/null @@ -1,86 +0,0 @@ - - - -Use in non-template code - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- When using the math constants at your chosen fixed precision in non-template - code, you can simply add a using namespace declaration, for example, using namespace - boost::math::double_constants, to make the constants - of the correct precision for your code visible in the current scope, and - then use each constant as a simple variable - sans brackets: -

-
#include <boost/math/constants/constants.hpp>
-
-double area(double r)
-{
-   using namespace boost::math::double_constants;
-   return pi * r * r;
-}
-
-

- Had our function been written as taking a float - rather than a double, we could - have written instead: -

-
#include <boost/math/constants/constants.hpp>
-
-float area(float r)
-{
-   using namespace boost::math::float_constants;
-   return pi * r * r;
-}
-
-

- Likewise, constants that are suitable for use at long - double precision are available in - the namespace boost::math::long_double_constants. -

-

- You can see the full list of available constants at math_toolkit.constants. -

-

- Some examples of using constants are at constants_eg1. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/tutorial/templ.html b/boost/libs/math/doc/html/math_toolkit/tutorial/templ.html deleted file mode 100644 index d7ef5c04..00000000 --- a/boost/libs/math/doc/html/math_toolkit/tutorial/templ.html +++ /dev/null @@ -1,157 +0,0 @@ - - - -Use in template code - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- When using the constants inside a function template, we need to ensure that - we use a constant of the correct precision for our template parameters. We - can do this by calling the function-template versions, pi<FPType>(), of the constants like this: -

-
#include <boost/math/constants/constants.hpp>
-
-template <class Real>
-Real area(Real r)
-{
-   using namespace boost::math::constants;
-   return pi<Real>() * r * r;
-}
-
-

- Although this syntax is a little less "cute" than the non-template - version, the code is no less efficient (at least for the built-in types - float, double - and long double) - : the function template versions of the constants are simple inline functions - that return a constant of the correct precision for the type used. In addition, - these functions are declared constexp - for those compilers that support this, allowing the result to be used in - constant-expressions provided the template argument is a literal type. -

-
- - - - - -
[Tip]Tip

- Keep in mind the difference between the variable version, just pi, and the template-function version: - the template-function requires both a <floating-point-type> - and function call () brackets, - for example: pi<double>(). - You cannot write double p - = pi<>(), nor double - p = - pi(). -

-
- - - - - -
[Note]Note
-

- You can always use both variable and template-function - versions provided calls are fully qualified, - for example: -

-
double my_pi1 = boost::math::constants::pi<double>();
-double my_pi2 = boost::math::double_constants::pi;
-
-
-
- - - - - -
[Warning]Warning
-

- It may be tempting to simply define -

-
using namespace boost::math::double_constants;
-using namespace boost::math::constants;
-
-

- but if you do define two namespaces, this will, of course, create ambiguity! -

-
double my_pi = pi(); // error C2872: 'pi' : ambiguous symbol
-double my_pi2 = pi; // Context does not allow for disambiguation of overloaded function
-
-

- Although the mistake above is fairly obvious, it is also not too difficult - to do this accidentally, or worse, create it in someone elses code. -

-

- Therefore is it prudent to avoid this risk by localising - the scope of such definitions, as shown above. -

-
-
- - - - - -
[Tip]Tip
-

- Be very careful with the type provided as parameter. For example, providing - an integer instead of a floating-point - type can be disastrous (a C++ feature). -

-
cout << "Area = " << area(2) << endl; // Area = 12!!!
-

- You should get a compiler warning -

-
warning : 'return' : conversion from 'double' to 'int', possible loss of data
-
-

- Failure to heed this warning can lead to very wrong answers! -

-

- You can also avoid this by being explicit about the type of Area. -

-
cout << "Area = " << area<double>(2) << endl; // Area = 12.566371
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/tutorial/user_def.html b/boost/libs/math/doc/html/math_toolkit/tutorial/user_def.html deleted file mode 100644 index d2b71fc0..00000000 --- a/boost/libs/math/doc/html/math_toolkit/tutorial/user_def.html +++ /dev/null @@ -1,336 +0,0 @@ - - - -Use With User-Defined Types - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -

- The most common example of a high-precision user-defined type will probably - be Boost.Multiprecision. -

-

- The syntax for using the function-call constants with user-defined types - is the same as it is in the template class, which is to say we use: -

-
#include <boost/math/constants/constants.hpp>
-
-boost::math::constants::pi<UserDefinedType>();
-
-

- For example: -

-
boost::math::constants::pi<boost::multiprecision::cpp_dec_float_50>();
-
-

- giving π with a precision of 50 decimal digits. -

-

- However, since the precision of the user-defined type may be much greater - than that of the built-in floating point types, how the value returned is - created is as follows: -

-
    -
  • - If the precision of the type is known at compile time: -
      -
    • - If the precision is less than or equal to that of a float and the type is constructable - from a float then - our code returns a float - literal. If the user-defined type is a literal type then the function - call that returns the constant will be a constexp. -
    • -
    • - If the precision is less than or equal to that of a double and the type is constructable - from a double then - our code returns a double - literal. If the user-defined type is a literal type then the function - call that returns the constant will be a constexp. -
    • -
    • - If the precision is less than or equal to that of a long double - and the type is constructable from a long - double then our code returns - a long double - literal. If the user-defined type is a literal type then the function - call that returns the constant will be a constexp. -
    • -
    • - If the precision is less than or equal to that of a __float128 (and the compiler - supports such a type) and the type is constructable from a __float128 then our code returns - a __float128 literal. - If the user-defined type is a literal type then the function call - that returns the constant will be a constexp. -
    • -
    • - If the precision is less than 100 decimal digits, then the constant - will be constructed (just the once, then cached in a thread-safe - manner) from a string representation of the constant. In this case - the value is returned as a const reference to the cached value. -
    • -
    • - Otherwise the value is computed (just once, then cached in a thread-safe - manner). In this case the value is returned as a const reference - to the cached value. -
    • -
    -
  • -
  • - If the precision is unknown at compile time then: -
      -
    • - If the runtime precision (obtained from a call to boost::math::tools::digits<T>()) - is less than 100 decimal digits, then the constant is constructed - "on the fly" from the string representation of the constant. -
    • -
    • - Otherwise the value is constructed "on the fly" by calculating - then value of the constant using the current default precision - of the type. Note that this can make use of the constants rather - expensive. -
    • -
    -
  • -
-

- In addition, it is possible to pass a Policy - type as a second template argument, and use this to control the precision: -

-
#include <boost/math/constants/constants.hpp>
-
-typedef boost::math::policies::policy<boost::math::policies::digits2<80> > my_policy_type;
-boost::math::constants::pi<MyType, my_policy_type>();
-
-
- - - - - -
[Note]Note

- Boost.Math doesn't know how to control the internal precision of MyType, the policy just controls how - the selection process above is carried out, and the calculation precision - if the result is computed. -

-

- It is also possible to control which method is used to construct the constant - by specialising the traits class construction_traits: -

-
namespace boost{ namespace math{ namespace constant{
-
-template <class T, class Policy>
-struct construction_traits
-{
-   typedef mpl::int_<N> type;
-};
-
-}}} // namespaces
-
-

- Where N takes one of the following values: -

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- N -

-
-

- Meaning -

-
-

- 0 -

-
-

- The precision is unavailable at compile time; either construct - from a decimal digit string or calculate on the fly depending upon - the runtime precision. -

-
-

- 1 -

-
-

- Return a float precision constant. -

-
-

- 2 -

-
-

- Return a double precision constant. -

-
-

- 3 -

-
-

- Return a long double precision constant. -

-
-

- 4 -

-
-

- Construct the result from the string representation, and cache - the result. -

-
-

- Any other value N -

-
-

- Sets the compile time precision to N bits. -

-
-
- - Custom - Specializing a constant -
-

- In addition, for user-defined types that need special handling, it's possible - to partially-specialize the internal structure used by each constant. For - example, suppose we're using the C++ wrapper around MPFR mpfr_class: - this has its own representation of Pi which we may well wish to use in place - of the above mechanism. We can achieve this by specialising the class template - boost::math::constants::detail::constant_pi: -

-
namespace boost{ namespace math{ namespace constants{ namespace detail{
-
-template<>
-struct constant_pi<mpfr_class>
-{
-   template<int N>
-   static mpfr_class get(const mpl::int_<N>&)
-   {
-      // The template param N is one of the values in the table above,
-      // we can either handle all cases in one as is the case here,
-      // or overload "get" for the different options.
-      mpfr_class result;
-      mpfr_const_pi(result.get_mpfr_t(), GMP_RNDN);
-      return result;
-   }
-};
-
-}}}} // namespaces
-
-
- - Diagnosing - what meta-programmed code is doing -
-

- Finally, since it can be tricky to diagnose what meta-programmed code is - doing, there is a diagnostic routine that prints information about how this - library will handle a specific type, it can be used like this: -

-
#include <boost/math/constants/info.hpp>
-
-int main()
-{
-   boost::math::constants::print_info_on_type<MyType>();
-}
-
-

- If you wish, you can also pass an optional std::ostream argument to the - print_info_on_type function. - Typical output for a user-defined type looks like this: -

-
Information on the Implementation and Handling of
-Mathematical Constants for Type class boost::math::concepts::real_concept
-
-Checking for std::numeric_limits<class boost::math::concepts::real_concept> specialisation: no
-boost::math::policies::precision<class boost::math::concepts::real_concept, Policy>
-reports that there is no compile type precision available.
-boost::math::tools::digits<class boost::math::concepts::real_concept>()
-reports that the current runtime precision is
-53 binary digits.
-No compile time precision is available, the construction method
-will be decided at runtime and results will not be cached
-- this may lead to poor runtime performance.
-Current runtime precision indicates that
-the constant will be constructed from a string on each call.
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/value_op.html b/boost/libs/math/doc/html/math_toolkit/value_op.html deleted file mode 100644 index 3c5088b6..00000000 --- a/boost/libs/math/doc/html/math_toolkit/value_op.html +++ /dev/null @@ -1,109 +0,0 @@ - - - -Quaternion Value Operations - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - real - and unreal -
-
template<typename T> T              real(quaternion<T> const & q);
-template<typename T> quaternion<T>  unreal(quaternion<T> const & q);
-
-

- These return q.real() and - q.unreal() - respectively. -

-
- - conj -
-
template<typename T> quaternion<T>  conj(quaternion<T> const & q);
-
-

- This returns the conjugate of the quaternion. -

-
- - sup -
-

- template<typename T> T sup(quaternion<T> const & q); -

-

- This return the sup norm (the greatest among abs(q.R_component_1())...abs(q.R_component_4())) of the quaternion. -

-
- - l1 -
-
template<typename T> T  l1(quaternion<T> const & q);
-
-

- This return the l1 norm (abs(q.R_component_1())+...+abs(q.R_component_4())) of the quaternion. -

-
- - abs -
-
template<typename T> T  abs(quaternion<T> const & q);
-
-

- This return the magnitude (Euclidian norm) of the quaternion. -

-
- - norm -
-
template<typename T> T  norm(quaternion<T>const  & q);
-
-

- This return the (Cayley) norm of the quaternion. The term "norm" - might be confusing, as most people associate it with the Euclidian norm (and - quadratic functionals). For this version of (the mathematical objects known - as) quaternions, the Euclidian norm (also known as magnitude) is the square - root of the Cayley norm. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/zetas.html b/boost/libs/math/doc/html/math_toolkit/zetas.html deleted file mode 100644 index c025d8a9..00000000 --- a/boost/libs/math/doc/html/math_toolkit/zetas.html +++ /dev/null @@ -1,47 +0,0 @@ - - - -Zeta Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/zetas/zeta.html b/boost/libs/math/doc/html/math_toolkit/zetas/zeta.html deleted file mode 100644 index ee0e3902..00000000 --- a/boost/libs/math/doc/html/math_toolkit/zetas/zeta.html +++ /dev/null @@ -1,387 +0,0 @@ - - - -Riemann Zeta Function - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/zeta.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type zeta(T z);
-
-template <class T, class Policy>
-calculated-result-type zeta(T z, const Policy&);
-
-}} // namespaces
-
-

- The return type of these functions is computed using the result - type calculation rules: the return type is double if T is an integer type, and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Description -
-
template <class T>
-calculated-result-type zeta(T z);
-
-template <class T, class Policy>
-calculated-result-type zeta(T z, const Policy&);
-
-

- Returns the zeta - function of z: -

-

- -

-

- -

-

- -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types, along with comparisons - to the GSL-1.9 and - Cephes libraries. Unless - otherwise specified any floating point type that is narrower than the one - shown will have effectively - zero error. -

-
-

Table 6.73. Error rates for zeta

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Zeta: Random values greater than 1 -

-
-

- Max = 0.836ε (Mean = 0.093ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 8.69ε (Mean = 1.03ε))
(Cephes: - Max = 4.49e+33ε (Mean = 6.85e+32ε) And - other failures.) -

-
-

- Max = 0.846ε (Mean = 0.0833ε)
-
(<tr1/cmath>: Max = 5.45ε (Mean - = 1ε)) -

-
-

- Max = 0.846ε (Mean = 0.0743ε) -

-
-

- Zeta: Random values less than 1 -

-
-

- Max = 7.03ε (Mean = 2.98ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 137ε (Mean = 13.8ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 7.03ε (Mean = 2.71ε)

- (<tr1/cmath>: Max = 538ε (Mean = 59.3ε)) -

-
-

- Max = 70.1ε (Mean = 17.1ε) -

-
-

- Zeta: Values close to and greater than 1 -

-
-

- Max = 0.994ε (Mean = 0.421ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 7.73ε (Mean = 4.07ε))
(Cephes: - Max = 6.77e+15ε (Mean = 1.52e+15ε) And - other failures.) -

-
-

- Max = 0.995ε (Mean = 0.5ε)

- (<tr1/cmath>: Max = 1.9e+06ε (Mean = 5.11e+05ε)) -

-
-

- Max = 0.995ε (Mean = 0.5ε) -

-
-

- Zeta: Values close to and less than 1 -

-
-

- Max = 0.991ε (Mean = 0.375ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 0.991ε (Mean = 0.28ε))
(Cephes: - Max = 8.66e+15ε (Mean = 1.9e+15ε) And - other failures.) -

-
-

- Max = 0.998ε (Mean = 0.508ε)

- (<tr1/cmath>: Max = 8.53e+06ε (Mean = - 1.87e+06ε)) -

-
-

- Max = 0.998ε (Mean = 0.568ε) -

-
-

- Zeta: Integer arguments -

-
-

- Max = 6.5ε (Mean = 2.17ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 3.75ε (Mean = 1.1ε))
(Cephes: - Max = +INFε (Mean = +INFε) And - other failures.) -

-
-

- Max = 9ε (Mean = 3.06ε)

- (<tr1/cmath>: Max = 70.3ε (Mean = 17.4ε)) -

-
-

- Max = 21ε (Mean = 7.13ε) -

-
-
-
- - Testing -
-

- The tests for these functions come in two parts: basic sanity checks use - spot values calculated using Mathworld's - online evaluator, while accuracy checks use high-precision test values - calculated at 1000-bit precision with NTL::RR - and this implementation. Note that the generic and type-specific versions - of these functions use differing implementations internally, so this gives - us reasonably independent test data. Using our test data to test other "known - good" implementations also provides an additional sanity check. -

-
- - Implementation -
-

- All versions of these functions first use the usual reflection formulas to - make their arguments positive: -

-

- -

-

- The generic versions of these functions are implemented using the series: -

-

- -

-

- When the significand (mantissa) size is recognised (currently for 53, 64 - and 113-bit reals, plus single-precision 24-bit handled via promotion to - double) then a series of rational approximations devised - by JM are used. -

-

- For 0 < z < 1 the approximating form is: -

-

- -

-

- For a rational approximation R(1-z) and a constant C. -

-

- For 1 < z < 4 the approximating form is: -

-

- -

-

- For a rational approximation R(n-z) and a constant C and integer n. -

-

- For z > 4 the approximating form is: -

-

- ζ(z) = 1 + eR(z - n) -

-

- For a rational approximation R(z-n) and integer n, note that the accuracy - required for R(z-n) is not full machine precision, but an absolute error - of: ε/R(0). This saves us quite a few digits when dealing with large z, especially - when ε is small. -

-

- Finally, there are some special cases for integer arguments, there are closed - forms for negative or even integers: -

-

- -

-

- -

-

- -

-

- and for positive odd integers we simply cache pre-computed values as these - are of great benefit to some infinite series calculations. -

-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/octonions.html b/boost/libs/math/doc/html/octonions.html deleted file mode 100644 index 1e72d174..00000000 --- a/boost/libs/math/doc/html/octonions.html +++ /dev/null @@ -1,65 +0,0 @@ - - - -Chapter 10. Octonions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/overview.html b/boost/libs/math/doc/html/overview.html deleted file mode 100644 index be6784a6..00000000 --- a/boost/libs/math/doc/html/overview.html +++ /dev/null @@ -1,70 +0,0 @@ - - - -Chapter 1. Overview - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/perf.html b/boost/libs/math/doc/html/perf.html deleted file mode 100644 index ac3d4bec..00000000 --- a/boost/libs/math/doc/html/perf.html +++ /dev/null @@ -1,62 +0,0 @@ - - - -Chapter 16. Performance - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/policy.html b/boost/libs/math/doc/html/policy.html deleted file mode 100644 index 0af21902..00000000 --- a/boost/libs/math/doc/html/policy.html +++ /dev/null @@ -1,91 +0,0 @@ - - - -Chapter 15. Policies: Controlling Precision, Error Handling etc - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/quaternions.html b/boost/libs/math/doc/html/quaternions.html deleted file mode 100644 index f22c2756..00000000 --- a/boost/libs/math/doc/html/quaternions.html +++ /dev/null @@ -1,66 +0,0 @@ - - - -Chapter 9. Quaternions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/rooting.html b/boost/libs/math/doc/html/rooting.html deleted file mode 100644 index c3e392e9..00000000 --- a/boost/libs/math/doc/html/rooting.html +++ /dev/null @@ -1,105 +0,0 @@ - - - -Chapter 12. Tools: Root Finding & Minimization Algorithms, Polynomial Arithmetic & Evaluation - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/special.html b/boost/libs/math/doc/html/special.html deleted file mode 100644 index a62962ba..00000000 --- a/boost/libs/math/doc/html/special.html +++ /dev/null @@ -1,215 +0,0 @@ - - - -Chapter 6. Special Functions - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Chapter 6. Special Functions

-
-

Table of Contents

-
-
Number Series
-
-
Bernoulli - Numbers
-
Tangent Numbers
-
Prime Numbers
-
-
Gamma Functions
-
-
Gamma
-
Log Gamma
-
Digamma
-
Trigamma
-
Polygamma
-
Ratios of Gamma Functions
-
Incomplete Gamma Functions
-
Incomplete Gamma Function - Inverses
-
Derivative of - the Incomplete Gamma Function
-
-
Factorials and Binomial Coefficients
-
-
Factorial
-
Double Factorial
-
Rising Factorial
-
Falling - Factorial
-
Binomial Coefficients
-
-
Beta Functions
-
-
Beta
-
Incomplete Beta - Functions
-
The Incomplete - Beta Function Inverses
-
Derivative of the - Incomplete Beta Function
-
-
Error Functions
-
-
Error Functions
-
Error Function Inverses
-
-
Polynomials
-
-
Legendre (and Associated) - Polynomials
-
Laguerre (and Associated) - Polynomials
-
Hermite Polynomials
-
Spherical Harmonics
-
-
Bessel Functions
-
-
Bessel Function Overview
-
Bessel Functions of - the First and Second Kinds
-
Finding Zeros of Bessel - Functions of the First and Second Kinds
-
Modified Bessel Functions - of the First and Second Kinds
-
Spherical Bessel Functions - of the First and Second Kinds
-
Derivatives of - the Bessel Functions
-
-
Hankel Functions
-
-
Cyclic Hankel Functions
-
Spherical Hankel Functions
-
-
Airy Functions
-
-
Airy Ai Function
-
Airy Bi Function
-
Airy Ai' Function
-
Airy Bi' Function
-
Finding Zeros of Airy Functions
-
-
Elliptic Integrals
-
-
Elliptic Integral Overview
-
Elliptic Integrals - - Carlson Form
-
Elliptic Integrals of the - First Kind - Legendre Form
-
Elliptic Integrals of the - Second Kind - Legendre Form
-
Elliptic Integrals of the - Third Kind - Legendre Form
-
Elliptic Integral D - Legendre - Form
-
Jacobi Zeta Function
-
Heuman Lambda Function
-
-
Jacobi Elliptic Functions
-
-
Overvew of the Jacobi Elliptic - Functions
-
Jacobi Elliptic - SN, CN and DN
-
Jacobi Elliptic Function - cd
-
Jacobi Elliptic Function - cn
-
Jacobi Elliptic Function - cs
-
Jacobi Elliptic Function - dc
-
Jacobi Elliptic Function - dn
-
Jacobi Elliptic Function - ds
-
Jacobi Elliptic Function - nc
-
Jacobi Elliptic Function - nd
-
Jacobi Elliptic Function - ns
-
Jacobi Elliptic Function - sc
-
Jacobi Elliptic Function - sd
-
Jacobi Elliptic Function - sn
-
-
Zeta Functions
-
Riemann Zeta Function
-
Exponential Integrals
-
-
Exponential Integral En
-
Exponential Integral Ei
-
-
Basic Functions
-
-
sin_pi
-
cos_pi
-
log1p
-
expm1
-
cbrt
-
sqrt1pm1
-
powm1
-
hypot
-
Compile Time Power of a Runtime - Base
-
-
Sinus Cardinal and Hyperbolic Sinus - Cardinal Functions
-
-
Sinus Cardinal and Hyperbolic - Sinus Cardinal Functions Overview
-
sinc_pi
-
sinhc_pi
-
-
Inverse Hyperbolic Functions
-
-
Inverse Hyperbolic - Functions Overview
-
acosh
-
asinh
-
atanh
-
-
Owen's T function
-
-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/standalone_HTML.manifest b/boost/libs/math/doc/html/standalone_HTML.manifest deleted file mode 100644 index 319e71a2..00000000 --- a/boost/libs/math/doc/html/standalone_HTML.manifest +++ /dev/null @@ -1,407 +0,0 @@ -index.html -overview.html -math_toolkit/main_intro.html -math_toolkit/navigation.html -math_toolkit/conventions.html -math_toolkit/hints.html -math_toolkit/directories.html -math_toolkit/namespaces.html -math_toolkit/result_type.html -math_toolkit/error_handling.html -math_toolkit/compilers_overview.html -math_toolkit/config_macros.html -math_toolkit/intro_pol_overview.html -math_toolkit/threads.html -math_toolkit/perf_over1.html -math_toolkit/building.html -math_toolkit/history1.html -math_toolkit/overview_tr1.html -math_toolkit/main_faq.html -math_toolkit/contact.html -utils.html -math_toolkit/rounding.html -math_toolkit/rounding/round.html -math_toolkit/rounding/trunc.html -math_toolkit/rounding/modf.html -math_toolkit/fpclass.html -math_toolkit/sign_functions.html -math_toolkit/fp_facets.html -math_toolkit/fp_facets/facets_intro.html -math_toolkit/fp_facets/reference.html -math_toolkit/fp_facets/examples.html -math_toolkit/fp_facets/portability.html -math_toolkit/fp_facets/rationale.html -math_toolkit/next_float.html -math_toolkit/next_float/nextafter.html -math_toolkit/next_float/float_next.html -math_toolkit/next_float/float_prior.html -math_toolkit/next_float/float_distance.html -math_toolkit/next_float/float_advance.html -math_toolkit/next_float/ulp.html -math_toolkit/float_comparison.html -cstdfloat.html -math_toolkit/specified_typedefs.html -math_toolkit/rationale.html -math_toolkit/exact_typdefs.html -math_toolkit/minimum_typdefs.html -math_toolkit/fastest_typdefs.html -math_toolkit/greatest_typdefs.html -math_toolkit/macros.html -math_toolkit/examples.html -math_toolkit/float128_hints.html -math_toolkit/float128.html -math_toolkit/float128/overloading.html -math_toolkit/float128/exp_function.html -math_toolkit/float128/typeinfo.html -constants.html -math_toolkit/constants_intro.html -math_toolkit/tutorial.html -math_toolkit/tutorial/non_templ.html -math_toolkit/tutorial/templ.html -math_toolkit/tutorial/user_def.html -math_toolkit/constants.html -math_toolkit/new_const.html -math_toolkit/constants_faq.html -dist.html -math_toolkit/stat_tut.html -math_toolkit/stat_tut/overview.html -math_toolkit/stat_tut/overview/headers.html -math_toolkit/stat_tut/overview/objects.html -math_toolkit/stat_tut/overview/generic.html -math_toolkit/stat_tut/overview/complements.html -math_toolkit/stat_tut/overview/parameters.html -math_toolkit/stat_tut/overview/summary.html -math_toolkit/stat_tut/weg.html -math_toolkit/stat_tut/weg/dist_construct_eg.html -math_toolkit/stat_tut/weg/st_eg.html -math_toolkit/stat_tut/weg/st_eg/tut_mean_intervals.html -math_toolkit/stat_tut/weg/st_eg/tut_mean_test.html -math_toolkit/stat_tut/weg/st_eg/tut_mean_size.html -math_toolkit/stat_tut/weg/st_eg/two_sample_students_t.html -math_toolkit/stat_tut/weg/st_eg/paired_st.html -math_toolkit/stat_tut/weg/cs_eg.html -math_toolkit/stat_tut/weg/cs_eg/chi_sq_intervals.html -math_toolkit/stat_tut/weg/cs_eg/chi_sq_test.html -math_toolkit/stat_tut/weg/cs_eg/chi_sq_size.html -math_toolkit/stat_tut/weg/f_eg.html -math_toolkit/stat_tut/weg/binom_eg.html -math_toolkit/stat_tut/weg/binom_eg/binomial_coinflip_example.html -math_toolkit/stat_tut/weg/binom_eg/binomial_quiz_example.html -math_toolkit/stat_tut/weg/binom_eg/binom_conf.html -math_toolkit/stat_tut/weg/binom_eg/binom_size_eg.html -math_toolkit/stat_tut/weg/geometric_eg.html -math_toolkit/stat_tut/weg/neg_binom_eg.html -math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_conf.html -math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_size_eg.html -math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example1.html -math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example2.html -math_toolkit/stat_tut/weg/normal_example.html -math_toolkit/stat_tut/weg/normal_example/normal_misc.html -math_toolkit/stat_tut/weg/inverse_chi_squared_eg.html -math_toolkit/stat_tut/weg/nccs_eg.html -math_toolkit/stat_tut/weg/nccs_eg/nccs_power_eg.html -math_toolkit/stat_tut/weg/error_eg.html -math_toolkit/stat_tut/weg/find_eg.html -math_toolkit/stat_tut/weg/find_eg/find_location_eg.html -math_toolkit/stat_tut/weg/find_eg/find_scale_eg.html -math_toolkit/stat_tut/weg/find_eg/find_mean_and_sd_eg.html -math_toolkit/stat_tut/weg/nag_library.html -math_toolkit/stat_tut/weg/c_sharp.html -math_toolkit/stat_tut/variates.html -math_toolkit/stat_tut/dist_params.html -math_toolkit/dist_ref.html -math_toolkit/dist_ref/nmp.html -math_toolkit/dist_ref/dists.html -math_toolkit/dist_ref/dists/arcine_dist.html -math_toolkit/dist_ref/dists/bernoulli_dist.html -math_toolkit/dist_ref/dists/beta_dist.html -math_toolkit/dist_ref/dists/binomial_dist.html -math_toolkit/dist_ref/dists/cauchy_dist.html -math_toolkit/dist_ref/dists/chi_squared_dist.html -math_toolkit/dist_ref/dists/exp_dist.html -math_toolkit/dist_ref/dists/extreme_dist.html -math_toolkit/dist_ref/dists/f_dist.html -math_toolkit/dist_ref/dists/gamma_dist.html -math_toolkit/dist_ref/dists/geometric_dist.html -math_toolkit/dist_ref/dists/hyperexponential_dist.html -math_toolkit/dist_ref/dists/hypergeometric_dist.html -math_toolkit/dist_ref/dists/inverse_chi_squared_dist.html -math_toolkit/dist_ref/dists/inverse_gamma_dist.html -math_toolkit/dist_ref/dists/inverse_gaussian_dist.html -math_toolkit/dist_ref/dists/laplace_dist.html -math_toolkit/dist_ref/dists/logistic_dist.html -math_toolkit/dist_ref/dists/lognormal_dist.html -math_toolkit/dist_ref/dists/negative_binomial_dist.html -math_toolkit/dist_ref/dists/nc_beta_dist.html -math_toolkit/dist_ref/dists/nc_chi_squared_dist.html -math_toolkit/dist_ref/dists/nc_f_dist.html -math_toolkit/dist_ref/dists/nc_t_dist.html -math_toolkit/dist_ref/dists/normal_dist.html -math_toolkit/dist_ref/dists/pareto.html -math_toolkit/dist_ref/dists/poisson_dist.html -math_toolkit/dist_ref/dists/rayleigh.html -math_toolkit/dist_ref/dists/skew_normal_dist.html -math_toolkit/dist_ref/dists/students_t_dist.html -math_toolkit/dist_ref/dists/triangular_dist.html -math_toolkit/dist_ref/dists/uniform_dist.html -math_toolkit/dist_ref/dists/weibull_dist.html -math_toolkit/dist_ref/dist_algorithms.html -math_toolkit/future.html -special.html -math_toolkit/number_series.html -math_toolkit/number_series/bernoulli_numbers.html -math_toolkit/number_series/tangent_numbers.html -math_toolkit/number_series/primes.html -math_toolkit/sf_gamma.html -math_toolkit/sf_gamma/tgamma.html -math_toolkit/sf_gamma/lgamma.html -math_toolkit/sf_gamma/digamma.html -math_toolkit/sf_gamma/trigamma.html -math_toolkit/sf_gamma/polygamma.html -math_toolkit/sf_gamma/gamma_ratios.html -math_toolkit/sf_gamma/igamma.html -math_toolkit/sf_gamma/igamma_inv.html -math_toolkit/sf_gamma/gamma_derivatives.html -math_toolkit/factorials.html -math_toolkit/factorials/sf_factorial.html -math_toolkit/factorials/sf_double_factorial.html -math_toolkit/factorials/sf_rising_factorial.html -math_toolkit/factorials/sf_falling_factorial.html -math_toolkit/factorials/sf_binomial.html -math_toolkit/sf_beta.html -math_toolkit/sf_beta/beta_function.html -math_toolkit/sf_beta/ibeta_function.html -math_toolkit/sf_beta/ibeta_inv_function.html -math_toolkit/sf_beta/beta_derivative.html -math_toolkit/sf_erf.html -math_toolkit/sf_erf/error_function.html -math_toolkit/sf_erf/error_inv.html -math_toolkit/sf_poly.html -math_toolkit/sf_poly/legendre.html -math_toolkit/sf_poly/laguerre.html -math_toolkit/sf_poly/hermite.html -math_toolkit/sf_poly/sph_harm.html -math_toolkit/bessel.html -math_toolkit/bessel/bessel_over.html -math_toolkit/bessel/bessel_first.html -math_toolkit/bessel/bessel_root.html -math_toolkit/bessel/mbessel.html -math_toolkit/bessel/sph_bessel.html -math_toolkit/bessel/bessel_derivatives.html -math_toolkit/hankel.html -math_toolkit/hankel/cyl_hankel.html -math_toolkit/hankel/sph_hankel.html -math_toolkit/airy.html -math_toolkit/airy/ai.html -math_toolkit/airy/bi.html -math_toolkit/airy/aip.html -math_toolkit/airy/bip.html -math_toolkit/airy/airy_root.html -math_toolkit/ellint.html -math_toolkit/ellint/ellint_intro.html -math_toolkit/ellint/ellint_carlson.html -math_toolkit/ellint/ellint_1.html -math_toolkit/ellint/ellint_2.html -math_toolkit/ellint/ellint_3.html -math_toolkit/ellint/ellint_d.html -math_toolkit/ellint/jacobi_zeta.html -math_toolkit/ellint/heuman_lambda.html -math_toolkit/jacobi.html -math_toolkit/jacobi/jac_over.html -math_toolkit/jacobi/jacobi_elliptic.html -math_toolkit/jacobi/jacobi_cd.html -math_toolkit/jacobi/jacobi_cn.html -math_toolkit/jacobi/jacobi_cs.html -math_toolkit/jacobi/jacobi_dc.html -math_toolkit/jacobi/jacobi_dn.html -math_toolkit/jacobi/jacobi_ds.html -math_toolkit/jacobi/jacobi_nc.html -math_toolkit/jacobi/jacobi_nd.html -math_toolkit/jacobi/jacobi_ns.html -math_toolkit/jacobi/jacobi_sc.html -math_toolkit/jacobi/jacobi_sd.html -math_toolkit/jacobi/jacobi_sn.html -math_toolkit/zetas.html -math_toolkit/zetas/zeta.html -math_toolkit/expint.html -math_toolkit/expint/expint_n.html -math_toolkit/expint/expint_i.html -math_toolkit/powers.html -math_toolkit/powers/sin_pi.html -math_toolkit/powers/cos_pi.html -math_toolkit/powers/log1p.html -math_toolkit/powers/expm1.html -math_toolkit/powers/cbrt.html -math_toolkit/powers/sqrt1pm1.html -math_toolkit/powers/powm1.html -math_toolkit/powers/hypot.html -math_toolkit/powers/ct_pow.html -math_toolkit/sinc.html -math_toolkit/sinc/sinc_overview.html -math_toolkit/sinc/sinc_pi.html -math_toolkit/sinc/sinhc_pi.html -math_toolkit/inv_hyper.html -math_toolkit/inv_hyper/inv_hyper_over.html -math_toolkit/inv_hyper/acosh.html -math_toolkit/inv_hyper/asinh.html -math_toolkit/inv_hyper/atanh.html -math_toolkit/owens_t.html -extern_c.html -math_toolkit/main_tr1.html -math_toolkit/c99.html -math_toolkit/tr1_ref.html -inverse_complex.html -math_toolkit/complex_implementation.html -math_toolkit/asin.html -math_toolkit/acos.html -math_toolkit/atan.html -math_toolkit/asinh.html -math_toolkit/acosh.html -math_toolkit/atanh.html -math_toolkit/complex_history.html -quaternions.html -math_toolkit/quat_overview.html -math_toolkit/quat_header.html -math_toolkit/quat_synopsis.html -math_toolkit/quat.html -math_toolkit/spec.html -math_toolkit/mem_typedef.html -math_toolkit/quat_mem_fun.html -math_toolkit/quat_non_mem.html -math_toolkit/value_op.html -math_toolkit/create.html -math_toolkit/trans.html -math_toolkit/quat_tests.html -math_toolkit/exp.html -math_toolkit/acknowledgement.html -math_toolkit/quat_history.html -math_toolkit/quat_todo.html -octonions.html -math_toolkit/oct_overview.html -math_toolkit/oct_header.html -math_toolkit/oct_synopsis.html -math_toolkit/octonion.html -math_toolkit/oct_specialization.html -math_toolkit/oct_typedefs.html -math_toolkit/oct_mem_fun.html -math_toolkit/oct_non_mem.html -math_toolkit/oct_value_ops.html -math_toolkit/oct_create.html -math_toolkit/oct_trans.html -math_toolkit/oct_tests.html -math_toolkit/acknowledgements.html -math_toolkit/oct_history.html -math_toolkit/oct_todo.html -gcd_lcm.html -math_toolkit/introduction.html -math_toolkit/synopsis.html -math_toolkit/gcd_function_object.html -math_toolkit/lcm_function_object.html -math_toolkit/run_time.html -math_toolkit/compile_time.html -math_toolkit/gcd_header.html -math_toolkit/demo.html -math_toolkit/rationale0.html -math_toolkit/gcd_history.html -math_toolkit/gcd_credits.html -rooting.html -math_toolkit/roots.html -math_toolkit/roots/roots_noderiv.html -math_toolkit/roots/roots_noderiv/bisect.html -math_toolkit/roots/roots_noderiv/bracket_solve.html -math_toolkit/roots/roots_noderiv/TOMS748.html -math_toolkit/roots/roots_noderiv/brent.html -math_toolkit/roots/roots_noderiv/root_termination.html -math_toolkit/roots/roots_noderiv/implementation.html -math_toolkit/roots/roots_deriv.html -math_toolkit/roots/root_finding_examples.html -math_toolkit/roots/root_finding_examples/cbrt_eg.html -math_toolkit/roots/root_finding_examples/lambda.html -math_toolkit/roots/root_finding_examples/5th_root_eg.html -math_toolkit/roots/root_finding_examples/multiprecision_root.html -math_toolkit/roots/root_finding_examples/nth_root.html -math_toolkit/roots/root_finding_examples/elliptic_eg.html -math_toolkit/roots/bad_guess.html -math_toolkit/roots/bad_roots.html -math_toolkit/roots/brent_minima.html -math_toolkit/roots/root_comparison.html -math_toolkit/roots/root_comparison/cbrt_comparison.html -math_toolkit/roots/root_comparison/root_n_comparison.html -math_toolkit/roots/root_comparison/elliptic_comparison.html -math_toolkit/roots/polynomials.html -math_toolkit/roots/rational.html -internals.html -math_toolkit/internals_overview.html -math_toolkit/internals.html -math_toolkit/internals/series_evaluation.html -math_toolkit/internals/cf.html -math_toolkit/internals/tuples.html -math_toolkit/internals/minimax.html -math_toolkit/internals/error_test.html -math_toolkit/internals/test_data.html -using_udt.html -math_toolkit/high_precision.html -math_toolkit/high_precision/why_high_precision.html -math_toolkit/high_precision/use_multiprecision.html -math_toolkit/high_precision/float128.html -math_toolkit/high_precision/use_mpfr.html -math_toolkit/high_precision/e_float.html -math_toolkit/high_precision/use_ntl.html -math_toolkit/high_precision/using_test.html -math_toolkit/real_concepts.html -math_toolkit/dist_concept.html -math_toolkit/archetypes.html -policy.html -math_toolkit/pol_overview.html -math_toolkit/pol_tutorial.html -math_toolkit/pol_tutorial/what_is_a_policy.html -math_toolkit/pol_tutorial/policy_tut_defaults.html -math_toolkit/pol_tutorial/policy_usage.html -math_toolkit/pol_tutorial/changing_policy_defaults.html -math_toolkit/pol_tutorial/ad_hoc_dist_policies.html -math_toolkit/pol_tutorial/ad_hoc_sf_policies.html -math_toolkit/pol_tutorial/namespace_policies.html -math_toolkit/pol_tutorial/user_def_err_pol.html -math_toolkit/pol_tutorial/understand_dis_quant.html -math_toolkit/pol_ref.html -math_toolkit/pol_ref/error_handling_policies.html -math_toolkit/pol_ref/internal_promotion.html -math_toolkit/pol_ref/assert_undefined.html -math_toolkit/pol_ref/discrete_quant_ref.html -math_toolkit/pol_ref/precision_pol.html -math_toolkit/pol_ref/iteration_pol.html -math_toolkit/pol_ref/policy_defaults.html -math_toolkit/pol_ref/namespace_pol.html -math_toolkit/pol_ref/pol_ref_ref.html -perf.html -math_toolkit/perf_over2.html -math_toolkit/interp.html -math_toolkit/getting_best.html -math_toolkit/tradoffs.html -math_toolkit/multiprecision.html -math_toolkit/tuning.html -math_toolkit/comp_compilers.html -math_toolkit/comparisons.html -math_toolkit/perf_test_app.html -backgrounders.html -math_toolkit/sf_implementation.html -math_toolkit/special_tut.html -math_toolkit/special_tut/special_tut_impl.html -math_toolkit/special_tut/special_tut_test.html -math_toolkit/relative_error.html -math_toolkit/lanczos.html -math_toolkit/remez.html -math_toolkit/refs.html -math_toolkit/logs_and_tables.html -math_toolkit/logs_and_tables/all_table.html -math_toolkit/logs_and_tables/logs.html -status.html -math_toolkit/history2.html -math_toolkit/issues.html -math_toolkit/credits.html -indexes.html -indexes/s01.html -indexes/s02.html -indexes/s03.html -indexes/s04.html -indexes/s05.html diff --git a/boost/libs/math/doc/html/status.html b/boost/libs/math/doc/html/status.html deleted file mode 100644 index 3adfb830..00000000 --- a/boost/libs/math/doc/html/status.html +++ /dev/null @@ -1,53 +0,0 @@ - - - -Chapter 18. Library Status - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
-

-Chapter 18. Library Status

- -
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/using_udt.html b/boost/libs/math/doc/html/using_udt.html deleted file mode 100644 index 135c34fb..00000000 --- a/boost/libs/math/doc/html/using_udt.html +++ /dev/null @@ -1,73 +0,0 @@ - - - -Chapter 14. Use with User-Defined Floating-Point Types - Boost.Multiprecision and others - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/utils.html b/boost/libs/math/doc/html/utils.html deleted file mode 100644 index bf7a911e..00000000 --- a/boost/libs/math/doc/html/utils.html +++ /dev/null @@ -1,87 +0,0 @@ - - - -Chapter 2. Floating Point Utilities - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
- - - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html4_symbols.qbk b/boost/libs/math/doc/html4_symbols.qbk deleted file mode 100644 index 1b329410..00000000 --- a/boost/libs/math/doc/html4_symbols.qbk +++ /dev/null @@ -1,226 +0,0 @@ -[/ Symbols and Greek letters (about 120) from HTML4.] -[/ File HTML4_symbols.qbk] -[/ See http://www.htmlhelp.com/reference/html40/entities/symbols.html] -[/ See also http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references] -[/ http://www.alanwood.net/demos/ent4_frame.html] -[/ http://www.unicode.org/charts/PDF/U2200.pdf and others] -[/ All (except 2 angle brackets) show OK on Firefox 2.0 and higher] - -[/ See also Latin-1 aka Western (ISO-8859-1) in latin1_symbols.qbk] -[/ http://www.htmlhelp.com/reference/html40/entities/latin1.html] -[/Unicode Latin extended http://www.unicode.org/charts/U0080.pdf] - -[/ Also some miscellaneous math characters added to this list - see the end.] -[/ For others see also math_toolkit.symbols.qbk] - -[/ To use, enclose the template name in square brackets, for example: [pi]] - -[template fnof[]'''ƒ'''] [/ ƒ Latin small f with hook = function = florin] -[/ Capital Greek start with capital letter, lower case all small.] -[template Alpha[]'''Α'''] [/ ? Greek capital letter alpha] -[template Beta[]'''Β'''] [/ ? Greek capital letter beta] -[template Gamma[]'''Γ'''] [/ G Greek capital letter gamma] -[template Delta[]'''Δ'''] [/ ? Greek capital letter delta] -[template Epsilon[]'''Ε'''] [/ ? Greek capital letter epsilon] -[template Zeta[]'''Ζ'''] [/ ? Greek capital letter zeta] -[template Eta[]'''Η'''] [/ ? Greek capital letter eta] -[template Theta[]'''Θ'''] [/ T Greek capital letter theta] -[template Iota[]'''Ι'''] [/ ? Greek capital letter iota] -[template Kappa[]'''Κ'''] [/ ? Greek capital letter kappa] -[template Lambda[]'''Λ'''] [/ ? Greek capital letter lambda] -[template Mu[]'''Μ'''] [/ ? Greek capital letter mu] -[template Nu[]'''Ν'''] [/ ? Greek capital letter nu] -[template Xi[]'''Ξ'''] [/ ? Greek capital letter xi] -[template Omicron[]'''Ο'''] [/ ? Greek capital letter omicron] -[template Pi[]'''Π'''] [/ ? Greek capital letter pi] -[template Rho[]'''Ρ'''] [/ ? Greek capital letter rho] -[template Sigma[]'''Σ'''] [/ S Greek capital letter sigma] -[template Tau[]'''Τ'''] [/ ? Greek capital letter tau] -[template Upsilon[]'''Υ'''] [/ ? Greek capital letter upsilon] -[template Phi[]'''Φ'''] [/ F Greek capital letter phi] -[template Chi[]'''Χ'''] [/ ? Greek capital letter chi] -[template Psi[]'''Ψ'''] [/ ? Greek capital letter psi] -[template Omega[]'''Ω'''] [/ O Greek capital letter omega] -[template alpha[]'''α'''] [/ a Greek small letter alpha] -[template beta[]'''β'''] [/ ß Greek small letter beta] -[template gamma[]'''γ'''] [/ ? Greek small letter gamma] -[template delta[]'''δ'''] [/ d Greek small letter delta] -[template epsilon[]'''ε'''] [/ e Greek small letter epsilon] -[template zeta[]'''ζ'''] [/ ? Greek small letter zeta] -[template eta[]'''η'''] [/ ? Greek small letter eta] -[template theta[]'''θ'''] [/ ? Greek small letter theta] -[template iota[]'''ι'''] [/ ? Greek small letter iota] -[template kappa[]'''κ'''] [/ ? Greek small letter kappa] -[template lambda[]'''λ'''] [/ ? Greek small letter lambda] -[template mu[]'''μ'''] [/ µ Greek small letter mu] -[template nu[]'''ν'''] [/ ? Greek small letter nu] -[template xi[]'''ξ'''] [/ ? Greek small letter xi] -[template omicron[]'''ο'''] [/ ? Greek small letter omicron] -[template pi[]'''π'''] [/ p Greek small letter pi] -[template rho[]'''ρ'''] [/ ? Greek small letter rho] -[template sigmaf[]'''ς'''] [/ ? Greek small letter final sigma] -[template sigma[]'''σ'''] [/ s Greek small letter sigma] -[template tau[]'''τ'''] [/ t Greek small letter tau] -[template upsilon[]'''υ'''] [/ ? Greek small letter upsilon] -[template phi[]'''φ'''] [/ f Greek small letter phi] -[template chi[]'''χ'''] [/ ? Greek small letter chi] -[template psi[]'''ψ'''] [/ ? Greek small letter psi] -[template omega[]'''ω'''] [/ ? Greek small letter omega] -[template thetasym[]'''ϑ'''] [/ ? Greek small letter theta symbol] -[template upsih[]'''ϒ'''] [/ ? Greek upsilon with hook symbol] -[template piv[]'''ϖ'''] [/ ? Greek pi symbol] - -[template bull[]'''•'''] [/ • bullet = black small circle] -[template hellip[]'''…'''] [/ … horizontal ellipsis = three dot leader] -[template prime[]'''′'''] [/ ' prime = minutes = feet] -[template Prime[]'''″'''] [/ ? double prime = seconds = inches] -[template oline[]'''‾'''] [/ ? overline = spacing overscore] -[template frasl[]'''⁄'''] [/ / fraction slash] -[template weierp[]'''℘'''] [/ P script capital P = power set = Weierstrass p] -[template image[]'''ℑ'''] [/ I blackletter capital I = imaginary part] -[template real[]'''ℜ'''] [/ R blackletter capital R = real part math symbol] -[template bigo[]'''𝑶'''] [/ O blackletter capital O = big O symbol] -[template negative[]'''ℕ'''] [/ N blackletter capital N = Negative number math symbol] -[template trade[]'''™'''] [/ ™ trade mark sign] -[template alefsym[]'''ℵ'''] [/ ? alef symbol = first transfinite cardinal] -[template larr[]'''←'''] [/ ? leftwards arrow] -[template uarr[]'''↑'''] [/ ? upwards arrow] -[template rarr[]'''→'''] [/ ? rightwards arrow] -[template darr[]'''↓'''] [/ ? downwards arrow] -[template harr[]'''↔'''] [/ ? left right arrow] -[template crarr[]'''↵'''] [/ ? downwards arrow with corner leftwards = CR] -[template lArr[]'''⇐'''] [/ ? leftwards double arrow] -[template uArr[]'''⇑'''] [/ ? upwards double arrow] -[template rArr[]'''⇒'''] [/ ? rightwards double arrow] -[template dArr[]'''⇓'''] [/ ? downwards double arrow] -[template hArr[]'''⇔'''] [/ ? left right double arrow] -[template forall[]'''∀'''] [/ ? for all] -[template part[]'''∂'''] [/ ? partial differential] -[template exist[]'''∃'''] [/ ? there exists] -[template empty[]'''∅'''] [/ Ø empty set = null set = diameter] -[template nabla[]'''∇'''] [/ ? nabla = backward difference] -[template isin[]'''∈'''] [/ ? element of] -[template notin[]'''∉'''] [/ ? not an element of] -[template ni[]'''∋'''] [/ ? contains as member] -[template prod[]'''∏'''] [/ ? n-ary product = product sign] -[template sum[]'''∑'''] [/ ? n-ary sumation] -[template minus[]'''−'''] [/ - minus sign] -[template lowast[]'''∗'''] [/ * asterisk operator] -[template radic[]'''√'''] [/ v square root = radical sign] -[template prop[]'''∝'''] [/ ? proportional to] -[template infin[]'''∞'''] [/ 8 infinity] -[template ang[]'''∠'''] [/ ? angle] -[template and[]'''∧'''] [/ ? logical and = wedge] -[template or[]'''∨'''] [/ ? logical or = vee] -[template cap[]'''∩'''] [/ n intersection = cap] -[template cup[]'''∪'''] [/ ? union = cup] -[template int[]'''∫'''] [/ ? integral] -[template there4[]'''∴'''] [/ ? therefore] -[template sim[]'''∼'''] [/ ~ tilde operator = varies with = similar to] -[template cong[]'''≅'''] [/ ? approximately equal to] -[template approx[]'''≈'''] [/ ? ~~ very approximately equal to] -[template asymp[]'''≈'''] [/ ˜ almost equal to = asymptotic to] -[template ne[]'''≠'''] [/ ? not equal to] -[template equiv[]'''≡'''] [/ = identical to] -[template le[]'''≤'''] [/ = less-than or equal to] -[template ge[]'''≥'''] [/ = greater-than or equal to] -[template subset[]'''⊂'''] [/ ? subset of] -[template superset[]'''⊃'''] [/ ? superset of] -[template nsubset[]'''⊄'''] [/ ? not a subset of] -[template sube[]'''⊆'''] [/ ? subset of or equal to] -[template supe[]'''⊇'''] [/ ? superset of or equal to] -[template oplus[]'''⊕'''] [/ ? circled plus = direct sum] -[template otimes[]'''⊗'''] [/ ? circled times = vector product] -[template perp[]'''⊥'''] [/ ? up tack = orthogonal to = perpendicular] -[template sdot[]'''⋅'''] [/ · dot operator] -[template lceil[]'''⌈'''] [/ ? left ceiling = APL upstile] -[template rceil[]'''⌉'''] [/ ? right ceiling] -[template lfloor[]'''⌊'''] [/ ? left floor = APL downstile] -[template rfloor[]'''⌋'''] [/ ? right floor] -[template lang[]'''〈'''] [/ < left-pointing angle bracket = bra (Firefox shows ?)] -[template rang[]'''〉'''] [/ > right-pointing angle bracket = ket (Firefox shows ?)] -[template loz[]'''◊'''] [/ ? lozenge] -[template spades[]'''♠'''] [/ ? black spade suit] -[template clubs[]'''♣'''] [/ ? black club suit = shamrock] -[template hearts[]'''♥'''] [/ ? black heart suit = valentine] -[template diams[]'''♦'''] [/ ? black diamond suit] -[template euro[]'''€'''] [/ ? Euro currency symbol] -[template lchev[]'''⟨'''] [/ ? left chevron] -[template rchev[]'''⟩'''] [/ right chevron] -[template rflat[]'''⟮'''] [/ right flat bracket Misc Math Symbol A] -[template lflat[]'''⟮'''] [/ left flat bracket] -[/ U2000.pdf punctuation] -[template endash[]'''–'''] [/ em width dash] -[template emdash[]'''—'''] [/ en width dash] -[template hbar[]'''―'''] [/ ? horizontal bar - introducing quoted text] -[template vert2bar[]'''‖'''] [/ ? double vertical bar] -[template line2[]'''‖'''] [/ ? double low line bar] -[template dagger[]'''†'''] [/ ? dagger] -[template dagger2[]'''‡'''] [/ ? double dagger] -[template dot[]'''․'''] [/ dot leader] -[template dot2[]'''‥'''] [/ ? dots leader] -[template ellipsis[]'''…'''] [/ horizontal ellipsis] -[template sect[]'''§'''] [/ ? section or paragraph sign] - -[template dotover[]'''̇'''] [/ dot over symbol] -[template recur[]''' ̇'''] [/ math recurring symbol, eg after 0.333] -[/ Note use of a thin space before digit, so that dot isn't placed directly over the digit.] -[/ Use:1[recur]] - -[/ Other symbols, not in the HTML4 list:] -[template enquad[] ''' '''] [/ en quad space] -[template emquad[] ''' '''] [/ em quad space] -[template enspace[] ''' '''] [/ em half en space] -[template emspace[] ''' '''] [/ em space type size in points] -[template thickspace[] ''' '''] [/ 3 per em space] -[template midspace[] ''' '''] [/ 4 per em space] -[template sixemspace[] ''' '''] [/ 6 em space] -[template figspace[] ''' '''] [/ space = width fixed font digit] -[template punctspace[] ''' '''] [/ space = width punctuation] -[template thin[] ''' '''] [/ thin space ] -[template hair[] ''' '''] [/ hair space] -[template nbsp[] ''' '''] [/ non-breaking space] -[template space[] ''' '''] [/ plain non-breaking space] - -[template nospace[] '''​'''] [/ zero width space] -[template wordjoin[] '''⁠'''] [/ word joiner - no line break either side] -[template narrownbsp[] ''' '''] [/ narrow non-breaking space] -[template hyphen[] '''‐'''] [/ soft hyphen] -[template nbhyphen[] '''‑'''] [/ non-breaking hyphen] - -[template plusminus[]'''±'''] [/ ? plus or minus sign] -[template sqrt[]'''√'''] [/ ? square root sqrt symbol] -[/template pow2[]'''⁳'''] [/ 2073 is NOT superscript 2 and 3 characters] -[template pow2[]'''²'''] [/ superscript 2 character] -[template pow3[]'''³'''] [/ superscript 3 character] -[/ Unicode 2070 to 209F has super and subscript digits and characters, unicode.org/charts/PDF/U2070.pdf] -[template pow4[]'''⁴'''] [/ superscript 4 character] -[template pown[]'''ⁿ'''] [/ superscript n character] -[template frac12[]'''½'''] [/ fraction half] -[template frac13[]'''⅓'''] [/ fraction third] -[template frac14[]'''¼'''] [/ fraction quarter] -[template frac34[]'''¾'''] [/ fraction three quarter] -[template frac23[]'''⅔'''] [/ fraction two third] -[template sup1[]'''¹'''] [/ superscript one = superscript digit one ] -[template sup2[]'''²'''] [/ superscript two = superscript digit two = squared ] -[template supminus[]'''⁻'''] [/ superscript minus] -[template supplus[]'''⁺'''] [/ superscript plus] - -[template cubed[]'''³'''] [/ superscript three = superscript digit three = cubed ] -[template macron[]'''¯'''] [/ macron = spacing macron = overline = APL overbar ] -[template deg[]'''°'''] [/ degree sign ] -[template plusmn[]'''±'''] [/ plus-minus sign = plus-or-minus sign ] -[template micro[]'''µ'''] [/ micro sign ] -[template cedil[]'''¸'''] [/ cedilla = spacing cedilla ] -[template ordm[]'''º'''] [/ masculine ordinal indicator ] -[template ordf[]'''ª'''] [/ feminine ordinal indicator ] -[template laquo[]'''«'''] [/ left-pointing double angle quotation mark = left pointing guillemet ] -[template raquo[]'''»'''] [/ right-pointing double angle quotation mark = right pointing guillemet ] - -[/ -Copyright 2007, 2010, 2012 Paul A. Bristow. -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). -] - diff --git a/boost/libs/math/doc/images/acos.png b/boost/libs/math/doc/images/acos.png deleted file mode 100644 index 74efed3f..00000000 Binary files a/boost/libs/math/doc/images/acos.png and /dev/null differ diff --git a/boost/libs/math/doc/images/acosh.png b/boost/libs/math/doc/images/acosh.png deleted file mode 100644 index b1defd60..00000000 Binary files a/boost/libs/math/doc/images/acosh.png and /dev/null differ diff --git a/boost/libs/math/doc/images/asin.png b/boost/libs/math/doc/images/asin.png deleted file mode 100644 index 86223fb5..00000000 Binary files a/boost/libs/math/doc/images/asin.png and /dev/null differ diff --git a/boost/libs/math/doc/images/asinh.png b/boost/libs/math/doc/images/asinh.png deleted file mode 100644 index 15e39417..00000000 Binary files a/boost/libs/math/doc/images/asinh.png and /dev/null differ diff --git a/boost/libs/math/doc/images/atan.png b/boost/libs/math/doc/images/atan.png deleted file mode 100644 index ff0593ff..00000000 Binary files a/boost/libs/math/doc/images/atan.png and /dev/null differ diff --git a/boost/libs/math/doc/images/atanh.png b/boost/libs/math/doc/images/atanh.png deleted file mode 100644 index 119f7970..00000000 Binary files a/boost/libs/math/doc/images/atanh.png and /dev/null differ diff --git a/boost/libs/math/doc/images/hypot.png b/boost/libs/math/doc/images/hypot.png deleted file mode 100644 index fa88d6b2..00000000 Binary files a/boost/libs/math/doc/images/hypot.png and /dev/null differ diff --git a/boost/libs/math/doc/images/hypot2.png b/boost/libs/math/doc/images/hypot2.png deleted file mode 100644 index 6413c966..00000000 Binary files a/boost/libs/math/doc/images/hypot2.png and /dev/null differ diff --git a/boost/libs/math/doc/index.html b/boost/libs/math/doc/index.html deleted file mode 100644 index e9ea2609..00000000 --- a/boost/libs/math/doc/index.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - Automatic redirection failed, please go to - html/index.html -

Copyright Daryle Walker, Hubert Holin and John Maddock 2013

-

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

- - - - - - - - diff --git a/boost/libs/math/doc/index.idx b/boost/libs/math/doc/index.idx deleted file mode 100644 index d5585ae7..00000000 --- a/boost/libs/math/doc/index.idx +++ /dev/null @@ -1,56 +0,0 @@ -# Boost.Math Indexing terms file. -# Copyright John Maddock 2009 - 2012 -# Copyright Paul A. Bristow 2009 - 2012 - -"Lanczos approximation" lanczos - -closed form \ - -expression \ - -constants \ - -!scan-path boost/math .*\.hpp true - -!exclude policy precision apply evaluation polynomial name helper -!exclude true_type false_type polynomial type d reference terminate -!exclude arg1 arg2 charT const_iterator const_reference container_type -!exclude result_type difference_type dummy iterator max_value result_type -!exclude row_type size_type tag traits -!exclude a abs acos add asin atan atan2 b begin bracket ceil check clear -!exclude cos cosh digits end exp fabs floor fmod frexp g if in log log10 -!exclude modf pow real result sin sinh sqrt swap tan tanh s f z -!exclude accuracy -# -# These next two are spuriously found as function names, take them out -# and re-add them as macros: -# -!exclude BOOST_MATH_INSTRUMENT_CODE BOOST_MATH_INSTRUMENT_VARIABLE -BOOST_MATH_INSTRUMENT_VARIABLE "" "" macro_name -BOOST_MATH_INSTRUMENT_CODE "" "" macro_name - -accuracy - -performance - -GSL - -Rmath - -Cephes - -DCDFLIB - - -!rewrite-name "(?i)(?:A|The)\s+(.*)" "\1" -!rewrite-name "Additional Implementation Notes" "Implementation Notes" -!rewrite-name "(?i)Calculating(?:\s+the)?\s+(.*)" "\1" -!rewrite-id math_toolkit\.dist\.stat_tut\.weg.* Examples - - - - - - - - diff --git a/boost/libs/math/doc/internals/fraction.qbk b/boost/libs/math/doc/internals/fraction.qbk deleted file mode 100644 index cff8bc16..00000000 --- a/boost/libs/math/doc/internals/fraction.qbk +++ /dev/null @@ -1,177 +0,0 @@ -[section:cf Continued Fraction Evaluation] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ namespace tools{ - - template - typename detail::fraction_traits::result_type - continued_fraction_b(Gen& g, const U& tolerance, boost::uintmax_t& max_terms) - - template - typename detail::fraction_traits::result_type - continued_fraction_b(Gen& g, const U& tolerance) - - template - typename detail::fraction_traits::result_type - continued_fraction_a(Gen& g, const U& tolerance, boost::uintmax_t& max_terms) - - template - typename detail::fraction_traits::result_type - continued_fraction_a(Gen& g, const U& tolerance) - - // - // These interfaces are present for legacy reasons, and are now deprecated: - // - template - typename detail::fraction_traits::result_type - continued_fraction_b(Gen& g, int bits); - - template - typename detail::fraction_traits::result_type - continued_fraction_b(Gen& g, int bits, boost::uintmax_t& max_terms); - - template - typename detail::fraction_traits::result_type - continued_fraction_a(Gen& g, int bits); - - template - typename detail::fraction_traits::result_type - continued_fraction_a(Gen& g, int bits, boost::uintmax_t& max_terms); - - }}} // namespaces - -[h4 Description] - -[@http://en.wikipedia.org/wiki/Continued_fraction Continued fractions are a common method of approximation. ] -These functions all evaluate the continued fraction described by the /generator/ -type argument. The functions with an "_a" suffix evaluate the fraction: - -[equation fraction2] - -and those with a "_b" suffix evaluate the fraction: - -[equation fraction1] - -This latter form is somewhat more natural in that it corresponds with the usual -definition of a continued fraction, but note that the first /a/ value returned by -the generator is discarded. Further, often the first /a/ and /b/ values in a -continued fraction have different defining equations to the remaining terms, which -may make the "_a" suffixed form more appropriate. - -The generator type should be a function object which supports the following -operations: - -[table -[[Expression] [Description]] -[[Gen::result_type] [The type that is the result of invoking operator(). - This can be either an arithmetic type, or a std::pair<> of arithmetic types.]] -[[g()] [Returns an object of type Gen::result_type. - -Each time this operator is called then the next pair of /a/ and /b/ - values is returned. Or, if result_type is an arithmetic type, - then the next /b/ value is returned and all the /a/ values - are assumed to 1.]] -] - -In all the continued fraction evaluation functions the /tolerance/ parameter is the -precision desired in the result, evaluation of the fraction will -continue until the last term evaluated leaves the relative error in the result -less than /tolerance/. The deprecated interfaces take a number of digits precision -here, internally they just convert this to a tolerance and forward call. - -If the optional /max_terms/ parameter is specified then no more than /max_terms/ -calls to the generator will be made, and on output, -/max_terms/ will be set to actual number of -calls made. This facility is particularly useful when profiling a continued -fraction for convergence. - -[h4 Implementation] - -Internally these algorithms all use the modified Lentz algorithm: refer to -Numeric Recipes in C++, W. H. Press et all, chapter 5, -(especially 5.2 Evaluation of continued fractions, p 175 - 179) -for more information, also -Lentz, W.J. 1976, Applied Optics, vol. 15, pp. 668-671. - -[h4 Examples] - -The [@http://en.wikipedia.org/wiki/Golden_ratio golden ratio phi = 1.618033989...] -can be computed from the simplest continued fraction of all: - -[equation fraction3] - -We begin by defining a generator function: - - template - struct golden_ratio_fraction - { - typedef T result_type; - - result_type operator() - { - return 1; - } - }; - -The golden ratio can then be computed to double precision using: - - continued_fraction_a( - golden_ratio_fraction(), - std::numeric_limits::epsilon()); - -It's more usual though to have to define both the /a/'s and the /b/'s -when evaluating special functions by continued fractions, for example -the tan function is defined by: - -[equation fraction4] - -So its generator object would look like: - - template - struct tan_fraction - { - private: - T a, b; - public: - tan_fraction(T v) - : a(-v*v), b(-1) - {} - - typedef std::pair result_type; - - std::pair operator()() - { - b += 2; - return std::make_pair(a, b); - } - }; - -Notice that if the continuant is subtracted from the /b/ terms, -as is the case here, then all the /a/ terms returned by the generator -will be negative. The tangent function can now be evaluated using: - - template - T tan(T a) - { - tan_fraction fract(a); - return a / continued_fraction_b(fract, std::numeric_limits::epsilon()); - } - -Notice that this time we're using the "_b" suffixed version to evaluate -the fraction: we're removing the leading /a/ term during fraction evaluation -as it's different from all the others. - -[endsect][/section:cf Continued Fraction Evaluation] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/internals/internals_overview.qbk b/boost/libs/math/doc/internals/internals_overview.qbk deleted file mode 100644 index b0327f62..00000000 --- a/boost/libs/math/doc/internals/internals_overview.qbk +++ /dev/null @@ -1,22 +0,0 @@ -[section:internals_overview Overview] - -This section contains internal utilities used by the library's implementation -along with tools used in development and testing. These tools have -limitied documentation, but now have quite stable interfaces -and may also be useful outside Boost.Math. - -There is no doubt that these components can be improved, but they are also -largely incidental to the main purpose of this library. - -These tools are designed to "just get the job done", and receive minimal -documentation here, in the hopes that they will help stimulate further -submissions to this library. - -[endsect] [/section:internals_overview Overview] - -[/ - Copyright 2006, 2010, 2013, 2014 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/internals/minimax.qbk b/boost/libs/math/doc/internals/minimax.qbk deleted file mode 100644 index 61a14f43..00000000 --- a/boost/libs/math/doc/internals/minimax.qbk +++ /dev/null @@ -1,167 +0,0 @@ -[section:minimax Minimax Approximations and the Remez Algorithm] - -The directory libs/math/minimax contains a command line driven -program for the generation of minimax approximations using the Remez -algorithm. Both polynomial and rational approximations are supported, -although the latter are tricky to converge: it is not uncommon for -convergence of rational forms to fail. No such limitations are present -for polynomial approximations which should always converge smoothly. - -It's worth stressing that developing rational approximations to functions -is often not an easy task, and one to which many books have been devoted. -To use this tool, you will need to have a reasonable grasp of what the Remez -algorithm is, and the general form of the approximation you want to achieve. - -Unless you already familar with the Remez method, -you should first read the [link math_toolkit.remez -brief background article explaining the principles behind the -Remez algorithm]. - -The program consists of two parts: - -[variablelist -[[main.cpp][Contains the command line parser, and all the calls to the Remez code.]] -[[f.cpp][Contains the function to approximate.]] -] - -Therefore to use this tool, you must modify f.cpp to return the function to -approximate. The tools supports multiple function approximations within -the same compiled program: each as a separate variant: - - NTL::RR f(const NTL::RR& x, int variant); - -Returns the value of the function /variant/ at point /x/. So if you -wish you can just add the function to approximate as a new variant -after the existing examples. - -In addition to those two files, the program needs to be linked to -a [link math_toolkit.high_precision.use_ntl patched NTL library to compile]. - -Note that the function /f/ must return the rational part of the -approximation: for example if you are approximating a function -/f(x)/ then it is quite common to use: - - f(x) = g(x)(Y + R(x)) - -where /g(x)/ is the dominant part of /f(x)/, /Y/ is some constant, and -/R(x)/ is the rational approximation part, usually optimised for a low -absolute error compared to |Y|. - -In this case you would define /f/ to return ['f(x)/g(x)] and then set the -y-offset of the approximation to /Y/ (see command line options below). - -Many other forms are possible, but in all cases the objective is to -split /f(x)/ into a dominant part that you can evaluate easily using -standard math functions, and a smooth and slowly changing rational approximation -part. Refer to your favourite textbook for more examples. - -Command line options for the program are as follows: - -[variablelist -[[variant N][Sets the current function variant to N. This allows multiple functions - that are to be approximated to be compiled into the same executable. - Defaults to 0.]] -[[range a b][Sets the domain for the approximation to the range \[a,b\], defaults - to \[0,1\].]] -[[relative][Sets the Remez code to optimise for relative error. This is the default - at program startup. Note that relative error can only be used - if f(x) has no roots over the range being optimised.]] -[[absolute][Sets the Remez code to optimise for absolute error.]] -[[pin \[true|false\]]["Pins" the code so that the rational approximation - passes through the origin. Obviously only set this to - /true/ if R(0) must be zero. This is typically used when - trying to preserve a root at \[0,0\] while also optimising - for relative error.]] -[[order N D][Sets the order of the approximation to /N/ in the numerator and /D/ - in the denominator. If /D/ is zero then the result will be a polynomial - approximation. There will be N+D+2 coefficients in total, the first - coefficient of the numerator is zero if /pin/ was set to true, and the - first coefficient of the denominator is always one.]] -[[working-precision N][Sets the working precision of NTL::RR to /N/ binary digits. Defaults to 250.]] -[[target-precision N][Sets the precision of printed output to /N/ binary digits: - set to the same number of digits as the type that will be used to - evaluate the approximation. Defaults to 53 (for double precision).]] -[[skew val]["Skews" the initial interpolated control points towards one - end or the other of the range. Positive values skew the - initial control points towards the left hand side of the - range, and negative values towards the right hand side. - If an approximation won't converge (a common situation) - try adjusting the skew parameter until the first step yields - the smallest possible error. /val/ should be in the range - \[-100,+100\], the default is zero.]] -[[brake val][Sets a brake on each step so that the change in the - control points is braked by /val%/. Defaults to 50, - try a higher value if an approximation won't converge, - or a lower value to get speedier convergence.]] -[[x-offset val][Sets the x-offset to /val/: the approximation will - be generated for `f(S * (x + X)) + Y` where /X/ is the - x-offset, /S/ is the x-scale - and /Y/ is the y-offset. Defaults to zero. To avoid - rounding errors, take care to specify a value that can - be exactly represented as a floating point number.]] -[[x-scale val][Sets the x-scale to /val/: the approximation will - be generated for `f(S * (x + X)) + Y` where /S/ is the - x-scale, /X/ is the x-offset - and /Y/ is the y-offset. Defaults to one. To avoid - rounding errors, take care to specify a value that can - be exactly represented as a floating point number.]] -[[y-offset val][Sets the y-offset to /val/: the approximation will - be generated for `f(S * (x + X)) + Y` where /X/ - is the x-offset, /S/ is the x-scale - and /Y/ is the y-offset. Defaults to zero. To avoid - rounding errors, take care to specify a value that can - be exactly represented as a floating point number.]] -[[y-offset auto][Sets the y-offset to the average value of f(x) - evaluated at the two endpoints of the range plus the midpoint - of the range. The calculated value is deliberately truncated - to /float/ precision (and should be stored as a /float/ - in your code). The approximation will - be generated for `f(x + X) + Y` where /X/ is the x-offset - and /Y/ is the y-offset. Defaults to zero.]] -[[graph N][Prints N evaluations of f(x) at evenly spaced points over the - range being optimised. If unspecified then /N/ defaults - to 3. Use to check that f(x) is indeed smooth over the range - of interest.]] -[[step N][Performs /N/ steps, or one step if /N/ is unspecified. - After each step prints: the peek error at the extrema of - the error function of the approximation, - the theoretical error term solved for on the last step, - and the maximum relative change in the location of the - Chebyshev control points. The approximation is converged on the - minimax solution when the two error terms are (approximately) - equal, and the change in the control points has decreased to - a suitably small value.]] -[[test \[float|double|long\]][Tests the current approximation at float, - double, or long double precision. Useful to check for rounding - errors in evaluating the approximation at fixed precision. - Tests are conducted at the extrema of the error function of the - approximation, and at the zeros of the error function.]] -[[test \[float|double|long\] N] [Tests the current approximation at float, - double, or long double precision. Useful to check for rounding - errors in evaluating the approximation at fixed precision. - Tests are conducted at N evenly spaced points over the range - of the approximation. If none of \[float|double|long\] are specified - then tests using NTL::RR, this can be used to obtain the error - function of the approximation.]] -[[rescale a b][Takes the current Chebeshev control points, and rescales them - over a new interval \[a,b\]. Sometimes this can be used to obtain - starting control points for an approximation that can not otherwise be - converged.]] -[[rotate][Moves one term from the numerator to the denominator, but keeps the - Chebyshev control points the same. Sometimes this can be used to obtain - starting control points for an approximation that can not otherwise be - converged.]] -[[info][Prints out the current approximation: the location of the zeros of the - error function, the location of the Chebyshev control points, the - x and y offsets, and of course the coefficients of the polynomials.]] -] - - -[endsect][/section:minimax Minimax Approximations and the Remez Algorithm] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/internals/polynomial.qbk b/boost/libs/math/doc/internals/polynomial.qbk deleted file mode 100644 index 3888d542..00000000 --- a/boost/libs/math/doc/internals/polynomial.qbk +++ /dev/null @@ -1,179 +0,0 @@ -[section:polynomials Polynomials] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost { namespace math { - namespace tools { - - template - class polynomial - { - public: - // typedefs: - typedef typename std::vector::value_type value_type; - typedef typename std::vector::size_type size_type; - - // construct: - polynomial(){} - template - polynomial(const U* data, unsigned order); - template - polynomial(I first, I last); - template - explicit polynomial(const U& point); - polynomial(std::initializer_list l); // C++11 - - // access: - size_type size()const; - size_type degree()const; - value_type& operator[](size_type i); - const value_type& operator[](size_type i)const; - std::vector const& data() const; - std::vector& data(); - explicit operator bool() const; - - // modify: - void set_zero(); - - // operators: - template - polynomial& operator +=(const U& value); - template - polynomial& operator -=(const U& value); - template - polynomial& operator *=(const U& value); - template - polynomial& operator /=(const U& value); - template - polynomial& operator %=(const U& value); - template - polynomial& operator +=(const polynomial& value); - template - polynomial& operator -=(const polynomial& value); - template - polynomial& operator *=(const polynomial& value); - template - polynomial& operator /=(const polynomial& value); - template - polynomial& operator %=(const polynomial& value); - }; - - template - polynomial operator + (const polynomial& a, const polynomial& b); - template - polynomial operator - (const polynomial& a, const polynomial& b); - template - polynomial operator * (const polynomial& a, const polynomial& b); - template - polynomial operator / (const polynomial& a, const polynomial& b); - template - polynomial operator % (const polynomial& a, const polynomial& b); - - template - polynomial operator + (const polynomial& a, const U& b); - template - polynomial operator - (const polynomial& a, const U& b); - template - polynomial operator * (const polynomial& a, const U& b); - template - polynomial operator / (const polynomial& a, const U& b); - template - polynomial operator % (const polynomial& a, const U& b); - - template - polynomial operator + (const U& a, const polynomial& b); - template - polynomial operator - (const U& a, const polynomial& b); - template - polynomial operator * (const U& a, const polynomial& b); - - template - polynomial operator - (const polynomial& a); - - template - polynomial operator >>= (const U& a); - template - polynomial operator >> (polynomial const &a, const U& b); - template - polynomial operator <<= (const U& a); - template - polynomial operator << (polynomial const &a, const U& b); - - template - bool operator == (const polynomial &a, const polynomial &b); - template - bool operator != (const polynomial &a, const polynomial &b); - - template - polynomial pow(polynomial base, int exp); - - template - std::basic_ostream& operator << - (std::basic_ostream& os, const polynomial& poly); - - template - std::pair< polynomial, polynomial > - quotient_remainder(const polynomial& a, const polynomial& b); - - } // namespace tools - }} // namespace boost { namespace math - -[h4 Description] - -This is a somewhat trivial class for polynomial manipulation. - -See - -* [@https://en.wikipedia.org/wiki/Polynomial Polynomial] and -* Donald E. Knuth, The Art of Computer Programming: Volume 2, Third edition, (1998) -Chapter 4.6.1, Algorithm D: Division of polynomials over a field. - -Implementation is currently of the "naive" variety, with [bigo](N[super 2]) -multiplication, for example. This class should not be used in -high-performance computing environments: it is intended for the -simple manipulation of small polynomials, typically generated -for special function approximation. - -It does has division for polynomials over a [@https://en.wikipedia.org/wiki/Field_%28mathematics%29 field] -(here floating point, complex, etc) -and over a unique factorization domain (integers). -Division of polynomials over a field is compatible with -[@https://en.wikipedia.org/wiki/Euclidean_algorithm Euclidean GCD]. - -Advanced manipulations: the FFT, factorisation etc are -not currently provided. Submissions for these are of course welcome :-) - -[h4:polynomial_examples Polynomial Arithmetic Examples] - -[import ../../example/polynomial_arithmetic.cpp] - -[polynomial_arithmetic_0] -[polynomial_arithmetic_1] - -[polynomial_arithmetic_2] -for output: -[polynomial_output_1] - -[polynomial_arithmetic_3] -for output -[polynomial_output_2] - -[h5 Division, Quotient and Remainder] -[polynomial_arithmetic_4] - -The source code is at [@../../example/polynomial_arithmetic.cpp polynomial_arithmetic.cpp] - -[endsect] [/section:polynomials Polynomials] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - Copyright 2015 Jeremy William Murphy. - - 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). -] diff --git a/boost/libs/math/doc/internals/rational.qbk b/boost/libs/math/doc/internals/rational.qbk deleted file mode 100644 index 2ba83726..00000000 --- a/boost/libs/math/doc/internals/rational.qbk +++ /dev/null @@ -1,176 +0,0 @@ -[section:rational Polynomial and Rational Function Evaluation] - -[h4 Synopsis] - -`` -#include -`` - - // Polynomials: - template - V evaluate_polynomial(const T(&poly)[N], const V& val); - - template - V evaluate_polynomial(const boost::array& poly, const V& val); - - template - U evaluate_polynomial(const T* poly, U z, std::size_t count); - - // Even polynomials: - template - V evaluate_even_polynomial(const T(&poly)[N], const V& z); - - template - V evaluate_even_polynomial(const boost::array& poly, const V& z); - - template - U evaluate_even_polynomial(const T* poly, U z, std::size_t count); - - // Odd polynomials - template - V evaluate_odd_polynomial(const T(&a)[N], const V& z); - - template - V evaluate_odd_polynomial(const boost::array& a, const V& z); - - template - U evaluate_odd_polynomial(const T* poly, U z, std::size_t count); - - // Rational Functions: - template - V evaluate_rational(const T(&a)[N], const T(&b)[N], const V& z); - - template - V evaluate_rational(const boost::array& a, const boost::array& b, const V& z); - - template - V evaluate_rational(const T* num, const U* denom, V z, unsigned count); - -[h4 Description] - -Each of the functions come in three variants: a pair of overloaded functions -where the order of the polynomial or rational function is evaluated at -compile time, and an overload that accepts a runtime variable for the size -of the coefficient array. Generally speaking, compile time evaluation of the -array size results in better type safety, is less prone to programmer errors, -and may result in better optimised code. The polynomial evaluation functions -in particular, are specialised for various array sizes, allowing for -loop unrolling, and one hopes, optimal inline expansion. - - template - V evaluate_polynomial(const T(&poly)[N], const V& val); - - template - V evaluate_polynomial(const boost::array& poly, const V& val); - - template - U evaluate_polynomial(const T* poly, U z, std::size_t count); - -Evaluates the [@http://en.wikipedia.org/wiki/Polynomial polynomial] described by -the coefficients stored in /poly/. - -If the size of the array is specified at runtime, then the polynomial -most have order /count-1/ with /count/ coefficients. Otherwise it has -order /N-1/ with /N/ coefficients. - -Coefficients should be stored such that the coefficients for the x[super i] terms -are in poly[i]. - -The types of the coefficients and of variable -/z/ may differ as long as /*poly/ is convertible to type /U/. -This allows, for example, for the coefficient table -to be a table of integers if this is appropriate. - - template - V evaluate_even_polynomial(const T(&poly)[N], const V& z); - - template - V evaluate_even_polynomial(const boost::array& poly, const V& z); - - template - U evaluate_even_polynomial(const T* poly, U z, std::size_t count); - -As above, but evaluates an even polynomial: one where all the powers -of /z/ are even numbers. Equivalent to calling -`evaluate_polynomial(poly, z*z, count)`. - - template - V evaluate_odd_polynomial(const T(&a)[N], const V& z); - - template - V evaluate_odd_polynomial(const boost::array& a, const V& z); - - template - U evaluate_odd_polynomial(const T* poly, U z, std::size_t count); - -As above but evaluates a polynomial where all the powers are odd numbers. -Equivalent to `evaluate_polynomial(poly+1, z*z, count-1) * z + poly[0]`. - - template - V evaluate_rational(const T(&num)[N], const U(&denom)[N], const V& z); - - template - V evaluate_rational(const boost::array& num, const boost::array& denom, const V& z); - - template - V evaluate_rational(const T* num, const U* denom, V z, unsigned count); - -Evaluates the rational function (the ratio of two polynomials) described by -the coefficients stored in /num/ and /demom/. - -If the size of the array is specified at runtime then both -polynomials most have order /count-1/ with /count/ coefficients. -Otherwise both polynomials have order /N-1/ with /N/ coefficients. - -Array /num/ describes the numerator, and /demon/ the denominator. - -Coefficients should be stored such that the coefficients for the x[super i ] terms -are in num[i] and denom[i]. - -The types of the coefficients and of variable -/v/ may differ as long as /*num/ and /*denom/ are convertible to type /V/. -This allows, for example, for one or both of the coefficient tables -to be a table of integers if this is appropriate. - -These functions are designed to safely evaluate the result, even when the value -/z/ is very large. As such they do not take advantage of compile time array -sizes to make any optimisations. These functions are best reserved for situations -where /z/ may be large: if you can be sure that numerical overflow will not occur -then polynomial evaluation with compile-time array sizes may offer slightly -better performance. - -[h4 Implementation] - -Polynomials are evaluated by -[@http://en.wikipedia.org/wiki/Horner_algorithm Horners method]. -If the array size is known at -compile time then the functions dispatch to size-specific implementations -that unroll the evaluation loop. - -Rational evaluation is by -[@http://en.wikipedia.org/wiki/Horner_algorithm Horners method]: -with the two polynomials being evaluated -in parallel to make the most of the processors floating-point pipeline. -If /v/ is greater than one, then the polynomials are evaluated in reverse -order as polynomials in ['1\/v]: this avoids unnecessary numerical overflow when the -coefficients are large. - -Both the polynomial and rational function evaluation algorithms can be -tuned using various configuration macros to provide optimal performance -for a particular combination of compiler and platform. This includes -support for second-order Horner's methods. The various options are -[link math_toolkit.tuning documented here]. However, the performance -benefits to be gained from these are marginal on most current hardware, -consequently it's best to run the -[link math_toolkit.perf_test_app performance test application] before -changing the default settings. - -[endsect] [/section:rational Polynomial and Rational Function Evaluation] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/internals/relative_error.qbk b/boost/libs/math/doc/internals/relative_error.qbk deleted file mode 100644 index b5739af8..00000000 --- a/boost/libs/math/doc/internals/relative_error.qbk +++ /dev/null @@ -1,139 +0,0 @@ -[section:error_test Relative Error and Testing] - -[h4 Synopsis] - -`` -#include -`` - -[important -The header `boost/math/tools/test.hpp` is located under `libs/math/include_private` -and is not installed to the usual locations by default, you will need to add `libs/math/include_private` -to your compiler's include path in order to use this header.] - - template - T relative_error(T a, T b); - - template - test_result test(const A& a, F1 test_func, F2 expect_func); - -[h4 Description] - - template - T relative_error(T a, T v); - -Returns the relative error between /a/ and /v/ using the usual formula: - -[equation error1] - -In addition the value returned is zero if: - -* Both /a/ and /v/ are infinite. -* Both /a/ and /v/ are denormalised numbers or zero. - -Otherwise if only one of /a/ and /v/ is zero then the value returned is 1. - - template - test_result test(const A& a, F1 test_func, F2 expect_func); - -This function is used for testing a function against tabulated test data. - -The return type contains statistical data on the relative errors (max, mean, -variance, and the number of test cases etc), as well as the row of test data that -caused the largest relative error. Public members of type test_result are: - -[variablelist -[[`unsigned worst()const;`][Returns the row at which the worst error occurred.]] -[[`T min()const;`][Returns the smallest relative error found.]] -[[`T max()const;`][Returns the largest relative error found.]] -[[`T mean()const;`][Returns the mean error found.]] -[[`boost::uintmax_t count()const;`][Returns the number of test cases.]] -[[`T variance()const;`][Returns the variance of the errors found.]] -[[`T variance1()const;`][Returns the unbiased variance of the errors found.]] -[[`T rms()const`][Returns the Root Mean Square, or quadratic mean of the errors.]] -[[`test_result& operator+=(const test_result& t)`][Combines two test_result's into -a single result.]] -] - -The template parameter of test_result, is the same type as the values in the two -dimensional array passed to function /test/, roughly that's -`A::value_type::value_type`. - -Parameter /a/ is a matrix of test data: and must be a standard library Sequence type, -that contains another Sequence type: -typically it will be a two dimensional instance of -[^boost::array]. Each row -of /a/ should contain all the parameters that are passed to the function -under test as well as the expected result. - -Parameter /test_func/ is the function under test, it is invoked with each row -of test data in /a/. Typically type F1 is created with Boost.Lambda: see -the example below. - -Parameter /expect_func/ is a functor that extracts the expected result -from a row of test data in /a/. Typically type F2 is created with Boost.Lambda: see -the example below. - -If the function under test returns a non-finite value when a finite result is -expected, or if a gross error is found, then a message is sent to `std::cerr`, -and a call to BOOST_ERROR() made (which means that including this header requires -you use Boost.Test). This is mainly a debugging/development aid -(and a good place for a breakpoint). - -[h4 Example] - -Suppose we want to test the tgamma and lgamma functions, we can create a -two dimensional matrix of test data, each row is one test case, and contains -three elements: the input value, and the expected results for the tgamma and -lgamma functions respectively. - - static const boost::array, NumberOfTests> - factorials = { - /* big array of test data goes here */ - }; - -Now we can invoke the test function to test tgamma: - - using namespace boost::math::tools; - using namespace boost::lambda; - - // get a pointer to the function under test: - TestType (*funcp)(TestType) = boost::math::tgamma; - - // declare something to hold the result: - test_result result; - // - // and test tgamma against data: - // - result = test( - factorials, - bind(funcp, ret(_1[0])), // calls tgamma with factorials[row][0] - ret(_1[1]) // extracts the expected result from factorials[row][1] - ); - // - // Print out some results: - // - std::cout << "The Mean was " << result.mean() << std::endl; - std::cout << "The worst error was " << (result.max)() << std::endl; - std::cout << "The worst error was at row " << result.worst_case() << std::endl; - // - // same again with lgamma this time: - // - funcp = boost::math::lgamma; - result = test( - factorials, - bind(funcp, ret(_1[0])), // calls tgamma with factorials[row][0] - ret(_1[2]) // extracts the expected result from factorials[row][2] - ); - // - // etc ... - // - -[endsect][/section:error_test Relative Error and Testing] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/internals/series.qbk b/boost/libs/math/doc/internals/series.qbk deleted file mode 100644 index 58bb7e00..00000000 --- a/boost/libs/math/doc/internals/series.qbk +++ /dev/null @@ -1,141 +0,0 @@ -[section:series_evaluation Series Evaluation] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ namespace tools{ - - template - inline typename Functor::result_type sum_series(Functor& func, const U& tolerance, boost::uintmax_t& max_terms, const V& init_value); - - template - inline typename Functor::result_type sum_series(Functor& func, const U& tolerance, boost::uintmax_t& max_terms); - - // - // The following interfaces are now deprecated: - // - template - typename Functor::result_type sum_series(Functor& func, int bits); - - template - typename Functor::result_type sum_series(Functor& func, int bits, boost::uintmax_t& max_terms); - - template - typename Functor::result_type sum_series(Functor& func, int bits, U init_value); - - template - typename Functor::result_type sum_series(Functor& func, int bits, boost::uintmax_t& max_terms, U init_value); - - template - typename Functor::result_type kahan_sum_series(Functor& func, int bits); - - template - typename Functor::result_type kahan_sum_series(Functor& func, int bits, boost::uintmax_t& max_terms); - - }}} // namespaces - -[h4 Description] - -These algorithms are intended for the -[@http://en.wikipedia.org/wiki/Series_%28mathematics%29 summation of infinite series]. - -Each of the algorithms takes a nullary-function object as the first argument: -the function object will be repeatedly invoked to pull successive terms from -the series being summed. - -The second argument is the precision required, -summation will stop when the next term is less than -/tolerance/ times the result. The deprecated versions of sum_series -take an integer number of bits here - internally they just convert this to -a tolerance and forward the call. - -The third argument /max_terms/ sets an upper limit on the number -of terms of the series to evaluate. In addition, on exit the function will -set /max_terms/ to the actual number of terms of the series that were -evaluated: this is particularly useful for profiling the convergence -properties of a new series. - -The final optional argument /init_value/ is the initial value of the sum -to which the terms of the series should be added. This is useful in two situations: - -* Where the first value of the series has a different formula to successive -terms. In this case the first value in the series can be passed as the -last argument and the logic of the function object can then be simplified -to return subsequent terms. -* Where the series is being added (or subtracted) from some other value: -termination of the series will likely occur much more rapidly if that other -value is passed as the last argument. For example, there are several functions -that can be expressed as /1 - S(z)/ where S(z) is an infinite series. In this -case, pass -1 as the last argument and then negate the result of the summation -to get the result of /1 - S(z)/. - -The two /kahan_sum_series/ variants of these algorithms maintain a carry term -that corrects for roundoff error during summation. -They are inspired by the -[@http://en.wikipedia.org/wiki/Kahan_Summation_Algorithm /Kahan Summation Formula/] -that appears in -[@http://docs.sun.com/source/806-3568/ncg_goldberg.html What Every Computer Scientist Should Know About Floating-Point Arithmetic]. -However, it should be pointed out that there are very few series that require -summation in this way. - -[h4 Example] - -Let's suppose we want to implement /log(1+x)/ via its infinite series, - -[equation log1pseries] - -We begin by writing a small function object to return successive terms -of the series: - - template - struct log1p_series - { - // we must define a result_type typedef: - typedef T result_type; - - log1p_series(T x) - : k(0), m_mult(-x), m_prod(-1){} - - T operator()() - { - // This is the function operator invoked by the summation - // algorithm, the first call to this operator should return - // the first term of the series, the second call the second - // term and so on. - m_prod *= m_mult; - return m_prod / ++k; - } - - private: - int k; - const T m_mult; - T m_prod; - }; - -Implementing log(1+x) is now fairly trivial: - - template - T log1p(T x) - { - // We really should add some error checking on x here! - assert(std::fabs(x) < 1); - - // Construct the series functor: - log1p_series s(x); - // Set a limit on how many iterations we permit: - boost::uintmax_t max_iter = 1000; - // Add it up, with enough precision for full machine precision: - return tools::sum_series(s, std::numeric_limits::epsilon(), max_iter); - } - -[endsect][/section Series Evaluation] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/internals/test_data.qbk b/boost/libs/math/doc/internals/test_data.qbk deleted file mode 100644 index 48461635..00000000 --- a/boost/libs/math/doc/internals/test_data.qbk +++ /dev/null @@ -1,446 +0,0 @@ -[section:test_data Graphing, Profiling, and Generating Test Data for Special Functions] - -The class `test_data` and associated helper functions are designed so that in just -a few lines of code you should be able to: - -* Profile a continued fraction, or infinite series for convergence and accuracy. -* Generate csv data from a special function that can be imported into your favorite -graphing program (or spreadsheet) for further analysis. -* Generate high precision test data. - -[h4 Synopsis] - - #include - -[important -This is a non-core Boost.Math header that is predominantly used for internal -maintenance of the library: as a result the library is located under -`libs/math/include_private` and you will need to add that directory to -your include path in order to use this feature. -] - - namespace boost{ namespace math{ namespace tools{ - - enum parameter_type - { - random_in_range = 0, - periodic_in_range = 1, - power_series = 2, - dummy_param = 0x80, - }; - - template - struct parameter_info; - - template - parameter_info make_random_param(T start_range, T end_range, int n_points); - - template - parameter_info make_periodic_param(T start_range, T end_range, int n_points); - - template - parameter_info make_power_param(T basis, int start_exponent, int end_exponent); - - template - bool get_user_parameter_info(parameter_info& info, const char* param_name); - - template - class test_data - { - public: - typedef std::vector row_type; - typedef row_type value_type; - private: - typedef std::set container_type; - public: - typedef typename container_type::reference reference; - typedef typename container_type::const_reference const_reference; - typedef typename container_type::iterator iterator; - typedef typename container_type::const_iterator const_iterator; - typedef typename container_type::difference_type difference_type; - typedef typename container_type::size_type size_type; - - // creation: - test_data(){} - template - test_data(F func, const parameter_info& arg1); - - // insertion: - template - test_data& insert(F func, const parameter_info& arg1); - - template - test_data& insert(F func, const parameter_info& arg1, - const parameter_info& arg2); - - template - test_data& insert(F func, const parameter_info& arg1, - const parameter_info& arg2, - const parameter_info& arg3); - - void clear(); - - // access: - iterator begin(); - iterator end(); - const_iterator begin()const; - const_iterator end()const; - bool operator==(const test_data& d)const; - bool operator!=(const test_data& d)const; - void swap(test_data& other); - size_type size()const; - size_type max_size()const; - bool empty()const; - - bool operator < (const test_data& dat)const; - bool operator <= (const test_data& dat)const; - bool operator > (const test_data& dat)const; - bool operator >= (const test_data& dat)const; - }; - - template - std::basic_ostream& write_csv( - std::basic_ostream& os, - const test_data& data); - - template - std::basic_ostream& write_csv( - std::basic_ostream& os, - const test_data& data, - const charT* separator); - - template - std::ostream& write_code(std::ostream& os, - const test_data& data, - const char* name); - - }}} // namespaces - -[h4 Description] - -This tool is best illustrated with the following series of examples. - -The functionality of test_data is split into the following parts: - -* A functor that implements the function for which data is being generated: -this is the bit you have to write. -* One of more parameters that are to be passed to the functor, these are -described in fairly abstract terms: give me N points distributed like /this/ etc. -* The class test_data, that takes the functor and descriptions of the parameters -and computes how ever many output points have been requested, these are stored -in a sorted container. -* Routines to iterate over the test_data container and output the data in either -csv format, or as C++ source code (as a table using Boost.Array). - -[h5 Example 1: Output Data for Graph Plotting] - -For example, lets say we want to graph the lgamma function between -3 and 100, -one could do this like so: - - #include - #include - - int main() - { - using namespace boost::math::tools; - - // create an object to hold the data: - test_data data; - - // insert 500 points at uniform intervals between just after -3 and 100: - double (*pf)(double) = boost::math::lgamma; - data.insert(pf, make_periodic_param(-3.0 + 0.00001, 100.0, 500)); - - // print out in csv format: - write_csv(std::cout, data, ", "); - return 0; - } - -Which, when plotted, results in: - -[graph lgamma] - -[h5 Example 2: Creating Test Data] - -As a second example, let's suppose we want to create highly accurate test -data for a special function. Since many special functions have two or -more independent parameters, it's very hard to effectively cover all of -the possible parameter space without generating gigabytes of data at -great computational expense. A second best approach is to provide the tools -by which a user (or the library maintainer) can quickly generate more data -on demand to probe the function over a particular domain of interest. - -In this example we'll generate test data for the beta function using -[@http://shoup.net/ntl/doc/RR.txt NTL::RR] at 1000 bit precision. -Rather than call our generic -version of the beta function, we'll implement a deliberately naive version -of the beta function using lgamma, and rely on the high precision of the -data type used to get results accurate to at least 128-bit precision. In this -way our test data is independent of whatever clever tricks we may wish to -use inside the our beta function. - -To start with then, here's the function object that creates the test data: - - #include - #include - #include - #include - - #include - - using namespace boost::math::tools; - - struct beta_data_generator - { - NTL::RR operator()(NTL::RR a, NTL::RR b) - { - // - // If we throw a domain error then test_data will - // ignore this input point. We'll use this to filter - // out all cases where a < b since the beta function - // is symmetrical in a and b: - // - if(a < b) - throw std::domain_error(""); - - // very naively calculate spots with lgamma: - NTL::RR g1, g2, g3; - int s1, s2, s3; - g1 = boost::math::lgamma(a, &s1); - g2 = boost::math::lgamma(b, &s2); - g3 = boost::math::lgamma(a+b, &s3); - g1 += g2 - g3; - g1 = exp(g1); - g1 *= s1 * s2 * s3; - return g1; - } - }; - -To create the data, we'll need to input the domains for a and b -for which the function will be tested: the function `get_user_parameter_info` -is designed for just that purpose. The start of main will look something like: - - // Set the precision on RR: - NTL::RR::SetPrecision(1000); // bits. - NTL::RR::SetOutputPrecision(40); // decimal digits. - - parameter_info arg1, arg2; - test_data data; - - std::cout << "Welcome.\n" - "This program will generate spot tests for the beta function:\n" - " beta(a, b)\n\n"; - - bool cont; - std::string line; - - do{ - // prompt the user for the domain of a and b to test: - get_user_parameter_info(arg1, "a"); - get_user_parameter_info(arg2, "b"); - - // create the data: - data.insert(beta_data_generator(), arg1, arg2); - - // see if the user want's any more domains tested: - std::cout << "Any more data [y/n]?"; - std::getline(std::cin, line); - boost::algorithm::trim(line); - cont = (line == "y"); - }while(cont); - -[caution At this point one potential stumbling block should be mentioned: -test_data<>::insert will create a matrix of test data when there are two -or more parameters, so if we have two parameters and we're asked for -a thousand points on each, that's a ['million test points in total]. -Don't say you weren't warned!] - -There's just one final step now, and that's to write the test data to file: - - std::cout << "Enter name of test data file [default=beta_data.ipp]"; - std::getline(std::cin, line); - boost::algorithm::trim(line); - if(line == "") - line = "beta_data.ipp"; - std::ofstream ofs(line.c_str()); - write_code(ofs, data, "beta_data"); - -The format of the test data looks something like: - - #define SC_(x) static_cast(BOOST_JOIN(x, L)) - static const boost::array, 1830> - beta_med_data = { - SC_(0.4883005917072296142578125), - SC_(0.4883005917072296142578125), - SC_(3.245912809500479157065104747353807392371), - SC_(3.5808107852935791015625), - SC_(0.4883005917072296142578125), - SC_(1.007653173802923954909901438393379243537), - /* ... lots of rows skipped */ - }; - -The first two values in each row are the input parameters that were passed -to our functor and the last value is the return value from the functor. -Had our functor returned a __tuple rather than a value, then we would have had -one entry for each element in the tuple in addition to the input parameters. - -The first #define serves two purposes: - -* It reduces the file sizes considerably: all those `static_cast`'s add up to a lot -of bytes otherwise (they are needed to suppress compiler warnings when `T` is -narrower than a `long double`). -* It provides a useful customisation point: for example if we were testing -a user-defined type that has more precision than a `long double` we could change -it to: - -[^#define SC_(x) lexical_cast(BOOST_STRINGIZE(x))] - -in order to ensure that no truncation of the values occurs prior to conversion -to `T`. Note that this isn't used by default as it's rather hard on the compiler -when the table is large. - -[h5 Example 3: Profiling a Continued Fraction for Convergence and Accuracy] - -Alternatively, lets say we want to profile a continued fraction for -convergence and error. As an example, we'll use the continued fraction -for the upper incomplete gamma function, the following function object -returns the next a[sub N ] and b[sub N ] of the continued fraction -each time it's invoked: - - template - struct upper_incomplete_gamma_fract - { - private: - T z, a; - int k; - public: - typedef std::pair result_type; - - upper_incomplete_gamma_fract(T a1, T z1) - : z(z1-a1+1), a(a1), k(0) - { - } - - result_type operator()() - { - ++k; - z += 2; - return result_type(k * (a - k), z); - } - }; - -We want to measure both the relative error, and the rate of convergence -of this fraction, so we'll write a functor that returns both as a __tuple: -class test_data will unpack the tuple for us, and create one column of data -for each element in the tuple (in addition to the input parameters): - - #include - #include - #include - #include - #include - - template - struct profile_gamma_fraction - { - typedef ``__tuple`` result_type; - - result_type operator()(T val) - { - using namespace boost::math::tools; - // estimate the true value, using arbitary precision - // arithmetic and NTL::RR: - NTL::RR rval(val); - upper_incomplete_gamma_fract f1(rval, rval); - NTL::RR true_val = continued_fraction_a(f1, 1000); - // - // Now get the aproximation at double precision, along with the number of - // iterations required: - boost::uintmax_t iters = std::numeric_limits::max(); - upper_incomplete_gamma_fract f2(val, val); - T found_val = continued_fraction_a(f2, std::numeric_limits::digits, iters); - // - // Work out the relative error, as measured in units of epsilon: - T err = real_cast(relative_error(true_val, NTL::RR(found_val)) / std::numeric_limits::epsilon()); - // - // now just return the results as a tuple: - return boost::math::make_tuple(err, iters); - } - }; - -Feeding that functor into test_data allows rapid output of csv data, -for whatever type `T` we may be interested in: - - int main() - { - using namespace boost::math::tools; - // create an object to hold the data: - test_data data; - // insert 500 points at uniform intervals between just after 0 and 100: - data.insert(profile_gamma_fraction(), make_periodic_param(0.01, 100.0, 100)); - // print out in csv format: - write_csv(std::cout, data, ", "); - return 0; - } - -This time there's no need to plot a graph, the first few rows are: - - a and z, Error/epsilon, Iterations required - - 0.01, 9723.14, 4726 - 1.0099, 9.54818, 87 - 2.0098, 3.84777, 40 - 3.0097, 0.728358, 25 - 4.0096, 2.39712, 21 - 5.0095, 0.233263, 16 - -So it's pretty clear that this fraction shouldn't be used for small values -of a and z. - -[h4 reference] - -Most of this tool has been described already in the examples above, we'll -just add the following notes on the non-member functions: - - template - parameter_info make_random_param(T start_range, T end_range, int n_points); - -Tells class test_data to test /n_points/ random values in the range -[start_range,end_range]. - - template - parameter_info make_periodic_param(T start_range, T end_range, int n_points); - -Tells class test_data to test /n_points/ evenly spaced values in the range -[start_range,end_range]. - - template - parameter_info make_power_param(T basis, int start_exponent, int end_exponent); - -Tells class test_data to test points of the form ['basis + R * 2[super expon]] for each -/expon/ in the range [start_exponent, end_exponent], and /R/ a random number in \[0.5, 1\]. - - template - bool get_user_parameter_info(parameter_info& info, const char* param_name); - -Prompts the user for the parameter range and form to use. - -Finally, if we don't want the parameter to be included in the output, we can tell -test_data by setting it a "dummy parameter": - - parameter_info p = make_random_param(2.0, 5.0, 10); - p.type |= dummy_param; - -This is useful when the functor used transforms the parameter in some way -before passing it to the function under test, usually the functor will then -return both the transformed input and the result in a tuple, so there's no -need for the original pseudo-parameter to be included in program output. - -[endsect][/section:test_data Graphing, Profiling, and Generating Test Data for Special Functions] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/internals/tuple.qbk b/boost/libs/math/doc/internals/tuple.qbk deleted file mode 100644 index 54a63010..00000000 --- a/boost/libs/math/doc/internals/tuple.qbk +++ /dev/null @@ -1,31 +0,0 @@ -[section:tuples Tuples] - -[h4 Synopsis] - -`` -#include -`` - -[h4 Description] - -This header defines the type `boost::math::tuple`, -the associated free functions `ignore`, `tie`, `make_tuple`, `get`, -and associated types `tuple_size` and `tuple_element`. - -These types and functions are aliases for: - -* `std::tuple` etc when available, otherwise: -* `std::tr1::tuple` etc when available, otherwise: -* `boost::fusion::tuple` etc if the compiler supports it, otherwise: -* `boost::tuple`. - -So this `boost::math::tuple` is strongly recommended for maximum portability. - -[endsect] [/section:Tuples Tuples] -[/ - Copyright 2010 John Maddock. - 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). -] - diff --git a/boost/libs/math/doc/math.css b/boost/libs/math/doc/math.css deleted file mode 100644 index 60415c96..00000000 --- a/boost/libs/math/doc/math.css +++ /dev/null @@ -1,130 +0,0 @@ -@import url('../../../../doc/src/boostbook.css'); - -/*============================================================================= -Copyright (c) 2004 Joel de Guzman -Copyright (c) 2014 John Maddock -http://spirit.sourceforge.net/ - -Copyright 2013 Niall Douglas additions for colors and alignment. -Copyright 2013 Paul A. Bristow additions for more colors and alignments. - -Distributed under the Boost Software License, Version 1.0. (See accompany- -ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -=============================================================================*/ - -/*============================================================================= -Program listings -=============================================================================*/ - - /* Code on paragraphs */ - p tt.computeroutput - { - font-size: 10pt; - } - - pre.synopsis - { - font-size: 10pt; - margin: 1pc 4% 0pc 4%; - padding: 0.5pc 0.5pc 0.5pc 0.5pc; - } - - .programlisting, - .screen - { - font-size: 10pt; - display: block; - margin: 1pc 4% 0pc 4%; - padding: 0.5pc 0.5pc 0.5pc 0.5pc; - - } - @media screen - { - /* Syntax Highlighting */ - .comment { color: green; } - /* .comment { color: #008000; } */ - } - /* Program listings in tables don't get borders */ - td .programlisting, - td .screen - { - margin: 0pc 0pc 0pc 0pc; - padding: 0pc 0pc 0pc 0pc; - } - -/*============================================================================= -Table of contents -=============================================================================*/ - - div.toc - { - margin: 1pc 4% 0pc 4%; - padding: 0.1pc 1pc 0.1pc 1pc; - font-size: 100%; - line-height: 1.15; - } - - .boost-toc - { - float: right; - padding: 0.5pc; - } - - /* Code on toc */ - .toc .computeroutput { font-size: 120% } - - /* No margin on nested menus */ - - .toc dl dl { margin: 0; } - - -/*============================================================================== -Alignment and coloring use 'role' feature, available from Quickbook 1.6 up. -Added from Niall Douglas for role color and alignment. -http://article.gmane.org/gmane.comp.lib.boost.devel/243318 -*/ - -/* Add text alignment (see http://www.w3schools.com/cssref/pr_text_text-align.asp) */ -span.aligncenter -{ - display: inline-block; width: 100%; text-align: center; -} -span.alignright -{ - display: inline-block; width: 100%; text-align: right; -} -/* alignleft is the default. */ -span.alignleft -{ - display: inline-block; width: 100%; text-align: left; -} - -/* alignjustify stretches the word spacing so that each line has equal width -within a chosen fraction of page width (here arbitrarily 20%). -*Not* useful inside table items as the column width remains the total string width. -Nor very useful, except to temporarily restrict the width. -*/ -span.alignjustify -{ - display: inline-block; width: 20%; text-align: justify; -} - -/* Text colors. -Names at http://www.w3.org/TR/2002/WD-css3-color-20020219/ 4.3. X11 color keywords. -Quickbook Usage: [role red Some red text] - -*/ -span.red { inline-block; color: red; } -span.green { color: green; } -span.lime { color: #00FF00; } -span.blue { color: blue; } -span.navy { color: navy; } -span.yellow { color: yellow; } -span.magenta { color: magenta; } -span.indigo { color: #4B0082; } -span.cyan { color: cyan; } -span.purple { color: purple; } -span.gold { color: gold; } -span.silver { color: silver; } /* lighter gray */ -span.gray { color: #808080; } /* light gray */ - diff --git a/boost/libs/math/doc/math.pdf b/boost/libs/math/doc/math.pdf deleted file mode 100644 index 5b1cc48b..00000000 Binary files a/boost/libs/math/doc/math.pdf and /dev/null differ diff --git a/boost/libs/math/doc/math.qbk b/boost/libs/math/doc/math.qbk deleted file mode 100644 index 2f4ceab3..00000000 --- a/boost/libs/math/doc/math.qbk +++ /dev/null @@ -1,711 +0,0 @@ -[book Math Toolkit - [quickbook 1.6] - [copyright 2006, 2007, 2008, 2009, 2010, 2012, 2013, 2014 Nikhar Agrawal, Anton Bikineev, Paul A. Bristow, Marco Guazzone, Christopher Kormanyos, Hubert Holin, Bruno Lalande, John Maddock, Jeremy Murphy, Johan Råde, Gautam Sewani, Benjamin Sobotta, Thijs van den Berg, Daryle Walker and Xiaogang Zhang] - [/purpose ISBN 0-9504833-2-X 978-0-9504833-2-0, Classification 519.2-dc22] - [license - 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]) - ] - [authors [Agrawal, Nikhar], [Bikineev, Anton], [Bristow, Paul A.], [Holin, Hubert], [Guazzone, Marco], [Kormanyos, Christopher], [Lalande, Bruno], [Maddock, John], [Murphy, Jeremy W.], [Råde, Johan], [Sobotta, Benjamin], [Sewani, Gautam], [van den Berg, Thijs], [Walker, Daryle], [Zhang, Xiaogang]] - [/last-revision $Date$] - [version 2.5.1] -] - -[template mathpart[id title] -[block ''''''[title]'''''']] -[template endmathpart[] -[block '''''']] - -[/ \u00E5 = Latin small letter A with ring above doesn't seem to work in authors with Quickbook 1.5] - -[template equation[name] ''' - - - - - - -'''] - -[template graph[name] ''' - - - - - - -'''] - -[import ../../../tools/auto_index/include/auto_index_helpers.qbk] -[/ Must be first included file!] - -[import ../reporting/accuracy/doc/accuracy_tables.qbk] -[import ../reporting/performance/doc/performance_tables.qbk] - -[import html4_symbols.qbk] - -[import overview/common_overviews.qbk] [/ overviews that appear in more than one place!] -[import overview/tr1.qbk] [/tr1 docs also appear in more than one place!] -[import overview/roadmap.qbk] [/ for history] - -[def __effects [*Effects: ]] -[def __formula [*Formula: ]] -[def __exm1 '''ex - 1'''] [/e^x -1] -[def __ex '''ex'''] [/e^x] -[def __te '''2ɛ'''] [/small Latin letter open e] - -[def __ceilR '''⌉'''] -[def __ceilL '''ऄ'''] -[def __floorR '''⌋'''] -[def __floorL '''⌊'''] -[def __infin '''∞'''] -[def __integral '''∫'''] -[def __aacute '''á'''] -[def __eacute '''é'''] -[def __quarter '''¼'''] -[def __nearequal '''≊'''] -[def __spaces '''  '''] [/ two spaces - useful for an indent.] - -[def __tick [role aligncenter [role green \u2714]]] [/ u2714 is a HEAVY CHECK MARK tick (2713 check -mark)] -[def __cross [role aligncenter [role red \u2718]]] [/ u2718 is a heavy cross] -[def __star [role aligncenter [role red \u2736]]] [/ 6-point star] - -[def __caution This is now an official Boost library, but remains a library under - development, the code is fully functional and robust, but - interfaces, library structure, and function and distribution names - may still be changed without notice.] - -[template tr1[] [@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf Technical Report on C++ Library Extensions]] -[template C99[] [@http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf C99 Standard ISO/IEC 9899:1999]] -[template jm_rationals[] [link math_toolkit.sf_implementation.rational_approximations_used devised by JM]] - -[def __domain_error [link math_toolkit.error_handling.domain_error domain_error]] -[def __pole_error [link math_toolkit.error_handling.pole_error pole_error]] -[def __overflow_error [link math_toolkit.error_handling.overflow_error overflow_error]] -[def __underflow_error [link math_toolkit.error_handling.underflow_error underflow_error]] -[def __denorm_error [link math_toolkit.error_handling.denorm_error denorm_error]] -[def __evaluation_error [link math_toolkit.error_handling.evaluation_error evaluation_error]] -[def __rounding_error [link math_toolkit.error_handling.rounding_error rounding_error]] -[def __indeterminate_result_error [link math_toolkit.error_handling.indeterminate_result_error indeterminate_result_error]] -[def __checked_narrowing_cast [link math_toolkit.error_handling.checked_narrowing_cast checked_narrowing_cast]] -[def __arg_promotion_rules [link math_toolkit.result_type ['result type calculation rules]]] -[def __sf_result [link math_toolkit.result_type ['calculated-result-type]]] - -[/ The following macros expand to links to the various special functions -and use the function's name as the link text.] - -[/Misc] -[def __lanczos [link math_toolkit.lanczos Lanczos approximation]] -[def __zero_error [link math_toolkit.relative_error.zero_error effectively zero error]] -[def __relative_error [link math_toolkit.relative_error relative zero error]] - -[/ links to roots] - -[def __root_finding_with_derivatives [link math_toolkit.roots.roots_deriv root-finding with derivatives]] [/Newton, Halley & Schoeder] -[def __root_finding_without_derivatives [link math_toolkit.roots.roots_noderiv root-finding without derivatives]] -[def __root_finding_TOMS748 [link math_toolkit.roots.roots_noderiv.TOMS748 TOMS 748 algorithm]] -[def __bracket_solve [link math_toolkit.roots.roots_noderiv.bracket_solve bracket and solve]] -[def __root_termination [link math_toolkit.roots.roots_noderiv.root_termination predefined termination functors]] -[def __root_finding_examples [link math_toolkit.roots.root_finding_examples root-finding examples]] -[def __brent_minima [link math_toolkit.roots.brent_minima Brent's method]] -[def __brent_minima_example [link math_toolkit.roots.brent_minima.example Brent's method example]] -[def __newton[link math_toolkit.roots.roots_deriv.newton Newton-Raphson iteration]] -[def __halley [link math_toolkit.roots.roots_deriv.halley Halley]] -[def __schroder [link math_toolkit.roots.roots_deriv.schroder Schr'''ö'''der]] -[def __brent_minima_example [link math_toolkit.roots.brent_minima.example Brent minima finding example]] -[def __bisection [link math_toolkit.roots.roots_noderiv.bisect bisection]] -[def __bisect [link math_toolkit.roots.roots_noderiv.bisect bisect]] -[def __bisection_wikipedia [@https://en.wikipedia.org/wiki/Bisection bisection]] -[def __root_finding_example_without_derivatives [link math_toolkit.roots.root_finding_examples.no_derivatives root-finding without derivatives]] -[def __root_finding_example_cbrt_without_derivatives [link math_toolkit.roots.root_finding_examples.cbrt_eg.cbrt_no_derivatives root-finding without derivatives]] -[def __root_finding_example_cbrt_with_1_derivative [link math_toolkit.roots.root_finding_examples.cbrt_eg.cbrt_1st_derivative root-finding with 1st derivatives]] -[def __root_finding_example_cbrt_with_2_derivatives [link math_toolkit.roots.root_finding_examples.cbrt_eg.cbrt_2_derivatives root-finding with 1st and 2nd derivatives]] -[def __root_finding_examples [link math_toolkit.roots.root_finding_examples root-finding examples]] -[def __no_derivatives [link math_toolkit.roots.root_finding_examples.no_derivatives no derivatives]] -[def __cbrt_no_derivatives [link math_toolkit.roots.root_finding_examples.cbrt_no_derivatives cbrt no derivatives]] -[def __cbrt_no_derivatives [link math_toolkit.roots.root_finding_examples.cbrt_eg.cbrt_no_derivatives without derivatives]] -[def __cbrt_1st_derivative [link math_toolkit.roots.root_finding_examples.cbrt_eg.cbrt_1st_derivative cube-root with 1st derivative]] -[def __cbrt_2_derivatives [link math_toolkit..roots.root_finding_examples.cbrt_eg.cbrt_2_derivatives cube-root with 1st & 2nd derivative]] -[def __fifth_root [link math_toolkit.roots.root_finding_examples.5th_root_eg fifth root]] -[def __nth_root [link math_toolkit.roots.root_finding_examples.nth_root nth root]] -[def __multiprecision_root [link math_toolkit.roots.root_finding_examples.multiprecision_root multiprecision root]] -[def __polynomial_arithmetic [link math_toolkit.roots.polynomial_arithmetic polynomial arithmetic]] -[def __evaluation [link math_toolkit.roots.rational.polynomial_evaluation polynomial \& rational evaluation]] - -[/gammas] -[def __lgamma [link math_toolkit.sf_gamma.lgamma lgamma]] -[def __digamma [link math_toolkit.sf_gamma.digamma digamma]] -[def __trigamma [link math_toolkit.sf_gamma.trigamma trigamma]] -[def __polygamma [link math_toolkit.sf_gamma.polygamma polygamma]] -[def __tgamma_ratio [link math_toolkit.sf_gamma.gamma_ratios tgamma_ratio]] -[def __tgamma_delta_ratio [link math_toolkit.sf_gamma.gamma_ratios tgamma_delta_ratio]] -[def __tgamma [link math_toolkit.sf_gamma.tgamma tgamma]] -[def __tgamma1pm1 [link math_toolkit.sf_gamma.tgamma tgamma1pm1]] -[def __tgamma_lower [link math_toolkit.sf_gamma.igamma tgamma_lower]] -[def __gamma_p [link math_toolkit.sf_gamma.igamma gamma_p]] -[def __gamma_q [link math_toolkit.sf_gamma.igamma gamma_q]] -[def __gamma_q_inv [link math_toolkit.sf_gamma.igamma_inv gamma_q_inv]] -[def __gamma_p_inv [link math_toolkit.sf_gamma.igamma_inv gamma_p_inv]] -[def __gamma_q_inva [link math_toolkit.sf_gamma.igamma_inv gamma_q_inva]] -[def __gamma_p_inva [link math_toolkit.sf_gamma.igamma_inv gamma_p_inva]] -[def __gamma_p_derivative [link math_toolkit.sf_gamma.gamma_derivatives gamma_p_derivative]] - -[/factorials] -[def __factorial [link math_toolkit.factorials.sf_factorial factorial]] -[def __unchecked_factorial [link math_toolkit.factorials.sf_factorial unchecked_factorial]] -[def __max_factorial [link math_toolkit.factorials.sf_factorial max_factorial]] -[def __double_factorial [link math_toolkit.factorials.sf_double_factorial double_factorial]] -[def __rising_factorial [link math_toolkit.factorials.sf_rising_factorial rising_factorial]] -[def __falling_factorial [link math_toolkit.factorials.sf_falling_factorial falling_factorial]] - -[/error functions] -[def __erf [link math_toolkit.sf_erf.error_function erf]] -[def __erfc [link math_toolkit.sf_erf.error_function erfc]] -[def __erf_inv [link math_toolkit.sf_erf.error_inv erf_inv]] -[def __erfc_inv [link math_toolkit.sf_erf.error_inv erfc_inv]] - -[/beta functions] -[def __beta [link math_toolkit.sf_beta.beta_function beta]] -[def __beta3 [link math_toolkit.sf_beta.ibeta_function beta]] -[def __betac [link math_toolkit.sf_beta.ibeta_function betac]] -[def __ibeta [link math_toolkit.sf_beta.ibeta_function ibeta]] -[def __ibetac [link math_toolkit.sf_beta.ibeta_function ibetac]] -[def __ibeta_inv [link math_toolkit.sf_beta.ibeta_inv_function ibeta_inv]] -[def __ibetac_inv [link math_toolkit.sf_beta.ibeta_inv_function ibetac_inv]] -[def __ibeta_inva [link math_toolkit.sf_beta.ibeta_inv_function ibeta_inva]] -[def __ibetac_inva [link math_toolkit.sf_beta.ibeta_inv_function ibetac_inva]] -[def __ibeta_invb [link math_toolkit.sf_beta.ibeta_inv_function ibeta_invb]] -[def __ibetac_invb [link math_toolkit.sf_beta.ibeta_inv_function ibetac_invb]] -[def __ibeta_derivative [link math_toolkit.sf_beta.beta_derivative ibeta_derivative]] - -[/elliptic integrals] -[def __ellint_rj [link math_toolkit.ellint.ellint_carlson ellint_rj]] -[def __ellint_rf [link math_toolkit.ellint.ellint_carlson ellint_rf]] -[def __ellint_rc [link math_toolkit.ellint.ellint_carlson ellint_rc]] -[def __ellint_rd [link math_toolkit.ellint.ellint_carlson ellint_rd]] -[def __ellint_1 [link math_toolkit.ellint.ellint_1 ellint_1]] -[def __ellint_2 [link math_toolkit.ellint.ellint_2 ellint_2]] -[def __ellint_3 [link math_toolkit.ellint.ellint_3 ellint_3]] -[def __ellint_d [link math_toolkit.ellint.ellint_d ellint_d]] -[def __jacobi_zeta [link math_toolkit.ellint.jacobi_zeta jacobi_zeta]] -[def __heuman_lambda [link math_toolkit.ellint.heuman_lambda heuman_lambda]] - -[/ Bernoulli functions and numbers] -[def __bernoulli_numbers [link math_toolkit.number_series.bernoulli_numbers Bernoulli numbers]] - -[/Bessel functions] -[def __cyl_bessel_j [link math_toolkit.bessel.bessel_first cyl_bessel_j]] -[def __cyl_neumann [link math_toolkit.bessel.bessel_first cyl_neumann]] -[def __cyl_bessel_i [link math_toolkit.bessel.mbessel cyl_bessel_i]] -[def __cyl_bessel_k [link math_toolkit.bessel.mbessel cyl_bessel_k]] -[def __sph_bessel [link math_toolkit.bessel.sph_bessel sph_bessel]] -[def __sph_neumann [link math_toolkit.bessel.sph_bessel sph_neumann]] - -[def __cyl_bessel_j_prime [link math_toolkit.bessel.bessel_derivatives cyl_bessel_j_prime]] -[def __cyl_neumann_prime [link math_toolkit.bessel.bessel_derivatives cyl_neumann_prime]] -[def __cyl_bessel_i_prime [link math_toolkit.bessel.bessel_derivatives cyl_bessel_i_prime]] -[def __cyl_bessel_k_prime [link math_toolkit.bessel.bessel_derivatives cyl_bessel_k_prime]] -[def __sph_bessel_prime [link math_toolkit.bessel.bessel_derivatives sph_bessel_prime]] -[def __sph_neumann_prime [link math_toolkit.bessel.bessel_derivatives sph_neumann_prime]] - -[/Hankel Functions] -[def __cyl_hankel_1 [link math_toolkit.hankel.cyl_hankel cyl_hankel_1]] -[def __cyl_hankel_2 [link math_toolkit.hankel.cyl_hankel cyl_hankel_2]] -[def __sph_hankel_1 [link math_toolkit.hankel.sph_hankel sph_hankel_1]] -[def __sph_hankel_2 [link math_toolkit.hankel.sph_hankel sph_hankel_2]] - -[/Airy Functions] -[def __airy_ai [link math_toolkit.airy.ai airy_ai]] -[def __airy_bi [link math_toolkit.airy.bi airy_bi]] -[def __airy_bi_prime [link math_toolkit.airy.bip airy_bi_prime]] -[def __airy_ai_prime [link math_toolkit.airy.aip airy_ai_prime]] - -[/Jacobi Elliptic Functions] -[def __jacobi_elliptic [link math_toolkit.jacobi.jacobi_elliptic jacobi_elliptic]] -[def __jacobi_cd [link math_toolkit.jacobi.jacobi_cd jacobi_cd]] -[def __jacobi_cn [link math_toolkit.jacobi.jacobi_cn jacobi_cn]] -[def __jacobi_cs [link math_toolkit.jacobi.jacobi_cs jacobi_cs]] -[def __jacobi_dc [link math_toolkit.jacobi.jacobi_dc jacobi_dc]] -[def __jacobi_dn [link math_toolkit.jacobi.jacobi_dn jacobi_dn]] -[def __jacobi_ds [link math_toolkit.jacobi.jacobi_ds jacobi_ds]] -[def __jacobi_nd [link math_toolkit.jacobi.jacobi_nd jacobi_nd]] -[def __jacobi_nc [link math_toolkit.jacobi.jacobi_nc jacobi_nc]] -[def __jacobi_ns [link math_toolkit.jacobi.jacobi_ns jacobi_ns]] -[def __jacobi_sd [link math_toolkit.jacobi.jacobi_sd jacobi_sd]] -[def __jacobi_sn [link math_toolkit.jacobi.jacobi_sn jacobi_sn]] -[def __jacobi_sc [link math_toolkit.jacobi.jacobi_sc jacobi_sc]] - -[/sinus cardinals] -[def __sinc_pi [link math_toolkit.sinc.sinc_pi sinc_pi]] -[def __sinhc_pi [link math_toolkit.sinc.sinhc_pi sinhc_pi]] - -[/Inverse hyperbolics] -[def __acosh [link math_toolkit.inv_hyper.acosh acosh]] -[def __asinh [link math_toolkit.inv_hyper.asinh asinh]] -[def __atanh [link math_toolkit.inv_hyper.atanh atanh]] - -[/classify] -[def __fpclassify [link math_toolkit.fpclass fpclassify]] -[def __isfinite [link math_toolkit.fpclass isfinite]] -[def __isnan [link math_toolkit.fpclass isnan]] -[def __isinf [link math_toolkit.fpclass isinf]] -[def __isnormal [link math_toolkit.fpclass isnormal]] -[def __fp_facets [link math_toolkit.fp_facets nonfinite fp_facets]] - -[/utils] -[def __float_next [link math_toolkit.next_float.float_next float_next]] -[def __float_prior [link math_toolkit.next_float.float_prior float_prior]] -[def __nextafter [link math_toolkit.next_float.nextafter nextafter]] -[def __float_advance [link math_toolkit.next_float.float_advance float_advance]] -[def __ulp [link math_toolkit.next_float.ulp ulp]] - -[/powers etc] -[def __expm1 [link math_toolkit.powers.expm1 expm1]] -[def __log1p [link math_toolkit.powers.log1p log1p]] -[def __cbrt [link math_toolkit.powers.cbrt cbrt]] -[def __sqrt1pm1 [link math_toolkit.powers.sqrt1pm1 sqrt1pm1]] -[def __powm1 [link math_toolkit.powers.powm1 powm1]] -[def __hypot [link math_toolkit.powers.hypot hypot]] -[def __pow [link math_toolkit.powers.ct_pow pow]] - -[/zeta] -[def __zeta [link math_toolkit.zetas.zeta zeta]] - -[/expint] -[def __expint_i [link math_toolkit.expint.expint_i zeta]] -[def __expint_n [link math_toolkit.expint.expint_n zeta]] - -[/rounding] -[def __round [link math_toolkit.rounding.round round]] -[def __lround [link math_toolkit.rounding.round round]] -[def __llround [link math_toolkit.rounding.round round]] -[def __trunc [link math_toolkit.rounding.trunc trunc]] -[def __modf [link math_toolkit.rounding.modf modf]] - -[/polynomials] -[def __laguerre [link math_toolkit.sf_poly.laguerre laguerre]] -[def __legendre [link math_toolkit.sf_poly.legendre legendre_p]] -[def __legendre_p [link math_toolkit.sf_poly.legendre legendre_p]] -[def __legendre_q [link math_toolkit.sf_poly.legendre legendre_q]] -[def __legendre_next [link math_toolkit.sf_poly.legendre legendre_next]] -[def __hermite [link math_toolkit.sf_poly.hermite hermite]] - -[/Misc] -[def __expint [link math_toolkit.expint.expint_i expint]] -[def __spherical_harmonic [link math_toolkit.sf_poly.sph_harm spherical_harmonic]] -[def __owens_t [link math_toolkit.owens_t Owens T]] -[def __constants_intro [link math_toolkit.constants_intro constants]] -[def __constants[link math_toolkit.constants constants]] - -[/tools] -[def __tuple [link math_toolkit.internals.tuples boost::math::tuple]] -[def __tuple_type [link math_toolkit.internals.tuples std::pair, std::tuple, boost::tuple or boost::fusion::tuple]] - -[/ distribution non-members] -[def __cdf [link math_toolkit.dist_ref.nmp.cdf Cumulative Distribution Function]] -[def __pdf [link math_toolkit.dist_ref.nmp.pdf Probability Density Function]] -[def __ccdf [link math_toolkit.dist_ref.nmp.ccdf Complement of the Cumulative Distribution Function]] -[def __quantile [link math_toolkit.dist_ref.nmp.quantile Quantile]] -[def __quantile_c [link math_toolkit.dist_ref.nmp.quantile_c Quantile from the complement of the probability]] -[def __mean [link math_toolkit.dist_ref.nmp.mean mean]] -[def __median [link math_toolkit.dist_ref.nmp.median median]] -[def __mode [link math_toolkit.dist_ref.nmp.mode mode]] -[def __skewness [link math_toolkit.dist_ref.nmp.skewness skewness]] -[def __kurtosis [link math_toolkit.dist_ref.nmp.kurtosis kurtosis]] -[def __kurtosis_excess [link math_toolkit.dist_ref.nmp.kurtosis_excess kurtosis_excess]] -[def __variance [link math_toolkit.dist_ref.nmp.variance variance]] -[def __sd [link math_toolkit.dist_ref.nmp.sd standard deviation]] -[def __hazard [link math_toolkit.dist_ref.nmp.hazard Hazard Function]] -[def __chf [link math_toolkit.dist_ref.nmp.chf Cumulative Hazard Function]] -[def __range [link math_toolkit.dist_ref.nmp.range range]] -[def __support [link math_toolkit.dist_ref.nmp.support support]] -[def __algorithms [link math_toolkit.dist_ref.dist_algorithms algorithms]] - -[/ distribution def names end in distrib to avoid clashes] -[def __arcsine_distrib [link math_toolkit.dist_ref.dists.arcsine_dist Arcsine Distribution]] -[def __beta_distrib [link math_toolkit.dist_ref.dists.beta_dist Beta Distribution]] -[def __binomial_distrib [link math_toolkit.dist_ref.dists.binomial_dist Binomial Distribution]] -[def __cauchy_distrib [link math_toolkit.dist_ref.dists.cauchy_dist Cauchy Distribution]] -[def __chi_squared_distrib [link math_toolkit.dist_ref.dists.chi_squared_dist Chi Squared Distribution]] -[def __extreme_distrib [link math_toolkit.dist_ref.dists.extreme_dist Extreme Distributions]] -[def __exp_distrib [link math_toolkit.dist_ref.dists.exp_dist Exponential Distribution]] -[def __F_distrib [link math_toolkit.dist_ref.dists.f_dist Fisher F Distribution]] -[def __gamma_distrib [link math_toolkit.dist_ref.dists.gamma_dist Gamma Distribution]] -[def __geometric_distrib [link math_toolkit.dist_ref.dists.geometric_dist Geometric Distribution]] -[def __hyperexponential_distrib [link math_toolkit.dist_ref.dists.hyperexponential_dist Hyperexponential Distribution]] -[def __hypergeometric_distrib [link math_toolkit.dist_ref.dists.hypergeometric_dist hypergeometric Distribution]] -[def __inverse_gamma_distrib [link math_toolkit.dist_ref.dists.inverse_gamma_dist Inverse Gamma Distribution]] -[def __inverse_gaussian_distrib [link math_toolkit.dist_ref.dists.inverse_gaussian_dist Inverse Gaussian Distribution]] -[def __inverse_chi_squared_distrib [link math_toolkit.dist_ref.dists.inverse_chi_squared_dist Inverse chi squared Distribution]] -[def __laplace_distrib [link math_toolkit.dist_ref.dists.laplace_dist Laplace Distribution]] -[def __logistic_distrib [link math_toolkit.dist_ref.dists.logistic_dist Logistic Distribution]] -[def __lognormal_distrib [link math_toolkit.dist_ref.dists.lognormal_dist Log-normal Distribution]] -[def __negative_binomial_distrib [link math_toolkit.dist_ref.dists.negative_binomial_dist Negative Binomial Distribution]] -[def __non_central_chi_squared_distrib [link math_toolkit.dist_ref.dists.nc_chi_squared_dist Noncentral Chi Squared Distribution]] -[def __non_central_beta_distrib [link math_toolkit.dist_ref.dists.nc_beta_dist Noncentral Beta Distribution]] -[def __non_central_F_distrib [link math_toolkit.dist_ref.dists.nc_f_dist Noncentral F Distribution]] -[def __non_central_T_distrib [link math_toolkit.dist_ref.dists.nc_t_dist Noncentral T Distribution]] -[def __non_central_t_distrib [link math_toolkit.dist_ref.dists.nc_t_dist noncentral T distribution]] -[def __normal_distrib [link math_toolkit.dist_ref.dists.normal_dist Normal Distribution]] -[def __poisson_distrib [link math_toolkit.dist_ref.dists.poisson_dist Poisson Distribution]] -[def __pareto_distrib [link math_toolkit.dist_ref.dists.pareto Pareto Distribution]] -[def __students_t_distrib [link math_toolkit.dist_ref.dists.students_t_dist Students t Distribution]] -[def __skew_normal_distrib [link math_toolkit.dist_ref.dists.skew_normal_dist Skew Normal Distribution]] -[def __weibull_distrib [link math_toolkit.dist_ref.dists.weibull_dist Weibull Distribution]] - -[/links to policy] -[def __Policy [link policy Policy]] [/ Used in distribution template specifications] -[def __policy_section [link policy Policies]] [/ Used in text to refer to.] -[def __policy_class [link math_toolkit.pol_ref.pol_ref_ref policies::policy<>]] -[def __math_undefined [link math_toolkit.pol_ref.assert_undefined mathematically undefined function]] -[def __policy_ref [link math_toolkit.pol_ref policy reference]] -[def __policy_tutorial [link math_toolkit.pol_tutorial policy tutorial]] -[def __policy_defaults [link math_toolkit.pol_tutorial.policy_tut_defaults policy defaults]] -[def __error_policy [link math_toolkit.pol_ref.error_handling_policies error handling policies]] -[def __changing_policy_defaults [link math_toolkit.pol_ref.policy_defaults changing policies defaults]] -[def __math_discrete [link math_toolkit.pol_ref.discrete_quant_ref discrete functions]] -[def __understand_dis_quant [link math_toolkit.pol_tutorial.understand_dis_quant understanding discrete quantiles]] -[def __user_error_handling [link math_toolkit.pol_tutorial.user_def_err_pol user error handling]] -[def __promotion_policy [link math_toolkit.pol_ref.internal_promotion internal promotion policy]] -[def __precision_policy [link math_toolkit.pol_ref.precision_pol precision policy]] -[def __policy_macros [link math_toolkit.pol_ref.policy_defaults Using Macros to Change the Policy Defaults]] - - -[def __usual_accessors __cdf, __pdf, __quantile, __hazard, - __chf, __mean, __median, __mode, __variance, __sd, __skewness, - __kurtosis, __kurtosis_excess, __range and __support] - -[def __real_concept [link math_toolkit.real_concepts real concept]] -[def __next_float [link math_toolkit.next_float Adjacent Floating-Point Values]] - -[/ External links] -[def __gsl [@http://www.gnu.org/software/gsl/ GSL-1.9]] -[def __glibc [@http://www.gnu.org/software/libc/ GNU C Lib]] -[def __hpc [@http://docs.hp.com/en/B9106-90010/index.html HP-UX C Library]] -[def __cephes [@http://www.netlib.org/cephes/ Cephes]] -[def __NTL [@http://www.shoup.net/ntl/ NTL A Library for doing Number Theory]] -[def __NTL_RR [@http://shoup.net/ntl/doc/RR.txt NTL::RR]] -[def __NTL_quad_float [@http://shoup.net/ntl/doc/quad_float.txt NTL::quad_float]] -[def __MPFR [@http://www.mpfr.org/ GNU MPFR library]] -[def __GMP [@http://gmplib.org/ GNU Multiple Precision Arithmetic Library]] -[def __multiprecision [@boost:/libs/multiprecision/doc/html/index.html Boost.Multiprecision]] -[def __cpp_dec_float [@boost:/libs/multiprecision/doc/html/boost_multiprecision/tut/floats/cpp_dec_float.html cpp_dec_float]] -[def __cpp_bin_float [@boost:/libs/multiprecision/doc/html/boost_multiprecision/tut/floats/cpp_bin_float.html cpp_bin_float]] -[def __boost_test [@boost:/libs/test/doc/html/index.html Boost.Test]] -[def __boost_timer [@boost:/libs/timer/doc/index.html Boost.Timer]] -[def __boost_test_fp [@boost:/libs/test/doc/html/boost_test/users_guide/testing_tools/testing_floating_points.html Boost.Test floating-point comparison]] -[def __boost_math_fp [link math_toolkit.float_comparison Boost.Math floating-point utilities]] -[def __float_distance [@boost:/libs/math/doc/html/math_toolkit/next_float/float_distance.html Boost.Math float_distance]] -[def __ulp [@http://en.wikipedia.org/wiki/Unit_in_the_last_place Unit in the last place (ULP)]] -[def __R [@http://www.r-project.org/ The R Project for Statistical Computing]] -[def __godfrey [link godfrey Godfrey]] -[def __pugh [link pugh Pugh]] -[def __NaN [@http://en.wikipedia.org/wiki/NaN NaN]] -[def __errno [@http://en.wikipedia.org/wiki/Errno `::errno`]] -[def __Mathworld [@http://mathworld.wolfram.com Wolfram MathWorld]] -[def __Mathematica [@http://www.wolfram.com/products/mathematica/index.html Wolfram Mathematica]] -[def __WolframAlpha [@http://www.wolframalpha.com/ Wolfram Alpha]] -[def __TOMS748 [@http://portal.acm.org/citation.cfm?id=210111 TOMS Algorithm 748: enclosing zeros of continuous functions]] -[def __TOMS910 [@http://portal.acm.org/citation.cfm?id=1916469 TOMS Algorithm 910: A Portable C++ Multiple-Precision System for Special-Function Calculations]] -[def __why_complements [link why_complements why complements?]] -[def __complements [link math_toolkit.stat_tut.overview.complements complements]] -[def __performance [link perf performance]] -[def __building [link math_toolkit.building building libraries]] -[def __e_float [@http://calgo.acm.org/910.zip e_float (TOMS Algorithm 910)]] -[def __Abramowitz_Stegun M. Abramowitz and I. A. Stegun, Handbook of Mathematical Functions, NBS (1964)] -[def __DMLF [@http://dlmf.nist.gov/ NIST Digital Library of Mathematical Functions]] -[def __floating_point [@http://en.wikipedia.org/wiki/Floating_point Floating point]] -[def __epsilon [@http://en.wikipedia.org/wiki/Machine_epsilon machine epsilon]] -[def __ADL [@http://en.cppreference.com/w/cpp/language/adl Argument Dependent Lookup (ADL)]] -[def __function_template_instantiation [@http://en.cppreference.com/w/cpp/language/function_template Function template instantiation]] -[def __fundamental_types [@http://en.cppreference.com/w/cpp/language/types fundamental types]] -[def __guard_digits [@http://en.wikipedia.org/wiki/Guard_digit guard digits]] -[def __SSE2 [@http://en.wikipedia.org/wiki/SSE2 SSE2 instructions]] -[def __representable [@http://en.wikipedia.org/wiki/Floating_point#Representable_numbers.2C_conversion_and_rounding representable]] -[def __short_float [@http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2016.pdf N2016 short float type]] -[def __random_variate [@http://en.wikipedia.org/wiki/Random_variate random variate]] -[def __random_variable [@http://en.wikipedia.org/wiki/Random_variable random variable]] -[def __probability_distribution [@http://en.wikipedia.org/wiki/Probability_distribution probability_distribution]] -[def __C_math [@http://www.cplusplus.com/reference/cmath/ C math functions]] - -[/ Some composite templates] -[template super[x]''''''[x]''''''] -[template sub[x]''''''[x]''''''] -[template floor[x]'''⌊'''[x]'''⌋'''] -[template floorlr[x][lfloor][x][rfloor]] -[template ceil[x] '''⌈'''[x]'''⌉'''] - -[template header_file[file] [@../../../../[file] [file]]] - -[template optional_policy[] -The final __Policy argument is optional and can be used to -control the behaviour of the function: how it handles errors, -what level of precision to use etc. Refer to the -[link policy policy documentation for more details].] - -[template discrete_quantile_warning[NAME] -[caution -The [NAME] distribution is a discrete distribution: internally, -functions like the `cdf` and `pdf` are treated "as if" they are continuous -functions, but in reality the results returned from these functions -only have meaning if an integer value is provided for the random variate -argument. - -The quantile function will by default return an integer result that has been -/rounded outwards/. That is to say lower quantiles (where the probability is -less than 0.5) are rounded downward, and upper quantiles (where the probability -is greater than 0.5) are rounded upwards. This behaviour -ensures that if an X% quantile is requested, then /at least/ the requested -coverage will be present in the central region, and /no more than/ -the requested coverage will be present in the tails. - -This behaviour can be changed so that the quantile functions are rounded -differently, or even return a real-valued result using -[link math_toolkit.pol_overview Policies]. It is strongly -recommended that you read the tutorial -[link math_toolkit.pol_tutorial.understand_dis_quant -Understanding Quantiles of Discrete Distributions] before -using the quantile function on the [NAME] distribution. The -[link math_toolkit.pol_ref.discrete_quant_ref reference docs] -describe how to change the rounding policy -for these distributions. -] [/ caution] - -] [/ template discrete_quantile_warning] - -[block '''''' -This manual is also available in -[@http://sourceforge.net/projects/boost/files/boost-docs/ -printer friendly PDF format], -and as a CD ISBN 0-9504833-2-X 978-0-9504833-2-0, Classification 519.2-dc22. -''''''] - -[mathpart overview Overview] -[include overview/overview.qbk] -[include overview/structure.qbk] [/getting about, directory and file structure.] -[include overview/result_type_calc.qbk] -[include overview/error_handling.qbk] - -[section:compilers_overview Compilers] -[compilers_overview] -[endsect] -[include overview/config_macros.qbk] -[section:intro_pol_overview Policies] -[policy_overview] -[endsect] - -[include overview/thread_safety.qbk] - -[section:perf_over1 Performance] -[performance_overview] -[endsect] -[include overview/building.qbk] -[section:history1 History and What's New] -[history] -[endsect] -[section:overview_tr1 C99 and C++ TR1 C-style Functions] -[tr1_overview] -[endsect] -[include overview/faq.qbk] -[include overview/contact_info.qbk] - -[endmathpart] [/section:main_overview Overview] - -[mathpart utils Floating Point Utilities] -[include fp_utilities/rounding_func.qbk] -[include fp_utilities/fpclassify.qbk] -[include fp_utilities/sign.qbk] -[include fp_utilities/fp_facets.qbk] -[include fp_utilities/float_next.qbk] -[include fp_utilities/float_comparison.qbk] -[endmathpart] - -[mathpart cstdfloat..Specified-width floating-point typedefs] -[include cstdfloat/cstdfloat.qbk] -[endmathpart] [/mathpart cstdfloat..Fixed-width floating-point types] - -[include constants/constants.qbk] - -[mathpart dist Statistical Distributions and Functions] -[include distributions/dist_tutorial.qbk] -[include distributions/dist_reference.qbk] [/includes all individual distribution.qbk files] -[endmathpart] [/section:dist Statistical Distributions and Functions] - -[mathpart special Special Functions] - -[include sf/number_series.qbk] - -[section:sf_gamma Gamma Functions] -[include sf/tgamma.qbk] -[include sf/lgamma.qbk] -[include sf/digamma.qbk] -[include sf/trigamma.qbk] -[include sf/polygamma.qbk] -[include sf/gamma_ratios.qbk] -[include sf/igamma.qbk] -[include sf/igamma_inv.qbk] -[include sf/gamma_derivatives.qbk] -[endsect] [/section:sf_gamma Gamma Functions] - -[include sf/factorials.qbk] - -[section:sf_beta Beta Functions] -[include sf/beta.qbk] -[include sf/ibeta.qbk] -[include sf/ibeta_inv.qbk] -[include sf/beta_derivative.qbk] -[endsect] [/section:sf_beta Beta Functions] - -[section:sf_erf Error Functions] -[include sf/erf.qbk] -[include sf/erf_inv.qbk] -[endsect] [/section:sf_erf Error Functions] - -[section:sf_poly Polynomials] -[include sf/legendre.qbk] -[include sf/laguerre.qbk] -[include sf/hermite.qbk] -[include sf/spherical_harmonic.qbk] -[endsect] [/section:sf_poly Polynomials] - -[section:bessel Bessel Functions] -[include sf/bessel_introduction.qbk] -[include sf/bessel_jy.qbk] -[include sf/bessel_ik.qbk] -[include sf/bessel_spherical.qbk] -[include sf/bessel_prime.qbk] -[endsect] [/section:bessel Bessel Functions] - -[/Hankel functions] -[include sf/hankel.qbk] - -[/Airy Functions] -[include sf/airy.qbk] - -[section:ellint Elliptic Integrals] -[include sf/ellint_introduction.qbk] -[include sf/ellint_carlson.qbk] -[include sf/ellint_legendre.qbk] -[endsect] [/section:ellint Elliptic Integrals] - -[include sf/jacobi_elliptic.qbk] - -[section:zetas Zeta Functions] -[include sf/zeta.qbk] -[endsect] - -[include sf/expint.qbk] - -[include sf/powers.qbk] -[include sf/sinc.qbk] -[include sf/inv_hyper.qbk] - -[include sf/owens_t.qbk] - -[endmathpart] [/section:special Special Functions] - -[mathpart extern_c TR1 and C99 external "C" Functions] -[section:main_tr1 C99 and TR1 C Functions Overview] -[tr1_overview] -[endsect] -[include tr1/c99_ref.qbk] -[include tr1/tr1_ref.qbk] -[endmathpart] - -[include complex/complex-tr1.qbk] -[include quaternion/math-quaternion.qbk] -[include octonion/math-octonion.qbk] -[include gcd/math-gcd.qbk] - -[mathpart rooting Tools: Root Finding \& Minimization Algorithms, Polynomial Arithmetic \& Evaluation] -[section:roots Root finding] -[include roots/roots_overview.qbk] -[include internals/polynomial.qbk] -[include internals/rational.qbk] -[endsect] [/section:roots Root finding] - -[endmathpart] [/mathpart roots Root Finding Algorithms] - -[mathpart internals Internal Details: Series, Rationals and Continued Fractions, Testing, and Development Tools] - -[include internals/internals_overview.qbk] -[section:internals Internal tools] -[include internals/series.qbk] -[include internals/fraction.qbk] -[/include internals/rational.qbk] [/moved to tools] -[include internals/tuple.qbk] -[/include internals/polynomial.qbk] [/moved to tools] -[include internals/minimax.qbk] -[include internals/relative_error.qbk] [/ uncertainty of floating-point calculations.] -[include internals/test_data.qbk] -[endsect] [/section:internals] - -[endmathpart] [/mathpart internals Internal Details: Series, Rationals and Continued Fractions, Testing, and Development Tools] - -[mathpart using_udt Use with User-Defined Floating-Point Types - Boost.Multiprecision and others] -[include concepts/concepts.qbk] -[endmathpart] [/section:using_udt Use with User Defined Floating-Point Types] - -[include policies/policy.qbk] - -[include performance/performance.qbk] - -[mathpart backgrounders Backgrounders] -[include background/implementation.qbk] -[include background/special_tut.qbk] -[include background/error.qbk] [/relative error NOT handling] -[include background/lanczos.qbk] -[include background/remez.qbk] -[include background/references.qbk] - -[section:logs_and_tables Error logs and tables] - -[section:all_table Tables of Error Rates for all Functions] - -[all_tables] - -[endsect] - -[section:logs Error Logs For Error Rate Tables] - -[all_errors] - -[endsect] - -[endsect] - -[endmathpart] [/section:backgrounders Backgrounders] - -[mathpart status Library Status] -[section:history2 History and What's New] -[history] -[endsect] -[include overview/issues.qbk] -[include overview/credits.qbk] -[/include test_HTML4_symbols.qbk] -[/include test_Latin1_symbols.qbk] - -[endmathpart] [/section:status Status and Roadmap] - -[mathpart indexes Indexes] - -[named_index function_name Function Index] -[named_index class_name Class Index] -[named_index typedef_name Typedef Index] -[named_index macro_name Macro Index] -[index] - -[endmathpart] - -[/ math.qbk - Copyright 2008, 2010, 2012, 2013, 2014, 2015 John Maddock and Paul A. Bristow. - 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). -] - - - - diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb1.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb1.jpeg deleted file mode 100644 index f92d5d32..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb1.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb10.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb10.jpeg deleted file mode 100644 index 18b84963..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb10.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb11.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb11.jpeg deleted file mode 100644 index 669becb8..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb11.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb12.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb12.jpeg deleted file mode 100644 index d82e39dc..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb12.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb13.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb13.jpeg deleted file mode 100644 index cbf5a2b7..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb13.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb14.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb14.jpeg deleted file mode 100644 index 8be88b58..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb14.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb15.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb15.jpeg deleted file mode 100644 index 2665fe61..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb15.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb16.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb16.jpeg deleted file mode 100644 index 87e649ec..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb16.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb17.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb17.jpeg deleted file mode 100644 index 76d37327..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb17.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb18.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb18.jpeg deleted file mode 100644 index 5ba298dc..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb18.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb19.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb19.jpeg deleted file mode 100644 index 2a86c455..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb19.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb2.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb2.jpeg deleted file mode 100644 index 5ba298dc..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb2.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb20.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb20.jpeg deleted file mode 100644 index 0144c526..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb20.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb21.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb21.jpeg deleted file mode 100644 index c166bebd..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb21.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb3.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb3.jpeg deleted file mode 100644 index 18b84963..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb3.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb4.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb4.jpeg deleted file mode 100644 index 669becb8..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb4.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb5.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb5.jpeg deleted file mode 100644 index d82e39dc..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb5.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb6.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb6.jpeg deleted file mode 100644 index 8f1e3800..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb6.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb7.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb7.jpeg deleted file mode 100644 index f8535b36..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb7.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb8.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb8.jpeg deleted file mode 100644 index 032edb33..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb8.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/graphics/octonion_blurb9.jpeg b/boost/libs/math/doc/octonion/graphics/octonion_blurb9.jpeg deleted file mode 100644 index 6c3818ee..00000000 Binary files a/boost/libs/math/doc/octonion/graphics/octonion_blurb9.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/octonion/math-octonion.qbk b/boost/libs/math/doc/octonion/math-octonion.qbk deleted file mode 100644 index 40a238b9..00000000 --- a/boost/libs/math/doc/octonion/math-octonion.qbk +++ /dev/null @@ -1,991 +0,0 @@ - -[def __R ['[*R]]] -[def __C ['[*C]]] -[def __H ['[*H]]] -[def __O ['[*O]]] -[def __R3 ['[*'''R3''']]] -[def __R4 ['[*'''R4''']]] -[def __octulple ('''α,β,γ,δ,ε,ζ,η,θ''')] -[def __oct_formula ['[^o = '''α + βi + γj + δk + εe' + ζi' + ηj' + θk' ''']]] -[def __oct_complex_formula ['[^o = ('''α + βi) + (γ + δi)j + (ε + ζi)e' + (η - θi)j' ''']]] -[def __oct_quat_formula ['[^o = ('''α + βi + γj + δk) + (ε + ζi + ηj - θj)e' ''']]] -[def __oct_not_equal ['[^x(yz) '''≠''' (xy)z]]] - -[mathpart octonions Octonions] - -[section:oct_overview Overview] - -Octonions, like [link quaternions quaternions], are a relative of complex numbers. - -Octonions see some use in theoretical physics. - -In practical terms, an octonion is simply an octuple of real numbers __octulple, -which we can write in the form __oct_formula, where ['[^i]], ['[^j]] and ['[^k]] -are the same objects as for quaternions, and ['[^e']], ['[^i']], ['[^j']] and ['[^k']] -are distinct objects which play essentially the same kind of role as ['[^i]] (or ['[^j]] or ['[^k]]). - -Addition and a multiplication is defined on the set of octonions, -which generalize their quaternionic counterparts. The main novelty this time -is that [*the multiplication is not only not commutative, is now not even -associative] (i.e. there are octonions ['[^x]], ['[^y]] and ['[^z]] such that __oct_not_equal). -A way of remembering things is by using the following multiplication table: - -[$../octonion/graphics/octonion_blurb17.jpeg] - -Octonions (and their kin) are described in far more details in this other -[@../quaternion/TQE.pdf document] -(with [@../quaternion/TQE_EA.pdf errata and addenda]). - -Some traditional constructs, such as the exponential, carry over without too -much change into the realms of octonions, but other, such as taking a square root, -do not (the fact that the exponential has a closed form is a result of the -author, but the fact that the exponential exists at all for octonions is known -since quite a long time ago). - -[endsect] - -[section:oct_header Header File] - -The interface and implementation are both supplied by the header file -[@../../../../boost/math/octonion.hpp octonion.hpp]. - -[endsect] - -[section:oct_synopsis Synopsis] - - namespace boost{ namespace math{ - - template class ``[link math_toolkit.octonion octonion]``; - template<> class ``[link math_toolkit.oct_specialization octonion]``; - template<> class ``[link math_octonion_double octonion]``; - template<> class ``[link math_octonion_long_double octonion]``; - - // operators - - template octonion ``[link math_toolkit.oct_non_mem.binary_addition_operators operator +]`` (T const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_addition_operators operator +]`` (octonion const & lhs, T const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_addition_operators operator +]`` (::std::complex const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_addition_operators operator +]`` (octonion const & lhs, ::std::complex const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_addition_operators operator +]`` (::boost::math::quaternion const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_addition_operators operator +]`` (octonion const & lhs, ::boost::math::quaternion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_addition_operators operator +]`` (octonion const & lhs, octonion const & rhs); - - template octonion ``[link math_toolkit.oct_non_mem.binary_subtraction_operators operator -]`` (T const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_subtraction_operators operator -]`` (octonion const & lhs, T const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_subtraction_operators operator -]`` (::std::complex const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_subtraction_operators operator -]`` (octonion const & lhs, ::std::complex const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_subtraction_operators operator -]`` (::boost::math::quaternion const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_subtraction_operators operator -]`` (octonion const & lhs, ::boost::math::quaternion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_subtraction_operators operator -]`` (octonion const & lhs, octonion const & rhs); - - template octonion ``[link math_toolkit.oct_non_mem.binary_multiplication_operators operator *]`` (T const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_multiplication_operators operator *]`` (octonion const & lhs, T const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_multiplication_operators operator *]`` (::std::complex const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_multiplication_operators operator *]`` (octonion const & lhs, ::std::complex const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_multiplication_operators operator *]`` (::boost::math::quaternion const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_multiplication_operators operator *]`` (octonion const & lhs, ::boost::math::quaternion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_multiplication_operators operator *]`` (octonion const & lhs, octonion const & rhs); - - template octonion ``[link math_toolkit.oct_non_mem.binary_division_operators operator /]`` (T const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_division_operators operator /]`` (octonion const & lhs, T const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_division_operators operator /]`` (::std::complex const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_division_operators operator /]`` (octonion const & lhs, ::std::complex const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_division_operators operator /]`` (::boost::math::quaternion const & lhs, octonion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_division_operators operator /]`` (octonion const & lhs, ::boost::math::quaternion const & rhs); - template octonion ``[link math_toolkit.oct_non_mem.binary_division_operators operator /]`` (octonion const & lhs, octonion const & rhs); - - template octonion ``[link math_toolkit.oct_non_mem.unary_plus_and_minus_operators operator +]`` (octonion const & o); - template octonion ``[link math_toolkit.oct_non_mem.unary_plus_and_minus_operators operator -]`` (octonion const & o); - - template bool ``[link math_toolkit.oct_non_mem.binary_equality_operators operator ==]`` (T const & lhs, octonion const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_equality_operators operator ==]`` (octonion const & lhs, T const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_equality_operators operator ==]`` (::std::complex const & lhs, octonion const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_equality_operators operator ==]`` (octonion const & lhs, ::std::complex const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_equality_operators operator ==]`` (::boost::math::quaternion const & lhs, octonion const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_equality_operators operator ==]`` (octonion const & lhs, ::boost::math::quaternion const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_equality_operators operator ==]`` (octonion const & lhs, octonion const & rhs); - - template bool ``[link math_toolkit.oct_non_mem.binary_inequality_operators operator !=]`` (T const & lhs, octonion const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_inequality_operators operator !=]`` (octonion const & lhs, T const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_inequality_operators operator !=]`` (::std::complex const & lhs, octonion const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_inequality_operators operator !=]`` (octonion const & lhs, ::std::complex const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_inequality_operators operator !=]`` (::boost::math::quaternion const & lhs, octonion const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_inequality_operators operator !=]`` (octonion const & lhs, ::boost::math::quaternion const & rhs); - template bool ``[link math_toolkit.oct_non_mem.binary_inequality_operators operator !=]`` (octonion const & lhs, octonion const & rhs); - - template - ::std::basic_istream & ``[link math_toolkit.oct_non_mem.stream_extractor operator >>]`` (::std::basic_istream & is, octonion & o); - - template - ::std::basic_ostream & ``[link math_toolkit.oct_non_mem.stream_inserter operator <<]`` (::std::basic_ostream & os, octonion const & o); - - // values - - template T ``[link math_toolkit.oct_value_ops.real_and_unreal real]``(octonion const & o); - template octonion ``[link math_toolkit.oct_value_ops.real_and_unreal unreal]``(octonion const & o); - - template T ``[link math_toolkit.oct_value_ops.sup sup]``(octonion const & o); - template T ``[link math_toolkit.oct_value_ops.l1 l1]``(octonionconst & o); - template T ``[link math_toolkit.oct_value_ops.abs abs]``(octonion const & o); - template T ``[link math_toolkit.oct_value_ops.norm norm]``(octonionconst & o); - template octonion ``[link math_toolkit.oct_value_ops.conj conj]``(octonion const & o); - - template octonion ``[link math_toolkit.oct_create spherical]``(T const & rho, T const & theta, T const & phi1, T const & phi2, T const & phi3, T const & phi4, T const & phi5, T const & phi6); - template octonion ``[link math_toolkit.oct_create multipolar]``(T const & rho1, T const & theta1, T const & rho2, T const & theta2, T const & rho3, T const & theta3, T const & rho4, T const & theta4); - template octonion ``[link math_toolkit.oct_create cylindrical]``(T const & r, T const & angle, T const & h1, T const & h2, T const & h3, T const & h4, T const & h5, T const & h6); - - // transcendentals - - template octonion ``[link math_toolkit.oct_trans.exp exp]``(octonion const & o); - template octonion ``[link math_toolkit.oct_trans.cos cos]``(octonion const & o); - template octonion ``[link math_toolkit.oct_trans.sin sin]``(octonion const & o); - template octonion ``[link math_toolkit.oct_trans.tan tan]``(octonion const & o); - template octonion ``[link math_toolkit.oct_trans.cosh cosh]``(octonion const & o); - template octonion ``[link math_toolkit.oct_trans.sinh sinh]``(octonion const & o); - template octonion ``[link math_toolkit.oct_trans.tanh tanh]``(octonion const & o); - - template octonion ``[link math_toolkit.oct_trans.pow pow]``(octonion const & o, int n); - - } } // namespaces - -[endsect] - -[section:octonion Template Class octonion] - - namespace boost{ namespace math { - - template - class octonion - { - public: - typedef T value_type; - - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(T const & requested_a = T(), T const & requested_b = T(), T const & requested_c = T(), T const & requested_d = T(), T const & requested_e = T(), T const & requested_f = T(), T const & requested_g = T(), T const & requested_h = T()); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(::std::complex const & z0, ::std::complex const & z1 = ::std::complex(), ::std::complex const & z2 = ::std::complex(), ::std::complex const & z3 = ::std::complex()); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(::boost::math::quaternion const & q0, ::boost::math::quaternion const & q1 = ::boost::math::quaternion()); - template - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(octonion const & a_recopier); - - T ``[link math_toolkit.oct_mem_fun.real_and_unreal_parts real]``() const; - octonion ``[link math_toolkit.oct_mem_fun.real_and_unreal_parts unreal]``() const; - - T ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_1]``() const; - T ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_2]``() const; - T ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_3]``() const; - T ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_4]``() const; - T ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_5]``() const; - T ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_6]``() const; - T ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_7]``() const; - T ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_8]``() const; - - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_1]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_2]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_3]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_4]``() const; - - ::boost::math::quaternion ``[link math_toolkit.oct_mem_fun.individual_quaternion_components H_component_1]``() const; - ::boost::math::quaternion ``[link math_toolkit.oct_mem_fun.individual_quaternion_components H_component_2]``() const; - - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (octonion const & a_affecter); - template - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (octonion const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (T const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (::std::complex const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (::boost::math::quaternion const & a_affecter); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (T const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (T const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (T const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (T const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (octonion const & rhs); - }; - - } } // namespaces - -[endsect] - -[section:oct_specialization Octonion Specializations] - - namespace boost{ namespace math{ - - template<> - class octonion - { - public: - typedef float value_type; - - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(float const & requested_a = 0.0f, float const & requested_b = 0.0f, float const & requested_c = 0.0f, float const & requested_d = 0.0f, float const & requested_e = 0.0f, float const & requested_f = 0.0f, float const & requested_g = 0.0f, float const & requested_h = 0.0f); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(::std::complex const & z0, ::std::complex const & z1 = ::std::complex(), ::std::complex const & z2 = ::std::complex(), ::std::complex const & z3 = ::std::complex()); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(::boost::math::quaternion const & q0, ::boost::math::quaternion const & q1 = ::boost::math::quaternion()); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(octonion const & a_recopier); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(octonion const & a_recopier); - - float ``[link math_toolkit.oct_mem_fun.real_and_unreal_parts real]``() const; - octonion ``[link math_toolkit.oct_mem_fun.real_and_unreal_parts unreal]``() const; - - float ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_1]``() const; - float ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_2]``() const; - float ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_3]``() const; - float ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_4]``() const; - float ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_5]``() const; - float ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_6]``() const; - float ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_7]``() const; - float ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_8]``() const; - - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_1]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_2]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_3]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_4]``() const; - - ::boost::math::quaternion ``[link math_toolkit.oct_mem_fun.individual_quaternion_components H_component_1]``() const; - ::boost::math::quaternion ``[link math_toolkit.oct_mem_fun.individual_quaternion_components H_component_2]``() const; - - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (octonion const & a_affecter); - template - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (octonion const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (float const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (::std::complex const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (::boost::math::quaternion const & a_affecter); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (float const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (float const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (float const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (float const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (octonion const & rhs); - }; - -[#math_octonion_double] - - template<> - class octonion - { - public: - typedef double value_type; - - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(double const & requested_a = 0.0, double const & requested_b = 0.0, double const & requested_c = 0.0, double const & requested_d = 0.0, double const & requested_e = 0.0, double const & requested_f = 0.0, double const & requested_g = 0.0, double const & requested_h = 0.0); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(::std::complex const & z0, ::std::complex const & z1 = ::std::complex(), ::std::complex const & z2 = ::std::complex(), ::std::complex const & z3 = ::std::complex()); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(::boost::math::quaternion const & q0, ::boost::math::quaternion const & q1 = ::boost::math::quaternion()); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(octonion const & a_recopier); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(octonion const & a_recopier); - - double ``[link math_toolkit.oct_mem_fun.real_and_unreal_parts real]``() const; - octonion ``[link math_toolkit.oct_mem_fun.real_and_unreal_parts unreal]``() const; - - double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_1]``() const; - double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_2]``() const; - double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_3]``() const; - double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_4]``() const; - double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_5]``() const; - double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_6]``() const; - double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_7]``() const; - double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_8]``() const; - - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_1]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_2]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_3]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_4]``() const; - - ::boost::math::quaternion ``[link math_toolkit.oct_mem_fun.individual_quaternion_components H_component_1]``() const; - ::boost::math::quaternion ``[link math_toolkit.oct_mem_fun.individual_quaternion_components H_component_2]``() const; - - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (octonion const & a_affecter); - template - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (octonion const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (double const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (::std::complex const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (::boost::math::quaternion const & a_affecter); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (double const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (double const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (double const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (double const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (octonion const & rhs); - }; - -[#math_octonion_long_double] - - template<> - class octonion - { - public: - typedef long double value_type; - - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(long double const & requested_a = 0.0L, long double const & requested_b = 0.0L, long double const & requested_c = 0.0L, long double const & requested_d = 0.0L, long double const & requested_e = 0.0L, long double const & requested_f = 0.0L, long double const & requested_g = 0.0L, long double const & requested_h = 0.0L); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``( ::std::complex const & z0, ::std::complex const & z1 = ::std::complex(), ::std::complex const & z2 = ::std::complex(), ::std::complex const & z3 = ::std::complex()); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``( ::boost::math::quaternion const & q0, ::boost::math::quaternion const & z1 = ::boost::math::quaternion()); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(octonion const & a_recopier); - explicit ``[link math_toolkit.oct_mem_fun.constructors octonion]``(octonion const & a_recopier); - - long double ``[link math_toolkit.oct_mem_fun.real_and_unreal_parts real]``() const; - octonion ``[link math_toolkit.oct_mem_fun.real_and_unreal_parts unreal]``() const; - - long double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_1]``() const; - long double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_2]``() const; - long double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_3]``() const; - long double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_4]``() const; - long double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_5]``() const; - long double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_6]``() const; - long double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_7]``() const; - long double ``[link math_toolkit.oct_mem_fun.individual_real_components R_component_8]``() const; - - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_1]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_2]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_3]``() const; - ::std::complex ``[link math_toolkit.oct_mem_fun.individual_complex_components C_component_4]``() const; - - ::boost::math::quaternion ``[link math_toolkit.oct_mem_fun.individual_quaternion_components H_component_1]``() const; - ::boost::math::quaternion ``[link math_toolkit.oct_mem_fun.individual_quaternion_components H_component_2]``() const; - - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (octonion const & a_affecter); - template - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (octonion const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (long double const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (::std::complex const & a_affecter); - octonion & ``[link math_toolkit.oct_mem_fun.assignment_operators operator =]`` (::boost::math::quaternion const & a_affecter); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (long double const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator +=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (long double const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator -=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (long double const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator *=]`` (octonion const & rhs); - - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (long double const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (::std::complex const & rhs); - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (::boost::math::quaternion const & rhs); - template - octonion & ``[link math_toolkit.oct_mem_fun.other_member_operators operator /=]`` (octonion const & rhs); - }; - - } } // namespaces - -[endsect] - -[section:oct_typedefs Octonion Member Typedefs] - -[*value_type] - -Template version: - - typedef T value_type; - -Float specialization version: - - typedef float value_type; - -Double specialization version: - - typedef double value_type; - -Long double specialization version: - - typedef long double value_type; - -These provide easy acces to the type the template is built upon. - -[endsect] - -[section:oct_mem_fun Octonion Member Functions] - -[h3 Constructors] - -Template version: - - explicit octonion(T const & requested_a = T(), T const & requested_b = T(), T const & requested_c = T(), T const & requested_d = T(), T const & requested_e = T(), T const & requested_f = T(), T const & requested_g = T(), T const & requested_h = T()); - explicit octonion(::std::complex const & z0, ::std::complex const & z1 = ::std::complex(), ::std::complex const & z2 = ::std::complex(), ::std::complex const & z3 = ::std::complex()); - explicit octonion(::boost::math::quaternion const & q0, ::boost::math::quaternion const & q1 = ::boost::math::quaternion()); - template - explicit octonion(octonion const & a_recopier); - -Float specialization version: - - explicit octonion(float const & requested_a = 0.0f, float const & requested_b = 0.0f, float const & requested_c = 0.0f, float const & requested_d = 0.0f, float const & requested_e = 0.0f, float const & requested_f = 0.0f, float const & requested_g = 0.0f, float const & requested_h = 0.0f); - explicit octonion(::std::complex const & z0, ::std::complex const & z1 = ::std::complex(), ::std::complex const & z2 = ::std::complex(), ::std::complex const & z3 = ::std::complex()); - explicit octonion(::boost::math::quaternion const & q0, ::boost::math::quaternion const & q1 = ::boost::math::quaternion()); - explicit octonion(octonion const & a_recopier); - explicit octonion(octonion const & a_recopier); - -Double specialization version: - - explicit octonion(double const & requested_a = 0.0, double const & requested_b = 0.0, double const & requested_c = 0.0, double const & requested_d = 0.0, double const & requested_e = 0.0, double const & requested_f = 0.0, double const & requested_g = 0.0, double const & requested_h = 0.0); - explicit octonion(::std::complex const & z0, ::std::complex const & z1 = ::std::complex(), ::std::complex const & z2 = ::std::complex(), ::std::complex const & z3 = ::std::complex()); - explicit octonion(::boost::math::quaternion const & q0, ::boost::math::quaternion const & q1 = ::boost::math::quaternion()); - explicit octonion(octonion const & a_recopier); - explicit octonion(octonion const & a_recopier); - -Long double specialization version: - - explicit octonion(long double const & requested_a = 0.0L, long double const & requested_b = 0.0L, long double const & requested_c = 0.0L, long double const & requested_d = 0.0L, long double const & requested_e = 0.0L, long double const & requested_f = 0.0L, long double const & requested_g = 0.0L, long double const & requested_h = 0.0L); - explicit octonion( ::std::complex const & z0, ::std::complex const & z1 = ::std::complex(), ::std::complex const & z2 = ::std::complex(), ::std::complex const & z3 = ::std::complex()); - explicit octonion(::boost::math::quaternion const & q0, ::boost::math::quaternion const & q1 = ::boost::math::quaternion()); - explicit octonion(octonion const & a_recopier); - explicit octonion(octonion const & a_recopier); - -A default constructor is provided for each form, which initializes each component -to the default values for their type (i.e. zero for floating numbers). -This constructor can also accept one to eight base type arguments. -A constructor is also provided to build octonions from one to four complex numbers -sharing the same base type, and another taking one or two quaternions -sharing the same base type. The unspecialized template also sports a -templarized copy constructor, while the specialized forms have copy -constructors from the other two specializations, which are explicit -when a risk of precision loss exists. For the unspecialized form, -the base type's constructors must not throw. - -Destructors and untemplated copy constructors (from the same type) -are provided by the compiler. Converting copy constructors make use -of a templated helper function in a "detail" subnamespace. - -[h3 Other member functions] - -[h4 Real and Unreal Parts] - - T real() const; - octonion unreal() const; - -Like complex number, octonions do have a meaningful notion of "real part", -but unlike them there is no meaningful notion of "imaginary part". -Instead there is an "unreal part" which itself is a octonion, -and usually nothing simpler (as opposed to the complex number case). -These are returned by the first two functions. - -[h4 Individual Real Components] - - T R_component_1() const; - T R_component_2() const; - T R_component_3() const; - T R_component_4() const; - T R_component_5() const; - T R_component_6() const; - T R_component_7() const; - T R_component_8() const; - -A octonion having eight real components, these are returned by -these eight functions. Hence real and R_component_1 return the same value. - -[h4 Individual Complex Components] - - ::std::complex C_component_1() const; - ::std::complex C_component_2() const; - ::std::complex C_component_3() const; - ::std::complex C_component_4() const; - -A octonion likewise has four complex components. Actually, octonions -are indeed a (left) vector field over the complexes, but beware, as -for any octonion __oct_formula we also have __oct_complex_formula -(note the [*minus] sign in the last factor). -What the C_component_n functions return, however, are the complexes -which could be used to build the octonion using the constructor, and -[*not] the components of the octonion on the basis ['[^(1, j, e', j')]]. - -[h4 Individual Quaternion Components] - - ::boost::math::quaternion H_component_1() const; - ::boost::math::quaternion H_component_2() const; - -Likewise, for any octonion __oct_formula we also have __oct_quat_formula, though there -is no meaningful vector-space-like structure based on the quaternions. -What the H_component_n functions return are the quaternions which -could be used to build the octonion using the constructor. - -[h3 Octonion Member Operators] -[h4 Assignment Operators] - - octonion & operator = (octonion const & a_affecter); - template - octonion & operator = (octonion const & a_affecter); - octonion & operator = (T const & a_affecter); - octonion & operator = (::std::complex const & a_affecter); - octonion & operator = (::boost::math::quaternion const & a_affecter); - -These perform the expected assignment, with type modification if -necessary (for instance, assigning from a base type will set the -real part to that value, and all other components to zero). -For the unspecialized form, the base type's assignment operators must not throw. - -[h4 Other Member Operators] - - octonion & operator += (T const & rhs) - octonion & operator += (::std::complex const & rhs); - octonion & operator += (::boost::math::quaternion const & rhs); - template - octonion & operator += (octonion const & rhs); - -These perform the mathematical operation `(*this)+rhs` and store the result in -`*this`. The unspecialized form has exception guards, which the specialized -forms do not, so as to insure exception safety. For the unspecialized form, -the base type's assignment operators must not throw. - - octonion & operator -= (T const & rhs) - octonion & operator -= (::std::complex const & rhs); - octonion & operator -= (::boost::math::quaternion const & rhs); - template - octonion & operator -= (octonion const & rhs); - -These perform the mathematical operation `(*this)-rhs` and store the result -in `*this`. The unspecialized form has exception guards, which the -specialized forms do not, so as to insure exception safety. -For the unspecialized form, the base type's assignment operators must not throw. - - octonion & operator *= (T const & rhs) - octonion & operator *= (::std::complex const & rhs); - octonion & operator *= (::boost::math::quaternion const & rhs); - template - octonion & operator *= (octonion const & rhs); - -These perform the mathematical operation `(*this)*rhs` in this order -(order is important as multiplication is not commutative for octonions) -and store the result in `*this`. The unspecialized form has exception guards, -which the specialized forms do not, so as to insure exception safety. -For the unspecialized form, the base type's assignment operators must -not throw. Also, for clarity's sake, you should always group the -factors in a multiplication by groups of two, as the multiplication is -not even associative on the octonions (though there are of course cases -where this does not matter, it usually does). - - octonion & operator /= (T const & rhs) - octonion & operator /= (::std::complex const & rhs); - octonion & operator /= (::boost::math::quaternion const & rhs); - template - octonion & operator /= (octonion const & rhs); - -These perform the mathematical operation `(*this)*inverse_of(rhs)` -in this order (order is important as multiplication is not commutative -for octonions) and store the result in `*this`. The unspecialized form -has exception guards, which the specialized forms do not, so as to -insure exception safety. For the unspecialized form, the base -type's assignment operators must not throw. As for the multiplication, -remember to group any two factors using parenthesis. - -[endsect] - -[section:oct_non_mem Octonion Non-Member Operators] - -[h4 Unary Plus and Minus Operators] - - template octonion operator + (octonion const & o); - -This unary operator simply returns o. - - template octonion operator - (octonion const & o); - -This unary operator returns the opposite of o. - -[h4 Binary Addition Operators] - - template octonion operator + (T const & lhs, octonion const & rhs); - template octonion operator + (octonion const & lhs, T const & rhs); - template octonion operator + (::std::complex const & lhs, octonion const & rhs); - template octonion operator + (octonion const & lhs, ::std::complex const & rhs); - template octonion operator + (::boost::math::quaternion const & lhs, octonion const & rhs); - template octonion operator + (octonion const & lhs, ::boost::math::quaternion const & rhs); - template octonion operator + (octonion const & lhs, octonion const & rhs); - -These operators return `octonion(lhs) += rhs`. - -[h4 Binary Subtraction Operators] - - template octonion operator - (T const & lhs, octonion const & rhs); - template octonion operator - (octonion const & lhs, T const & rhs); - template octonion operator - (::std::complex const & lhs, octonion const & rhs); - template octonion operator - (octonion const & lhs, ::std::complex const & rhs); - template octonion operator - (::boost::math::quaternion const & lhs, octonion const & rhs); - template octonion operator - (octonion const & lhs, ::boost::math::quaternion const & rhs); - template octonion operator - (octonion const & lhs, octonion const & rhs); - -These operators return `octonion(lhs) -= rhs`. - -[h4 Binary Multiplication Operators] - - template octonion operator * (T const & lhs, octonion const & rhs); - template octonion operator * (octonion const & lhs, T const & rhs); - template octonion operator * (::std::complex const & lhs, octonion const & rhs); - template octonion operator * (octonion const & lhs, ::std::complex const & rhs); - template octonion operator * (::boost::math::quaternion const & lhs, octonion const & rhs); - template octonion operator * (octonion const & lhs, ::boost::math::quaternion const & rhs); - template octonion operator * (octonion const & lhs, octonion const & rhs); - -These operators return `octonion(lhs) *= rhs`. - -[h4 Binary Division Operators] - - template octonion operator / (T const & lhs, octonion const & rhs); - template octonion operator / (octonion const & lhs, T const & rhs); - template octonion operator / (::std::complex const & lhs, octonion const & rhs); - template octonion operator / (octonion const & lhs, ::std::complex const & rhs); - template octonion operator / (::boost::math::quaternion const & lhs, octonion const & rhs); - template octonion operator / (octonion const & lhs, ::boost::math::quaternion const & rhs); - template octonion operator / (octonion const & lhs, octonion const & rhs); - -These operators return `octonion(lhs) /= rhs`. It is of course still an -error to divide by zero... - -[h4 Binary Equality Operators] - - template bool operator == (T const & lhs, octonion const & rhs); - template bool operator == (octonion const & lhs, T const & rhs); - template bool operator == (::std::complex const & lhs, octonion const & rhs); - template bool operator == (octonion const & lhs, ::std::complex const & rhs); - template bool operator == (::boost::math::quaternion const & lhs, octonion const & rhs); - template bool operator == (octonion const & lhs, ::boost::math::quaternion const & rhs); - template bool operator == (octonion const & lhs, octonion const & rhs); - -These return true if and only if the four components of `octonion(lhs)` -are equal to their counterparts in `octonion(rhs)`. As with any -floating-type entity, this is essentially meaningless. - -[h4 Binary Inequality Operators] - - template bool operator != (T const & lhs, octonion const & rhs); - template bool operator != (octonion const & lhs, T const & rhs); - template bool operator != (::std::complex const & lhs, octonion const & rhs); - template bool operator != (octonion const & lhs, ::std::complex const & rhs); - template bool operator != (::boost::math::quaternion const & lhs, octonion const & rhs); - template bool operator != (octonion const & lhs, ::boost::math::quaternion const & rhs); - template bool operator != (octonion const & lhs, octonion const & rhs); - -These return true if and only if `octonion(lhs) == octonion(rhs)` -is false. As with any floating-type entity, this is essentially meaningless. - -[h4 Stream Extractor] - - template - ::std::basic_istream & operator >> (::std::basic_istream & is, octonion & o); - -Extracts an octonion `o`. We accept any format which seems reasonable. -However, since this leads to a great many ambiguities, decisions were made -to lift these. In case of doubt, stick to lists of reals. - -The input values must be convertible to T. If bad input is encountered, -calls `is.setstate(ios::failbit)` (which may throw `ios::failure` (27.4.5.3)). - -Returns `is`. - -[h4 Stream Inserter] - - template - ::std::basic_ostream & operator << (::std::basic_ostream & os, octonion const & o); - -Inserts the octonion `o` onto the stream `os` as if it were implemented as follows: - - template - ::std::basic_ostream & operator << ( ::std::basic_ostream & os, - octonion const & o) - { - ::std::basic_ostringstream s; - - s.flags(os.flags()); - s.imbue(os.getloc()); - s.precision(os.precision()); - - s << '(' << o.R_component_1() << ',' - << o.R_component_2() << ',' - << o.R_component_3() << ',' - << o.R_component_4() << ',' - << o.R_component_5() << ',' - << o.R_component_6() << ',' - << o.R_component_7() << ',' - << o.R_component_8() << ')'; - - return os << s.str(); - } - -[endsect] - -[section:oct_value_ops Octonion Value Operations] - -[h4 Real and Unreal] - - template T real(octonion const & o); - template octonion unreal(octonion const & o); - -These return `o.real()` and `o.unreal()` respectively. - -[h4 conj] - - template octonion conj(octonion const & o); - -This returns the conjugate of the octonion. - -[h4 sup] - - template T sup(octonion const & o); - -This return the sup norm (the greatest among -`abs(o.R_component_1())...abs(o.R_component_8()))` of the octonion. - -[h4 l1] - - template T l1(octonion const & o); - -This return the l1 norm (`abs(o.R_component_1())+...+abs(o.R_component_8())`) -of the octonion. - -[h4 abs] - - template T abs(octonion const & o); - -This return the magnitude (Euclidian norm) of the octonion. - -[h4 norm] - - template T norm(octonionconst & o); - -This return the (Cayley) norm of the octonion. The term "norm" might -be confusing, as most people associate it with the Euclidian norm -(and quadratic functionals). For this version of (the mathematical -objects known as) octonions, the Euclidian norm (also known as -magnitude) is the square root of the Cayley norm. - -[endsect] - -[section:oct_create Octonion Creation Functions] - - template octonion spherical(T const & rho, T const & theta, T const & phi1, T const & phi2, T const & phi3, T const & phi4, T const & phi5, T const & phi6); - template octonion multipolar(T const & rho1, T const & theta1, T const & rho2, T const & theta2, T const & rho3, T const & theta3, T const & rho4, T const & theta4); - template octonion cylindrical(T const & r, T const & angle, T const & h1, T const & h2, T const & h3, T const & h4, T const & h5, T const & h6); - -These build octonions in a way similar to the way polar builds -complex numbers, as there is no strict equivalent to -polar coordinates for octonions. - -`spherical` is a simple transposition of `polar`, it takes as inputs a -(positive) magnitude and a point on the hypersphere, given -by three angles. The first of these, ['theta] has a natural range of --pi to +pi, and the other two have natural ranges of --pi/2 to +pi/2 (as is the case with the usual spherical -coordinates in __R3). Due to the many symmetries and periodicities, -nothing untoward happens if the magnitude is negative or the angles are -outside their natural ranges. The expected degeneracies (a magnitude of -zero ignores the angles settings...) do happen however. - -`cylindrical` is likewise a simple transposition of the usual -cylindrical coordinates in __R3, which in turn is another derivative of -planar polar coordinates. The first two inputs are the polar -coordinates of the first __C component of the octonion. The third and -fourth inputs are placed into the third and fourth __R components of the -octonion, respectively. - -`multipolar` is yet another simple generalization of polar coordinates. -This time, both __C components of the octonion are given in polar coordinates. - -In this version of our implementation of octonions, there is no -analogue of the complex value operation arg as the situation is -somewhat more complicated. - -[endsect] - -[section:oct_trans Octonions Transcendentals] - -There is no `log` or `sqrt` provided for octonions in this implementation, -and `pow` is likewise restricted to integral powers of the exponent. -There are several reasons to this: on the one hand, the equivalent of -analytic continuation for octonions ("branch cuts") remains to be -investigated thoroughly (by me, at any rate...), and we wish to avoid -the nonsense introduced in the standard by exponentiations of -complexes by complexes (which is well defined, but not in the standard...). -Talking of nonsense, saying that `pow(0,0)` is "implementation defined" is -just plain brain-dead... - -We do, however provide several transcendentals, chief among which is -the exponential. That it allows for a "closed formula" is a result -of the author (the existence and definition of the exponential, on the -octonions among others, on the other hand, is a few centuries old). -Basically, any converging power series with real coefficients which -allows for a closed formula in __C can be transposed to __O. More -transcendentals of this type could be added in a further revision upon -request. It should be noted that it is these functions which force the -dependency upon the -[@../../../../boost/math/special_functions/sinc.hpp boost/math/special_functions/sinc.hpp] -and the -[@../../../../boost/math/special_functions/sinhc.hpp boost/math/special_functions/sinhc.hpp] -headers. - -[h4 exp] - - template - octonion exp(octonion const & o); - -Computes the exponential of the octonion. - -[h4 cos] - - template - octonion cos(octonion const & o); - -Computes the cosine of the octonion - -[h4 sin] - - template - octonion sin(octonion const & o); - -Computes the sine of the octonion. - -[h4 tan] - - template - octonion tan(octonion const & o); - -Computes the tangent of the octonion. - -[h4 cosh] - - template - octonion cosh(octonion const & o); - -Computes the hyperbolic cosine of the octonion. - -[h4 sinh] - - template - octonion sinh(octonion const & o); - -Computes the hyperbolic sine of the octonion. - -[h4 tanh] - - template - octonion tanh(octonion const & o); - -Computes the hyperbolic tangent of the octonion. - -[h4 pow] - - template - octonion pow(octonion const & o, int n); - -Computes the n-th power of the octonion q. - -[endsect] - -[section:oct_tests Test Program] - -The [@../../test/octonion_test.cpp octonion_test.cpp] -test program tests octonions specialisations for float, double and long double -([@../octonion/output.txt sample output]). - -If you define the symbol BOOST_OCTONION_TEST_VERBOSE, you will get additional -output ([@../octonion/output_more.txt verbose output]); this will -only be helpfull if you enable message output at the same time, of course -(by uncommenting the relevant line in the test or by adding --log_level=messages -to your command line,...). In that case, and if you are running interactively, -you may in addition define the symbol BOOST_INTERACTIVE_TEST_INPUT_ITERATOR to -interactively test the input operator with input of your choice from the -standard input (instead of hard-coding it in the test). - -[endsect] - -[section:acknowledgements Acknowledgements] - -The mathematical text has been typeset with -[@http://www.nisus-soft.com/ Nisus Writer]. -Jens Maurer has helped with portability and standard adherence, and was the -Review Manager for this library. More acknowledgements in the -History section. Thank you to all who contributed to the discussion about this library. - -[endsect] - -[section:oct_history History] - -* 1.5.9 - 13/5/2013: Incorporated into Boost.Math. -* 1.5.8 - 17/12/2005: Converted documentation to Quickbook Format. -* 1.5.7 - 25/02/2003: transitionned to the unit test framework; now included by the library header (rather than the test files), via . -* 1.5.6 - 15/10/2002: Gcc2.95.x and stlport on linux compatibility by Alkis Evlogimenos (alkis@routescience.com). -* 1.5.5 - 27/09/2002: Microsoft VCPP 7 compatibility, by Michael Stevens (michael@acfr.usyd.edu.au); requires the /Za compiler option. -* 1.5.4 - 19/09/2002: fixed problem with multiple inclusion (in different translation units); attempt at an improved compatibility with Microsoft compilers, by Michael Stevens (michael@acfr.usyd.edu.au) and Fredrik Blomqvist; other compatibility fixes. -* 1.5.3 - 01/02/2002: bugfix and Gcc 2.95.3 compatibility by Douglas Gregor (gregod@cs.rpi.edu). -* 1.5.2 - 07/07/2001: introduced namespace math. -* 1.5.1 - 07/06/2001: (end of Boost review) now includes and instead of ; corrected bug in sin (Daryle Walker); removed check for self-assignment (Gary Powel); made converting functions explicit (Gary Powel); added overflow guards for division operators and abs (Peter Schmitteckert); added sup and l1; used Vesa Karvonen's CPP metaprograming technique to simplify code. -* 1.5.0 - 23/03/2001: boostification, inlining of all operators except input, output and pow, fixed exception safety of some members (template version). -* 1.4.0 - 09/01/2001: added tan and tanh. -* 1.3.1 - 08/01/2001: cosmetic fixes. -* 1.3.0 - 12/07/2000: pow now uses Maarten Hilferink's (mhilferink@tip.nl) algorithm. -* 1.2.0 - 25/05/2000: fixed the division operators and output; changed many signatures. -* 1.1.0 - 23/05/2000: changed sinc into sinc_pi; added sin, cos, sinh, cosh. -* 1.0.0 - 10/08/1999: first public version. - -[endsect] - -[section:oct_todo To Do] - -* Improve testing. -* Rewrite input operatore using Spirit (creates a dependency). -* Put in place an Expression Template mechanism (perhaps borrowing from uBlas). - -[endsect] - -[endmathpart] - - -[/ -Copyright 1999, 2005, 2013 Hubert Holin. -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). -] diff --git a/boost/libs/math/doc/octonion/output.txt b/boost/libs/math/doc/octonion/output.txt deleted file mode 100644 index 98824203..00000000 --- a/boost/libs/math/doc/octonion/output.txt +++ /dev/null @@ -1,17 +0,0 @@ -Results of octonion test. - -(C) Copyright Hubert Holin 2003-2005. -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) - -Running 6 test cases... -Testing multiplication for float. -Testing multiplication for double. -Testing multiplication for long double. -Testing exp for float. -Testing exp for double. -Testing exp for long double. - -*** No errors detected - diff --git a/boost/libs/math/doc/octonion/output_more.txt b/boost/libs/math/doc/octonion/output_more.txt deleted file mode 100644 index e8c7ac8e..00000000 --- a/boost/libs/math/doc/octonion/output_more.txt +++ /dev/null @@ -1,63 +0,0 @@ -Results of octonion test. - -(C) Copyright Hubert Holin 2003-2005. -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) - -Running 7 test cases... -Testing multiplication for float. -Testing multiplication for double. -Testing multiplication for long double. -Testing exp for float. -Testing exp for double. -Testing exp for long double. -Please input an octonion... -You have entered the octonion (1,2,3,4,5,6,7,8) . -For this octonion: -the value of the real part is 1 -the value of the unreal part is (0,2,3,4,5,6,7,8) -the value of the sup norm is 8 -the value of the l1 norm is 36 -the value of the magnitude (euclidian norm) is 14.2829 -the value of the (Cayley) norm is 204 -the value of the conjugate is (1,-2,-3,-4,-5,-6,-7,-8) -the value of the exponential is (-0.300136,0.379239,0.568858,0.758478,0.948097,1.13772,1.32734,1.51696) -the value of the cube is (-608,-400,-600,-800,-1000,-1200,-1400,-1600) -the value of the cosinus is (416246,-90998.6,-136498,-181997,-227497,-272996,-318495,-363995) -the value of the sinus is (648266,58429.6,87644.3,116859,146074,175289,204503,233718) -the value of the tangent is (3.28749e-08,0.140372,0.210559,0.280745,0.350931,0.421118,0.491304,0.56149) -the value of the hyperbolic cosinus is (-0.170378,0.163957,0.245936,0.327915,0.819786,0.983744,1.1477,1.31166) -the value of the hyperbolic sinus is (-0.129759,0.215282,0.322922,0.430563,1.07641,1.29169,1.50697,1.72225) -the value of the hyperbolic tangent is (1.30977,-0.00314284,-0.00471435,-0.00628569,-0.0157142,-0.0188571,-0.022,-0.0251428) -the value of the Sinus Cardinal (of index pi) is (32249.3,-6069.12,-9103.69,-12138.2,-15172.8,-18207.4,-21241.9,-24276.5) -the value of the Hyperbolic Sinus Cardinal (of index pi) is (0.198288,0.00232745,0.00349117,0.0046549,-0.0258405,0.0175354,0.0155332,0.0261946) - -The value of the octonion represented in spherical form by rho = 64 , theta = 0.785398 , phi1 = 0.785398 , phi2 = 0.785398 , phi3 = 0.785398 , phi4 = 0.785398 , phi5 = 0.785398 , phi6 = 0.785398 is (5.65685,5.65685,8,11.3137,16,22.6274,32,45.2548) -The value of the octonion represented in multipolar form by rho1 = 1 , theta1 = 0 , rho2 = 2 , theta2 = 1.5708rho3 = 1.41421 , theta3 = 0.785398 , rho4 = 2.82843 , theta4 = 1.0472 is (1,0,-8.74228e-08,2,1,1,1.41421,2.44949) -The value of the octonion represented in cylindrical form by r = 1.41421 , angle = 0.785398 , h1 = 3 , h2 = 4 , h3 = 5 , h4 = 6 , h5 = 7 , h6 = 8 is (1,1,3,4,5,6,7,8) - -Real 1: 1 ; Complex 1: (1,0) ; Quaternion 1: (1,0,0,0) ; Octonion 1: (1,0,0,0,0,0,0,0) . -Complex i: (0,1) ; Quaternion i: (0,1,0,0) ; Octonion i : (0,1,0,0,0,0,0,0) . -Quaternion j: (0,0,1,0) ; Octonion j: (0,0,1,0,0,0,0,0) . -Quaternion k: (0,0,0,1) ; Octonion k: (0,0,0,1,0,0,0,0) . -Quaternion e': (0,0,0,0,1,0,0,0) . -Quaternion i': (0,0,0,0,0,1,0,0) . -Quaternion j': (0,0,0,0,0,0,1,0) . -Quaternion k': (0,0,0,0,0,0,0,1) . - -(1,0,0,0,0,0,0,0) ; (0,1,0,0,0,0,0,0) ; (0,0,1,0,0,0,0,0) ; (0,0,0,1,0,0,0,0) ; (0,0,0,0,1,0,0,0) ; (0,0,0,0,0,1,0,0) ; (0,0,0,0,0,0,1,0) ; (0,0,0,0,0,0,0,1) ; -(0,1,0,0,0,0,0,0) ; (-1,0,0,0,0,0,0,0) ; (0,0,0,1,0,0,0,0) ; (0,0,-1,0,0,0,0,0) ; (0,0,0,0,0,1,0,0) ; (0,0,0,0,-1,0,0,0) ; (0,0,0,0,0,0,0,-1) ; (0,0,0,0,0,0,1,0) ; -(0,0,1,0,0,0,0,0) ; (0,0,0,-1,0,0,0,0) ; (-1,0,0,0,0,0,0,0) ; (0,1,0,0,0,0,0,0) ; (0,0,0,0,0,0,1,0) ; (0,0,0,0,0,0,0,1) ; (0,0,0,0,-1,0,0,0) ; (0,0,0,0,0,-1,0,0) ; -(0,0,0,1,0,0,0,0) ; (0,0,1,0,0,0,0,0) ; (0,-1,0,0,0,0,0,0) ; (-1,0,0,0,0,0,0,0) ; (0,0,0,0,0,0,0,1) ; (0,0,0,0,0,0,-1,0) ; (0,0,0,0,0,1,0,0) ; (0,0,0,0,-1,0,0,0) ; -(0,0,0,0,1,0,0,0) ; (0,0,0,0,0,-1,0,0) ; (0,0,0,0,0,0,-1,0) ; (0,0,0,0,0,0,0,-1) ; (-1,0,0,0,0,0,0,0) ; (0,1,0,0,0,0,0,0) ; (0,0,1,0,0,0,0,0) ; (0,0,0,1,0,0,0,0) ; -(0,0,0,0,0,1,0,0) ; (0,0,0,0,1,0,0,0) ; (0,0,0,0,0,0,0,-1) ; (0,0,0,0,0,0,1,0) ; (0,-1,0,0,0,0,0,0) ; (-1,0,0,0,0,0,0,0) ; (0,0,0,-1,0,0,0,0) ; (0,0,1,0,0,0,0,0) ; -(0,0,0,0,0,0,1,0) ; (0,0,0,0,0,0,0,1) ; (0,0,0,0,1,0,0,0) ; (0,0,0,0,0,-1,0,0) ; (0,0,-1,0,0,0,0,0) ; (0,0,0,1,0,0,0,0) ; (-1,0,0,0,0,0,0,0) ; (0,-1,0,0,0,0,0,0) ; -(0,0,0,0,0,0,0,1) ; (0,0,0,0,0,0,-1,0) ; (0,0,0,0,0,1,0,0) ; (0,0,0,0,1,0,0,0) ; (0,0,0,-1,0,0,0,0) ; (0,0,-1,0,0,0,0,0) ; (0,1,0,0,0,0,0,0) ; (-1,0,0,0,0,0,0,0) ; - -i'*(e'*j) : (0,0,0,1,0,0,0,0) ; -(i'*e')*j : (0,0,0,-1,0,0,0,0) ; - - -*** No errors detected - diff --git a/boost/libs/math/doc/overview/building.qbk b/boost/libs/math/doc/overview/building.qbk deleted file mode 100644 index 05618d36..00000000 --- a/boost/libs/math/doc/overview/building.qbk +++ /dev/null @@ -1,106 +0,0 @@ -[section:building If and How to Build a Boost.Math Library, and its Examples and Tests] - -[h4 Building a Library (shared, dynamic .dll or static .lib)] - -The first thing you need to ask yourself is "Do I need to build anything at all?" -as the bulk of this library is header only: meaning you can use it just by -#including the necessary header(s). - -For most simple uses, -including a header (or few) is best for compile time and program size. - -Refer to -[link extern_c C99 and C++ TR1 C-style Functions] -for pros and cons of using -the TR1 components as opposed to the header only ones. - -The ['only] time you ['need] to build the library is if you want to use the -`extern "C"` functions declared in ``. To build this -using Boost.Build, from a commandline boost-root directory issue a command like: - - bjam toolset=gcc --with-math install - -that will do the job on Linux, while: - - bjam toolset=msvc --with-math --build-type=complete stage - -will work better on Windows (leaving libraries built -in sub-folder `/stage` below your Boost root directory). -Either way you should consult the -[@http://www.boost.org/doc/libs/release/more/getting_started/index.html -getting started guide] for more information. - -You can also build the libraries from your favourite IDE or command line tool: -each `extern "C"` function declared in `` has its own -source file with the same name in `libs/math/src/tr1`. Just select the -sources corresponding to the functions you are using and build them into -a library, or else add them directly to your project. Note that the -directory `libs/math/src/tr1` will need to be in your compiler's -#include path as well as the boost-root directory -(MSVC Tools, Options, Projects and Solutions, VC++ Directories, Include files). - -[note If you are using -a Windows compiler that supports auto-linking and you have built the sources -yourself (or added them directly to your project) then you will need to -prevent `` from trying to auto-link to the binaries -that Boost.Build generates. You can do this by defining either -BOOST_MATH_NO_LIB or BOOST_ALL_NO_LIB at project level -(so the defines get passed to each compiler invocation). -] - -Optionally the sources in `libs/math/src/tr1` have support for using -`libs/math/src/tr1/pch.hpp` as a precompiled header -['if your compiler supports precompiled headers.] Note that normally -this header is a do-nothing include: to activate the header so that -it #includes everything required by all the sources you will need to -define BOOST_BUILD_PCH_ENABLED on the command line, both when building -the pre-compiled header and when building the sources. Boost.Build -will do this automatically when appropriate. - -[h4 Building the Examples] - -The examples are all located in `libs/math/example`, they can all -be built without reference to any external libraries, either with -Boost.Build using the supplied Jamfile, or from your compiler's -command line. The only requirement is that the Boost headers are -in your compilers #include search path. - -[h4 Building the Tests] - -The tests are located in `libs/math/test` and are best built -using Boost.Build and the supplied Jamfile. If you plan to -build them separately from your favourite IDE then you will -need to add `libs/math/test` to the list of your compiler's -search paths. - -You will also need to build and link to -the Boost.Regex library for many of the tests: this can built -from the command line by following the -[@http://www.boost.org/doc/libs/release/more/getting_started/index.html -getting started guide], using a command such as: - - bjam toolset=gcc --with-regex install - -or - - bjam toolset=msvc --with-regex --build-type=complete stage - -depending on whether you are on Linux or Windows. - -Many of the tests have optional precompiled header support -using the header `libs/math/test/pch.hpp`. -Note that normally -this header is a do-nothing include: to activate the header so that -it #includes everything required by all the sources you will need to -define BOOST_BUILD_PCH_ENABLED on the command line, both when building -the pre-compiled header and when building the sources. Boost.Build -will do this automatically when appropriate. - -[endsect] - -[/ building.qbk - Copyright 2006, 2007, 2008, 2010 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/overview/common_overviews.qbk b/boost/libs/math/doc/overview/common_overviews.qbk deleted file mode 100644 index 857171bb..00000000 --- a/boost/libs/math/doc/overview/common_overviews.qbk +++ /dev/null @@ -1,231 +0,0 @@ - - -[template policy_overview[] - -Policies are a powerful fine-grain mechanism that allow you to customise the -behaviour of this library according to your needs. There is more information -available in the [link math_toolkit.pol_tutorial policy tutorial] -and the [link math_toolkit.pol_ref policy reference]. - -Generally speaking, unless you find that the -[link math_toolkit.pol_tutorial.policy_tut_defaults - default policy behaviour] -when encountering 'bad' argument values does not meet your needs, -you should not need to worry about policies. - -Policies are a compile-time mechanism that allow you to change -error-handling or calculation precision either -program wide, or at the call site. - -Although the policy mechanism itself is rather complicated, -in practice it is easy to use, and very flexible. - -Using policies you can control: - -* [link math_toolkit.pol_ref.error_handling_policies How results from 'bad' arguments are handled], - including those that cannot be fully evaluated. -* How [link math_toolkit.pol_ref.internal_promotion accuracy is controlled by internal promotion] to use more precise types. -* What working [link math_toolkit.pol_ref.precision_pol precision] should be used to calculate results. -* What to do when a [link math_toolkit.pol_ref.assert_undefined mathematically undefined function] - is used: Should this raise a run-time or compile-time error? -* Whether [link math_toolkit.pol_ref.discrete_quant_ref discrete functions], - like the binomial, should return real or only integral values, and how they are rounded. -* How many iterations a special function is permitted to perform in - a series evaluation or root finding algorithm before it gives up and raises an - __evaluation_error. - -You can control policies: - -* Using [link math_toolkit.pol_ref.policy_defaults macros] to -change any default policy: the is the preferred method for installation -wide policies. -* At your chosen [link math_toolkit.pol_ref.namespace_pol -namespace scope] for distributions and/or functions: this is the -preferred method for project, namespace, or translation unit scope -policies. -* In an ad-hoc manner [link math_toolkit.pol_tutorial.ad_hoc_sf_policies -by passing a specific policy to a special function], or to a -[link math_toolkit.pol_tutorial.ad_hoc_dist_policies -statistical distribution]. - -] - -[template performance_overview[] - -By and large the performance of this library should be acceptable -for most needs. However, often the library has to make a choice whether to -be accurate or fast and by default it chooses accuracy over speed. If -you would rather have fast rather than fully accurate routines, then -refer to the [link perf performance section] for information and examples on how to -achieve this. - -In terms of the algorithms used, this library aims to use the same "best -of breed" algorithms as many other libraries: the principle difference -is that this library is implemented in C++ - taking advantage of all -the abstraction mechanisms that C++ offers - where as most traditional -numeric libraries are implemented in C or FORTRAN. Traditionally -languages such as C or FORTRAN are perceived as easier to optimise -than more complex languages like C++, so in a sense this library -provides a good test of current compiler technology, and the -"abstraction penalty" - if any - of C++ compared to other languages. - -The three most important things you can do to ensure the best performance -from this library are: - -# Turn on your compilers optimisations: the difference between "release" -and "debug" builds can easily be a [link math_toolkit.getting_best factor of 20]. -# Pick your compiler carefully: [link math_toolkit.comp_compilers -performance differences of up to -8 fold] have been found between some Windows compilers for example. -# Disable internal use of `long double`, this will reduce accuracy but -typically yield a 2x speedup on modern x64 hardware/compilers. - -The [link perf performance section] contains more -information on the performance -of this library, what you can do to fine tune it, and how this library -compares to some other open source alternatives. - -] - -[template compilers_overview[] - -This section contains some information about how various compilers -work with this library. -It is not comprehensive and updated experiences are always welcome. -Some effort has been made to suppress unhelpful warnings but it is -difficult to achieve this on all systems. - -[table Supported/Tested Compilers -[[Platform][Compiler][Has long double support][Notes]] -[[Windows][MSVC 7.1 and later][Yes] - [All tests OK. - - We aim to keep our headers warning free at level 4 with - this compiler.]] -[[Windows][Intel 8.1 and later][Yes] - [All tests OK. - - We aim to keep our headers warning free at level 4 with - this compiler. However, The tests cases tend to generate a lot of - warnings relating to numeric underflow of the test data: these are - harmless.]] -[[Windows][GNU Mingw32 C++][Yes] - [All tests OK. - - We aim to keep our headers warning free with -Wall with this compiler.]] -[[Windows][GNU Cygwin C++][No] - [All tests OK. - - We aim to keep our headers warning free with -Wall with this compiler. - - Long double support has been disabled because there are no native - long double C std library functions available.]] -[[Windows][Borland C++ 5.8.2 (Developer studio 2006)][No] - [We have only partial compatibility with this compiler: - - Long double support has been disabled because the native - long double C standard library functions really only forward to the - double versions. This can result in unpredictable behaviour when - using the long double overloads: for example `sqrtl` applied to a - finite value, can result in an infinite result. - - Some functions still fail to compile, there are no known workarounds at present.]] -[[Windows 7/Netbeans 7.2][Clang 3.1][Yes][Spot examples OK. Expect all tests to compile and run OK.]] - -[[Linux][GNU C++ 3.4 and later][Yes] - [All tests OK. - - We aim to keep our headers warning free with -Wall with this compiler.]] -[[Linux][Clang 3.2][Yes][All tests OK.]] -[[Linux][Intel C++ 10.0 and later][Yes] - [All tests OK. - - We aim to keep our headers warning free with -Wall with this compiler. - However, The tests cases tend to generate a lot of - warnings relating to numeric underflow of the test data: these are - harmless.]] -[[Linux][Intel C++ 8.1 and 9.1][No] - [All tests OK. - - Long double support has been disabled with these compiler releases - because calling the standard library long double math functions - can result in a segfault. The issue is Linux distribution and - glibc version specific and is Intel bug report #409291. Fully up to date - releases of Intel 9.1 (post version l_cc_c_9.1.046) - shouldn't have this problem. If you need long - double support with this compiler, then comment out the define of - BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS at line 55 of - [@../../../../boost/math/tools/config.hpp boost/math/tools/config.hpp]. - - We aim to keep our headers warning free with -Wall with this compiler. - However, The tests cases tend to generate a lot of - warnings relating to numeric underflow of the test data: these are - harmless.]] -[[Linux][QLogic PathScale 3.0][Yes] - [Some tests involving conceptual checks fail to build, otherwise - there appear to be no issues.]] -[[Linux][Sun Studio 12][Yes] - [Some tests involving function overload resolution fail to build, - these issues should be rarely encountered in practice.]] -[[Solaris][Sun Studio 12][Yes] - [Some tests involving function overload resolution fail to build, - these issues should be rarely encountered in practice.]] -[[Solaris][GNU C++ 4.x][Yes] - [All tests OK. - - We aim to keep our headers warning free with -Wall with this compiler.]] -[[HP Tru64][Compaq C++ 7.1][Yes] - [All tests OK.]] -[[HP-UX Itanium][HP aCC 6.x][Yes] - [All tests OK. - - Unfortunately this compiler emits quite a few warnings from libraries - upon which we depend (TR1, Array etc).]] -[[HP-UX PA-RISC][GNU C++ 3.4][No] - [All tests OK.]] -[[Apple Mac OS X, Intel][Darwin/GNU C++ 4.x][Yes][All tests OK.]] -[[Apple Mac OS X, PowerPC][Darwin/GNU C++ 4.x][No] - [All tests OK. - - Long double support has been disabled on this platform due to the - rather strange nature of Darwin's 106-bit long double - implementation. It should be possible to make this work if someone - is prepared to offer assistance.]] -[[Apple Mac OS X,][Clang 3.2][Yes][All tests expected to be OK.]] -[[IBM AIX][IBM xlc 5.3][Yes] - [All tests pass except for our fpclassify tests which fail due to a - bug in `std::numeric_limits`, the bug effects the test code, not - fpclassify itself. The IBM compiler group are aware of the problem.]] -] - -[table Unsupported Compilers -[[Platform][Compiler]] -[[Windows][Borland C++ 5.9.2 (Borland Developer Studio 2007)]] -[[Windows][MSVC 6 and 7]] -] - -If your compiler or platform is not listed above, please try running the -regression tests: cd into boost-root/libs/math/test and do a: - - bjam mytoolset - -where "mytoolset" is the name of the -[@http://www.boost.org/doc/html/bbv2.html Boost.Build] -toolset used for your -compiler. The chances are that [*many of the accuracy tests will fail -at this stage] - don't panic - the default acceptable error tolerances -are quite tight, especially for long double types with an extended -exponent range (these cause more extreme test cases to be executed -for some functions). -You will need to cast an eye over the output from -the failing tests and make a judgement as to whether -the error rates are acceptable or not. -] - -[/ common_overviews.qbk - Copyright 2007, 2012, 2014 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/overview/config_macros.qbk b/boost/libs/math/doc/overview/config_macros.qbk deleted file mode 100644 index 6d5e52c4..00000000 --- a/boost/libs/math/doc/overview/config_macros.qbk +++ /dev/null @@ -1,61 +0,0 @@ -[section:config_macros Configuration Macros] - -Almost all configuration details are set up automatically by -``. - -In normal use, only policy configuration macros are likely to be used. See __policy_ref. - -For reference, information on Boost.Math macros used internally are described briefly below. - -[table Boost.Math Macros -[[MACRO][Notes]] -[[`BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS`] [Do not produce or use long double functions: this macro gets set when the platform's -long double or standard library long double support is absent or buggy.]] -[[`BOOST_MATH_USE_FLOAT128`][When set the numeric constants support the `__float128` data type with constants having the `Q` suffix.]] -[[`BOOST_MATH_DISABLE_FLOAT128`][When set the numeric constants do not use the `__float128` data type even if the compiler appears to support it.]] -[[`BOOST_MATH_NO_REAL_CONCEPT_TESTS`] [Do not try to use real concept tests (hardware or software does not support real_concept type).]] -[[`BOOST_MATH_CONTROL_FP`] [Controls FP hardware exceptions - our tests don't support hardware exceptions on MSVC. -May get set to something like: ` _control87(MCW_EM,MCW_EM)`.]] -[[`BOOST_MATH_NO_DEDUCED_FUNCTION_POINTERS`] [This macro is used by our test cases, it is set when an assignment of a function template -to a function pointer requires explicit template arguments to be provided on the function name.]] -[[`BOOST_MATH_USE_C99` ] [Use C99 math functions.]] -[[`BOOST_NO_NATIVE_LONG_DOUBLE_FP_CLASSIFY`] [define if no native (or buggy) `fpclassify(long double)` -even though the other C99 functions are present.]] -[[`BOOST_MATH_SMALL_CONSTANT(x)`] [Helper macro used in our test cases to set underflowing constants set to zero -if this would cause compiler issues.]] -[[`BOOST_MATH_BUGGY_LARGE_FLOAT_CONSTANTS`] [Set if constants too large for a float, will cause "bad" values to be stored in the data, -rather than infinity or a suitably large value.]] -[[`BOOST_MATH_STD_USING`] [Provides `using` statements for many std:: (abs to sqrt) and boost::math (rounds, modf) functions. -This allows these functions to be called unqualified so that if -[@http://en.wikipedia.org/wiki/Argument-dependent_name_lookup argument-dependent Argument Dependent Lookup] -fails to find a suitable overload, then the std:: versions will also be considered.]] -[[`BOOST_FPU_EXCEPTION_GUARD`] [Used at the entrypoint to each special function to reset all FPU exception flags prior -to internal calculations, and then merge the old and new exception flags on function exit. Used as a workaround -on platforms or hardware that behave strangely if any FPU exception flags are set when calling standard library -functions.]] -[[`BOOST_MATH_INSTRUMENT`] [Define to output diagnostics for math functions. This is rather 'global' to Boost.Math and so -coarse-grained that it will probably produce copious output! (Especially because full precision values are output). -Designed primarily for internal use and development.]] -[[`BOOST_MATH_INSTRUMENT_CODE(x)`] [Output selected named variable, for example `BOOST_MATH_INSTRUMENT_CODE("guess = " << guess)`; Used by `BOOST_MATH_INSTRUMENT`]] -[[`BOOST_MATH_INSTRUMENT_VARIABLE(name)`] [Output selected variable, for example `BOOST_MATH_INSTRUMENT_VARIABLE(result);` Used by `BOOST_MATH_INSTRUMENT`]] -[[`BOOST_MATH_INSTRUMENT_FPU`] [Output the state of the FPU's control flags.]] -] [/table] - -[table Boost.Math Tuning -[[ Macros for Tuning performance options for specific compilers] [Notes]] -[[`BOOST_MATH_POLY_METHOD`] [See the [link math_toolkit.tuning performance tuning section].]] -[[`BOOST_MATH_RATIONAL_METHOD`] [See the [link math_toolkit.tuning performance tuning section].]] -[[`BOOST_MATH_MAX_POLY_ORDER`] [See the [link math_toolkit.tuning performance tuning section].]] -[[`BOOST_MATH_INT_TABLE_TYPE`] [See the [link math_toolkit.tuning performance tuning section].]] -[[`BOOST_MATH_INT_VALUE_SUFFIX`] [Helper macro for appending the correct suffix to integer constants -which may actually be stored as reals depending on the value of BOOST_MATH_INT_TABLE_TYPE.]] -] [/table] - -[endsect] [/section:config_macros Configuration Macros] - -[/ - Copyright 2010 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/overview/contact_info.qbk b/boost/libs/math/doc/overview/contact_info.qbk deleted file mode 100644 index ba8c40e1..00000000 --- a/boost/libs/math/doc/overview/contact_info.qbk +++ /dev/null @@ -1,25 +0,0 @@ - -[section:contact Contact Info and Support] - -The main support for this library is via the Boost mailing lists: - -* Use the -[@http://www.boost.org/more/mailing_lists.htm#users boost-user list] -for general support questions. -* Use the -[@http://www.boost.org/more/mailing_lists.htm#main boost-developer list] -for discussion about implementation -and or submission of extensions. - -You can also find JM at john - at - johnmaddock.co.uk and PAB at -pbristow - at - hetp.u-net.com. - -[endsect] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/overview/credits.qbk b/boost/libs/math/doc/overview/credits.qbk deleted file mode 100644 index 252e0b61..00000000 --- a/boost/libs/math/doc/overview/credits.qbk +++ /dev/null @@ -1,134 +0,0 @@ -[section:credits Credits and Acknowledgements] - -Hubert Holin started the Boost.Math library. The -Quaternions, Octonions, inverse -hyperbolic functions, and the sinus cardinal functions are his. - -Daryle Walker wrote the integer gcd and lcm functions. - -John Maddock started the special functions, the beta, gamma, erf, polynomial, -and factorial functions are his, as is the "Toolkit" section, and many -of the statistical distributions. - -Paul A. Bristow threw down the challenge in -[@http://www2.open-std.org/JTC1/SC22/WG21/docs/papers/2004/n1668.pdf -A Proposal to add Mathematical Functions for Statistics to the C++ -Standard Library] to add the key math functions, especially those essential for -statistics. After JM accepted and solved the difficult problems, -not only numerically, but in full C++ template style, PAB -implemented a few of the statistical distributions. PAB also tirelessly -proof-read everything that JM threw at him (so that all -remaining editorial mistakes are his fault). - -Xiaogang Zhang worked on the Bessel functions and elliptic integrals for his -Google Summer of Code project 2006. - -Bruno Lalande submitted the "compile time power of a runtime base" code. - -Johan R'''å'''de wrote the optimised floating-point classification -and manipulation code, and nonfinite facets to permit C99 output of infinities and NaNs. -(nonfinite facets were not added until Boost 1.47 but had been in use with Boost.Spirit). -This library was based on a suggestion from Robert Ramey, author of Boost.Serialization. -Paul A. Bristow expressed the need for better handling of -[@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2022.pdf -Input & Output of NaN and infinity for the C++ Standard Library] -and suggested following the C99 format. - -Antony Polukhin improved lexical cast avoiding stringstream so that -it was no longer necessary to use a globale C99 facet to handle nonfinites. - -H'''å'''kan Ard'''ö''', -Boris Gubenko, John Maddock, -Markus Sch'''ö'''pflin -and Olivier Verdier tested the floating-point library and -Martin Bonner, Peter Dimov and John Maddock provided valuable advice. - -Gautam Sewani coded the logistic distribution as part of a Google Summer of Code project 2008. - -M. A. (Thijs) van den Berg coded the Laplace distribution. -(Thijs has also threatened to implement some multivariate distributions). - -Thomas Mang requested the inverse gamma in chi squared distributions -for Bayesian applications and helped in their implementation, -and provided a nice example of their use. - -Professor Nico Temme for advice on the inverse incomplete beta function. - -[@http://www.shoup.net Victor Shoup for NTL], -without which it would have much more difficult to -produce high accuracy constants, and especially -the tables of accurate values for testing. - -We are grateful to Joel Guzman for helping us stress-test his -[@http://www.boost.org/tools/quickbook/index.htm Boost.Quickbook] -program used to generate the html and pdf versions -of this document, adding several new features en route. - -Plots of the functions and distributions were prepared in -[@http://www.w3.org/ W3C] standard -[@http://www.svg.org/ Scalable Vector Graphic (SVG)] format -using a program created by Jacob Voytko during a -[@http://code.google.com/soc/2007/ Google Summer of Code (2007)]. -From 2012, the latest versions of all Internet Browsers have support -for rendering SVG (with varying quality). Older versions, especially -(Microsoft Internet Explorer (before IE 9) lack native SVG support -but can be made to work with -[@http://www.adobe.com/svg/viewer/install/ Adobe's free SVG viewer] plugin). -The SVG files can be converted to JPEG or PNG using -[@http://www.inkscape.org/ Inkscape]. - -We are also indebted to Matthias Schabel for managing the formal Boost-review -of this library, and to all the reviewers - including Guillaume Melquiond, -Arnaldur Gylfason, John Phillips, Stephan Tolksdorf and Jeff Garland -- for their many helpful comments. - -Thanks to Mark Coleman and Georgi Boshnakov for spot test values -from __Mathematica, and of course, -to Eric Weisstein for nurturing __Mathworld, an invaluable resource. - -The Skew-normal distribution and Owen's t function were written by Benjamin Sobotta. - -We thank Thomas Mang for persuading us to allow t distributions -to have infinite degrees of freedom -and contributing to some long discussions about how to improve accuracy -for large non-centrality and/or large degrees of freedom. - -Christopher Kormanyos wrote the e_float multiprecision library __TOMS910 -which formed the basis for the Boost.Multiprecision library -which now can be used to allow most functions and distributions -to be computed up to a precision of the users' choice, -no longer restricted to built-in floating-point types like double. -(And thanks to Topher Cooper for bring Christopher's e_float to our attention). - -Christopher Kormanyos wrote some examples for using __multiprecision, -and added methods for finding zeros of Bessel Functions. - -Marco Guazzone provided the hyper-geometric distribution. - -Rocco Romeo has found numerous small bugs and generally stress tested the -special functions code to near destruction! - -Jeremy William Murphy added polynomial arithmetic tools. - -Thomas Luu provided improvements to the quantile of the non-central chi squared distribution quantile. -and his thesis -* [@http://discovery.ucl.ac.uk/1482128/ Fast and accurate parallel computation of quantile functions for random number generation, 2016]. - -and his paper - -Luu, Thomas; (2015), Efficient and Accurate Parallel Inversion of the Gamma Distribution, -SIAM Journal on Scientific Computing , 37 (1) C122 - C141, -[@http://dx.doi.org/10.1137/14095875X]. - -These also promise to help improve algorithms for computation of quantile of several disitributions, -especially for parallel computation using GPUs. - -[endsect] [/section:credits Credits and Acknowledgements] - -[/ - Copyright 2006, 2007, 2008, 2009, 2010, 2012, 2013, 2015, 2016 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/overview/error_handling.qbk b/boost/libs/math/doc/overview/error_handling.qbk deleted file mode 100644 index 07eeffa3..00000000 --- a/boost/libs/math/doc/overview/error_handling.qbk +++ /dev/null @@ -1,403 +0,0 @@ -[section:error_handling Error Handling] - -[def __format [@../../../format/index.html Boost.Format]] - -[heading Quick Reference] - -Handling of errors by this library is split into two orthogonal parts: - -* What kind of error has been raised? -* What should be done when the error is raised? - -[warning The default error actions are to throw an exception with an informative error message. -If you do not try to catch the exception, you will not see the message!] - -The kinds of errors that can be raised are: - -[variablelist -[[Domain Error][Occurs when one or more arguments to a function - are out of range.]] -[[Pole Error][Occurs when the particular arguments cause the function to be - evaluated at a pole with no well defined residual value. For example if - __tgamma is evaluated at exactly -2, the function approaches different limiting - values depending upon whether you approach from just above or just below - -2. Hence the function has no well defined value at this point and a - Pole Error will be raised.]] -[[Overflow Error][Occurs when the result is either infinite, or too large - to represent in the numeric type being returned by the function.]] -[[Underflow Error][Occurs when the result is not zero, but is too small - to be represented by any other value in the type being returned by - the function.]] -[[Denormalisation Error][Occurs when the returned result would be a denormalised value.]] -[[Rounding Error][Occurs when the argument to one of the rounding functions __trunc, - __round and __modf can not be represented as an integer type, is - outside the range of the result type.]] -[[Evaluation Error][Occurs if no method of evaluation is known, - or when an internal error occurred that prevented the - result from being evaluated: this should never occur, but if it does, then - it's likely to be due to an iterative method not converging fast enough.]] -[[Indeterminate Result Error][Occurs when the result of a function is not - defined for the values that were passed to it.]] -] - -The action undertaken by each error condition is determined by the current -__Policy in effect. This can be changed program-wide by setting some -configuration macros, or at namespace scope, or at the call site (by -specifying a specific policy in the function call). - -The available actions are: - -[variablelist -[[throw_on_error][Throws the exception most appropriate to the error condition.]] -[[errno_on_error][Sets ::errno to an appropriate value, and then returns the most -appropriate result]] -[[ignore_error][Ignores the error and simply the returns the most appropriate result.]] -[[user_error][Calls a - [link math_toolkit.pol_tutorial.user_def_err_pol user-supplied error handler].]] -] - -The following tables show all the permutations of errors and actions, -with the *default action for each error shown in bold*: - -[table Possible Actions for Domain Errors -[[Action] [Behaviour]] -[[throw_on_error][[*Throws `std::domain_error`]]] -[[errno_on_error][Sets `::errno` to `EDOM` and returns `std::numeric_limits::quiet_NaN()`]] -[[ignore_error][Returns `std::numeric_limits::quiet_NaN()`]] -[[user_error][Returns the result of `boost::math::policies::user_domain_error`: - [link math_toolkit.pol_tutorial.user_def_err_pol - this function must be defined by the user].]] -] - -[table Possible Actions for Pole Errors -[[Action] [Behaviour]] -[[throw_on_error] [[*Throws `std::domain_error`]]] -[[errno_on_error][Sets `::errno` to `EDOM` and returns `std::numeric_limits::quiet_NaN()`]] -[[ignore_error][Returns `std::numeric_limits::quiet_NaN()`]] -[[user_error][Returns the result of `boost::math::policies::user_pole_error`: - [link math_toolkit.pol_tutorial.user_def_err_pol - this function must be defined by the user].]] -] - -[table Possible Actions for Overflow Errors -[[Action] [Behaviour]] -[[throw_on_error][[*Throws `std::overflow_error`]]] -[[errno_on_error][Sets `::errno` to `ERANGE` and returns `std::numeric_limits::infinity()`]] -[[ignore_error][Returns `std::numeric_limits::infinity()`]] -[[user_error][Returns the result of `boost::math::policies::user_overflow_error`: - [link math_toolkit.pol_tutorial.user_def_err_pol - this function must be defined by the user].]] -] - -[table Possible Actions for Underflow Errors -[[Action] [Behaviour]] -[[throw_on_error][Throws `std::underflow_error`]] -[[errno_on_error][Sets `::errno` to `ERANGE` and returns 0.]] -[[ignore_error][[*Returns 0]]] -[[user_error][Returns the result of `boost::math::policies::user_underflow_error`: - [link math_toolkit.pol_tutorial.user_def_err_pol - this function must be defined by the user].]] -] - -[table Possible Actions for Denorm Errors -[[Action] [Behaviour]] -[[throw_on_error][Throws `std::underflow_error`]] -[[errno_on_error][Sets `::errno` to `ERANGE` and returns the denormalised value.]] -[[ignore_error][[*Returns the denormalised value.]]] -[[user_error][Returns the result of `boost::math::policies::user_denorm_error`: - [link math_toolkit.pol_tutorial.user_def_err_pol - this function must be defined by the user].]] -] - -[table Possible Actions for Rounding Errors -[[Action] [Behaviour]] -[[throw_on_error][Throws `boost::math::rounding_error`]] -[[errno_on_error][Sets `::errno` to `ERANGE` and returns the largest representable value of the target integer type -(or the most negative value if the argument to the function was less than zero).]] -[[ignore_error][[*Returns the largest representable value of the target integer type -(or the most negative value if the argument to the function was less than zero).]]] -[[user_error][Returns the result of `boost::math::policies::user_rounding_error`: - [link math_toolkit.pol_tutorial.user_def_err_pol - this function must be defined by the user].]] -] - -[table Possible Actions for Internal Evaluation Errors -[[Action] [Behaviour]] -[[throw_on_error][[*Throws `boost::math::evaluation_error`]]] -[[errno_on_error][Sets `::errno` to `EDOM` and returns the closest approximation found.]] -[[ignore_error][Returns the closest approximation found.]] -[[user_error][Returns the result of `boost::math::policies::user_evaluation_error`: - [link math_toolkit.pol_tutorial.user_def_err_pol - this function must be defined by the user].]] -] - -[table Possible Actions for Indeterminate Result Errors -[[Action] [Behaviour]] -[[throw_on_error][Throws `std::domain_error`]] -[[errno_on_error][Sets `::errno` to `EDOM` and returns the same value as `ignore_error`.]] -[[ignore_error][[*Returns a default result that depends on the function where the error occurred.]]] -[[user_error][Returns the result of `boost::math::policies::user_indeterminate_result_error`: - [link math_toolkit.pol_tutorial.user_def_err_pol - this function must be defined by the user].]] -] - -All these error conditions are in namespace boost::math::policies, -made available, for example, a by namespace declaration -using `namespace boost::math::policies;` or individual using declarations -`using boost::math::policies::overflow_error;`. - -[heading Rationale] - -The flexibility of the current implementation should be reasonably obvious: the -default behaviours were chosen based on feedback during the formal review of -this library. It was felt that: - -* Genuine errors should be flagged with exceptions -rather than following C-compatible behaviour and setting `::errno`. -* Numeric underflow and denormalised results were not considered to be -fatal errors in most cases, so it was felt that these should be ignored. -* If there is more than one error, -only the first detected will be reported in the throw message. - -[heading Finding More Information] - -There are some pre-processor macro defines that can be used to -[link math_toolkit.pol_ref.policy_defaults -change the policy defaults]. See also the [link policy -policy section]. - -An example is at the Policy tutorial in -[link math_toolkit.pol_tutorial.changing_policy_defaults -Changing the Policy Defaults]. - -Full source code of this typical example of passing a 'bad' argument -(negative degrees of freedom) to Student's t distribution -is [link math_toolkit.stat_tut.weg.error_eg in the error handling example]. - -The various kind of errors are described in more detail below. - -[heading:domain_error Domain Errors] - -When a special function is passed an argument that is outside the range -of values for which that function is defined, then the function returns -the result of: - - boost::math::policies::raise_domain_error(FunctionName, Message, Val, __Policy); - -Where -`T` is the floating-point type passed to the function, `FunctionName` is the -name of the function, `Message` is an error message describing the problem, -Val is the value that was out of range, and __Policy is the current policy -in use for the function that was called. - -The default policy behaviour of this function is to throw a -std::domain_error C++ exception. But if the __Policy is to ignore -the error, or set global `::errno`, then a NaN will be returned. - -This behaviour is chosen to assist compatibility with the behaviour of -['ISO/IEC 9899:1999 Programming languages - C] -and with the -[@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf Draft Technical Report on C++ Library Extensions, 2005-06-24, section 5.2.1, paragraph 6]: - -[:['"Each of the functions declared above shall return a NaN (Not a Number) -if any argument value is a NaN, but it shall not report a domain error. -Otherwise, each of the functions declared above shall report a domain error -for just those argument values for which:]] - -[:['"the function description's Returns clause explicitly specifies a domain, and those arguments fall outside the specified domain; or] - -['"the corresponding mathematical function value has a non-zero imaginary component; or] - -['"the corresponding mathematical function is not mathematically defined.]] - -[:['"Note 2: A mathematical function is mathematically defined -for a given set of argument values if it is explicitly defined -for that set of argument values or -if its limiting value exists and does not depend on the direction of approach."]] - -Note that in order to support information-rich error messages when throwing -exceptions, `Message` must contain -a __format recognised format specifier: the argument `Val` is inserted into -the error message according to the specifier used. - -For example if `Message` contains a "%1%" then it is replaced by the value of -`Val` to the full precision of T, where as "%.3g" would contain the value of -`Val` to 3 digits. See the __format documentation for more details. - -[heading:pole_error Evaluation at a pole] - -When a special function is passed an argument that is at a pole -without a well defined residual value, then the function returns -the result of: - - boost::math::policies::raise_pole_error(FunctionName, Message, Val, __Policy); - -Where -`T` is the floating point type passed to the function, `FunctionName` is the -name of the function, `Message` is an error message describing the problem, -`Val` is the value of the argument that is at a pole, and __Policy is the -current policy in use for the function that was called. - -The default behaviour of this function is to throw a std::domain_error exception. -But __error_policy can be used to change this, for example to `ignore_error` -and return NaN. - -Note that in order to support information-rich error messages when throwing -exceptions, `Message` must contain -a __format recognised format specifier: the argument `val` is inserted into -the error message according to the specifier used. - -For example if `Message` contains a "%1%" then it is replaced by the value of -`val` to the full precision of T, where as "%.3g" would contain the value of -`val` to 3 digits. See the __format documentation for more details. - -[heading:overflow_error Numeric Overflow] - -When the result of a special function is too large to fit in the argument -floating-point type, then the function returns the result of: - - boost::math::policies::raise_overflow_error(FunctionName, Message, __Policy); - -Where -`T` is the floating-point type passed to the function, `FunctionName` is the -name of the function, `Message` is an error message describing the problem, -and __Policy is the current policy -in use for the function that was called. - -The default policy for this function is that `std::overflow_error` -C++ exception is thrown. But if, for example, an `ignore_error` policy -is used, then returns `std::numeric_limits::infinity()`. -In this situation if the type `T` doesn't support infinities, -the maximum value for the type is returned. - -[heading:underflow_error Numeric Underflow] - -If the result of a special function is known to be non-zero, but the -calculated result underflows to zero, then the function returns the result of: - - boost::math::policies::raise_underflow_error(FunctionName, Message, __Policy); - -Where -`T` is the floating point type passed to the function, `FunctionName` is the -name of the function, `Message` is an error message describing the problem, -and __Policy is the current policy -in use for the called function. - -The default version of this function returns zero. -But with another policy, like `throw_on_error`, -throws an `std::underflow_error` C++ exception. - -[heading:denorm_error Denormalisation Errors] - -If the result of a special function is a denormalised value /z/ then the function -returns the result of: - - boost::math::policies::raise_denorm_error(z, FunctionName, Message, __Policy); - -Where -`T` is the floating point type passed to the function, `FunctionName` is the -name of the function, `Message` is an error message describing the problem, -and __Policy is the current policy -in use for the called function. - -The default version of this function returns /z/. -But with another policy, like `throw_on_error` -throws an `std::underflow_error` C++ exception. - -[heading:evaluation_error Evaluation Errors] - -When a special function calculates a result that is known to be erroneous, -or where the result is incalculable then it calls: - - boost::math::policies::raise_evaluation_error(FunctionName, Message, Val, __Policy); - -Where -`T` is the floating point type passed to the function, `FunctionName` is the -name of the function, `Message` is an error message describing the problem, -`Val` is the erroneous value, -and __Policy is the current policy -in use for the called function. - -The default behaviour of this function is to throw a `boost::math::evaluation_error`. - -Note that in order to support information rich error messages when throwing -exceptions, `Message` must contain -a __format recognised format specifier: the argument `val` is inserted into -the error message according to the specifier used. - -For example if `Message` contains a "%1%" then it is replaced by the value of -`val` to the full precision of T, where as "%.3g" would contain the value of -`val` to 3 digits. See the __format documentation for more details. - -[heading:indeterminate_result_error Indeterminate Result Errors] - -When the result of a special function is indeterminate for the value that was -passed to it, then the function returns the result of: - - boost::math::policies::raise_overflow_error(FunctionName, Message, Val, Default, __Policy); - -Where -`T` is the floating-point type passed to the function, `FunctionName` is the -name of the function, `Message` is an error message describing the problem, -Val is the value for which the result is indeterminate, Default is an -alternative default result that must be returned for `ignore_error` and -`errno_on_erro` policies, and __Policy is the current policy in use for the -function that was called. - -The default policy for this function is `ignore_error`: note that this error -type is reserved for situations where the result is mathematically -undefined or indeterminate, but there is none the less a convention for what -the result should be: for example the C99 standard specifies that the result -of 0[super 0] is 1, even though the result is actually mathematically indeterminate. - -[heading:rounding_error Rounding Errors] - -When one of the rounding functions __round, __trunc or __modf is -called with an argument that has no integer representation, or -is too large to be represented in the result type then the -value returned is the result of a call to: - - boost::math::policies::raise_rounding_error(FunctionName, Message, Val, __Policy); - -Where -`T` is the floating point type passed to the function, `FunctionName` is the -name of the function, `Message` is an error message describing the problem, -`Val` is the erroneous argument, -and __Policy is the current policy in use for the called function. - -The default behaviour of this function is to throw a `boost::math::rounding_error`. - -Note that in order to support information rich error messages when throwing -exceptions, `Message` must contain -a __format recognised format specifier: the argument `val` is inserted into -the error message according to the specifier used. - -For example if `Message` contains a "%1%" then it is replaced by the value of -`val` to the full precision of T, where as "%.3g" would contain the value of -`val` to 3 digits. See the __format documentation for more details. - -[heading:checked_narrowing_cast Errors from typecasts] - -Many special functions evaluate their results at a higher precision -than their arguments in order to ensure full machine precision in -the result: for example, a function passed a float argument may evaluate -its result using double precision internally. Many of the errors listed -above may therefore occur not during evaluation, but when converting -the result to the narrower result type. The function: - - template - T checked_narrowing_cast(U const& val, const char* function); - -Is used to perform these conversions, and will call the error handlers -listed above on [link math_toolkit.error_handling.overflow_error overflow], -[link math_toolkit.error_handling.underflow_error underflow] or [link math_toolkit.error_handling.denorm_error denormalisation]. - -[endsect][/section:error_handling Error Handling] - -[/ - Copyright 2006 - 2012 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/overview/faq.qbk b/boost/libs/math/doc/overview/faq.qbk deleted file mode 100644 index fd7e46b8..00000000 --- a/boost/libs/math/doc/overview/faq.qbk +++ /dev/null @@ -1,104 +0,0 @@ -[section:main_faq Frequently Asked Questions FAQ] - -# ['I'm a FORTRAN/NAG/SPSS/SAS/Cephes/MathCad/R user -and I don't see where the functions like dnorm(mean, sd) are in Boost.Math?] [br] -Nearly all are provided, and many more like mean, skewness, quantiles, complements ... -but Boost.Math makes full use of C++, and it looks a bit different. -But do not panic! See section on construction and the many examples. -Briefly, the distribution is constructed with the parameters (like location and scale) -(things after the | in representation like P(X=k|n, p) or ; in a common represention of pdf f(x; [mu][sigma][super 2]). -Functions like pdf, cdf are called with the name of that distribution and the random variate often called x or k. -For example, `normal my_norm(0, 1); pdf(my_norm, 2.0);` [br] -#I'm a user of [@http://support.sas.com/rnd/app/da/new/probabilityfunctions.html New SAS Functions for Computing Probabilities]. [br] -You will find the interface more familar, but to be able to select a distribution (perhaps using a string) -see the Extras/Future Directions section, -and /boost/libs/math/dot_net_example/boost_math.cpp for an example that is used to create a C# (C sharp) utility -(that you might also find useful): -see [@http://sourceforge.net/projects/distexplorer/ Statistical Distribution Explorer].[br] -# ['I'm allegic to reading manuals and prefer to learn from examples.][br] -Fear not - you are not alone! Many examples are available for functions and distributions. -Some are referenced directly from the text. Others can be found at \boost_latest_release\libs\math\example. -If you are a Visual Studio user, you should be able to create projects from each of these, -making sure that the Boost library is in the include directories list. -# ['How do I make sure that the Boost library is in the Visual Studio include directories list?][br] -You can add an include path, for example, your Boost place /boost-latest_release, -for example `X:/boost_1_45_0/` if you have a separate partition X for Boost releases. -Or you can use an environment variable BOOST_ROOT set to your Boost place, and include that. -Visual Studio before 2010 provided Tools, Options, VC++ Directories to control directories: -Visual Studio 2010 instead provides property sheets to assist. -You may find it convenient to create a new one adding \boost-latest_release; -to the existing include items in $(IncludePath). -# ['I'm a FORTRAN/NAG/SPSS/SAS/Cephes/MathCad/R user and -I don't see where the properties like mean, median, mode, variance, skewness of distributions are in Boost.Math?][br] -They are all available (if defined for the parameters with which you constructed the distribution) via __usual_accessors. -# ['I am a C programmer. Can I user Boost.Math with C?][br] -Yes you can, including all the special functions, and TR1 functions like isnan. -They appear as C functions, by being declared as "extern C". -# ['I am a C# (Basic? F# FORTRAN? Other CLI?) programmer. Can I use Boost.Math with C#? (or ...)?] [br] -Yes you can, including all the special functions, and TR1 functions like isnan. -But you [*must build the Boost.Math as a dynamic library (.dll) and compile with the /CLI option]. -See the boost/math/dot_net_example folder which contains an example that -builds a simple statistical distribution app with a GUI. -See [@http://sourceforge.net/projects/distexplorer/ Statistical Distribution Explorer] [br] -# ['What these "policies" things for?] [br] -Policies are a powerful (if necessarily complex) fine-grain mechanism that -allow you to customise the behaviour of the Boost.Math library according to your precise needs. -See __policy_section. But if, very probably, the default behaviour suits you, you don't need to know more. -# ['I am a C user and expect to see global C-style`::errno` set for overflow/errors etc?] [br] -You can achieve what you want - see __error_policy and __user_error_handling and many examples. -# ['I am a C user and expect to silently return a max value for overflow?] [br] -You (and C++ users too) can return whatever you want on overflow -- see __overflow_error and __error_policy and several examples. -# ['I don't want any error message for overflow etc?] [br] -You can control exactly what happens for all the abnormal conditions, including the values returned. -See __domain_error, __overflow_error __error_policy __user_error_handling etc and examples. -# ['My environment doesn't allow and/or I don't want exceptions. Can I still user Boost.Math?] [br] -Yes but you must customise the error handling: see __user_error_handling and __changing_policy_defaults . -# ['The docs are several hundreds of pages long! Can I read the docs off-line or on paper?] [br] -Yes - you can download the Boost current release of most documentation -as a zip of pdfs (including Boost.Math) from Sourceforge, for example -[@https://sourceforge.net/projects/boost/files/boost-docs/1.45.0/boost_pdf_1_45_0.tar.gz/download]. -And you can print any pages you need (or even print all pages - but be warned that there are several hundred!). -Both html and pdf versions are highly hyperlinked. -The entire Boost.Math pdf can be searched with Adobe Reader, Edit, Find ... -This can often find what you seek, a partial substitute for a full index. -# ['I want a compact version for an embedded application. Can I use float precision?] [br] -Yes - by selecting RealType template parameter as float: -for example normal_distribution your_normal(mean, sd); -(But double may still be used internally, so space saving may be less that you hope for). -You can also change the promotion policy, but accuracy might be much reduced. -# ['I seem to get somewhat different results compared to other programs. Why?] -We hope Boost.Math to be more accurate: our priority is accuracy (over speed). -See the section on accuracy. But for evaluations that require iterations -there are parameters which can change the required accuracy (see __policy_section). -You might be able to squeeze a little more (or less) accuracy at the cost of runtime. -# ['Will my program run more slowly compared to other math functions and statistical libraries?] -Probably, thought not always, and not by too much: our priority is accuracy. -For most functions, making sure you have the latest compiler version with all optimisations switched on is the key to speed. -For evaluations that require iteration, you may be able to gain a little more speed at the expense of accuracy. -See detailed suggestions and results on __performance. -# ['How do I handle infinity and NaNs portably?] [br] -See __fp_facets for Facets for Floating-Point Infinities and NaNs. -# ['Where are the pre-built libraries?] [br] -Good news - you probably don't need any! - just `#include ]. -But in the unlikely event that you do, see __building. -# ['I don't see the function or distribution that I want.] [br] -You could try an email to ask the authors - but no promises! -# ['I need more decimal digits for values/computations.] [br] -You can use Boost.Math with __multiprecision: typically -__cpp_dec_float is a useful user-defined type to provide a fixed number of decimal digits, usually 50 or 100. -# Why can't I write something really simple like `cpp_int one(1); cpp_dec_float_50 two(2); one * two;` -Because `cpp_int` might be bigger than `cpp_dec_float can hold`, so you must make an [*explicit] conversion. -See [@http://svn.boost.org/svn/boost/trunk/libs/multiprecision/doc/html/boost_multiprecision/intro.html mixed multiprecision arithmetic] -and [@http://svn.boost.org/svn/boost/trunk/libs/multiprecision/doc/html/boost_multiprecision/tut/conversions.html conversion]. - - -[endsect] [/section:faq Frequently Asked Questions] - -[/ - Copyright 2010, 2012 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/overview/issues.qbk b/boost/libs/math/doc/overview/issues.qbk deleted file mode 100644 index 1f7641c1..00000000 --- a/boost/libs/math/doc/overview/issues.qbk +++ /dev/null @@ -1,153 +0,0 @@ -[section:issues Known Issues, and TODO List] - -Predominantly this is a TODO list, or a list of possible -future enhancements. Items labled "High Priority" effect -the proper functioning of the component, and should be fixed -as soon as possible. Items labled "Medium Priority" are -desirable enhancements, often pertaining to the performance -of the component, but do not effect it's accuracy or functionality. -Items labled "Low Priority" should probably be investigated at -some point. Such classifications are obviously highly subjective. - -If you don't see a component listed here, then we don't have any known -issues with it. - -[h4 Derivatives of Bessel functions (and their zeros)] - -Potentially, there could be native support -for `cyl_bessel_j_prime()` and `cyl_neumann_prime()`. -One could also imagine supporting the zeros -thereof, but they might be slower to calculate -since root bracketing might be needed instead -of Newton iteration (for the lack of 2nd derivatives). - -Since Boost.Math's Bessel functions are so excellent, -the quick way to `cyl_bessel_j_prime()` and -`cyl_neumann_prime()` would be via relationship with -`cyl_bessel_j()` and `cyl_neumann()`. - -[h4 tgamma] - -* Can the __lanczos be optimized any further? (low priority) - -[h4 Incomplete Beta] - -* Investigate Didonato and Morris' asymptotic expansion for large a and b -(medium priority). - -[h4 Inverse Gamma] - -* Investigate whether we can skip iteration altogether if the first approximation -is good enough (Medium Priority). - -[h4 Polynomials] - -* The Legendre and Laguerre Polynomials have surprisingly different error -rates on different platforms, considering they are evaluated with only -basic arithmetic operations. Maybe this is telling us something, or maybe not -(Low Priority). - -[h4 Elliptic Integrals] - -* [para Carlson's algorithms (mainly R[sub J]) are somewhat prone to -internal overflow/underflow when the arguments are very large or small. -The homogeneity relations:] -[para R[sub F](ka, kb, kc) = k[super -1/2] R[sub F](a, b, c)] -[para and] -[para R[sub J](ka, kb, kc, kr) = k[super -3/2] R[sub J](a, b, c, r)] -[para could be used to sidestep trouble here: provided the problem domains -can be accurately identified. (Medium Priority).] -* There are a several other integrals: Bulirsch's ['el] functions that could -be implemented using Carlson's integrals (Low Priority). -* The integrals K(k) and E(k) could be implemented using rational -approximations (both for efficiency and accuracy), -assuming we can find them. (Medium Priority). - -[h4 Owen's T Function] - -There is a problem area at arbitrary precision when ['a] is very close to 1. However, note that -the value for ['T(h, 1)] is well known and easy to compute, and if we replaced the -['a[super k]] terms in series T1, T2 or T4 by ['(a[super k] - 1)] then we would have the -difference between ['T(h, a)] and ['T(h, 1)]. Unfortunately this doesn't improve the -convergence of those series in that area. It certainly looks as though a new series in terms -of ['(1-a)[super k]] is both possible and desirable in this area, but it remains elusive at present. - -[h4 Jocobi elliptic functions] - -These are useful in engineering applications - we have had a request to add these. - -[h4 Statistical distributions] - -* Student's t Perhaps switch to normal distribution -as a better approximation for very large degrees of freedom? - -[h4 Feature Requests] - -We have a request for the Lambert W function, see [@https://svn.boost.org/trac/boost/ticket/11027 #11027]. - -The following table lists distributions that are found in other packages -but which are not yet present here, the more frequently the distribution -is found, the higher the priority for implementing it: - -[table -[[Distribution][R][Mathematica 6][NIST][Regress+][Matlab]] - -[/3 votes:] -[[Geometric][X][X][-][-][X]] - -[/2 votes:] -[[Multinomial][X][-][-][-][X]] -[[Tukey Lambda][X][-][X][-][-]] -[[Half Normal / Folded Normal][-][X][-][X][-]] -[[Chi][-][X][-][X][-]] -[[Gumbel][-][X][-][X][-]] -[[Discrete Uniform][-][X][-][-][X]] -[[Log Series][-][X][-][X][-]] -[[Nakagami (generalised Chi)][-][-][-][X][X]] - -[/1 vote:] -[[Log Logistic][-][-][-][-][X]] -[[Tukey (Studentized range)][X][-][-][-][-]] -[[Wilcoxon rank sum][X][-][-][-][-]] -[[Wincoxon signed rank][X][-][-][-][-]] -[[Non-central Beta][X][-][-][-][-]] -[[Maxwell][-][X][-][-][-]] -[[Beta-Binomial][-][X][-][-][-]] -[[Beta-negative Binomial][-][X][-][-][-]] -[[Zipf][-][X][-][-][-]] -[[Birnbaum-Saunders / Fatigue Life][-][-][X][-][-]] -[[Double Exponential][-][-][X][-][-]] -[[Power Normal][-][-][X][-][-]] -[[Power Lognormal][-][-][X][-][-]] -[[Cosine][-][-][-][X][-]] -[[Double Gamma][-][-][-][X][-]] -[[Double Weibul][-][-][-][X][-]] -[[Hyperbolic Secant][-][-][-][X][-]] -[[Semicircular][-][-][-][X][-]] -[[Bradford][-][-][-][X][-]] -[[Birr / Fisk][-][-][-][X][-]] -[[Reciprocal][-][-][-][X][-]] - -[/0 votes but useful anyway?] -[[Kolmogorov Distribution][-][-][-][-][-]] -] - -Also asked for more than once: - -* Add support for interpolated distributions, possibly combine with numeric -integration and differentiation. -* Add support for bivariate and multivariate distributions: most especially the normal. -* Add support for the log of the cdf and pdf: -this is mainly a performance optimisation since we can avoid -some special function calls for some distributions -by returning the log of the result. - -[endsect] [/section:issues Known Issues, and Todo List] - -[/ - Copyright 2006, 2010 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/overview/overview.qbk b/boost/libs/math/doc/overview/overview.qbk deleted file mode 100644 index d5e89c85..00000000 --- a/boost/libs/math/doc/overview/overview.qbk +++ /dev/null @@ -1,93 +0,0 @@ -[section:main_intro About the Math Toolkit] - -This library is divided into three interconnected parts: - -[h4 Statistical Distributions] - -Provides a reasonably comprehensive set of -[link dist statistical distributions], -upon which higher level statistical tests can be built. - -The initial focus is on the central -[@http://en.wikipedia.org/wiki/Univariate univariate ] -[@http://mathworld.wolfram.com/StatisticalDistribution.html distributions]. -Both [@http://mathworld.wolfram.com/ContinuousDistribution.html continuous] -(like [link math_toolkit.dist_ref.dists.normal_dist normal] -& [link math_toolkit.dist_ref.dists.f_dist Fisher]) -and [@http://mathworld.wolfram.com/DiscreteDistribution.html discrete] -(like [link math_toolkit.dist_ref.dists.binomial_dist binomial] -& [link math_toolkit.dist_ref.dists.poisson_dist Poisson]) -distributions are provided. - -A [link math_toolkit.stat_tut comprehensive tutorial is provided], -along with a series of -[link math_toolkit.stat_tut.weg worked examples] illustrating -how the library is used to conduct statistical tests. - -[h4 Mathematical Special Functions] - -Provides a small number of high quality -[link special special functions], -initially these were concentrated on functions used in statistical applications -along with those in the [tr1]. - -The function families currently implemented are the gamma, beta & erf functions -along with the incomplete gamma and beta functions (four variants -of each) and all the possible inverses of these, plus digamma, -various factorial functions, -Bessel functions, elliptic integrals, sinus cardinals (along with their -hyperbolic variants), inverse hyperbolic functions, Legrendre/Laguerre/Hermite -polynomials and various -special power and logarithmic functions. - -All the implementations -are fully generic and support the use of arbitrary "real-number" types, -including __multiprecision, -although they are optimised for use with types with known-about -[@http://en.wikipedia.org/wiki/Significand significand (or mantissa)] -sizes: typically `float`, `double` or `long double`. - -[h4 Implementation Toolkit] - -The section [link math_toolkit.internals_overview Internal tools] -provides many of the tools required to implement -mathematical special functions: hopefully the presence of -these will encourage other authors to contribute more special -function implementations in the future. - -Some tools are now considered well-tried and their signatures stable and unlikely to change. - -There is a fairly comprehensive set of root finding both -__root_finding_without_derivatives -and __root_finding_with_derivatives with derivative support, -and function minimization using __brent_minima. - -Other [link math_toolkit.internals_overview Internal tools] -are currently still considered experimental: they are "exposed implementation details" -whose interfaces and\/or implementations may change without notice. - -There are helpers for the -[link math_toolkit.internals.series_evaluation evaluation of infinite series], -[link math_toolkit.internals.cf continued -fractions] and [link math_toolkit.roots.rational -rational approximations]. -A [link math_toolkit.internals.minimax Remez algorithm implementation] -allows for the locating of minimax rational -approximations. - -There are also (experimental) classes for the -[link math_toolkit.roots.polynomials manipulation of polynomials], for -[link math_toolkit.internals.error_test -testing a special function against tabulated test data], and for -the [link math_toolkit.internals.test_data -rapid generation of test data] and/or data for output to an -external graphing application. - -[endsect] [/section:intro Introduction] - -[/ - Copyright 2006, 2012, 2015 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/overview/result_type_calc.qbk b/boost/libs/math/doc/overview/result_type_calc.qbk deleted file mode 100644 index ff3b607f..00000000 --- a/boost/libs/math/doc/overview/result_type_calc.qbk +++ /dev/null @@ -1,85 +0,0 @@ - -[section:result_type Calculation of the Type of the Result] - -The functions in this library are all overloaded to accept -mixed floating point (or mixed integer and floating point type) -arguments. So for example: - - foo(1.0, 2.0); - foo(1.0f, 2); - foo(1.0, 2L); - -etc, are all valid calls, as long as "foo" is a function taking two -floating-point arguments. But that leaves the question: - -[blurb ['"Given a special function with N arguments of -types T1, T2, T3 ... TN, then what type is the result?"]] - -[*If all the arguments are of the same (floating point) type then the -result is the same type as the arguments.] - -Otherwise, the type of the result -is computed using the following logic: - -# Any arguments that are not template arguments are disregarded from -further analysis. -# For each type in the argument list, if that type is an integer type -then it is treated as if it were of type double for the purposes of -further analysis. -# If any of the arguments is a user-defined class type, then the result type -is the first such class type that is constructible from all of the other -argument types. -# If any of the arguments is of type `long double`, then the result is of type -`long double`. -# If any of the arguments is of type `double`, then the result is of type -`double`. -# Otherwise the result is of type `float`. - -For example: - - cyl_bessel(2, 3.0); - -Returns a `double` result, as does: - - cyl_bessel(2, 3.0f); - -as in this case the integer first argument is treated as a `double` and takes -precedence over the `float` second argument. To get a `float` result we would need -all the arguments to be of type float: - - cyl_bessel_j(2.0f, 3.0f); - -When one or more of the arguments is not a template argument then it -doesn't effect the return type at all, for example: - - sph_bessel(2, 3.0f); - -returns a `float`, since the first argument is not a template argument and -so doesn't effect the result: without this rule functions that take -explicitly integer arguments could never return `float`. - -And for user-defined types, all of the following return an `NTL::RR` result: - - cyl_bessel_j(0, NTL::RR(2)); - - cyl_bessel_j(NTL::RR(2), 3); - - cyl_bessel_j(NTL::quad_float(2), NTL::RR(3)); - -In the last case, `quad_float` is convertible to `RR`, but not vice-versa, so -the result will be an `NTL::RR`. Note that this assumes that you are using -a [link math_toolkit.high_precision.use_ntl patched NTL library]. - -These rules are chosen to be compatible with the behaviour of -['ISO/IEC 9899:1999 Programming languages - C] -and with the -[@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf Draft Technical Report on C++ Library Extensions, 2005-06-24, section 5.2.1, paragraph 5]. - -[endsect] - -[/ - Copyright 2006, 2012 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/overview/roadmap.qbk b/boost/libs/math/doc/overview/roadmap.qbk deleted file mode 100644 index 6e6dae00..00000000 --- a/boost/libs/math/doc/overview/roadmap.qbk +++ /dev/null @@ -1,418 +0,0 @@ -[template history[] - -Currently open bug reports can be viewed -[@https://svn.boost.org/trac/boost/query?status=assigned&status=new&status=reopened&component=math&col=id&col=summary&col=status&col=type&col=milestone&col=component&order=priority here]. - -All bug reports including closed ones can be viewed -[@https://svn.boost.org/trac/boost/query?status=assigned&status=closed&status=new&status=reopened&component=math&col=id&col=summary&col=status&col=type&col=milestone&col=component&order=priority here]. - -[h4 Math-2.5.1 (Boost-1.63)] - -Patches: - -* Fixed evaluation of zero polynomial in polynomial.hpp, see [@https://svn.boost.org/trac/boost/ticket/12532 12532]. -* Fixed missing header include in boost/math/tools/tuple.hpp, see [@https://svn.boost.org/trac/boost/ticket/12537 12537]. - -[h4 Math-2.5.0 (Boost-1.62)] - -New Features: - -* Enabled all the special function code to work correctly with types whose precision can change at runtime: for example type `mpfr_float` from Boost.Multiprecision. - -Patches: - -* Fix tgamma_delta_ratio for cases where the delta is small compared to the base. -* Fix misc GCC-4.4 test failures. - -[h4 Math-2.4.0 (Boost-1.61)] - -New Features: - -* Polynomial arithmetic added to tools. - - -[h4 Math-2.3.0 (Boost-1.60)] - -New Features: - -* Promote the root finding and function minimization code to first class citizens - these are now officially supported as part of the library. -* Allow the library to be used and tested with compiler exception handling support turned off. To better facilitate this -the default error handling policies have been changed to ['errno_on_error] but only when the compiler has no exception handling support. - -Patches: - -* Fix behaviour of the non-central chi-squared distribution when the non-centrality parameter is zero to match the chi-squared, -see [@https://svn.boost.org/trac/boost/ticket/11557 11557]. -* Fix comments in code for the hypergeometric to match what it actually does, also fixes the parameter access functions to return -the correct values. See [@https://svn.boost.org/trac/boost/ticket/11556 11556]. -* Stopped using hidden visiblity library build with the Oracle compiler as it leads to unresolved externals from the C++ standard library. -See [@https://svn.boost.org/trac/boost/ticket/11547 11547]. -* Fix unintended use of __declspec when building with Oracle C++. See [@https://svn.boost.org/trac/boost/ticket/11546 11546]. -* Fix corner case bug in root bracketing code, see [@https://svn.boost.org/trac/boost/ticket/11532 11532]. -* Add some missing typecasts in arguments to std::max in Bernoulli code. See [@https://svn.boost.org/trac/boost/ticket/11453 11453]. -* Fix mistaken assumptions about the possible values for FLT_EVAL_METHOD. See [@https://svn.boost.org/trac/boost/ticket/11429 11429]. -* Completely revamped performance testing and error-rate measuring code so we can more easily document how well (or not!) we're doing. -This information will hopefully get more frequently updated in future as it's more or less automatically generated - see the /reporting/ -sub-directory for more information. -* Fix some corner cases in the beta, incomplete beta, and incomplete beta derivative. With thanks to Rocco Romeo. -* Reorganized the Bessel functions internally to improve the performance of Jn and Yn. -* Fixed skewness formula for triangular distribution, see [@https://svn.boost.org/trac/boost/ticket/11768 #11768]. -* Fixed some examples so they compile on Unix platforms which have an ::exception struct declared, see [@https://svn.boost.org/trac/boost/ticket/11827 #11827]. -* Correct mistake in triangular distribution skewness formula [@https://svn.boost.org/trac/boost/ticket/11768 11768], -reported by Juan Leni. - -[h4 Math-2.2.1] - -Patch release for Boost-1.58: - -* Minor [@https://github.com/boostorg/math/pull/13#issuecomment-98905579 patch for Haiku support.] -* Fix the decimal digit count for 128-bit floating point types. -* Fix a few documentation typos. - -[h4 Math-2.2.0 (boost-1.58.0)] - -* Added two new special functions - __trigamma and __polygamma. -* Fixed namespace scope constants so they are constexpr on conforming compilers, see https://svn.boost.org/trac/boost/ticket/10901. -* Fixed various cases of spurious under/overflow in the incomplete beta and gamma functions, plus the elliptic integrals, -with thanks to Rocco Romeo. -* Fix 3-arg __legendre_p and __legendre_q functions to not call the policy based overload if the final argument -is not actually a policy. -* Cleaned up some dead code in the incomplete beta function, see [@https://svn.boost.org/trac/boost/ticket/10985 #10985]. -* Fixed extreme-value pdf for large valued inputs, see [@https://svn.boost.org/trac/boost/ticket/10938 #10938]. -* Large update to the Elliptic integral code to use Carlson's latest algorithms - these should be more stable, more accurate -and slightly faster than before. Also added support for Carlson's RG integral. -* Added __ellint_d, __jacobi_zeta and __heuman_lambda elliptic integrals. -* Switched documentation to use SVG rather than PNG graphs and equations - browsers seem to have finally caught up! - -[h4 Math-2.1.0 (boost-1.57.0)] - -* Added __hyperexponential_distrib. -* Fix some spurious overflows in the incomplete gamma functions (with thanks to Rocco Romeo). -* Fix bug in derivative of incomplete beta when a = b = 0.5 - this also effects several non-central distributions, -see [@https://svn.boost.org/trac/boost/ticket/10480 10480]. -* Fixed some corner cases in __round. -* Don't support 80-bit floats in cstdfloat.hpp if standard library support is broken. - -[h4 Math-2.0.0 (Boost-1.56.0)] - -* [*Breaking change]: moved a number of non-core headers that are predominantly used for internal -maintenance into `libs/math/include_private`. The headers effected are `boost/math/tools/test_data.hpp`, -`boost/math/tools/remez.hpp`, `boost/math/constants/generate.hpp`, `boost/math/tools/solve.hpp`, -`boost/math/tools/test.hpp`. -You can continue to use these headers by adding `libs/math/include_private` to your compiler's include path. -* [*Breaking change]: A number of distributions and special functions were returning the maximum finite value -rather than raising an __overflow_error, this has now been fixed, which means these functions now behave as -documented. However, since the default behavior on raising an __overflow_error is to throw a `std::overflow_error` -exception, applications which have come to reply rely on these functions not throwing may experience exceptions -where they did not before. The special functions involved are __gamma_p_inva, __gamma_q_inva, -__ibeta_inva, __ibetac_inva, __ibeta_invb, __ibetac_invb, __gamma_p_inv, __gamma_q_inv. The distributions -involved are __pareto_distrib, __beta_distrib, __geometric_distrib, __negative_binomial_distrib, -__binomial_distrib, __chi_squared_distrib, __gamma_distrib, __inverse_chi_squared_distrib, -__inverse_gamma_distrib. See [@https://svn.boost.org/trac/boost/ticket/10111 #10111]. -* Fix __round and __trunc functions so they can be used with integer arguments, see [@https://svn.boost.org/trac/boost/ticket/10066 #10066]. -* Fix Halley iteration to handle zero derivative (with non-zero second derivative), see [@https://svn.boost.org/trac/boost/ticket/10046 #10046]. - -[h4 Math-1.9.1] - -* Fix Geometric distribution use of Policies, see [@https://svn.boost.org/trac/boost/ticket/9833 #9833]. -* Fix corner cases in the negative binomial distribution, see [@https://svn.boost.org/trac/boost/ticket/9834 #9834]. -* Fix compilation failures on Mac OS. - -[h4 Math-1.9.0] - -* Changed version number to new Boost.Math specific version now that we're in the modular Boost world. -* Added __bernoulli_numbers, changed arbitrary precision __tgamma/__lgamma to use Sterling's approximation (from Nikhar Agrawal). -* Added first derivatives of the Bessel functions: __cyl_bessel_j_prime, __cyl_neumann_prime, __cyl_bessel_i_prime, __cyl_bessel_k_prime, __sph_bessel_prime and __sph_neumann_prime (from Anton Bikineev). -* Fixed buggy Student's t example code, along with docs for testing sample means for equivalence. -* Documented `max_iter` parameter in root finding code better, see [@https://svn.boost.org/trac/boost/ticket/9225 #9225]. -* Add option to explicitly enable/disable use of __float128 in constants code, see [@https://svn.boost.org/trac/boost/ticket/9240 #9240]. -* Cleaned up handling of negative values in Bessel I0 and I1 code (removed dead code), see [@https://svn.boost.org/trac/boost/ticket/9512 #9512]. -* Fixed handling of very small values passed to __tgamma and __lgamma so they don't generate spurious overflows (thanks to Rocco Romeo). -* [@https://svn.boost.org/trac/boost/ticket/9672 #9672 PDF and CDF of a Laplace distribution throwing domain_error] -Random variate can now be infinite. -* Fixed several corner cases in __rising_factorial, __falling_factorial and __tgamma_delta_ratio with thanks to Rocco Romeo. -* Fixed several corner cases in __rising_factorial, __falling_factorial and __tgamma_delta_ratio (thanks to Rocco Romeo). -* Removed constant `pow23_four_minus_pi ` whose value did not match the name (and was unused by Boost.Math), see -[@https://svn.boost.org/trac/boost/ticket/9712 #9712]. - -[h4 Boost-1.55] - -* Suppress numerous warnings (mostly from GCC-4.8 and MSVC) [@https://svn.boost.org/trac/boost/ticket/8384 #8384], [@https://svn.boost.org/trac/boost/ticket/8855 #8855], -[@https://svn.boost.org/trac/boost/ticket/9107 #9107], [@https://svn.boost.org/trac/boost/ticket/9109 #9109].. -* Fixed PGI compilation issue [@https://svn.boost.org/trac/boost/ticket/8333 #8333]. -* Fixed PGI constant value initialization issue that caused erf to generate incorrect results [@https://svn.boost.org/trac/boost/ticket/8621 #8621]. -* Prevent macro expansion of some C99 macros that are also C++ functions [@https://svn.boost.org/trac/boost/ticket/8732 #8732] and [@https://svn.boost.org/trac/boost/ticket/8733 #8733].. -* Fixed Student's T distribution to behave correctly with huge degrees of freedom (larger than the largest representable integer) [@https://svn.boost.org/trac/boost/ticket/8837 #8837]. -* Make some core functions usable with `long double` even when the platform has no standard library `long double` support [@https://svn.boost.org/trac/boost/ticket/8940 #8940]. -* Fix error handling of distributions to catch invalid scale and location parameters when the random variable is infinite [@https://svn.boost.org/trac/boost/ticket/9042 #9042] and [@https://svn.boost.org/trac/boost/ticket/9126 #9126]. -* Add workaround for broken in Intel C++ 14 [@https://svn.boost.org/trac/boost/ticket/9087 #9087]. -* Improve consistency of argument reduction in the elliptic integrals [@https://svn.boost.org/trac/boost/ticket/9104 #9104]. -* Fix bug in inverse incomplete beta that results in cancellation errors when the beta function is really an arcsine or Student's T distribution. -* Fix issue in Bessel I and K function continued fractions that causes spurious over/underflow. -* Add improvement to non-central chi squared distribution quantile due to Thomas Luu, -[@http://discovery.ucl.ac.uk/1482128/ Fast and accurate parallel computation of quantile functions for random number generation, Doctorial Thesis 2016]. -[@http://discovery.ucl.ac.uk/1463470/ Efficient and Accurate Parallel Inversion of the Gamma Distribution, Thomas Luu] -[h4 Boost-1.54] - -* Major reorganization to incorporate other Boost.Math like Integer Utilities Integer Utilities (Greatest Common Divisor and Least Common Multiple), quaternions and octonions. -Making new chapter headings. -* Added many references to Boost.Multiprecision and `cpp_dec_float_50` as an example of a User-defined Type (UDT). -* Added Clang to list of supported compilers. -* Fixed constants to use a thread-safe cache of computed values when used at arbitrary precision. -* Added finding zeros of Bessel functions `cyl_bessel_j_zero`, `cyl_neumann_zero`, `airy_ai_zero` and `airy_bi_zero`(by Christopher Kormanyos). -* More accuracy improvements to the Bessel J and Y functions from Rocco Romeo. -* Fixed nasty cyclic dependency bug that caused some headers to not compile [@https://svn.boost.org/trac/boost/ticket/7999 #7999]. -* Fixed bug in __tgamma that caused spurious overflow for arguments between 142.5 and 143. -* Fixed bug in raise_rounding_error that caused it to return an incorrect result when throwing an exception is turned off [@https://svn.boost.org/trac/boost/ticket/7905 #7905]. -* Added minimal __float128 support. -* Fixed bug in edge-cases of poisson quantile [@https://svn.boost.org/trac/boost/ticket/8308 #8308]. -* Adjusted heuristics used in Halley iteration to cope with inverting the incomplete beta in tricky regions -where the derivative is flatlining. Example is computing the quantile of the Fisher F distribution for probabilities -smaller than machine epsilon. See ticket [@https://svn.boost.org/trac/boost/ticket/8314 #8314]. - -[h4 Boost-1.53] - -* Fixed issues [@https://svn.boost.org/trac/boost/ticket/7325 #7325], [@https://svn.boost.org/trac/boost/ticket/7415 #7415] -and [@https://svn.boost.org/trac/boost/ticket/7416 #7416], [@https://svn.boost.org/trac/boost/ticket/7183 #7183], -[@https://svn.boost.org/trac/boost/ticket/7649 #7649], [@https://svn.boost.org/trac/boost/ticket/7694 #7694], -[@https://svn.boost.org/trac/boost/ticket/4445 #4445], [@https://svn.boost.org/trac/boost/ticket/7492 #7492], -[@https://svn.boost.org/trac/boost/ticket/7891 #7891], [@https://svn.boost.org/trac/boost/ticket/7429 #7429]. -* Fixed mistake in calculating pooled standard deviation in two-sample students t example -[@https://svn.boost.org/trac/boost/ticket/7402 #7402]. -* Improve complex acos/asin/atan, see [@https://svn.boost.org/trac/boost/ticket/7290 #7290], -[@https://svn.boost.org/trac/boost/ticket/7291 #7291]. -* Improve accuracy in some corner cases of __cyl_bessel_j and __gamma_p/__gamma_q thanks to suggestions from Rocco Romeo. -* Improve accuracy of Bessel J and Y for integer orders thanks to suggestions from Rocco Romeo. - -[h4 Boost-1.52] - -* Corrected moments for small degrees of freedom [@https://svn.boost.org/trac/boost/ticket/7177 #7177] (reported by Thomas Mang). -* Added [link math_toolkit.airy Airy functions] and [link math_toolkit.jacobi Jacobi Elliptic functions]. -* Corrected failure to detect bad parameters in many distributions -[@https://svn.boost.org/trac/boost/ticket/6934 #6934] (reported by Florian Schoppmann) -by adding a function check_out_of_range to test many possible bad parameters. -This test revealed several distributions where the checks for bad parameters were ineffective, -and these have been rectified. -* Fixed issue in Hankel functions that causes incorrect values to be returned for ['x < 0] and [nu] odd, see [@https://svn.boost.org/trac/boost/ticket/7135 #7135]. -* Fixed issues [@https://svn.boost.org/trac/boost/ticket/6517 #6517], [@https://svn.boost.org/trac/boost/ticket/6362 #6362], -[@https://svn.boost.org/trac/boost/ticket/7053 #7053], [@https://svn.boost.org/trac/boost/ticket/2693 #2693], -[@https://svn.boost.org/trac/boost/ticket/6937 #6937], [@https://svn.boost.org/trac/boost/ticket/7099 #7099]. - - -* Permitted infinite degrees of freedom [@https://svn.boost.org/trac/boost/ticket/7259 #7259] -implemented using the normal distribution (requested by Thomas Mang). -* Much enhanced accuracy for large degrees of freedom [nu] and/or large non-centrality [delta] -by switching to use the Students t distribution -(or Normal distribution for infinite degrees of freedom) - centered at delta, -when [delta] / (4 * [nu]) < epsilon for the floating-point type in use. -[@https://svn.boost.org/trac/boost/ticket/7259 #7259]. -It was found that the incomplete beta was suffering from serious cancellation errors -when degrees of freedom was very large. (That has now been fixed in our code, -but any code based on Didonato and Morris's original papers -(probably every implementation out there actually) will have the same issue). - -[h4 Boost-1.51] -See Boost-1.52 - some items were added but not listed in time for the release. - -[h4 Boost-1.50] - -* Promoted math constants to be 1st class citizens, -including convenient access to the most widely used -built-in float, double, long double via three namespaces. -* Added the Owen's T function and Skew Normal distribution written by Benjamin Sobotta: see __owens_t and skew_normal_distrib. -* Added Hankel functions __cyl_hankel_1, __cyl_hankel_2, __sph_hankel_1 and __sph_hankel_2. -* Corrected issue [@https://svn.boost.org/trac/boost/ticket/6627 #6627 nonfinite_num_put formatting of 0.0 is incorrect] -based on a patch submitted by K R Walker. -* Changed constant initialization mechanism so that it is thread safe even for user-defined types, also -so that user defined types get the full precision of the constant, even when `long double` does not. -So for example 128-bit rational approximations will work with UDT's and do the right thing, even though -`long double` may be only 64 or 80 bits. -* Fixed issue in `bessel_jy` which causes Y[sub 8.5](4[pi]) to yield a NaN. - -[h4 Boost-1.49] - -* Deprecated wrongly named `twothirds` math constant in favour of `two_thirds` (with underscore separator). -(issue [@https://svn.boost.org/trac/boost/ticket/6199 #6199]). -* Refactored test data and some special function code to improve support for arbitary precision and/or expression-template-enabled types. -* Added new faster zeta function evaluation method. - -Fixed issues: - -* Corrected CDF complement for Laplace distribution (issue [@https://svn.boost.org/trac/boost/ticket/6151 #6151]). -* Corrected branch cuts on the complex inverse trig functions, to handle signed zeros (issue [@https://svn.boost.org/trac/boost/ticket/6171 #6171]). -* Fixed bug in `bessel_yn` which caused incorrect overflow errors to be raised for negative ['n] (issue [@https://svn.boost.org/trac/boost/ticket/6367 #6367]). -* Also fixed minor/cosmetic/configuration issues [@https://svn.boost.org/trac/boost/ticket/6120 #6120], [@https://svn.boost.org/trac/boost/ticket/6191 #6191], - [@https://svn.boost.org/trac/boost/ticket/5982 #5982], [@https://svn.boost.org/trac/boost/ticket/6130 #6130], - [@https://svn.boost.org/trac/boost/ticket/6234 #6234], [@https://svn.boost.org/trac/boost/ticket/6307 #6307], - [@https://svn.boost.org/trac/boost/ticket/6192 #6192]. - -[h4 Boost-1.48] - -* Added new series evaluation methods to the cyclic Bessel I, J, K and Y functions. -Also taken great care to avoid spurious over and underflow of these functions. -Fixes issue [@https://svn.boost.org/trac/boost/ticket/5560 #5560] - -* Added an example of using Inverse Chi-Squared distribution for Bayesian statistics, -provided by Thomas Mang. - -* Added tests to use improved version of lexical_cast which handles C99 nonfinites without using globale facets. - -* Corrected wrong out-of-bound uniform distribution CDF complement values [@https://svn.boost.org/trac/boost/ticket/5733 #5733]. - -* Enabled long double support on OpenBSD (issue [@https://svn.boost.org/trac/boost/ticket/6014 #6014]). - -* Changed nextafter and related functions to behave in the same way as other implementations - so that nextafter(+INF, 0) -is a finite value (issue [@https://svn.boost.org/trac/boost/ticket/5823 #5832]). - -* Changed tuple include configuration to fix issue when using in conjunction with Boost.Tr1 (issue [@https://svn.boost.org/trac/boost/ticket/5934 #5934]). - -* Changed class eps_tolerance to behave correctly when both ends of the range are zero (issue [@https://svn.boost.org/trac/boost/ticket/6001 #6001]). - -* Fixed missing include guards on prime.hpp (issue [@https://svn.boost.org/trac/boost/ticket/5927 #5927]). - -* Removed unused/undocumented constants from constants.hpp (issue [@https://svn.boost.org/trac/boost/ticket/5982 #5982]). - -* Fixed missing std:: prefix in nonfinite_num_facets.hpp (issue [@https://svn.boost.org/trac/boost/ticket/5914 #5914]). - -* Minor patches for Cray compiler compatibility. - -[h4 Boost-1.47] - -* Added changesign function to sign.hpp to facilitate addition of nonfinite facets. -* Addition of nonfinite facets from Johan Rade, with tests, -examples of use for C99 format infinity and NaN, and documentation. -* Added tests and documentation of changesign from Johan Rade. - -[h4 Boost-1.46.1] - -* Fixed issues [@https://svn.boost.org/trac/boost/ticket/5095 #5095], [@https://svn.boost.org/trac/boost/ticket/5095 #5113]. - -[h4 Boost-1.46.0] - -* Added Wald, Inverse Gaussian and geometric distributions. -* Added information about configuration macros. -* Added support for mpreal as a real-numbered type. - -[h4 Boost-1.45.0] - -* Added warnings about potential ambiguity with std random library in distribution and function names. -* Added inverse gamma distribution and inverse chi_square and scaled inverse chi_square. -* Editorial revision of documentation, and added FAQ. - -[h4 Boost-1.44.0] - -* Fixed incorrect range and support for Rayleigh distribution. -* Fixed numerical error in the quantile of the Student's T distribution: the function was -returning garbage values for non-integer degrees of freedom between 2 and 3. - -[h4 Boost-1.41.0] - -* Significantly improved performance for the incomplete gamma function and its inverse. - -[h4 Boost-1.40.0] - -* Added support for MPFR as a bignum type. -* Added some full specializations of the policy classes to reduce compile times. -* Added logistic and hypergeometric distributions, from Gautam Sewani's Google Summer of Code project. -* Added Laplace distribution submitted by Thijs van den Berg. -* Updated performance test code to include new distributions, and improved the performance of the non-central distributions. -* Added SSE2 optimised __lanczos code, from Gautam Sewani's Google Summer of Code project. -* Fixed bug in cyl_bessel_i that used an incorrect approximation for [nu] = 0.5, also effects the non-central - Chi Square Distribution when [nu] = 3, see bug report [@https://svn.boost.org/trac/boost/ticket/2877 #2877]. -* Fixed minor bugs [@https://svn.boost.org/trac/boost/ticket/2873 #2873]. - -[h4 Boost-1.38.0] - -* Added Johan R'''å'''de's optimised floating point classification routines. -* Fixed code so that it compiles in GCC's -pedantic mode (bug report -[@https://svn.boost.org/trac/boost/ticket/1451 #1451]). - -[h4 Boost-1.37.0] - -* Improved accuracy and testing of the inverse hypergeometric functions. - -[h4 Boost-1.36.0] - -* Added Noncentral Chi Squared Distribution. -* Added Noncentral Beta Distribution. -* Added Noncentral F Distribution. -* Added Noncentral T Distribution. -* Added Exponential Integral Functions. -* Added Zeta Function. -* Added Rounding and Truncation functions. -* Added Compile time powers of runtime bases. -* Added SSE2 optimizations for Lanczos evaluation. - -[h4 Boost-1.35.0: Post Review First Official Release] - -* Added Policy based framework that allows fine grained control -over function behaviour. -* [*Breaking change:] Changed default behaviour for domain, pole and overflow errors -to throw an exception (based on review feedback), this -behaviour can be customised using __Policy's. -* [*Breaking change:] Changed exception thrown when an internal evaluation error -occurs to boost::math::evaluation_error. -* [*Breaking change:] Changed discrete quantiles to return an integer result: -this is anything up to 20 times faster than finding the true root, this -behaviour can be customised using __Policy's. -* Polynomial/rational function evaluation is now customisable and hopefully -faster than before. -* Added performance test program. - -[h4 Milestone 4: Second Review Candidate (1st March 2007)] - -* Moved Xiaogang Zhang's Bessel Functions code into the library, -and brought them into line with the rest of the code. -* Added C# "Distribution Explorer" demo application. - -[h4 Milestone 3: First Review Candidate (31st Dec 2006)] - -* Implemented the main probability distribution and density functions. -* Implemented digamma. -* Added more factorial functions. -* Implemented the Hermite, Legendre and Laguerre polynomials plus the -spherical harmonic functions from TR1. -* Moved Xiaogang Zhang's elliptic integral code into the library, -and brought them into line with the rest of the code. -* Moved Hubert Holin's existing Boost.Math special functions -into this library and brought them into line with the rest of the code. - -[h4 Milestone 2: Released September 10th 2006] - -* Implement preview release of the statistical distributions. -* Added statistical distributions tutorial. -* Implemented root finding algorithms. -* Implemented the inverses of the incomplete gamma and beta functions. -* Rewrite erf/erfc as rational approximations (valid to 128-bit precision). -* Integrated the statistical results generated from -the test data with Boost.Test: uses a database of expected -results, indexed by test, floating point type, platform, and compiler. -* Improved lgamma near 1 and 2 (rational approximations). -* Improved erf/erfc inverses (rational approximations). -* Implemented Rational function generation (the Remez method). - -[h4 Milestone 1: Released March 31st 2006] - -* Implement gamma/beta/erf functions along with their incomplete counterparts. -* Generate high quality test data, against which future improvements can be judged. -* Provide tools for the evaluation of infinite series, continued fractions, and -rational functions. -* Provide tools for testing against tabulated test data, and collecting statistics -on error rates. -* Provide sufficient docs for people to be able to find their way around the library. - -SVN Revisions: - -Sandbox and trunk last synchonised at revision: . - -] -[/ - Copyright 2006 - 2013 John Maddock and Paul A. Bristow. - 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). -] - - - diff --git a/boost/libs/math/doc/overview/structure.qbk b/boost/libs/math/doc/overview/structure.qbk deleted file mode 100644 index a106f97a..00000000 --- a/boost/libs/math/doc/overview/structure.qbk +++ /dev/null @@ -1,193 +0,0 @@ -[section:navigation Navigation] - -[indexterm1 navigation] - -Boost.Math documentation is provided in both HTML and PDF formats. - -* [*Tutorials] are listed in the ['Table of Contents] and -include many examples that should help you get started quickly. -* [*Source code] of the many ['Examples] will often be your quickest starting point. -* [*Index] (general) includes all entries. -* [*Specific Indexes] list only functions, class signatures, macros and typedefs. - -[h5 Using the Indexes] - -The main index will usually help, -especially if you know a word describing what it does, -without needing to know the exact name chosen for the function. - -[tip When using the index, keep in mind that clicking on an index term -only takes you to the [*section] containing the index entry. -This section may be several pages long, -so you may need to use the [*find] facility of your browser or PDF reader -to get to the index term itself.] - -[tip A PDF reader usually allows a [*global] find; this can be really useful -if the term you expect to be indexed is not the one chosen by the authors. -You might find searching the PDF version and viewing the HTML version -will locate an elusive item.] - -[endsect] [/section:navigation Navigation] - -[section:conventions Document Conventions] - -[indexterm1 conventions] - -This documentation aims to use of the following naming and formatting conventions. - -* C++ Code is in `fixed width font` and is syntax-highlighted in color, for example `double`. -* Other code is in block [^teletype fixed-width font]. -* Replaceable text that [*you] will need to supply is in [~italics]. -* If a name refers to a free function, it is specified like this: - `free_function()`; that is, it is in [~code font] and its name is followed by `()` - to indicate that it is a free function. -* If a name refers to a class template, it is specified like this: - `class_template<>`; that is, it is in code font and its name is followed by `<>` - to indicate that it is a class template. -* If a name refers to a function-like macro, it is specified like this: `MACRO()`; - that is, it is uppercase in code font and its name is followed by `()` to - indicate that it is a function-like macro. Object-like macros appear without the - trailing `()`. -* Names that refer to ['concepts] in the generic programming sense -(like template parameter names) are specified in CamelCase. - - -[endsect] [/section:conventions Document Conventions] - -[section:hints Other Hints and tips] - -* If you have a feature request, -or if it appears that the implementation is in error, -please search first in the [@https://svn.boost.org/trac/boost/ Boost Trac]. - -* [@https://svn.boost.org/trac/boost/ Trac] entries may indicate that -updates or corrections that solve your problem are in -[@http://svn.boost.org/svn/boost/trunk Boost-trunk] -where changes are being assembled and tested ready for the next release. -You may, at your own risk, download new versions from there. - -* If you do not understand why things work the way they do, see the ['rationale] section. - -* If you do not find your idea/feature/complaint, -please reach the author preferably through the Boost -development list, or email the author(s) direct. - -[h5 Admonishments] - -[note In addition, notes such as this one specify non-essential information that -provides additional background or rationale.] - -[tip These blocks contain information that you may find helpful while coding.] - -[important These contain information that is imperative to understanding a concept. -Failure to follow suggestions in these blocks will probably result in undesired behavior. -Read all of these you find.] - -[warning Failure to heed this will lead to incorrect, -and very likely undesired, results.] - -[endsect] [/section:hints Other Hints and tips] - - -[section:directories Directory and File Structure] - -[h4 boost\/math] - -[variablelist -[[\/concepts\/] - [Prototype defining the *essential* features of a RealType - class (see real_concept.hpp). Most applications will use `double` - as the RealType (and short `typedef` names of distributions are - reserved for this type where possible), a few will use `float` or - `long double`, but it is also possible to use higher precision types - like __NTL_RR, __GMP, __MPFR -that conform to the requirements specified by real_concept.]] - -[[\/constants\/] - [Templated definition of some highly accurate math - constants (in constants.hpp).]] - -[[\/distributions\/] - [Distributions used in mathematics and, especially, statistics: - Gaussian, Students-t, Fisher, Binomial etc]] - -[[\/policies\/] - [Policy framework, for handling user requested behaviour modifications.]] - -[[\/special_functions\/] - [Math functions generally regarded as 'special', like beta, - cbrt, erf, gamma, lgamma, tgamma ... (Some of these are specified in - C++, and C99\/TR1, and perhaps TR2).]] - -[[\/tools\/] - [Tools used by functions, like evaluating polynomials, continued fractions, - root finding, precision and limits, and by tests. Some will - find application outside this package.]] -] - -[h4 boost\/libs] - -[variablelist -[[\/doc\/] - [Documentation source files in Quickbook format processed into - html and pdf formats.]] - -[[\/examples\/] - [Examples and demos of using math functions and distributions.]] - -[[\/performance\/] - [Performance testing and tuning program.]] - -[[\/test\/] - [Test files, in many .cpp files, most using Boost.Test - (some with test data as .ipp files, usually generated using NTL RR - type with ample precision for the type, often for precisions - suitable for up to 256-bit significand real types).]] - -[[\/tools\/] - [Programs used to generate test data. Also changes to the - [@http://shoup.net/ntl/ NTL] released package to provide a few additional - (and vital) extra features.]] -] - -[endsect] [/section:directories Directory and File Structure] - -[section:namespaces Namespaces] - -All math functions and distributions are in `namespace boost::math` - -So, for example, the Students-t distribution template in `namespace boost::math` is - - template class students_t_distribution - -and can be instantiated with the help of the reserved name `students_t`(for `RealType double`) - - typedef students_t_distribution students_t; - - student_t mydist(10); - -[warning Some distribution names are also used in std random library, -so to avoid the risk of ambiguity it is better to make explicit using declarations, -for example: `using boost::math::students_t_distribution`] - -Functions not intended for use by applications are in `boost::math::detail`. - -Functions that may have more general use, like `digits` -(significand), `max_value`, `min_value` and `epsilon` are in -`boost::math::tools`. - -__Policy and configuration information is in namespace `boost::math::policies`. - -[tip Many code snippets assume implicit namespace(s), -for example, `std::` or `boost::math`.] - - -[endsect] [/section:namespaces Namespaces] - - -[/ structure.qbk - Copyright 2006, 2010, 2012 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/overview/thread_safety.qbk b/boost/libs/math/doc/overview/thread_safety.qbk deleted file mode 100644 index cb467204..00000000 --- a/boost/libs/math/doc/overview/thread_safety.qbk +++ /dev/null @@ -1,15 +0,0 @@ -[section:threads Thread Safety] - -The library is fully thread safe and re-entrant for all functions -regards of the data type they are instantiated on. Thread safety -limitations relating to user defined types present in previous -releases (prior to 1.50.0) have been removed. - -[endsect] [/section:threads Thread Safety] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/overview/tr1.qbk b/boost/libs/math/doc/overview/tr1.qbk deleted file mode 100644 index 8e4ba4c1..00000000 --- a/boost/libs/math/doc/overview/tr1.qbk +++ /dev/null @@ -1,398 +0,0 @@ -[template tr1_overview[] -Many of the special functions included in this library are also a part -of the either the [C99] or the [tr1]. Therefore this library -includes a thin wrapper header `boost/math/tr1.hpp` that provides -compatibility with these two standards. - -There are various pros and cons to using the library in this way: - -Pros: - -* The header to include is lightweight (i.e. fast to compile). -* The functions have extern "C" linkage, - and so are usable from other languages (not just C and C++). -* C99 and C++ TR1 Standard compatibility. - -Cons: - -* You will need to compile and link to the external Boost.Math libraries. -* Limited to support for the types, `float`, `double` and `long double`. -* Error handling is handled via setting ::errno and returning NaN's and -infinities: this may be less flexible than an C++ exception based approach. - -[note The separate libraries are required *only* if you choose to use -boost/math/tr1.hpp rather than some other Boost.Math header, the rest -of Boost.Math remains header-only.] - -The separate libraries required in order to use tr1.hpp can be compiled -using bjam from within the libs/math/build directory, or from the Boost -root directory using the usual Boost-wide install procedure. -Alternatively the source files are located in libs/math/src and each have -the same name as the function they implement. The various libraries are -named as follows: - -[table -[[Name][Type][Functions]] -[[boost_math_c99f-][float][C99 Functions]] -[[boost_math_c99-][double][C99 Functions]] -[[boost_math_c99l-][long double][C99 Functions]] -[[boost_math_tr1f-][float][TR1 Functions]] -[[boost_math_tr1-][double][TR1 Functions]] -[[boost_math_tr1l-][long double][TR1 Functions]] -] - -Where `` encodes the compiler and build options used to -build the libraries: for example "libboost_math_tr1-vc80-mt-gd.lib" -would be the statically linked TR1 library to use with Visual C++ 8.0, -in multithreading debug mode, with the DLL VC++ runtime, where as -"boost_math_tr1-vc80-mt.lib" would be import library for the TR1 DLL -to be used with Visual C++ 8.0 with the release multithreaded DLL -VC++ runtime. -Refer to the getting started guide for a -[@http://www.boost.org/doc/libs/1_35_0/more/getting_started/windows.html#library-naming -full explanation of the `` meanings]. - -[note -Visual C++ users will typically have the correct library variant to link -against selected for them by boost/math/tr1.hpp based on your compiler -settings. - -Users will need to define BOOST_MATH_TR1_DYN_LINK when building -their code if they want to link against the DLL versions of these libraries -rather than the static versions. - -Users can disable auto-linking by defining BOOST_MATH_TR1_NO_LIB when -building: this is typically only used when linking against a customised -build of the libraries.] - -[note Linux and Unix users will generally only have one variant of -these libraries installed, and can generally just link against --lboost_math_tr1 etc.] - -[h4 Usage Recomendations] - -This library now presents the user with a choice: - -* To include the header only versions of the functions and have -an easier time linking, but a longer compile time. -* To include the TR1 headers and link against an external library. - -Which option you choose depends largely on how you prefer to work -and how your system is set up. - -For example a casual user who just needs the acosh function, would -probably be better off including `` -and using `boost::math::acosh(x)` in their code. - -However, for large scale -software development where compile times are significant, and where the -Boost libraries are already built and installed on the system, then -including `` and using `boost::math::tr1::acosh(x)` -will speed up compile times, reduce object files sizes (since there are -no templates being instantiated any more), and also speed up debugging -runtimes - since the externally compiled libraries can be -compiler optimised, rather than built using full settings - the difference -in performance between -[link math_toolkit.getting_best -release and debug builds can be as much as 20 times], -so for complex applications this can be a big win. - -[h4 Supported C99 Functions] - -See also the [link math_toolkit.c99 -quick reference guide for these functions]. - - namespace boost{ namespace math{ namespace tr1{ extern "C"{ - - typedef unspecified float_t; - typedef unspecified double_t; - - double acosh(double x); - float acoshf(float x); - long double acoshl(long double x); - - double asinh(double x); - float asinhf(float x); - long double asinhl(long double x); - - double atanh(double x); - float atanhf(float x); - long double atanhl(long double x); - - double cbrt(double x); - float cbrtf(float x); - long double cbrtl(long double x); - - double copysign(double x, double y); - float copysignf(float x, float y); - long double copysignl(long double x, long double y); - - double erf(double x); - float erff(float x); - long double erfl(long double x); - - double erfc(double x); - float erfcf(float x); - long double erfcl(long double x); - - double expm1(double x); - float expm1f(float x); - long double expm1l(long double x); - - double fmax(double x, double y); - float fmaxf(float x, float y); - long double fmaxl(long double x, long double y); - - double fmin(double x, double y); - float fminf(float x, float y); - long double fminl(long double x, long double y); - - double hypot(double x, double y); - float hypotf(float x, float y); - long double hypotl(long double x, long double y); - - double lgamma(double x); - float lgammaf(float x); - long double lgammal(long double x); - - long long llround(double x); - long long llroundf(float x); - long long llroundl(long double x); - - double log1p(double x); - float log1pf(float x); - long double log1pl(long double x); - - long lround(double x); - long lroundf(float x); - long lroundl(long double x); - - double nextafter(double x, double y); - float nextafterf(float x, float y); - long double nextafterl(long double x, long double y); - - double nexttoward(double x, long double y); - float nexttowardf(float x, long double y); - long double nexttowardl(long double x, long double y); - - double round(double x); - float roundf(float x); - long double roundl(long double x); - - double tgamma(double x); - float tgammaf(float x); - long double tgammal(long double x); - - double trunc(double x); - float truncf(float x); - long double truncl(long double x); - - }}}} // namespaces - -[h4 Supported TR1 Functions] - -See also the [link math_toolkit.main_tr1 -quick reference guide for these functions]. - - namespace boost{ namespace math{ namespace tr1{ extern "C"{ - - // [5.2.1.1] associated Laguerre polynomials: - double assoc_laguerre(unsigned n, unsigned m, double x); - float assoc_laguerref(unsigned n, unsigned m, float x); - long double assoc_laguerrel(unsigned n, unsigned m, long double x); - - // [5.2.1.2] associated Legendre functions: - double assoc_legendre(unsigned l, unsigned m, double x); - float assoc_legendref(unsigned l, unsigned m, float x); - long double assoc_legendrel(unsigned l, unsigned m, long double x); - - // [5.2.1.3] beta function: - double beta(double x, double y); - float betaf(float x, float y); - long double betal(long double x, long double y); - - // [5.2.1.4] (complete) elliptic integral of the first kind: - double comp_ellint_1(double k); - float comp_ellint_1f(float k); - long double comp_ellint_1l(long double k); - - // [5.2.1.5] (complete) elliptic integral of the second kind: - double comp_ellint_2(double k); - float comp_ellint_2f(float k); - long double comp_ellint_2l(long double k); - - // [5.2.1.6] (complete) elliptic integral of the third kind: - double comp_ellint_3(double k, double nu); - float comp_ellint_3f(float k, float nu); - long double comp_ellint_3l(long double k, long double nu); - - // [5.2.1.8] regular modified cylindrical Bessel functions: - double cyl_bessel_i(double nu, double x); - float cyl_bessel_if(float nu, float x); - long double cyl_bessel_il(long double nu, long double x); - - // [5.2.1.9] cylindrical Bessel functions (of the first kind): - double cyl_bessel_j(double nu, double x); - float cyl_bessel_jf(float nu, float x); - long double cyl_bessel_jl(long double nu, long double x); - - // [5.2.1.10] irregular modified cylindrical Bessel functions: - double cyl_bessel_k(double nu, double x); - float cyl_bessel_kf(float nu, float x); - long double cyl_bessel_kl(long double nu, long double x); - - // [5.2.1.11] cylindrical Neumann functions; - // cylindrical Bessel functions (of the second kind): - double cyl_neumann(double nu, double x); - float cyl_neumannf(float nu, float x); - long double cyl_neumannl(long double nu, long double x); - - // [5.2.1.12] (incomplete) elliptic integral of the first kind: - double ellint_1(double k, double phi); - float ellint_1f(float k, float phi); - long double ellint_1l(long double k, long double phi); - - // [5.2.1.13] (incomplete) elliptic integral of the second kind: - double ellint_2(double k, double phi); - float ellint_2f(float k, float phi); - long double ellint_2l(long double k, long double phi); - - // [5.2.1.14] (incomplete) elliptic integral of the third kind: - double ellint_3(double k, double nu, double phi); - float ellint_3f(float k, float nu, float phi); - long double ellint_3l(long double k, long double nu, long double phi); - - // [5.2.1.15] exponential integral: - double expint(double x); - float expintf(float x); - long double expintl(long double x); - - // [5.2.1.16] Hermite polynomials: - double hermite(unsigned n, double x); - float hermitef(unsigned n, float x); - long double hermitel(unsigned n, long double x); - - // [5.2.1.18] Laguerre polynomials: - double laguerre(unsigned n, double x); - float laguerref(unsigned n, float x); - long double laguerrel(unsigned n, long double x); - - // [5.2.1.19] Legendre polynomials: - double legendre(unsigned l, double x); - float legendref(unsigned l, float x); - long double legendrel(unsigned l, long double x); - - // [5.2.1.20] Riemann zeta function: - double riemann_zeta(double); - float riemann_zetaf(float); - long double riemann_zetal(long double); - - // [5.2.1.21] spherical Bessel functions (of the first kind): - double sph_bessel(unsigned n, double x); - float sph_besself(unsigned n, float x); - long double sph_bessell(unsigned n, long double x); - - // [5.2.1.22] spherical associated Legendre functions: - double sph_legendre(unsigned l, unsigned m, double theta); - float sph_legendref(unsigned l, unsigned m, float theta); - long double sph_legendrel(unsigned l, unsigned m, long double theta); - - // [5.2.1.23] spherical Neumann functions; - // spherical Bessel functions (of the second kind): - double sph_neumann(unsigned n, double x); - float sph_neumannf(unsigned n, float x); - long double sph_neumannl(unsigned n, long double x); - - }}}} // namespaces - -In addition sufficient additional overloads of the `double` versions of the -above functions are provided, so that calling the function with any mixture -of `float`, `double`, `long double`, or /integer/ arguments is supported, with the -return type determined by the __arg_promotion_rules. - -[h4 Currently Unsupported C99 Functions] - - double exp2(double x); - float exp2f(float x); - long double exp2l(long double x); - - double fdim(double x, double y); - float fdimf(float x, float y); - long double fdiml(long double x, long double y); - - double fma(double x, double y, double z); - float fmaf(float x, float y, float z); - long double fmal(long double x, long double y, long double z); - - int ilogb(double x); - int ilogbf(float x); - int ilogbl(long double x); - - long long llrint(double x); - long long llrintf(float x); - long long llrintl(long double x); - - double log2(double x); - float log2f(float x); - long double log2l(long double x); - - double logb(double x); - float logbf(float x); - long double logbl(long double x); - - long lrint(double x); - long lrintf(float x); - long lrintl(long double x); - - double nan(const char *str); - float nanf(const char *str); - long double nanl(const char *str); - - double nearbyint(double x); - float nearbyintf(float x); - long double nearbyintl(long double x); - - double remainder(double x, double y); - float remainderf(float x, float y); - long double remainderl(long double x, long double y); - - double remquo(double x, double y, int *pquo); - float remquof(float x, float y, int *pquo); - long double remquol(long double x, long double y, int *pquo); - - double rint(double x); - float rintf(float x); - long double rintl(long double x); - - double scalbln(double x, long ex); - float scalblnf(float x, long ex); - long double scalblnl(long double x, long ex); - - double scalbn(double x, int ex); - float scalbnf(float x, int ex); - long double scalbnl(long double x, int ex); - -[h4 Currently Unsupported TR1 Functions] - - // [5.2.1.7] confluent hypergeometric functions: - double conf_hyperg(double a, double c, double x); - float conf_hypergf(float a, float c, float x); - long double conf_hypergl(long double a, long double c, long double x); - - // [5.2.1.17] hypergeometric functions: - double hyperg(double a, double b, double c, double x); - float hypergf(float a, float b, float c, float x); - long double hypergl(long double a, long double b, long double c, - long double x); - - -] - -[/ - Copyright 2008 John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/performance/performance.qbk b/boost/libs/math/doc/performance/performance.qbk deleted file mode 100644 index c25b3e4b..00000000 --- a/boost/libs/math/doc/performance/performance.qbk +++ /dev/null @@ -1,376 +0,0 @@ -[template perf[name value] [value]] -[template para[text] ''''''[text]''''''] - -[mathpart perf Performance] - -[section:perf_over2 Performance Overview] -[performance_overview] -[endsect] - -[section:interp Interpreting these Results] - -In all of the following tables, the best performing -result in each row, is assigned a relative value of "1" and shown -in bold, so a score of "2" means ['"twice as slow as the best -performing result".] Actual timings in nano-seconds per function call -are also shown in parenthesis. To make the results easier to read, they -are color-coded as follows: the best result and everything within 20% of -it is green, anything that's more than twice as slow as the best result is red, -and results in between are blue. - -Result were obtained on a system -with an Intel core i7 4710MQ with 16Gb RAM and running -either Windows 8.1 or Xubuntu Linux. - -[caution As usual with performance results these should be taken with a large pinch -of salt: relative performance is known to shift quite a bit depending -upon the architecture of the particular test system used. Further -more, our performance results were obtained using our own test data: -these test values are designed to provide good coverage of our code and test -all the appropriate corner cases. They do not necessarily represent -"typical" usage: whatever that may be! -] - -[endsect] - -[section:getting_best Getting the Best Performance from this Library: Compiler and Compiler Options] - -By far the most important thing you can do when using this library -is turn on your compiler's optimisation options. As the following -table shows the penalty for using the library in debug mode can be -quite large. In addition switching to 64-bit code has a small but noticeable -improvement in performance, as does switching to a different compiler -(Intel C++ 15 in this example). - -[table_Compiler_Option_Comparison_on_Windows_x64] - -[endsect] [/section:getting_best Getting the Best Performance from this Library: Compiler and Compiler Options] - -[section:tradoffs Trading Accuracy for Performance] - -There are a number of [link policy Policies] that can be used to trade accuracy for performance: - -* Internal promotion: by default functions with `float` arguments are evaluated at `double` precision -internally to ensure full precision in the result. Similarly `double` precision functions are -evaluated at `long double` precision internally by default. Changing these defaults can have a significant -speed advantage at the expense of accuracy, note also that evaluating using `float` internally may result in -numerical instability for some of the more complex algorithms, we suggest you use this option with care. -* Target accuracy: just because you choose to evaluate at `double` precision doesn't mean you necessarily want -to target full 16-digit accuracy, if you wish you can change the default (full machine precision) to whatever -is "good enough" for your particular use case. - -For example, suppose you want to evaluate `double` precision functions at `double` precision internally, you -can change the global default by passing `-DBOOST_MATH_PROMOTE_DOUBLE_POLICY=false` on the command line, or -at the point of call via something like this: - - double val = boost::math::erf(my_argument, boost::math::policies::make_policy(boost::math::policies::promote_double())); - -However, an easier option might be: - - #include // Or any individual special function header - - namespace math{ - - namespace precise{ - // - // Define a Policy for accurate evaluation - this is the same as the default, unless - // someone has changed the global defaults. - // - typedef boost::math::policies::policy<> accurate_policy; - // - // Invoke BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS to declare - // functions that use the above policy. Note no trailing - // ";" required on the macro call: - // - BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(accurate_policy) - - - } - - namespace fast{ - // - // Define a Policy for fast evaluation: - // - using namespace boost::math::polcies; - typedef policy > fast_policy; - // - // Invoke BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS: - // - BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(fast_policy) - - } - - } - -And now one can call: - - math::accurate::tgamma(x); - -For the "accurate" version of tgamma, and: - - math::fast::tgamma(x); - -For the faster version. - -Had we wished to change the target precision (to 9 decimal places) as well as the evaluation type used, we might have done: - - namespace math{ - namespace fast{ - // - // Define a Policy for fast evaluation: - // - using namespace boost::math::polcies; - typedef policy, digits10<9> > fast_policy; - // - // Invoke BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS: - // - BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(fast_policy) - - } - } - -One can do a similar thing with the distribution classes: - - #include // or any individual distribution header - - namespace math{ namespace fast{ - // - // Define a policy for fastest possible evaluation: - // - using namespace boost::math::polcies; - typedef policy > fast_float_policy; - // - // Invoke BOOST_MATH_DECLARE_DISTRIBUTIONS - // - BOOST_MATH_DECLARE_DISTRIBUTIONS(float, fast_float_policy) - - }} // namespaces - - // - // And use: - // - float p_val = cdf(math::fast::normal(1.0f, 3.0f), 0.25f); - -Here's how these options change the relative performance of the distributions on Linux: - -[table_Distribution_performance_comparison_for_different_performance_options_with_GNU_C_version_5_1_0_on_linux] - -[endsect] [/section:tradoffs Trading Accuracy for Performance] - -[section:multiprecision Cost of High-Precision Non-built-in Floating-point] - -Using user-defined floating-point like __multiprecision has a very high run-time cost. - -To give some flavour of this: - -[table:linpack_time Linpack Benchmark -[[floating-point type] [speed Mflops]] -[[double] [2727]] -[[__float128] [35]] -[[multiprecision::float128] [35]] -[[multiprecision::cpp_bin_float_quad] [6]] -] - -[endsect] [/section:multiprecision Cost of High-Precision Non-built-in Floating-point] - - -[section:tuning Performance Tuning Macros] - -There are a small number of performance tuning options -that are determined by configuration macros. These should be set -in boost/math/tools/user.hpp; or else reported to the Boost-development -mailing list so that the appropriate option for a given compiler and -OS platform can be set automatically in our configuration setup. - -[table -[[Macro][Meaning]] -[[BOOST_MATH_POLY_METHOD] - [Determines how polynomials and most rational functions - are evaluated. Define to one - of the values 0, 1, 2 or 3: see below for the meaning of these values.]] -[[BOOST_MATH_RATIONAL_METHOD] - [Determines how symmetrical rational functions are evaluated: mostly - this only effects how the Lanczos approximation is evaluated, and how - the `evaluate_rational` function behaves. Define to one - of the values 0, 1, 2 or 3: see below for the meaning of these values. - ]] -[[BOOST_MATH_MAX_POLY_ORDER] - [The maximum order of polynomial or rational function that will - be evaluated by a method other than 0 (a simple "for" loop). - ]] -[[BOOST_MATH_INT_TABLE_TYPE(RT, IT)] - [Many of the coefficients to the polynomials and rational functions - used by this library are integers. Normally these are stored as tables - as integers, but if mixed integer / floating point arithmetic is much - slower than regular floating point arithmetic then they can be stored - as tables of floating point values instead. If mixed arithmetic is slow - then add: - - #define BOOST_MATH_INT_TABLE_TYPE(RT, IT) RT - - to boost/math/tools/user.hpp, otherwise the default of: - - #define BOOST_MATH_INT_TABLE_TYPE(RT, IT) IT - - Set in boost/math/config.hpp is fine, and may well result in smaller - code. - ]] -] - -The values to which `BOOST_MATH_POLY_METHOD` and `BOOST_MATH_RATIONAL_METHOD` -may be set are as follows: - -[table -[[Value][Effect]] -[[0][The polynomial or rational function is evaluated using Horner's - method, and a simple for-loop. - - Note that if the order of the polynomial - or rational function is a runtime parameter, or the order is - greater than the value of `BOOST_MATH_MAX_POLY_ORDER`, then - this method is always used, irrespective of the value - of `BOOST_MATH_POLY_METHOD` or `BOOST_MATH_RATIONAL_METHOD`.]] -[[1][The polynomial or rational function is evaluated without - the use of a loop, and using Horner's method. This only occurs - if the order of the polynomial is known at compile time and is less - than or equal to `BOOST_MATH_MAX_POLY_ORDER`. ]] -[[2][The polynomial or rational function is evaluated without - the use of a loop, and using a second order Horner's method. - In theory this permits two operations to occur in parallel - for polynomials, and four in parallel for rational functions. - This only occurs - if the order of the polynomial is known at compile time and is less - than or equal to `BOOST_MATH_MAX_POLY_ORDER`.]] -[[3][The polynomial or rational function is evaluated without - the use of a loop, and using a second order Horner's method. - In theory this permits two operations to occur in parallel - for polynomials, and four in parallel for rational functions. - This differs from method "2" in that the code is carefully ordered - to make the parallelisation more obvious to the compiler: rather than - relying on the compiler's optimiser to spot the parallelisation - opportunities. - This only occurs - if the order of the polynomial is known at compile time and is less - than or equal to `BOOST_MATH_MAX_POLY_ORDER`.]] -] - -The performance test suite generates a report for your particular compiler showing which method is likely to work best, -the following tables show the results for MSVC-14.0 and GCC-5.1.0 (Linux). There's not much to choose between -the various methods, but generally loop-unrolled methods perform better. Interestingly, ordering the code -to try and "second guess" possible optimizations seems not to be such a good idea (method 3 below). - -[table_Polynomial_Method_Comparison_with_Microsoft_Visual_C_version_14_0_on_Windows_x64] - -[table_Rational_Method_Comparison_with_Microsoft_Visual_C_version_14_0_on_Windows_x64] - -[table_Polynomial_Method_Comparison_with_GNU_C_version_5_1_0_on_linux] - -[table_Rational_Method_Comparison_with_GNU_C_version_5_1_0_on_linux] - -[endsect] [/section:tuning Performance Tuning Macros] - -[section:comp_compilers Comparing Different Compilers] - -By running our performance test suite multiple times, we can compare the effect of different compilers: as -might be expected, the differences are generally small compared to say disabling internal use of `long double`. -However, there are still gains to be main, particularly from some of the commercial offerings: - -[table_Compiler_Comparison_on_Windows_x64] - -[table_Compiler_Comparison_on_linux] - -[endsect] [/section:comp_compilers Comparing Different Compilers] - -[section:comparisons Comparisons to Other Open Source Libraries] - -We've run our performance tests both for our own code, and against other -open source implementations of the same functions. The results are -presented below to give you a rough idea of how they all compare. -In order to give a more-or-less level playing field our test data -was screened against all the libraries being tested, and any -unsupported domains removed, likewise for any test cases that gave large errors -or unexpected non-finite values. - -[caution -You should exercise extreme caution when interpreting -these results, relative performance may vary by platform, the tests use -data that gives good code coverage of /our/ code, but which may skew the -results towards the corner cases. Finally, remember that different -libraries make different choices with regard to performance verses -numerical stability. -] - -The first results compare standard library functions to Boost equivalents with MSVC-14.0: - -[table_Library_Comparison_with_Microsoft_Visual_C_version_14_0_on_Windows_x64] - -On Linux with GCC, we can also compare to the TR1 functions, and to GSL and RMath: - -[table_Library_Comparison_with_GNU_C_version_5_1_0_on_linux] - -And finally we can compare the statistical distributions to GSL, RMath and DCDFLIB: - -[table_Distribution_performance_comparison_with_GNU_C_version_5_1_0_on_linux] - -[endsect] [/section:comparisons Comparisons to Other Open Source Libraries] - -[section:perf_test_app The Performance Test Applications] - -Under ['boost-path]\/libs\/math\/reporting\/performance you will find -some reasonable comprehensive performance test applications for this library. - -In order to generate the tables you will have seen in this documentation (or others -for your specific compiler) you need to invoke `bjam` in this directory, using a C++11 -capable compiler. Note that -results extend/overwrite whatever is already present in -['boost-path]\/libs\/math\/reporting\/performance\/doc\/performance_tables.qbk, -you may want to delete this file before you begin so as to make a fresh start for -your particular system. - -The programs produce results in Boost's Quickbook format which is not terribly -human readable. If you configure your user-config.jam to be able to build Docbook -documentation, then you will also get a full summary of all the data in HTML format -in ['boost-path]\/libs\/math\/reporting\/performance\/html\/index.html. Assuming -you're on a 'nix-like platform the procedure to do this is to first install the -`xsltproc`, `Docbook DTD`, and `Bookbook XSL` packages. Then: - -* Copy ['boost-path]\/tools\/build\/example\/user-config.jam to your home directory. -* Add `using xsltproc ;` to the end of the file (note the space surrounding each token, including the final ";", this is important!) -This assumes that `xsltproc` is in your path. -* Add `using boostbook : path-to-xsl-stylesheets : path-to-dtd ;` to the end of the file. The `path-to-dtd` should point -to version 4.2.x of the Docbook DTD, while `path-to-xsl-stylesheets` should point to the folder containing the latest XSLT stylesheets. -Both paths should use all forward slashes even on Windows. - -At this point you should be able to run the tests and generate the HTML summary, if GSL, RMath or libstdc++ are -present in the compilers path they will be automatically tested. For DCDFLIB you will need to place the C -source in ['boost-path]\/libs\/math\/reporting\/performance\/third_party\/dcdflib. - -If you want to compare multiple compilers, or multiple options for one compiler, then you will -need to invoke `bjam` multiple times, once for each compiler. Note that in order to test -multiple configurations of the same compiler, each has to be given a unique name in the test -program, otherwise they all edit the same table cells. Suppose you want to test GCC with -and without the -ffast-math option, in this case bjam would be invoked first as: - - bjam toolset=gcc -a cxxflags=-std=gnu++11 - -Which would run the tests using default optimization options (-O3), we can then run again -using -ffast-math: - - bjam toolset=gcc -a cxxflags='-std=gnu++11 -ffast-math' define=COMPILER_NAME='"GCC with -ffast-math"' - -In the command line above, the -a flag forces a full rebuild, and the preprocessor define COMPILER_NAME needs to be set -to a string literal describing the compiler configuration, hence the double quotes - one for the command line, one for the -compiler. - -[endsect] [/section:perf_test_app The Performance Test Applications] - -[endmathpart] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/plot_owens_3d_xyp.png b/boost/libs/math/doc/plot_owens_3d_xyp.png deleted file mode 100644 index 73d7a03b..00000000 Binary files a/boost/libs/math/doc/plot_owens_3d_xyp.png and /dev/null differ diff --git a/boost/libs/math/doc/plot_owens_t.png b/boost/libs/math/doc/plot_owens_t.png deleted file mode 100644 index 678a22b4..00000000 Binary files a/boost/libs/math/doc/plot_owens_t.png and /dev/null differ diff --git a/boost/libs/math/doc/policies/policy.qbk b/boost/libs/math/doc/policies/policy.qbk deleted file mode 100644 index 1389ea9c..00000000 --- a/boost/libs/math/doc/policies/policy.qbk +++ /dev/null @@ -1,897 +0,0 @@ - -[mathpart policy Policies: Controlling Precision, Error Handling etc] - -[section:pol_overview Policy Overview] -[policy_overview] -[endsect] [/section:pol_overview Policy Overview] - -[include policy_tutorial.qbk] - -[section:pol_ref Policy Reference] - -[section:error_handling_policies Error Handling Policies] - -There are two orthogonal aspects to error handling: - -* What to do (if anything) with the error. -* What kind of error is being raised. - -[h4 Available Actions When an Error is Raised] - -What to do with the error is encapsulated by an enumerated type: - - namespace boost { namespace math { namespace policies { - - enum error_policy_type - { - throw_on_error = 0, // throw an exception. - errno_on_error = 1, // set ::errno & return 0, NaN, infinity or best guess. - ignore_error = 2, // return 0, NaN, infinity or best guess. - user_error = 3 // call a user-defined error handler. - }; - - }}} // namespaces - -The various enumerated values have the following meanings: - -[h5 throw_on_error] - -Will throw one of the following exceptions, depending upon the - type of the error: - [table - [[Error Type][Exception]] - [[Domain Error][std::domain_error]] - [[Pole Error][std::domain_error]] - [[Overflow Error][std::overflow_error]] - [[Underflow Error][std::underflow_error]] - [[Denorm Error][std::underflow_error]] - [[Evaluation Error][boost::math::evaluation_error]] - [[Indeterminate Result Error][std::domain_error]] - ] - -[h5 errno_on_error] - -Will set global __errno `::errno` to one of the following values depending -upon the error type (often EDOM = 33 and ERANGE = 34), -and then return the same value as if the error -had been ignored: - [table - [[Error Type][errno value]] - [[Domain Error][EDOM]] - [[Pole Error][EDOM]] - [[Overflow Error][ERANGE]] - [[Underflow Error][ERANGE]] - [[Denorm Error][ERANGE]] - [[Evaluation Error][EDOM]] - [[Indeterminate Result Error][EDOM]] - ] - -[h5 ignore_error] - -Will return one of the values below depending on the error type (`::errno` is NOT changed):: - [table - [[Error Type][Returned Value]] - [[Domain Error][std::numeric_limits::quiet_NaN()]] - [[Pole Error][std::numeric_limits::quiet_NaN()]] - [[Overflow Error][std::numeric_limits::infinity()]] - [[Underflow Error][0]] - [[Denorm Error][The denormalised value.]] - [[Evaluation Error][The best guess (perhaps NaN) as to the result: which - may be significantly in error.]] - [[Indeterminate Result Error][Depends on the function where the error occurred]] - ] - -[h5 user_error] - -Will call a user defined error handler: these are forward declared -in boost/math/policies/error_handling.hpp, but the actual definitions -must be provided by the user: - - namespace boost{ namespace math{ namespace policies{ - - template - T user_domain_error(const char* function, const char* message, const T& val); - - template - T user_pole_error(const char* function, const char* message, const T& val); - - template - T user_overflow_error(const char* function, const char* message, const T& val); - - template - T user_underflow_error(const char* function, const char* message, const T& val); - - template - T user_denorm_error(const char* function, const char* message, const T& val); - - template - T user_rounding_error(const char* function, const char* message, const T& val); - - template - T user_evaluation_error(const char* function, const char* message, const T& val); - - template - T user_indeterminate_result_error(const char* function, const char* message, const T& val); - - }}} // namespaces - -Note that the strings ['function] and ['message] may contain "%1%" format specifiers -designed to be used in conjunction with Boost.Format. -If these strings are to be presented to the program's end-user then -the "%1%" format specifier -should be replaced with the name of type T in the ['function] string, and -if there is a %1% specifier in the ['message] string then it -should be replaced with the value of ['val]. - -There is more information on user-defined error handlers in -the [link math_toolkit.pol_tutorial.user_def_err_pol -tutorial here]. - -[h4 Kinds of Error Raised] - -There are six kinds of error reported by this library, -which are summarised in the following table: - -[table -[[Error Type] - [Policy Class] - [Description]] -[[Domain Error] - [boost::math::policies::domain_error<['action]>] - [Raised when more or more arguments are outside the - defined range of the function. - - Defaults to `boost::math::policies::domain_error` - - When the action is set to ['throw_on_error] - then throws `std::domain_error`]] -[[Pole Error] - [boost::math::policies::pole_error<['action]>] - [Raised when more or more arguments would cause the function - to be evaluated at a pole. - - Defaults to `boost::math::policies::pole_error` - - When the action is ['throw_on_error] then - throw a `std::domain_error`]] -[[Overflow Error] - [boost::math::policies::overflow_error<['action]>] - [Raised when the result of the function is outside - the representable range of the floating point type used. - - Defaults to `boost::math::policies::overflow_error`. - - When the action is ['throw_on_error] then throws a `std::overflow_error`.]] -[[Underflow Error] - [boost::math::policies::underflow_error<['action]>] - [Raised when the result of the function is too small - to be represented in the floating point type used. - - Defaults to `boost::math::policies::underflow_error` - - When the specified action is ['throw_on_error] then - throws a `std::underflow_error`]] -[[Denorm Error] - [boost::math::policies::denorm_error<['action]>] - [Raised when the result of the function is a - denormalised value. - - Defaults to `boost::math::policies::denorm_error` - - When the action is ['throw_on_error] then throws a `std::underflow_error`]] -[[Rounding Error] - [boost::math::policies::rounding_error<['action]>] - [Raised When one of the rounding functions __round, __trunc or __modf is - called with an argument that has no integer representation, or - is too large to be represented in the result type - - Defaults to `boost::math::policies::rounding_error` - - When the action is ['throw_on_error] then throws `boost::math::rounding_error`]] -[[Evaluation Error] - [boost::math::policies::evaluation_error<['action]>] - [Raised when the result of the function is well defined and - finite, but we were unable to compute it. Typically - this occurs when an iterative method fails to converge. - Of course ideally this error should never be raised: feel free - to report it as a bug if it is! - - Defaults to `boost::math::policies::evaluation_error` - - When the action is ['throw_on_error] then throws `boost::math::evaluation_error`]] -[[Indeterminate Result Error] - [boost::math::policies::indeterminate_result_error<['action]>] - [Raised when the result of a function is not defined for the values that - were passed to it. - - Defaults to `boost::math::policies::indeterminate_result_error` - - When the action is ['throw_on_error] then throws `std::domain_error`]] -] - -[h4 Examples] - -Suppose we want a call to `tgamma` to behave in a C-compatible way and set global -`::errno` rather than throw an exception, we can achieve this at the call site -using: - -[import ../../example/policy_ref_snip1.cpp] - -[policy_ref_snip1] - -Suppose we want a statistical distribution to return infinities, -rather than throw exceptions, then we can use: - -[import ../../example/policy_ref_snip2.cpp] - -[policy_ref_snip2] - -[endsect] [/section:error_handling_policies Error Handling Policies] - -[section:internal_promotion Internal Floating-point Promotion Policies] - -Normally when evaluating a function at say `float` precision, maximal -accuracy is assured by conducting the calculation at `double` precision -internally, and then rounding the result. There are two policies that -control whether internal promotion to a higher precision floating-point type takes place, or not: - -[table -[[Policy][Meaning]] -[[`boost::math::policies::promote_float`] - [Indicates whether `float` arguments should be promoted to `double` - precision internally: defaults to `boost::math::policies::promote_float`]] -[[`boost::math::policies::promote_double`] - [Indicates whether `double` arguments should be promoted to `long double` - precision internally: defaults to `boost::math::policies::promote_double`]] -] - -[h4 Examples] - -Suppose we want `tgamma` to be evaluated without internal promotion to -`long double`, then we could use: - -[import ../../example/policy_ref_snip3.cpp] -[policy_ref_snip3] - -Alternatively, suppose we want a distribution to perform calculations -without promoting `float` to `double`, then we could use: - -[import ../../example/policy_ref_snip4.cpp] -[policy_ref_snip4] - -[endsect] [/section:internal_promotion Internal Promotion Policies] - -[section:assert_undefined Mathematically Undefined Function Policies] - -There are some functions that are generic -(they are present for all the statistical distributions supported) -but which may be mathematically undefined for certain distributions, but defined for others. - -For example, the Cauchy distribution does not have a meaningful mean, -so what should - - mean(cauchy<>()); - -return, and should such an expression even compile at all? - -The default behaviour is for all such functions to not compile at all - - in fact they will raise a -[@http://www.boost.org/libs/static_assert/index.html static assertion] - - but by changing the policy -we can have them return the result of a domain error instead -(which may well throw an exception, depending on the error handling policy). - -This behaviour is controlled by the `assert_undefined<>` policy: - - namespace boost{ namespace math{ namespace policies { - - template - class assert_undefined; - - }}} //namespaces - -For example: - - #include - - using namespace boost::math::policies; - using namespace boost::math; - - // This will not compile, cauchy has no mean! - double m1 = mean(cauchy()); - - // This will compile, but raises a domain error! - double m2 = mean(cauchy_distribution > >()); - -`policy` behaviour can also be obtained by defining the macro - - #define BOOST_MATH_ASSERT_UNDEFINED_POLICY false - -at the head of the file - see __policy_macros. - -[endsect][/section:assert_undefined Mathematically Undefined Function Policies] - -[section:discrete_quant_ref Discrete Quantile Policies] - -If a statistical distribution is ['discrete] then the random variable -can only have integer values - this leaves us with a problem when calculating -quantiles - we can either ignore the discreteness of the distribution and return -a real value, or we can round to an integer. As it happens, computing integer -values can be substantially faster than calculating a real value, so there are -definite advantages to returning an integer, but we do then need to decide -how best to round the result. The `discrete_quantile` policy defines how -discrete quantiles work, and how integer results are rounded: - - enum discrete_quantile_policy_type - { - real, - integer_round_outwards, // default - integer_round_inwards, - integer_round_down, - integer_round_up, - integer_round_nearest - }; - - template - struct discrete_quantile; - -The values that `discrete_quantile` can take have the following meanings: - -[h5 real] - -Ignores the discreteness of the distribution, and returns a real-valued -result. For example: - -[import ../../example/policy_ref_snip5.cpp] -[policy_ref_snip5] - -Results in `x = 27.3898` and `y = 68.1584`. - -[h5 integer_round_outwards] - -This is the default policy: an integer value is returned so that: - -* Lower quantiles (where the probability is less than 0.5) are rounded -down. -* Upper quantiles (where the probability is greater than 0.5) are rounded up. - -This is normally the safest rounding policy, since it ensures that both -one and two sided intervals are guaranteed to have ['at least] -the requested coverage. For example: - -[import ../../example/policy_ref_snip6.cpp] -[policy_ref_snip6] - -Results in `x = 27` (rounded down from 27.3898) and `y = 69` (rounded up from 68.1584). - -The variables x and y are now defined so that: - - cdf(negative_binomial(20), x) <= 0.05 - cdf(negative_binomial(20), y) >= 0.95 - -In other words we guarantee ['at least 90% coverage in the central region overall], -and also ['no more than 5% coverage in each tail]. - -[h5 integer_round_inwards] - -This is the opposite of ['integer_round_outwards]: an integer value is returned so that: - -* Lower quantiles (where the probability is less than 0.5) are rounded -['up]. -* Upper quantiles (where the probability is greater than 0.5) are rounded ['down]. - -For example: - -[import ../../example/policy_ref_snip7.cpp] - -[policy_ref_snip7] - -Results in `x = 28` (rounded up from 27.3898) and `y = 68` (rounded down from 68.1584). - -The variables x and y are now defined so that: - - cdf(negative_binomial(20), x) >= 0.05 - cdf(negative_binomial(20), y) <= 0.95 - -In other words we guarantee ['at no more than 90% coverage in the central region overall], -and also ['at least 5% coverage in each tail]. - -[h5 integer_round_down] - -Always rounds down to an integer value, no matter whether it's an upper -or a lower quantile. - -[h5 integer_round_up] - -Always rounds up to an integer value, no matter whether it's an upper -or a lower quantile. - -[h5 integer_round_nearest] - -Always rounds to the nearest integer value, no matter whether it's an upper -or a lower quantile. This will produce the requested coverage -['in the average case], but for any specific example may results in -either significantly more or less coverage than the requested amount. -For example: - -For example: - -[import ../../example/policy_ref_snip8.cpp] - -[policy_ref_snip8] - -Results in `x = 27` (rounded from 27.3898) and `y = 68` (rounded from 68.1584). - -[endsect][/section:discrete_quant_ref Discrete Quantile Policies] - -[section:precision_pol Precision Policies] - -There are two equivalent policies that effect the ['working precision] -used to calculate results, these policies both default to 0 - meaning -calculate to the maximum precision available in the type being used - - but can be set to other values to cause lower levels of precision -to be used. One might want to trade precision for evaluation speed. - - namespace boost{ namespace math{ namespace policies{ - - template - digits10; - - template - digits2; - - }}} // namespaces - -As you would expect, ['digits10] specifies the number of decimal digits -to use, and ['digits2] the number of binary digits. Internally, whichever -is used, the precision is always converted to ['binary digits]. - -These policies are specified at compile-time, because many of the special -functions use compile-time-dispatch to select which approximation to use -based on the precision requested and the numeric type being used. - -For example we could calculate `tgamma` to approximately 5 decimal digits using: - -[import ../../example/policy_ref_snip9.cpp] - -[policy_ref_snip9] - -Or again using helper function `make_policy`: - -[import ../../example/policy_ref_snip10.cpp] - -[policy_ref_snip10] - -And for a quantile of a distribution to approximately 25-bit precision: - -[import ../../example/policy_ref_snip11.cpp] - -[policy_ref_snip11] - -[endsect][/section:precision_pol Precision Policies] - -[section:iteration_pol Iteration Limits Policies] - -There are two policies that effect the iterative algorithms -used to implement the special functions in this library: - - template - class max_series_iterations; - - template - class max_root_iterations; - -The class `max_series_iterations` determines the maximum number of -iterations permitted in a series evaluation, before the special -function gives up and returns the result of __evaluation_error. - -The class `max_root_iterations` determines the maximum number -of iterations permitted in a root-finding algorithm before the special -function gives up and returns the result of __evaluation_error. - -[endsect] [/section:iteration_pol Iteration Limits Policies] - -[section:policy_defaults Using Macros to Change the Policy Defaults] - -You can use the various macros below to change any (or all) of the policies. - -You can make a local change by placing a macro definition *before* -a function or distribution #include. - -[caution There is a danger of One-Definition-Rule violations if you -add ad-hoc macros to more than one source files: these must be set the same in *every -translation unit*.] - -[caution If you place it after the #include it will have no effect, -(and it will affect only any other following #includes). -This is probably not what you intend!] - -If you want to alter the defaults for any or all of -the policies for *all* functions and distributions, installation-wide, -then you can do so by defining various macros in -[@../../../../boost/math/tools/user.hpp boost/math/tools/user.hpp]. - -[h5 BOOST_MATH_DOMAIN_ERROR_POLICY] - -Defines what happens when a domain error occurs, if not defined then -defaults to `throw_on_error`, but can be set to any of the enumerated -actions for error handing: `throw_on_error`, `errno_on_error`, -`ignore_error` or `user_error`. - -[h5 BOOST_MATH_POLE_ERROR_POLICY] - -Defines what happens when a pole error occurs, if not defined then -defaults to `throw_on_error`, but can be set to any of the enumerated -actions for error handing: `throw_on_error`, `errno_on_error`, -`ignore_error` or `user_error`. - -[h5 BOOST_MATH_OVERFLOW_ERROR_POLICY] - -Defines what happens when an overflow error occurs, if not defined then -defaults to `throw_on_error`, but can be set to any of the enumerated -actions for error handing: `throw_on_error`, `errno_on_error`, -`ignore_error` or `user_error`. - -[h5 BOOST_MATH_ROUNDING_ERROR_POLICY] - -Defines what happens when a rounding error occurs, if not defined then -defaults to `throw_on_error`, but can be set to any of the enumerated -actions for error handing: `throw_on_error`, `errno_on_error`, -`ignore_error` or `user_error`. - -[h5 BOOST_MATH_EVALUATION_ERROR_POLICY] - -Defines what happens when an internal evaluation error occurs, if not defined then -defaults to `throw_on_error`, but can be set to any of the enumerated -actions for error handing: `throw_on_error`, `errno_on_error`, -`ignore_error` or `user_error`. - -[h5 BOOST_MATH_UNDERFLOW_ERROR_POLICY] - -Defines what happens when an overflow error occurs, if not defined then -defaults to `ignore_error`, but can be set to any of the enumerated -actions for error handing: `throw_on_error`, `errno_on_error`, -`ignore_error` or `user_error`. - -[h5 BOOST_MATH_DENORM_ERROR_POLICY] - -Defines what happens when a denormalisation error occurs, if not defined then -defaults to `ignore_error`, but can be set to any of the enumerated -actions for error handing: `throw_on_error`, `errno_on_error`, -`ignore_error` or `user_error`. - -[h5 BOOST_MATH_INDETERMINATE_RESULT_ERROR_POLICY] - -Defines what happens when the result is indeterminate, but where there -is none the less a convention for the result. If not defined then -defaults to `ignore_error`, but can be set to any of the enumerated -actions for error handing: `throw_on_error`, `errno_on_error`, -`ignore_error` or `user_error`. - -[h5 BOOST_MATH_DIGITS10_POLICY] - -Defines how many decimal digits to use in internal computations: -defaults to `0` - meaning use all available digits - but can be set -to some other decimal value. Since setting this is likely to have -a substantial impact on accuracy, it's not generally recommended -that you change this from the default. - -[h5 BOOST_MATH_PROMOTE_FLOAT_POLICY] - -Determines whether `float` types get promoted to `double` -internally to ensure maximum precision in the result, defaults -to `true`, but can be set to `false` to turn promotion of -`float`'s off. - -[h5 BOOST_MATH_PROMOTE_DOUBLE_POLICY] - -Determines whether `double` types get promoted to `long double` -internally to ensure maximum precision in the result, defaults -to `true`, but can be set to `false` to turn promotion of -`double`'s off. - -[h5 BOOST_MATH_DISCRETE_QUANTILE_POLICY] - -Determines how discrete quantiles return their results: either -as an integer, or as a real value, can be set to one of the -enumerated values: `real`, `integer_round_outwards`, `integer_round_inwards`, -`integer_round_down`, `integer_round_up`, `integer_round_nearest`. Defaults to -`integer_round_outwards`. - -[h5 BOOST_MATH_ASSERT_UNDEFINED_POLICY] - -Determines whether functions that are mathematically undefined -for a specific distribution compile or raise a static (i.e. compile-time) -assertion. Defaults to `true`: meaning that any mathematically -undefined function will not compile. When set to `false` then the function -will compile but return the result of a domain error: this can be useful -for some generic code, that needs to work with all distributions and determine -at runtime whether or not a particular property is well defined. - -[h5 BOOST_MATH_MAX_SERIES_ITERATION_POLICY] - -Determines how many series iterations a special function is permitted -to perform before it gives up and returns an __evaluation_error: -Defaults to 1000000. - -[h5 BOOST_MATH_MAX_ROOT_ITERATION_POLICY] - -Determines how many root-finding iterations a special function is permitted -to perform before it gives up and returns an __evaluation_error: -Defaults to 200. - -[h5 Example] - -Suppose we want overflow errors to set `::errno` and return an infinity, -discrete quantiles to return a real-valued result (rather than round to -integer), and for mathematically undefined functions to compile, but return -a domain error. Then we could add the following to boost/math/tools/user.hpp: - - #define BOOST_MATH_OVERFLOW_ERROR_POLICY errno_on_error - #define BOOST_MATH_DISCRETE_QUANTILE_POLICY real - #define BOOST_MATH_ASSERT_UNDEFINED_POLICY false - -or we could place these definitions *before* - - #include - using boost::math::normal_distribution; - -in a source .cpp file. - -[endsect][/section:policy_defaults Changing the Policy Defaults] - -[section:namespace_pol Setting Polices at Namespace Scope] - -Sometimes what you really want to do is bring all the special functions, -or all the distributions into a specific namespace-scope, along with -a specific policy to use with them. There are two macros defined to -assist with that: - - BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(Policy) - -and: - - BOOST_MATH_DECLARE_DISTRIBUTIONS(Type, Policy) - -You can use either of these macros after including any special function -or distribution header. For example: - -[import ../../example/policy_ref_snip12.cpp] - -[policy_ref_snip12] - -In this example, using BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS results in -a set of thin inline forwarding functions being defined: - - template - inline T tgamma(T a){ return ::boost::math::tgamma(a, mypolicy()); } - - template - inline T lgamma(T a) ( return ::boost::math::lgamma(a, mypolicy()); } - -and so on. Note that while a forwarding function is defined for all the special -functions, however, unless you include the specific header for the special -function you use (or boost/math/special_functions.hpp to include everything), -you will get linker errors from functions that are forward declared, but not -defined. - -We can do the same thing with the distributions, but this time we need to -specify the floating-point type to use: - -[import ../../example/policy_ref_snip13.cpp] - -[policy_ref_snip13] - -In this example the result of BOOST_MATH_DECLARE_DISTRIBUTIONS is to -declare a typedef for each distribution like this: - - typedef boost::math::cauchy_distribution cauchy; - tyepdef boost::math::gamma_distribution gamma; - -and so on. The name given to each typedef is the name of the distribution -with the "_distribution" suffix removed. - -[endsect][/section Changing the Policy Defaults] - -[section:pol_ref_ref Policy Class Reference] - -There's very little to say here, the `policy` class is just a rag-bag -compile-time container for a collection of policies: - -```#include ``` - - - namespace boost{ - namespace math{ - namespace policies - - template - struct policy - { - public: - typedef ``['computed-from-template-arguments]`` domain_error_type; - typedef ``['computed-from-template-arguments]`` pole_error_type; - typedef ``['computed-from-template-arguments]`` overflow_error_type; - typedef ``['computed-from-template-arguments]`` underflow_error_type; - typedef ``['computed-from-template-arguments]`` denorm_error_type; - typedef ``['computed-from-template-arguments]`` rounding_error_type; - typedef ``['computed-from-template-arguments]`` evaluation_error_type; - typedef ``['computed-from-template-arguments]`` indeterminate_result_error_type; - typedef ``['computed-from-template-arguments]`` precision_type; - typedef ``['computed-from-template-arguments]`` promote_float_type; - typedef ``['computed-from-template-arguments]`` promote_double_type; - typedef ``['computed-from-template-arguments]`` discrete_quantile_type; - typedef ``['computed-from-template-arguments]`` assert_undefined_type; - }; - - template <...argument list...> - typename normalise, A1>::type make_policy(...argument list..); - - template - struct normalise - { - typedef ``computed-from-template-arguments`` type; - }; - -The member typedefs of class `policy` are intended for internal use -but are documented briefly here for the sake of completeness. - - policy<...>::domain_error_type - -Specifies how domain errors are handled, will be an instance of -`boost::math::policies::domain_error<>` with the template argument to -`domain_error` one of the `error_policy_type` enumerated values. - - policy<...>::pole_error_type - -Specifies how pole-errors are handled, will be an instance of -`boost::math::policies::pole_error<>` with the template argument to -`pole_error` one of the `error_policy_type` enumerated values. - - policy<...>::overflow_error_type - -Specifies how overflow errors are handled, will be an instance of -`boost::math::policies::overflow_error<>` with the template argument to -`overflow_error` one of the `error_policy_type` enumerated values. - - policy<...>::underflow_error_type - -Specifies how underflow errors are handled, will be an instance of -`boost::math::policies::underflow_error<>` with the template argument to -`underflow_error` one of the `error_policy_type` enumerated values. - - policy<...>::denorm_error_type - -Specifies how denorm errors are handled, will be an instance of -`boost::math::policies::denorm_error<>` with the template argument to -`denorm_error` one of the `error_policy_type` enumerated values. - - policy<...>::rounding_error_type - -Specifies how rounding errors are handled, will be an instance of -`boost::math::policies::rounding_error<>` with the template argument to -`rounding_error` one of the `error_policy_type` enumerated values. - - policy<...>::evaluation_error_type - -Specifies how evaluation errors are handled, will be an instance of -`boost::math::policies::evaluation_error<>` with the template argument to -`evaluation_error` one of the `error_policy_type` enumerated values. - - policy<...>::indeterminate_error_type - -Specifies how indeterminate result errors are handled, will be an instance of -`boost::math::policies::indeterminate_result_error<>` with the template argument -to `indeterminate_result_error` one of the `error_policy_type` enumerated -values. - - policy<...>::precision_type - -Specifies the internal precision to use in binary digits (uses zero -to represent whatever the default precision is). Will be an instance -of `boost::math::policies::digits2` which in turn inherits from -`boost::mpl::int_`. - - policy<...>::promote_float_type - -Specifies whether or not to promote `float` arguments to `double` precision -internally. Will be an instance of `boost::math::policies::promote_float` -which in turn inherits from `boost::mpl::bool_`. - - policy<...>::promote_double_type - -Specifies whether or not to promote `double` arguments to `long double` precision -internally. Will be an instance of `boost::math::policies::promote_float` -which in turn inherits from `boost::mpl::bool_`. - - policy<...>::discrete_quantile_type - -Specifies how discrete quantiles are evaluated, will be an instance -of `boost::math::policies::discrete_quantile<>` instantiated with one of -the `discrete_quantile_policy_type` enumerated type. - - policy<...>::assert_undefined_type - -Specifies whether mathematically-undefined properties are -asserted as compile-time errors, or treated as runtime errors -instead. Will be an instance of `boost::math::policies::assert_undefined` -which in turn inherits from `boost::math::mpl::bool_`. - - - template <...argument list...> - typename normalise, A1>::type make_policy(...argument list..); - -`make_policy` is a helper function that converts a list of policies into -a normalised `policy` class. - - template - struct normalise - { - typedef ``computed-from-template-arguments`` type; - }; - -The `normalise` class template converts one instantiation of the -`policy` class into a normalised form. This is used internally -to reduce code bloat: so that instantiating a special function -on `policy` or `policy` actually both generate the same -code internally. - -Further more, `normalise` can be used to combine -a policy with one or more policies: for example many of the -special functions will use this to set policies which they don't -make use of to their default values, before forwarding to the actual -implementation. In this way code bloat is reduced, since the -actual implementation depends only on the policy types that they -actually use. - -[endsect][/section:pol_ref_ref Policy Class Reference] - -[endsect][/section:pol_ref Policy Reference] -[endmathpart][/section:policy Policies] - -[/ qbk - Copyright 2007, 2010 John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/policies/policy_tutorial.qbk b/boost/libs/math/doc/policies/policy_tutorial.qbk deleted file mode 100644 index ff0d92fe..00000000 --- a/boost/libs/math/doc/policies/policy_tutorial.qbk +++ /dev/null @@ -1,511 +0,0 @@ - -[section:pol_tutorial Policy Tutorial] - -[section:what_is_a_policy So Just What is a Policy Anyway?] - -A policy is a compile-time mechanism for customising the behaviour of a -special function, or a statistical distribution. With Policies you can -control: - -* What action to take when an error occurs. -* What happens when you call a function that is mathematically undefined -(for example, if you ask for the mean of a Cauchy distribution). -* What happens when you ask for a quantile of a discrete distribution. -* Whether the library is allowed to internally promote `float` to `double` -and `double` to `long double` in order to improve precision. -* What precision to use when calculating the result. - -Some of these policies could arguably be runtime variables, but then we couldn't -use compile-time dispatch internally to select the best evaluation method -for the given policies. - -For this reason a Policy is a /type/: in fact it's an instance of the -class template `boost::math::policies::policy<>`. This class is just a -compile-time-container of user-selected policies (sometimes called a type-list): - - using namespace boost::math::policies; - // - // Define a policy that sets ::errno on overflow, and does - // not promote double to long double internally: - // - typedef policy, promote_double > mypolicy; - -[endsect] [/section:what_is_a_policy So Just What is a Policy Anyway?] - -[section:policy_tut_defaults Policies Have Sensible Defaults] - -Most of the time you can just ignore the policy framework. - -['*The defaults for the various policies are as follows, -if these work OK for you then you can stop reading now!] - -[variablelist -[[Domain Error][Throws a `std::domain_error` exception.]] -[[Pole Error][Occurs when a function is evaluated at a pole: throws a `std::domain_error` exception.]] -[[Overflow Error][Throws a `std::overflow_error` exception.]] -[[Underflow][Ignores the underflow, and returns zero.]] -[[Denormalised Result][Ignores the fact that the result is denormalised, and returns it.]] -[[Rounding Error][Throws a `boost::math::rounding_error` exception.]] -[[Internal Evaluation Error][Throws a `boost::math::evaluation_error` exception.]] -[[Indeterminate Result Error][Returns a result that depends on the function where the error occurred.]] -[[Promotion of float to double][Does occur by default - gives full float precision results.]] -[[Promotion of double to long double][Does occur by default if long double offers - more precision than double.]] -[[Precision of Approximation Used][By default uses an approximation that - will result in the lowest level of error for the type of the result.]] -[[Behaviour of Discrete Quantiles] - [ - The quantile function will by default return an integer result that has been - /rounded outwards/. That is to say lower quantiles (where the probability is - less than 0.5) are rounded downward, and upper quantiles (where the probability - is greater than 0.5) are rounded upwards. This behaviour - ensures that if an X% quantile is requested, then /at least/ the requested - coverage will be present in the central region, and /no more than/ - the requested coverage will be present in the tails. - -This behaviour can be changed so that the quantile functions are rounded - differently, or even return a real-valued result using - [link math_toolkit.pol_overview Policies]. It is strongly - recommended that you read the tutorial - [link math_toolkit.pol_tutorial.understand_dis_quant - Understanding Quantiles of Discrete Distributions] before - using the quantile function on a discrete distribution. The - [link math_toolkit.pol_ref.discrete_quant_ref reference docs] - describe how to change the rounding policy - for these distributions. -]] -] - -What's more, if you define your own policy type, then it automatically -inherits the defaults for any policies not explicitly set, so given: - - using namespace boost::math::policies; - // - // Define a policy that sets ::errno on overflow, and does - // not promote double to long double internally: - // - typedef policy, promote_double > mypolicy; - -then `mypolicy` defines a policy where only the overflow error handling and -`double`-promotion policies differ from the defaults. - -[endsect][/section:policy_tut_defaults Policies Have Sensible Defaults] - -[section:policy_usage So How are Policies Used Anyway?] - -The details follow later, but basically policies can be set by either: - -* Defining some macros that change the default behaviour: [*this is the - recommended method for setting installation-wide policies]. -* By instantiating a distribution object with an explicit policy: - this is mainly reserved for ad hoc policy changes. -* By passing a policy to a special function as an optional final argument: - this is mainly reserved for ad hoc policy changes. -* By using some helper macros to define a set of functions or distributions -in the current namespace that use a specific policy: [*this is the -recommended method for setting policies on a project- or translation-unit-wide -basis]. - -The following sections introduce these methods in more detail. - -[endsect] [/section:policy_usage So How are Policies Used Anyway?] - -[section:changing_policy_defaults Changing the Policy Defaults] - -The default policies used by the library are changed by the usual -configuration macro method. - -For example, passing `-DBOOST_MATH_DOMAIN_ERROR_POLICY=errno_on_error` to -your compiler will cause domain errors to set `::errno` and return a __NaN -rather than the usual default behaviour of throwing a `std::domain_error` -exception. - -[tip For Microsoft Visual Studio,you can add to the Project Property Page, -C/C++, Preprocessor, Preprocessor definitions like: - -``BOOST_MATH_ASSERT_UNDEFINED_POLICY=0 -BOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error`` - -This may be helpful to avoid complications with pre-compiled headers -that may mean that the equivalent definitions in source code: - -``#define BOOST_MATH_ASSERT_UNDEFINED_POLICY false -#define BOOST_MATH_OVERFLOW_ERROR_POLICY errno_on_error`` - -*may be ignored*. - -The compiler command line shows: - -``/D "BOOST_MATH_ASSERT_UNDEFINED_POLICY=0" -/D "BOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error"`` -] [/MSVC tip] - -There is however a very important caveat to this: - -[important -[*['Default policies changed by setting configuration macros must be changed -uniformly in every translation unit in the program.]] - -Failure to follow this rule may result in violations of the "One -Definition Rule (ODR)" and result in unpredictable program behaviour.] - -That means there are only two safe ways to use these macros: - -* Edit them in [@../../../../boost/math/tools/user.hpp boost/math/tools/user.hpp], -so that the defaults are set on an installation-wide basis. -Unfortunately this may not be convenient if -you are using a pre-installed Boost distribution (on Linux for example). -* Set the defines in your project's Makefile or build environment, so that they -are set uniformly across all translation units. - -What you should *not* do is: - -* Set the defines in the source file using `#define` as doing so -almost certainly will break your program, unless you're absolutely -certain that the program is restricted to a single translation unit. - -And, yes, you will find examples in our test programs where we break this -rule: but only because we know there will always be a single -translation unit only: ['don't say that you weren't warned!] - -[import ../../example/error_handling_example.cpp] - -[error_handling_example] - -[endsect] [/section:changing_policy_defaults Changing the Policy Defaults] - -[section:ad_hoc_dist_policies Setting Policies for Distributions on an Ad Hoc Basis] - -All of the statistical distributions in this library are class templates -that accept two template parameters: -real type (float, double ...) and policy (how to handle exceptional events), -both with sensible defaults, for example: - - namespace boost{ namespace math{ - - template > - class fisher_f_distribution; - - typedef fisher_f_distribution<> fisher_f; - - }} - -This policy gets used by all the accessor functions that accept -a distribution as an argument, and forwarded to all the functions called -by these. So if you use the shorthand-typedef for the distribution, then you get -`double` precision arithmetic and all the default policies. - -However, say for example we wanted to evaluate the quantile -of the binomial distribution at float precision, without internal -promotion to double, and with the result rounded to the /nearest/ -integer, then here's how it can be done: - -[import ../../example/policy_eg_3.cpp] - -[policy_eg_3] - -Which outputs: - -[pre quantile is: 40] - -[endsect][/section:ad_hoc_dist_policies Setting Policies for Distributions on an Ad Hoc Basis] - -[section:ad_hoc_sf_policies Changing the Policy on an Ad Hoc Basis for the Special Functions] - -All of the special functions in this library come in two overloaded forms, -one with a final "policy" parameter, and one without. For example: - - namespace boost{ namespace math{ - - template - RealType tgamma(RealType, const Policy&); - - template - RealType tgamma(RealType); - - }} // namespaces - -Normally, the second version is just a forwarding wrapper to the first -like this: - - template - inline RealType tgamma(RealType x) - { - return tgamma(x, policies::policy<>()); - } - -So calling a special function with a specific policy -is just a matter of defining the policy type to use -and passing it as the final parameter. For example, -suppose we want `tgamma` to behave in a C-compatible -fashion and set `::errno` when an error occurs, and never -throw an exception: - -[import ../../example/policy_eg_1.cpp] - -[policy_eg_1] - -which outputs: - -[pre -Result of tgamma(30000) is: 1.#INF -errno = 34 -Result of tgamma(-10) is: 1.#QNAN -errno = 33 -] - -Alternatively, for ad hoc use, we can use the `make_policy` -helper function to create a policy for us: this usage is more -verbose, so is probably only preferred when a policy is going -to be used once only: - -[import ../../example/policy_eg_2.cpp] - -[policy_eg_2] - -[endsect] [/section:ad_hoc_sf_policies Changing the Policy on an Ad Hoc Basis for the Special Functions] - -[section:namespace_policies Setting Policies at Namespace or Translation Unit Scope] - -Sometimes what you want to do is just change a set of policies within -the current scope: *the one thing you should not do in this situation -is use the configuration macros*, as this can lead to "One Definition -Rule" violations. Instead this library provides a pair of macros -especially for this purpose. - -Let's consider the special functions first: we can declare a set of -forwarding functions that all use a specific policy using the -macro BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(['Policy]). This -macro should be used either inside a unique namespace set aside for the -purpose (for example, a C namespace for a C-style policy), -or an unnamed namespace if you just want the functions -visible in global scope for the current file only. - -[import ../../example/policy_eg_4.cpp] - -[policy_eg_4] - -The same mechanism works well at file scope as well, by using an unnamed -namespace, we can ensure that these declarations don't conflict with any -alternate policies present in other translation units: - -[import ../../example/policy_eg_5.cpp] - -[policy_eg_5] - -Handling policies for the statistical distributions is very similar except that now -the macro BOOST_MATH_DECLARE_DISTRIBUTIONS accepts two parameters: the -floating point type to use, and the policy type to apply. For example: - - BOOST_MATH_DECLARE_DISTRIBUTIONS(double, mypolicy) - -Results a set of typedefs being defined like this: - - typedef boost::math::normal_distribution normal; - -The name of each typedef is the same as the name of the distribution -class template, but without the "_distribution" suffix. - -[import ../../example/policy_eg_6.cpp] - -[policy_eg_6] - -[note -There is an important limitation to note: you can *not use the macros -BOOST_MATH_DECLARE_DISTRIBUTIONS and BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS -['in the same namespace]*, as doing so creates ambiguities between functions -and distributions of the same name. -] - -As before, the same mechanism works well at file scope as well: by using an unnamed -namespace, we can ensure that these declarations don't conflict with any -alternate policies present in other translation units: - -[import ../../example/policy_eg_7.cpp] - -[policy_eg_7] - -[endsect][/section:namespace_policies Setting Policies at Namespace or Translation Unit Scope] - -[section:user_def_err_pol Calling User Defined Error Handlers] - -[import ../../example/policy_eg_8.cpp] - -[policy_eg_8] - -[import ../../example/policy_eg_9.cpp] - -[policy_eg_9] - -[endsect] [/section:user_def_err_pol Calling User Defined Error Handlers] - -[section:understand_dis_quant Understanding Quantiles of Discrete Distributions] - -Discrete distributions present us with a problem when calculating the -quantile: we are starting from a continuous real-valued variable - the -probability - but the result (the value of the random variable) -should really be discrete. - -Consider for example a Binomial distribution, with a sample size of -50, and a success fraction of 0.5. There are a variety of ways -we can plot a discrete distribution, but if we plot the PDF -as a step-function then it looks something like this: - -[$../graphs/binomial_pdf.png] - -Now lets suppose that the user asks for a the quantile that corresponds -to a probability of 0.05, if we zoom in on the CDF for that region here's -what we see: - -[$../graphs/binomial_quantile_1.png] - -As can be seen there is no random variable that corresponds to -a probability of exactly 0.05, so we're left with two choices as -shown in the figure: - -* We could round the result down to 18. -* We could round the result up to 19. - -In fact there's actually a third choice as well: we could "pretend" that the -distribution was continuous and return a real valued result: in this case we -would calculate a result of approximately 18.701 (this accurately -reflects the fact that the result is nearer to 19 than 18). - -By using policies we can offer any of the above as options, but that -still leaves the question: ['What is actually the right thing to do?] - -And in particular: ['What policy should we use by default?] - -In coming to an answer we should realise that: - -* Calculating an integer result is often much faster than -calculating a real-valued result: in fact in our tests it -was up to 20 times faster. -* Normally people calculate quantiles so that they can perform -a test of some kind: ['"If the random variable is less than N -then we can reject our null-hypothesis with 90% confidence."] - -So there is a genuine benefit to calculating an integer result -as well as it being "the right thing to do" from a philosophical -point of view. What's more if someone asks for a quantile at 0.05, -then we can normally assume that they are asking for -['[*at least] 95% of the probability to the right of the value chosen, -and [*no more than] 5% of the probability to the left of the value chosen.] - -In the above binomial example we would therefore round the result down to 18. - -The converse applies to upper-quantiles: If the probability is greater than -0.5 we would want to round the quantile up, ['so that [*at least] the requested -probability is to the left of the value returned, and [*no more than] 1 - the -requested probability is to the right of the value returned.] - -Likewise for two-sided intervals, we would round lower quantiles down, -and upper quantiles up. This ensures that we have ['at least the requested -probability in the central region] and ['no more than 1 minus the requested -probability in the tail areas.] - -For example, taking our 50 sample binomial distribution with a success fraction -of 0.5, if we wanted a two sided 90% confidence interval, then we would ask -for the 0.05 and 0.95 quantiles with the results ['rounded outwards] so that -['at least 90% of the probability] is in the central area: - -[$../graphs/binomial_pdf_3.png] - -So far so good, but there is in fact a trap waiting for the unwary here: - - quantile(binomial(50, 0.5), 0.05); - -returns 18 as the result, which is what we would expect from the graph above, -and indeed there is no x greater than 18 for which: - - cdf(binomial(50, 0.5), x) <= 0.05; - -However: - - quantile(binomial(50, 0.5), 0.95); - -returns 31, and indeed while there is no x less than 31 for which: - - cdf(binomial(50, 0.5), x) >= 0.95; - -We might naively expect that for this symmetrical distribution the result -would be 32 (since 32 = 50 - 18), but we need to remember that the cdf of -the binomial is /inclusive/ of the random variable. So while the left tail -area /includes/ the quantile returned, the right tail area always excludes -an upper quantile value: since that "belongs" to the central area. - -Look at the graph above to see what's going on here: the lower quantile -of 18 belongs to the left tail, so any value <= 18 is in the left tail. -The upper quantile of 31 on the other hand belongs to the central area, -so the tail area actually starts at 32, so any value > 31 is in the -right tail. - -Therefore if U and L are the upper and lower quantiles respectively, then -a random variable X is in the tail area - where we would reject the null -hypothesis if: - - X <= L || X > U - -And the a variable X is inside the central region if: - - L < X <= U - -The moral here is to ['always be very careful with your comparisons -when dealing with a discrete distribution], and if in doubt, -['base your comparisons on CDF's instead]. - -[heading Other Rounding Policies are Available] - -As you would expect from a section on policies, you won't be surprised -to know that other rounding options are available: - -[variablelist - -[[integer_round_outwards] - [This is the default policy as described above: lower quantiles - are rounded down (probability < 0.5), and upper quantiles - (probability > 0.5) are rounded up. - - This gives /no more than/ the requested probability - in the tails, and /at least/ the requested probability - in the central area.]] -[[integer_round_inwards] - [This is the exact opposite of the default policy: - lower quantiles - are rounded up (probability < 0.5), - and upper quantiles (probability > 0.5) are rounded down. - - This gives /at least/ the requested probability - in the tails, and /no more than/ the requested probability - in the central area.]] -[[integer_round_down][This policy will always round the result down - no matter whether it is an upper or lower quantile]] -[[integer_round_up][This policy will always round the result up - no matter whether it is an upper or lower quantile]] -[[integer_round_nearest][This policy will always round the result - to the nearest integer - no matter whether it is an upper or lower quantile]] -[[real][This policy will return a real valued result - for the quantile of a discrete distribution: this is - generally much slower than finding an integer result - but does allow for more sophisticated rounding policies.]] - -] - -[import ../../example/policy_eg_10.cpp] - -[policy_eg_10] - -[endsect] - -[endsect] [/section:pol_Tutorial Policy Tutorial] - - -[/ math.qbk - Copyright 2007, 2013 John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/quaternion/TQE.pdf b/boost/libs/math/doc/quaternion/TQE.pdf deleted file mode 100644 index f5eb2109..00000000 --- a/boost/libs/math/doc/quaternion/TQE.pdf +++ /dev/null @@ -1,2254 +0,0 @@ -%PDF-1.2 %âãÏÓ -1 0 obj << /CreationDate (D:19991213202609) /Producer (Acrobat Distiller 3.02 for Power Macintosh) /Creator (Nisus\250 Writer: LaserWriter 8 8.7) /Author (Hubert) /Title (The Quaternionic Exponential) >> endobj 3 0 obj << /Length 1918 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;Z,'gN)%,&H)\/"!4F:"Q>A0T/t8oDC9.qM)t#tg]q#WCc4-7;H+XNo\7!f:o5L> -a^c%':%BFZ1)>5@]B:0(bXU&oP&N0\NeF4R#f?(\>&qHX,$#O1am`$c:laD?ke!Rd(_bp]&e(?F(ihA'm52K_#-:Z#M1Ko=>Jk1 -aW6d4nR8ql0hb\WPd;pE(Z`6=D_Sco4<2tJ31*qSaO`o4&VCLmR:kpo( -M;,E.0E_ZQ@)U700"^QJqs!b8k(]JbD4CM\%-W<\C,@^L@tDMo%PbHr*J,u4E\Z\$ -3WH#+B0)=bW7EjN_!4HbPb:JXjYV*7J&.N\&RI;"q(D-?$Lof#\\`bDHUM$/Cs8W.-pqq+9sj#dd]i8NQe6UrZVC -(h$-iKDS9kl=&?HXH_'i/:`Q!#oq5e1-$6GhjG1I]L_GZ5tP -[S"=nNs\3Ken)6;l\dHbK49Ul=CJFWfN@9o%d;Q=%V?\b9*;T3#dF.V^'uD0"&;t: -k^%pVdj_e[cq/+!6KHV9q/'-eP.\@ScJ/7//ptc[-JoR:0?R:=XeZ`GWPfP2`*SR>.7$A^]J64c%XU3GW>TSAA#t;FArdEDBbc?X'=5`7%mpQ> -B).\?YZ9a*_!L^_EL^HiIF<,*+jo]up[SF,ESL\hG+R&B2\UB5nUUe=VKSk`GFUCZ -Gb71t`('_U8hgMQflN!D>iGo,%EUMpBU;*e(UdC15G$&@^ -iNERP=8QttQ3^;_?NV$>)\iWmm&5Hp8Hg*sgYsPO!'#A3"t_N.\Y0]Wf5l8Eid,RH -=72=&2lL\75iF\h1AN[S:&eUG;BW?PJ*I(R(i0.a^'q8>2(5XeV4@#",e3h^!R,C; -o6FKR?'1V^]-N;T\\nRHh@8'k5or.Cj5(VjhKMqLVrRh!IVlOOmCri=3WgpZDA=%% -?8\cm6'b5l[B=QM)8'U%2lEIQ'-^,Y,?H.X+j[Un&k#`$Ri(A>jL^eXgT1 -[$M/B![^&qHU3G#1F3MY&Rb)^J]\3I8qJoUE(>);SW+-fMI_U=K,%'VY'NA7rY\2T ->A!*p6t@oN7!d:3]m";@!3hP+GUNWsS#aDqZKn7Pb$mf.j^'tF]5P5tn^f@\j4g7% -HX3:(XM"%rIJ='Jd5[#FA]F.c)!AX)!s:4nFig;q7Hpf&Wso.ni0Tj3C86_cR@'FN -r`fCBiu6]r'nhNUPb"'&LRX2[^V5*j&((2^o)FHd\IkgF6,p.5YFB*IPIC]jpS)p$ -\%4!&%mdN+M!nNTJ"KH-ai"Lah%k<7n4V^k;@#Q1`aOXZpgHeah@WnHUXS!P6?H6f -TMF6$TKgt?AVsLN?V\ALHG1SPk2]%Wgh4;7Igr>iK'c/"TNp@.R-gr$3ZJ#Z!2CSfAH~> endstream endobj 4 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F5 7 0 R /F6 8 0 R /F7 9 0 R /F8 10 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 14 0 obj << /Length 6033 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;WjBQ5/erB?T*UBl!?2oUq*kU9I@so8;JEq^\0T)V&OjF\YAohS= -'rrmGCTG/g"u]CF-M_0FkOgK0-/d2m\aUle$l^lf3(E8A;W7OW8`S.s+_ADIDQMUX -SrP,>U:cmkr7?XafMBS`rM7R[*\&\X8cP<;,#q2qP:A-sG.g@;>J#%VS0@'uF_m$_ -k%n&$=P^+c.n.Eq=#GHY,J]kSh>^%WBr>[ITM6'f'PiV4A`Eqpb__2*c+cY -lLC9b\$$bqj.jm>*?Sb06]@0M3F*=PHjM32Agc@C7&9/0!CY((R^U -G=^9U]A%/f-=i1!)r!Q_8(TSUqmLif.=VE?p/p37^P('=6r[gk6kKGC;?8,#[VNm6 -fk%WSm[0Jsf[i4'_g@(:=M)DUEpurje)Q9S364fg\Wq_d/,.tjDS*^pJ?A3.]*'_h -T6m;Aeg"18ZYOBYW<.?-um79.59LdqrI(G(l]e#SYn4GSr!M>PE -&%!XOi)dDSqE&ehh^2,&a?N\mR/QU89L::U*(nCj.X@^4rT?#%_#3d/QFT\3EP0Hq -#W`L.r'DbXA/@JA^8F7PM^/e%U4`+Hn]H]5-/Yp+/S4DIf'ZT3N>,uTPjFa+1b3!S -c=LpO9A+*5Ai`LjP^3\<`P24(N0-;<-/'l]XC#XUY)bN+;s@g@?%OWa4&DU]g1B4, -nFC/X.f%iQV2I)DPBLY'[@&pOok4i0eM,,Ac;s6k>Bc-q+lk&;6a]9?p_Hsl[ghAS -\mSf^is9Pfp>3Or/-_OO$?^+M6og[X15:37ghGD!mYQWHLc0!lS#,EUs2B]sZ?q2& -Xme*i_8*nr`_>a!Z1Ij?J*8YtSjZb/PF%5mjRN%]%+So+7,tl9To!9k[q#];p@t?U -+rrZkc2)DEA>9'OKEsm=Rhb^2ZdNpH?bf>sR-Tpp;.E&](c+/A@qH -o+jtF"RU*(7;O1=]3')S67raETjUi>A@0EgCPD>hO`7+1$AUG/4VNFo]Fuq37SZ;/ -+->%$:Xrk6T0iqDEI8Y9?+#E0g;1Q!d/uB7c=qagE'+V^G17lrSP5"u4C/G4CRaL\ --?h@PjQ?#EJEQD=9_77/.V,o;6:Rer#@)JR-)l:q1c'E&?Bm/#'6n3V_b`*A,"h\1 -T!0X,L4ER*+`OE=mMtTRfK]7Lr6OQ4;$)W'*.d]`#L4^5retZ0@lLo,/g+u`SgCpE -ir9uTRN"fGBi7moo1Zh7/M]!3-9P[*_![<9\m$s!?*rtVq1*6mO<]q"ioJ*(b6b>W -#ZlV5HJ)5,g*)LK8W>2:;_SG'TA9(=A+q7$/m_DhT0`dp],PqSIcD0_*R=TINg3>) -mFKiO?6-U/FD:CA1ru3+7el"\`!0[U[iikaH%Q+^^,YE#6Mm4F,N@`Ej5%e-r(/aP -Xt%tQa`&rgjDFAl0+KpCi"[n(7=J*O6m:$2.2q61g3AVIFHANjqX5k&"T-"FUMKk7 -3ts+;<]#bBM(*V>'BULd9;q8M=K[[K,FpY9bP6X#k_V8[33;0]h4?;dQL;;!='jmA -$77@g4UjX.[An44,9^&Jf;IVi"bBD-FA.eNl%pNGmB1s'p^W";th,,n83D*uq -Mg;NAR\9j=,c7p#f`+6MaI`a<;ADR1@!hNPGAQc67WGl+HrJ-4nR*:?L4-^ -*T19tk4ACM\Y1ab%V'H!d@,Og.,9dFirl?W4om+]ibaeJ,5l\Dkd"&*SR6](:)IsO -3JC:Nk]E,VaW@IVbU9?raA$mu:b>),_lV',RkK@?iIg]>6qp:9C@_e?^J7YLc'tY' -ZpgC2.r5i8Jt[.T>+h+8CSKH!e0]cmeG^n1VFZUYb]Isa>gm!%X,t(+L93'o8BRif -o.>9OF -(9;"M3sR*9S"o_'W-4W)\t2SqTL$-o6T^9u#o>?">^QanHhuWHW5uL6Ft%8_DQerK --&;AHr8K#/6opCkb\tEY;JGK@pdS_k!l!%n?pC4m&Y">aQ)AW7\uZ(^?KsZDF4mT! -,@o)gP*MQXC^'a@L9aR^iA'X+BmLfn=W6q@63d'/#iU[s4=(=DdVq#Cn<4OjecCGT -qpos.nCX1S\Fk%+n`MQ\bQc-hG4L'qfcV643mW,IIEM1'%3Pf%d*rChJk;n0N.se' -[6@\fn$/TUXajtKk,s62c@I:3MYc-qb6]ASkhjeVmnS1[oUMi(+LQkQ@OY\i -;G/.nqo@G>"-^fDN&;7S8JnY[T)ldV(56erA"G=_R'*C)m1?\P.7@DT3W1Y/^'0Nm -ol:qfRF6m1S==[\;.;X/dhADlW.6e+gf3dK#25B/I"=6G,+(>`L)H#*8->H>Ge-E&U$0d^,u7u(lgA`*F)!n -5+]#\Md>m)\Jnr\aP.MmBGguW58,>OeI2bn%kYJ<%+D2qU:s5[Mh2B4dMsFJLV*d+ -)k*aLp*+%Z-3>iDVnS!Nd]F#9tc?PSNPl"D=T]`mI3eM/;)\cepH6<%YkuEEPAPn( -^K74,BsM&=/@tF,(m0+HPm@7aYeTEB#`a/gh?"OF;a -e]ggrf[X=Z<+4UaVg3OfqM*b;4I"[sEB9m= -l;CYNHdrT4ougWZpqH&M]+;%HWItVrgCK!\JYecrBLtb&Fc!rBQDn$D^@"^?:p*Md -YX6A'b]IYc%FW:W8*Lk[$oiJ/X9$@"JIFD(fhkH)W/*D]EJ*bJ.;8VB(>2U:% -auTQiW/42%A61q"_s\lF7C^!'44!]V[k>6/>%'i]ms1P1[1Hq7VCJ-"k'W!NN:Pen -F.MD"(G/'/EM"h,FAK^/p\F!^g<$[i>\]DjrSsj)LP.9\>%$kFbm!RYCeK;e9A%9_ -:BQmtQ*-2A-V#W%<1tGOcWo7tcng:NF1joT;HP(%oKt*ELoqL!#\TaZ.q!.O3(7Y2 -@RlE3,'V5bM8Uc$Q>.UWTS\gX#R`Q\9t@[K/Ia(]>HhUVZK'ubdU\UeI]s'OnGJ=h -'1#"Ma$4krKc4Xb0D(XN7KpGcHYgb;Kd`krCoOge-5OjO@<5WP$K9eu/,\.L\Z<3? -/VpsO:DD,m2U.,TZ/2^%o=.q&gJh%[m:apW;p_AZTpTL(lfWU(.<@Y56moDs9Wfkj -9n_lg7.;YJB"`!Nq=SKO>A\$>h-H;K=`Zs>fV2O+5Mj\0nV]CkY.cHfDf#B^\umqg -[$KGn)?tq_?!"ums#0qY^f=5~> endstream endobj 15 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F10 16 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 21 0 obj << /Length 5729 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;X]TgN"7D&cDe1"!1$(`")4N+B -d\On><6A2V5Rb4CI5u`Pa6UikIoB%FlhcMM4F"[Lr6%_b\^eo,`LUVmX%AE`fuM3Y -It'!$6T6H=Te*gi_a9cAeS[.uI&P\'gH9?qb"]imVKKdgf8n:RpNhebeR0\^iRT!J -+bSLE]G[iA9oFg[SPGbX#BVLS*=e%q#JIZI_YmD -Z>FP(([eqQ^Q$mC["3jiD%e]%$O`5:/"=MF(!^fEhMAq*)X -oqH1Zp&.MnQB:9HdEZ^@orKmuLb[TkN\iaS7`dhuL!LgneXI)_98#9CLCo)QHeo5e -@Y^)FC;(iHQeZ#.4\0@Y'"fWHSF(CLqOG1Ka5!4T?dtRJ038#,2OeI[<3A0b -6G!T$L7E/LW`7MJaXo9]Ua#6ZY$rJFPkCc^YFB9X%puG.Xgnka$-01H`aUcn$Tl"Y -kfOs)Ut+/!e`TX1a26&H4a]s/dma[1C;GH\B<<,R"DJ2a:<0\nM$Y1 -L?=H=.eI9nE0QH0]oC.=X-Us)a/7ZM$pY7ZjnGt1]TeFlbq.^'P0q"*Nl8])f(Ej^ -K&L/731CSG)d:;oYkU2I)c-K,(Uudpb_7;J^e`(g53YH3cn7Rh1u130P3b+li.a0q -:Z(fMnV^B1(\EWM$>SfE3.QJI"a@id>o7rL5:L"Ola=pi%Zu+^50.u$0WFut.%\6= -(*,C,780NsM`B>X5;oV2d!MD=oqlO`e;]o?;tgIm:k(f6bN=LADp^/g%>F]PLo>hj -E!*4tGG"Wf3b4%-4+/ -*8N&sb0Il@A`_0[F^(tC]gG7R -T9bPGW:jI[6)?!jnk#Z$'\/%kYT'6/^4$rq$HJ\XRWi^&n(F?DkZ)SY/I:C#90u*p -),*f$9Hi)tgQp%E$eqe!nA0.4l.]g$?kY4+)N@0+E5mGD(;X(M[cQ#r]*5Q$Gm3&* -70]h8rWL"d!o/B]#-nOdEgB3i89.8Hh%5(3*,$!6&h0!>neRDPKB^9iD?ZOf?&Vmh -a-dL-gH@Z*Ae$6h0Jr*Oe[[Imarf@oI%sOBEL4!Q/Op0tHsqh%N"5MJ -QiD@pH(G:BZ\bAtU:5c&0pF:(MRpsAR_3.TjN$Qu.h,@o;_+cT=i[]ki/E*('.5fR -F`iosB*42G6\3+m&8<.O4N8g1$M\RkE)l(ALl5b`EGu;S(."(EPSfu/@C"fArSf98 -LO'KI>J0ACmtnRr=fco\6sB=1R)$AH@dU2PD!L.+(+MR;SklFNAH9V&qRg)GJjsDd -!:n&d.4chLgCYaS<9],'42MaA[UjhPhc"EiA]KgWdnrmsi8jl>0>N -98b@XTW?e<`N,_GFG91o=2d@'GFNd#\u-1#^Y>j!GFS!2\sYu&+$gO"DPNs;:-P#B -HRQ8?M<]_Shi+f?$fI3rB'\el/F6Ga3"\uB'Lm'`2b;JCG,:)WL!s^?Z28[UMN;%D -pD[.VOdjeVrP?'opcsHA):>gY(Rk5<8"j4R0;SOB:%EP$\:k1p\^kn);%$1&?*p\$ -G@i\lXt+6T"HHjNAf2S[`=+kPatlN#>UX?_LT=[5e;'c6F"[\J(?h89]i=_O;Mu6J -GJ1uWD$u(!#+6gNX8!nZo=036=BKo77NR\tJT;b2n:0o"PbcsuQ2QaQ;usC[+,]q_ -r=bEu(`3uZHd?!13AaQC:7SjUOEVtpD:O8_Oi4MS@eC+0NspugZQ0\_q_rm%HbgI( -hR,X>KVj@DD)FTq_iU4obK8Llmhb5?jqus6;WD$&.mQfNW]YhT<-&D3_oO^5:sfD' -^DJF.,TCKNO$G8rE2Wh#U5m1&i68Zb9'F>/:4/.;W1g-3e&iPe?]g%;s4+P",B.L? -A`sN/*"rc=!E^[DrVc=YW='(Yr9u>4P3Giclkr%n%+Ol;]rE!f0n<\U_$-SZEBSO& -W8C)7#7o617eK:i#8d`7%i`t4X5gEfQ/)hmWEiLmG_u>]JN_kh[*2#,C'QtXIZJQR -M=,-:7\FL^aDh>GmifI8oO6MoOq/bq?,&VF(P-?`OIu5+G:5!G8tk7n8=^079@>*u -B\H(!$u&'co6qBIUr%6kLS7d\EYD]L3M0mfY-9`tH5_"*:X:i(WjDbFJ?IoOI#e6i --q0RjBpU/DYb`IP)1##OInD`t5$f!.\fZ[ZVtauBjrhgpp;O%`3.)X'Jjq;UjeV,R -_Z\d\^.AI!So5kFNW9/.QY);Jl-1d.[::9q_tCeK!e44?S>`J/?N<3^j&*m^N`l]i -&/8N4FK]GQjp:/iGkt7B(UP<_.<3'nM^jm$LW>d<2q.Rb,0LoP;72b,lIBJ40 -e0%J%NQ<^5eCQZ[+D;qOmR3.DUI?$"S+BgFaPoN1>=6DENM5c*@&ANn(%b`GMO7aL -R=Ct)8@\<@jf_uV;4nm076!(K-*6ubU'[nO=4Ph%0%g7-Rs)JS+K_iU*sH\8l9FM/ -!pFul=IS%/@U.i**,JJtC=mN.eYDJ<;p?;qb.IR$Dptbi^a\U3Y$P(5@a!F/Fb-Rn -6p2cJ'rO(<=GCutJGqg;#G/NJL=.,>D[=1$#fMYpkP`+Z2oIcUn:'(5c@LdpGb4X+ -F);SIPQ]`#2j1+fh@kK):Q/9OKiQthH4k*C^ekST(u`(+_-:fV4W*)n\b1loiBG3K -@;^O$rZOqYp:Xt\:aPAXLbQNhV[diqj%GL^3o<\]*TmU(i[l92%m<+[O5mfB:HG0!L!36$>[*LYt@.k!$!Q"#_^pn='+m ->JYoVB80Uhq:A;5>K\sI3BYJB"!Jp8<+.Z8M+U:__GB51gH0FO\,5dee>/\$E(c'X -`dr8/OqcA.';nLY&%mQ".!]Qq'I0eSc3"k_Se#h50A0YAq%sWf&@9RO+\qhNes@;L -+28S&r8=tpEV8^n/.?tAQ#dd$uAR#Xc,*p6;r.h -M2s/*bUU3F.@?jEJ8W8VEkGouU -rK-Z+B5KU/n4<5$#_J8r&/rmfAn\J7X -:6\dH=Q.6X0;mW7l-PSULK<`5u -RF2g"Pg0i?R>PQoN!]20bu11CYUr0OH1EVABmjbu-)l[tb^:7%pHP/Q -_M_2%#6b#=X\SA@enGk%R^be=Lh;.=K@^;"D"HR23e2k -_-<7_\JO!Y5`(EU<5#RVUMJ4]#!XDa[!Y#F+Dpe[`3dC#@>7d^;Yde&6"t"'hcaQ* -^'tg_)IHARCubE_kWomM8'6$2_o7uoM_R")UNA7;5t>EHoRIkYZp1jtK5^.GA%UF' -VtK&KJLlEDX1+ui"CJL6+nN:V6P^BA45f@8gB?b_C`it>?7<'q^@iaM0gGn+122[U -E0HT)cb#\/GiBP.RP1.R+=2t1\eIsN4D.Ou0lFbUOYh0G%UmN*;$IjGqF*buLiKp' -4*0)n?3CeV]9qYWL4dTGW/(uWWCI2I-6nA<2Oi^5>:%(lH()W7.s[s7*TJos,AS!VIZF:;K+^YPuiga"AsQ[$7H*AA$$`m>HN9&Wt01?91O-\ljio&=1@"[gB3dc -%:KZBH=`c2kjsCQ$+IT>n)DBaC3uC"L=0[C"=_4qIpp"`&gP7WN'3Ab0,a\8j=%glaN&PHZbXlW+\qhn-ke9W-in.dMK$L#S"&pJo4>UfE]gFJ^r?]o*H,M& -@]88H[Q])-X1S%X(\sd,hhA)hTh"nOe29,\h7q:6Y/b^)0+M[:ipL8d--:`*%i??m -6_Bl:C=JJuFnn1pQ/rce8T(%dh1N,S!9KTqR4Lb65W/hs_ -d%F.cpsFqqDtDUtT@[f60[HO7'Y+h%4pq8O;@G'E6]\:"&9jAi'o@VU%bE6ZXr1/) -N"80;u\A!`PW'W.8 --R;anOatsr%dSC:E"n^,bRl*;[#L6;lk\$lim1Oc>@>Z:fPK3X'l?8?=Si!kU<5sH -M(59mjD:+/9sArNRP*K#AEXUUZOKflATXtSYLZg=6YrES]s:]MSo8BOFu0c&://c`.-$O?S':uipSh endstream endobj 22 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 24 0 obj << /Length 6278 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;XELbAu@Y(&\456SD#$kik%;PO]o]a\6GIWMsE-Q%eT/76q]"#Z(fRZMm%c+!:TG -+CujjW_jEphg=e%miS_L5Q&_CiT0iQ_'O67,n0gMUWt;e,WD5s6*;:G/AWr>R>-h$:s2$8b7`#`U_>,GqR2:qJ/ACko+TkFSGRDY"66Q]IC;aTY;_Ak4,E#^3N($8VP]XA/p(&:M)#@ -']U=2)lr86pW/aQ@sM"DCkIMD5Z]rQa_l -8k!#FW2OLFl#mX<6Cuc_N\kq[%C(+g?$6C^>/co3.(5a63>?F73sq/n+Urg[>UMbPJ%b?:_K<^%I\; -/cqtF+?$ahM:t-Y\EdGc>SIT>`hLYfgGZOQ%6Rq3Sa1J!-?q_Y>o.H6D?@X!\SJXL -fknj[DYqqj78!`5K4bW,k(IAA@-$KkMb"10;gp<;94<[AR#OPOL"P$Nun+^YWP@S>FQ2+"5.[QC8s][YHo)-4aSSY*<* -(9#B:)-5$0Ub3HH;?RaThN`::%81KHnAmYZercrK*OLgjfRVEfnU\U(lJ&uC_ -b%&r^8uHu_YiC.(qd,Tl3+;lR#A#Y=1It+ZPV#*P5H`96Kek;&+k8Ip?!bL"Q[C=r -:*Tdu_$r[qEYthUkt"c6bsuuq[5-Um1SGQ0,87!Bk=/:GhF[bQ""5LoIDo7VPT+s! -3!rMkSa$#_:YCNbeVY:O9&(_bc>k:s0/@Gj:M;QiIRN&1PWY/%,u=<;EGm.!j:[#) -8)=RGcBC1rmh0nD3GR)t4HZWf%Xh@LPd9;?M:G`!e1:fgIM>D!)M".L -&JhB#\BZjE<9Tj8;4'@:k_s9lZ6[9uk)^n.fF*:OAo(9%M";k>06'/ur=\95i7&;W -g3O[`qs9puQi!4iVX/abYrl+;lF/Ol[2G_](@Q[!;l=beRb8"T/%3)amXa2P[2&A^ -^56*W@qn"2hm^^#5H2Rjo`nUnQqb9H# -j2sGb,a_:\oY2.J,p^H)o%#;,6tcQ6]"]5M#qaCAh0Zm!M14PWV3qb@k_NT2-[o'a -7fB&JlK1)Z/&$RS4kWkHXPh82p);/Wg[bNSF($!I3j"J#Z(S>RMYC2'fC4IFJA/C_ -1g%Z:R^B])@[m0f"e4EFAOW78q%@fOeDDm/&ish\,>bTtK$(KXTE:%@FmYSjI16H( -G?%^.[n%aKY8E(q5,eB_k-JsiQcQArC'PY<;L(;U<%8XP -1I%d59Wp*q8;E!_g]b8g7_!D`:e!?;[ca8`&S"`nH'Q,OPUX)6L*D@&0'#] -XnMsDg,?EB9RR'@T1)aB@P9!lN9="; -%r%(1)#_eM5('$%b;%'3mfuoA2ubNA&'iBQ2bTp&o.L]=WJSH2%kE2lCXA?BT5ELM -Nk[?`aRM5HT"X(6hT-Bg)C;/n-RdH&++cqs92sj0%'\.;*`a38dO`9dLGtDk&\Z?C%>)k>o[-N+7@s -bB.>'C;P67/?cXHj]!V2p,Wp^Q_BBiZ]OQ7?D1QJAii>u:F^uhP)9B@`gs1bg^cR5 -`!qa&)-l)Vf@oSVp".#A29`$CC.+1@A(2iY_a0_u$N6n\OX@&;IL)HGGM*2"h6@Ef -bgrAui)-7D9Mjn=%8e>q\^]fPep]52_0,8,O?2F]fJ,,30`M$jAgk;ejF!=+QCefY -_N]F?r&cd,8gRePe1cF68C's0%5)%G3p$m2'?,dHWj*(uhR$]$T`YhR#.o[[n"66C3[/]IIZ@jfjRcf=X"3B -O5D$KHPh[)#m@fOYQ)=ICDTXP`4Ra"3e]re%OF3W*[UY@'"XSMZk6eb0.-<"s2RAh -)MYH:2Kkf'0bmoY<'7l6%8EdE-thV&UTZ.jkCQnu24UO?McK42\Cp8T0@*bm$toW9n7VtMsETkGUl[N/Lj -VQg@LL]+1D+b4d`Vh42YOr,Wh0ilQiZn1-s<<#;,:Z]'_%Pge\*)<5_Nhr+L$4\[\ -q1P^I_lj#(>oC7"/*20&?a!:;o&W"mP0(GlG%F[M,m4mM13U6c+N`UiU+s7V.K=kQ -@di.'AOg/*fs)IM!sQ7!T4h&b/aJSCr!5-j$CA_nJ]i^<9BbYuh!@):C=NcmReef[ -\8L&5;o68P"V@9XL?rW]$H&m%._VPgg;=8mOCZ6[I@"tOWm_u+m`%OQl4(tR=%III -8,e3o-N&k5*.@HS*FF\[1"",U7qe`5XF'u&Gp0K+OjLg. -6,R(Qi@QM@P0OZPLgsU8PluurMBkE%m"-fXTU`'.=HF%kZUE#3oTa3pVP'8*[qq"F -M7LC=37m0I?>TR- -ds;"3e$VuL0*/KTDmV*RYq]).65te6ePKZ+SbqRg3m2_l>_"SA&9JjMOdcZ$Gnd2=Ka0?u!:b"c]K<(Vjm>#ANlGt7QGY+7(A:e%Wt*Psmei2uRC -7c"O/ON:M+E,gWUb9*:Kb[pT5!kCdd\3eM16PYa_[#bmXUbb"S/W2](3>,\`#F&Pr -fX,44=0UtROr+8lSDl*,kg@$ud(r?6CPhR#]O67Iii7&d;R+`V5bSc$^BAS>&SNu8OHR`;m\rPdWX9$QcE_0LujYJ.Nha0f2LN&"&[$7 -oVY&,3g@Lq'DEOLV;CjV2u_$n2S3SUe87;SmJa:RcSZ:&2*0c2)Xe3j#qohl$ZaV+ -c9WUg<]tr#b(Pol&^BBk.\Ips8CS$h"In'`dQg[$QfG2=?`(>1"+.2i:LECa?&BFO -*c";tV\:>FJ*hZrp"NXIRS@`ie[i&pQqO);Lj2pbZd?iULr,eqYtKHU&GbqC^Rj\\ -69':ai>d]ciN,lEfn5N"O(."@9S'baFCR$D%G`jCEWBbe5h_k-(e/a(%N\'CL[j"= -`_cj"B_C"Rb6(V'&]8SSa5Iu_bc$DkeJ;+fpiV,A86fF*_uZPilP>&S\uA=(l3j75 -T5f":+-jLYYGFPg7O+OW:C%ND82]"mD,E7Yj9C-XOe?QkTXG"qbIRku?G\!h]#"bZ -1"-/S'XC]hO(-7RmmJs^J8J8&7oaiq,;aN%:E1)hPbN@HGRDGH=2-D5Wa_/L3K_mL -+a%g^A2]kl9!*%"G@!*:I)N/kgS3Ll1X`FTo7r?e+*%H`8*QQ2 -IhUUV\eO#*onDlbPl)Ym.Olkr&&>*3eBd3rF7)cgJ]74B*6?'"Ln\=$&;S6[kTBop -f4p7uXt7S.ZMT;2.8aXG,182JZal?XJ2HSliXctfbl5u$_Es^]l%2^X=:TY*"__&@ -;[T>k!dhl0P5WY?F]#4E5hZ@EPKEC8 -DBqrhOYgVLbqeK!;*R;BqEP$hV8XOh64;@3Y!QEGHnSmXUoH0!=<*1uO+DVZBWnkOuTn`e)I^F$VCB`C,X^moHC:]#;j$7:[l1 -"j;maV<,a+WCl.g$"hcOW*BUa[Yik9eqnWnXDNd7!h[2ns]4 -*!@2S+%n:eO.m8m<)J?Ig-OuD)^=`1pK",E9HWqiU2)RM4)iMV*4WB=rhVJ)X`J2. -r[e=t8:FLkC6\WqVdhpc#!#]Cos,r]=TK9g<9,P#Mj8m+.5Hk"M.-^KWtGr%:ZD66 -4E_u_@]ER:\C0;\+g$JYW/POXp3*W0A\ZSa^MB)`.=f;be%o?NM)r* -iatsEJ<7iJufg5F3cr&FBgH.%C-n73 endstream endobj 25 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F10 16 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 27 0 obj << /Length 6504 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;Wj4AkS8D=M&J@EWtqR^Sin^91U?s#F?AI"^mti6k78q`C3G7O>AXQtUZJ -WZHqAF*g&[gJtR^Z$!O+(\^qY_1SUh1s;>)Rpj9jlH1SB!@;+^-+\&1WGu2^6KcLeZZqK34\$T%h[+',_/XPTJ-rT0"_uZrfW4-o&p9EH_:#0;<+HCub?k^qc[oIc^ -heajooZ.?iY.K&I5XmJ\n9.?t0/YatEU&VtUQI9gj1%iVY3chPOqp08bS\BO(kAr4 -759]J6f&(8>s;LWRhe'J3=W2?Yb5fL\pgS+drIG0M+fTL2[F(G\Os[E%WTLKmu+'W -SdXpr*!@4j/jA9S[9-!F@i]d4-bN>\E)3[-.FU&G/O#%Z))Mkkr8ZoU39$,DYZaX, -2s:s&5lMAsiDSYhF.?!iR_GGg[YDLHDP`ZZ0>f`?8-:N_aL(V"P2Isa$,DlgXY"Fo -O4GQj]K/U8"4LnWr&6QF2j5RM@TNERp@KC2b(PioT=^W -4PQV"Y[?)\5>&As'!,MC\DpaJlQ#\W4cGG`"PU*R8o*iBPOW@W'2!9JC,\4i!)EQ6@517=`SGps6da63C`'TJ[/VrumK1l(\uGsAJENp1q; -hT]8p<)2TIo6q`.SPI5GEVB.-T5Mpg'$uJ:ptB:V-9)@Ic\2Le_&MHR&M"2g##l$P -:e5Dm1`i]qPM]7gPe2%T?bG4!'Pqkn\9,9X#ib2>ocSk.&Z:l;[F/LK7kkoO!Y_h6 -Ak'h?`-a3sH-a/cn3.-:cPJSN+N)]YBL&=Kjo6(7)_=7MD@IDMdLGs!SFZ7L*oOSJ -OH_(4RMJNNR8QaSS\Y)^US!dFTHbjIlO5*0/fY0M&=a-UKMXk$!'uuo=CTJjit@UZ2MBuM$&&op)H=Z?BimU$2ik#:J*;.jT-Ig2G]<"`oWG*K#uLQ2 -hG?jE0:KUm^WtJ['5K9`b!Clk%WY5gO@IZTh7B*UYMQ>kP0P13A'U$)QVHbpCa/'9 -^p$MdV[A)D3>'aNq2*6c9`@$ih9ipjlPs/b;3XD*8dT3-U/XG#\5@E]6_GE,P)Z/k -=h-JG]Bl=a)c_*h&ZU1tO345Rm$8H8L[7AWSF#C2k]aF/&1?q(enOd\dB*!D!",G; -K1O#c'Jm2"d<9[fCR\nKM4L9e`*VHedV'fDek`(]VIY'/OabMGTO'gS7/qum6?C91 -EKA8p6$-F">9Xt3g/^$13`9tF*d4*0b`28R(-n+ERn/ho!M2=5"BB,+:/WhA%/1lt ->^7AT?VBL/nT^$s,-aEDi(bla4>;eom:oG:5`^:B&B'fF#TrV"Ie<'aiFrngEb+!2 -Sr>i'etEdFq9tf5GHiLUng^K[Kp$2VJDNSK/5l=jH:;-^JccmAqh8maf;+d@Ln>4- -bjD)RWcP!Mr6E4:6m40^2c,/c2@#/gerN5W,?YgAX1GLfqX.i&Q3CWFWEG8l?j$-$ -nC0%jLUnEYIb_#%1Bqg[O6ldq;uij^!NImk`c"I?'`qR(M:7\\+ige9"m+W9HLDIPW,HkJscMY0O;I/X'EkI7UZ^#SG@] -eO2Y(=eV]iLeHSGTa:NB;eNAL&6)Bhh])!/(/j+^[8Q6-e -[eGQU$Ba,6>u"Xd4:1joX60M:LjY6?\]@F8YSQjpN?EA3J#IN"2Rl!-iXRkJuCW6Is=tTUt.9%HV4@mjWFkBI1B.D -rQCR8-]k2D%&r`jf9\+F6n'I^1\F,%)::FZ->78-]%TtL>u5$Q1%nc`W\8^@.JR(< -IKYTJ]0d0n<^eBh!"[S#o_!r`K5rs:4.fdUgTTLWQ]&PXa4NehR4?dGTb]BY-<:]C0iZTC -*,B6#DFQSDs.!.bF5'.sr<<$.3.boX2;]KIjfn&eeb\4XZK"mo:(EKk9ACfo>9kH* -;Z#AGoumESJ,m]eF:^^]o^m7?If12\\u&2t<]65#9B?^(PQY+sd5S#L,AmU+QB.O/ -%ZTE$Z"4%dD%F8>+5V00qn.Dn+57"b'>cgX.%UXq5bt5X$-ESD)'0)Q:%;FhFd;@\ -rKNDADR>7C4cO`XfRkl+BL3gt*U?[45pJ3O+H:C9(h=?J8p]T+YT*"*X-,Z*9uG3C(m4TG=uoArGEL`A1M.,s_&e\O*LMs's!Q_M%d`s92-RGl&" -pXE#j6f'+.F.A-)LOtnPi9Mrn)#q,*8W<['ieFC)Puf5ZV/diP@19\e+G9"4!ItFZ -f"47YKoatQQMbp2"SW+P=;oD^]P!*S`L*b=MaS;FZ=uL+s(=W$^AMnQ5-K)poB;cK -MP]T[JC;*Ns(WW!:?'nkf]ITJR03n/ChsLddd,_5.4\bC&9g^o^df[m!bXViB\0%D -gHD$OXs?G8J60"%gV3i(#gNYC0W'W_j*Uf3$PG)4n*0fG*?k0pn+$?iT,8X,'b,N^ -h,+8Mn!ff=c=7M+'t5FR;/oLsd4)&5?SApb"[M<@R>d`6mD.)9-$85o#$oH6hM*Hp -l1@01[(9J'^ZFKb8a_oUiB0W4,U?^F#(e>b3pg$#&IF,b]YbEI9hDt-edB$U&BgG# -aqYu.!D2kQ%UYK?NddgY(**gu`fgsSi2Jg%j*73S$KG#D;gF6j4;7nT!VTFN]Y%i_[eiae?b5H9=?Latm[<-q$HCX[X?4*(bA`!tKd'`qkqmg"uq6L.?L\6L/.Y$@i'KI;I_'%jf!5Df02Zj[IrMss`` -^sS`Lm3s"`$0qitb=-'!kZ3B^UpZJE:IeoR>5#`Kp.&Uc1<-<(8%[OZX',`e2.uP) ->/A.UOY^#%Y5cPX9$JeeXB7f38s56"L0nNiJO.%HN=B -m8p#<)33k#ZV_iH&-EiE$D\h!TU+FEa9efaZ/^&)3D0-K3AmX5K9Oi;:!42l%8YDXT;3-QGUA$ -U:9T==A/A\m%2uGeutU7.em"SUi/?`Ra5%_5cU$K8emK<(`J -XahH#n9amFR.Z$t+;TW`YdV5KkX?ngMY@]:W(No7k3m1(`bHu!4OB']q>C@/.d5\* -FZQIqrFiFj?r29DF4'4T6<+EX*5uNhVOELKiGQ[dU)3M4KrKcJP!k/L$YDu*WoZT\ -Q6Y\q<02j?MdYNS^b&18nrNfF3WqhP_ZP/&g(W21S:JnBp->qa/_;=-=Jb%O3RqMI -;jK71TIYY7`9"-q;@%hQclq%nJM&(]d-M;so's3\K866so&ND]j/rl='dhPR.pZJF -Y/*8h9+[!7,gWi,WhOghQ$8XFR410g6p?P`FOl\2)(JktqW,OdLr/io5q*\+NJo3o -M\gB"r3nTW$USeN=PHf\NAlLkV`2$-cu/nABAeI^lhKl5lSP_rp$Y -h;[o!o@&#pXbsm^MO1o!>5_bD]=Mlt#@-90*0;9KB%1onE]F3<BHA*3=#+2?C>KOQfeE5@#Ltiu5?""$A4e;;AI='b[Bht:SM`[h(^WFfDUKr` -'C2,\S;"hEH.JcG0l)#1.;SgY\l_2H+KbUOi0T*FFkp?e;.0*+Wc/WW7]/X.@[reE -#%>B*(d;pNnEGP+8ai.QBh-Q@.J8$NoYZ*-hF -NJC0CQXB%;A\Hb2&+uiC;r_1,j)l%'f@41%`Vn9No=f[Vk^Z5PTWH)-Cn,L#VRjJZ -nBN&GHdf@KXQM*t9?_d4B^^3FgUqkWT&-@4M(C]Q`lt'EKgL'OgQ>kGM&E2%p"DiG ->Me5.75%05;VdF882:hUGcZB0c%lc]gj_iR=t.I+C0/ZsaM,mO[N/KbU1@ZJ\E%?p^!U^SLqkKX4)l:c*-5E6@^JDt9V?N=s_T$7N]3bmV$Y -0eD!h<-K5AquFt^MafgY/_WBo1]WG^o,k&r\;,*qU1kON%LSouG##:36oo -3F&tn7jgg_KX-Y?MN-"FT3S';dZ2D$eO/oo(#%jSB-?Vt#G;Dc+lR5Rb_q&4*+UB$ -L1i88K(<:;F)Jn2k_=_%%.C."k2GDORFeFqFPVDSf5f)6dc<@I_F1[m.O)$8+f!DF -[Jt;?rOB0En[0hP>:Zb0^4ktGik.B(ae>=WA83*SP>b=e64?U@ft7ri&`G#4=\LWX -f84I(Oi%reH&^.+n2#>(3*D/%O$`Go:n_%D.(4oe^0'4[%n'aC*GW@"h]*^&LJDhs -$>f#)4asnZ\"DCZb^`G):lUG4IfN+.?p4~> endstream endobj 28 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F10 16 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 32 0 obj << /Length 6684 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;Wjuk)Q!'P`lICfOhoN27T'gl.r+tNL9C@^rmLn")!McL1'pmhP -rVJJ,*ZccYgdDnlQT7S`.?`Hm01iab.^%nIIS18t(rR9jHJSD_% -eX#;IcT*V1j)X('G5BJ0o7aWE>NA-9Z0R8dkN'JP8["Bjh#"9u>:Imn)S.MP:#Zu2 -_1R^+f(alf[X=HBTjDHpl$7>usQ,Z(Ub.L%$>\h'h_9a"G&pQ/RDF^)8GVohj\/:agAW3DC' --\t\Nc)&GCRbNq`/uKOSARCK*!$%mti&IP;%'nWnokrNijhl8ZY0/PcSob/(F0/6M -+s+@j")8RtZ_.Mf>g_^``CZ-f@B`>t$_KR:`oK2Zo<5=*LDBo].ZQ)1Y*:^ECk8Xg -&"26#_5!br"POBbn6qKLFS)Qpqf:0HA>DAN5(,tomcpAd\#Yu2MJSHnfr:C[Tlh%h=bU/ -hD^qK/]1BL37je/^h7hs=hik%Y=?Ld8CMo1O;H).!=i_aZ;Q398*@ -K2oHP^4(de#fa6jX,^5QkR67D[W&aTB?QLP!R31+Hss,eKtjcmN?jDKg&BOPC/huU -VrR_d\JgEsE7%+nrH%8SkVtEp$OYH5_[V/@/MCI9Yo)H?%MmrDJ_k#/X]Q\*jH(jd\u7[Q\=TRO3Xnda9]!rV\EsP;Do#W212]2l!sa//kgFL?KK- -!jHf]ZGMP8A!b@"oc,)S`SGnBMRQ#lCD^k-7L)IrM$8$2BfhIQ6d!SAh -@Rbu0^?7?HhjoEMJKZ&Xe -+O&L@#19&hl2*B::IZIHOM7B0cGb\XF)7/RGgWA43?sT!_j$Z/^Ol"$kjLIBI5X)Ys>HiSN6nk&F>X$C*#bkLk!kgSDsci]6KVrM??.)'mC -jRZpj\kF=I-Jp=Z\eS^.R:u\;ZbHZ-=Uf,jQVkN=7B3KVL*;OZfu>jgii14!'m;(= -J#9e1"c?U(_:-TB*RE@D$q\hZ99uI$r(/dFKGo>bGjT+3muV) -S7>oh)NRaXjD8;OB,1WgZQs(h_!_lSu; -MdEI%oc^2Nl$@\WAnZu[I/*o=#F]l^-B\6:lh1FoZY@!"r_p664'bjqc"=Aq3Dj;__#IsIBFlkp\2Fc0$W1tDYmoYcgLH=Nf]m]YIA-@)6kR1nt?4Z409\VQeLE(H- -9rEH'?_nMrRYrnn#a7rGAh^0SWEQ1f[[*m;u@m8]t;&hNe5R\mUXeE'O'lc*qU"#J^\ -KDCO7-3@Uia`>9aM#FV+,%2ne+j52^>=5L.39^'=c/*&:T&oQ/qC@!6&161HT7OKG+]GSWMLq!i4]3aPmrj -Eksrr=#]ki>qYG[Nq$EJ7p2U]4sTLgidYOG6.pcplJ;gKhKrY)t,9!7Qj.m+/WGk(?2LI'D1Q>& -nq#NJpGp[+/rL3Mo%G@mja+W<=uWX-Y`m]R*Ypcuh?h1Ao6lW^M5@Dp>=ZX(dPg!= -RB"Qa8C6m9;BZVgMbkJM,JiVEM$m^\Uf_h8nl/G6E4(I>TY09h9Ua;LI9G*]af9W8 -=dRl`rJ&A(gU90cd!OP1[)N$giJgQmo0rncpgo6PBWmu);VY\d;N#X=')gVsp#R&) -Ua^+(oa,JVG/QddW6_92MX>[09V"1'.1N%;[Sl10RcrQ"!nk\_CJkdNo$VVcFh`ZG -Lr/0eWF#HG;X'CB#5Zm-MRF_FnI7)!Zk+GS6WlSQj%u8?5*Ke(cfLZn)HHV!POe8[,H&)4Ea3#cgKZT3:m -/-RrnYa-,M\s^Vf8t%f;6CXNdIaRJ=9\=&9(X\>FI(3boL$p[-&-`lA$P8pk.,N=< -/7Sn4']41#GYde,?'n.4nFA3usm1M^XHAfLidYgCV3M3stQFt&lCs0H-$V!k(A!io.\\O-g#!b#i:&k2ipqNjFA -d[EfcLMi@`m@lqUX:(IBA\LN3VFfu\)Ipqq`:Qbg-#cF6$(r(pJ7m/\]fr<`0-%W! -aqq:oRDf,3;!"'^[)A,[$%sB6/Fqj^^M"\g+G,.]LKOIKD^N.H14t/=RMD[@)#8.nbBQk72V\PSB`l*??enAU4aKZj72/WXVW\HsA8`(9d2 -/`Abo!!)-4i_Y>/dp4#<#V&$Z9'A-S#BtKA@jf/?MYdPs#7"ZhQ-C"&MD!qs%%CMW -3IY_&NbcqX)jdAkj+n$]8!G&K56!)G&msbpQZZ5DrE)6@ccos&Qdtf3+3reFSAee9 -&cK4@3@t,#VrB,,LIeR,.Y:OhO-1VfmfjVm&Z8s-Wmt$G60?'!9Pg.3kSKgUq/_ZkfMQ_"^;;k_0L5YsU%\oq]25Ui[1&S!k(*U5ro^5&6'O9V1q:d# -BR%X08HZU*`^uFU(31cc.:V'3r:c#*%.I(cF>EG\JoDtF-hh[oi%Ye20pCUOJKK8S -12@j0>52pTbXELo.QEIep@BC8XRNn[4t&XM=9Z'dZf-e\-ismN,7]OrnYEEpKI11h -\$=&4g?[*3qS>bb*NkW3o[ZT(qSYao:Qca[BBYB&O>'A/U.41ZJ6&^fdd5\`.uP1& -]5<^uYAc3='54?e!JH)sJOSk;,,d"&FkkNtG-pfo3%3m!Y0J^MN/3j*a,p7=b.%l -pr3ma.`sT36'b8Pk`&q`"ops$S>l76e)rX -f;pGYq*X^VD4ctt8amVa@?NnJjOH1&KI6'u&3AhSWkS1N>dI"B#UoHJb>WR-4FhV[ -2`D5MY7Vgt%.>eXF9oZ2ennPP]S-q%a?cY+02=?GXl?5 -as0SNRX4qp>6hZP5nN(rJX>m-rM/0A*?e2@PsO@B,m11C1p;I>dR.nf!@ -!4H_uTgi7LQ2Lm'De!:.$eh,()5Om$&foYe+pbO?bCX/;?2A[f.Hr\$YGZ"&jEL') -Y_<0#%!int"Q!P/LZ_/B]tc!h2d9uCK0k2]FL'MI:;o7S'aoFsqCr,R1j-2Uf#`?f -TsmVdKd^P$$"3k3IB`[4+RA'[TIm'P-^^]g>r@arLR&qb'"Np((4q=eb`]_1Ds>eg -EJ,]\;i,eO1NBdcWRTY@18]7D`AgIH"^3VZHif0>'Jk/qEopFQ$DrZ/`tdZ4+lGZR -BD&7*=64/>2?a&Ygdt8pcqoloE7qmo@Ni_0s3Y1U#8LUIPBj#=)$OZ:Q$b;u]b4/ZlA!1jEeHh6:68)'bQ1PSm!`[n?b!WKL -hlAB&f)@T=>i3]S(;cr@lkq47`ql):o!k*6.#RH@Gsu`mRgcEm+b&o2'.Pt*_i,WZ -'J(=i\V*cta."5;Ym_'X!G_@W_/do0:92?36^FWg$^Vh1rFLNtPNfjHG;SV,_%(kR -!#U"6:m'c,)ub!_%gjh5F30"8MPrS+%nK4535Lal,nfiH[7G=<56e)[Pt8J,.GN^: -bpT*(EZ+X>LTW_]q]SI+^/>NlX+87-nX,rW5WBP=dA=IoP1/79_IlKh$R*X`dM"T! -Zh0GX(8_dAj0jd.7n\F_Ed\K-:gMh@@r5!"ZMXk6hCH)97XI3StLk0(Y37YJr&Y/VffVuTH8Mm -ggPO728`4C+P>oi/;?e-6GQ/)j(H]"5`4mq086f+b^pD9fb@uG`%-a9>iFZ]idN#Kj^*@A%-p\I9T4[Y`gUi=hfC[.3jt3H?de -Q2^L9Qi@KpO#KAd~> endstream endobj 33 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 35 0 obj << /Length 5038 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;Yht9lo(1&cDn2%s*D%icmXAR)9u.h:T-)8nG>,eK-7`+;,mW,lsD:c#nJ`?I'$N -![94!Pt`_5ft_RRe(sWlokVD#9a(?M$20JfD@3gb;R!pBpE'O-:YrarO_h:n863'R -Q3EU8F2i1\fQs9Wjjs(mX3&USE+NDW3uqCk3MEqn)\(,)HB%g=5ni?#Q_$4kDJ5f2 ->j21cN5[oGh!1ZVoR=elmOU$Hd:R\hB2]*DlY&)gT26Emc=`Bu@5?PVte,SQ5F!HYQ7A*Ks.H9qr\[,/D -ZVe8sPQ(I*W,m541*I#>4hPhbP$,Ck"_s#9'^2uCH;dT]%u&bZ#G@qgiX_b4?[u_r -U,qd6A.6;Fn3_6[f=d8!?U"`O-8+;)i7Mag,K%>@"1Se;LgbC\1^tP`][[89^6$$F -H8LNBL07$2(J-@ZaF9oF.F9^;,D[8>#a0S-Q-GhAbA(7dDVqa*;g7TWY3`/_;n(#; -[E[tE^\VpH'4@^Fj9^O+$^J4tBJcYq:oh57XF%R\fX@6V0Y=L!ANOPtQ8NM8`R;3L -lt0Q%\[lDI]8eJd/KN*Yq<,'Jb!j;'#I^]Mb8(#f\lj]f*7%W=P3H65ne?mQkE;N5 -[FhV(:#14@9=0:7/jZP&Xin+j&*pome_39&,80Mk"F54"M>.U6NA!43Ufrq -mR#C6TtP,J7KEFdQ:TJYsnfF"k4#/0PXL>Eda/:S%>B]_-Kkk -in]:%=g%1q3;YG3CdY+,I:6D=YM7kkp@ZIL]<1O'kji$&*]NKLC.,U\h,&hgSBaJ` -q:<+pIXSJ=W7+"3)-7qK<(m7O5%O6IX2TgbW-`O>@IeRDB-KR/#t7Tp\AqHJF.1d:,1a[R'?*NM -:nJ70EZUss.*(0>(@fpHa4\7d>4Y.?5"FRb2S!!s'`oC4>E.9O#W$3I\830Xo[(uM -Kg>qN6omg-(j?sL'_a#Fl$3$^k;5]"e$O`JU'NPgNc@Ue^5o]tJ*5krm[E3'+&-k= -]2AQH3ja*-86Pfu!i1!-%7c>lVq8/f[(X)]!ZYV?!`H`_:!E1A*9uFM,H'8g&FlM\`g3">OX]Eu`C*NKk%0YVJ -G105HqdmC>&g"6X8*O>SEEao>+"l%f65+s1:HCG.Cf1*k`>Y86"Xe,dgNT1dN$d.7 -=-.tgMk(?"+]&UlH7Zb:M(>BGqOdu39bjEi5!1LC;+PLamJ:RT.E5s.&PSGi`\T22 -gg/;g]Zs8/3fu?M/-h%,bme1Pn`>3CJOA?g=dkQ*LNcUW,'gV(,XO]5qndN-8OH"! -jBgXqPR7j-\TF28761^2Fi/smSo#Zi -:m&5c9N:d2g[6sA;2CSGg$Z+^6;8GXF4RM!8C`?53U1`l.85ooL'P_]r0EWcp-j:U -nF\TDhM$[f`^E^4,NiNPj2\(,VK'!^]?s')j39bBC&sP4RsjVg)&F0U16%9U0ZTrU -7MF8a-6UZ60@\91)9"3;(/U3<*)hpNMn%+F@`\JhB=MR$Z_9(Y#=`bGgm=1-(b44$ -"(t-?'EJoV6$SO?:5cK(E^J!2p[Q!^5A*L:b7b)MaNZDV5Xn7YkoMI3)a7J"Rh1mR>2%t2ENZ?[e)`X?b4+.6QF&#MYt[(_fWq33 -*bRoELGjjHUt$m/J`D/jd,pTeO_$`^+EEBSJ5M2tWbGU#/!ihES3!`F:Y54M*59Vi -9.3=\!^M6,TZ!B%PKU6L7ImfE%db?j\JYT-mZB9s/u\QprgjKcX!alJGljMY>ouZi -po*FSc&[t@W9a0IZ/*u:`?*dFl&o^WRciB>UY8a;DmYtI\%?$Y1\!q8,H)?pXZX,7GNnZf5rIXhM/a^=h<$Y*\(KjE5"F4BU -*FKXG=kFcS>(J8L//t/UqqNAa=jksn"5.ch[Rh6m`Ob4Vj/o$I[%kRPfgJu!O1H:! -qkGgm%W"dQETMc(#]Ug@Z"%b87Z51YLf:7H/bI9O$IW^T&H -A??GRO?SE@PJf+I&(\?B9n%F\hLX4E0fdtoO`85ThC&UR+m&iSHuP>CaAGi481R[D -3`3ouSNeonU-s,=3r\nhdmBOh12`jR+uM;RDWBc:$eUoC5]#$HM? -^CGomRT\JSA),q%A(rdlb^S9;\OHY'(nO_XM(Z-l9B&K"ZEgGiIjjtle?!`%Y,X`k -TSkbCjTXO[Z>Q^'h[C?D"-&OZq>O].Ph65[3S621]JED&9TTJ9r8ZI'd>jq5Ba6<< -Sb)l9,@[4Ab5)d03pRea7Pcs'@)A,mXPoQ2>+(3:+hfD:??m&b0&&>>#`,6 -'OS4PeA;1W'0E9Zkc2O_R-$G7#1nDIb>I7GQs=1tQBmAkncRX3E-3Qq'e/P%r%afh -[8>PN*fjOnY=s7dgaHcCJQ(@l>27IV*lK)"T:5&#X[Vf]+OLo@Fo->EX96F$l^Hqs -acK5&map'C\@k$ef5d,&;.k1E&)m$"g/^*832L(HE>fN::'Wr`84As;qJP7%DBdB_ -k_m7PcNaZ`95#@`[dC*r.P[$K[ITjtHc80Dn#R)2]OOaJ47c3f/*6L2^^k*CBIEDVtc+ohep&27MFe>nK;-5_-Ic^"O1HC20\+Y9\b&R\CjuV#tL2+rV -U`Pds!u@&sVL_,lOHj$-'LN>`b8c4BR"4^&A(k\!c\l\rg_jfHAs0L9S@ql3Ba-.r -$Jbs\4J@-`cTsD,7/?Vi<6FRPO+O1=gSg>sW,E)Pi[s*D^^Yj>_uj1C6pN\>1VXq( -@f:uTB.&m5b/jMo0mURqogcKZkZg%J%r'.g$N;Zl'Aqg<8?j!ZV5W_K7]d])FN"#P -rj]@'rM1A!NnfH"M[KQ/me1g7MNkIiqhV_Vgkb*:dXktHe2tiq"PqVeke5b%A?"9/ -X$,g+B^FKVX:A12di[3U[-'+Yecq_ endstream endobj 36 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 38 0 obj << /Length 4834 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;Xu\foFh.(&\446Tn>8gsZqthfEP+ -RTeE#$m]`+.W0IFkFVS9B(Fq=B7uJ9a2s5] -hf?$h-B)ue*4]3G1-M,`I"42EUf#65Nn84KMRStW`kTKkYSseg-FXl'Y.@'4?5N:p -o\Ic]$0O-h4K=3-BXLH/'9tojc]\p34"hk+fo_&QXGY=Ml,pMkW+7(K8a&\k%f&,s>D]-?"8>nu*;Wlqh=X?1gY[q38>=,;)AU7,#XPs15n -OAa2k%1;tI1=VW5U:n;c%opB]7COib]h_T0,q[fJT_bGIO]7t80.0+j%B[QpfDd5/ -O=mF:]iX\4WDG^#g>4s7\8a5W369T'h/9JA77VgZXV$8]?EQr>^ZpF81Pro%n1#_p -$EjeBQ\C*<)h,;bI%#"PObo@;3fUJmW"=DDK\(oc:]LMVa2i\9`+c53Ymb=hRri536X[u]nhsXFT!:[\#>9(p -JAdX#.:;=,6Z)`R*+6u0$Vhl#m]#."Ob&hp_T@d5VTD\84P#^99RV&!UF;*@`s&#GFQt]XD(;J! -MQ(L7U949,;60eej6EAlCn%S"4W)@= -dp1t-%^cj_&"\DoImA22V@TdJn@8B:=Ks=,O//g7^gc3c?M(BR!?MB'^?GhMhtK;\ -0@sKnlmW$UZNMmJnOjab.Oh+C78X:$>;Zr!=&Q-Obl^p1gpU?5K:o/WX0NcTgsu/_ -[KV\>>GV%I:.4`eeselE!Em^#1/+OE?BV0<8b"mTm/#]r7!/\'Il*8%N^9LJb1"Qh -benFjRX+H(LZlRXUIeJhs+:[_WN/J`/\m/`0PCW?TK8K=R/]3GVoWOmnb'u%Qk#r$ -%6QqO&WD2s1eK/9gIF8:!S(erHQ>nY4O7ntSN4D^5sRO]Kl2#U?10NB)9Cn@ -F:]>+:OkS_q -V@H4:VBFW\Qnd5>AX#.j7a2P$,Irq)@Gnpj_Z@oZ3go*WSPYoH0c['J,Hq)-;:Rr< -MHf.0(a"JTKa72lS+2rhc)j?-AY6ULPs\k:`H,;EJ!t$;+DK0V/Has&+VZP_YUD-r.FnKVqL*Ad -po>&Ri\7_gE3Sh6g/msMfl`sGc#-0Tbm&[b(=[79?(2.ONmhEs80\=0Qf,IfATJgd -Bt%kBJ/hU^bJY/\!ZoPX-$#$fLafCp@pO[$@r.)BkD5D="EkYX#3G1^hC?%PgjZ6= -DBe'V='*:d7oTA^g-?T^:odL%0pO`PJ;)%@$?Yp&WReujB=$:%OqoHGFMX.VJVl/P -3@up(&%TRnU%"2?:A^(`+NpNos8L>uj9r)Q>D%c+%W!GO[i&u`/`k"T:@a'sP1c$" -(\YF2q0/C-\iobKjbf5Q9oH!1JQa_LYk(#@1toi@`%TsP05+,4\Y5)ns-@Ls)\:rg -2Z8E'P7!9pVJ(FD?/-[=IstQ&!eH,)a1p`tj@`E3L%LP@U9)79fl-6pu'=(fiii#gW@8 -%e/W6kgA06_8.d]K@LI.GBSebDca.Wm_Lo5Wg -V?dr>RBh1X35\[j;gtZ[(*Eo>'biq#YLg;XPn4;FKZAOoN)t?=EuLRE+)dib&a6a< -rTg]-)+$#V#/VfL9,%!E=&[=PcUj2hUF;uZO.Uq]b=Eh_T+811Z6@m7HOa&$L7%c6 -@I/]ZkFl3+N*H63N(:Xu%X^YaeARUC!3G&L^O1gAL3/=>];[1Q7(U-jepo1bKSj]1H3"_YIr)*e$u9ei.m5I1l!mXY!T -q`)NL.lW?HDkfG3cgGkY(TekPi(@HQ16tT,H$?\c"j04"1RR,X -b*JXqH!YoKbh%jk3pB_2Oh@(,9CsfZ]3glVYdN[_1'4LK3=tA=>-LpaqH?4pNq7a% -*J=Die7-bNLZ7s63ND4]I)%1-$;[B.*c,E8Vu'-)&@5=UH,XXS`GeXd;#;+@\OKBL -6PiIm`h-$hA6%u_HI&Y3aU:0WftG;fp'2=E1.:le`)Quma1 -hgHkmQfe2>`s?URO9:d"=HZ"h_;msR,BeCJ:5SU>L^OkT/1n(7Qd5[*(W*#bUHmXq -r5sUW1PeHcgrVUQL36&+M>XTX(+X@aqq\"5NbBH334T'X`ggo[;]ZD7cA2DJLjf#W -TBU]i#']3$/Q[e:iuhhIJ#g^d;:hVu"pIqA'c]tEB3:pNFrO>Jq`,3MN[MVWBMU5n -'+FPr(-LPL,#rP0q5%=TolBc;Cg6PsePu*u,a#lG2^F9#5#=$4)ns%`jCMO3]DH=q -\F$.W=m:!#s%@Xf1b!;Ed9i"8THfY0.-*%Lo@,,?;lV`SPs_h^!A\mm=Hm>,iSWh+ -5)`oPB(r/?A%0&,ldr^G$i3UD4`>3oQ -?>Vih/[k4U0`0W]LYYFaVAhSLCPuH*4e`b/,9*9^tJNUS[RWd0>"lQpI -(/fR*^[i`+16JF$j&,[lCf9?LNn/_9r@J8G7)H4+d)9(!=1Z4<#21#D4l];!Hqt`jMfd&K]3AA+<1)JBR57@*c`^JIJCtR -_C,7"Edc[l!lCuf$PC-;4i97_W,9EQ`_Xruf0bVUW:ABH)-@W#;/]cjp&:_f67a+hb01?Jmb:UC -&;7otDB$7'-1t)M -$PHQ5"J?9Klp[MR3fhT.&5nHs>m+@/]a#WTb24L?&nX&8R;h[#9pCT_a`JpL*Mdag -ds>8]DuY5cbKH]YALsbZ'VgeA9GDWhjC8SkS$DpB##P.9DF3J1-HQs.lEJX0nnY&X -SQUFt'=*j*$C4+d;lD]Y62W%Od0GHPF+eQ8+1/aW-N;/fL(la)P"fYGmdXHndAtF> -mq'S%$FEf'gba!l+eq:>_mn*+c.kl=BJ? -mL<&A]A:qJ%E9>>!-lZu?gDIVpe$-cdEK@VZMR-fngr?d endstream endobj 39 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F10 16 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 41 0 obj << /Length 7387 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;XELgN)&i&cDe1_sA>0--()A4SZm82RT#S\MdL=5$38a-qJqWOYTL2P.s2YB)iMD -DbAUB.Vf;tB"Ik]T0E5AI.ZP;bp5Bc*_FI`OA+S>ZOD_:Vn"bQr,*eN)tooORt#mO -lt/Bn>\J:E_d=.RBBP>Nia)5i>[4PYD8iMneKQT2Zd!Mf0,NqGqKZ:.PulM;^+8C= -OPQ5[.^jV-ZE*iu\lr*l%D/3uhj1>9q#&03>6&fIZKWX8CXtI5bSVb*uc!ek)oG+0e^AEU/uNK)=m\SXYXMm8fL]_G)$k -_kgmti_g[b?[jQn^Q,.sNpG\R/.IW&`RjYCoA;V'icm$WXsF,GH -%N];JXcqCI\4q7./D'G0W]F63k9#P\&ND<5;)R$IJLA_g:aU!UeKBS]6Oc9:f!AR] -K.?.T.Xr1YF9oaJ4B/2WIiWBi)q!eHDQ6.5.d%IGZINtoDEof?U;29'g"B>GJ-7\9 -#/7.RPoA`-^\\$KP_.;^i3[A/Y)r'NW[#;VFml&(%rJ>%-IY7j9sPeFfgfr>s'p-> -grl;6p6SS?U3"FQ?s-bW2R7[b\b+jkBZ4>A8SCH2k)F>!m$fp#:^kp\-!, -SbY'G=Y"'$L1P-M?k/VShV/Zf&i -FDh29hDZR'(E8A97#M^V6:Mf.QpVOI@;k?)a8+rb8@"\DqVNb?W+U\MTkd]ZkYJW( -]d%(m`dZ`DgC+!oG0306Z)&DiiiE[]J1L]*,_uU7M8D'Q4(O#KK=\Lh-FRe1l1R7)p$]"Ul^R,^(ndN0cQ -1-c!E,">0UqH2C?j":PdYmKnAC,64HhlS<&L%O'.Za5*H!&\J$7a45CjQWK8V>,k<,/+``&e:TEV.olHf<->p2Q%G>^?V@F7`;I4Sh1J2fq@LR!ck%Bn(b -ZI'Xo[&a7*QrS"b[0+jlYkeg00+aErYXe1.4(FmH$[.enhb'HFerl`nmc?AB=_.,d -79`/TDVmCfg\2fe-/Ph-kc2ROJ]@crD>#9=nH;/(;^8BhOTrU")'e^WppHC$HYL?i -W3,O8"GF-@$*W?&04S,FB&$,=IbU4s*kc@Nk1aCG`hMl6"2,8r.jn`mAV -"TR2k*?B"-N>WL[MHO=@k\B$M)uINi'N/:\G/JXh7dg.iK-TeRS,_aBYR(E-LT2;OKHIVp<$eZI9aBM -0N:-<-u5tbIo+8W\88tt1@[u4[H7M:FU;'^S#+.?]f\7_R57Q%G,8i:[) -Sk[Wq`\'!HZqP\ZDe1e_SF*R8886hcRu_&n-rGm57gW*Scld@433N:ZPZAjTd^f9` -8h91PiHX,f\k!1_GAd5]3NY^7F$3bpB]i[dA-nUa!n/]_Cd4"ConV\Y:W:qEE.<]c -FemkNn3FGr(CWp&s27*+I]JeGlhU.*h:1>je(4Ur/C(TuFe6+!0=/''#';$YU/@I/ -dBM?lTHSH$"h!M40M"Os0Q?.Dg^h!hUQpDXDmcAtJnDd(0m%hA78aGCC-O>3W"_CZ -9I*WbP`noaBaMU"^aXMEM!!T=V'Hb^J681V?Q)gf]!EF%>,"+Ih7cm`;Wf$tPCRs# -EP.GDCD0;H.Ej(B/u:FN[6sinpXr;t5^1XfEd2q/A]6nd[KB7Xa&A1ZPh'eR+[!On -pF%>/UjfL*-gF3R9l[NJ06Vo(oB'1=A-*pCA-/?+1iq@)T:pICE6>05otEMM8ME7f -kOp7E"Tk+TZHI^F%W-Yo(,jV6RlTh1NB>467H%1#K,XQ1"D=R_?fnba> -i4U7kdW/1&G`LQU():N3#pLPR3GPn(&9am&HA13IhYg33F9T/GS;QTf:BifmjBqFK -43*!=q4rPb;4e7P6co9j_(:FP"^=g`U;f"6@N$;]1I=aho^q>='^^nX7V2t[Zo=J= -KV0uhnudD@o2BaNLZ=kZ.c2("k$/Pt+uXB;hF%4T6bI/K`O$KgXbn7\X4/<^<@%,o -H0dTX1BkcLj-k'!e<)LiA_HO>h9RK+8nEf*PHc@t`8@O]^I"fd/GI;G0)Z^W3:aq4bV[&ud9u>OrK7qIoPXasfc$>Yqm&>\LLfK&%@C2q -QhbCND-OQF?]]cqUXYY4k<;h[%g]n2CZpon%I:Y91Pjj>"5@mdGD6mda6WDfaUX01m/eJ!KB.r7B=3W&.ju]n4<@t4D(qK< -Rn7@;#^3Xh(g/=!PdAEXPjg;LB8rRr%biZ3>\?Huq.TMhL3AY%?1>2/0rduo7f#&9oi/L@[$*sQ([fHdUOWo=AX+b= -/41U8a-o,1_T3#JlQsHlir.QI'NAPI/Bf>t*potqQXOU[hQ)XJ2F0]a=@Q_q*%P7] -RCf.@93Fn]%cRq -O1qM"A6B!]kTj'SA8b&8$:il!XaNP&CD\A=,n@p:/+!l1+G]rNm]R`lNI;QK>389C -YRs^)+pf_6Y52i5GHgM8TBfjooOG:S`3m)/qWi&!F181KL+qD"IZSt+Ms7`,eB1Nn -C()/e9U_nS6MY0f1ftuOS[1Pt0lMR4$VJCU"oX(gT-sG+q9X=V@D!,d6>CUemruHg -+L.7?YrI%:#rOQ)r+!<\WW?3p_4Gp*8LQ*mV#trR4P&Btjn[PG:n7:G+)OWr#tR?; -#f)R;5N:(1Tm@<$0#u>[\2(dl1#A#$3T&Lhn=C*=KhWt4GU_,Tc"_io -f[Eh`MuY1J:9l`b59tI529&7?32_>tTp:l3j,chIgiC,AAXZC -;'MiT!ZtcUc7'7"]]/-&LQel'@H\GJJFcsXiB$N51QckMi,cL)#M96jX3/"7C@hS_ -$=i/lYlO\c_OAlcY\'Ua+Wc^I25f_k7B*8K)#jU7^dD8fYpn0()Cn]JljSJ#.E^!F -=;A,WEOW$7+G##(6Q406I2'jBk$f.]r+F.0)>3!)>U1LbTo^E[1<0?B:2MC7:3jJ` -H_%OUeiZiZ#P%fFdeb")(cp;M!"0[e1@eEX.Gs"sUU]tV6##lSd(]Q4s5AuHg -iI@/bi+O;c/&[&SaI)TUYKAmE#rk;8T`VerC!uM>dB>IEY6(/Dl2ElC2L4>=15F]4 -$?]gBL[SUb/O1Hin/%Te@C(&`CUHE.)bWWj("Imnbg_u2XD?NU(-VY;FCX3/_ -?UC3G:!siCcCaTSV]9J1FDG@U9D*FjHaDkO5`l'=8GJkdI!spk( -1BU@AQ;O.\%LQ^bP.<=KQ;E6U4HE]SDU[Yu[cI42":&oI1+sdGdJD1%H0'k<"Bc<5 -*0ph!Tp2N0%jW7Y<6"IC9lmu?:9i]7LfHnVnaM)*J;5s`ZA'tSM?e]Rr'6h-&GL_8 -)>HNmIX3TfUTNa;9%:@9o#t6#8+P7+CN/uNP/l@^Br$!sQ(+IlZosTVml\R)1Jk_N -Fe>OUD0t.%UuKlhgF"Ga-Aq!+/&"$$a0OXBFFaArMRS'>`Ik5PX!q@2rhhQb"72;5 -"ZmoQ6$Rf0_%ZX9,^:X?JsXL+FNsa=;Zq"XPn?.(Y?sol"E5]OZF;/1HV5[EPs'g! -9q)ES=gnI]!5HI2hthOg:p7LilBm[nl"67Y^;(Pc&=f3Fm6rnN%5?Vq-F -Xaj;rDR,;$#hQD=;udLN^s_[;5W%c=2*qh+<#J-c8.:15"WB*TX&tus4k#_uTmQsN -ZGa%4m[%jYZ6@O^g,RcUC^$aq1daP0%G(q*"9d]9oX.:l-@?V69BUOqbK(G(Ze!bj -Z1=m:'bjb30F^N7GU*dEQ]>a20,XnN`;aoeau+/!\/RIhT.+q4)+iSWfKnJif\p>" -0;hhCn\./n?hT8`g3cIkX2*`C%TJnR'9t&(7C1>!F\K/i)EUQQN#GbiCu%:SOh]OS0^X]4>BIP-3i-*m)PO9 -lL+mm)%Hh(uqb\TAFI-^,mD>-n2d5Ps1T --c60l$:cXh500Wn;Zf=\8-g.Z+cM8Cg>/qEMY4/Qn62X17F9MpiB$ah-9.^.4/D^Ai`8G&RfO?V`\f(o!LH^WY,aIA+aWN#b4Vq&p=4&A!;k."D18k(C.&k.[r!DO#t0H;Dchb+ -A1eN)AAC%!8aYm=\Vp=dcLrNn]-pY_=T4+4:U$$:Vul3b3hj5N\E&52UlcC/dE'_g -;c"$>igXNkPs]\qN5a29GqUNO@E$1gMb(ZO+r_(&o!R:SpZipg*3Z#ZR63bT%>O-( -NWGZK2]/g+rL.I62/W9eL5%kVfN^0iE)H7+kS#W=?\;]YMiGdO^R)7!f$s,pT;h$9 -aGP]Fk>ResH).s;UAd5(i2!;LWl3$tS!]E]3C&@GY[/.XoNYXK9U`2A-j>UMU\ja; -r>,!"8m>1s_rPh&\:>9_8Y'kN)B!jW[c>U)c+K,%D_Yl5:%B\;-\`jW:?n/b.qHlN -6@Hl3'H/K71ZnI)nGfq'/ia3S5Su\9GOPYjTcL!d#OhpMh%F^Y/AQLYVZik]5qqYp -[$e,tA&=AJJB`G,nIlb%nF>?&[lWi^eJ-R"?9!d)X7s0-b.N"aH+cX]cG4"/i>"nR -IX*6=jITf]Q<:W>XFi=EMN'"('Q_j#,QuO>p70`lJFn"VLVU/&VHq!6>=`V#&\i&W -CUXYAt)?*c"US$`t/7P=qEA`mBK@ -5E#;L!ni`+2K5Id"XA*"E88a!M^)-\].L[,D0%SkK85#brTA2aI/lfg<6b~> endstream endobj 42 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 44 0 obj << /Length 5102 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;ZD/gMRtP&cDe16U-_WB=@8q!.NS>-:Tm)N5Pki@/GMTH-5Y -emQgnq(K64bD!N%5'bpBs*8-Yj)bpec_coGl-bkP(*9ai01[*784:9cCK1J+NV7I# -Zf,`lC[3QTVH_iEe8>d,j0`TbdA;?dpkba:f:K4g*'-ADpHCPMq+PqGD$.FW6]aVR -8hU=Ee]HAR/C*3$m'G`Q8J=gQV_>=%U!3j0P:XECJi>p:DDkU -T&HjB$d"WcWTga)D=/KuI5+>L@NiiQUE!P;[:YuaY5tA&,6!AKjK/Ir=N(UD\,#7J -aJ^%8)Jo*A8Pp?A>A)LBEqCH])Z<&-A`@D_mH";J*]3a)7bu([@\DZN_6[Pn`AYh] -?6g3kG5Kbn\Rs*#TTJ[i8d[]La1o7*BZ)RrXtc+3;LWDGS%"4PHI -2]#uI-0Z&$UlmPU21n%<_`tLsB8[Sp-]L"_gJ8@F\Zr:2_+?pci]JI//GtGNku@gD -QGBA:?$*L%F$W&*aTk?b#Nlgm('k9:$(ZG9B!9Y`5u(nLC*H-6]f9kU<erYbn;f+e?C5Q" -C2cm1CJr.J.9V_#V#q1FdgP?#OEe]Z5FtV=#dlT`U7D^b9.-JU[)cZd/rj+0&tA,R -A98G4rH]*Xm3Jn>::0P_YO?":IZd)X^<:VkFOlu2WHptFFZ)WH$]j!e'es%EDl3Dt -ZE^f@HF5o*_1,"EnSDYH:Q&RF.*?B2&&FP'X:])kN_/)S:\FJl-cIe`]3;XV[\t?- -`>Hu]%oKRgT3MB+3C"RS,^IrVkBHmHfn(Ka![FAJ>f+Sm?=$BC,[gF'Z&Dr>L_:\- -HP9Xm69e/pV])H("n[gs"HC^=KEYOd_!R^3?*MCrC42\j"*';j<$UI^>c1;'DFuX> -goJVT%g7?C0<1V]EBV>Bl:7d(GHKeB:m+(kD=rD*!`B,hk6)f_+ -KqQZ`)QM79a#N^5J6Jd8.C-5=02(k"`'Ea`FCM1oZM_Qc@N_iS+\57V5Q.RqkZDEkK#`e)h -0-2=;1k#h4!1YP>KH8?4`SW(jd"jkbfc&Bid"#&3g-HC+2&O3"ML48kKS+l&KNL8W -69UX]!-f?\Ftblj(u35XJ6=t`"5Hp7(bc*sRk5!85VL(S9$jDS$a^&h_R'LBph?d` -O5S5m4\l%ug:[[j#b*!`6tCY@[)'lMK'W[3f9`r6KuG=?s*"C.n%7^dF0pQm;2'NN -Yq)5;c*ZB([*PPTf;-p.rqif>Qm=>W,3aUjYmH?(SpU4k88h@eTD5 -g%;CgI!`h6Z>oMmNaJEo`dP]kO,UP/\CbHT59F@qrL4i@Eg]b/#h4Y/8:2B`E\\^A -p[lfW`)HIkO-O:GFT4!98&o+bK&%g%EVCD%5\rRG'/eFIEG*s?5(*kZLRu+oqgI/m -[LG+%\^VtR9M]0YrB;KCS;;Q01rn8D<7lH%A`Gk?R\.;1)t.P'O3>P*.fj1gUu.)i -',tF>DM;g<N^MX%iG,(;FMOOPams>-)VeLPT6.^Kg6JB<&tC1GAthn66?)c -OCsSBnLW3Y@ep0n0(_(I:ko<:,1n:(Q:I?t'kBY&?oesA8IOj:N'`[4#>'2"4b8ia -,V^r@6B6FebfO@c5?p=%P@K:<3ObkU0q+l5]W%]S7q77;:Fdld<`2+ER?UKuEK"#E -((Han'H\X_^oj[Aj(:*0Euc)U7nJ!DUjP+1<#T)j\5Mr`%k77&$<$:9W]4'X*\HOV -m'I?Oh2fQ3FhM$c/3?2"7=b4^E^A"#JZUYn$IWR"P:#CC -lolZ(i;Zpnkl%:Bp3ZVJYpaK7.W8`_Ze'lapK@H9@D>B,8)(aBYg[)5aEoi5T,&!Z -"S5CEreRHb[8&mRaQX_5%kTo8V(4QffMI544ra'[TmNk4Xg\hr1X8LR&kLnh9H.ST -W(@k_p2X&?C/i*o*uTdV9!0hG[cHNS!+u=S[,QP]`h%;r#bY(!4>G&?jKnPe'7=1A -3le3SHGm670XVc$aASYI`OOe3dgA,U+nXu-l(KV\cT`'25iJ4Tau;=E/KYs1QehlM -_ZtuC48dcRi\bigR8NLD,'.gm%<@3d,!6g+bAHE.O036VOEQ&[E/<`:5.q0EPfBmh -d*7nd\'-[STcd/aJ2\Ua_'2K[G3=\J&b@/"pt1/6hJ@BMQ/'8&9Y/nXKX$iQPTAM8 -Ys]!Oo3F`0OiS3L#PY*&VJ7md=kjp(3quLUA_1JkOV/!%=D%HlgbP/2oOp(F4U_Wl -L(3O/OlF5EMJI[S]N`*Uh^rL+k&#nN#0N#D"/o)u>^+MeJ4Ss0&6Hd=^AVB1]C-c1 -g\o(u:.8Zmo9_T4Ip;QX$0T@MJ4UDE.0bIc)8F0k_EhVKh:2E0q:"-KE4 -Ml?eLKK7@Z,dLVMmeZ=5!X*$X)]_W:p[sk+B\EOcJ7A"U3ieCGQ359fZWkWA\!B7= -*!_,uBD]*GjPr*c/_.i"do$4Xq;H5%\5fS:5FaD,a*lM1\5#E=?h"%^fX4U5 -MSJN^4+tNZ+coe+M_NDgAu:d+f4KcX^ZSj/]D6,$*E[j1U8em]f?X=Uk8[8:Sj#8d -g,EC09/7+>U$e]]l,Kt`6<6.ujC8Xk9-uj;e9uE)&4tMj42e[FN]?2k#Jm%,*4MoK -a@Z*L^'.46nEr5.PDCC8LqIM:RHL.j[1G]E'8m@Kg\:4)JXL.,WschOAmAMS0[Vp( -%eD)SD`NT&Q!2USO_lVqBesd!Q+"2,QmI.q4Yc:kZOA9V(o[0f9;"H=n;W5Pi;8Li -J4(%e]+U7].&UMLL;W#A=n)*39,9IH./DaIcA7Mp=q1!&ZgtuiN/tiRL[\+!UC\MW -Vt!VF,^uSB9&aFZdc?;Q%UE50:5A_Tmb?@%s-"BIaC8`!X?kk>C^L8&KiUc74rk0g -Qhqhp\!T#L$b?>`"/-sULr0YV^;&4E^aYfpD8gX6qD)K1%u^SIUA)%NWNWr2-M+0O -a9Xa@I$rb6[8dUr"-e@b3j@'!$#.(_"]J/B>"MHBAp?[%'7j)nD:YPfb(B]$.Au(% -1?_b%rD]%!#mNEonb8CL7b:Q_+OS5aX:O;q@qCIB-eF_m/27;U_#ab'APlk>S!`sV -CD@b3We_)N*8,?ea2)2b;)h)!IAPMGAB)ZZ\,M/S2V)@S$e4j([SDQ8>H)8d) -El1qt'csK0a&if4F303p-p\,qBqA@[;7g3N'U;.!Ag"-C!bVpPo\4R#6tU`Lf.C(i -WIDjf?/'cYrb217Z"q)'gZH4uY4mm2f^[=_qaOiZ)Q[Y5afT;<8MibkA5e'740?UK -Mm(GK-EFL@n;o74#nE4"n8lu'F_0HS`aJUt[.-c+J7:nkeF6T,n&X$NMSOjFUhW7H -")Bp-pU`:dNShQ89&MbS1BTH9T'[_HO[7Adu/FYXP -@GV2&''>>3.%&&_?D*\*Ig( -&W-\\6^u&@#m+lg(VC'C$iZLMQ7?$N6/miT`0_4[^GR!ffH4PA2rD6SJ'#]nSL%M1*P$1L*/dUEWsLcD*$Wbf/5uX+:4Cm\"Nd#1M19-= -Xonij'%K'58#N3EYM3mE.\MP`$6cm?pRAR@^ifE*%G3L#=(&0&C`U:R!l7-2"mmj, -n)=aPQY2ORCGeD&S-ggW8o6^edHA+@n,hYu67es2Hbp8lA#9Md.7)I#7HdVZ5/^94 -2e31a6)%;Feb/9.'d@;JT:Ygqck?N#.cMdh7q?[0Mp\b]"cgSU3,?f\pRO8/i:!`d -\*Kq2?tgnPM=ZbKl:bf4-HV+)86p^SM+VulTO\(q>!kSdZ'_q.`EMfaIbaVXNg.U8 -UaFHnW/o<$LE8Po%teuZ'[:EG(CqCI5a7*;8nuGAGWn@8.%BpTp:/n&StF@#`nm]b -rq&=slUYTBH%+'15:0(:iauae'&[@>):TA*pQNf&j9Qu.oY-o;76"WK":V?#]#(.b -kjaf)GU=sYW5QE",1b-`lZQVlh=^tt!ghLdY`etaX-e=NF1 endstream endobj 45 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 47 0 obj << /Length 6083 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;XELh/:ug)1;S"_k:(?+>KBNc:j.&,[52lgMMKc!dYIAJsL).#u.rU(#/WX4l=JF -&nT8?G)IIS/SaGF5NdD9=0qWcnr.Rs\t*i/3b)X)r.dr -$QYS%$--VCqr@:/ql8LPboQ,Z-2Zl>^eIP2CV"'LFgfe6/oo4&4>g0/E!M_tV*!ge -8\]QNUPo64:?=rBe -Y]X5n?*u;"+/DSa791"rTYu3GFXCRhXPgqp[d<]FY.C2P9-dWa5C>XQA@Ctc)#SY[r\UO.s`Qcno*IgKs%*6o[>07=F%^k'Bt93d`"7sDe- -A>q"fM_n/3P8*gc?0kAPH+6$2Vi81W%qL*4?a=P=]js'5fs%W^m^>8.Me_nJeIC/=d?!:'BErIk/# -]$eo/]UNcZ0O=g.G3d;_P-WX+,mXs. -HNa&jL:B8_Kh"JXqr/K[+Y_P;VV?_N$iHZ$DlGHA1aS+gq,'#N+t*Qo[PUEtmkYOO -41kGo9YDQAt2k; --;e):*pSu?rdH2b$8.)elIi)ga42^>N<^!n3>]_$UO^1qUK1$4L0fSS$/"(XDo5(a -fciCma!T@>@H'TJCf,Q8mco,mkkVcklDc:k2Y7AVJs7p=:5nBWn[!H?`!(ZqYeY]V -k8Tbj6.SH$;N'57Qo7CD^g*d(NF/4#`HVppWe#^*d,T:C7Vqd(RohsMZqE6ls)%O= -&J`UaP*6#27n.rS1J)Q5M179&kTpa=4C:o@NUP"0EH$1M"h7fYOU?(@ -5Ds$mGrY$H;D9q^,EO7u7$)ce_V5(1-tUMC*FcA -?!W$*NMG35`S0"]^CkH--?nM%3lOA(.9 -H,^3fgJ"a%Me4NITKY,pKfEP8`D@VD6Fi)U8b!A\kPrWn`jV1)@@VK_nN]CM;-`XKYXh(#f*Kr;)$,(BaV(u3]TL.5>C_Zf&Kd>/>\'Y!BQjF -OrX*=!/FJm7"8=6ru2s-a=.oQD8:pDM;)HNS'?eh(Wh><_Gh,"S0S'kRnM'Ps/0,] -Y*dDq,hEZFPl9A&*3kf@5iu%;o\bKt[3HunNfLtkQs;*fm<--b -=Q'UqhVI)XqnPoXHsY0E>ZqVrUi#HUf.J8T'e`f*EHa^.%jO+JjUO_ni/]_KJ,BhV -P#d55-N8g0k5p5Jk20FqK=:dS'\r5WJF3+l(!624SEN(U5"r'*iP)5Aa.+C[^ -Red9,.cjBG=bf#jAuZ,;q>%4JRUnV0M((2DktDB -0F`u`^eV!C*8&Al,M^:W`Z^jL.:$_SSb,MKp8?q2ChP>BKRbV%sXL'JT]p0kSOaKO+!`>=MN- -&':]s:5C(K__hdj-!t7_0,%26Q:g-=?rmhuBWbAlndfUb=5G$a0JRjog,Zms)mD\? -+cq(Lk@>%&l4Tk%ik^/?5^.Ef0%k.Y: -S3teaMe[mZAV#2\OjNliLTp0*O1!d%:J)HhMk6`*%Z^3>PA!TO`$F%H3T@JT)KaJ` -R/Z!kI='P-,Z&md+<=-"eLkB$go9tGLJdPiO:hgtS!;=rI"SI?VE[M^+N:$,)I,q' -D&G/V[iqG[$(-SKQP:S_[3a -frG##g*-ufC,=+[H6_SbS#Ip.HQjf5$#LWP]8(+n_jgGe^J'WpKP5,BmuMO2?!(m' -"[Y8p0Z'Mo3q+U:B+JQ\%g3^%7iaWgAfG)RaPPOo_@pNGXE@E]p;9eEoiN?[#\&d* -jK?9++WG,sX!gnr55r!!VErZ,U2]9QX(YUgLUjNQGQoB"S[2g^kS8n%O,Uu!&>?MQ -N>#$M1)OM@LI1dhq@>ifn'%GZaOREP,( -6O?)[rNPG;7U`^2pg`PQKf7W%o)m_;l"b?XWp``Ehj^P,@rnf5hnG_MeZ]:ab`S:? -P>Y*F15bGMR*&Y8KW>k[8njYC_r;H75TgE9P9fFq#ZLgTD&hE>#!r%\O@$8m+IH=Y -6]GAgFNK5h9(.Ns[dhN7gMscM"#[kB)D>n3;B_%f5q8!4;43,,Eqk=@!C/]P1P++d -IpKjhMOO744ud#N[).tn=[B++:q-Q46?nnYNAh=+Zs+`^)ikF*c//=YmQ-K]1EnDe -U=tIKZ7<]D)E`f`L&I'LMJ6JA1JYB/OaD"uWo.*?O2huc=HIo0K4Bb`:s\>m>?Z=u(odr1 -Q6BI;APtI_U_=h7]jnd&WSRY@AB%(*9na$*nD9R_5J?sSh=$t4_O.in+"Z/SBh1+n -aPHD>JkHNC_-7R6KTE"raZ`h\24>I'-20l<&83[:jc.SoA$*:g?IaeE5cu:(hnUYX --ITIL"f/?sb!$+1:OYlL"pj$O%N@Y"fSBbi-XaA40g^Td80)D5gud36`#Ag4eYs5A -cb0raj,h8f>.Y_/\)9DAkgEoIlM\_Q'6OU<HF9<:tjrB -adciHCBEl_K&6oEKAD2_d$aOECcHrn@^SeY;=1Bn@o#.7'=i-U/n>b&fi1#ChgZ^I -gH8HY1aN=kfAJb5I2sc4MljMU>".fCJJ;d%:&k1%Qo:;RQ-nlY1((Sp.nM>e&eO"o(.kLl@C.4S^jFc1a-X!N -m-reUQ^OGDLdBF@(QQIeQp5b``Z21[!_eb=%C]+VlcgbUO,=-Sj[E@Amb3Y7Efko_ -.Ngc/Lkistd[hdTkgjHS;-HHt%T<4in5:"g]Am*]/q$V5*(nAZ`J,f9dp]/@VSA$!&dI//7V?tD)dG4\9;s,IZVe+P -Qc[n'Z@mg%R-0+KQ5'W$A9EBL31N`^\*GHoR]QN;P%%\ZOK4A=[:35sm6XuMRV)-M -Nhh4K+-rsOE?-%6nJ='p>@q"K"rNlP/(VZl('pUO^cS8jDNU;']Q9hL?Fp$?WEtU_ -;ft'j+0-4I@Zs3@[kJJ/$WFq3[c!:L`ZCu[43d\MhSU*s'$$7X#1WD.F_.OOpiL(" -11XD$6d)1tO&+:_LD9/D#<(dEJZOAh_3Y[2(tl'MEP`c]HSDMS93Jl#1.@k8g$$WZ -"ortMEru~> endstream endobj 48 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F10 16 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 52 0 obj << /Length 6818 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;X]T?#SK=(&\=4%g2HX9'"\$SmdL=A6W]O7Bo9YU&,DqJX5Me>D`!0P!Ag/HY/#> -86V`5(I`k!_YDF3O)rW1pW**jLTck[1;B;t:/f1>_k6)T"L1EoX2oZO@I\ig^F)8D -oFF^2f+UWA2O_i+PN:mg17eH"]@?.P>-qAi`#5>Ll.lP"r:MmLt_R8&r; -_p;Y':f*^_ekS!dU>qZ;.O@]A:fYRP4Hk;S$7/5\P+/FpmSMT- -`'8tWSLf##W9P9u`_D(Um_doA0e8Q#>ER[q=$Ct6jY&2DcRHThN!a\ehd9-0;Qp.k -Y*Xa@kTp_Dplt]YCq=3hJJfoFhKqN\0e\Htg`ct&gm*tcCWjg7Vnr`]X2J14M3Pt` -@9===K]eKJKY?2PM`gWAo:`6DCN>W3>Bf17[FsujCn$W2;4#fOVHM`"Ohmr3[5_p]p[0e1;>?^Hq?5ArK&\@`FHW.+h'+UUTWdDh^=p. -A0R!'FTd4WdA>=mK`9.ATDV=(acE#4\N*o`So)4tUj_CobnWaK.uZr1i"#(&o^A1A -g(4],%DtJ66'Zq(;&_"^g3_i#6V^IQ3Y-51N,:WHq0@9t4D'c>_^sJaR'8KU(iGJ` -?)fJ4#@!.0=Oj;)&8@Te!12d -BmhAUrr4qqI9 -mA:WK)@r`FQufhJEs97bIg1<9IfDrC)n@#+Q=&gM&d2Y`D_%VBJD*?eM'1?4lg'1JmHn(R&eJsXBA`,\ -8#8o%]O9Wd6BJc,o:O&B"^7$L*A#_YSY@Qf1H\)qI"DK)-;;.<.lH$d&i32&@;lgF -DoE4K"sZEkdR\?U+tH+a>dd -/Kj*?,u?=e=*nG&'I6s7n.XsIfdLjV<*Y.j5RZ>/]`]X""$;GSW!P#?UHZ@[$"NsH -LbA"%7WdEU-#HT&2gR8D,C-)MZ"NdL -iOG:)U7p58K#eo8BZeO]2T6B:A@fWR@lqnT0pb3$1A.:Q.2%"V+cE -9f;PPkFa;]"3(i51(LQ;#CE$E[ofXe(6,8<;H,t@jh4.8Wtb:i-mf> -6DHI6j>;ZCI,P'i#o@R1c/RKiE6/\H"J,hFB\RX89TQI_g&R,K\Y$@fL7-[p6?##D -AZtDugI[@nb4k,Z,lB]r_@u)GM^k0@r\9CV -73,XC;VhhG(`TM4aCDQ])V;u=)iLf#X$qU4'O*)>=B+VZDB&RHa]ElZS*V>G=lh:B -E3l.pDc6$>pZ-KrAP6R/hQ=5^cL\G^MYh.r$k=+:T/M;:T)(fC8Ar\([&(c(:f%]C -?M9r9,(9(WZ&##UP':C,gP9Il,$$lNV$k^j6jQC=Ze%5T+P\it+#BW+JlBXUUZk@0 --NX*DpX7i0.cD[Z)T<_-cY75S7TU3.',W)f2l>H"FCfRpCEGs"<=ONa2T#FDS=ZM# -Cm;+mdA[5SE3IF?)1o;f7&,eB@Ga&') ->!K+ZkNYMB]tBb^,(C_"Tm]Ng(h%=s-AIs7b$&P7i.$caHW[*5-bpq:JS+*X"]b[T -)pk*c!hf_S4-(R@&aM5g*TkE)[=dla3rCT*B>3""dF*)K1)oO804Zr%AX+A8Sh%R7 -k=>Z,OG7%bV2YXSnpZbYM"9%l*A"%Dh'"'g4*ShV87OODkG^7L_cTMT`^XZH,2lE> -Y4@oX:10:GB&J>[i=6kGDRiqPbM=Wqog;cGq3'OIS,f.t3dCdO`s4_b=*.a-[[Chh -W+M3'jc]P.p2\o)gdohC90KMg%QU_CEqPZ=--/LW6JVf'p6 -`X?'dL9nCRcZjlEY,:e%7H%?_V,>GGdBYB9ZBIYTIVoeY'5G+j(#,'`7l[(QqOZ6" -j=:ecoINp82?+SlX,:`Qg5UAjYFu( -(X*NO&UJ[R#CEXJS?A':f-A6AIjrLgQ.]fk9MW+l0cX1b9\C+?aeeq;7Q;lcYNSIu -[:C(HS-nWfBkMM7c,4j<;$*LdobV2P88@u8:9\?Fmpn!4-A#OC:ChTD0R71lNF#;;Fbo]oDq_g( -PTlPp9E/@0:5?%,LWO$NNn_FpW>0YLRRs8Wn%QN<0=7$6q3n`G^f46] -:KqM>\C>G6$S=*$e9A>i)=s0J6@6=[$V-n_D@a`J_O0;DLr$`",c8Yf3MHQ@Z>+*( -kCujh7*_0MWu&!@%lG3!?ho;c=Lo,,"ZubbP5!HZ.f94Y7lkI^!JCGdd$FQWCqUeg -M$<1PXt:g\;s!ZApqfEG,6_>1G23UZ,,Y(MOVVi5Ln3=I*R.L):T8#'?Cos/c#69. -FAX#Lm\`?kS`aM9Pn4RFhjRi-8qZ,GZYP8Z0?LA?l*BnVcfCFIWAh$+YG@cUk'+:r -@oNVW![]@/$SA]Nq^ghF(Gp%VK]Sq.7VOSAZ#jjU:9!8?TGkI"K%.]VNPBk,c4mkG -ijBWa3pCmWKl-Ap`t3ugk-?e$d^q]=his+\EBC(Y9Wk-K;3I=DhQjg0/[qA$\hV(I -j0Dsa$oW7LE9o9\*1FV"/^t\,%1[WWH8;F]&PP*a:ff!>ndpPAKI5fl,d)m -W?eLK=[RgF1PMeP[o-^`Q5Xj5CtsVjJ/qpSGVWe9X5,pr5-7EhI1(!rR!sA=Q'Kea -q+,bUnt=XY8/)D.qm)7h>ramA9cRX"?#,>b[kM$YS6:Z?*hU]oE15%b%28-u"Zr]" -@35Q_WU9j-l"b[FDFcM*Enf4J.0Z5ISV&b.cBV7VTUsq#\ -GOPCMK>VH5]dT/e>4V=Qj@g]s=J@0bQZ8,C8N[5-oQ2?NKjpreV>'1(3X5jAEMf)S -6bWYle#a*kH(L_mk9Gk`5X^uqrA*JORI3`=g&kT9F!\Z))6Y@MOBGGK=#eg-5H%C1\jSI%e,*`$?O,[*m,>%`U; -$Z8Dek0$OF]<%,>+EVf.*'0G&dKnUYp-)DiRh@!O]ru"irk36f%di9#S^>-,.1Nj` -;+-9UmBtH;4XQ*S`:Bf]V1HV&FB>d2ECZG7+Lg/!F"M'rKCgkrlEhH?MV&(F;=[.II1](4")>a&Hg!W\'G14\CCY(< -&$72CdeHRnT=B5KD/,Z$LR0\n<&_Wiri -Sh3(f&cAGg,-P1n1_R8QG!')ge`oKb_nkad7?h7cH3mlcH0u$bQi[XJM(UjX7$l') -94]PNQ_)WAWYSC3(&h_2f"aG*_b54o/>;\Qcd+..janPW8Q_\C!b@^W&dN[_CmqA8 -dql$EP[q4*2>)"+_QcG?_=X(8b\/p*23Jk+@-GW?e/BS -5Z0VaPD$C?)"VDm)FGRTo6@X*'"O8AojFSXO)$RLZXiB%I:&b?T$U#0RosD;="L>e -lGZiUb\ia<3rIbO1lY'g?l,E,*Y7c0?dgUnbN-E;m`h)^T@o8YU3)5)K5H\WI<9FH -red-es6=1iV.;AuCGW'9A:`u$(4JigHoV&=W[fCk:HaNj-4r6YMq;0,s3A/2Vu#'E&rY:iWpM@ -?)EJ\Jb)hMlDu'n!I4;i8ocB'49pOR$iUdFjIauO4?TmLj^pQOM/p(/cGJ+DPmlgS -1/Q$n%TLVpHL\)UnGnK_k\>"$S,!eg#.@X:_\Hca[DkH#+o[r,p+@$9h7Ne2hH((Y -m#'VS1s#bHoOAh;_D1*X`S7:F@oLBVaA%j*dlX0PPE)0.!Yt-RMsraKKCsLm(pl(m -iQfNef#Z"0'pJBn?74$32V6RR/?kVJ$E*4p',A\=ihQ6g-fOKDlWa)e'$sM$-UME" -i9>R]*ut4u8,m'rEZTaTm"0ZbS[5@B9\'s^Bc8]^#V\D`qgJIQ?V+0)H6tg.*i-Xb -.)XdqhWU9k(![&\!]@kDG+K-jh -!T^94<+(4mPQUUbV/a1R@ET^mX"^SmEPZ\Cr'4+!N*.,;f`%;+d2ZB#_Nn^82Hj^b -'%kg?#V4in[b-.4pWN@q6EI'WH<%)=fPDER[<5TQ)tn5L@m+cdeSSEDl-W!7;>!a8~> endstream endobj 53 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F10 16 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 55 0 obj << /Length 7600 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;XELgMRtP&cDe16Xu=8Te,p2rN_/"Coe@Z2_br45T["TT]NFQLE\Z&AZu(sVn.5r -RGmWZB49G-RB3RVWcLp8]pat1][9EYl,SpN49in1rfgnhbWF(_@FP+9aIf^:N.1]Z ->KK'G7Y2"X1n3?]Wk[.i2P,B6AS-.SL/Y.Y1[XeJW5/Krc1+Z/NjVj34@F!2CYu3 -i6G5:e">mgUnr"DX0/YHdQ-`rl`j;ArQH2p4Cohlf(8TiCoU`+NM -4YH"i2HtR/hlg[/osJ+uag+p0hXFeVYZc&^\oATd+HR)CjI.Z%>InKW"S]`I2BaRs -F4Q%f+WK@$/XH'8^"LW\o>P2E33+p+D)SH,H2@3&I@G.>Z\RXibN_NE?Sp-fTC#W`(Vk4L];/ckD^ -:4lI_VNORe1=0@_.VI%-89&4P@;FI;a4UYVb7DSPdG,TlOZKTnp_7i^_50-V](9<" -bTOfF0G+?':2nlVf1h_\4$aJn@EVOIg+F*R5Y\i,p$,!7MF>`V(;/Fh:pmN[e81XE -eA/J>Aldc'l+/VPi9H,:(;UPZ-g4U_ig`sTT?sq=5Qi]>n1g_d4D,`Xf%\ODqL5gV -\ek&5VrD"nf0foQfjW0QY5?=PXHPQfZo>n^#PUO^\!`Du=aLbI'od.pL -;Ctg.n>I3q>0'I\#iT<'Q$;^")pMs34` -,U9/-aREm!YUJsdN.Hs`!G].urNl-%XqdTh6*6q:$#dG+U#I]1egJF'Kd_^.qG5VV -Ves*Y_&DW#_&f;7_@?;!,1N\/o,sTg`P#)]Yf`75+E1];k%6_q_CH[9>j1&f?0rpc -?_=R$\CSKZJD3bK#W:<.g52+2>n[Gj;%(!O[uI=/0udq^nAdf:ZLK#tYYhk*@m!U: -7B#^fp;(`9s5fn[VXp4nBV9;mf,&l91Esh^d'M5GLkH*8R3;)%!^UtNr-1B\btl+6 -oF"E$:fS1]2fP)]K>%.VYR_u#k%o^;F6/cFM0*G,`hAL=mu*;LZ2\@_YS0kTZ&ki"+ZZ']ln,c#5#Ak0 -)2hdp)P9j--Rci_cgn5e%a[7&('U;-,btoDfu=jDA%4oVA.[5uSJ>D/F&GnRq/U'IpK0o)DW9$lJ3m&/E8ST6V\Vj,gq3G=.G7hh_)X]I&Q[FMsDFOo.]! -P*&e7-,Y.t"_rG<7;/%/I28l;5"/un*I5,=eKoXPYfkJ?Q&KbPK;aPV+NN/hE>T/@ -#%)ZuZKIYl7+'HVe$[*W)OOQk`[13;CgMS'Pkq-*Ks];;+ljrO.jR93Y3fC/#,n': -QN/9H/un%7,b\r%[gt3MH-NfQWD2/XdRrT:p,Bp`-'!;OnZBH,>h's=Yo"FY&)b,\ -1JoY=.=_51qEQtL)$kmr.BOQQG:M),!2kXn.%f4a!;d"?3qt8)/GbcgX1TqC[57m- -9(13Zm&ItbV'QF@#?YU4Zhr]X#gm>]Te;MYJTRbRE!L<:8h'KXiOQd8X[XJgcW".I -!h+u__7&dQbaBBJ7@Ud_4R^^u5slVsP>0`5X;C:]l\MMI-BYbS0KC8E`sXVO&l3>8 -4;-+":u>d:.=bjsfmE#E94HN&=Uf*;5D5Br5p!i-`0t0Ma)5Spb24b>b*=hS@80=_ -aZnCXhcHH')iP6\=U;0,c7C7E7%:.gTCDpT1DMZsP,!m;"onN_2t: -H;!]">63jkdjt4@r%!\@gWo(!mfBh7>qjBSuk?E*J^ngE!c!\6N'/F*/THCe_=#Xc3Wt4e+4ij(DXF3&] -T/9`e\=^?2EbQNS9g9q!TWOi!Bk:$r%ZXHY/m"LtXd3<850\mr$#C:=]9+^g5jafY -keo:KPd(!fY>9eg>Ngl/]?4=,-f9cjZ/d+qQ7386H!klGg1M\MlT78q&$!rUf:Q)( -93T>YQ8Y5_h&JHO>-n%F<9VkQnOVh0l(^X46Ttc,BB/Yf[TFa,E-P!^_L'$!;;*a& -J9S'kqhK%brV;j0d8hunIp^I%0aXVG.!'Z>`kjl""!"L1J -SLq;CH?knKe%2>C6BHtdVe-kmB.to9"D,_3E%loPi9]T7^&;3>moSiO3bS9]FS+IQ -5uoZQ&.r?.'a2?EA14[)4o.*ANa>FOd+f4!lWAAgOXDtFq,b,e81HIBb'.R9Ic\uj-0O"g+&;1;LjI.SO]]bm4//F=<8-?j"C4%1DGT3_@T -=7GCCn-+="5mq7V8QB]?lI/0A -Csf#:Q"?+EKg`8\!HAq]JL[nuoTFlQ8buI1II([!Y%27$73A:=p@1pEThBMU\&)GY -66#0cBac[3@M%A?[F9L)K+]sL[PRc_HKDV8MY!3QhQXKBRiBUa6H:i)g -7p;/j6H"h(+[Vb$3W!UG:d'"W09n.!MUX.eR:L!J(:dNE>1^Nqq3'R[d3Z5nB3Vg4 -0CS2T]`PR"`nR]2HWNI -_$HlY0^6rQWf`m!Gmr1_'VG#X?`RK+0[5:2Lf*Pf`6hn)'FO(R9Cre\E+Z0eo\:p7S6)L9?maG@;L6npnDjO?;Zf -ii0,;MV>qm"\akP=TAXGjo&!^RH@p;;PhcDB?a",XH>kq(9lKW&_ZuXssb>QmIj/DNc?_3Q0Rleo)0ui.47U.Ol -E2&%SicJ&uI+#q2FTr:Kk9sX`2PmkLN=.``OTUIO/q]r"1qHJT50&D_fa+.g -k-%k?!n7]BVAY&t_I<_#gE<4tY7q5pa@Yi]`b-eH)k!CI0O,nknuQ1J/)\AD&lXM3 -a;pbWR)q5qqrnfA$qdHQFh,=Vk?&-Zo0tS'AJ@T67,+%&=pKB@4eWH^nkopc5>7W_ -D2GR1-*0VKflkPWeTOqE=52;%Ppq[5kX^hbkfSY3`kKoN5Rq,`Y4Ioe^ATg$aN56uhNLc3D=q3S6A._YNb_"b -'K)_+/ne]"2\B6BK7##AjW;hMS"\;':dtS:,kUYt6^d1n7@a_5Ag\iE2-QOU#G]X+ -VZ5srBVQ$4lQ_lm#66o.-oKa(qinDI5V*R4;U3Q6=R/KY*6"PJEC`g&Sn\IO0aKrr -VlUB:n=!!Fs,OB>H6j^r7H8LDGY71?%IA\`O\ldlk6)l.U-eY64*\Su&L"ro;OsAQ -&/7ZuKL^pa*!=9uZ/P(2$)2K]-?5f0DpEmQg1KkhB(A)p8l1ZAbZKPQa-FMuRr6u_QC]pO+ipi7F1?p:Yik[Ze_RXVD0Q"` -YRHhC?A+7Nn)S\Di=!4[Co)Z-$5cAZjQ*l+5*W,MpM>:6Ln$dXKE=mrfEZJZ,!De% -d=KXbqpU+9/`-g]#=M5LoePa9(+)/cR3iX7\)5(LM&>.(*C_a/h_8c%7L(?(=Up^U -7E:##+oZJ4n\+R.=hIMCO+]C=$=XO%JP+r/0fgIIS$4n>j#f.Pks[LD4rT0"Zj=Pr -hVX3(=FpX69-4Z8C9r8%f:-qfXmQSTTE,9FFu6'/7(G$9]ie0(`LrIFR7Qn_(/;4$ -DAFhGV"9`r[>3kk!/j=uBP@!'J3i*<5[fC=]0XR`]jQFJj/Dt@3Yq$7<:Hie!YoJ< -Y8(B<^FuL>poM4F&T\a5jt9+CW9Bp\hR;MY1GT^n_C<@I.%4^M4F:]&0#]X(J0]sf -Tm2o1qP#Q"/MX.>R\Yc._Y8,-cZ[]"U@t'sljC1`SVXs]IEY$RP'kti_V81?^VC_r -X2i7$e9ZY\0XS)'F7:6sNdjRZ8?WTqcs1T-Np/NImoO9hN?3;%D>1F$DW`j<.)gn3 -i;nIq`$RoQMH4I)JN%T0?_1eGBo$".)$EI##M+]u@4Y)ZF_r4$]5J2`Q(\9j+,Qel1/)*- -IOHa:dPqin)]9Q4;rL\m0$Ase*h5:3c! -F=e/G632dTIjLn.+#&]6n;5\e-BJ#<&'VkGBp?]g$Bh<\7WO<(h1#-&/Ye$M-bu2< -c1=c./,g.,3!FQiWK&)fc8@]D9*n[a`G@3--mPoPP1`7T(`kk\rl#itD^]?hIYA)C -J%,gkV/tL`n%S/5>X4s?j)=orjAJtgT$2FiH0,:"J$L.`hrfo'9:]?RZgd,MBK2i^ -,GZD`LV8m4.bc:f6&Auir0FQd#.9!n'+$KQ'7m&.EgC'6$b0"!,^fJR(afMAPVKk8 --_L"jhLksVU&1P-#XI)GBJLUCbBXKIH\LAL9Ar4gfGZ[7U)Ouf"D2STr+kOhfV.HU -.to.N%;u)jksgVYId)hak9UF9ri:,e<3mQLaVs4:@T(g#1h[!\JjHr31iMF0f1@T/ -*N%7ddW3ZAi8k.O\h:qhN2NHLOUV64"UY.tF64so$A(GOa:@&"F/f!2i!'P"8RfXh -eXZ+uI#o/UH*#Gd2#6a4=-<=&3I8$P'pqK>K^*b>nHm>pg@)\G>[Kp!]b)Wj_][<8 -[Y4m=6H7GlL=u2<.u>0D`sle>(XYg$6?b$mdR2a( -9[X;A,tXLZ7>g)p6(IDXC_08*C8Hrgl;Q:"?8g5$^Q;iQs'D5D+#KlfU.A@bM]er: -%+er4*(1#&XW5ab^4Luk2f>b$_EJX$pot?ncY@@Se1iNpE -TbG'%kaCplDsauJ?fnh%!m'Re(gI,4K>!E:^D%a*'_>m"m):1^m'2YObf%u,Ta$+F -;iV'f)5/,VX>rNUXC?e./`iQ_b_tn/HN(8Jjp`Q(Y%/`X -oZHljU^B$dN=2.f5mCKm9\\j8^$h8(U%]jZ?_"'42s>Z9=Z68*BAk^9oWWV`T@Jb5 -gIaMrOmdiSN_Yol-2=F/hqe'iMYa"TI=q.3;A6mG2Kk1ae3mDp*rb:C6Sm]Jq\\p< -+JGL&63BduWS4jI9q1NtgYPrtI(eatoop9oP'=J(mU+!PMo1l&Ig#-eDVH60XM8^k+*hRZ'743u()G;MLVfVDEC:AD>m5(.;bMsA&r-d.+.Pe%o*jgYM95F.dI-Jq00!a.%7c -M'ob5"o.SoBOB2KFnMY<>A[HlC:C(\I/*m#@TdBNLu@^PZe/l9&>.@G1XW_6Z:os`#HG: -:3c0:g$.n:/2b(+3R%$CN6-*L7AJb()U;S9A3Vr.)R5AY2%Ob!dI6\GY2'Xe$_n8l -lV<+?P].2l8AiMmnIA75Cki>5DStV8M$,M/Mn2O&M1SZ94B+jm5@!Wl;GVT@0 -GjfZ)4;^,Iem!eo,)157c5\3^V7A,sQB^F/*;R)Ig#/',a]^'HZIVHSH;-GBIYN\1ZI -E1R(3]mc+1;IB]%FHKE56Hl.@jO.1e\XA&)&6MULYd3ZG?1VWm`M<$iZuG23GDa): -a&5Y2onim_\2o`R@ho,U`ok.ikRlIG>@>$_=U;R)-cm\CM9H@/aFmQa2q/hE#?@f7 -D.l/t*mg@Mp?Uud$UooC/9HpMD&/#bpmq0=]7NbpKa9Sr]Ka"k<)Xi,U*:n2mTntr -(^YQq+_>d6VuM"0>Y8e5Tk0KXH%TPN5<;t]'IN<\UI-90]DUL)#(h#mckLP-?$ -\>?t*TnL8YI!"bb`qt5]C&;S&l5O[)5Nom\ZPj8 endstream endobj 56 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F10 16 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 58 0 obj << /Length 6879 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;WjATe;fH33N92Xla(Ja_m?fDR:(QBJl=g6Pj-LgX*Ba78_oi^\T[% -)nHt"&m]DLWUp.\msKV.o\JCbU#bS2LsjKc8ojj+UL?P@SnUL9ejk"56Z.t!qo ->d[(IQK-3n5.S(iS37iDIW=2,1YIpk6b7&gO8cdAlRPk<'kMfFn&griPZF_I( -B/e0jT(GZ6W5j`FO]aQIJ7c@!b\LI2q@Z4k'[8G7Q%J)M&$XNP'Wh*IJ$dZhDJ'mG -&JH_lKELnVHsMi.?BO84c@4VeX5I;lC+E@Bf_XXk\ZJiq2qogXc'XpQ.N"5TiZQ,j --S_bfoR5I1Q+usUMbIoca=5(;hPhTK0K2Rj)\n#ZReinr._;oOVS(6MCcQOt3o^-? ->]eNVJ\86-qM5n6o.&=$07Q$I&]@P'Yq4n5PF"8ujJ@'>A1fld^<$5]D#n^92E8tb -UlCm)c@o!eM,^l5G?NL779m*s9"-f(=62AB`rbtuDF@Qg]Q#SiC-'Le&^DAp' -ZH,ngl)5",Ilil6Ahk2]^,)[4.O#k^o5<4r.B_#Mj/Z9/[1-NL\1M?edbO8(mH6da -3`BW'1gu&dD9r^9[$itqI#LD=%RinK4IaJ'!.[C7#Xg6!fN+#s.p$rVAU..Kg=k:Z -!eh&l.-bSK=.^"j-$dL"JhW(YN,e!",\/H8nQpaPm!o7DFN[T_/XB(e=dfmHWc;UA -`QNXN]idZ-)<1SW?i+n4WQ_H7)7%dfRkHlb6#UEI33$dB;`;Y"@@Jg.!anOG/gLTN?O7+Xl=P@WEM)/Jm:-Z>R:k -41QHR.$MB'PX25]#[9kf]Y6#@S)[GEGpWN*PVIQOWH+R[5R;4*_e)@d&HtBMRAS$& -8-*"D80YYZVFV&EWbBo -R3gbs.[7X:(b'h;$:-T:6^t0JcDa+Z!=sT$$;Kasf=m -:894?0ohFe7.(LmRRk1L9GS)X?OkQ"pOpXaGu3uhKS`WLlnh%'qBH6$G'^BmEs5hVWA/NrTHdk=,Pa/#C$0DO\>_;(ZGGf@/rP%nqL,?Of -I?H+!jr;_r"iK8gKM/--$1W[3&Q/bQMu\f,8/XnD^t3P0_8)dk-lt,"R^Vi*'cUZr -?u.@09F3#&i4hRF-.;Cb!)KHK(LX6OQ6tB11H*!X?\#,aTK/*DBq#q@]Q;pE^WDmkt -^r5&LR+c*V`-Jl43XA?&eW@sKZR1%@3Y.`bER_(7,?oqc+cfi1XB77RO2K?)TE+jD -R2\gGrj!+@B*9J,(,2]lL*IB%3[*[7(F%sTa>W;h;Bds3o9>dZ)F4V8U(MhugE)-a -.dPj1JN$:>GtjYlHUFCb""hJOf%cT^cqoe0#tfVq5gToNbR[HF&Q5u9"h+\FO+SJT -oPe)B>l170M[/7!9i\dL#q0Ok?YZOu;TOp,5k#_\E(s9X-?TfNXbe0s1VU@Pa.$#S5T/ce.dgaEI8fe8_ -ahPpK5B=&%enC?mU'fX"L;g9M&`(;5%Dn -IIhMRpK1G->)*L\A`)'"*#k?p'@g,^'DptQ?B@VuE>T-cY=rbQc>?rJ$cWZn(c4qH -El3S1GlAJ8;3N/ -!eVU*;;;FOjk@]<\T_F::cll;M)Nd:(V-ohVo>Pe1MUR1;N\_RWq,0n7`qV94Rgu; -Fr^8sG]m;kC^/'0QH%%Vq!k8mV-#Y4DQ00VR&*lDa@\(e^SbF=K&K;f@#c'`&bl^a%::I8QPsEolSh]R2ig --RR'"(QCM@2eMZL@u,t:m41$"Wo+LCgBYh52LK?Q2A?0=a1',gFQsn2UTjQliN%tpB.5o1!J?KI.7/!1p&X6^]^D*2d>S!4i -iT(Ha@6DTi2i\=fi!0LU@e5)tX(Ab[jGJCPrr\V[`$SS>ZFIuMOTCUF5rULH_$$uT -6-HX[$q2WiA[h7'3VQR>7+.7^G#hmhZX1,d4cedsV2AU%Ak.]b>p:KX^>e5,Ip!rq -Pri(gO!>/AG9jKUC&gOYq[o2Q\Zh..f6HT$SkC;l_Xd]iF(saJkhXPg!iF0u/s%jF -LaXL">h$\9YN7HH`Za#No%t_\c5.UZ:;m@U&Lge2AF*&QZ]dVh^B[/.DBt# -Zt9oa&\pX9ZTeW*9(QEl1@K5)bE@?,S#>P#><3E'V=".t$/tb'/R&aq?k)EDT_>X4`7m>%uFj:g!b9r\$H*1\"P\!$M=W$!d#^UVhMCN`%JIpKS\!js -;XILZrD97/],"2mDk8IAh4edaL4\AJH(/.nh8Whl0tN?M$>]EW=uL])&199U[fN$B -J@$r2!C?eP"A)K5KM`V2IEl4H^^T@t36DggU4@csXn[;t96kCgE4crH!;f+oC_:7K -_@dmWGZZO\Ym%+eGG5l`EE!\,?.$bY/2;J143U7+4^?/ZS?tj21Go]O3abDR[[Ye) -'#k*8UJm:OiST-7!A(&q>akI6'8n/7a2ufPk9Wuern93W06?1UO'UnL;HT'hg>TTZ0%F*7KJj.dY%$$_I'c*e[DXoT,5jsB]aTlAYENgl-8A:mmgh,$ko]78L#+Je7aCF;r<_SP%%#`DbEj`Y;hY:#R4@\G5U9iA6Bb9d&s-Vh -WddZIJMm[X^d=C$]f,XUN(u\th#ZFlm^fGc"=3uEF"7M!jC*Icup -8OSTkGs`*0A./b$_:R$0#A,)GDULOF;e7ZFKki]=?X/Ocg>X>?55Hutbo>0.jM5I) -,(!r`1PQMU0/&>JGQ%q=_aBg='i7J1-X0h2IYR7>r%cmLjM=J^CZf]VH394Z7sj'p -WY>=Fq#e5la]dg3Dc$d@"C/D)"9;*6$cakNSHrkm>I2Ek5UL_NECcMX4L4/uARVQU -UIC5_qV.0tK!5<**eXNgPDD;VLQQ -U#7`7/!KNqn-5.R#peCNik^*8JfCE_YUpi)NPl+M;\L>ATg$]pFd.B+>Wt -H4X-12#HL9)A$Rg.@KRekjuS,k_J`.o%"Vd,B#['(7L`N3#;`(YJgSpiXY'u>D/['G!f6B<93-h -ec9XU':E86?b1S]W*)M$f'AR)dU.D]4@A0N]#q/M8)(_?3gK*(XYan+UCCsci'JTR7isoPmQZCt+#;kP["5^=/b<)BqO -$a&`mk950=>$A:VUAarD2:\s+2VW+L4m]W9A&QMO-0;/^DJR1pNf2p;4'oeJK:%rO -TMb;IaCY&;RWoe'p-oEF.YXF7R&B.tT^a[JerKpJ?s;bA^>4Eu!kh=Z0@UN(sf,^KN'd$i*rI5Ml= -4go>kq.$iFrg)Q@J8*?U4D%+o;mRlGOeAf[\CpP#S=YX5DBgo"@^M8=<`-J^L-hEj>oJV&Dncc]^4G01V2mioK#Q:p8*l -J:HkFq>pBR5Q`oIYW>Ak7/WCCn\!CN'3"JQLHK%%7[D@d2 -Vn^Dj;39%'-\7Rti5hl&:/1/T9Q= -'Q9_Ed-m[9l0OJYRa/iLUPp&dF>,fmLPX:?I"%4,\]udi@0:>EHsj\j:b"\tPpO -&K\DSSLPn1O3pu>4REG#e[3J[#bL0;3I1,nik]c"AE&@SN_cQ1,&=!+23L8paJZ=" -]'S$3~> endstream endobj 59 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F8 10 0 R /F10 16 0 R /F11 17 0 R /F12 18 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 61 0 obj << /Length 10989 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;X]TgMRtP&cDe16R,C%QlPk6HPX\Tf@^UL"9B92^]l>S:h34h%6:eNUp^'rSA#Cl -1F.a=P/)TA?)kNJlC:eNI\)SVr[J0ue,'_eH!qSapm40J:5ft!O^u$EdJ+[On'Tm> -r6EC$G!pDo$:1Q\;>,H;D9IX6aj'GgS1"mq.c)/$:JBDGG)esA^-%F]G;53L'U^bW -/HVi"+(_))n*J/i18hRrIl\B#;l[^>\^A2d`I)gJ@&K6)"Y=S?Kfm -/*TZ?n@!5Kd`-C*V*#`Tf- -[l.Kj!rc^_$I-JZ[fB`\%(h$4P[0^&rE:ulmiRU/,Y*=:3:Z0@pQR?sICFP[-@ns] -'oB?)C(ZJp8DkMB!UPO&]Rg$Dk!m=GEZ:C[hsP,-Y\1Z+mq02["#0j#+OoGX>Wi[t -?*u3OT-E*@R?#"B(b*QtBR^IGgu)'S;uiqOm+$"GM,^7B^#Ceq^-^Z6/lG4?)(tb; -ST+[I_Wr>e,<1R#!H"f%3]AcKHk;%pOE6%,YY`r1?34NIaIiR8F]%kA%Lm)hW=]H[ -f-gqB"_8X["sprP"\Ne^;H&dbAetap]SQ'uG0>4#"_P;J -j'Vb%=`2hthZo#)FT^IiA@O>./kZ\+Uhn*2I7:r#2Har6qj#no%8KIR-C0=Y/P([b -iLc1,DK(g*ZU)OW>MFXAp2L@%g`e\])i7bSL<&T5E7ljKFj1,@if&'h -V]$YMUhLMsBiGCPH/:rD5a&(tllJN).Qfo9OE91@J/A[g:o!H/.DDp@qnA-9(m]Pe -dE2LpTZAGRRGq,A!j+9(L8r+m`cN>Xb$=UpAi6M[]F_UdXZNl22=[@WTreNGGm$FiFERL*9o\C`6gj&VDO+3&OIqmLXnmJR'JH6;Y$V/s+H0bDomC8 -C3mq=q90_cn5rauT8MG&>K4O(TI(6BS3!9Ip$D6)$p/3-cUPU$1=8mGG]tqunE^ou -lRjI==u.=Cc!/-k8u.dCOK,m[0VNX7d"7i69GSUPJ`rn;Z(2#Hs7p;/)^Z+;UJs&Q -5Ts\feXsi?9H&A!ILWK%UJR*BkAgLVEi"-&_ -#i>+!nbb?%KV>4H[>tNHSTE:#@]J/gDe<=.WsPfJ=F,$H]/C5*aYM\k1"T!Qn3OGT -dJ9lt<$e2b;#*,qlDD_GFQogC&paT9;@3B\ZgcfL>O6.>f$DD2a]0_`^7aM80%t2# -N*fq?VuC]e=<@k_)B]V`c;B\O_nD6E.a(8,idfEY)(OpYntcajBcUeqS.'+k)O -/E][3G-_N^ARG0KZ6cj2mrX$!>Ik`fb5LQQ\lE0Yd*r.TSh6BG"Z+0L&: -DWTH*p"h+rT\``\r]AHOpTpc_HQoqNo@7Z^E&Bh90tH&*Ws-%\,2<'D%OZtlEqL-< -G.aC#k$^rZ'bqelos;VLJ%$nINPFLXmH/')-7O?_HeFah -=6a6p.*F=g]S/3fPBg\nOdT$reZg=)fZ2Xu2NM(dNNCCH]5@?-HGA1!hc<<7&qV5? -=A=)AC*4q#8Rg`\'8XoM!T&hfb56PXB'bZNi$qgSXsA12oJ?&k8tjbk2"(^_hE: -kei[%2Cagl8.&QHS9U!;E,8AQm'u/dc-CsZ0=ler=+F>#e/cm8T+F@4D(IG7@9BQH -1.*0#_g>0Sk`go?iu=8aN8.ghg<9ZG^Dfj+i\3pWVK*:?*,Mr8'4&s8)'+30/_nY% -l`usF`eU+ID[;)u[pCFLkju2o9#&`"b'J`r>>)O',N3bUF2-7Si] -^;&]1@ld96:Ha;%=K]XtRKBOas.aeU>kP>O^,4Qe`-JY[@bk_49_fg76g(\&Z">]g -lD0Ea^=>K1UEHT#'(7T&MB9WfD3WkFU_`b8;O/1YY&`:^05.SF]>H&2@bDuTYe7^& -%H+o:Eii/VIRI[p7'rtXok(I93HBZ*,rOjom8U;*7@s__5iBKjOj>7@7OMaSKOfc."'VAFo2k35]m -1^KhTFhY<(oW$Q*rU`^#Jid%Kbu?Okj(k-7<&sD)^bfB9W29T8(H\(Y$3Tt2Tj0jY -7.Fdf,ji)%"HZMYO%@B?p\u1#8e4?HN6"p)ZX>:iehfsV0UZ-N;lgN.92,N#K=8Lo -BiCaZ!H+.H/gFuD/G'Tp%Z99ULj?!Sa1'@-/\Yu(701s>Sh4YoIEb>VVp6S! -FF;Kd/KZLT-UjPq@H>GsgrS:;.;&f^OX]#IZTt^#]bn:F-G;Oe-`ulD]u"oR1=LM- -7;('RN*7]1!'Ubn[9,5L=QY8m_IjD47YBW_pdEPH]X)g2nP2Cj;S%VF.`SS0Ccga, -Q+';-SjIa\Gkbneb2'tE/hsN0.!Tp-'4`+bBoh0N?gF3f[)A5a3HO^K-PL'UO405, -ep#l=[3DK5l#!/7ioY!B`,)5mX3G83BY-r -ZNICUeusB&J`3;'#a;_-5327RXY[/V+RnsISYVogkIt3U3=24L;qJF;@r$$"pJ,00 -H!PShV1fG%aCM[WeD+sPB5Bbd&:8%bZYnC,:1qs:Y@qUM?<80=q5()#S2-K*WPSJdqo#ih&l@8qpkNC -e?/J#pJ8#W2H+n1RF'!M-8_YimNep8,iNM&%prC.APAGc#b/O]Y=gKD' -T@'nCqVa'$iJ.(4irsduXA[lGVW=okGO%V-fUQb8:nh5'iujbg81f)U'#QUiHc?Ii -1_ja6X.]t39iHAVlViiZp`edqf(nB^Jl^!)9j4OkaV2`MqPj -H[UCYfcME5cNk0Be^O_Ic=KB6*6QFX\nm05eCV]0*]F"-/FR"ks1Qhkm)5:FO<*7( -aDr!49$iKX=!#'cH:GHDO^i8'HjW#(+GUq%&)':g/]"#%KZ@fnof-E;LI!M4a5eYS -QR9UHbPTJ,dD:/G?R3Ks7(jn4&ke]$>gfJF?(Scnq80GPkj&IbKMIQuogo*/aZ(o3 -+b`T8-Z.'Om^"4'_cHHlets_!+('.%@tZpRdUb`N>"X9U=u`#:^=B9jIb.!I%jrho -FsQiJ!u:8r!+)aV\5Rp5o -Jlc!07D'fE(3Ns!.mea=V]9u9J=p-fNi%%iLa;7p>#D4udWI2"q2cEDbO#cIo_X#t -A>957Xq`=MMF -WLZgT;joTsNEWeT$R-RM/-^;r&%mLU"VRr[MZ(3%"re1+KiMtAlRl`XK$CdI0>rVU -SmaJ`OF!>bhdsQOVmaf-i.P<1mpRoO4cn&\[2D*PAo(82_d6#A>i!j;Y.`Jm: -f6+q@8m&M8O`MBTjY^Nc#9HhF]H2'*QA)q(X0`R,P/hn14l7.9do2BLNa, -c``,+UgqW?kt-=Xp%\X?r1NheVcCZ -:_ZcBj;^YrI#4-]*0iO2:ALq-E/,--&=#mh.o5)$L6<'a"Te'J"MF3ip!6tUN.B`f -qr[C`X0qcm_#&9K@2#C@dV;V"DXdE:d4%QrjmnW)+kj9Q_l%a(qf/r(Cd2c$X:O'@ -h4EI"qL1Zshb@hqj>HFeNeg\T@4foZiqOCQ:%VFOT6]B_FWE]`[*I;\QrbO&;?b]$ -TF@"L'?UIUJ(bkqY"tLJ%ckSW*EpJnpDYH/TCHbGP,[FNaSmL^@/>nIl&A(KXb$Sa -JK2'%3lb#6VH!e1&gYQO;nb`l+LZfCB -H.+6M;!EW@MXf:_RCLR7AtN.kW+[3fE"Kn)93ajl7cXFu@4=V%`4NE\Wpb8VG%6BD -e32o$J..(5[GD@7rQ+YGhBMC`!@V#d+sLW0Q)]XRA1"%-MLpE8*h)K1frXr*RF&]c -*k.cUB8quH\g]+*]TlVWb,.D;[+uqS7[OBEi#EpTIS,+Y8-Y$Gh8Q*L71$57;34[! -PBnU9En9!unLO(^V"Z4,T\'YobTG]*E_i@9(20b9!WXH4.-N)*'t-(NZ#5gA-/Lmq -3JD1)S"d[P>+&Olm+E&SJEbUjGk9^8V;dY3kKSqtY'3Thf$ma)W+Yn( -IUqX>!BJ\>)&-'fb#P5]<]B@A?T(,5Y1r*B&)T8Fd^*PtCOXt'2NR2$=Y/YO`TD&C -R0QiW(*MnIKHhX_oG3%T[Djn'_Z\bM?/7[VXCFNsX7uk2G$3+:LgeY2-M/V,e]NM7 -68&`U"kSRfA6RuaUn!,[`Xd#$,+eEo7QWVV");_KqK,fCc7;&)Kp9^(TA3lJp`4R0ZB+>D6lt82[?$#/Z=#[@kELj^aU!"MH,=`)8+I/a`JcI(D\5VcR3a*^>`ILe_ -QaX72P[<_D[ZleeS\RXuEAV-Lb=^(W;Du-6pk*I.+u[2SZ= -X0h@9JVJ!i^,,?CHE@?C]"$?q.5hi.X$pVK5*ucOp$UiXUh^`.4"n`4m5HXCEI@ZL ->l1p/i:KV2`0@ -3L&Jo)-*S2alF$+q-_gmC4,E$c3L -2GV33D?>73/K'`k`.T='[[V?dEAqAJ(C-(4b'DW:pk_!n?rl`:?rRr],dYL&'0'@< -1Ir?W1u%OLE5@\MJ27chMI>;[$Zd>+aT4uYk7XP07P>+i9%QjG0OY7roB[Rl3F.\_ -Lk9^UAr*tWL24?elsL)4#G]ITc<;731hl5Ua0m:Q)c6:]r?eaZ_`]tP?>a%-W@m4` -rTI3u>3\%QVg7W^.a;RkPUrQ.TBa\mA$pa-m`O\"/D$4^/@2mX;@!5K;Zr/ECk>J" -RN`q/*p3$K/Wl2^A`1,t@7+RN&B)8GhdVC4-]>enN2]3b9Q>8IE>-L$'uSj&#DT/Z -8i2u0jnLZ4%a;-Jp^gt.-q,`TOD:U+IK%hqW53.dJ$L8[SMjs'd@tT:-%i3gDo@?0 -iS"GrrM*p)4R#^KKJgjk=M:WHD$FY"Pfp-Z2QNk5j:pJ+5mJg'brGcnmS;>n8Ws\e -?_Y++Xishr\+6r\QJ&RVYLY#Ap2!U0^[VkU^F^E]o@ql9Rc24FYBL`W:Z@U3oDn0pS4oh2j+!)S>K3Bmm">j+?o -^E$)Qkm_'sPH=X+-@0?(cLECU4BTWg;bXWU?fUW*KK)T7=QNpD)#S -lq3qU*HmXBVKcJ[9UX$]jje;&qW`"6;I<3J\A?m/\\g.O:KpM<;^mNpHai85pgo6m -6Uhm?&I+oqo-!sDlZ;\(>SV.@2jSP1^@9WSY>t1]]bIMQ\L#Zrf1=R=D\p9Ml(URO -S?:c(\"sIu.p'ctp"*.=7fiZZ5?mKUUU4_/@CDt+fa;(m8aG.iUaOad/"gL4.BKkp -A%DAh`[dKN`_N#;pA8oU>Sp44IPHo4qo6:6a$JRm$SkN@69G067,C0)-t>Lep6akC -,(!*_o_&Z4S-*9HA'=S_?rA:jLG-*bPXUMKXg0244X1Jj'@b:ETEa474j?0HYsDnm --^qi;bG=)n8i=W+VIKV -f^Q"\M*j-`HIcg,jo/ek"jJ.1s%L" -q(6&@.5NM.9&roO\:8NN'('B8Ej -_aEQsUm7GDf5o/5c=cUL"gj0'k8]?u6@9$b&Ah8"JBN#, -WdmAH?(kkOH5#]*d4U5O@8j2R]RP]f_(aA1K8W9u&iCKEoc3O!kA"%nM4[[70'D^Q -$mLHb&\55!OR.qrE&>bOf/fB7`)&jTb<4WWnDc7Dk<3<:/qI*7QbCbn2`=,(l-hL[ -!b]h&D#=jqd3m1!/jYonk:MKrFIY`qJcINYYWg:CB"3HZXpQj_3aQsB5!<,-7)5H_ -_m5>;K3g0:!12 -MY`/tmj7!X3r.34=5i/oj,_$\J#6qP.q^POcQb:P0kkmVCs;ghd:>a,^r1g7Bks#( -d90mRU&f5&H?UG?mNb\/gl)bphPBCG\?O#eIB&g]NJt/Yne;Rr:BfMqK?,%=$$>=] -$9&+;i+W%<">^$d9DQH\F?%h@.&D?tDF[Gj&HQScdN"%h)ToqG'srq^VpS@De`K]+ -gM(M1')Y!`aSu7$']mDrP*;SoYR1:h*buPQr]K,+^a5Lk4fmjUhmDM:P-D?P.8JLa -F:JcemHF+[f=`%q(c5p:_>3;Pt5#OX:XY;Y,^/,rQ+oTDnj:XL,aMWM/!^e(]O#*P>^jVBIi1F0Cr -?EuTf7lfe,UQc%AMX1S^5]WNm&.Cr4oS"Ql`\'GZ>t&,JrMf$NmH^gRqpR)DTbu,f -=MuFr%IMP6&uqUp"&8"Kp-3%g8I%XP6Q58W$KL_q#k=+eJ5+T(b-]DkL`AFM>:26= -9(S6gTT%!XmTfp[e#g]=s$[cIXTdAP5T3l!XqHc=,TS:cR7)L(C@TU$[9#@N)U%p6 -BOc8gm11;AE@F)h#9pPMe/AC9G'f3mE]mVRYaX-MS8`)E4-Rgbk#=NfB:dp;1`&TN -"cpra]0K"^6P;5E3L3he?_Z.We5&lPVJ)ur1+Ur!XOqFV72>i/`6Ku9&*;WE#Qg(@ -qWmPM^Xqf"NZX-[R*'3*r4I>o?#gSOrbSq\^$5sQem(N5pjC0+o] -4VIcl+r&7[N')'+435ObiH\'_2<^fS#4.C+\u3[\h%&RKp[SmPI6W$8@LCR@g\Z@C -qbE_`ge(%5dd@V(AY\d`]fUZIJ,n[)6YCXKerO`g1Mj*(">eI8__h2M"Sbgu-Wu\n -da?!";^P5"'jN3K#4`nY-II,W?u#6f:g?W3S&"`h0oSX-;o@a>$*TS7/fD[@*<>Ch -KFHsE=5YRsYfHi_;R382GldRT+=Sq>eU -9n@J-s1pPh -X2SChKS]NB7,@3nhPocQjYui[DqQ~> endstream endobj 62 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F6 8 0 R /F7 9 0 R /F8 10 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 64 0 obj << /Length 8561 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;YPlgMRtP&cDe16g&;sCM*Hm8`0iWSHN)3%)`a>!-TF'eAu*",&Ig(M1;-rh+c1K -=7>QECtK^;];r!5:7XH=j3?Y?^F1G]c.tdD.X8chroQ^(RBro6Rb^)$Gl!-m1ATn4 -rtOg@45gp@>-aVHT'u_):Qsf#^0tk7?-I5jfp?;r?[leCj'p]GfmM=$Rs$ZYIqHrH -rV5KJ\Rr16?/>Dp5.I-o7W)MIPOc<5baD:]j9$Dh]7bo[E^0PM\H"e&f'g^kcEF-N3B -jSaknRQ]KQVYBGV@JBH(L=Oc'\penV>lEjJVb*lObTL%[[OA@uUDXZL)%h6OZYl7: -<^/.)qK>fB^WkHs^0\'Yh)8eh>0i=h-G>r*Z"X&[XG*]oDlkObcN`--f8DPjJs.gA -W.$OY0!DA,+pFR9(b/s.a^3a[53RB$EITh5qM=Uo<@7-6IcpSdd788S/15O^].,G' -:,0aU!q\@ef?DRV1^#cG9*3^.(qW#i9YO7)S$C(SXd1@U7ZmF]fhDCak*$md-AB/& -UsAs(o$/I'dMuXm^"X=k#"c4f9?Z>t_:XHtL(I!2("AgP,pV,*U\,a*A#"TiWb6EU -MS%EAnigHlXfRT,?-\LTGgT%"(e%W>.]Y@'MhgqN8P:f=e -!/d:S%LaZU=VM/CGW;4GDrs$:"AhLZmYm`(OT:9SNBO$a;'Z\g`.=4e?9=2l+ao(8 -G;<-(mni)*m7EWei\\>A,S#-cHkTu4LRr:J)\G;e7Y/53/j5Ds?lo\I!i!hR!I;]k ->`8Eqjugn(`.M"V4eR'Dcc6Re\/pi\E8.Pl>:tf=X+D?s<7hbO-?q/qGgYMHlu'K> -))"QW>bVn+LBI5"K^DSrnZ"$7(`c[;= -B2=@45"[1d.Wqt@;bb,Y`t>g+XP7TS<.UK`+2Q22=I/ZB+_a^'-+p"a]]baT"9FAZ -*PV$G1IHg46*!"c2&FVd"B2s5kq2RX;HrC^UmJ"un,\".g?STo4(uPQ1?,#?3#m'S -A[o+H5BnPu9)OTK=/A0tM\e+Gj3()/S=%k+jc=CZNj1t[2?*K)/3T&iIF1(>8IFIP -s.^uH%6qEP-ZU+a"qHXN@[3<*I:6)U$5()Y`)Lj=85UG4/X;/JjC6ll6KG)_[Q@A- -a5)X:d'd&=oFR19/\!cZ!KE35%fn=#RJdaBT66t$#;D_8c2pgBn7h4#G:2-&0!@`T -`-'f0rpVHC%YF9?qPmAEK6:e%[QQ#-Ko,B-@l#aEaoYqJr`NWH=sZnp/kFBtZVM)g -Y!VmCD4IG'$T;9QIT`im3j=j1.gGJG+G3YJnP&Ih)%UG'BYU_9A]'gl`N&k=VR,$S -\\2Scc"\flJgZCa?)W9T,tR\9)LO3dEeDV,HJMWPahp"^oH8D/Jh6`M`q'588jh=K -H9m3P?#P1tVasc*WRRL7h%85T%8+Yak=I>>5*K'9KNZW.K\s<[IRhTo-b$#,l97iZ -ToSp1'ZhNaJBBZ?@B`]Jgkc'To!1*3cad.t9;b?#on)p:^6(NWDT(C4mH%s+WXlJJ -ZRRXp&8\II@ZACV -WVaJ:=`N^iDbo:;G9@Q/jVPrkDE@X([=@%4/V',pZ,q88[L:'bIb?-QU(pI@;=MrCu -Nj(?20Bg<,[FloYP6Tj$$-PU2f\_ms$k8H=BUdd/N.b"uEu`S-*o;pR43nj8&Q18# -Csl3iJ8P0(Ho4+O@_PHuNQ$2&4Bi[E.0GNlB$nM,"^B?,4-LRA8V6S%YlQWue=J]d -8A^f&EmYfWT)s@uUb6($NOh$lkS+M&!\,pf$Ml"m3IjhG?K3(#l2Vo7VQgC%8D$0O -dc0W-s/-.eOFTZg3Rd^i6!NeIbu-$qXj1uu7qb7k4NZ;`Sj7.[.>H=fJhb"j[0\.Y -)sf]%N7fJC]e)d]'j2>TYq<>+4hZW`X!,FPXcEc5(N8*8kH2lugh[Na_]b,)%DV!. -bH4RQJ=uCV3mDj2UoL9>*-f121g-a5O2X,Kj^(ko -D08?@OfF!MlB+E/jaqTsGe&YS/\CT/.ptCCFO[E`531NXUk*2l2>U@.`)@r`l9r'2 -KZO'93-:uuL^AHea[U+2e.U@B1)qI#psYOBHBCJ^,lhtUKD*LCdqibaDl+?%GU9l: -r@V#QfOp_=2!&G,2Nn[BKNfY`Q_SUgAYENYRK6DI`t/gG+GAKpF'?t+h?.'SlrBK= -&_+&&=F/)uNi"+QH;J:p'frjamlr:so0Pc&.PSUpkq/u>,IT72?4+QEH]Hr4oOG#3 -DsbgM\[?&m32$Op8#dNG,kM-bcnlQ(fmc@s.pW>2`9eC*XHb6UjdCFM3^f@U_>?6d -(uj+bKD"s^R17.R@_NCPVE/DmLHN@PP*@=%i%QgI=7_'u72aO"HbR-VPfVI/7%Vkl -8YM:Ag!M5*Fq!Y$6uT>?,`ZD[C?g!9Y_de'\RhBkCq?"CZeK)K0#I$gbB?=]bGKF: -Y[M)9<#u:]9^hV6;P+2Z!gtTlbVK"EOQ/++GfLUJ-Pk'^+5BqDRg0^)aM?K\lu'(= -:\V3Jhj\1E[najL0qk+ne1A9I\W(9neH$_51pNXu^9/E4d<[ZSbg43nkVt#)N/hd, -a>`-EDuek+#=8ugq#6Ds]ZS]VMGGr>D1h33`e:ed:D`(+Jf$=npb(U&g&N/;F'5Eg -BN3QE[ud"7lm:F'08C0OHoTPiqR7@nPC<%a&u_g$Vo=R8nd8k5*sGBN$m4kqc`1I` -T,R`ukBa^+frUb\WC_ZG"F+>X-0\r0UD$MC'O)!Rm.9RJ1T,gDNbH:&E^tIqN+.k( -GP=>UX)5=c,7At:quc[fhR*[`]fU`dK#%N)"_'<,76(NDaU -j3mh?.KldH),D@Do\[Meg9+g`nZUsDmoAm;4rGA@,/8r4[3^GD3aDN#n'U+^3\,KU -\.l')'f!N/gEFp<4Fuo2BVqg_T7PA_Ds(B3WHpn??om%rEgc3LGNH2[?ECoDROn,m -CtVI^aUAL[2`"J+'<*>(^`5V$UV#a.P.H;AI("9gnijo%G9=T8C)hWV2I1iK0kN@h -`PcXmfmj/a]KsR/18^gp6M#M-DjpLP\7e6FFV%g3e%M#48Ra"+@UAR9@ZP4o=L -?r=#&p+_:6$66#"C_`3(Z6]@["n4drl>[Ghi]$jN4TE:3E.7>Uf2O5no)8*78TUAqHfm -"-\Pi, -_;6k\>"58VX&'sH(H#IOdpc<18UWj2#'"opS>",gLd%9ZDte!OGb*YLM8$It@S1HWg0N"P&3A -aGZkG@.">T2rS?+5H/LmH`6HIqnn@XC^A`+mCS])a0^PM6N:+B>J!OL0@e-4@)].t -5%h`NUp$3cXQ[d[L$1=0?0jhG2]qg@>P*?"M9m#)W,QGXWM4^P,gO<\'7i=J:54eI -m.!Vr*#CM7.Md3K_J/g8%>E"VQEAen$B@D2bCcV:DTDIl<\i@'C5Pq@q3bZ/.`k%q -6B1cq&>u>*E#.Rihec`31!mm2&TA!cY4D$igjM[+L=W'eJm:S['0<*-E_4P-q]9MX0Im[bB%lhMJ-1)qoRldG33NcZYS3?!gT;I._@ -/7g]Rq8]J(3tM8Jc)lg][mm9a_S(B_l^+JNXGZ/dB"]kKDlYP*dVdF6PQp,ca@,NN --5.2I+8*Q4CS1MSl_[u(n*BqXfb_j.nZc45o9kBc@WP8YTH8i;c.Df#9?LYo?5N"p -CV*_c1\b5lpW^!LI9GJB\E9^(qb:)Ee6mV`)uTg%Q`E3\QG$qiss-R5l0g_!Fq_^i&7A6RKG$BJu+G)gco2/ -!>\Dgs,-l4;kU^RFHQJ6Ne=CMWV^J'fAB]dk9Yh+>(8%3.N:iKZ32![ -SP/L_G^9GN*h1bno`tUKhHl%-5Uio&k$bN/+tm\aQFRS/RBrm%fYC@;g`HgFBCG8] -8sk[R)n3a7U1[:JQ-JJi[nlbHaE4pn+C>\tWpTo?;UUoEOcmH)3Njq:4Bd-mTCi(b)j46Gi3d9=o%m7`4WZ -e\6:,2i-'"EH,n73/#;&>hMn!:8h(R;^i8-"[\(+?Khm#&4Z6p04n(sUt!C?gc(*Z -aK?0SWo%m/[gE^HAp/#gab3aJJ8jn2p>tCQgMDc'@f&91FX\l@`hR8C3e^(+9l!7E -+Ad_d.9Pr$pM\fbiHMD"9'DDIN=gq/1'(Qnn#L%`868OW#^Y.#)hn_Y26u!MfM@-# -7'e4fhnc$ODMr()Do.XFm;'=M^FTpOWq+,D91?'2E^g"V^t&lkMJXP/F!?hOB-g// -Nai[al-u1>^l$%f5Mr*i&%NLi&umgrY)fJ7,UdGk)sU]?SFkYc^h==!4.jd$0$GE7 ->MccX?DE0MrSX0gWa3B85jcVfK>d,P2bRnHM'-gSX2h[S,jp+'K^U"$']aCp4LS%m -dQ]t0qr8\e3=(ili2F3$*l7q0Bqa5;rMNad40)01fmNLuk[Tf`iu4gV$%mRRBFJ&RFT^?koeL -*Y)k]=FcP^%ksXCW.NE>G&),"Su=ae,if0l$SZCj/;YRHQX>K#I-sQG88"oUEeXG$ -ih[S-HrRAh(u8?XhnqF%[d!a/+jYE*&Q]@hD5Q';\RoaK39j8,M.c -Km'KX39Q2Wi<,%@SaYFALPM"LGIiZnbqaQ+ZEYIW$GhEec7gbs<:)1IWSjQ* -T.G>Cd,u32!OCX!Yi2u;8WmoRDBk=/2YJ@XpoZd74YP1$;F*Fppg6ON9S[ji+qW1[ -$3I6fU2h*rrB=\$VBT&pYTgnA>iX:tq?N4o_-Gc%V;!L9al'`Qg$7>0G.i,C-&JM( ->sQ@](GC\`f6P.M=#X%lnE's^s=_u7Aq0% -IFIsR>HP%:PGOYKP*eCd<3&W)^OB+ETdHp_qr-g061O0lO)^T*m\^%ck&9SLO!Rj$ -G(?ijMuM_L8p977J`s<$-j-n#Xs+Ce%$2GVLBM[TkFf8K=@b*:mZo[.qfu0e-*#c? -@UO)J\/4H_FcHBo'Up*D)43OOE(U")IDo-TG[@@TYgTUUs8JF#P!<&f+FKjNFVID2N2QObSNZ@ipp-a7e/(Ch6!u5I@>; -=9Y>kLN_t_E^@^,Cu46^SK?u:MUXc+[21+f;hcNdGu3lj,$IPQas&WDVBcR.NIE+Gie2sd/W?6'3(eJW -88o-"ac;%i#TNK:Gs&Ub6'=%_s&SQBkF4P1@i&/%7d-@>Ase-3'?_fEMCMRqA?<1< -@s'1tGpq0R3QBct*9Z66_+Ha(.p&ui2YB#:f[`I/_NUu>f4&rg?S,M%?I&@K7[3Xd -Po%CYeh#RVX>l"iJjQc>Yr0)f&4<(!kX@H?nGKrT/=,*!;;=C4$d)Wa!/-ONK"W)W -0H$>WV6&o%o)@"-qCN:gefWUE^ELX]onR_UO/P5C03QIjn\s$eGS@g:&KnBcOnj)K -I9\7M)ANR_hgt3!\=>^1XuC^[T;#WjkSDp=8J$>a=*-)<`q@5_$97;=ODW9tn7R2: -Mms-Y64,r"s0e!E6bdB&4ZKl"4q1^IZ<_=Uh0(fV[W(X?.SK1Mb>C`J(.T4A"a5]EmQZPoM6TB)=HW -5&fTM]Jr3We3;^IP/3HEX06>27%fQBe9.mkPbU?ffW:[2h&[H\mrtabr$W=d^]'?H -M,5QZ?83Tg-cI5i_Y_0+B]F+`ZCFGG5RHqK<74k`(CY==^#n;QoOL"4rUWh/G0cb0 -i\Rj9iXNMn]F17OBT?J$h?Tl"C84l@]:iMjFUBoNK&pB1kc\*&-g5"]l2G!.qu\%(/bHh^+H;e!=d-To6"VW"A)]aC>?Em-$\ -?n'1h0Kb=SQo%T)WSfXQ"9H]86#olDP?>gG`o^?N(Q=JlUiPL1A=^Dkf%DQ0_0CPc -;M?n31Aa$nYa4(2qecA]_m$f1h\<]j\_X^kDY_Gj7UUZ);N0iR.g+.kOKj2P]f?)0 -*j9f5-6TlD.3'5*B^o@Ac3[Ren(5HhTG-/:@09S[j"heiS`U*n(Bn+e/12oIff\r"\g!~> endstream endobj 65 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F6 8 0 R /F7 9 0 R /F8 10 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 67 0 obj << /Length 3384 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;Xu\gN)>o&cDe1_rQetO^lU`n@7f:WAs"(bH$Nf>3uD[N[1\t5QuZg.pno)2\:Wf -8p2N.5&daA9_WY$5(3;+jl5Up"C^B^B#,<9/L(GuV5<:lBL.V'Qhs2`hiQ_2?iTKq -,IdWGTS4)7>]-d/6=]\m=FSkFjLQB"aO&eQ]Cr[VrJFS!,IseCH>r1e]m!1X[nX7T -?ef8/kP]h:EMW$EB%Q`oMm'U#\8rIQT,29/\Q+6_)1FU$r2[:VMDAAS63O?[l\DY" -$of&XZ+CpGSGr?2&,ogSkRT@r[<.2KY27`0F*3VYIAG`bdAS\-*f[19<68P?h%23i -M@MNqUA,G2qSp]2G[Cb.Tql]nWqNt?& -jkIrjO8m#\H`TCU=ON?;_@#i9q=pp3gBAfZ=X[OnC1;jmb)lSsN&2A;G'Gp0bN\p! -4MF<"olP\05/(*S_Xr8(cL3tKhYSd4m.iV6AJ(JYS3JY+"o)E*)-;QYb8"&O=t6fR -FSYki!LfI%=BJ+P,8neT<2?91`k8tJ5Zu$"fmtH=A'l(?Ua2SLE/lnl%@)._aD%G71]".LIB&g=Tc2l^r*r\L_ -!U&!M>cg;b!9RCjndgk6g\/_qU`RHKTn[ -CPE&19SQS;(?_+$=gS>_?'(XP97Udr -]d.ic(Y=FgkJ]/iY3&Id?i2Z%(]M'Wt9;U[2 -hp_6/P^N?ilMV^3n4,9\e%o84-DBNckt++p(#[E"eXF>5R)A1gt% -$hiWOe&>L2auk"kH9D7nC\\>fnhJ$%3_T.QZEYZU)/_I2*KaFkk+\P -%D[dg5U0.h>6T0Lio'Uh:H&%s`&/`aS/pLYCBTQiGa28B;4^uP -(+`>%A*nHo5%H_j%b\3pkPG(ag%s'G'&Sdg_TGm[BM':!&>2a/\(LO-K%h<_js>F-rKIQp&S'TrfV>=01O<<[jfJg\)\ -_RALmf*dr^^.D&cd6a[7.8uN],SQi)c?iS08Js&J\NB_=P`\o^;h>,<%kAl=:`j]n -&XeMRajbqkq0E?k^7KDgA)hQND?bH.#m]gL#OO$40#Jn,s -KBr60#*_PtJ2m:7SlMI8Ff6d,\Ocgceg*t-%8Tt]3MTCCo=Rb,:`JV[#TOT4q1P]8 -3Z>Q2"?^.Dr/)XSQu%ue;NeE9AIsYj`a4aL0gqe!8U!0Z0::*+`f75;AdPft2glti -[3>OmJ,5510mr#2R2;V@5cF[6*BtDBPeU38/(*KO^_$j&nh]N^V('rj&k3,QaH6-= -><(E&T&]_YbR*X<[DNB2Oo-I,4:B*38Gr>Y+UWWSYaqi+'tJ*%*9N)X*7KMPWueU5 -#8+QR[>5fE>Y*3Z+%q`\#8Rn3S$qR:m][RDN!H:;YON9*'18CI'/p+M,`5`.aqsR> -9F+74(OiqGb;N0id`>r[m=Z=D]Gi%-;Z;4CEE(25U8KoIPZa[+`Q\QELt2n"`lI>L44 -P7s"Bq9'(^T+"_^2bn`LG_-SEGu@#<.^Eu^p53pFM.7"4-;87(f,$n7#To;kR\:NK -C&3g`#+U7ZguokB![Q@R;O6nBgI$0jrDm9uoW4BL35>SP+H!OVOCW$"EPf#1=q(GI -P7<0AMkjGQaXhDqdLT[I6RR-FgWtTAf<_.a;"&]O3h;^GU%pNcW4c23GV=AP'G]t. -&ng2<;GQ7f6Wqp9^RfE'pot:p,:rRcocVe!IPiSioShLqg_6M_bi+un+CiGr:>4[O -TaB5tPFJ`2^NOV9d?+!m8V%M*E)'=SPAc.+14##!_2CM8#kWj9;*f3iOm&N%b6C16 -`UIi781tVQ;#TOtQYL_02rE1F2rMMaLbTg"looq+GJrnIIii*E%._d2`ASA;?B^3@L:>P -E1Innd./(T+;bKs~> endstream endobj 68 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F6 8 0 R /F7 9 0 R /F8 10 0 R /F11 17 0 R /F12 18 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 70 0 obj << /Length 7560 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;Xu\gN)&i&cDe1_^&#c,)n;nbQ&1NYkDC<2jLCBQ5)VdIXoM%#VQK4!,,PcT@7j) -5t[C.<3khijZpUTpN6-iIJW>?p?!`b1VjiN1SK&)9:"UF>\_B?B%@5o9"*Bto'hh@ -5'unmDh?dUZ^g3i:i*DT8f,p]`I@M(Hag."7b9FRf7k(ZRgWG@J_uNH?Y>*4.12TO -pjols8qcT;b"LH[/_5s\puS2b>rst;B"n$s].S>*$,s%N[q0!cZV.4_F=VOHH4mGl]I/I]5-+8>J&a;^P(NF.DcP3&sp&DEb#%'iG,s'/7]K$ -D$IG-\&ECB%HHT5Xk_:Y[r+W(*r><2@jCF&^-$5#AM^X(Y2AY*2>sBg-^RhbJIh-]WC%F9MT(tPg!)Qf>2+gY4n1"D'j'd1aI+W(&fEcft6`WV\&"E -`"6P\%'Rf$"r0XqNTD'ub!U`!CR"OQhIJS:e$M5sYNE>0[W7WW/BSf<&Sg9^e]?-d -K+JO\Zg6odleSEZ&_l.O]?N"*G5LujU,ogV"fm!j>.UBOZ&'lYA;ofiu`;jS]hH>'@NLQM#Ze1\Y\:ZHm[NFM!++R_(YkfT)mg'QOlb>LkC< -FmNQ"X))/;.l+m790eq?80^[@>UmO_hE'6DIWA)BMqdJ"&SfVJ_g&N@d$nUu/mV8l -m3B!?RhcaRDoOXT26g3IBWX[NOL;[%2ikk$ULZ*`LTZ3o\Dl\km6_<\4kt=1l'm1k -i'uW#)ij65kJ,[n_]^$jUIq@F.]W[*GJaoG4EPomFDuZg"u`Z*DG["tCMS0[IIQa0 -:m0O6B35IuS2!jj&cXk)bFb@6?%g\AkG6UE?[!k;RJ-IXt)4D)TC@f#5Ohrnr2R&.YHGKW*=M.M$+K -6%_E8.jD4j"$!>fY*"gNDDoRXe+t8SRTm:H;T2.\q*kBLe.=+Y=1aN!Oam:N3! -b&Cl1ebE^#5]d5?US+u+RY#i"$nc81f"V97m-\' -j6AREncUuIiFl(fZ)s5(&o)0%1S%.L(soH-P%hB4D_X2 -[gEKR=eQ0T,Q&&j8%tpA<)P&F`&_Nq*888@GuG!do7O]\d[U(NjnO_U&7?o?$OSo- -i+YpdLQn#1mS1"XjWsKV@fP<"\l$=4FJ%V]k`S;=('Ioa0d5\2\!hX"oWir'lc!iu -_86mmCe_gF9gZJ>.Z0RGZXo-rd@!3O%O1af=T+---\S@q.^itK -1dTOrkToe`m0nqJJis!?1])%_G4AfZ8K0&F)&-U0&Rf-aSE`l0KmG\5Kds\B5Cn`R -R='T[^r+mt\:uL.nk'%MnRR%d5onW^l_oSj0M#'rpW_o"FbpM&2]#^`8N"MEe"W)b -Y<952WP]PITF_iPeS4ss2E+u9#R"j]Q4T;c+2@<,,q\03M&'@WORhT_:et(0PmWrA -&)gHS\W,@TTVGi5X2m<@3TqO!fc%=_!/%7lV]E^*** -?7$PG,_(h]8.:TIAI9%rQAu7n@3?,u#_q4\0<=.$bEYdL_%U+KPU_12T2+BqAiKIS -Vb>+HnF_!Fr)*5.6\YpT/'S"c7d@j30$]OFaKGaC\unHlqaQ:cNZOcrKKPbCb[8Jr -KV$E61Rp^]73GGl%^B;DDf;-B>r+Zj8oS.+@<@l)Nhq4SDH[pphSdYNo=\BH -6@##tZU/AV6BkItV(pX*d0HJ(>S1si;c6n/;aDX^rG&p^o]1'n*U?:_C&09\3S%,g -d:^)Id3o""Ii?EVUf3P?BBNDXMhS+hhJ]CeE\.h=3nbi.S3>M`4B,FQ/o,?Xji.\M_*EgL,NuQVS%An9RGYYbZ+IO ->l2oYFV)Tp93V'V#aCLD8IH*a[miVU&in"7^j'SBfL.R\F$bQREZ,Xb#"F'eLNfrt -:hg91W=-#[0aEu0O^m91[bYB[]g]:_@Bs_PT85L6iDuJ._pPKLSm[kooie)>!3-;% -=t%Oo1IX=c>\Mh`HNq[-]SnKgI:H?->'ccccQ+<01?X[P!+$X*+P*WcR!AnTQPbP> -(8t(R4;/J+)?l8C<"gVm"hgRk.R(OGQnY]UakV2R@WH0,7RTp2L*83/1SfD;5R,^_ -p!H-r\0rP4NjutH_Xf%//9Me+NMgdgp7SuH8J-g*S!ejX,8DQA%4-ujOLd21*h($r -`((>1l8YM31)AZ@6:Us%.?0Lt1^ntJ979*\:A-s16[4]Y+hV6IU-8-J?/-+[5ko#8 -@`RPpIBb85K`Oe>0B>@tm^_qS6t"!Uq9S8abA,UQc#U#k"[OB/LF_:0I;%$[!^9=V -qj>=%K-XWLbqsC,)roj1mk1RiU3qdipp(5)4IM6ATM72!]Rr -fm&q-l6&n(,89&hbP!e*-odJe.W]!#FmD%m.eg'2CaK50m:Ja7YT+,V%&4WJl_@*g@!FXMec -DC'D/DN3I@&U7JJ(!Q^]-kVF^l!I2G!3W'G5$?Y-S[&h!eXnl2L*6&ce.>s&\R4k& -ohK:qqs*j71Y>Z2:PXCT0,P3E8res,IqOAOoZi;HXp=,@-^\l]6nqJe -#-S-PiT3VB`*+2D\M3.;Cf[!8[WA_1Sc$ZbPVfG0QNM'90;$['UBs`.B4^$Qs4\aL -W:bI*OUIGW^h(';_J\+3f:6;Y/Vak)!!a3eR4M7G"nN7OD0HtE`u(;__AJG-1dPi= -'FsirW%'L`rbB1m;57SiMhKji%C,Es&5.q>hpOoZpfVt$cC+UR4&Jj[f^+SJH>0( -ZVlS.LpA]'pgpq!r^L=I+@K)fj5SoZX)J7"S2Hu+;AFi,?>frX0$4UqafX8CCi.VKO[Ep7rK,Ossn]?./ -h1b!lo<=\p)b`p!#.0A%?<(LmKRYXmSAGhF0'OA#N,Q#V>=Wc4_JQu]#su@%o4S,l -rV#ZqFO/-J6*50'WWdO,+ODi:R#%cia%9T^*W3NBTCW-='7a_Bh;;kka"N+cpXF"2 -7I5!cAn".XbF&Uqr68qRn;Z -lB7]qA>_O8Y%fWOA`RlZ3UVqMG)u+nD+iM;S(@6sR*7H&hPuo^^u3e/I^9gYZLM4d -'qVluUM.c8]PJW>T1'[GZp?d3Jjh0p=6GnK>[=Z$3LOB2/Gkb]$aIk?m -=`MY44Mg)lB&NtaFh'kl+O7%2S\^A.&Ze9&V\FD.L^W'O9G=;,dmHJ'V-+^oGH3sc -X]5\U[Lglp@#R)\DFl>+#?d!47TnkeC\>k(S^Jp_eLa0(HE]St"ZFK=qKV02A.:1? -nIZrUV5'[0Kj)cS#/6h`(C3>6Datb?"1<'>e[p<,QC0M\6B@C79YARq;ZRt@RlS=9 -7F'B?#-h3b3CZiSc'>99X%^J.EF3QXIeZ[-#;-TWFIBpHkn[^X+/9fA1'foBWa*BY -=rD`!-b<%H-X[Jt(dq3dbN:_rgrh]nZo?Ff(qK^Q0e>@E:KYa4a*NN,J@NNQoj\1R -HX?uB>?.:W0\`(=[tV"UM?#O!5=&1($B*r5KT798:4k()MZA?r;uAZam/3SnB`WCqA(2RHT6(P"K/r'2a]bcq"YR;8?=!"u.9J&KsB -GJ#%N$nI*BkV%f]$`[T%Z"R5.H_JBNFr7lh8E,Y,V%dje]lss:UK;?6^C4t_)%boL -m5;?\2oiQbEdI=KIBg?HSTOjlK#8,c'8C\J:+r#L3g4ihUNo!N_mq7<:6n@;:LCT5^9WMhm-)Hdp?;'T_ -UBA']<%Y1HK,>re=B:oY^Wd+kIaN(QVINNA+Fa4Wk0k7Zm,O3#1;b3`&l*LDeXM&" -LGs^2TP'=I;R7!+XiV[g>tJuO8,RFO(W[BZUiN/&Vc__$CO/Jf^2_d#Mt[`K.?o5L -b+78s/_/:HG9".2hPof*jU@D?%bAOFc&d=/>W;pPK`R480F`[,Xo^`I3iPj1nipoX -e>C9Xc7t\$DS=='f+<">`$Hs)F5B!!"(f%>oa^Fp%<5Ne._MNeAe?h=j4m/\)["0G -/-4^4>S_u9BoNSlda5>>R)P!34YGt5AHR/:"&H#U\[mlU*tQouZMR`ib<]Bglg];X -^NLJGg;L -(Y0+i\M?KqKGq'>1rGD049TlU>t:?;-870^-n5j(r0N:QHl`X4Pc;e.DI@(jb+VPI6&F?s:T=.2"&)uTM[o^mdI1.4@JhVL)lg9.P -\p0rc%k)!m!Rn?B9?C_S2Xode8"H/EuMn0`55+p$* -TZ7(kN+c&^I+do]$1PNjXsK?sm)lhK&Zcgn@'sasnOR3q'1E&gbX^?'L]8eDF"f'1 -V[\Vm*uR+^8]%tL(tQf,5LmIQ.0l@oGTcaSO3<,Z -LE.;>*OWtZ5\p5D,"6FP*pW-J+""L>H=P.rcJ%&=d7`?F57FYa<)>eh3D.cSU9s/R -DaA*gSdN@`/VJa\DKrZt#EjFX6AH@K)0GZWF\,33SmG1(o+&S,nm!2q -+7]A^AFL!+Q$mYJHepnc-`;dNVsD@%gSD2j@IaKQPt8jn5'!1tu+_5!L -+OnD=9$se@:CS"`*FWf34Cr.RHo6Xd9D:;D'qPT5[t'3Q:[u]@go+d]6b764aM'MFUGFi?<1( -^&&h0c'k#g-mnoj%\PGa>AH+d^ua[o3&>L0X.`'^0hSBa'fZQ"1T/q.SD\N\r$?RA^n6:d-ORhoT.[o=_ejfFSLt[#9Tjndao[>KP+eOgD2hcX>!5G.H -&]:l*AM(:I@FUO$o endstream endobj 71 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F6 8 0 R /F7 9 0 R /F8 10 0 R /F10 16 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 73 0 obj << /Length 8992 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;Z,'gMRtP&cDe16U+J*f^=)^5O?R&GD"]of`Wg5+"TY'e4:LI,%Ye.fmfVmI3Erl -eA[aS6!sti*_od:=4KY:R;1R(T$)D&;g"[Unc?f&*oP^>5q.h7W2?G5^Upo##A% -\!pC,??HX!^KFq2(-T:"p:&lOSBVlKDSBA)5%i];h6%jPHI\V#\bHUGbTp8L6GPgJ -F!F\*NX&"uVi1A.Xl^_;)jl\HG,qcYg\]`KdiSC@YD:kMED(`lnb$eAY1FWDXml5d -HAS"j2eNrq-5V.TDosoY)]i6ECB)Yh/%4;VmAe5$dH5h!`?+0rkR;*N]56pIa&T`[ -mAKbc[u0(Z$Te`RX6Jqp[Xam;R,R[J[-*-dM_!C_>ghr>+X] -Ta@&u'_-0#XgVIU)78(in@?VEXW,jX)N/!IDGl>S>b=(Ku6[V7+=ZIS#+_?UQR!.nR`G"'P8,f#C1,=G>Z5qo(I!!;lfk>8//W9%l0MD] -]F([Ko1$Z7:4N$h3C83g@G$N*`W,^d*_jN-oMQQ,rgp)n&4FP8\B%ub"$GdP2I`7d -FQIlU7%8QnO]C`CEIIt@!ugr]q@a6%<3.?edB -A^\.`$Z/e03;\n9]3MZ/m<[575I53rffo"7Am43q,Zngj\";Crf!(1VZc!5F)oirP -*4)hP4,O)Tli^0,Y:Z<,^@sbJWHs[8,`g,>k=*2a*DaH/koGCsB\3ENK)L>8IO!Lq -3&1gU4b3&l?)"G]@J\XN.(DJq#%$:NV96UrN.Xu;VA^B[.BU_CLPZb3Mf?c"IU06n -"Zfg.ZFO?*lri#7a=#P!?n2s.U,l.+:hOk1Q,:68Y?ESCB?_nr&mXK6S>@o*H`#o>IX%b)sf^I^K'3o"GLfB%>oTIFL5 -+.ck=CIu_l#3^=hAEX_eB/@LG@;JfkU8Vg8PC0suXRG^Kje67-`OT`'@;6;uX0a,K -f3H`t41rW=UVk"T6`1V$BMefc -:n6C2'>':LNr0M1.-3IB]JEBcnSAsDD9FsPU@P*#Wq2SM4omi&cliF8]g"1f$4VHs -/qK]^V5kgm#3uC#]i#^Bg(,qmg3.:Vj>^be"a""7!Aq$^'9N"Y0o7/]r#.kl<_-!l -78bJbMibs$DW+sY)-*I,Xjm\$rmk< -F\;>SG$_"ZLm^/bBI*o*SurK_?Q+J]mqOXFL+EO?0P5_0Ln(8L>DE;/pZhlQ%@ocL -\q%)f$OCl?h_uq6)&nsZi5c6fH\3%]7p[VQ5Yfn'*,dpI4*"#fe3NGQL7m"KLjHV/ --0%DCJL(EqFiaWP+>H@25ZsEe)ph$K:98LZ`do)Ri.\:h0P+YQoe%^fBBotb[iO3D -3Mm3%)rb.6T)f3F,.fl<(*ehB+F(^AdW/pdJ`!D*EM;nO77,R@9Aa.e4`k->BS?.< -Pbq@OMmPYCb;se0PCao*;5DP@8cOgZ*SVV2V;k(o4h_!;-]Q<5BHgc!1Lf/AFL6t4 -%_Mgb*<*Da$tmonhO22:n.uO0YTp7Sef-;Ie^%!TlD,M`M.o16u]6*7-J]>/fLhY:;1Bqo!>.2-rE>M(qSs -]l`\+kQ)r94SNiNF17'*?Q:]b@9>QPTW#7Ie&oJ -]FHH[#G2SWeIT.VVO_X`#+$GGK^Oq@6#7scl!hEQ10(3KQ8hYSEd=eNc5:+BSqo=U -QR"rA3l!DN29oo3XDtG"lB+!akgbT%+F20dFm,+-BXhctNT/BT'AJQ7NZ:QW.P5QK -#uFfG[.>sP!L9L*Jjf%_@BFM]M?sR8,Cg\!N-o!`Lo6q(Y!dBP3*qIR^M_EcK,<3G -oTtV'oLV>^^cOt+dd:GLmE"_:msZ6=-H!Vt6lf8H%6G:#&>LX;imrc;3Y5p[6jQ4J -:LGb;I@lue,8_+Dqa-a9^^A>9Wnh/A.86rJRZt`rfN\C8:4AfQ -Z-4]PBUrb#TJ:b[ -+.2OdZVi-Ll\$H#g^8a)bR7fqa: -"(%ejpWnB,GS!KG5[a[CPP2#=fL+X:=c'u40VtcE1^GZ)T2]gG+[Q_'aa`aHg.f&D03PdLgRHI#n('"4^KE5DX50Z/ZA3>.A=pJW)0*U'lfBaJ -d]_^-Wk5tL\lO4a'CCQ\gjd&AO(sn1Y(b*&Ks]8%&=]_C+"apnmanLUn3=!UbDtW& -(&\46!s*%#,qYitX=>Qa75FDM5[kjgZ+]AC6DIsb'-i>S;0&`;53LKa/,V`gXui`YLM$9;4k+GmHl]3J -0LN>idMudZ'>tsQK4#7"nDQRW52qIc%G^oFiS*&HAju_I2fEkBO@gRR=V([Gu]f3"U0mZ$.S:A'$'J9m*Pm"KDiSqX?*)NqU6qFYlML:YY -g,Yh6OAuQ]XMnPG#bJB+c#55$fli&tTE^IH6e4HZVZu88m_9Li:[N^>=WOdPIpEIr -]A'tpjIG>b'uLZcBn9*u=qildDIfak;[IH) -dC"W92PGkJjT13.KHGgS&rgVhP1K_CYSVp96#8DMp1^.GmniRgn87kJs.KtjVobZXR0<"Pk1++TtZhgVZ)+'rQ6Bm;[Q_1L!+6p\(gTgWPaXe_A!Q[k!9ieF(q$ -4,o=GZ%mI?:Hu;0QU/"'&[np`ebUCMpJe=5?9@X5b[s -K5la&@4q0UQfpZJ0`,9dkYOKl79/)7J:+m:"VguJNX\o14&utlsKE/T_T!.TV -V3KJ.[s7ta9mGT-bQAapJ"6h;WseD<4=nETH,);;FPiC6#S1l_BEmZZ6kFVL3Z\>- -BAIS+k_2kVeN#&=O9Hlt-K'R3dfA]Sk/.$O#9\J!'_mC#9F6H?U"3dtI9[K'6Cs0B -GrH_U(ogr^FKo&/WB?XqOV5CcmTc$-+@U!!/cl&13cfXSJqgc:M[6nE:<\042J_=a -2O_Oh2a^/:M:jPW3E"?8!shX#NoMjshFb+V30R/VDI]X?X\`.2)el7PM40jP;^D<[ -6!X33rU2fs]H2\ZJM?2A2M)$Y6l,OiGJ@b%E5@sf(k-q5NH**jTNNt':llE/%#n.6 -f8P0,1Q542\7'kC5qj`NOhSIZ39h,B("/?A\"molGSmm5R*-'l8un>rO17_LRW.;Gn1DIJQ]q\u)b0^W*%qd1F1V"0`*nP,B -#ji!HIlBR.?\*qUp-q`Kg/.Lc.EGB%d%pmX@lkJqW&@k*pHSY!CZ9qV1a>-5EMUuE -Or/qBIJn],jpi'fYgXq*/(+P-KI;($^!D2-f*<4FE);hWKb@=N.Z=?0[t\LZYqc+& -EUHdS&c1^=C+Q]_#qZfQ<7q`YVN@IfV:.E"3hSZb9G543N@5!%V:,5C9RJbf$U$J$ ->.<7aj'd(Dg0L&Ip3!fMmIs?R-#8QsX?Nc;LWrK#l4E?!(op6!'C:asm6gUHL8WH& -q3/>RFFm0"H[7$IG]""P,@N;u\o<"$FQ;I`$.>n7N``AKpY\QRe[K/bPs@8]XIt(+8/sSd'[;k(VU*d4Eu"^0Wa( -]m7/HnWT;&jYS-SI^pbJ]I`>IXCT;d#`SVFH6!tB!<)lPU?!5&%tsq(+Q?cABK[Y$ -&SnRnk'Fl@K0NjQWtgZI7<4j8+>g5S;WJ^cBfd+E!\huM(L5o-h7un(se\tfLZqoIKB8#r:>O5 -A/Z'k,.!)k5@J\-QW,k_)Z4$/Y;5k1\tT4OAH,d!r? -qpt["@gA9k8iB'Oj/e"@*bb,bLDr4pTk(t=6cXQc?P0"8",oP6?KlgUI-)(!X/Knd -_^!=U=]a2b?h\\eg`39$%f>CtB!hXU*VRObaSt%=a"9]0PJVd_\pE73En@a<^9@A2 -pPm67cU;Q0JD4aNBAX(t#AV82kI]:49=Cf1;1`iqbmXnnTt==54g,;>@D0Jq5UTLB -?_?^2P^-^Kle]p#/kYJZh=".@%(e.7db,oUQXS\\!-?MB:'g95=ACX@8M]Nk047[T -C>h]pM'Eo0f_tE5?=Al_.cqj!r75L$2J_9bCJbmMpSl=ikeIHZBjl+E"iCe)[BN&P -PSF(>PHhn*K[Pqe))e1Fa@g9coDg&i0c1&l0s=Dl>e"PgU]>^Fi>`IZmpO[XV -?"Y1/$.#J1H+pD/a>G>c/sn!Cs#J4m&mDr"E`i$RNe3Od=up=5:b8d-^t`BG//))N -JInqn?f);G8.;F@40i)GA^iDk'mFnjho3lm(a^OQ.nKoY4g-Gk*0i+3EDj,I7]U&G -62]CUf=bIQMGNSf*UPf^#1Ql@8`0H;"Ap7.p*]HK)Gu.H*9rN/\IS"ZNNNLd0gT:_ -?!Gabiu3Nfd'\_FNC`GcIC977G[gBihWh$b1&H+#a.U_^J])BgEYNGB7MhSA20M#4 -Q3up-,(A<>#[9E9nT9ee&XDk58d][!$PKcgo>N*D.iU`S]MN(c!+RJCp/boa;dS@2 -^9B:JGX.9:-")'qkcbc$7*uUfH4c4$*?iCp&Ei4+`FBm6-j+U;.'m:l:]*V*R&/C$ -ESor0IS??p5=YR!kcm="CGj]AlFW -lIdCC7l(.OnFFf[fD#b%?s#r0,1)Fc#V%H;cY#):rmnHs/o/2N]0l2:XB11Sh0H71 -&_K9k)6ATOHY@S0cM@h<)=FZ-JfCV;r#.bOKh/tOP>,fdla%V<):d6i*nJ"Fh'Q(4 -?Uq^.^es8aHX-;g7P*>ah=>A.HqV^mh:kL9V09V6p)>PLG_b5#MHoHDjbM:uRRCi% -PG@)^Kg_thh0+^QL2,8gqb$t3MoW!RiE)Pi,9h)d&]0d=rA/8Zb4Q,cYB;H#!AY26 -Lqc\i`^G`qo*j$R^hA'uBTs*V3X(U;O5qjf/=r9N_:]UP:9MsSr3`PY=Jm-/G=F), -:p8^0:j=eEnWGB<;XZWKZDAY4Af]l#'jOKr]#Z)qB>/2*gUNq*quh:=;YBD -:3T.=kdF6:/@COmJX%\jm#S7(OgJm?f-97?hRR$ -ml%5?hsBFNkCoV0`*!Y[f\5_q/M+eE;++O;LuYB,m4<,,DX"X*[NPEoC*Rbef_6D3 -K"U)XnQr=.=62=AXPkEjG&H]kYaKd7$bp!F\M+WE@#SS%KZ&VXMu,#ARXAFD,Ygb[ -c2hF%mf7<]PhJ-j[!)bPACefgh7`q:G.l9Y61'2T_$X3Sdq'q4hf?>#qrXRXe,(L,'ZpumBK,4AUfW'_ -efYr/XeME3eZ-kIe$h;XeNMW]>\YY[E_r.]n[?^c9a#2O^8a'oaWqsiG)U9'"TCM[ -frbooX6e'6V22RZcI#%rmn(%+rL""%Ac+V4(Ua>h$P/G+6pr2b4Wqnph*df5'ej6A -?%Q3To7i#j=QQ";UN'#r9cQ$edfst>=U2%N[m;=1^A-AQ_V?D#9eo`kfamk08B1IH -c:KX?3(?+.f,fh=:j^VX-^a5pC6%:uR8u)10TN,f56^_L.(E?F\j3%QaE"dBi5@@P -H;ofQr3%A6Ao_DlNnLh`l[k^De*Q<(KI1joIU@21he&:Ze%l&>#ZBC>?U=;6Mi1$U -ds]%Jp]i(X"FkRMh%$K(/6'(PrT2D.e2<=`IC`F>_eQ##H@?jb&,iB_5,]FuHNWNd -4g5k<,KVLLjes)OqcI%G> -rkR*nGIN[Zh57gOZ*ZPDXu%U3A3p=hA?Ykd3P#N;(iJ'iB8@DSISq*CCM72QH@Dsl -1t#%X3XnLd1%TJ&7ap:qEJpqp+o:Ks,d7b3LMFEnomUnm9dq14O%7Pb?$oQS,216_ ->U3/';8D6%<:GjKSUZ'%*)n7Y[oSB -Tg15u1_GV.0XdUt$A&[2TfViOb4&'fn5S$=6?WRuoN]^3jR!`7`kj;&Pa["5#1Lbh -5*F%LFL1n?$?O`MZ@]N0i?5miC9e`T?d$tYT:elAM:Bc_*H( -1d(%XKSbhRlqWlJJ6e?B-$rASAZ/-:4/J>(#bDC2l@&F'^`qL36&Rdh$4\5Ya0ihO -g0nmd0Y;M,edcb:LG@&C?(,[6?P_dIVS:/Ng'%urGSUS_OOD)r>Q+X*35Lb7Qs`/d -#h';n@&`#WM8aB=K^AbI%hE$Mq@Tg)E-a3N''T]i2anoKUX_rW1HL(oF%InQa1(qp -F)eZ-0%CrTGA1KX%P!F<(X^q#,VX@/iVFe`m#7^XAN"D?LX$B;N3V7.ZLPM2$YB$& -k9o33nX'MCWl2dURn#aeXOlApDcn8NV1=iXQ_hB!8-9j+D8MH^S7O<>/2q?2l\H_s -o/LcKL+#h:2n#>HFA*t32O"h1&c/@Ig -lDXSd`ou'fSC*F%iO]s:\,TQ",FACbN/moC7_>LF0r)Q$]OjPK=SW@nUT@Q9W?RHY -BoA!h>00$8WcpE#[]a)lD0ja9+,3MGH+-fp,W2M]$+Qa>ehaDm2>?#g5Iju;i33"1 -/.6(h*WUN[d,4~> endstream endobj 74 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F6 8 0 R /F7 9 0 R /F8 10 0 R /F10 16 0 R /F11 17 0 R /F12 18 0 R /F13 19 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 76 0 obj << /Length 8857 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;Xu\>Ar<:(&eC6+/VRNW5]b%I>/(+d%jFk'J0kh5T[!hXL4;"p?kg*\X%mks1Rkf^k0jL'Y%I$4?/at(?'hV'pq/4[f0t,]gZ?`p.Ykf6bVu>c5BPq\U]\RMP@>aKFVgWc< -5sFp;CSI?Y$K87E/,HL+)TT7ZLOr&-[E%[C42.*[&;)XjE(OqIk=Vh?#i#s'8WJ1j -]m[OX4',HKWN:nQE:b/VN!n`(2l&n#'_*KP]IV:QN=T9,O7<:)WWPRF1+`og,%clb -Z,4d4Lru,`SgQsL)g:O9%"!/_?(KC!*B==\XiJFmDs5r83?G3YFcSqNk%L5jG@'"> -le@Z]a[['g_<_HeFR<="P];8F9C;p/C+L'eX#=O1q@2Te[:]);\R*M4LKGP8F]6N: -_d0NV%g?1%FV2gZ6a8+Yjpb<&146WMVTo%^]Qnf\/ug=)Ettc'fnsN+eYoroNC'fs -)K/>Q]jA!ic/pO"$P=,RE]1\C.4W!MDQ7^pha\R1f%80<)Qphf2e@^/FYfk7HRMF9 -bJ0./OQ(@@rK>=mE'?m)*4">\$H4nq7k"upe#'#7QJ:c;XRWoe$GXWhdTU^aeajOS -Nd0XPmhUb_pAGKjgO,&Yj`*H+?_/2['?2J#1$UN/2?/JkG62d/k%Ej\jT`hfhmCTj -*r=AMF!.0Qc7'"?<0L3T9,.p_ZpF8--G?&\UH;AO9."n3ZjL>_,];ho<,lhGhkrf) -5S,s&bPOD)*+^6($=K/X/O0j4cKa4.B&E"kk2?I;^Bi:\EA9@i^G'L`hKu4U>g;Y; -#rABD4XM^>[?Yh:U1MZ9P_rM>=/7*qK1cU6O:,d%7?7#(B@9YjaS,Rbk[j7OlIgjI -XeVW3Fe-.QMZ\d8@[]>5g?@]+Pq"hSF!r/`cI;/XUt/YT*iOain:Lbsp%LI*EN^r+ -Nno-A/s"nb(Ri/Nl%(+"1&7*:->i>q9.+j=G@1Nu_[L,M>i0sZUqjt1(UB6.FGOPi -e>YBRFA7&N7R9Vl.E13m@`S,R -b4C6&T&>tQ9^dC?Vb7$hm=#]o^9mUD%EBA:WbZF1U,tbG5c"`!I:OYgkB#.&Nqap)tI -,C%T599H.eU+)`KF:3&;bG7fZb2ansR2#p`-W[?N[iOd))5F`pW]FZ>Hn&g#r`;Oi -Z'Yd1]< -quJ*;:4Y_=qQSS3f0?gKatQI33P_PeUU)&kEG$<_hmHs$p?j>KQSudb9+smt]Q]`; -^62\n*s\itm4,Ida253l@r,tYo@9@?SpYK"&.1V*C4@@T4@Sna(,K"2GKRF[lEAhS -4M%4+ShAAHB2?EM`]VCuhAdc>b9KKh6q&$1bfF-HFMgS08]_j%2t,b,Vk%c"805>GmdAOP+#,0mTR34DVkD)c;( -&?!V2oFh3@:cOrh2[E#m(i?sGZKr\jfIfC)K$\iBiO15fpCU<3&8F52&nR%DpO!86 -?%+5U,,`fpnP]@&"EguMDm$s5j^R&i98%HrW<`5Z3#Et-5c]q> -=Gs0Mnb=6*]^BlW@r/81arpb3*(K=:`1%nj!7jd#;o36o.bTK8_cY5VU<,58d3/TWU/dTo -D7r87YOCoe,iBFS%Y5@l-;_(_#/!$0J.*WBN/\#;'Xe04pP("se!aZe*bAZKI34HI -ME3MVeU%%bW9C.bH9t#sWu5]Q-fRora_o2JcYG#SQk]=eu%@;\5R4M$IYs]&o_6.#I&tXqEB3('1n)-@tVVX<<(S`kIb* -F9F9ML_Z1T\QDP#-1uTUhUU;'ll5ZE?4Ttt"tjMYU!eBJ0cAbq+YegbM)Xd=-Tjso -Pbr9ah*pqd/MY)96YU#$C&U+Q&u[q^S4lftT`/:SJJJ9[MfuW"r0]f#MZIe\#)2g* -G4+1-B*+XEcEfGV-OI8$7(A#pLotTO2F1\I?Ea'^\^Ns]WT++?.P)fJ@YR!\_Eee! ->t$Mg&l',qc[jtBQb#M:2"P_\k61_fQco_lQ*_PtCTHkB6Mm6tKf4R_QNkEC_eq2Z -?kca,SO+RjF@%468@q)9E.ZfZ;/ULuNugeTGO[d:>lbphgeQqbC1;o5':)T&Om#V' -0YjAE?8asUT8(>&&b/_ZhM[2BO2qM2BsSEP6/Jjp>3*qKZ\R#V=;KPIkeul!kaWR; -[1"%'H?7s1\*&dkMr&a5GNTbVDU0BVKGZeMMqcG"7U,.'GQuYI4qeI]9m:j0A)!\LJOo>o.q0h7\WbV./#5LbF52,7]dqCRNQ9A70s&QjSL+=ZpO/a1I+iFH -$+5)Y@so8_%Sgo1<0oZao4B\/GTMrH)TX0k["W6Gc37P.YO7P(7nE)]dXPu7QJG#n -,PWcGi.H\g2X:81H41Xp08<71&,%^2_lT`U,"A;M880,pn&VT1mck%h8]c;l9A*TN -SJ`:_To:H^9nplk^E4N3[)^[mj62JGcqtoQ"ZV4S$/!`N+$Zab`CXaYQ,_0uTU.reN#t%$kjAo(GNJ'#3dt!^P(Nb.W -qN5)\'3Gh2$cJ*ZSTCQr>r@J4!QZ**'Wha3CR_C(n!;&jCGeb[`O+R8fE$1t -1f2MdV1Y+97d5clK)fs&>L\ZhmI5NtlH]2;WV7&EWC22UGZAopr.-Hr6NLk9/$;$` -?)]\=kO?47X%$G-E(FcZ]%0oHXW=Q7Qt[@K&V(ZP(:jO&dpHP!CkB)]EZt-BeIb+5(gRNmG1Y -\MAH1$(>3tWQ':P63G+Q%&@QCHBCn%&2T.q2`m`$@5kjC/KB0braG)Gc+'4?5Z//:8+> -(D=SU@-#.B:!OOhUd]aTg?HUHjN!^ZY:cEt>o_.@(q#:bFW]3t)Z+b_p\S_=RH+C] -jLA^!Ok-T+Yn0:RVsW$54uZZ4@5>=5LU3)a/44iX;j.(`WGER#Q1Ak0JiX6?B0Xue -&]k*+j<;S$XAL_2@8Q9^EY0__KGW^&0q+Ctckcc#,XhMPY=]5V`p$b_0>"1A?LOV& -=e]]Y%pTsAB+%S,S^30W@6FsFhb9nu%#&?T9(KVAcUbOe+r6IG)^S-#AJ$E\M)4`K -4(W2\Af]:Kf6c^OiMU/Y)IP5?aU8qOfWF.;2o,%kqg0A*$d"C.\:2j-$mRjC<"TLL\l -OC/oGLf&.%3a7,S9K2,3.?=N_YEHC)%"M9`L=]PSJ2lRqV1HQCGu/l&FM$E%HlY+SA&5In;Z -fr0T,l.#+uF.;J+a&gg+H6nSX\JRIB*=#G0j-V=kNum*lY2CHDA-4UtAgO#M4@C[k -];tDXYID#fj+/?j7>F*ak)ocH-1feL$Jn2soFQWu'.,s4Efeeg-s0$0oONc7+pjGi_N4;i.r1/c\N -P(Ar;B5M?giC?T_cg*c4GQRR.Zp(gWNDm_L=SLR, -P0UEqP^Bd@le;agUn)J(C,`(@:aSF,I2ONSVshA#.[]0'XtuNl.QFP'2J3I`h0^Ko -ZCql`b_.69/Bp,>K8L`E%>GN*B8I5@E)j4lJet5b:0c=rej^\hr>Q3,EdX\tEJ)@^ -SS"$q_jN]upmObtJj.I]=NDQ?>lMV6_gSCBbT5l0B9:?#5WY> -5[&bAl\&Vn*[OuK*Z.-C(n&IP0@h=>]/I8@4.%d;R5X"di(f0$mkX]\WQ`5>'FsWE*^NU\rT4J -f3r!OkSfWm_g5^LR,`&p`.3W!L(dl-jSd9k@['Q?>/:S05[*g^]GPLZlHdA+6-84] -nRA"+2Xadn0qbBeS:MK<:Vr$BbG?IBRpXmoZ#.%lQO*q6$^k`4R%tW/s89mL8@DA. -f,&]noP)LElWHLF)l(;Nb5GaRX[Ka\Aa8J+e+omqFs%T1HF>N=oA2#6(9EBm:%j&m -X:fe.(baHK0Fg.?[[ZugWE=07='l?gOhI"k_pL-h4.*jr6l@X-^9uA;+;\rIrl/k/8>U=iBL81en,BC>oCM -gbM!cl(aaolV4sYO[doo]:I:h*K+qU.ZYn8AfW([*mu&AC%2fk,X^9YOp`2:c6us8 -06X*"85>3uL0SGF6>-F;Ek+Ei-tE'r86\Woj'Rn+NM6qODBrln7].UM&-NUXMSCRl -?::MS;92%ke]b^8&.,HeF$>[-!i.O(gn:0QL.fNO?F)*kRTd\QVkRB0oIDbAf.C0V -Wo_piU>X,BZs.3]@fOf#e^=``:*Dh;ebPaKS6'KsU3rcTs)FU(+T)L0QZS+:olTn- -SH@oh\R+Qcag",fS4k2HE,n/(r@N:3HIh@dV-\U^3\:B88G>oYs(3/KI4e)XAJ0.afLlj,s[%H -MB((A90utC%C:Xj6hdQLMAa>mgcR`;^@%Tl -;Uh#Zbkk5%3;]CR.l9#hL'#=a;od@uMec%sl/R'Fa.[eD0J?'uj69["bIW`:(Uf@% -FVf7jPXchAlTQqHiq2cJ0(G4HLK#FNKL:0C\9Dc%[P2"NJb5E]B!-T#YIDplT[Q<` -3fSE7p%Eok4\!1p%D(*:Jh]KkFSbI^/QNKF2tGuid+7+D5G965Y23KCX6STWro[W' -\KIN%7Nd9*?r5LCDY]:Kf=VP%.,2F[Jd3FC"+R=2f4dh">Wp/'EhB[Z9VT9i4SK-9 -GUOSH";4enlQ)"oSZIe&$8sMP?nV;5!+X"R%#4#K>8P"NZaA -b=U0dmgMcZ[&lAEcqDU-Ltl9V3Llou^R'5I;QEO0bV^g7Y+#hg(Z0;oGnL7GAmQ?' -`/h[A:DnBBi)rT;[V'-9R/1hfg3BM)mjT2GV*`tj"0Sl2%e.<+n8 -KElk@nVj7emd(O`NX0WCO#T1(p'`26m/d6UKijhsH[A"2N^o=+YbS[t1.skGUL\U= -eLbY:5>7="dL8gF'SFP<0F.U"1(4gS_#HhN;Ue\;_0 -F#j-M6Os'BFTq9\b?\_mfUnj-sS3q6@LV,GC'm'4Ko@;G^Aim:::rD;@UK"#Q9 -hS'lM2sK/cSYMdt8eN"IW7AeaJ8bt>#+A?4I]ufnd306$L5%4sXZbXQ)-R9TZNE<9 -k68B'7m+dQ6JVt,A_lcZ\f-b] -DGWM22sX_"[D1]q?^LL(EWNg@GH2bDglpCR&XYJX0kAeOY6(o6&t:Bq2(`M>rcJ**F,bOnT>r -N[ll.RES7KE^d92La(<\48[Dp$`G%H`8m9cGP6h;iX)D8+Yfft!'5JBj-YT^iIa;P -\CE@QSNYsZjn56bDbmm:RLO4K&,7?.U!uHM,Q5d -B2:HV),VMCnkb"8loiH)-F]EJ$^3QCj5nn"6'9L1bn`s9gp6RV,BnE#ZQ!2[qTp(U -4=AEObG@dBWI1,+6(?r)LhXe<_55p1q6")$50k5e]$BZIe6.s&IOt.O6$o@K9:]?R -WYVN#4!Q0Aqh6fG3JNs#<0;2S3ToS_iis^!9Fe\Y+mRr-V'OaTc;fNai_7Du"299a -pu/2cGG=se[b^b(.`K,85=O1*j\_PngM5agaN/]._'1.s%#5.f(EUrj$k+WG.'paX -ojr4aa;]Wp(l3O;n\#Clj[oC([G0hkWk6hg[+fDqLbMN9UIZ93!e7bt+/PonpJQD- -cH)srgSR&t4.+(e\LI;(OI.Hr5'1Ypp3"calp(M2(O^RFiV9bmh6ue-cpk9pLs/[U -CN*OUU^oY0[=f+sIM6)3c`Z*W*LeAn)l9*YQHr:2"&/Qf'm0o1jf,H<2c1P)9t`-) -39Pkb@>^[oifJ)jd'au\\GMkliJfJ/&n'1FF/ -k,g_rIC10+b_CE,RP?e[fKj:^qWk\ipZJ18_7KK`_<*j/\GN5iD7.5)iiR%?,I`*Q -Q,ooi`<"YY7iWH'<*8jd%dQ"ln]^X72O[R"]bSMpWlt-W\&)c"(`ZV.:[QIqC,K"6 -8lk7B7m7b:6LERic8l`>5nHnUFiCuCIaA:(KIbXF14nY2b-;C -L\s46UsLIL~> endstream endobj 77 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F4 6 0 R /F6 8 0 R /F7 9 0 R /F8 10 0 R /F10 16 0 R /F11 17 0 R /F12 18 0 R /F14 29 0 R /F16 30 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 79 0 obj << /Length 4292 /Filter [/ASCII85Decode /FlateDecode] >> stream -8;W:,gJZh:(B"=65u4EF;r*^\?^J -P**A*0;44p'q%biU/0<6?+"l^\XYn)PJ=ABlLn4W8R]AUDgkbb:gnPg@hZl+*XS5s -mer(SkV4BUFP4pm-6=\+73qkJEk7Ud>UCHf9TDg)XN559l\MN,?,n$]e;T8AgT4h; -h3YEP._#4^]3*Y\M&\?`rS1KQLeQs"*-?DB68pE8d8eGu_?s0ulSYJSAn9=BgUb(F -hC#5g]HL?VXe3_Mm(j;iAs?pl-5XN&jb!B&QYh@?#O\AWDp:murNt"t<0N4@Bq(Eh -Wbk5D>_Lf_a,Es:19n/APQ!Io&oQ_cPGmnEG;2m@Q84nMI.8CR5Acig@a[*qMIZDE -,Xs5-FNms+hU8?FO+lC[;-r=(P=]<8"j].a_'?YY.S\PZ3A4J*d[jbke.c?8"I2Tm -3.)!gIjQjU\0Clrj_CA9gc;iqK_*NL)M\J+@p.+mh -rpmOZ+E3"="Q6GXcT`a'TK,j$b(_`d9pf,%2>Z)]bGjpO%m=4+a@P+lW)Wd*\ps`: -$1f$/Qsf>A(R3-#3@t&mY5^*ZQ]H_6BqaB9W%;aNAWkLdqA,tHlD`U72ii'Oe#\WM -:iN"PLiVW$qTht>Pmq-RmuoE9>A2J(?!49<5&dTp2!se*lPa[l4e4P*MIok,i\$tF-%MkM-/mmr';0V)/ ->0caA>?UO\kD1o]`F`,,pYhJHhk-mh1RHeDG\e7LNkmND -T5a_kE]&a'gbqc.i:t\gS0HVuFV"CL@aF8^;hu'[/V" -PbEge(+*5P.1T5'%0bgdYOb"2JI;`&On7/\T,b>bX>D20)@3+al4Vlj+D9EZ,5cN2 -lbs<^N>=e1F>n@Sc>iPWmM:\8TY,5tqVG0^W.\rR:"Zdq#&q).B.k1A1-YR=@JMfm -W<:&akURr,f/tXr>2SQ.r?u8I*>t$47TY>]:bDDa*nZG5>8>5i9CV$U]C6k4ghe!$ -$f6S2M/Df_JF?Qp!aeTEF_%U2@IBeWr[:626,NWpr2Ma&LUSfjr9F -e4'P]Z>4*jFL;WC"*j.co%JWOP"T^u-@].M^/6)jI2;=8g2KJ=jrtb,e"P.no%>Zq -;0hnh8pG(H6-"NSf6LRY0k4EO6-/eBZ/Epk,af7a,JQFe!M3"`6?1m+r=eqeh@^s,-,lql/rU"HR/fIVqoong@Q#RP0fsu%eTng3[31`4Z9;Nq5NQAS`lcC=--U3=mlEdeo_V]F! -#%_%N>>fc]JC]5`\?qoQSA=!(h94=B+d](TJ\Ie2-AN_&K195;2/W_)MJ.DY^ -m]8#mXN00F(\Be$U=#J,+o2#[`2-6>QamH>JrA,qF#Q;6>mFO;_hF,&D!Y9i?r._N -/:7mSDudQM39Y;8`cHE$r4Md-5c"tP2rMjqGdJ.`b -2(`(C\YUsP7'1b.Jlor,ZZq[^9]>H`73GgpC>L-LQ*7`!A3t*%\]l\erQoabeBHk8 -[V@?I0t9*:?^8WNc)gHK`l[l%&dW0@?D23Wb-&&3+T9ZLTcq/'XPR2Ir]9u^qhfnq -&I@OGC1)6+gOUTicFWB-B4>l;2C!%OoOH'\"E)dR%KVlMEZ#C.$FsucS=\apQi>dC -G*@F1i[8HECY\_'#]F;,:jc[KK+2SrYga\.fFqQbq@QYh^5d]^qLs;cqj8rgWp/:I -Qh_PX!*K*OG\ggD)DG;.S!Gb@k_C[$l[]"Y=LtKi>GXicdlnLa=sJ0$ZVX]tW=af( -CQu_YU,ubr1%#+nS!ot`/e/C4baGe8d@&[.29/+:A;-Oj+T!MKW6c?$Xb7LuL7V0/ -Hc%l>\hu8=Rf.GCLQ#j0p>@8!`62R5#5(RMB/_b(f9.0,FS4_NM)SpPHX1,,QX*nA="+&s%_LQ"DboWJX/b -Ag%M-'bLGhbn%!VTAaH)2j_bd9mt0\h7`KWE?#62+0hVWp;)qfJ*19m>n':/;XWuMXu8R';rMdI&!@$7TMiQ*/. -'UD="knH(I03tbIV%MG[P"R\[f`a6qg<[YW9K+t`a8WIaNO.e\"Fk).Q#qCp3i"Bl -(&o/38=:>*4;][8)hoRmAqnc]!WqDB_&Vifhs+sRFcIHhcuP:M?)Zjj?0(b,a$ij+ -9gr9Dh47TQ6FZjN+a;%%SAr:!49'o"gRDK;^lAf?WT512e#I:e_J@FZ9RM9nb71(W -9!GcZ*hc3SJ3/-MBAR4_h$;DDhX2'tEj:/7U#XP0\K<-RgSo;[Q3c1Ga?YF=(n -dWAW/TNLm6&75K*"7.BS9"3ZQJkC@X]ZVLSirB\SWq>9<\>'l7q:!.C89i?0COK(G -;Z#Z:OUIKgrJ+6E`tCJP -q09YFj\)]ohCW1 -BCKfVeOnrggb;5$M.)LZIZ\Vb^,/s!mJ;5JmWQ3M8]=O'!jjoM_"fJ81$Qd<1Weu_ -PDl!1%ZILSVBmelr-m,-"n<#!2/b;u;"C1d_$OE`%jXK?)=ZicnA&?SI9bF7Bo1-7 -XDicu\lSPdCc$BcJR9U'[*-nIqm8tX7=jr+^tBrUI:)?XRC="+=n3S_tE@#H2jDJ]qC?oVM.jFJ<(M[=BrU"3RSNPJEp#GB\rN!=M~> endstream endobj 80 0 obj << /ProcSet [/PDF /Text ] /Font << /F3 5 0 R /F10 16 0 R >> /ExtGState << /GS1 11 0 R >> >> endobj 82 0 obj << /Type /Halftone /HalftoneType 1 /HalftoneName (Default) /Frequency 60 /Angle 45 /SpotFunction /Round >> endobj 11 0 obj << /Type /ExtGState /SA false /OP false /BG /Identity /UCR /Identity /HT /Default /TR /Identity >> endobj 83 0 obj << /Type /FontDescriptor /Ascent 587 /CapHeight 662 /Descent -237 /Flags 34 /FontBBox [-167 -257 1056 909] /FontName /CDOKLO+Linotext /ItalicAngle 0 /StemV 76 /XHeight 374 /CharSet (/one/space/a/I/hyphen/C/p/q) /FontFile3 84 0 R >> endobj 84 0 obj << /Filter [/ASCII85Decode /FlateDecode] /Length 1594 /Subtype /Type1C >> stream -8;TH)InUN"*5)DtLWHLh9,HfSl`%r:-\@1EAu9(L\Hs-K_(g)D<[sCW/R3d&9%u^f -P;.[9?;$CoW+`TpBUL&crg8Sj+]C>Q,VdtS1c*g,F(W_dak%i>-LUKGqr>B&pN]Pd -`Pl3tM.GbKeV3f&KaS6p3k\BhCOF99LpJdtP)-(l@VW!3*%.U1^5/("Id5S8C`M$P -J??.%WH#CY=H#Yb$`ipM<`WG5e&Z'9T?lTZ0$AZ'MRhEd0Sdb#eZ1RO#-5S=WA6/G -laH-4C-AUQC.bfL-Ej_<=oZue@+K*%)V,m>T/U2c#"HQK=]MGu9#XgbqAmd9a]bfL -pm*7AbZhu`FJXof/>J4$%48JK>H1].>)hM@$nQ];9T$rr1b9;e*IAT,O%kQ#`aUYB -RtoNcB#fFh_:[c"*uHFO28IF58HcV7ItX51Qq^i"@HT43*9@`IQZk@I;E39F5':&Y -=Cfc8!@"a5jQ&Xkhcc]Rld,_HlpXK=4a%gHoB\\*fL(3\0O3c0/,']2m17LSH>?pp -LQBM`o\B]^bn2@H6!IVOoWi11ll,%=T3D@4ft\lWRY3*kBEJ8PHCQ6NF#Ttk3@IOO -8g&b`_'599l^?Y6e!t'+[T$=+QNH`r()"hPlT#^52n5>Q#'ol!qH`1s8C6SuDML"D -aH+i\RCkbEUIin>gLRY>D0Gi?pXkMbI^X1rAQd2G0mq -->iSF[!qiat6(_1j**c2!L\!N":_L;SH%UZX0`s+L5,S1t%^_UV$ES\3*0 -U_r=]3TQqGq8-_"cEmh=f!$MIU^V$Y[#,!Ei>gK$s2\oS[8Um1W39'4,=#+#`XB"$8kZ`BkXkFd=M`Bg`\ZukUP`FIMldT)-B&_>S\;`cFEqY/j%_a#U -YnP=O]a]BR]Pk8U>H7`dLPeX9_e:i1GqQX_(OQJAj&%$-F2^r:UK':@`ut]@d"I1T -$AB*"/g[-6*.gV'(PaVFAD]RdG[F\[n&cS/X1a(aJ+&;D(8[/GVG1^0>N>&FVB1ae -S&tR[?9@TJGrduR-TCfLQb2)(V>Os/8'PRq[bV-d^;n3%EpP:r%G/Z%kj@SNlZMk^ -6C&`1O%RL$4-gl,V5CuI8U]g((V\lT@!TqjQ7(j@E]dc>qKQK/7,eU6\g7&Qrgs/m -!6cuP=T~> endstream endobj 85 0 obj << /Type /FontDescriptor /Ascent 0 /CapHeight 0 /Descent 0 /Flags 6 /FontBBox [-1 -214 1020 798] /FontName /CEBICF+MT-Extra /ItalicAngle 0 /StemV 53 /XHeight 0 /CharSet (/space/r/a/L/l/M/o/K) /FontFile3 86 0 R >> endobj 86 0 obj << /Filter [/ASCII85Decode /FlateDecode] /Length 668 /Subtype /Type1C >> stream -8;Ued?t!MPA7QBnG'3@tG16-od<2Q>.7s`"l2;0$p`[oW6\ai\%.b!LQJ[ifbk$*^ -I`V#7FoBV^2M^MqsgOqrqGc3N(XX7s*X=L5Vse;>W(5b?&$:m -:DY[uI&d(noqKR+N!tR!rqBDOV/lL)qRn0F:X@nd-#Dpq]B\PY1b<;;+oYu^kgIRG -^2mLMHiN7'Sbu^)=M?5YagWcS[jX&5TS0)BI6qFfpXIb#;EaB9f?Ko#F>6:&n&!ss -2l2Sl)Cq8:Pp!7?nf/J*;af endstream endobj 87 0 obj << /Type /FontDescriptor /Ascent 714 /CapHeight 708 /Descent -314 /Flags 4 /FontBBox [-181 -314 1065 831] /FontName /CEKOMM+ZapfChancery-MediumItalic /ItalicAngle -14 /StemV 70 /XHeight 438 /FontFile2 88 0 R >> endobj 88 0 obj << /Filter [/ASCII85Decode /FlateDecode] /Length 6793 /Length1 8536 >> stream -8;YhsCJ\$_(&mp[kM-FN$:KM;/jbX4U8VbU&4Oth5sW*@UXplfE2>#rHkU6P[0@;@ -`3r$3Rp(2NN(K79C8eNN#;`?]:6J5)a]'WT'5Qu3Vo'?!j3W/Lm0,O/Sc7oXhE1&X -CTY;Eg?Z/m3D]^MYR;BKH1T'N.*3n9!(csJg>^Z5jYb:Aql0X'!)V"FhRY`3:XLDq -Epak-?,;seeO,q^qDZ2n7c"&$lg'/?:N)d3$r3PEnPtk9'rO1CrBN,L9Wk*6o'c:$ -Y5^$6;,u/9\,S(-jDdFT!d<5m%BI[u[f,hO5Q^[^T'Gn62;s\K3r7=Joh!Jp='*-7 -7b=ho`&g*]>g8!tS))CNK>^M@?aI#Ck490T*s]GG8V>BJ0!o'q?:$MEo&!)sJ*U%m -!WGmS3jB`T<[8U#8s4_(.`gB)B+K>%c -ZZ?AQc@7U,>h26m+`#RcTQFNHj^3IW$kU`Q3&#Jh2;M&A_C.Pn,#uf4"qVM -*,D*KFR))-0?6+L2S17W+'Cs.X?,--]aP_DFK?eG`qAk,T>oYPmm.-Or.B*WFGTKa -NjOG<,jI(NneKlHTmGK0A)fc;#W+OH&T?QLS*qi:COYXpY2\QRAqK2`46TQBs`"eT0e:( -Lb-j7E_Nfk8>0>CB&':\^pTO=CgFeaMmT-H34TBLpJjPA<,oq@Z+[tSnroRX[lHCo;E^!K=)%B@uB83cfn:LQ]l -3UFKc,N>O!*hrX_UE?>2]jIu?AFaZH/,$VbbuGLX8Tgskk&6P#j?8p0Ia@oOj-jHN -EeETqe$l2u9TPW+@?:>K]eG_ZaYs,k*2W.EY"E`"c6o@t#pe9r\bB3aKE6s?*H.Bn -,J@mjmC3&.kqUX;pIE]q1L4c4IYeWnMYA9a*/Hl"t>h,2Q?&NhVs,5;hf -6PA.7"^f.]if?KW;"06lY@7`+dF,'t9'HSTCW9'-pLW7V"MZJ`"+m^a(pOBgLu4=C -)J.0B_0rWOjT5Bf`dCC5f@\8*b#%BsapQ%%]ZBj>"R9;-S`)H?/c9Lc`OCMM6#`a[ -2u+fMij6W`6rPc6]O2b.8>*XW'LL,f;$D'/p8*M[EpQ -n/LjBnN#R/"kR6)*i&E$=@C:#)Jf.sU%*9>4#O%j;]9F^D,@N8M(E*>P)-08McO6j --I]sa=gcENOT(Ngr(84Ib='*sDfO#C0`3]2ZkUuF916*g0S$>MQBhTrL)++E02ptd -Z=AIDHs'Z'R4T#1J%u.NrbNkM?lm(8>,[o`>T&(WlYCIW]1?^9Ct-4U$(b -H#YgX8R6o>q]+\g]?&qjQTE$"f"QY&Zg8Z(ZI`bHAg*-Gj_ -'@"3F)U6S*.PYQYL)g--87L%]1o:dO1*%OhhoI.1Ch@Sj[:W/Ibo,"*I:[4gPPe.= -1T$%h=5YBM8/REhAAmoD$Q`^G(Z9TYcW$BCJLN0?,/7?\lSL-7Yh]>o_VZ(C5p(I.:O>9f%'SoXiCED*BKeH$m>M_'ULI`# -n3[@$&PXhRrDD:)'jZc+oRJRJgeUDs0+D>Y[.%8eLe[2.3(D&^6%T\hHc,Y)derb/ -&\ZD1+a8:p2L<<9,:D5tH=iE.Zm6S_GXs)PW,P-Nl,Kk#n'A1"1uS5u.ZVTNNJ(])VC($0#M -![Yg,Mrs*GS<5[SdY,il0nZ7l@\8V*6/qCm&IHk,.QIa!d@D(8QXB*9c&.@;bK=(M -kg)H)F)cK_^Z_iofI$#Jmbcjrc9=>`q9J\B4#t%tYnK?34,t!/Gr[$&[R63D8fjA: -)@2B*b>p##c-hlc#n\1(h4PIa%pI\gXib,omA>!rdV5GH[UlT)KE`>0Wt^Ym7S'T4 -A\W<7Xo'p,ZM"+[GGj?eoD8H8=/brSSK`2Hpo*DDT1FKGOO]);O_BDC!]Y4HJ^o?f -e65lR#VQJ87%su!$>PQN"2ZmgN%+gt!(TUG."Dpi9Cn=`K1_eeIh$uB35L/*!oLM? -ZD]$@VkSWqVtqKJqK3#Fq%l>=NmdcdO6K6eYJ&T -j%2?V*jQ<,CfJ@Ir35"fN/B0Uq+\LF?7R_0HJP6,W9^SDfjn##O+U,L<'/LL"VYiXUOp,30TX\k)?[^V.#C -E"*hIfH=G#J4fs\idd[533n-;'V0LFhO\f'4?0VcKVnaHJV5+2P55g -j0t3WZMD[^]F5_PN?7`tUYe]uA`^M>*EtE;ps5"mS8DC:=2ljG@TTfPfTVn&D-38> -AXaU-lT>dep"H6S&p)_c]agBb,A7p2('b[p()t]6ZA`Ws=-mdLj:/]g/8&`fduF(4 -YfA>\^^I9iTU5PSUcn*$Q][LjS"o*]MK"1U`Ln=rsb?J?&,^-kltU$:7_g+j:LoE/cXnje0P2 -W%JUb:[Hm$n20'#p0mgW,t_b6%&m2K&(&5[hL)<>V/j&4/(M(Co%JP&A)52i^XH2I -KLN-?>DOknX!1=?Yj[rY-+2P*9+-+)e1?3,=RbWH*\k*)Br]?>)9]QDluiA>:L6LfYA\?!3[J5upJd&2]\XN5f<'&#RFCUrN[<^lY@cG;A8q9Bq%"NbH7CK^IfZQ8s)qA! -8!"Jm`c$Ur9f=YqXQd@:,!-Zk2b#%1t@pLtW/Eb1+6tB:_>u_bsd:'!_ -8#V+F8A)/X+Z,&Xh((dbKdgG>Ot3!pJ]RfN3h24qUkf*r+)h91/c/\UXOdKO+!=%) -+N.jpo=F[ca2UXfZcrPJW_dARp[Q/.f5s]dlof@QXmuD2!$K*>pb&+9-=mHEK"*fp -4$%-AoFk!17(Lm]ktI#5P'6-irASMT50)$7\_;C,cQ)]0W!bu -i\imh>bE;?SAqmNb2&m;e,[SKF`r02gQS?0EcpXQJqK85E'Zr/\grLnZ$oVg\$bb* -o[XG.`qb,S*CY$MJN372RYChW*0X%k\U?%mYO]l"-_b]Mm<:eB4QbUGJ+i.):s"Q\E3R!8bG@"?93tXP[N\H=%L[!jRrcgTMH$e$"nGWt-nnO5L_tZa4EhI](Dc.7]:D3M -5?d>]V,"Kl&R48Q>7<5iRYAi3h^/V!M38fZ4.m<3qW0?u\C\c

8<$MG]J\V0o#JSG_%OJ=:YD\ -!1`3gNZ[D%+!6ti=n_s!!ad,6H(*WCU;@3_c+bVIa!Tbn.O]%+fgJF7/]H*g0!ERK -cE&0:Vt2'o;M0$gNRTQCUc)qC.P<8)$2.H:!.`=r\-2a@&QG$Yb&:WQTTn>7Mp6Ns -cdSg),!qW"Sk(0k33#[SjR2g9B)_rkZCGWV[/CjAohYNhbLtc8F(d?p&"WU:eJj:@ -:I"XUs7PV*Kb6\\-=;#0\#Z7[&d^]#F%+c[Qeqq&]mUFirr)0\6qn00k22QhVthuY -5844(:,kPqj$+0kKO'*eQ'>s3W\s';eCm'g$AF/N71qY^dFDj>#=XJ#+j&t2=Vo@l -[?q#tNOnIgY(H0%&r"(ol]t-&g(4R/3rmgB)cs^JI9I7X@'@XqVg*Cqp,kW6WrIfs -#na&af&/Q%V-btWPDDY\3X$H-6UD''&0]Z#9Zc6E5ef;tbfHU\><8h]jL*ZBG,7tE -"?2&\Y3s(Iq;j5E-p0AG8Y5=0mI";1Y?CP`9\nrs5Ee^ULYHIuI3:1!+B33)q8HR( -NYksPZh%FhJ,8T8Ggk?O19_fn]Is36NCF?N])!eX,?r\O:2h((pbUgt+82b;VhlN' -T:)8<[\_e4CpDF.dOM^5/OG#_5ccS?$FC/'W'$^UMc?r)KLUfTf;MJO*kXr!eAR`A -W/3`(&kn8\-8.P$M:'8/e\i7;Ml41F1#?@b]Qq5-k3U=;m-M4=S2hg"caG2,XuPbF -B2aj?J'-L]%7M7-ic?CJaMR\Wta')$?23&a#t -HL[qrSs3;Z&H;-2Uqh -K>hs3nETBMZnW+0%,N3k@m%$Gn#5m.SE2^j2_OoI8'^U'XKH+0r=QBL=54t%#N?;Q -?PF[Ci3he"MaH)oa7kjitl2#?1:3aVHU)?dkT<+hY[nonfLM_]F8a\+^4-KF"\GOj2Jpqb_K7; -<'V1a25mr@FT;l1&G^0uhF5.t$&l\QaKm'602-4]2lMVfTm!D,[860k1\:2:5L\]+%#^IoV2/DQj%7TE6c$j6%i0kcf#NR -%%j4XC\U"[M,W[&hOI,9%h+GY.&0.tiRGeF0Tk([cL-`h%ZR*s;=lUt$n7Qo.HnZi%qK)WCFB+e:Cp`/YT)$CDa28;8SfEb]>&dWde25k -'VTIc3Bi"a;cHU."9@Bi.9hlM3=dGj1\C6^$RLbY+rcV^p7inaUHqlPW>RK%$d\T! -m5L8\f;#7!5O endstream endobj 89 0 obj << /Type /FontDescriptor /Ascent 714 /CapHeight 708 /Descent -314 /Flags 4 /FontBBox [-181 -314 1065 831] /FontName /CEKONP+ZapfChancery-MediumItalic+2 /ItalicAngle -14 /StemV 70 /XHeight 438 /FontFile2 90 0 R >> endobj 90 0 obj << /Filter [/ASCII85Decode /FlateDecode] /Length 3118 /Length1 5184 >> stream -8;Z\7I8Eqa('![WHg_&)I4,Cj63NE!d8rbPN#rm)5Qh-aZkeM+,4NMR'GNb[9f9<_ -';]BsU"6*lc\s0L+c\E:[F727OgNYQ;U]V@NRL268aKRF0ZM3op>,`A]SC"GC"&LD -O(R*ikPY%DZb'krSiuu@TE#D>dhCCQNMZe2OM1C\i#"iA#j9OYd1C\:>W:^iO0W2noAc -r2e)[4oDm2Ok>D].Rh^A6RAjNa)0fiN5J5oWTicuM<-e<8l:AnBf2P5fjbsZ+U9[[ -1qM3aS=uM2W-;5cq0,i4]f,H/8ucq!jlR6")8o811JhL#67#j3U>+Rh6cpDq2tD]XU;'plP=na[X+(2qsg2!#Kb6l -k6q]G`TVL*)6JsI:SZZ)'DYJcVP4-GedSTRD,Nrq76=#m2e0iC0A#AJ[^HksVYPS? -bQYC;\I0q:hHZKjR.rBjc0n.EaoqGRmDp -beP2tY\\KOdBC$+""[[4*+hhUhR4%oVY[rM]aSQ?/3HN',hj]QrA_e,H95lpk6C/b -Bg:]IQF)9I,jI(Bni>EL9O76"(`S+'j3[&W6aD-`l_71/e-.8HY\t],52u7?guL;= --eN__j-Q9?#0GtSr:G3E.BUnb"[+_jJA,Alf9!-2_PO?W+?tmp -Y3Y*Rkc'rcqL"UhX:R.#QaSpCj!\NoGfF`V?KSpsh\WWT8WJ;>c;K-gf>9I,rYCp2 -+jSidH#QNus/8_C8+\B.r4@a&^O,1ID]^@efABIFomQHiUb?s?Bg6!t;]Ug*T3`;i -5X27WnPHi4KiG,'Y;5KKCicb)ND:'$4"!m$GmA&[+f>ihgFlrd^56%E-+dFgg#dt2 -p56E[H)+n.',b&]gPj0i`aus.OnCeIf:"[Q0Q&6ugg;FO)5$,FCZ96_*c9jNm'hOgD=iCi(Oh!YT"336g[2#o -gIFJOqMo'2A/sahh%E;BJ+lbbhrmQ6RKqG[OA,SS?H&F9>]Wn@l;W0]M=Jcq6JNqe -eZZN5;V@q+\_M)n`oO8D*L!6F:REBA@kQ!bg>j+NAKDRWAR3!f.Z5Za.T/gGQ0R2f ->,4P8M2b]7">T#(eT$R)2XnWdN]G"*4DUeG1?:QajQCB<@?K3EM -pL68T2/2_%Ed=OP63?s]LaW44hBSKQO?Xo^?KKG(ekr>75DNq@GZ_0WB2ZB -6\5OH%g`/"E50WaqgpJ/3q7Qkh^A2)_7b(3@qfX1StP]rdCt`Hr>rf2 -\<#:!"iP?#/39TO0#=+,k4ts*cXRP5_e\VsNKQig%V]?rNG!N4:SI2Zd2?9Nlb[S( -[J63[cNnD#r$lVO/O!rt75Sk5?P[IS%k4m;MA#-`*a1_51.J0ef2!`2P]duK>6NPf -!cae#c);pH$,75d'A!NI.+j'Jn,TRL?jS-sCHT`5KuRlaSJq1F.?.?U2C-\K_[L!+ -dYKcD74[mF*heRYdV>WQ(B(;"qA"7:pa+<@k:Nj)",:/0QCbm.@[1Vm$=Qh;nrHnN<1ntjdLKWgC9 -lUrFboI7dB`l2B^&p;0VmgDt1GEKf6EU!t9\b;0"o9hV'Up&0Z'Him4+17n:L9eRTjH;&l/1HT9KJ\p?hFDTX(+GO`7iF]4 -auqPEqd2-$$pH.#*Q&=YN_\WI9]f+1]2]6B0i^u".2)5g_9&uHPGHH972$6&a;k0f -HVY?tn63-OAe#bSQJd#(EIq[H(GZ-6n-%-$=,d,E_,TQ?OS2R@1;'JSL*+CJUNpmK -h3fOWqo-R'_C#\N'[6pGqu*lV6?ENcri"+\p*XJpObRpG[.%8mLe[28/EQc_f* -6K'OYj;a<'-0Z]dm+UaK]M-_uN6gf^gZmT^'Bq1a;S -Yg1LN4K$[.s8C8nk%C+^@JhFoSq7kLEq+uNrQ.bth*7Af\O"ugk=1p'7<&%`BY5Sn -hS;@`&];)1MRFNm<)LhKpdKFoS9ZX%NhtlH[ZBnn:X@iohV=q(UV'>#;NuBfY9'-6 -:f:U8S5<5A'Ui*1]r%ZE?#/Bg]%Y[R)Afb[2ls0M0]bOHK(jEh:ZZW2,_E[gWqakR -U9F1`:9*HgWeR^PFaU/_i!iaRIMHde#1fmQ(]+C2`i.qPC,PlGo#9"ng'1/,@e%4P -#$4K$I)igGdFqhK5Mm>B_"WEVX&NIuL2d:!hVnM])G&;-cjXV^69N&`$3nk@M*2D( -3.+QtTYLRbQJi6V.8pL/[/f_RRu$7tr&.n"(cfC3(EYI:dn:/l1&:#(G7B<_>:DNX -6-TQ=0E endstream endobj 5 0 obj << /Type /Font /Subtype /Type1 /Name /F3 /Encoding 91 0 R /BaseFont /Helvetica >> endobj 6 0 obj << /Type /Font /Subtype /Type1 /Name /F4 /BaseFont /Times-Bold >> endobj 7 0 obj << /Type /Font /Subtype /Type1 /Name /F5 /Encoding 91 0 R /BaseFont /Times-Bold >> endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name /F6 /FirstChar 32 /LastChar 251 /Widths [250 278 333 500 500 833 778 222 333 333 500 600 250 333 250 278 500 500 500 500 500 500 500 500 500 500 250 250 600 600 600 389 800 833 778 667 778 722 833 722 778 722 556 778 722 1000 833 778 722 778 778 833 722 778 722 944 722 722 667 333 278 333 600 500 222 444 444 333 444 333 333 444 444 278 278 444 278 667 500 444 444 444 389 444 278 500 444 667 444 444 389 333 222 333 600 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 278 500 500 167 500 500 444 0 222 444 389 333 333 500 500 250 500 444 444 250 250 600 500 222 444 444 389 1000 1000 250 389 250 278 278 278 278 278 278 278 278 250 278 278 250 278 278 278 1000 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 1000 250 266 250 250 250 250 0 778 1000 266 250 250 250 250 250 556 250 250 250 278 250 250 0 444 556 444 ] /BaseFont /CDOKLO+Linotext /FontDescriptor 83 0 R >> endobj 9 0 obj << /Type /Font /Subtype /Type1 /Name /F7 /FirstChar 9 /LastChar 255 /Widths [250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 250 278 333 500 500 833 778 222 333 333 500 600 250 333 250 278 500 500 500 500 500 500 500 500 500 500 250 250 600 600 600 389 800 833 778 667 778 722 833 722 778 722 556 778 722 1000 833 778 722 778 778 833 722 778 722 944 722 722 667 333 278 333 600 500 278 444 444 333 444 333 333 444 444 278 278 444 278 667 500 444 444 444 389 444 278 500 444 667 444 444 389 333 222 333 600 250 833 833 667 722 833 778 778 444 444 444 444 444 444 333 333 333 333 333 278 278 278 278 500 444 444 444 444 444 500 500 500 500 444 400 500 500 444 500 600 444 800 800 900 278 278 0 1000 778 0 600 0 0 500 500 0 0 0 0 0 266 266 0 556 444 389 278 600 0 500 0 0 389 389 1000 250 833 833 778 1000 556 500 1000 444 444 222 222 600 0 444 722 167 0 333 333 500 500 444 250 222 444 1000 833 722 833 722 722 722 722 722 722 778 778 0 778 778 778 778 278 278 278 278 278 278 278 278 278 278 278 ] /Encoding 91 0 R /BaseFont /CDOKLO+Linotext /FontDescriptor 83 0 R >> endobj 10 0 obj << /Type /Font /Subtype /Type1 /Name /F8 /Encoding 92 0 R /BaseFont /Symbol >> endobj 16 0 obj << /Type /Font /Subtype /Type1 /Name /F10 /Encoding 91 0 R /BaseFont /Helvetica-Bold >> endobj 17 0 obj << /Type /Font /Subtype /Type1 /Name /F11 /BaseFont /Times-Roman >> endobj 18 0 obj << /Type /Font /Subtype /Type1 /Name /F12 /BaseFont /Times-Italic >> endobj 19 0 obj << /Type /Font /Subtype /Type1 /Name /F13 /FirstChar 32 /LastChar 125 /Widths [310 0 0 333 333 333 333 0 410 410 0 0 0 0 0 0 0 1001 1020 996 1001 0 1001 1020 996 0 0 0 640 0 640 0 0 0 0 823 549 0 0 0 0 660 0 1000 1000 333 1000 1000 0 863 0 0 0 660 0 0 0 0 0 0 0 0 0 0 247 987 685 675 0 0 600 0 500 0 0 0 434 549 0 400 600 0 410 410 410 410 410 410 0 0 0 856 0 856 ] /BaseFont /CEBICF+MT-Extra /FontDescriptor 85 0 R >> endobj 29 0 obj << /Type /Font /Subtype /TrueType /Name /F14 /FirstChar 61 /LastChar 110 /Widths [520 0 0 0 620 0 520 0 620 0 0 0 380 400 0 0 840 700 0 0 600 600 0 500 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 460 ] /BaseFont /CEKOMM+ZapfChancery-MediumItalic /FontDescriptor 87 0 R >> endobj 30 0 obj << /Type /Font /Subtype /TrueType /Name /F16 /FirstChar 0 /LastChar 219 /Widths [600 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 220 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 600 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 220 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 220 ] /BaseFont /CEKONP+ZapfChancery-MediumItalic+2 /FontDescriptor 89 0 R >> endobj 91 0 obj << /Type /Encoding /Differences [ 9/space 39/quotesingle 96/grave 128/Adieresis/Aring/Ccedilla/Eacute/Ntilde /Odieresis/Udieresis/aacute/agrave/acircumflex/adieresis/atilde/aring /ccedilla/eacute/egrave/ecircumflex/edieresis/iacute/igrave/icircumflex /idieresis/ntilde/oacute/ograve/ocircumflex/odieresis/otilde/uacute /ugrave/ucircumflex/udieresis/dagger/degree 164/section/bullet/paragraph /germandbls/registered/copyright/trademark/acute/dieresis/notequal/AE /Oslash/infinity/plusminus/lessequal/greaterequal/yen/mu/partialdiff /summation/product/pi/integral/ordfeminine/ordmasculine/Omega/ae /oslash/questiondown/exclamdown/logicalnot/radical/florin/approxequal/Delta /guillemotleft/guillemotright/ellipsis/space/Agrave/Atilde/Otilde/OE /oe/endash/emdash/quotedblleft/quotedblright/quoteleft/quoteright/divide /lozenge/ydieresis/Ydieresis/fraction/Euro/guilsinglleft/guilsinglright/fi /fl/daggerdbl/periodcentered/quotesinglbase/quotedblbase/perthousand/Acircumflex/Ecircumflex /Aacute/Edieresis/Egrave/Iacute/Icircumflex/Idieresis/Igrave/Oacute /Ocircumflex/apple/Ograve/Uacute/Ucircumflex/Ugrave 246/circumflex/tilde /macron/breve/dotaccent/ring/cedilla/hungarumlaut/ogonek/caron ] >> endobj 92 0 obj << /Type /Encoding /Differences [] >> endobj 2 0 obj << /Type /Page /Parent 12 0 R /Resources 4 0 R /Contents 3 0 R >> endobj 13 0 obj << /Type /Page /Parent 12 0 R /Resources 15 0 R /Contents 14 0 R >> endobj 20 0 obj << /Type /Page /Parent 12 0 R /Resources 22 0 R /Contents 21 0 R >> endobj 23 0 obj << /Type /Page /Parent 12 0 R /Resources 25 0 R /Contents 24 0 R >> endobj 26 0 obj << /Type /Page /Parent 12 0 R /Resources 28 0 R /Contents 27 0 R >> endobj 31 0 obj << /Type /Page /Parent 12 0 R /Resources 33 0 R /Contents 32 0 R >> endobj 34 0 obj << /Type /Page /Parent 12 0 R /Resources 36 0 R /Contents 35 0 R >> endobj 37 0 obj << /Type /Page /Parent 12 0 R /Resources 39 0 R /Contents 38 0 R >> endobj 40 0 obj << /Type /Page /Parent 12 0 R /Resources 42 0 R /Contents 41 0 R >> endobj 43 0 obj << /Type /Page /Parent 12 0 R /Resources 45 0 R /Contents 44 0 R >> endobj 46 0 obj << /Type /Page /Parent 50 0 R /Resources 48 0 R /Contents 47 0 R >> endobj 51 0 obj << /Type /Page /Parent 50 0 R /Resources 53 0 R /Contents 52 0 R >> endobj 54 0 obj << /Type /Page /Parent 50 0 R /Resources 56 0 R /Contents 55 0 R >> endobj 57 0 obj << /Type /Page /Parent 50 0 R /Resources 59 0 R /Contents 58 0 R >> endobj 60 0 obj << /Type /Page /Parent 50 0 R /Resources 62 0 R /Contents 61 0 R >> endobj 63 0 obj << /Type /Page /Parent 50 0 R /Resources 65 0 R /Contents 64 0 R >> endobj 66 0 obj << /Type /Page /Parent 50 0 R /Resources 68 0 R /Contents 67 0 R >> endobj 69 0 obj << /Type /Page /Parent 50 0 R /Resources 71 0 R /Contents 70 0 R >> endobj 72 0 obj << /Type /Page /Parent 50 0 R /Resources 74 0 R /Contents 73 0 R >> endobj 75 0 obj << /Type /Page /Parent 50 0 R /Resources 77 0 R /Contents 76 0 R >> endobj 78 0 obj << /Type /Page /Parent 81 0 R /Resources 80 0 R /Contents 79 0 R >> endobj 12 0 obj << /Type /Pages /Kids [2 0 R 13 0 R 20 0 R 23 0 R 26 0 R 31 0 R 34 0 R 37 0 R 40 0 R 43 0 R] /Count 10 /Parent 49 0 R >> endobj 50 0 obj << /Type /Pages /Kids [46 0 R 51 0 R 54 0 R 57 0 R 60 0 R 63 0 R 66 0 R 69 0 R 72 0 R 75 0 R] /Count 10 /Parent 49 0 R >> endobj 81 0 obj << /Type /Pages /Kids [78 0 R] /Count 1 /Parent 49 0 R >> endobj 49 0 obj << /Type /Pages /Kids [12 0 R 50 0 R 81 0 R ] /Count 21 /MediaBox [0 0 595 842] >> endobj 93 0 obj << /Type /Catalog /Pages 49 0 R >> endobj xref 0 94 0000000000 65535 f 0000000016 00000 n 0000160600 00000 n 0000000227 00000 n 0000002235 00000 n 0000155142 00000 n 0000155239 00000 n 0000155320 00000 n 0000155418 00000 n 0000156459 00000 n 0000157600 00000 n 0000141496 00000 n 0000162361 00000 n 0000160681 00000 n 0000002381 00000 n 0000008505 00000 n 0000157695 00000 n 0000157799 00000 n 0000157883 00000 n 0000157968 00000 n 0000160765 00000 n 0000008670 00000 n 0000014490 00000 n 0000160849 00000 n 0000014643 00000 n 0000021012 00000 n 0000160933 00000 n 0000021177 00000 n 0000027772 00000 n 0000158408 00000 n 0000158705 00000 n 0000161017 00000 n 0000027961 00000 n 0000034736 00000 n 0000161101 00000 n 0000034913 00000 n 0000040042 00000 n 0000161185 00000 n 0000040219 00000 n 0000045144 00000 n 0000161269 00000 n 0000045333 00000 n 0000052811 00000 n 0000161353 00000 n 0000052988 00000 n 0000058181 00000 n 0000161437 00000 n 0000058358 00000 n 0000064532 00000 n 0000162710 00000 n 0000162498 00000 n 0000161521 00000 n 0000064697 00000 n 0000071606 00000 n 0000161605 00000 n 0000071795 00000 n 0000079486 00000 n 0000161689 00000 n 0000079675 00000 n 0000086645 00000 n 0000161773 00000 n 0000086822 00000 n 0000097903 00000 n 0000161857 00000 n 0000098100 00000 n 0000106752 00000 n 0000161941 00000 n 0000106949 00000 n 0000110424 00000 n 0000162025 00000 n 0000110585 00000 n 0000118236 00000 n 0000162109 00000 n 0000118445 00000 n 0000127528 00000 n 0000162193 00000 n 0000127737 00000 n 0000136685 00000 n 0000162277 00000 n 0000136882 00000 n 0000141265 00000 n 0000162636 00000 n 0000141373 00000 n 0000141611 00000 n 0000141859 00000 n 0000143561 00000 n 0000143790 00000 n 0000144565 00000 n 0000144792 00000 n 0000151690 00000 n 0000151919 00000 n 0000159339 00000 n 0000160546 00000 n 0000162809 00000 n trailer << /Size 94 /Root 93 0 R /Info 1 0 R /ID [<334b4f79d006abcd77182e439adde7db><334b4f79d006abcd77182e439adde7db>] >> startxref 162860 %%EOF \ No newline at end of file diff --git a/boost/libs/math/doc/quaternion/TQE_EA.pdf b/boost/libs/math/doc/quaternion/TQE_EA.pdf deleted file mode 100644 index 3c8d06e3..00000000 Binary files a/boost/libs/math/doc/quaternion/TQE_EA.pdf and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb1.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb1.jpeg deleted file mode 100644 index 2e9f17c0..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb1.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb10.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb10.jpeg deleted file mode 100644 index e9cd4d25..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb10.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb11.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb11.jpeg deleted file mode 100644 index 0bb3023b..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb11.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb12.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb12.jpeg deleted file mode 100644 index 91735968..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb12.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb13.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb13.jpeg deleted file mode 100644 index ef4153df..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb13.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb14.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb14.jpeg deleted file mode 100644 index 18b84963..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb14.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb15.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb15.jpeg deleted file mode 100644 index 669becb8..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb15.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb16.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb16.jpeg deleted file mode 100644 index d82e39dc..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb16.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb17.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb17.jpeg deleted file mode 100644 index 18b84963..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb17.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb18.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb18.jpeg deleted file mode 100644 index cbf5a2b7..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb18.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb19.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb19.jpeg deleted file mode 100644 index 8be88b58..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb19.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb2.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb2.jpeg deleted file mode 100644 index 37c94b35..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb2.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb20.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb20.jpeg deleted file mode 100644 index 3be5f0ce..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb20.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb21.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb21.jpeg deleted file mode 100644 index fcd0e95b..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb21.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb22.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb22.jpeg deleted file mode 100644 index 1f8196e9..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb22.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb23.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb23.jpeg deleted file mode 100644 index 6a5e0da3..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb23.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb3.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb3.jpeg deleted file mode 100644 index 794a8bd3..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb3.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb4.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb4.jpeg deleted file mode 100644 index 8380ea46..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb4.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb5.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb5.jpeg deleted file mode 100644 index 8be88b58..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb5.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb6.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb6.jpeg deleted file mode 100644 index 9c2e8a33..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb6.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb7.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb7.jpeg deleted file mode 100644 index cbf5a2b7..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb7.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb8.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb8.jpeg deleted file mode 100644 index e2e76a02..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb8.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb9.jpeg b/boost/libs/math/doc/quaternion/graphics/quaternion_blurb9.jpeg deleted file mode 100644 index 50fe3bde..00000000 Binary files a/boost/libs/math/doc/quaternion/graphics/quaternion_blurb9.jpeg and /dev/null differ diff --git a/boost/libs/math/doc/quaternion/math-quaternion.qbk b/boost/libs/math/doc/quaternion/math-quaternion.qbk deleted file mode 100644 index 7ca04263..00000000 --- a/boost/libs/math/doc/quaternion/math-quaternion.qbk +++ /dev/null @@ -1,918 +0,0 @@ -[def __R ['[*R]]] -[def __C ['[*C]]] -[def __H ['[*H]]] -[def __O ['[*O]]] -[def __R3 ['[*'''R3''']]] -[def __R4 ['[*'''R4''']]] -[def __quadrulple ('''α,β,γ,δ''')] -[def __quat_formula ['[^q = '''α + βi + γj + δk''']]] -[def __quat_complex_formula ['[^q = ('''α + βi) + (γ + δi)j''' ]]] -[def __not_equal ['[^xy '''≠''' yx]]] - -[mathpart quaternions Quaternions] - -[section:quat_overview Overview] - -Quaternions are a relative of complex numbers. - -Quaternions are in fact part of a small hierarchy of structures built -upon the real numbers, which comprise only the set of real numbers -(traditionally named __R), the set of complex numbers (traditionally named __C), -the set of quaternions (traditionally named __H) and the set of octonions -(traditionally named __O), which possess interesting mathematical properties -(chief among which is the fact that they are ['division algebras], -['i.e.] where the following property is true: if ['[^y]] is an element of that -algebra and is [*not equal to zero], then ['[^yx = yx']], where ['[^x]] and ['[^x']] -denote elements of that algebra, implies that ['[^x = x']]). -Each member of the hierarchy is a super-set of the former. - -One of the most important aspects of quaternions is that they provide an -efficient way to parameterize rotations in __R3 (the usual three-dimensional space) -and __R4. - -In practical terms, a quaternion is simply a quadruple of real numbers __quadrulple, -which we can write in the form __quat_formula, where ['[^i]] is the same object as for complex numbers, -and ['[^j]] and ['[^k]] are distinct objects which play essentially the same kind of role as ['[^i]]. - -An addition and a multiplication is defined on the set of quaternions, -which generalize their real and complex counterparts. The main novelty -here is that [*the multiplication is not commutative] (i.e. there are -quaternions ['[^x]] and ['[^y]] such that __not_equal). A good mnemotechnical way of remembering -things is by using the formula ['[^i*i = j*j = k*k = -1]]. - -Quaternions (and their kin) are described in far more details in this -other [@../quaternion/TQE.pdf document] -(with [@../quaternion/TQE_EA.pdf errata and addenda]). - -Some traditional constructs, such as the exponential, carry over without -too much change into the realms of quaternions, but other, such as taking -a square root, do not. - -[endsect] - -[section:quat_header Header File] - -The interface and implementation are both supplied by the header file -[@../../../../boost/math/quaternion.hpp quaternion.hpp]. - -[endsect] - -[section:quat_synopsis Synopsis] - - namespace boost{ namespace math{ - - template class ``[link math_toolkit.quat quaternion]``; - template<> class ``[link math_toolkit.spec quaternion]``; - template<> class ``[link math_quaternion_double quaternion]``; - template<> class ``[link math_quaternion_long_double quaternion]``; - - // operators - template quaternion ``[link math_toolkit.quat_non_mem.binary_addition_operators operator +]`` (T const & lhs, quaternion const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_addition_operators operator +]`` (quaternion const & lhs, T const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_addition_operators operator +]`` (::std::complex const & lhs, quaternion const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_addition_operators operator +]`` (quaternion const & lhs, ::std::complex const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_addition_operators operator +]`` (quaternion const & lhs, quaternion const & rhs); - - template quaternion ``[link math_toolkit.quat_non_mem.binary_subtraction_operators operator -]`` (T const & lhs, quaternion const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_subtraction_operators operator -]`` (quaternion const & lhs, T const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_subtraction_operators operator -]`` (::std::complex const & lhs, quaternion const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_subtraction_operators operator -]`` (quaternion const & lhs, ::std::complex const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_subtraction_operators operator -]`` (quaternion const & lhs, quaternion const & rhs); - - template quaternion ``[link math_toolkit.quat_non_mem.binary_multiplication_operators operator *]`` (T const & lhs, quaternion const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_multiplication_operators operator *]`` (quaternion const & lhs, T const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_multiplication_operators operator *]`` (::std::complex const & lhs, quaternion const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_multiplication_operators operator *]`` (quaternion const & lhs, ::std::complex const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_multiplication_operators operator *]`` (quaternion const & lhs, quaternion const & rhs); - - template quaternion ``[link math_toolkit.quat_non_mem.binary_division_operators operator /]`` (T const & lhs, quaternion const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_division_operators operator /]`` (quaternion const & lhs, T const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_division_operators operator /]`` (::std::complex const & lhs, quaternion const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_division_operators operator /]`` (quaternion const & lhs, ::std::complex const & rhs); - template quaternion ``[link math_toolkit.quat_non_mem.binary_division_operators operator /]`` (quaternion const & lhs, quaternion const & rhs); - - template quaternion ``[link math_toolkit.quat_non_mem.unary_plus operator +]`` (quaternion const & q); - template quaternion ``[link math_toolkit.quat_non_mem.unary_minus operator -]`` (quaternion const & q); - - template bool ``[link math_toolkit.quat_non_mem.equality_operators operator ==]`` (T const & lhs, quaternion const & rhs); - template bool ``[link math_toolkit.quat_non_mem.equality_operators operator ==]`` (quaternion const & lhs, T const & rhs); - template bool ``[link math_toolkit.quat_non_mem.equality_operators operator ==]`` (::std::complex const & lhs, quaternion const & rhs); - template bool ``[link math_toolkit.quat_non_mem.equality_operators operator ==]`` (quaternion const & lhs, ::std::complex const & rhs); - template bool ``[link math_toolkit.quat_non_mem.equality_operators operator ==]`` (quaternion const & lhs, quaternion const & rhs); - - template bool ``[link math_toolkit.quat_non_mem.inequality_operators operator !=]`` (T const & lhs, quaternion const & rhs); - template bool ``[link math_toolkit.quat_non_mem.inequality_operators operator !=]`` (quaternion const & lhs, T const & rhs); - template bool ``[link math_toolkit.quat_non_mem.inequality_operators operator !=]`` (::std::complex const & lhs, quaternion const & rhs); - template bool ``[link math_toolkit.quat_non_mem.inequality_operators operator !=]`` (quaternion const & lhs, ::std::complex const & rhs); - template bool ``[link math_toolkit.quat_non_mem.inequality_operators operator !=]`` (quaternion const & lhs, quaternion const & rhs); - - template - ::std::basic_istream& ``[link math_toolkit.quat_non_mem.stream_extractor operator >>]`` (::std::basic_istream & is, quaternion & q); - - template - ::std::basic_ostream& operator ``[link math_toolkit.quat_non_mem.stream_inserter operator <<]`` (::std::basic_ostream & os, quaternion const & q); - - // values - template T ``[link math_toolkit.value_op.real_and_unreal real]``(quaternion const & q); - template quaternion ``[link math_toolkit.value_op.real_and_unreal unreal]``(quaternion const & q); - - template T ``[link math_toolkit.value_op.sup sup]``(quaternion const & q); - template T ``[link math_toolkit.value_op.l1 l1]``(quaternion const & q); - template T ``[link math_toolkit.value_op.abs abs]``(quaternion const & q); - template T ``[link math_toolkit.value_op.norm norm]``(quaternionconst & q); - template quaternion ``[link math_toolkit.value_op.conj conj]``(quaternion const & q); - - template quaternion ``[link math_quaternions.creation_spherical]``(T const & rho, T const & theta, T const & phi1, T const & phi2); - template quaternion ``[link math_quaternions.creation_semipolar semipolar]``(T const & rho, T const & alpha, T const & theta1, T const & theta2); - template quaternion ``[link math_quaternions.creation_multipolar multipolar]``(T const & rho1, T const & theta1, T const & rho2, T const & theta2); - template quaternion ``[link math_quaternions.creation_cylindrospherical cylindrospherical]``(T const & t, T const & radius, T const & longitude, T const & latitude); - template quaternion ``[link math_quaternions.creation_cylindrical cylindrical]``(T const & r, T const & angle, T const & h1, T const & h2); - - // transcendentals - template quaternion ``[link math_toolkit.trans.exp exp]``(quaternion const & q); - template quaternion ``[link math_toolkit.trans.cos cos]``(quaternion const & q); - template quaternion ``[link math_toolkit.trans.sin sin]``(quaternion const & q); - template quaternion ``[link math_toolkit.trans.tan tan]``(quaternion const & q); - template quaternion ``[link math_toolkit.trans.cosh cosh]``(quaternion const & q); - template quaternion ``[link math_toolkit.trans.sinh sinh]``(quaternion const & q); - template quaternion ``[link math_toolkit.trans.tanh tanh]``(quaternion const & q); - template quaternion ``[link math_toolkit.trans.pow pow]``(quaternion const & q, int n); - - } // namespace math - } // namespace boost - -[endsect] - -[section:quat Template Class quaternion] - - namespace boost{ namespace math{ - - template - class quaternion - { - public: - - typedef T ``[link math_toolkit.mem_typedef value_type]``; - - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(T const & requested_a = T(), T const & requested_b = T(), T const & requested_c = T(), T const & requested_d = T()); - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(::std::complex const & z0, ::std::complex const & z1 = ::std::complex()); - template - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(quaternion const & a_recopier); - - T ``[link math_toolkit.quat_mem_fun.real_and_unreal_parts real]``() const; - quaternion ``[link math_toolkit.quat_mem_fun.real_and_unreal_parts unreal]``() const; - T ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_1]``() const; - T ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_2]``() const; - T ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_3]``() const; - T ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_4]``() const; - ::std::complex ``[link math_toolkit.quat_mem_fun.individual_complex_components C_component_1]``() const; - ::std::complex ``[link math_toolkit.quat_mem_fun.individual_complex_components C_component_2]``() const; - - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(quaternion const & a_affecter); - template - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(quaternion const & a_affecter); - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(T const & a_affecter); - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(::std::complex const & a_affecter); - - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(T const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(T const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(T const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(T const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(quaternion const & rhs); - }; - - } // namespace math - } // namespace boost - -[endsect] - -[section:spec Quaternion Specializations] - - namespace boost{ namespace math{ - - template<> - class quaternion - { - public: - typedef float ``[link math_toolkit.mem_typedef value_type]``; - - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(float const & requested_a = 0.0f, float const & requested_b = 0.0f, float const & requested_c = 0.0f, float const & requested_d = 0.0f); - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(::std::complex const & z0, ::std::complex const & z1 = ::std::complex()); - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(quaternion const & a_recopier); - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(quaternion const & a_recopier); - - float ``[link math_toolkit.quat_mem_fun.real_and_unreal_parts real]``() const; - quaternion ``[link math_toolkit.quat_mem_fun.real_and_unreal_parts unreal]``() const; - float ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_1]``() const; - float ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_2]``() const; - float ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_3]``() const; - float ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_4]``() const; - ::std::complex ``[link math_toolkit.quat_mem_fun.individual_complex_components C_component_1]``() const; - ::std::complex ``[link math_toolkit.quat_mem_fun.individual_complex_components C_component_2]``() const; - - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(quaternion const & a_affecter); - template - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(quaternion const & a_affecter); - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(float const & a_affecter); - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(::std::complex const & a_affecter); - - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(float const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(float const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(float const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(float const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(quaternion const & rhs); - }; - -[#math_quaternion_double] - - template<> - class quaternion - { - public: - typedef double ``[link math_toolkit.mem_typedef value_type]``; - - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(double const & requested_a = 0.0, double const & requested_b = 0.0, double const & requested_c = 0.0, double const & requested_d = 0.0); - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(::std::complex const & z0, ::std::complex const & z1 = ::std::complex()); - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(quaternion const & a_recopier); - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(quaternion const & a_recopier); - - double ``[link math_toolkit.quat_mem_fun.real_and_unreal_parts real]``() const; - quaternion ``[link math_toolkit.quat_mem_fun.real_and_unreal_parts unreal]``() const; - double ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_1]``() const; - double ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_2]``() const; - double ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_3]``() const; - double ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_4]``() const; - ::std::complex ``[link math_toolkit.quat_mem_fun.individual_complex_components C_component_1]``() const; - ::std::complex ``[link math_toolkit.quat_mem_fun.individual_complex_components C_component_2]``() const; - - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(quaternion const & a_affecter); - template - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(quaternion const & a_affecter); - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(double const & a_affecter); - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(::std::complex const & a_affecter); - - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(double const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(double const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(double const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(double const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(quaternion const & rhs); - }; - -[#math_quaternion_long_double] - - template<> - class quaternion - { - public: - typedef long double ``[link math_toolkit.mem_typedef value_type]``; - - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(long double const & requested_a = 0.0L, long double const & requested_b = 0.0L, long double const & requested_c = 0.0L, long double const & requested_d = 0.0L); - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(::std::complex const & z0, ::std::complex const & z1 = ::std::complex()); - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(quaternion const & a_recopier); - explicit ``[link math_toolkit.quat_mem_fun.constructors quaternion]``(quaternion const & a_recopier); - - long double ``[link math_toolkit.quat_mem_fun.real_and_unreal_parts real]``() const; - quaternion ``[link math_toolkit.quat_mem_fun.real_and_unreal_parts unreal]``() const; - long double ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_1]``() const; - long double ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_2]``() const; - long double ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_3]``() const; - long double ``[link math_toolkit.quat_mem_fun.individual_real_components R_component_4]``() const; - ::std::complex ``[link math_toolkit.quat_mem_fun.individual_complex_components C_component_1]``() const; - ::std::complex ``[link math_toolkit.quat_mem_fun.individual_complex_components C_component_2]``() const; - - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(quaternion const & a_affecter); - template - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(quaternion const & a_affecter); - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(long double const & a_affecter); - quaternion& ``[link math_toolkit.quat_mem_fun.assignment_operators operator = ]``(::std::complex const & a_affecter); - - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(long double const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.addition_operators operator += ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(long double const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.subtraction_operators operator -= ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(long double const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.multiplication_operators operator *= ]``(quaternion const & rhs); - - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(long double const & rhs); - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(::std::complex const & rhs); - template - quaternion& ``[link math_toolkit.quat_mem_fun.division_operators operator /= ]``(quaternion const & rhs); - }; - - } // namespace math - } // namespace boost - -[endsect] - -[section:mem_typedef Quaternion Member Typedefs] - -[*value_type] - -Template version: - - typedef T value_type; - -Float specialization version: - - typedef float value_type; - -Double specialization version: - - typedef double value_type; - -Long double specialization version: - - typedef long double value_type; - -These provide easy acces to the type the template is built upon. - -[endsect] - -[section:quat_mem_fun Quaternion Member Functions] -[h3 Constructors] - -Template version: - - explicit quaternion(T const & requested_a = T(), T const & requested_b = T(), T const & requested_c = T(), T const & requested_d = T()); - explicit quaternion(::std::complex const & z0, ::std::complex const & z1 = ::std::complex()); - template - explicit quaternion(quaternion const & a_recopier); - -Float specialization version: - - explicit quaternion(float const & requested_a = 0.0f, float const & requested_b = 0.0f, float const & requested_c = 0.0f, float const & requested_d = 0.0f); - explicit quaternion(::std::complex const & z0,::std::complex const & z1 = ::std::complex()); - explicit quaternion(quaternion const & a_recopier); - explicit quaternion(quaternion const & a_recopier); - -Double specialization version: - - explicit quaternion(double const & requested_a = 0.0, double const & requested_b = 0.0, double const & requested_c = 0.0, double const & requested_d = 0.0); - explicit quaternion(::std::complex const & z0, ::std::complex const & z1 = ::std::complex()); - explicit quaternion(quaternion const & a_recopier); - explicit quaternion(quaternion const & a_recopier); - -Long double specialization version: - - explicit quaternion(long double const & requested_a = 0.0L, long double const & requested_b = 0.0L, long double const & requested_c = 0.0L, long double const & requested_d = 0.0L); - explicit quaternion( ::std::complex const & z0, ::std::complex const & z1 = ::std::complex()); - explicit quaternion(quaternion const & a_recopier); - explicit quaternion(quaternion const & a_recopier); - -A default constructor is provided for each form, which initializes -each component to the default values for their type -(i.e. zero for floating numbers). This constructor can also accept -one to four base type arguments. A constructor is also provided to -build quaternions from one or two complex numbers sharing the same -base type. The unspecialized template also sports a templarized copy -constructor, while the specialized forms have copy constructors -from the other two specializations, which are explicit when a risk of -precision loss exists. For the unspecialized form, the base type's -constructors must not throw. - -Destructors and untemplated copy constructors (from the same type) are -provided by the compiler. Converting copy constructors make use of a -templated helper function in a "detail" subnamespace. - -[h3 Other member functions] -[h4 Real and Unreal Parts] - - T real() const; - quaternion unreal() const; - -Like complex number, quaternions do have a meaningful notion of "real part", -but unlike them there is no meaningful notion of "imaginary part". -Instead there is an "unreal part" which itself is a quaternion, -and usually nothing simpler (as opposed to the complex number case). -These are returned by the first two functions. - -[h4 Individual Real Components] - - T R_component_1() const; - T R_component_2() const; - T R_component_3() const; - T R_component_4() const; - -A quaternion having four real components, these are returned by these four -functions. Hence real and R_component_1 return the same value. - -[h4 Individual Complex Components] - - ::std::complex C_component_1() const; - ::std::complex C_component_2() const; - -A quaternion likewise has two complex components, and as we have seen above, -for any quaternion __quat_formula we also have __quat_complex_formula. These functions return them. -The real part of `q.C_component_1()` is the same as `q.real()`. - -[h3 Quaternion Member Operators] -[h4 Assignment Operators] - - quaternion& operator = (quaternion const & a_affecter); - template - quaternion& operator = (quaternion const& a_affecter); - quaternion& operator = (T const& a_affecter); - quaternion& operator = (::std::complex const& a_affecter); - -These perform the expected assignment, with type modification if necessary -(for instance, assigning from a base type will set the real part to that -value, and all other components to zero). For the unspecialized form, -the base type's assignment operators must not throw. - -[h4 Addition Operators] - - quaternion& operator += (T const & rhs) - quaternion& operator += (::std::complex const & rhs); - template - quaternion& operator += (quaternion const & rhs); - -These perform the mathematical operation `(*this)+rhs` and store the result in -`*this`. The unspecialized form has exception guards, which the specialized -forms do not, so as to insure exception safety. For the unspecialized form, -the base type's assignment operators must not throw. - -[h4 Subtraction Operators] - - quaternion& operator -= (T const & rhs) - quaternion& operator -= (::std::complex const & rhs); - template - quaternion& operator -= (quaternion const & rhs); - -These perform the mathematical operation `(*this)-rhs` and store the result -in `*this`. The unspecialized form has exception guards, which the -specialized forms do not, so as to insure exception safety. -For the unspecialized form, the base type's assignment operators -must not throw. - -[h4 Multiplication Operators] - - quaternion& operator *= (T const & rhs) - quaternion& operator *= (::std::complex const & rhs); - template - quaternion& operator *= (quaternion const & rhs); - -These perform the mathematical operation `(*this)*rhs` [*in this order] -(order is important as multiplication is not commutative for quaternions) -and store the result in `*this`. The unspecialized form has exception guards, -which the specialized forms do not, so as to insure exception safety. -For the unspecialized form, the base type's assignment operators must not throw. - -[h4 Division Operators] - - quaternion& operator /= (T const & rhs) - quaternion& operator /= (::std::complex const & rhs); - template - quaternion& operator /= (quaternion const & rhs); - -These perform the mathematical operation `(*this)*inverse_of(rhs)` [*in this -order] (order is important as multiplication is not commutative for quaternions) -and store the result in `*this`. The unspecialized form has exception guards, -which the specialized forms do not, so as to insure exception safety. -For the unspecialized form, the base type's assignment operators must not throw. - -[endsect] -[section:quat_non_mem Quaternion Non-Member Operators] - -[h4 Unary Plus] - - template - quaternion operator + (quaternion const & q); - -This unary operator simply returns q. - -[h4 Unary Minus] - - template - quaternion operator - (quaternion const & q); - -This unary operator returns the opposite of q. - -[h4 Binary Addition Operators] - - template quaternion operator + (T const & lhs, quaternion const & rhs); - template quaternion operator + (quaternion const & lhs, T const & rhs); - template quaternion operator + (::std::complex const & lhs, quaternion const & rhs); - template quaternion operator + (quaternion const & lhs, ::std::complex const & rhs); - template quaternion operator + (quaternion const & lhs, quaternion const & rhs); - -These operators return `quaternion(lhs) += rhs`. - -[h4 Binary Subtraction Operators] - - template quaternion operator - (T const & lhs, quaternion const & rhs); - template quaternion operator - (quaternion const & lhs, T const & rhs); - template quaternion operator - (::std::complex const & lhs, quaternion const & rhs); - template quaternion operator - (quaternion const & lhs, ::std::complex const & rhs); - template quaternion operator - (quaternion const & lhs, quaternion const & rhs); - -These operators return `quaternion(lhs) -= rhs`. - -[h4 Binary Multiplication Operators] - - template quaternion operator * (T const & lhs, quaternion const & rhs); - template quaternion operator * (quaternion const & lhs, T const & rhs); - template quaternion operator * (::std::complex const & lhs, quaternion const & rhs); - template quaternion operator * (quaternion const & lhs, ::std::complex const & rhs); - template quaternion operator * (quaternion const & lhs, quaternion const & rhs); - -These operators return `quaternion(lhs) *= rhs`. - -[h4 Binary Division Operators] - - template quaternion operator / (T const & lhs, quaternion const & rhs); - template quaternion operator / (quaternion const & lhs, T const & rhs); - template quaternion operator / (::std::complex const & lhs, quaternion const & rhs); - template quaternion operator / (quaternion const & lhs, ::std::complex const & rhs); - template quaternion operator / (quaternion const & lhs, quaternion const & rhs); - -These operators return `quaternion(lhs) /= rhs`. It is of course still an -error to divide by zero... - -[h4 Equality Operators] - - template bool operator == (T const & lhs, quaternion const & rhs); - template bool operator == (quaternion const & lhs, T const & rhs); - template bool operator == (::std::complex const & lhs, quaternion const & rhs); - template bool operator == (quaternion const & lhs, ::std::complex const & rhs); - template bool operator == (quaternion const & lhs, quaternion const & rhs); - -These return true if and only if the four components of `quaternion(lhs)` -are equal to their counterparts in `quaternion(rhs)`. As with any -floating-type entity, this is essentially meaningless. - -[h4 Inequality Operators] - - template bool operator != (T const & lhs, quaternion const & rhs); - template bool operator != (quaternion const & lhs, T const & rhs); - template bool operator != (::std::complex const & lhs, quaternion const & rhs); - template bool operator != (quaternion const & lhs, ::std::complex const & rhs); - template bool operator != (quaternion const & lhs, quaternion const & rhs); - -These return true if and only if `quaternion(lhs) == quaternion(rhs)` is -false. As with any floating-type entity, this is essentially meaningless. - -[h4 Stream Extractor] - - template - ::std::basic_istream& operator >> (::std::basic_istream & is, quaternion & q); - -Extracts a quaternion q of one of the following forms -(with a, b, c and d of type `T`): - -[^a (a), (a,b), (a,b,c), (a,b,c,d) (a,(c)), (a,(c,d)), ((a)), ((a),c), ((a),(c)), ((a),(c,d)), ((a,b)), ((a,b),c), ((a,b),(c)), ((a,b),(c,d))] - -The input values must be convertible to `T`. If bad input is encountered, -calls `is.setstate(ios::failbit)` (which may throw ios::failure (27.4.5.3)). - -[*Returns:] `is`. - -The rationale for the list of accepted formats is that either we have a -list of up to four reals, or else we have a couple of complex numbers, -and in that case if it formated as a proper complex number, then it should -be accepted. Thus potential ambiguities are lifted (for instance (a,b) is -(a,b,0,0) and not (a,0,b,0), i.e. it is parsed as a list of two real numbers -and not two complex numbers which happen to have imaginary parts equal to zero). - -[h4 Stream Inserter] - - template - ::std::basic_ostream& operator << (::std::basic_ostream & os, quaternion const & q); - -Inserts the quaternion q onto the stream `os` as if it were implemented as follows: - - template - ::std::basic_ostream& operator << ( - ::std::basic_ostream & os, - quaternion const & q) - { - ::std::basic_ostringstream s; - - s.flags(os.flags()); - s.imbue(os.getloc()); - s.precision(os.precision()); - - s << '(' << q.R_component_1() << ',' - << q.R_component_2() << ',' - << q.R_component_3() << ',' - << q.R_component_4() << ')'; - - return os << s.str(); - } - -[endsect] - -[section:value_op Quaternion Value Operations] - -[h4 real and unreal] - - template T real(quaternion const & q); - template quaternion unreal(quaternion const & q); - -These return `q.real()` and `q.unreal()` respectively. - -[h4 conj] - - template quaternion conj(quaternion const & q); - -This returns the conjugate of the quaternion. - -[h4 sup] - -template T sup(quaternion const & q); - -This return the sup norm (the greatest among -`abs(q.R_component_1())...abs(q.R_component_4()))` of the quaternion. - -[h4 l1] - - template T l1(quaternion const & q); - -This return the l1 norm `(abs(q.R_component_1())+...+abs(q.R_component_4()))` -of the quaternion. - -[h4 abs] - - template T abs(quaternion const & q); - -This return the magnitude (Euclidian norm) of the quaternion. - -[h4 norm] - - template T norm(quaternionconst & q); - -This return the (Cayley) norm of the quaternion. -The term "norm" might be confusing, as most people associate it with the -Euclidian norm (and quadratic functionals). For this version of -(the mathematical objects known as) quaternions, the Euclidian norm -(also known as magnitude) is the square root of the Cayley norm. - -[endsect] - -[section:create Quaternion Creation Functions] - - template quaternion spherical(T const & rho, T const & theta, T const & phi1, T const & phi2); - template quaternion semipolar(T const & rho, T const & alpha, T const & theta1, T const & theta2); - template quaternion multipolar(T const & rho1, T const & theta1, T const & rho2, T const & theta2); - template quaternion cylindrospherical(T const & t, T const & radius, T const & longitude, T const & latitude); - template quaternion cylindrical(T const & r, T const & angle, T const & h1, T const & h2); - -These build quaternions in a way similar to the way polar builds complex -numbers, as there is no strict equivalent to polar coordinates for quaternions. - -[#math_quaternions.creation_spherical] `spherical` is a simple transposition of `polar`, it takes as inputs -a (positive) magnitude and a point on the hypersphere, given by three angles. -The first of these, `theta` has a natural range of `-pi` to `+pi`, and the other -two have natural ranges of `-pi/2` to `+pi/2` (as is the case with the usual -spherical coordinates in __R3). Due to the many symmetries and periodicities, -nothing untoward happens if the magnitude is negative or the angles are -outside their natural ranges. The expected degeneracies (a magnitude of -zero ignores the angles settings...) do happen however. - -[#math_quaternions.creation_cylindrical] `cylindrical` is likewise a simple transposition of the usual -cylindrical coordinates in __R3, which in turn is another derivative of -planar polar coordinates. The first two inputs are the polar coordinates of -the first __C component of the quaternion. The third and fourth inputs -are placed into the third and fourth __R components of the quaternion, -respectively. - -[#math_quaternions.creation_multipolar] `multipolar` is yet another simple generalization of polar coordinates. -This time, both __C components of the quaternion are given in polar coordinates. - -[#math_quaternions.creation_cylindrospherical] `cylindrospherical` is specific to quaternions. It is often interesting to -consider __H as the cartesian product of __R by __R3 (the quaternionic -multiplication as then a special form, as given here). This function -therefore builds a quaternion from this representation, with the __R3 -component given in usual __R3 spherical coordinates. - -[#math_quaternions.creation_semipolar] `semipolar` is another generator which is specific to quaternions. -It takes as a first input the magnitude of the quaternion, as a -second input an angle in the range `0` to `+pi/2` such that magnitudes -of the first two __C components of the quaternion are the product of the -first input and the sine and cosine of this angle, respectively, and finally -as third and fourth inputs angles in the range `-pi/2` to `+pi/2` which -represent the arguments of the first and second __C components of -the quaternion, respectively. As usual, nothing untoward happens if -what should be magnitudes are negative numbers or angles are out of their -natural ranges, as symmetries and periodicities kick in. - -In this version of our implementation of quaternions, there is no -analogue of the complex value operation `arg` as the situation is -somewhat more complicated. Unit quaternions are linked both to -rotations in __R3 and in __R4, and the correspondences are not too complicated, -but there is currently a lack of standard (de facto or de jure) matrix -library with which the conversions could work. This should be remedied in -a further revision. In the mean time, an example of how this could be -done is presented here for -[@../../example/HSO3.hpp __R3], and here for -[@../../example/HSO4.hpp __R4] -([@../../example/HSO3SO4.cpp example test file]). - -[endsect] - -[section:trans Quaternion Transcendentals] - -There is no `log` or `sqrt` provided for quaternions in this implementation, -and `pow` is likewise restricted to integral powers of the exponent. -There are several reasons to this: on the one hand, the equivalent of -analytic continuation for quaternions ("branch cuts") remains to be -investigated thoroughly (by me, at any rate...), and we wish to avoid the -nonsense introduced in the standard by exponentiations of complexes by -complexes (which is well defined, but not in the standard...). -Talking of nonsense, saying that `pow(0,0)` is "implementation defined" is just -plain brain-dead... - -We do, however provide several transcendentals, chief among which is the -exponential. This author claims the complete proof of the "closed formula" -as his own, as well as its independant invention (there are claims to prior -invention of the formula, such as one by Professor Shoemake, and it is -possible that the formula had been known a couple of centuries back, but in -absence of bibliographical reference, the matter is pending, awaiting further -investigation; on the other hand, the definition and existence of the -exponential on the quaternions, is of course a fact known for a very long time). -Basically, any converging power series with real coefficients which allows for a -closed formula in __C can be transposed to __H. More transcendentals of this -type could be added in a further revision upon request. It should be -noted that it is these functions which force the dependency upon the -[@../../../../boost/math/special_functions/sinc.hpp boost/math/special_functions/sinc.hpp] and the -[@../../../../boost/math/special_functions/sinhc.hpp boost/math/special_functions/sinhc.hpp] headers. - -[h4 exp] - - template quaternion exp(quaternion const & q); - -Computes the exponential of the quaternion. - -[h4 cos] - - template quaternion cos(quaternion const & q); - -Computes the cosine of the quaternion - -[h4 sin] - - template quaternion sin(quaternion const & q); - -Computes the sine of the quaternion. - -[h4 tan] - - template quaternion tan(quaternion const & q); - -Computes the tangent of the quaternion. - -[h4 cosh] - - template quaternion cosh(quaternion const & q); - -Computes the hyperbolic cosine of the quaternion. - -[h4 sinh] - - template quaternion sinh(quaternion const & q); - -Computes the hyperbolic sine of the quaternion. - -[h4 tanh] - - template quaternion tanh(quaternion const & q); - -Computes the hyperbolic tangent of the quaternion. - -[h4 pow] - - template quaternion pow(quaternion const & q, int n); - -Computes the n-th power of the quaternion q. - -[endsect] - -[section:quat_tests Test Program] - -The [@../../test/quaternion_test.cpp quaternion_test.cpp] -test program tests quaternions specializations for float, double and long double -([@../quaternion/output.txt sample output], with message output -enabled). - -If you define the symbol TEST_VERBOSE, you will get -additional output ([@../quaternion/output_more.txt verbose output]); -this will only be helpfull if you enable message output at the same time, -of course (by uncommenting the relevant line in the test or by adding -[^--log_level=messages] to your command line,...). In that case, and if you -are running interactively, you may in addition define the symbol -BOOST_INTERACTIVE_TEST_INPUT_ITERATOR to interactively test the input -operator with input of your choice from the standard input -(instead of hard-coding it in the test). - -[endsect] - -[section:exp The Quaternionic Exponential] - -Please refer to the following PDF's: - -*[@../quaternion/TQE.pdf The Quaternionic Exponential (and beyond)] -*[@../quaternion/TQE_EA.pdf The Quaternionic Exponential (and beyond) ERRATA & ADDENDA] - -[endsect] - -[section:acknowledgement Acknowledgements] - -The mathematical text has been typeset with -[@http://www.nisus-soft.com/ Nisus Writer]. Jens Maurer has helped with -portability and standard adherence, and was the Review Manager -for this library. More acknowledgements in the History section. -Thank you to all who contributed to the discution about this library. - -[endsect] - -[section:quat_history History] - -* 1.5.9 - 13/5/2013: Incorporated into Boost.Math. -* 1.5.8 - 17/12/2005: Converted documentation to Quickbook Format. -* 1.5.7 - 24/02/2003: transitionned to the unit test framework; now included by the library header (rather than the test files). -* 1.5.6 - 15/10/2002: Gcc2.95.x and stlport on linux compatibility by Alkis Evlogimenos (alkis@routescience.com). -* 1.5.5 - 27/09/2002: Microsoft VCPP 7 compatibility, by Michael Stevens (michael@acfr.usyd.edu.au); requires the /Za compiler option. -* 1.5.4 - 19/09/2002: fixed problem with multiple inclusion (in different translation units); attempt at an improved compatibility with Microsoft compilers, by Michael Stevens (michael@acfr.usyd.edu.au) and Fredrik Blomqvist; other compatibility fixes. -* 1.5.3 - 01/02/2002: bugfix and Gcc 2.95.3 compatibility by Douglas Gregor (gregod@cs.rpi.edu). -* 1.5.2 - 07/07/2001: introduced namespace math. -* 1.5.1 - 07/06/2001: (end of Boost review) now includes and instead of ; corrected bug in sin (Daryle Walker); removed check for self-assignment (Gary Powel); made converting functions explicit (Gary Powel); added overflow guards for division operators and abs (Peter Schmitteckert); added sup and l1; used Vesa Karvonen's CPP metaprograming technique to simplify code. -* 1.5.0 - 26/03/2001: boostification, inlining of all operators except input, output and pow, fixed exception safety of some members (template version) and output operator, added spherical, semipolar, multipolar, cylindrospherical and cylindrical. -* 1.4.0 - 09/01/2001: added tan and tanh. -* 1.3.1 - 08/01/2001: cosmetic fixes. -* 1.3.0 - 12/07/2000: pow now uses Maarten Hilferink's (mhilferink@tip.nl) algorithm. -* 1.2.0 - 25/05/2000: fixed the division operators and output; changed many signatures. -* 1.1.0 - 23/05/2000: changed sinc into sinc_pi; added sin, cos, sinh, cosh. -* 1.0.0 - 10/08/1999: first public version. - -[endsect] -[section:quat_todo To Do] - -* Improve testing. -* Rewrite input operatore using Spirit (creates a dependency). -* Put in place an Expression Template mechanism (perhaps borrowing from uBlas). -* Use uBlas for the link with rotations (and move from the -[@../../example/HSO3SO4.cpp example] -implementation to an efficient one). - -[endsect] -[endmathpart] - -[/ -Copyright 1999, 2005, 2013 Hubert Holin. -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). -] - - - - diff --git a/boost/libs/math/doc/quaternion/output.txt b/boost/libs/math/doc/quaternion/output.txt deleted file mode 100644 index f708e97e..00000000 --- a/boost/libs/math/doc/quaternion/output.txt +++ /dev/null @@ -1,29 +0,0 @@ -Results of quaternion test. - -(C) Copyright Hubert Holin 2003-2005. -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) - -Running 18 test cases... -Testing multiplication for float. -Testing multiplication for double. -Testing multiplication for long double. -Testing exp for float. -Testing exp for double. -Testing exp for long double. -Testing cos for float. -Testing cos for double. -Testing cos for long double. -Testing sin for float. -Testing sin for double. -Testing sin for long double. -Testing cosh for float. -Testing cosh for double. -Testing cosh for long double. -Testing sinh for float. -Testing sinh for double. -Testing sinh for long double. - -*** No errors detected - diff --git a/boost/libs/math/doc/quaternion/output_more.txt b/boost/libs/math/doc/quaternion/output_more.txt deleted file mode 100644 index fef55956..00000000 --- a/boost/libs/math/doc/quaternion/output_more.txt +++ /dev/null @@ -1,66 +0,0 @@ -Results of quaternion test. - -(C) Copyright Hubert Holin 2003-2005. -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) - -Running 19 test cases... -Testing multiplication for float. -Testing multiplication for double. -Testing multiplication for long double. -Testing exp for float. -Testing exp for double. -Testing exp for long double. -Testing cos for float. -Testing cos for double. -Testing cos for long double. -Testing sin for float. -Testing sin for double. -Testing sin for long double. -Testing cosh for float. -Testing cosh for double. -Testing cosh for long double. -Testing sinh for float. -Testing sinh for double. -Testing sinh for long double. -Please input a quaternion... -You have entered the quaternion (1,2,3,4) . -For this quaternion: -the value of the real part is 1 -the value of the unreal part is (0,2,3,4) -the value of the sup norm is 4 -the value of the l1 norm is 10 -the value of the magnitude (euclidian norm) is 5.47723 -the value of the (Cayley) norm is 30 -the value of the conjugate is (1,-2,-3,-4) -the value of the exponential is (1.69392,-0.78956,-1.18434,-1.57912) -the value of the cube is (-86,-52,-78,-104) -the value of the cosinus is (58.9336,-34.0862,-51.1293,-68.1724) -the value of the sinus is (91.7837,21.8865,32.8297,43.773) -the value of the tangent is (3.82105e-05,0.371397,0.557096,0.742794) -the value of the hyperbolic cosinus is (0.961585,-0.341352,-0.512028,-0.682704) -the value of the hyperbolic sinus is (0.732338,-0.448207,-0.672311,-0.896415) -the value of the hyperbolic tangent is (1.02487,-0.102296,-0.153444,-0.204591) -the value of the Sinus Cardinal (of index pi) is (13.6379,-5.38936,-8.08405,-10.7787) -the value of the Hyperbolic Sinus Cardinal (of index pi) is (-0.192222,-0.0637628,-0.0956441,-0.127526) - -The value of the quaternion represented in spherical form by rho = 2.82843 , theta = 0.785398 , phi1 = 0.785398 , phi2 = 0.785398 is (1,1,1.41421,2) -The value of the quaternion represented in semipolar form by rho = 2.82843 , alpha = 0.785398 , phi1 = 0.785398 , phi2 = 0.785398 is (1.41421,1.41421,1.41421,1.41421) -The value of the quaternion represented in multipolar form by rho1 = 1 , theta1 = 0 , rho2 = 2 , theta2 = 1.5708 is (1,0,-8.74228e-08,2) -The value of the quaternion represented in cylindrospherical form by t = 5 , radius = 1.41421 , longitude = 0.785398 , latitude = 1.0472 is (5,0.5,0.5,1.22474) -The value of the quaternion represented in cylindrical form by r = 1.41421 , angle = 0.785398 , h1 = 3 , h2 = 4 is (1,1,3,4) - -Real 1: 1 ; Complex 1: (1,0) ; Quaternion 1: (1,0,0,0) . -Complex i: (0,1) ; Quaternion i: (0,1,0,0) . -Quaternion j: (0,0,1,0) . -Quaternion k: (0,0,0,1) . - -i*i: (-1,0,0,0) ; j*j: (-1,0,0,0) ; k*k: (-1,0,0,0) . -i*j: (0,0,0,1) ; j*i: (0,0,0,-1) . -j*k: (0,1,0,0) ; k*j: (0,-1,0,0) . -k*i: (0,0,1,0) ; i*k: (0,0,-1,0) . - - -*** No errors detected - diff --git a/boost/libs/math/doc/roots/bad_root_1.svg b/boost/libs/math/doc/roots/bad_root_1.svg deleted file mode 100644 index ac34312d..00000000 --- a/boost/libs/math/doc/roots/bad_root_1.svg +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - Z - 0 - - - diff --git a/boost/libs/math/doc/roots/bad_root_2.svg b/boost/libs/math/doc/roots/bad_root_2.svg deleted file mode 100644 index edc6dd13..00000000 --- a/boost/libs/math/doc/roots/bad_root_2.svg +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - Z - 0 - - - - - diff --git a/boost/libs/math/doc/roots/bad_root_3.svg b/boost/libs/math/doc/roots/bad_root_3.svg deleted file mode 100644 index 78f515ff..00000000 --- a/boost/libs/math/doc/roots/bad_root_3.svg +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - Z - 0 - - - - - diff --git a/boost/libs/math/doc/roots/bad_root_4.svg b/boost/libs/math/doc/roots/bad_root_4.svg deleted file mode 100644 index 10d0daf5..00000000 --- a/boost/libs/math/doc/roots/bad_root_4.svg +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - Z - 0 - - - - - diff --git a/boost/libs/math/doc/roots/elliptic_table_100_gcc_X64_SSE2.qbk b/boost/libs/math/doc/roots/elliptic_table_100_gcc_X64_SSE2.qbk deleted file mode 100644 index 4087704f..00000000 --- a/boost/libs/math/doc/roots/elliptic_table_100_gcc_X64_SSE2.qbk +++ /dev/null @@ -1,20 +0,0 @@ -[/./../../../libs/math/doc/roots/elliptic_table_100_gcc_X64_SSE2.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program [@../../example/root_elliptic_finding.cpp root_elliptic_finding.cpp], - GNU C++ version 4.9.2, GNU libstdc++ version 20141030, Win32 -Compiled in optimise mode., _X64_SSE2] -[table:elliptic root with radius 28 and arc length 300) for float, double, long double and cpp_bin_float_50 types, using _X64_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 5][ 328][1.31][ -1][ ][ 8][ 875][1.51][ 0][ ][ 8][ 1109][1.69][ 4][ ][ 11][479687][1.49][ -3][ ]] -[[Newton ][ 3][ 328][1.31][ -1][ ][ 4][ 671][1.16][ 1][ ][ 4][ 781][1.19][ 1][ ][ 5][387500][1.20][ 0][ ]] -[[Halley ][ 2][ 250][[role blue 1.00]][ 0][ ][ 3][ 578][[role blue 1.00]][ 1][ ][ 3][ 656][[role blue 1.00]][ 7][ ][ 4][321875][[role blue 1.00]][ 0][ ]] -[[Schr'''ö'''der][ 3][ 375][1.50][ -1][ ][ 4][ 734][1.27][ 0][ ][ 4][ 828][1.26][ 3][ ][ 5][414062][1.29][ -2][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/elliptic_table_100_msvc_X64_AVX.qbk b/boost/libs/math/doc/roots/elliptic_table_100_msvc_X64_AVX.qbk deleted file mode 100644 index 99991322..00000000 --- a/boost/libs/math/doc/roots/elliptic_table_100_msvc_X64_AVX.qbk +++ /dev/null @@ -1,20 +0,0 @@ -[/./../../../libs/math/doc/roots/elliptic_table_100_msvc_X64_AVX.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program [@../../example/root_elliptic_finding.cpp root_elliptic_finding.cpp], - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode., _X64_AVX] -[table:elliptic root with radius 28 and arc length 300) for float, double, long double and cpp_bin_float_50 types, using _X64_AVX -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 5][ 500][1.33][ -1][ ][ 9][ 1046][1.72][ 1][ ][ 9][ 1062][1.70][ 1][ ][ 11][698437][1.54][ -3][ ]] -[[Newton ][ 3][ 484][1.29][ -1][ ][ 4][ 734][1.21][ 1][ ][ 4][ 687][1.10][ 1][ ][ 5][545312][1.20][ 0][ ]] -[[Halley ][ 2][ 375][[role blue 1.00]][ 0][ ][ 3][ 609][[role blue 1.00]][ 3][ ][ 3][ 625][[role blue 1.00]][ 3][ ][ 4][453125][[role blue 1.00]][ 0][ ]] -[[Schr'''ö'''der][ 3][ 546][1.46][ -1][ ][ 6][ 1109][1.82][ 1][ ][ 6][ 1187][1.90][ 1][ ][ 5][564062][1.24][ -2][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/elliptic_table_100_msvc_X86_AVX.qbk b/boost/libs/math/doc/roots/elliptic_table_100_msvc_X86_AVX.qbk deleted file mode 100644 index 18efcd25..00000000 --- a/boost/libs/math/doc/roots/elliptic_table_100_msvc_X86_AVX.qbk +++ /dev/null @@ -1,20 +0,0 @@ -[/..\..\..\../libs/math/doc/roots/elliptic_table_100_msvc_X86_AVX.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program [@../../example/root_elliptic_finding.cpp root_elliptic_finding.cpp], - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode., _X86_AVX] -[table:elliptic root with radius 28 and arc length 300) for float, double, long double and cpp_bin_float_50 types, using _X86_AVX -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 5][ 2187][1.56][ -1][ ][ 9][ 4062][1.86][ 1][ ][ 9][ 4062][1.86][ 1][ ][ 9][11104687][1.30][2027466061][ ]] -[[Newton ][ 3][ 2031][1.44][ -1][ ][ 4][ 2812][1.29][ 0][ ][ 4][ 2812][1.29][ 0][ ][ 5][10615625][1.24][2027466058][ ]] -[[Halley ][ 2][ 1406][[role blue 1.00]][ 0][ ][ 3][ 2187][[role blue 1.00]][ 1][ ][ 3][ 2187][[role blue 1.00]][ 1][ ][ 4][8567187][[role blue 1.00]][2027466060][ ]] -[[Schr'''ö'''der][ 3][ 2187][1.56][ -1][ ][ 4][ 2656][1.21][ 0][ ][ 4][ 2812][1.29][ 0][ ][ 5][10703125][1.25][2027466061][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/elliptic_table_100_msvc_X86_SSE2.qbk b/boost/libs/math/doc/roots/elliptic_table_100_msvc_X86_SSE2.qbk deleted file mode 100644 index 6663e92a..00000000 --- a/boost/libs/math/doc/roots/elliptic_table_100_msvc_X86_SSE2.qbk +++ /dev/null @@ -1,20 +0,0 @@ -[/./../../../libs/math/doc/roots/elliptic_table_100_msvc_X86_SSE2.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program [@../../example/root_elliptic_finding.cpp root_elliptic_finding.cpp], - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode., _X86_SSE2] -[table:elliptic root with radius 28 and arc length 300) for float, double, long double and cpp_bin_float_50 types, using _X86_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 5][ 515][1.43][ -1][ ][ 9][ 968][1.82][ 1][ ][ 9][ 968][1.82][ 1][ ][ 11][871875][1.53][ -3][ ]] -[[Newton ][ 3][ 453][1.26][ -1][ ][ 4][ 640][1.21][ 1][ ][ 4][ 640][1.21][ 1][ ][ 5][685937][1.20][ 0][ ]] -[[Halley ][ 2][ 359][[role blue 1.00]][ 0][ ][ 3][ 531][[role blue 1.00]][ 3][ ][ 3][ 531][[role blue 1.00]][ 3][ ][ 4][570312][[role blue 1.00]][ 0][ ]] -[[Schr'''ö'''der][ 3][ 484][1.35][ -1][ ][ 6][ 1000][1.88][ 1][ ][ 6][ 984][1.85][ 1][ ][ 5][742187][1.30][ -2][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/minima.qbk b/boost/libs/math/doc/roots/minima.qbk deleted file mode 100644 index 1c827ce7..00000000 --- a/boost/libs/math/doc/roots/minima.qbk +++ /dev/null @@ -1,264 +0,0 @@ -[section:brent_minima Locating Function Minima using Brent's algorithm] - -[import ../../example/brent_minimise_example.cpp] - -[h4 Synopsis] - -`` -#include - -`` - - template - std::pair brent_find_minima(F f, T min, T max, int bits); - - template - std::pair brent_find_minima(F f, T min, T max, int bits, boost::uintmax_t& max_iter); - -[h4 Description] - -These two functions locate the minima of the continuous function ['f] using -[@http://en.wikipedia.org/wiki/Brent%27s_method Brent's method]: specifically it -uses quadratic interpolation to locate the minima, or if that fails, falls back to -a [@http://en.wikipedia.org/wiki/Golden_section_search golden-section search]. - -[*Parameters] - -[variablelist -[[f] [The function to minimise: a function object (functor) that should be smooth over the - range ['\[min, max\]], with no maxima occurring in that interval.]] -[[min] [The lower endpoint of the range in which to search for the minima.]] -[[max] [The upper endpoint of the range in which to search for the minima.]] -[[bits] [The number of bits precision to which the minima should be found.[br] - Note that in principle, the minima can not be located to greater - accuracy than the square root of machine epsilon (for 64-bit double, sqrt(1e-16)[cong]1e-8), - therefore the value of ['bits] will be ignored if it's greater than half the number of bits - in the mantissa of T.]] -[[max_iter] [The maximum number of iterations to use - in the algorithm, if not provided the algorithm will just - keep on going until the minima is found.]] -] [/variablelist] - -[*Returns:] - -A `pair` of type T containing the value of the abscissa at the minima and the value -of ['f(x)] at the minima. - -[tip Defining BOOST_MATH_INSTRUMENT will show some parameters, for example: -`` - Type T is double - bits = 24, maximum 26 - tolerance = 1.19209289550781e-007 - seeking minimum in range min-4 to 1.33333333333333 - maximum iterations 18446744073709551615 - 10 iterations. -`` -] - -[h4:example Brent Minimisation Example] - -As a demonstration, we replicate this [@http://en.wikipedia.org/wiki/Brent%27s_method#Example Wikipedia example] -minimising the function ['y= (x+3)(x-1)[super 2]]. - -It is obvious from the equation and the plot that there is a -minimum at exactly one and the value of the function at one is exactly zero. - -[tip This observation shows that an analytical or -[@http://en.wikipedia.org/wiki/Closed-form_expression Closed-form expression] -solution always beats brute-force hands-down for both speed and precision.] - -[graph brent_test_function_1] - -First an include is needed: - -[brent_minimise_include_1] - -This function is encoded in C++ as function object (functor) using `double` precision thus: - -[brent_minimise_double_functor] - -The Brent function is conveniently accessed through a `using` statement (noting sub-namespace `::tools`). - -The search minimum and maximum are chosen as -4 to 4/3 (as in the Wikipedia example). - -[tip S A Stage (reference 6) reports that the Brent algorithm is ['slow to start, but fast to converge], -so choosing a tight min-max range is good.] - -For simplicity, we set the precision parameter `bits` to `std::numeric_limits::digits`, -which is effectively the maximum possible i.e. `std::numeric_limits::digits`/2. -Nor do we provide a maximum iterations parameter `max_iter`, -(perhaps unwidely), so the function will iterate until it finds a minimum. - -[brent_minimise_double_1] - -The resulting [@http://en.cppreference.com/w/cpp/utility/pair std::pair] -contains the minimum close to one and the minimum value close to zero. - - x at minimum = 1.00000000112345, f(1.00000000112345) = 5.04852568272458e-018 - -The differences from the expected ['one] and ['zero] are less than the -uncertainty (for `double`) 1.5e-008 calculated from -`sqrt(std::numeric_limits::digits) == 53`. - -We can use it like this to check that the two values are close-enough to those expected, - - using boost::math::fpc::is_close_to; - using boost::math::fpc::is_small; - - double uncertainty = sqrt(std::numeric_limits::digits); - is_close_to(1., r.first, uncertainty); - is_small(r.second, uncertainty); - - x == 1 (compared to uncertainty 0.00034527) is true - f(x) == 0 (compared to uncertainty 0.00034527) is true - -It is possible to make this comparison more generally with a templated function, -returning `true` when this criterion is met, for example: - -[brent_minimise_close] - -In practical applications, we might want to know how many iterations, -and maybe to limit iterations and -perhaps to trade some loss of precision for speed, for example: - -[brent_minimise_double_2] - -limits to a maximum of 20 iterations -(a reasonable estimate for this application, even for higher precision shown later). - -The parameter `it` is updated to return the actual number of iterations -(so it may be useful to also keep a record of the limit in `maxit`). - -It is neat to avoid showing insignificant digits by computing the number of decimal digits to display. - -[brent_minimise_double_3] - - Showing 53 bits precision with 9 decimal digits from tolerance 1.49011611938477e-008 - x at minimum = 1, f(1) = 5.04852568e-018 - -We can also half the number of precision bits from 52 to 26. - -[brent_minimise_double_4] - -showing no change in the result and no change in the number of iterations, as expected. - -It is only if we reduce the precision to a quarter, specifying only 13 precision bits - -[brent_minimise_double_5] - -that we reduce the number of iterations from 10 to 7 and the result significantly differing from ['one] and ['zero]. - - Showing 13 bits precision with 9 decimal digits from tolerance 0.015625 - x at minimum = 0.9999776, f(0.9999776) = 2.0069572e-009 after 7 iterations. - -[h5:template Templating on floating-point type] - -If we want to switch the floating-point type, then the functor must be revised. -Since the functor is stateless, the easiest option is to simply make -`operator()` a template member function: - -[brent_minimise_T_functor] - -The `brent_find_minima` function can now be used in template form. - -[brent_minimise_template_1] - -The form shown uses the floating-point type `long double` by deduction, -but it is also possible to be more explicit, for example: - - std::pair r = brent_find_minima - (func(), bracket_min, bracket_max, bits, it); - -In order to show the use of multiprecision below, it may be convenient to write a templated function to use this. - -[brent_minimise_T_show] - -We can use this with all built-in floating-point types, for example - -[brent_minimise_template_fd] - -and, on platforms that provide it, a -[@http://en.wikipedia.org/wiki/Quadruple-precision_floating-point_format 128-bit quad] type. -(See [@boost:libs/multiprecision/doc/html/boost_multiprecision/tut/floats/float128.html float128]). - -For this optional include, the build should define the macro BOOST_HAVE_QUADMATH: - -[brent_minimise_mp_include_1] - -or - -[brent_minimise_template_quad] - -[h5:multiprecision Multiprecision] - -If a higher precision than `double` (or `long double` if that is more precise) is required, -then this is easily achieved using __multiprecision with some includes from - -[brent_minimise_mp_include_0] - -and some `typdef`s. - -[brent_minimise_mp_typedefs] -Using thus - -[brent_minimise_mp_1] - -and with our show function - -[brent_minimise_mp_2] - -[brent_minimise_mp_output_1] - -[brent_minimise_mp_output_2] - -[tip One can usually rely on template argument deduction -to avoid specifying the verbose multiprecision types, -but great care in needed with the ['type of the values] provided -to avoid confusing the compiler. -] - -[tip Using `std::cout.precision(std::numeric_limits::digits10);` -or `std::cout.precision(std::numeric_limits::max_digits10);` -during debugging may be wise because it gives some warning if construction of multiprecision values -involves unintended conversion from `double` by showing trailing zero or random digits after -[@http://en.cppreference.com/w/cpp/types/numeric_limits/max_digits10 max_digits10], -that is 17 for `double`, digit 18... may be just noise.] - -The complete example code is at [@../../example/brent_minimise_example.cpp brent_minimise_example.cpp]. - -[h4 Implementation] - -This is a reasonably faithful implementation of Brent's algorithm. - -[h4 References] - -# Brent, R.P. 1973, Algorithms for Minimization without Derivatives, -(Englewood Cliffs, NJ: Prentice-Hall), Chapter 5. - -# Numerical Recipes in C, The Art of Scientific Computing, -Second Edition, William H. Press, Saul A. Teukolsky, -William T. Vetterling, and Brian P. Flannery. -Cambridge University Press. 1988, 1992. - -# An algorithm with guaranteed convergence for finding a zero -of a function, R. P. Brent, The Computer Journal, Vol 44, 1971. - -# [@http://en.wikipedia.org/wiki/Brent%27s_method Brent's method in Wikipedia.] - -# Z. Zhang, An Improvement to the Brent's Method, IJEA, vol. 2, pp. 2 to 26, May 31, 2011. -[@http://www.cscjournals.org/manuscript/Journals/IJEA/volume2/Issue1/IJEA-7.pdf ] - -# Steven A. Stage, Comments on An Improvement to the Brent's Method -(and comparison of various algorithms) -[@http://www.cscjournals.org/manuscript/Journals/IJEA/volume4/Issue1/IJEA-33.pdf] -Stage concludes that Brent's algorithm is slow to start, but fast to finish convergence, and has good accuracy. - -[endsect] [/section:rebt_minima Locating Function Minima] - -[/ - Copyright 2006, 2015 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/roots/root_comparison.qbk b/boost/libs/math/doc/roots/root_comparison.qbk deleted file mode 100644 index 866239ab..00000000 --- a/boost/libs/math/doc/roots/root_comparison.qbk +++ /dev/null @@ -1,250 +0,0 @@ -[/ -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - -[section:root_comparison Comparison of Root Finding Algorithms] - -[section:cbrt_comparison Comparison of Cube Root Finding Algorithms] - -In the table below, the cube root of 28 was computed for three __fundamental_types floating-point types, -and one __multiprecision type __cpp_bin_float using 50 decimal digit precision, using four algorithms. - -The 'exact' answer was computed using a 100 decimal digit type: - - cpp_bin_float_100 full_answer ("3.036588971875662519420809578505669635581453977248111123242141654169177268411884961770250390838097895"); - -Times were measured using __boost_timer using `class cpu_timer`. - -* ['Its] is the number of iterations taken to find the root. -* ['Times] is the CPU time-taken in arbitrary units. -* ['Norm] is a normalized time, in comparison to the quickest algorithm (with value 1.00). -* ['Dis] is the distance from the nearest representation of the 'exact' root in bits. -Distance from the 'exact' answer is measured by using function __float_distance. -One or two bits distance means that all results are effectively 'correct'. -Zero means 'exact' - the nearest __representable value for the floating-point type. - -The cube-root function is a simple function, and is a contrived example for root-finding. -It does allow us to investigate some of the factors controlling efficiency that may be extrapolated to -more complex functions. - -The program used was [@ ../../example/root_finding_algorithms.cpp root_finding_algorithms.cpp]. -100000 evaluations of each floating-point type and algorithm were used and the CPU times were -judged from repeat runs to have an uncertainty of 10 %. Comparing MSVC for `double` and `long double` -(which are identical on this patform) may give a guide to uncertainty of timing. - -The requested precision was set as follows: - -[table -[[Function][Precision Requested]] -[[TOMS748][numeric_limits::digits - 2]] -[[Newton][floor(numeric_limits::digits * 0.6)]] -[[Halley][floor(numeric_limits::digits * 0.4)]] -[[Schr'''ö'''der][floor(numeric_limits::digits * 0.4)]] -] - -* The C++ Standard cube root function [@http://en.cppreference.com/w/cpp/numeric/math/cbrt std::cbrt] -is only defined for built-in or fundamental types, -so cannot be used with any User-Defined floating-point types like __multiprecision. -This, and that the cube function is so impeccably-behaved, -allows the implementer to use many tricks to achieve a fast computation. -On some platforms,`std::cbrt` appeared several times as quick as the more general `boost::math::cbrt`, -on other platforms / compiler options `boost::math::cbrt` is noticeably faster. In general, the results are highly -dependent on the code-generation / processor architecture selection compiler options used. One can -assume that the standard library will have been compiled with options ['nearly] optimal for the platform -it was installed on, where as the user has more choice over the options used for Boost.Math. Pick something -too general/conservative and performance suffers, while selecting options that make use of the latest -instruction set opcodes speed's things up noticeably. - -* Two compilers in optimise mode were compared: GCC 4.9.1 using Netbeans IDS -and Microsoft Visual Studio 2013 (Update 1) on the same hardware. -The number of iterations seemed consistent, but the relative run-times surprisingly different. - -* `boost::math::cbrt` allows use with ['any user-defined floating-point type], conveniently -__multiprecision. It too can take some advantage of the good-behaviour of the cube function, -compared to the more general implementation in the nth root-finding examples. For example, -it uses a polynomial approximation to generate a better guess than dividing the exponent by three, -and can avoid the complex checks in __newton required to prevent the -search going wildly off-track. For a known precision, it may also be possible to -fix the number of iterations, allowing inlining and loop unrolling. It also -algebraically simplifies the Halley steps leading to a big reduction in the -number of floating point operations required compared to a "black box" implementation -that calculates the derivatives seperately and then combines them in the Halley code. -Typically, it was found that computation using type `double` -took a few times longer when using the various root-finding algorithms directly rather -than the hand coded/optimized `cbrt` routine. - -* The importance of getting a good guess can be seen by the iteration count for the multiprecision case: -here we "cheat" a little and use the cube-root calculated to double precision as the initial guess. -The limitation of this tactic is that the range of possible (exponent) values may be less than the multiprecision type. - -* For __fundamental_types, there was little to choose between the three derivative methods, -but for __cpp_bin_float, __newton was twice as fast. Note that the cube-root is an extreme -test case as the cost of calling the functor is so cheap that the runtimes are largely -dominated by the complexity of the iteration code. - -* Compiling with optimisation halved computation times, and any differences between algorithms -became nearly negligible. The optimisation speed-up of the __TOMS748 was especially noticable. - -* Using a multiprecision type like `cpp_bin_float_50` for a precision of 50 decimal digits -took a lot longer, as expected because most computation -uses software rather than 64-bit floating-point hardware. -Speeds are often more than 50 times slower. - -* Using `cpp_bin_float_50`, __TOMS748 was much slower showing the benefit of using derivatives. -__newton was found to be twice as quick as either of the second-derivative methods: -this is an extreme case though, the function and its derivatives are so cheap to compute that we're -really measuring the complexity of the boilerplate root-finding code. - -* For multiprecision types only one or two extra ['iterations] are needed to get the remaining 35 digits, whatever the algorithm used. -(The time taken was of course much greater for these types). - -* Using a 100 decimal-digit type only doubled the time and required only a very few more iterations, -so the cost of extra precision is mainly the underlying cost of computing more digits, -not in the way the algorithm works. This confirms previous observations using __NTL high-precision types. - -[include root_comparison_tables_msvc.qbk] -[include root_comparison_tables_gcc.qbk] - -[endsect] [/section:cbrt_comparison Comparison of Cube Root Finding Algorithms] - -[section:root_n_comparison Comparison of Nth-root Finding Algorithms] - -A second example compares four generalized nth-root finding algorithms for various n-th roots (5, 7 and 13) -of a single value 28.0, for four floating-point types, `float`, `double`, -`long double` and a __multiprecision type `cpp_bin_float_50`. -In each case the target accuracy was set using our "recomended" accuracy limits -(or at least limits that make a good starting point - which is likely to give -close to full accuracy without resorting to unnecessary iterations). - -[table -[[Function][Precision Requested]] -[[TOMS748][numeric_limits::digits - 2]] -[[Newton][floor(numeric_limits::digits * 0.6)]] -[[Halley][floor(numeric_limits::digits * 0.4)]] -[[Schr'''ö'''der][floor(numeric_limits::digits * 0.4)]] -] -Tests used Microsoft Visual Studio 2013 (Update 1) and GCC 4.9.1 using source code -[@../../example/root_n_finding_algorithms.cpp root_n_finding_algorithms.cpp]. - -The timing uncertainty (especially using MSVC) is at least 5% of normalized time 'Norm'. - -To pick out the 'best' and 'worst' algorithms are highlighted in blue and red. -More than one result can be 'best' when normalized times are indistinguishable -within the uncertainty. - -[/include roots_table_100_msvc.qbk] -[/include roots_table_75_msvc.qbk] - -[/include roots_table_75_msvc_X86.qbk] -[/include roots_table_100_msvc_X86.qbk] - -[/include roots_table_100_msvc_AVX.qbk] -[/include roots_table_75_msvc_AVX.qbk] - -[/include roots_table_75_msvc_X86_SSE2.qbk] -[/include roots_table_100_msvc_X86_SSE2.qbk] - -[/include roots_table_100_gcc_X64_SSE2.qbk] -[/include roots_table_75_gcc_X64_SSE2.qbk] - -[/include type_info_table_100_msvc.qbk] -[/include type_info_table_75_msvc.qbk] - -[include roots_table_100_msvc_X86_SSE2.qbk] -[include roots_table_100_msvc_X64_AVX.qbk] -[include roots_table_100_gcc_X64_SSE2.qbk] - -Some tentative conclusions can be drawn from this limited exercise. - -* Perhaps surprisingly, there is little difference between the various algorithms for __fundamental_types floating-point types. -Using the first derivatives (__newton) is usually the best, but while the improvement over the no-derivative -__TOMS748 is considerable in number of iterations, but little in execution time. This reflects the fact that the function -we are finding the root for is trivial to evaluate, so runtimetimes are dominated by the time taken by the boilerplate code -in each method. - -* The extra cost of evaluating the second derivatives (__halley or __schroder) is usually too much for any net benefit: -as with the cube root, these functors are so cheap to evaluate that the runtime is largely dominated by the -complexity of the root finding method. - -* For a __multiprecision floating-point type, the __newton is a clear winner with a several-fold gain over __TOMS748, -and again no improvement from the second-derivative algorithms. - -* The run-time of 50 decimal-digit __multiprecision is about 30-fold greater than `double`. - -* The column 'dis' showing the number of bits distance from the correct result. -The Newton-Raphson algorithm shows a bit or two better accuracy than __TOMS748. - -* The goodness of the 'guess' is especially crucial for __multiprecision. -Separate experiments show that evaluating the 'guess' using `double` allows -convergence to the final exact result in one or two iterations. -So in this contrived example, crudely dividing the exponent by N for a 'guess', -it would be far better to use a `pow` or , -if more precise `pow`, function to estimate a 'guess'. -The limitation of this tactic is that the range of possible (exponent) values may be less than the multiprecision type. - -* Using floating-point extension __SSE2 made a modest ten-percent speedup. - -*Using MSVC, there was some improvement using 64-bit, markedly for __multiprecision. - -* The GCC compiler 4.9.1 using 64-bit was at least five-folder faster that 32-bit, -apparently reflecting better optimization. - -Clearly, your mileage [*will vary], but in summary, __newton seems the first choice of algorithm, -and effort to find a good 'guess' the first speed-up target, especially for __multiprecision. -And of course, compiler optimisation is crucial for speed. - -[endsect] [/section:root_n_comparison Comparison of Nth-root Finding Algorithms] - -[section:elliptic_comparison Comparison of Elliptic Integral Root Finding Algoritghms] - -A second example compares four root finding algorithms for locating -the second radius of an ellipse with first radius 28 and arc length 300, -for four floating-point types, `float`, `double`, -`long double` and a __multiprecision type `cpp_bin_float_50`. - -Which is to say we're solving: - -[pre 4xE(sqrt(1 - 28[super 2] / x[super 2])) - 300 = 0] - -In each case the target accuracy was set using our "recomended" accuracy limits -(or at least limits that make a good starting point - which is likely to give -close to full accuracy without resorting to unnecessary iterations). - -[table -[[Function][Precision Requested]] -[[TOMS748][numeric_limits::digits - 2]] -[[Newton][floor(numeric_limits::digits * 0.6)]] -[[Halley][floor(numeric_limits::digits * 0.4)]] -[[Schr'''ö'''der][floor(numeric_limits::digits * 0.4)]] -] -Tests used Microsoft Visual Studio 2013 (Update 1) and GCC 4.9.1 using source code -[@../../example/root_elliptic_finding.cpp root_elliptic_finding.cpp]. - -The timing uncertainty (especially using MSVC) is at least 5% of normalized time 'Norm'. - -To pick out the 'best' and 'worst' algorithms are highlighted in blue and red. -More than one result can be 'best' when normalized times are indistinguishable -within the uncertainty. - -[include elliptic_table_100_msvc_X86_SSE2.qbk] -[include elliptic_table_100_msvc_X64_AVX.qbk] -[include elliptic_table_100_gcc_X64_SSE2.qbk] - -Remarks: - -* The function being solved is now moderately expensive to call, and twice as expensive to call -when obtaining the derivative than when not. Consequently there is very little improvement in moving -from a derivative free method, to Newton iteration. However, once you've calculated the first derivative -the second comes almost for free, consequently the third order methods (Halley) does much the best. -* Of the two second order methods, Halley does best as would be expected: the Schroder method offers better -guarantees of ['quadratic] convergence, while Halley relies on a smooth function with a single root to -give ['cubic] convergence. It's not entirely clear why Schroder iteration often does worse than Newton. - -[endsect][/section:elliptic_comparison Comparison of Elliptic Integral Root Finding Algoritghms] - -[endsect] [/section:root_comparison Comparison of Root Finding Algorithms] - diff --git a/boost/libs/math/doc/roots/root_comparison_tables_gcc.qbk b/boost/libs/math/doc/roots/root_comparison_tables_gcc.qbk deleted file mode 100644 index f73bd6b9..00000000 --- a/boost/libs/math/doc/roots/root_comparison_tables_gcc.qbk +++ /dev/null @@ -1,19 +0,0 @@ -[/ -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h5 Program root_finding_algorithms.cpp, GNU C++ version 4.9.2, GNU libstdc++ version 20141030, Win32, x64[br]1000000 evaluations of each of 5 root_finding algorithms.] -[table:cbrt_4 Cube root(28) for float, double, long double and cpp_bin_float_50 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algorithm][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[cbrt ][ 0][46875][[role blue 1.0]][ 0][ ][ 0][46875][[role blue 1.0]][ 0][ ][ 0][46875][[role blue 1.0]][ 0][ ][ 0][3500000][1.1][ 0][ ]] -[[TOMS748 ][ 8][187500][4.0][ -1][ ][ 11][406250][[role red 8.7]][ 2][ ][ 10][609375][[role red 13.]][ -1][ ][ 7][44531250][[role red 14.]][ -2][ ]] -[[Newton ][ 5][93750][2.0][ 0][ ][ 6][109375][2.3][ 0][ ][ 6][171875][3.7][ 0][ ][ 2][3140625][[role blue 1.0]][ -1][ ]] -[[Halley ][ 3][93750][2.0][ 0][ ][ 4][125000][2.7][ 0][ ][ 4][218750][[role red 4.7]][ 0][ ][ 2][7171875][2.3][ 0][ ]] -[[Schr'''ö'''der][ 4][109375][2.3][ 0][ ][ 5][171875][3.7][ 0][ ][ 5][281250][[role red 6.0]][ 0][ ][ 2][8703125][2.8][ 0][ ]] -] [/end of table cbrt_4] diff --git a/boost/libs/math/doc/roots/root_comparison_tables_gcc_075.qbk b/boost/libs/math/doc/roots/root_comparison_tables_gcc_075.qbk deleted file mode 100644 index 9b1f99b3..00000000 --- a/boost/libs/math/doc/roots/root_comparison_tables_gcc_075.qbk +++ /dev/null @@ -1,27 +0,0 @@ -[/ -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h5 Program i:/modular-boost/libs/math/example/root_finding_algorithms.cpp, GNU C++ version 4.9.1, GNU libstdc++ version 20140716, Win32, [br]1000000 evaluations of each of 5 root_finding algorithms.[br]Fraction of maximum possible bits of accuracy required is 0.75] -[table:cbrt_5 Info for float, double, long double and cpp_bin_float_50 -[[type name] [max_digits10] [binary digits] [required digits]] -[[float][9][24][18]] -[[double][17][53][39]] -[[long double][21][64][48]] -[[cpp_bin_float_50][52][168][126]] -] [/table cbrt_5] - -[table:cbrt_4 Cube root(28) for float, double, long double and cpp_bin_float_50 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algorithm][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[cbrt ][ 0][187500][1.0][ 0][ ][ 0][390625][1.0][ 0][ ][ 0][406250][1.0][ 0][ ][ 0][25468750][1.0][ 0][ ]] -[[TOMS748 ][ 8][1343750][7.2][ -1][ ][ 11][2140625][5.5][ 2][ ][ 10][4796875][12.][ -1][ ][ 7][300296875][12.][ -2][ ]] -[[Newton ][ 6][562500][3.0][ 0][ ][ 7][578125][1.5][ 0][ ][ 7][1703125][4.2][ 0][ ][ 9][71203125][2.8][ -1][ ]] -[[Halley ][ 4][765625][4.1][ 0][ ][ 4][703125][1.8][ 0][ ][ 5][1750000][4.3][ -1][ ][ 5][95140625][3.7][ 0][ ]] -[[Schr'''ö'''der][ 5][875000][4.7][ 0][ ][ 5][828125][2.1][ 0][ ][ 6][2046875][5.0][ 0][ ][ 7][122906250][4.8][ 0][ ]] -] [/end of table cbrt_4] diff --git a/boost/libs/math/doc/roots/root_comparison_tables_msvc.qbk b/boost/libs/math/doc/roots/root_comparison_tables_msvc.qbk deleted file mode 100644 index d6e50495..00000000 --- a/boost/libs/math/doc/roots/root_comparison_tables_msvc.qbk +++ /dev/null @@ -1,19 +0,0 @@ -[/ -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h5 Program root_finding_algorithms.cpp, Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32, x64[br]1000000 evaluations of each of 5 root_finding algorithms.] -[table:cbrt_4 Cube root(28) for float, double, long double and cpp_bin_float_50 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algorithm][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[cbrt ][ 0][46875][[role blue 1.0]][ 0][ ][ 0][46875][[role blue 1.0]][ 1][ ][ 0][46875][[role blue 1.0]][ 1][ ][ 0][4906250][1.1][ 0][ ]] -[[TOMS748 ][ 8][234375][[role red 5.0]][ -1][ ][ 11][437500][[role red 9.3]][ 2][ ][ 11][437500][[role red 9.3]][ 2][ ][ 7][66218750][[role red 15.]][ -2][ ]] -[[Newton ][ 5][109375][2.3][ 0][ ][ 6][125000][2.7][ 0][ ][ 6][140625][3.0][ 0][ ][ 2][4531250][[role blue 1.0]][ 0][ ]] -[[Halley ][ 3][125000][2.7][ 0][ ][ 4][156250][3.3][ 0][ ][ 4][156250][3.3][ 0][ ][ 2][10625000][2.3][ 0][ ]] -[[Schr'''ö'''der][ 4][140625][3.0][ 0][ ][ 5][187500][4.0][ 0][ ][ 5][203125][[role red 4.3]][ 0][ ][ 2][13109375][2.9][ 0][ ]] -] [/end of table cbrt_4] diff --git a/boost/libs/math/doc/roots/root_comparison_tables_msvc_075.qbk b/boost/libs/math/doc/roots/root_comparison_tables_msvc_075.qbk deleted file mode 100644 index 55ae9494..00000000 --- a/boost/libs/math/doc/roots/root_comparison_tables_msvc_075.qbk +++ /dev/null @@ -1,27 +0,0 @@ -[/ -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h5 Program I:\modular-boost\libs\math\example\root_finding_algorithms.cpp, Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32, Compiled in optimise mode.[br]1000000 evaluations of each of 5 root_finding algorithms.[br]Fraction of maximum possible bits of accuracy required is 0.75] -[table:cbrt_5 Info for float, double, long double and cpp_bin_float_50 -[[type name] [max_digits10] [binary digits] [required digits]] -[[float][9][24][18]] -[[double][17][53][39]] -[[long double][17][53][39]] -[[cpp_bin_float_50][52][168][126]] -] [/table cbrt_5] - -[table:cbrt_4 Cube root(28) for float, double, long double and cpp_bin_float_50 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algorithm][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[cbrt ][ 0][203125][1.0][ 0][ ][ 0][187500][1.0][ 1][ ][ 0][187500][1.0][ 1][ ][ 0][8796875][1.0][ 0][ ]] -[[TOMS748 ][ 8][812500][4.0][ -1][ ][ 11][1031250][5.5][ 2][ ][ 11][1093750][5.8][ 2][ ][ 7][126125000][14.][ -2][ ]] -[[Newton ][ 6][968750][4.8][ 0][ ][ 7][968750][5.2][ 0][ ][ 7][1015625][5.4][ 0][ ][ 9][30421875][3.5][ -1][ ]] -[[Halley ][ 4][984375][4.8][ 0][ ][ 4][1046875][5.6][ 0][ ][ 4][1078125][5.8][ 0][ ][ 5][47453125][5.4][ 0][ ]] -[[Schr'''ö'''der][ 5][968750][4.8][ 0][ ][ 5][1031250][5.5][ 0][ ][ 5][1000000][5.3][ 0][ ][ 7][59140625][6.7][ 0][ ]] -] [/end of table cbrt_4] diff --git a/boost/libs/math/doc/roots/root_finding_examples.qbk b/boost/libs/math/doc/roots/root_finding_examples.qbk deleted file mode 100644 index 4e0525c2..00000000 --- a/boost/libs/math/doc/roots/root_finding_examples.qbk +++ /dev/null @@ -1,595 +0,0 @@ -[section:root_finding_examples Examples of Root-Finding (with and without derivatives)] - -[import ../../example/root_finding_example.cpp] -[import ../../example/root_finding_n_example.cpp] -[import ../../example/root_finding_multiprecision_example.cpp] - -The examples demonstrate how to use the various tools for -[@http://en.wikipedia.org/wiki/Root-finding_algorithm root finding]. - -We start with the simple cube root function `cbrt` ( C++ standard function name -[@http://en.cppreference.com/w/cpp/numeric/math/cbrt cbrt]) -showing root finding __cbrt_no_derivatives. - -We then show how use of derivatives can improve the speed of convergence. - -(But these examples are only a demonstration and do not try to make -the ultimate improvements of an 'industrial-strength' -implementation, for example, of `boost::math::cbrt`, mainly by using a better computed initial 'guess' -at [@boost:/libs/math/include/boost/math/special_functions/cbrt.hpp cbrt.hpp]). - -Then we show how a higher root (__fifth_root) [super 5][radic] can be computed, -and in -[@../../example/root_finding_n_example.cpp root_finding_n_example.cpp] -a generic method for the __nth_root that constructs the derivatives at compile-time. - -These methods should be applicable to other functions that can be differentiated easily. - -[section:cbrt_eg Finding the Cubed Root With and Without Derivatives] - -First some `#includes` that will be needed. - -[root_finding_include_1] - -[tip For clarity, `using` statements are provided to list what functions are being used in this example: -you can, of course, partly or fully qualify the names in other ways. -(For your application, you may wish to extract some parts into header files, -but you should never use `using` statements globally in header files).] - -Let's suppose we want to find the root of a number ['a], and to start, compute the cube root. - -So the equation we want to solve is: - -__spaces ['f(x) = x[cubed] -a] - -We will first solve this without using any information -about the slope or curvature of the cube root function. - -Fortunately, the cube-root function is 'Really Well Behaved' in that it is monotonic -and has only one root (we leave negative values 'as an exercise for the student'). - -We then show how adding what we can know about this function, first just the slope -or 1st derivative ['f'(x)], will speed homing in on the solution. - -Lastly, we show how adding the curvature ['f''(x)] too will speed convergence even more. - -[h3:cbrt_no_derivatives Cube root function without derivatives] - -First we define a function object (functor): - -[root_finding_noderiv_1] - -Implementing the cube-root function itself is fairly trivial now: -the hardest part is finding a good approximation to begin with. -In this case we'll just divide the exponent by three. -(There are better but more complex guess algorithms used in 'real life'.) - -[root_finding_noderiv_2] - -This snippet from `main()` in [@../../example/root_finding_example.cpp root_finding_example.cpp] -shows how it can be used. - -[root_finding_main_1] - -[pre - cbrt_noderiv(27) = 3 - cbrt_noderiv(28) = 3.0365889718756618 -] - -The result of `bracket_and_solve_root` is a [@http://www.cplusplus.com/reference/utility/pair/ pair] -of values that could be displayed. - -The number of bits separating them can be found using `float_distance(r.first, r.second)`. -The distance is zero (closest representable) for 3[super 3] = 27 -but `float_distance(r.first, r.second) = 3` for cube root of 28 with this function. -The result (avoiding overflow) is midway between these two values. - -[h3:cbrt_1st_derivative Cube root function with 1st derivative (slope)] - -We now solve the same problem, but using more information about the function, -to show how this can speed up finding the best estimate of the root. - -For the root function, the 1st differential (the slope of the tangent to a curve at any point) is known. - -This algorithm is similar to this [@http://en.wikipedia.org/wiki/Nth_root_algorithm nth root algorithm]. - -If you need some reminders, then -[@http://en.wikipedia.org/wiki/Derivative#Derivatives_of_elementary_functions derivatives of elementary functions] -may help. - -Using the rule that the derivative of ['x[super n]] for positive n (actually all nonzero n) is ['n x[super n-1]], -allows us to get the 1st differential as ['3x[super 2]]. - -To see how this extra information is used to find a root, view -[@http://en.wikipedia.org/wiki/Newton%27s_method Newton-Raphson iterations] -and the [@http://en.wikipedia.org/wiki/Newton%27s_method#mediaviewer/File:NewtonIteration_Ani.gif animation]. - -We define a better functor `cbrt_functor_deriv` that returns -both the evaluation of the function to solve, along with its first derivative: - -To '['return]' two values, we use a [@http://en.cppreference.com/w/cpp/utility/pair std::pair] -of floating-point values. - -[root_finding_1_deriv_1] - -The result of [@boost:/libs/math/include/boost/math/tools/roots.hpp `newton_raphson_iterate`] -function is a single value. - -[tip There is a compromise between accuracy and speed when chosing the value of `digits`. -It is tempting to simply chose `std::numeric_limits::digits`, -but this may mean some inefficient and unnecessary iterations as the function thrashes around -trying to locate the last bit. In theory, since the precision doubles with each step -it is sufficient to stop when half the bits are correct: as the last step will have doubled -that to full precision. Of course the function has no way to tell if that is actually the case -unless it does one more step to be sure. In practice setting the precision to slightly more -than `std::numeric_limits::digits / 2` is a good choice.] - -Note that it is up to the caller of the function to check the iteration count -after the call to see if iteration stoped as a result of running out of iterations -rather than meeting the required precision. - -Using the test data in [@../../test/test_cbrt.cpp /test/test_cbrt.cpp] this found the cube root -exact to the last digit in every case, and in no more than 6 iterations at double -precision. However, you will note that a high precision was used in this -example, exactly what was warned against earlier on in these docs! In this -particular case it is possible to compute ['f(x)] exactly and without undue -cancellation error, so a high limit is not too much of an issue. - -However, reducing the limit to `std::numeric_limits::digits * 2 / 3` gave full -precision in all but one of the test cases (and that one was out by just one bit). -The maximum number of iterations remained 6, but in most cases was reduced by one. - -Note also that the above code omits a probable optimization by computing z[sup2] -and reusing it, omits error handling, and does not handle -negative values of z correctly. (These are left as the customary exercise for the reader!) - -The `boost::math::cbrt` function also includes these and other improvements: -most importantly it uses a much better initial guess which reduces the iteration count to -just 1 in almost all cases. - -[h3:cbrt_2_derivatives Cube root with 1st & 2nd derivative (slope & curvature)] - -Next we define yet another even better functor `cbrt_functor_2deriv` that returns -both the evaluation of the function to solve, -along with its first [*and second] derivative: - -__spaces['f''(x) = 6x] - -using information about both slope and curvature to speed convergence. - -To [''return'] three values, we use a `tuple` of three floating-point values: -[root_finding_2deriv_1] - -The function `halley_iterate` also returns a single value, -and the number of iterations will reveal if it met the convergence criterion set by `get_digits`. - -The no-derivative method gives a result of - - cbrt_noderiv(28) = 3.0365889718756618 - -with a 3 bits distance between the bracketed values, whereas the derivative methods both converge to a single value - - cbrt_2deriv(28) = 3.0365889718756627 - -which we can compare with the [@boost:/libs/math/doc/html/math_toolkit/powers/cbrt.html boost::math::cbrt] - - cbrt(28) = 3.0365889718756627 - -Note that the iterations are set to stop at just one-half of full precision, -and yet, even so, not one of the test cases had a single bit wrong. -What's more, the maximum number of iterations was now just 4. - -Just to complete the picture, we could have called -[link math_toolkit.roots.roots_deriv.schroder `schroder_iterate`] in the last -example: and in fact it makes no difference to the accuracy or number of iterations -in this particular case. However, the relative performance of these two methods -may vary depending upon the nature of ['f(x)], and the accuracy to which the initial -guess can be computed. There appear to be no generalisations that can be made -except "try them and see". - -Finally, had we called `cbrt` with [@http://shoup.net/ntl/doc/RR.txt NTL::RR] -set to 1000 bit precision (about 300 decimal digits), -then full precision can be obtained with just 7 iterations. -To put that in perspective, -an increase in precision by a factor of 20, has less than doubled the number of -iterations. That just goes to emphasise that most of the iterations are used -up getting the first few digits correct: after that these methods can churn out -further digits with remarkable efficiency. - -Or to put it another way: ['nothing beats a really good initial guess!] - -Full code of this example is at -[@../../example/root_finding_example.cpp root_finding_example.cpp], - -[endsect] - -[section:lambda Using C++11 Lambda's] - -Since all the root finding functions accept a function-object, they can be made to -work (often in a lot less code) with C++11 lambda's. Here's the much reduced code for our "toy" cube root function: - -[root_finding_2deriv_lambda] - -Full code of this example is at -[@../../example/root_finding_example.cpp root_finding_example.cpp], - -[endsect] - -[section:5th_root_eg Computing the Fifth Root] - -Let's now suppose we want to find the [*fifth root] of a number ['a]. - -The equation we want to solve is : - -__spaces['f](x) = ['x[super 5] -a] - -If your differentiation is a little rusty -(or you are faced with an function whose complexity makes differentiation daunting), -then you can get help, for example, from the invaluable -[@http://www.wolframalpha.com/ WolframAlpha site.] - -For example, entering the commmand: `differentiate x ^ 5` - -or the Wolfram Language command: ` D[x ^ 5, x]` - -gives the output: `d/dx(x ^ 5) = 5 x ^ 4` - -and to get the second differential, enter: `second differentiate x ^ 5` - -or the Wolfram Language command: `D[x ^ 5, { x, 2 }]` - -to get the output: `d ^ 2 / dx ^ 2(x ^ 5) = 20 x ^ 3` - -To get a reference value, we can enter: [^fifth root 3126] - -or: `N[3126 ^ (1 / 5), 50]` - -to get a result with a precision of 50 decimal digits: - -5.0003199590478625588206333405631053401128722314376 - -(We could also get a reference value using __multiprecision_root). - -The 1st and 2nd derivatives of x[super 5] are: - -__spaces['f]\'(x) = 5x[super 4] - -__spaces['f]\'\'(x) = 20x[super 3] - -[root_finding_fifth_functor_2deriv] -[root_finding_fifth_2deriv] - -Full code of this example is at -[@../../example/root_finding_example.cpp root_finding_example.cpp] and -[@../../example/root_finding_n_example.cpp root_finding_n_example.cpp]. - -[endsect] - -[section:multiprecision_root Root-finding using Boost.Multiprecision] - -The apocryphally astute reader might, by now, be asking "How do we know if this computes the 'right' answer?". - -For most values, there is, sadly, no 'right' answer. -This is because values can only rarely be ['exactly represented] by C++ floating-point types. -What we do want is the 'best' representation - one that is the nearest __representable value. -(For more about how numbers are represented see __floating_point). - -Of course, we might start with finding an external reference source like -__WolframAlpha, as above, but this is not always possible. - -Another way to reassure is to compute 'reference' values at higher precision -with which to compare the results of our iterative computations using built-in like `double`. -They should agree within the tolerance that was set. - -The result of `static_cast`ing to `double` from a higher-precision type like `cpp_bin_float_50` is guaranteed -to be the [*nearest representable] `double` value. - -For example, the cube root functions in our example for `cbrt(28.)` compute - -`std::cbrt(28.) = 3.0365889718756627` - -WolframAlpha says `3.036588971875662519420809578505669635581453977248111123242141...` - -`static_cast(3.03658897187566251942080957850) = 3.0365889718756627` - -This example `cbrt(28.) = 3.0365889718756627` - -[tip To ensure that all potentially significant decimal digits are displayed use `std::numeric_limits::max_digits10` -(or if not available on older platforms or compilers use `2+std::numeric_limits::digits*3010/10000`).[br] - -Ideally, values should agree to `std::numeric-limits::digits10` decimal digits. - -This also means that a 'reference' value to be [*input] or `static_cast` should have -at least `max_digits10` decimal digits (17 for 64-bit `double`). -] - -If we wish to compute [*higher-precision values] then, on some platforms, we may be able to use `long double` -with a higher precision than `double` to compare with the very common `double` -and/or a more efficient built-in quad floating-point type like `__float128`. - -Almost all platforms can easily use __multiprecision, -for example, __cpp_dec_float or a binary type __cpp_bin_float types, -to compute values at very much higher precision. - -[note With multiprecision types, it is debatable whether to use the type `T` for computing the initial guesses. -Type `double` is like to be accurate enough for the method used in these examples. -This would limit the exponent range of possible values to that of `double`. -There is also the cost of conversion to and from type `T` to consider. -In these examples, `double` is used via `typedef double guess_type`.] - -Since the functors and functions used above are templated on the value type, -we can very simply use them with any of the __multiprecision types. As a reminder, -here's our toy cube root function using 2 derivatives and C++11 lambda functions to find the root: - -[root_finding_2deriv_lambda] - -Some examples below are 50 decimal digit decimal and binary types -(and on some platforms a much faster `float128` or `quad_float` type ) -that we can use with these includes: - -[root_finding_multiprecision_include_1] - -Some using statements simplify their use: - -[root_finding_multiprecision_example_1] - -They can be used thus: - -[root_finding_multiprecision_example_2] - -A reference value computed by __WolframAlpha is - - N[2^(1/3), 50] 1.2599210498948731647672106072782283505702514647015 - -which agrees exactly. - -To [*show] values to their full precision, it is necessary to adjust the `std::ostream` `precision` to suit the type, for example: - -[root_finding_multiprecision_show_1] - -[root_finding_multiprecision_example_3] - -which outputs: - -[pre -cbrt(2) = 1.2599210498948731647672106072782283505702514647015 - -value = 2, cube root =1.25992104989487 -value = 2, cube root =1.25992104989487 -value = 2, cube root =1.2599210498948731647672106072782283505702514647015 -] - -[tip Be [*very careful] about the floating-point type `T` that is passed to the root-finding function. -Carelessly passing a integer by writing -`cpp_dec_float_50 r = cbrt_2deriv(2);` or `show_cube_root(2);` -will provoke many warnings and compile errors. - -Even `show_cube_root(2.F);` will produce warnings because `typedef double guess_type` defines the type -used to compute the guess and bracket values as `double`. - -Even more treacherous is passing a `double` as in `cpp_dec_float_50 r = cbrt_2deriv(2.);` -which silently gives the 'wrong' result, computing a `double` result and [*then] converting to `cpp_dec_float_50`! -All digits beyond `max_digits10` will be incorrect. -Making the `cbrt` type explicit with `cbrt_2deriv(2.);` will give you the desired 50 decimal digit precision result. -] [/tip] - -Full code of this example is at -[@../../example/root_finding_multiprecision_example.cpp root_finding_multiprecision_example.cpp]. - -[endsect] - -[section:nth_root Generalizing to Compute the nth root] - -If desired, we can now further generalize to compute the ['n]th root by computing the derivatives [*at compile-time] -using the rules for differentiation and `boost::math::pow` -where template parameter `N` is an integer and a compile time constant. Our functor and function now have an additional template parameter `N`, -for the root required. - -[note Since the powers and derivatives are fixed at compile time, the resulting code is as efficient as as if hand-coded as the cube and fifth-root examples above. -A good compiler should also optimise any repeated multiplications.] - -Our ['n]th root functor is - -[root_finding_nth_functor_2deriv] - -and our ['n]th root function is - -[root_finding_nth_function_2deriv] - -[root_finding_n_example_2] - -produces an output similar to this - -[root_finding_example_output_1] - -[tip Take care with the type passed to the function. It is best to pass a `double` or greater-precision floating-point type. - -Passing an integer value, for example, `nth_2deriv<5>(2)` will be rejected, while `nth_2deriv<5, double>(2)` converts the integer to `double`. - -Avoid passing a `float` value that will provoke warnings (actually spurious) from the compiler about potential loss of data, -as noted above.] - -[warning Asking for unreasonable roots, for example, `show_nth_root<1000000>(2.);` may lead to -[@http://en.wikipedia.org/wiki/Loss_of_significance Loss of significance] like -`Type double value = 2, 1000000th root = 1.00000069314783`. -Use of the the `pow` function is more sensible for this unusual need. -] - -Full code of this example is at -[@../../example/root_finding_n_example.cpp root_finding_n_example.cpp]. - -[endsect] - -[section:elliptic_eg A More complex example - Inverting the Elliptic Integrals] - -The arc length of an ellipse with radii ['a] and ['b] is given by: - -[pre L(a, b) = 4aE(k)] - -with: - -[pre k = [sqrt](1 - b[super 2]/a[super 2])] - -where ['E(k)] is the complete elliptic integral of the second kind - see __ellint_2. - -Let's suppose we know the arc length and one radii, we can then calculate the other -radius by inverting the formula above. We'll begin by encoding the above formula -into a functor that our root-finding algorithms can call. - -Note that while not -completely obvious from the formula above, the function is completely symmetrical -in the two radii - which can be interchanged at will - in this case we need to -make sure that `a >= b` so that we don't accidentally take the square root of a negative number: - -[import ../../example/root_elliptic_finding.cpp] - -[elliptic_noderv_func] - -We'll also need a decent estimate to start searching from, the approximation: - -[pre L(a, b) [approx] 4[sqrt](a[super 2] + b[super 2])] - -Is easily inverted to give us what we need, which using derivative-free root -finding leads to the algorithm: - -[elliptic_root_noderiv] - -This function generally finds the root within 8-10 iterations, so given that the runtime -is completely dominated by the cost of calling the ellliptic integral it would be nice to -reduce that count somewhat. We'll try to do that by using a derivative-based method; -the derivatives of this function are rather hard to work out by hand, but fortunately -[@http://www.wolframalpha.com/input/?i=d%2Fda+\[4+*+a+*+EllipticE%281+-+b^2%2Fa^2%29\] -Wolfram Alpha] can do the grunt work for us to give: - -[pre d/da L(a, b) = 4(a[super 2]E(k) - b[super 2]K(k)) / (a[super 2] - b[super 2])] - -Note that now we have [*two] elliptic integral calls to get the derivative, so our -functor will be at least twice as expensive to call as the derivative-free one above: -we'll have to reduce the iteration count quite substantially to make a difference! - -Here's the revised functor: - -[elliptic_1deriv_func] - -The root-finding code is now almost the same as before, but we'll make use of -Newton-iteration to get the result: - -[elliptic_1deriv] - -The number of iterations required for `double` precision is now usually around 4 - -so we've slightly more than halved the number of iterations, but made the -functor twice as expensive to call! - -Interestingly though, the second derivative requires no more expensive -elliptic integral calls than the first does, in other words it comes -essentially "for free", in which case we might as well make use of it -and use Halley-iteration. This is quite a typical situation when -inverting special-functions. Here's the revised functor: - -[elliptic_2deriv_func] - -The actual root-finding code is almost the same as before, except we can -use Halley, rather than Newton iteration: - -[elliptic_2deriv] - -While this function uses only slightly fewer iterations (typically around 3) -to find the root, compared to the original derivative-free method, we've moved from -8-10 elliptic integral calls to 6. - -Full code of this example is at -[@../../example/root_elliptic_finding.cpp root_elliptic_finding.cpp]. - -[endsect] - - -[endsect] [/section:root_examples Examples of Root Finding (with and without derivatives)] - -[section:bad_guess The Effect of a Poor Initial Guess] - -It's instructive to take our "toy" example algorithms, and use deliberately bad initial guesses to see how the -various root finding algorithms fair. We'll start with the cubed root, and using the cube root of 500 as the test case: - -[table -[[Initial Guess=][-500% ([approx]1.323)][-100% ([approx]3.97)][-50% ([approx]3.96)][-20% ([approx]6.35)][-10% ([approx]7.14)][-5% ([approx]7.54)][5% ([approx]8.33)][10% ([approx]8.73)][20% ([approx]9.52)][50% ([approx]11.91)][100% ([approx]15.87)][500 ([approx]47.6)]] -[[bracket_and_solve_root][12][8][8][10][11][11][11][11][11][11][7][13]] -[[newton_iterate][12][7][7][5][5][4][4][5][5][6][7][9]] -[[halley_iterate][7][4][4][3][3][3][3][3][3][4][4][6]] -[[schroder_iterate][11][6][6][4][3][3][3][3][4][5][5][8]] -] - -As you can see `bracket_and_solve_root` is relatively insensitive to starting location - as long as you don't start many orders of magnitude away from the root it will -take roughly the same number of steps to bracket the root and solve it. On the other hand the derivative-based methods are slow to start, but once they have some digits -correct they increase precision exceptionally fast: they are therefore quite sensitive to the initial starting location. - -The next table shows the number of iterations required to find the second radius of an ellipse with first radius 50 and arc-length 500: - -[table -[[Initial Guess=][-500% ([approx]20.6)][-100% ([approx]61.81)][-50% ([approx]61.81)][-20% ([approx]98.9)][-10% ([approx]111.3)][-5% ([approx]117.4)][5% ([approx]129.8)][10% ([approx]136)][20% ([approx]148.3)][50% ([approx]185.4)][100% ([approx]247.2)][500 ([approx]741.7)]] -[[bracket_and_solve_root][11][5][5][8][8][7][7][8][9][8][6][10]] -[[newton_iterate][4][4][4][3][3][3][3][3][3][4][4][4]] -[[halley_iterate][4][3][3][3][3][2][2][3][3][3][3][3]] -[[schroder_iterate][4][3][3][3][3][2][2][3][3][3][3][3]] -] - -Interestingly this function is much more resistant to a poor initial guess when using derivatives. - -[endsect] - -[section:bad_roots Examples Where Root Finding Goes Wrong] - -There are many reasons why root root finding can fail, here are just a few of the more common examples: - -[h3 Local Minima] - -If you start in the wrong place, such as z[sub 0] here: - -[$../roots/bad_root_1.svg] - -Then almost any root-finding algorithm will descend into a local minima rather than find the root. - -[h3 Flatlining] - -In this example, we're starting from a location (z[sub 0]) where the first derivative is essentially zero: - -[$../roots/bad_root_2.svg] - -In this situation the next iteration will shoot off to infinity (assuming we're using derivatives that is). Our -code guards against this by insisting that the root is always bracketed, and then never stepping outside those bounds. -In a case like this, no root finding algorithm can do better than bisecting until the root is found. - -Note that there is no scale on the graph, we have seen examples of this situation occur in practice ['even when -several decimal places of the initial guess z[sub 0] are correct.] - -This is really a special case of a more common situation where root finding with derivatives is ['divergent]. Consider -starting at z[sub 0] in this case: - -[$../roots/bad_root_4.svg] - -An initial Newton step would take you further from the root than you started, as will all subsequent steps. - -[h3 Micro-stepping / Non-convergence] - -Consider starting at z[sub 0] in this situation: - -[$../roots/bad_root_3.svg] - -The first derivative is essentially infinite, and the second close to zero (and so offers no correction if we use it), -as a result we take a very small first step. In the worst case situation, the first step is so small -- perhaps even so small that subtracting from z[sub 0] has no effect at the current working precision - that our algorithm -will assume we are at the root already and terminate. Otherwise we will take lot's of very small steps which never converge -on the root: our algorithms will protect against that by reverting to bisection. - -An example of this situation would be trying to find the root of e[super -1/z[super 2]] - this function has a single -root at ['z = 0], but for ['z[sub 0] < 0] neither Newton nor Halley steps will ever converge on the root, and for ['z[sub 0] > 0] -the steps are actually divergent. - -[endsect] - -[/ - Copyright 2015 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/roots/root_n_comparison_tables.qbk b/boost/libs/math/doc/roots/root_n_comparison_tables.qbk deleted file mode 100644 index 0ea51b34..00000000 --- a/boost/libs/math/doc/roots/root_n_comparison_tables.qbk +++ /dev/null @@ -1,30 +0,0 @@ -[/ -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -Program I:\modular-boost\libs\math\example\root_n_finding_algorithms.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode. - -Fraction of maximum possible bits of accuracy required is 0.75 -[table:cbrt_5 Info for float, double, long double and cpp_bin_float_50 -[[type name] [max_digits10] [binary digits] [required digits]] -[[float][9][24][18]] -[[double][17][53][39]] -[[long double][17][53][39]] -] [/table cbrt_5] - -[table:cbrt_4 Cube root(28) for float, double, long double and cpp_bin_float_50 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[cbrt ][ 0][ 156][1.00][ 0][ ][ 0][ 156][1.00][ 1][ ][ 0][ 156][1.00][ 1][ ]] -[[TOMS748 ][ 8][ 781][5.01][ -1][ ][ 11][ 1093][7.01][ 2][ ][ 11][ 1093][7.01][ 2][ ]] -[[Newton ][ 6][ 1093][7.01][ 0][ ][ 7][ 1093][7.01][ 0][ ][ 7][ 937][6.01][ 0][ ]] -[[Halley ][ 4][ 1093][7.01][ 0][ ][ 4][ 937][6.01][ 0][ ][ 4][ 937][6.01][ 0][ ]] -[[Schr'''ö'''der][ 5][ 1093][7.01][ 0][ ][ 5][ 1093][7.01][ 0][ ][ 5][ 1093][7.01][ 0][ ]] -] [/end of table cbrt_4] diff --git a/boost/libs/math/doc/roots/roots.qbk b/boost/libs/math/doc/roots/roots.qbk deleted file mode 100644 index 7bc75a5b..00000000 --- a/boost/libs/math/doc/roots/roots.qbk +++ /dev/null @@ -1,172 +0,0 @@ -[section:roots_deriv Root Finding With Derivatives: Newton-Raphson, Halley & Schr'''ö'''der] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost { namespace math { - namespace tools { // Note namespace boost::math::tools. - // Newton-Raphson - template - T newton_raphson_iterate(F f, T guess, T min, T max, int digits); - - template - T newton_raphson_iterate(F f, T guess, T min, T max, int digits, boost::uintmax_t& max_iter); - - // Halley - template - T halley_iterate(F f, T guess, T min, T max, int digits); - - template - T halley_iterate(F f, T guess, T min, T max, int digits, boost::uintmax_t& max_iter); - - // Schr'''ö'''der - template - T schroder_iterate(F f, T guess, T min, T max, int digits); - - template - T schroder_iterate(F f, T guess, T min, T max, int digits, boost::uintmax_t& max_iter); - - }}} // namespaces boost::math::tools. - -[h4 Description] - -These functions all perform iterative root-finding [*using derivatives]: - -* `newton_raphson_iterate` performs second-order __newton. - -* `halley_iterate` and `schroder_iterate` perform third-order -__halley and __schroder iteration. - -The functions all take the same parameters: - -[variablelist Parameters of the root finding functions -[[F f] [Type F must be a callable function object that accepts one parameter and - returns a __tuple_type: - -For second-order iterative method ([@http://en.wikipedia.org/wiki/Newton_Raphson Newton Raphson]) - the `tuple` should have [*two] elements containing the evaluation - of the function and its first derivative. - -For the third-order methods -([@http://en.wikipedia.org/wiki/Halley%27s_method Halley] and -Schr'''ö'''der) - the `tuple` should have [*three] elements containing the evaluation of - the function and its first and second derivatives.]] -[[T guess] [The initial starting value. A good guess is crucial to quick convergence!]] -[[T min] [The minimum possible value for the result, this is used as an initial lower bracket.]] -[[T max] [The maximum possible value for the result, this is used as an initial upper bracket.]] -[[int digits] [The desired number of binary digits precision.]] -[[uintmax_t& max_iter] [An optional maximum number of iterations to perform. On exit, this is updated to the actual number of iterations performed.]] -] - -When using these functions you should note that: - -* Default `max_iter = (std::numeric_limits::max)()` is effectively 'iterate for ever'. -* They may be very sensitive to the initial guess, typically they converge very rapidly -if the initial guess has two or three decimal digits correct. However convergence -can be no better than __bisect, or in some rare cases, even worse than __bisect if the -initial guess is a long way from the correct value and the derivatives are close to zero. -* These functions include special cases to handle zero first (and second where appropriate) -derivatives, and fall back to __bisect in this case. However, it is helpful -if functor F is defined to return an arbitrarily small value ['of the correct sign] rather -than zero. -* If the derivative at the current best guess for the result is infinite (or -very close to being infinite) then these functions may terminate prematurely. -A large first derivative leads to a very small next step, triggering the termination -condition. Derivative based iteration may not be appropriate in such cases. -* If the function is 'Really Well Behaved' (is monotonic and has only one root) -the bracket bounds ['min] and ['max] may as well be set to the widest limits -like zero and `numeric_limits::max()`. -*But if the function more complex and may have more than one root or a pole, -the choice of bounds is protection against jumping out to seek the 'wrong' root. -* These functions fall back to __bisect if the next computed step would take the -next value out of bounds. The bounds are updated after each step to ensure this leads -to convergence. However, a good initial guess backed up by asymptotically-tight -bounds will improve performance no end - rather than relying on __bisection. -* The value of ['digits] is crucial to good performance of these functions, -if it is set too high then at best you will get one extra (unnecessary) -iteration, and at worst the last few steps will proceed by __bisection. -Remember that the returned value can never be more accurate than ['f(x)] can be -evaluated, and that if ['f(x)] suffers from cancellation errors as it -tends to zero then the computed steps will be effectively random. The -value of ['digits] should be set so that iteration terminates before this point: -remember that for second and third order methods the number of correct -digits in the result is increasing quite -substantially with each iteration, ['digits] should be set by experiment so that the final -iteration just takes the next value into the zone where ['f(x)] becomes inaccurate. -A good starting point for ['digits] would be 0.6*D for Newton and 0.4*D for Halley or Shr'''ö'''der -iteration, where D is `std::numeric_limits::digits`. -* If you need some diagnostic output to see what is going on, you can -`#define BOOST_MATH_INSTRUMENT` before the `#include `, -and also ensure that display of all the significant digits with -` cout.precision(std::numeric_limits::digits10)`: -or even possibly significant digits with -` cout.precision(std::numeric_limits::max_digits10)`: -but be warned, this may produce copious output! -* Finally: you may well be able to do better than these functions by hand-coding -the heuristics used so that they are tailored to a specific function. You may also -be able to compute the ratio of derivatives used by these methods more efficiently -than computing the derivatives themselves. As ever, algebraic simplification can -be a big win. - -[h4:newton Newton Raphson Method] - -Given an initial guess ['x0] the subsequent values are computed using: - -[equation roots1] - -Out of bounds steps revert to __bisection of the current bounds. - -Under ideal conditions, the number of correct digits doubles with each iteration. - -[h4:halley Halley's Method] - -Given an initial guess ['x0] the subsequent values are computed using: - -[equation roots2] - -Over-compensation by the second derivative (one which would proceed -in the wrong direction) causes the method to -revert to a Newton-Raphson step. - -Out of bounds steps revert to bisection of the current bounds. - -Under ideal conditions, the number of correct digits trebles with each iteration. - -[h4:schroder Schr'''ö'''der's Method] - -Given an initial guess x0 the subsequent values are computed using: - -[equation roots3] - -Over-compensation by the second derivative (one which would proceed -in the wrong direction) causes the method to -revert to a Newton-Raphson step. Likewise a Newton step is used -whenever that Newton step would change the next value by more than 10%. - -Out of bounds steps revert to __bisection_wikipedia of the current bounds. - -Under ideal conditions, the number of correct digits trebles with each iteration. - -This is Schr'''ö'''der's general result (equation 18 from [@http://drum.lib.umd.edu/handle/1903/577 Stewart, G. W. -"On Infinitely Many Algorithms for Solving Equations." English translation of Schr'''ö'''der's original paper. -College Park, MD: University of Maryland, Institute for Advanced Computer Studies, Department of Computer Science, 1993].) - -This method guarantees at least quadratic convergence (the same as Newton's method), and is known to work well in the presence of multiple roots: -something that neither Newton nor Halley can do. - -[h4 Examples] - -See __root_finding_examples. - -[endsect] [/section:roots_deriv Root Finding With Derivatives] - -[/ - Copyright 2006, 2010, 2012 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/roots/roots_overview.qbk b/boost/libs/math/doc/roots/roots_overview.qbk deleted file mode 100644 index 5f1490d6..00000000 --- a/boost/libs/math/doc/roots/roots_overview.qbk +++ /dev/null @@ -1,29 +0,0 @@ - -Several tools are provided to aid finding minima and roots of functions. - -Some __root_finding_without_derivatives methods are __bisection, -__bracket_solve, including use of __root_finding_TOMS748. - -For __root_finding_with_derivatives the methods of -__newton, __halley, and __schroder are implemented. - -For locating minima of a function, a __brent_minima_example is provided. - -There are several fully-worked __root_finding_examples, including: - -* __root_finding_example_cbrt_without_derivatives -* __root_finding_example_cbrt_with_1_derivative -* __root_finding_example_cbrt_with_2_derivatives - -[include roots_without_derivatives.qbk] -[include roots.qbk] -[include root_finding_examples.qbk] -[include minima.qbk] -[include root_comparison.qbk] - -[/ roots_overview.qbk - Copyright 2015 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/roots/roots_table_100_gcc_SEE_SEE2_X64.qbk b/boost/libs/math/doc/roots/roots_table_100_gcc_SEE_SEE2_X64.qbk deleted file mode 100644 index 317b2155..00000000 --- a/boost/libs/math/doc/roots/roots_table_100_gcc_SEE_SEE2_X64.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/roots_table_100_gcc_SEE SEE2 X64 .qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program i:/modular-boost/libs/math/example/root_n_finding_algorithms.cpp, - GNU C++ version 4.9.1, GNU libstdc++ version 20140716, Win32 -Compiled in optimise mode.] -Fraction of full accuracy 1 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types. -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 7][ 296][2.72][ 0][ ][ 11][ 500][3.57][ 1][ ][ 9][ 1593][4.25][ 0][ ][ 12][74953][7.01][ 0][ ]] -[[Newton ][ 3][ 109][1.00][ 0][ ][ 5][ 140][1.00][ -1][ ][ 4][ 375][1.00][ 0][ ][ 6][10687][1.00][ 0][ ]] -[[Halley ][ 2][ 109][1.00][ 0][ ][ 4][ 171][1.22][ 0][ ][ 3][ 453][1.21][ 0][ ][ 4][17578][1.64][ 0][ ]] -[[Schr'''ö'''der][ 6][ 203][1.86][ 0][ ][ 8][ 250][1.79][ -1][ ][ 7][ 609][1.62][ 0][ ][ 8][33546][3.14][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types. -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 500][3.21][ 1][ ][ 15][ 687][4.40][ 2][ ][ 13][ 2390][5.11][ 0][ ][ 14][99765][5.95][ 0][ ]] -[[Newton ][ 6][ 156][1.00][ 0][ ][ 7][ 156][1.00][ 0][ ][ 6][ 468][1.00][ 0][ ][ 8][16765][1.00][ 0][ ]] -[[Halley ][ 5][ 187][1.20][ 0][ ][ 6][ 218][1.40][ 0][ ][ 5][ 796][1.70][ 0][ ][ 6][29250][1.74][ 0][ ]] -[[Schr'''ö'''der][ 6][ 203][1.30][ 0][ ][ 6][ 234][1.50][ 0][ ][ 6][ 531][1.13][ 0][ ][ 7][30687][1.83][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types. -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 593][3.47][ -2][ ][ 14][ 734][3.93][ 2][ ][ 14][ 2750][5.18][ 1][ ][ 17][155921][7.06][ 2][ ]] -[[Newton ][ 7][ 171][1.00][ 0][ ][ 8][ 187][1.00][ 0][ ][ 8][ 531][1.00][ 0][ ][ 10][22093][1.00][ 0][ ]] -[[Halley ][ 5][ 187][1.09][ 0][ ][ 6][ 234][1.25][ 0][ ][ 6][ 703][1.32][ 0][ ][ 7][36375][1.65][ 0][ ]] -[[Schr'''ö'''der][ 7][ 234][1.37][ 0][ ][ 7][ 250][1.34][ 0][ ][ 8][ 625][1.18][ 0][ ][ 8][37843][1.71][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_100_gcc_X64_SSE2.qbk b/boost/libs/math/doc/roots/roots_table_100_gcc_X64_SSE2.qbk deleted file mode 100644 index f8ee069c..00000000 --- a/boost/libs/math/doc/roots/roots_table_100_gcc_X64_SSE2.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/./../../../libs/math/doc/roots/roots_table_100_gcc_X64_SSE2.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program root_n_finding_algorithms.cpp, - GNU C++ version 4.9.2, GNU libstdc++ version 20141030, Win32 -Compiled in optimise mode., _X64_SSE2] -Fraction of full accuracy 1 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types, using _X64_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 7][ 193][2.14][ 0][ ][ 11][ 432][3.86][ 1][ ][ 9][ 579][3.83][ 0][ ][ 12][59062][[role red 7.56]][ 0][ ]] -[[Newton ][ 3][ 90][[role blue 1.00]][ 0][ ][ 4][ 112][[role blue 1.00]][ -1][ ][ 5][ 151][[role blue 1.00]][ 0][ ][ 6][ 7812][[role blue 1.00]][ 0][ ]] -[[Halley ][ 2][ 98][1.09][ 0][ ][ 3][ 135][1.21][ 0][ ][ 3][ 201][1.33][ 0][ ][ 4][13750][1.76][ 0][ ]] -[[Schr'''ö'''der][ 2][ 112][1.24][ 0][ ][ 3][ 142][1.27][ -1][ ][ 3][ 206][1.36][ 0][ ][ 4][17031][2.18][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types, using _X64_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 351][1.97][ 1][ ][ 15][ 621][3.18][ 2][ ][ 13][ 906][3.61][ 0][ ][ 14][75468][[role red 7.10]][ 0][ ]] -[[Newton ][ 5][ 178][[role blue 1.00]][ 0][ ][ 6][ 195][[role blue 1.00]][ 0][ ][ 7][ 251][[role blue 1.00]][ 0][ ][ 8][10625][[role blue 1.00]][ 0][ ]] -[[Halley ][ 4][ 196][1.10][ 0][ ][ 5][ 242][1.24][ 0][ ][ 5][ 345][1.37][ 0][ ][ 6][21093][1.99][ 0][ ]] -[[Schr'''ö'''der][ 5][ 225][1.26][ 0][ ][ 6][ 270][1.38][ 0][ ][ 6][ 384][1.53][ 0][ ][ 7][29062][2.74][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types, using _X64_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 429][2.22][ -2][ ][ 14][ 679][3.02][ 2][ ][ 14][ 1098][3.94][ 1][ ][ 17][114531][[role red 8.83]][ 2][ ]] -[[Newton ][ 6][ 193][[role blue 1.00]][ 0][ ][ 7][ 225][[role blue 1.00]][ 0][ ][ 7][ 279][[role blue 1.00]][ 0][ ][ 9][12968][[role blue 1.00]][ 0][ ]] -[[Halley ][ 4][ 196][[role blue 1.02]][ -1][ ][ 5][ 248][1.10][ 0][ ][ 5][ 348][1.25][ 0][ ][ 6][21718][1.67][ 0][ ]] -[[Schr'''ö'''der][ 6][ 254][1.32][ 0][ ][ 7][ 323][1.44][ 0][ ][ 7][ 453][1.62][ 0][ ][ 8][35625][2.75][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_100_msvc.qbk b/boost/libs/math/doc/roots/roots_table_100_msvc.qbk deleted file mode 100644 index 240c464d..00000000 --- a/boost/libs/math/doc/roots/roots_table_100_msvc.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/roots_table_100_msvc.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program I:\modular-boost\libs\math\example\root_n_finding_algorithms.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode.] -Fraction of full accuracy 1 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 7][ 750][[role blue 1.00]][ 0][ ][ 11][ 1015][1.08][ 1][ ][ 11][ 1000][1.03][ 1][ ][ 12][145687][[role red 6.07]][ 0][ ]] -[[Newton ][ 3][ 890][1.19][ 0][ ][ 5][ 937][[role blue 1.00]][ -1][ ][ 5][ 968][[role blue 1.00]][ -1][ ][ 6][24000][[role blue 1.00]][ 0][ ]] -[[Halley ][ 2][ 921][1.23][ 0][ ][ 4][ 953][[role blue 1.02]][ 0][ ][ 4][ 968][[role blue 1.00]][ 0][ ][ 4][41468][1.73][ 0][ ]] -[[Schr'''ö'''der][ 6][ 984][1.31][ 0][ ][ 8][ 1062][1.13][ -1][ ][ 8][ 1046][1.08][ -1][ ][ 8][72062][3.00][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 1015][1.07][ 1][ ][ 15][ 1218][1.22][ 2][ ][ 15][ 1218][1.24][ 2][ ][ 14][191937][[role red 5.43]][ 0][ ]] -[[Newton ][ 6][ 953][[role blue 1.00]][ 0][ ][ 7][ 1000][[role blue 1.00]][ 0][ ][ 7][ 984][[role blue 1.00]][ 0][ ][ 8][35359][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 984][1.03][ 0][ ][ 6][ 1031][1.03][ 0][ ][ 6][ 1015][1.03][ 0][ ][ 6][66968][1.89][ 0][ ]] -[[Schr'''ö'''der][ 6][ 984][1.03][ 0][ ][ 6][ 1000][[role blue 1.00]][ 0][ ][ 6][ 1000][[role blue 1.02]][ 0][ ][ 7][67437][1.91][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 1078][1.11][ -2][ ][ 14][ 1312][1.33][ 2][ ][ 14][ 1296][1.28][ 2][ ][ 17][294640][[role red 6.24]][ 2][ ]] -[[Newton ][ 7][ 968][[role blue 1.00]][ 0][ ][ 8][ 984][[role blue 1.00]][ 0][ ][ 8][ 1015][[role blue 1.00]][ 0][ ][ 10][47187][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 1000][1.03][ 0][ ][ 6][ 1046][1.06][ 0][ ][ 6][ 1109][1.09][ 0][ ][ 7][79187][1.68][ 0][ ]] -[[Schr'''ö'''der][ 7][ 1062][1.10][ 0][ ][ 7][ 1062][1.08][ 0][ ][ 7][ 1062][1.05][ 0][ ][ 8][78406][1.66][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_100_msvc_AVX.qbk b/boost/libs/math/doc/roots/roots_table_100_msvc_AVX.qbk deleted file mode 100644 index 22a4c7d8..00000000 --- a/boost/libs/math/doc/roots/roots_table_100_msvc_AVX.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/roots_table_100_msvc_AVX.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program I:\modular-boost\libs\math\example\root_n_finding_algorithms.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode., _AVX] -Fraction of full accuracy 1 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types, using _AVX -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 7][ 734][[role green 1.0000]1.00][ 0][ ][ 11][ 1015][1.06511.07][ 1][ ][ 11][ 1031][1.08181.08][ 1][ ][ 12][145968][[role red 5.8941]5.89][ 0][ ]] -[[Newton ][ 3][ 906][1.23431.23][ 0][ ][ 5][ 953][[role green 1.0000]1.00][ -1][ ][ 5][ 953][[role green 1.0000]1.00][ -1][ ][ 6][24765][[role green 1.0000]1.00][ 0][ ]] -[[Halley ][ 2][ 921][1.25481.25][ 0][ ][ 4][ 1015][1.06511.07][ 0][ ][ 4][ 1000][1.04931.05][ 0][ ][ 4][42156][1.70221.70][ 0][ ]] -[[Schr'''ö'''der][ 6][ 1000][1.36241.36][ 0][ ][ 8][ 1062][1.11441.11][ -1][ ][ 8][ 1062][1.11441.11][ -1][ ][ 8][72500][2.92752.93][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types, using _AVX -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 984][1.03251.03][ 1][ ][ 15][ 1234][1.25411.25][ 2][ ][ 15][ 1218][1.23781.24][ 2][ ][ 14][191484][[role red 5.3353]5.34][ 0][ ]] -[[Newton ][ 6][ 953][[role green 1.0000]1.00][ 0][ ][ 7][ 984][[role green 1.0000]1.00][ 0][ ][ 7][ 984][[role green 1.0000]1.00][ 0][ ][ 8][35890][[role green 1.0000]1.00][ 0][ ]] -[[Halley ][ 5][ 1000][1.04931.05][ 0][ ][ 6][ 1046][1.06301.06][ 0][ ][ 6][ 1046][1.06301.06][ 0][ ][ 6][66859][1.86291.86][ 0][ ]] -[[Schr'''ö'''der][ 6][ 1015][1.06511.07][ 0][ ][ 6][ 1015][1.03151.03][ 0][ ][ 6][ 1000][[role green 1.0163]1.02][ 0][ ][ 7][68375][1.90511.91][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types, using _AVX -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 1078][1.09551.10][ -2][ ][ 14][ 1265][1.22701.23][ 2][ ][ 14][ 1265][1.22701.23][ 2][ ][ 17][288593][[role red 6.3844]6.38][ 2][ ]] -[[Newton ][ 7][ 984][[role green 1.0000]1.00][ 0][ ][ 8][ 1031][[role green 1.0000]1.00][ 0][ ][ 8][ 1031][[role green 1.0000]1.00][ 0][ ][ 10][45203][[role green 1.0000]1.00][ 0][ ]] -[[Halley ][ 5][ 1015][1.03151.03][ 0][ ][ 6][ 1078][1.04561.05][ 0][ ][ 6][ 1062][1.03011.03][ 0][ ][ 7][77625][1.71731.72][ 0][ ]] -[[Schr'''ö'''der][ 7][ 1031][1.04781.05][ 0][ ][ 7][ 1046][[role green 1.0145]1.01][ 0][ ][ 7][ 1031][[role green 1.0000]1.00][ 0][ ][ 8][77718][1.71931.72][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_100_msvc_X64_AVX.qbk b/boost/libs/math/doc/roots/roots_table_100_msvc_X64_AVX.qbk deleted file mode 100644 index 398bf539..00000000 --- a/boost/libs/math/doc/roots/roots_table_100_msvc_X64_AVX.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/./../../../libs/math/doc/roots/roots_table_100_msvc_X64_AVX.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program root_n_finding_algorithms.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode., _X64_AVX] -Fraction of full accuracy 1 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types, using _X64_AVX -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 7][ 239][1.50][ 0][ ][ 11][ 451][2.53][ 1][ ][ 11][ 439][2.49][ 1][ ][ 12][90312][[role red 7.51]][ 0][ ]] -[[Newton ][ 3][ 159][[role blue 1.00]][ 0][ ][ 4][ 178][[role blue 1.00]][ -1][ ][ 4][ 176][[role blue 1.00]][ -1][ ][ 6][12031][[role blue 1.00]][ 0][ ]] -[[Halley ][ 2][ 168][1.06][ 0][ ][ 3][ 203][1.14][ 0][ ][ 3][ 198][1.13][ 0][ ][ 4][20937][1.74][ 0][ ]] -[[Schr'''ö'''der][ 2][ 173][1.09][ 0][ ][ 3][ 206][1.16][ -1][ ][ 3][ 203][1.15][ -1][ ][ 4][26250][2.18][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types, using _X64_AVX -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 385][2.19][ 1][ ][ 15][ 635][3.13][ 2][ ][ 15][ 621][3.17][ 2][ ][ 14][114843][[role red 6.81]][ 0][ ]] -[[Newton ][ 5][ 176][[role blue 1.00]][ 0][ ][ 6][ 203][[role blue 1.00]][ 0][ ][ 6][ 196][[role blue 1.00]][ 0][ ][ 8][16875][[role blue 1.00]][ 0][ ]] -[[Halley ][ 4][ 209][1.19][ 0][ ][ 5][ 254][1.25][ 0][ ][ 5][ 246][1.26][ 0][ ][ 6][32343][1.92][ 0][ ]] -[[Schr'''ö'''der][ 5][ 223][1.27][ 0][ ][ 6][ 273][1.34][ 0][ ][ 6][ 275][1.40][ 0][ ][ 7][45156][2.68][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types, using _X64_AVX -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 467][2.42][ -2][ ][ 14][ 648][3.06][ 2][ ][ 14][ 640][2.99][ 2][ ][ 17][170000][[role red 8.85]][ 2][ ]] -[[Newton ][ 6][ 193][[role blue 1.00]][ 0][ ][ 7][ 212][[role blue 1.00]][ 0][ ][ 7][ 214][[role blue 1.00]][ 0][ ][ 9][19218][[role blue 1.00]][ 0][ ]] -[[Halley ][ 4][ 209][1.08][ -1][ ][ 5][ 256][1.21][ 0][ ][ 5][ 250][1.17][ 0][ ][ 6][32656][1.70][ 0][ ]] -[[Schr'''ö'''der][ 6][ 248][1.28][ 0][ ][ 7][ 306][1.44][ 0][ ][ 7][ 298][1.39][ 0][ ][ 8][53437][2.78][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_100_msvc_X86.qbk b/boost/libs/math/doc/roots/roots_table_100_msvc_X86.qbk deleted file mode 100644 index 7a4a3bde..00000000 --- a/boost/libs/math/doc/roots/roots_table_100_msvc_X86.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/roots_table_100_msvc_X86.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program I:\modular-boost\libs\math\example\root_n_finding_algorithms.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode., _X86] -Fraction of full accuracy 1 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 8][ 1109][1.08][ -2][ ][ 11][ 1265][1.29][ 1][ ][ 11][ 1203][1.22][ 1][ ][ 12][145453][[role red 5.95]][ 0][ ]] -[[Newton ][ 4][ 1031][[role blue 1.00]][ 0][ ][ 5][ 984][[role blue 1.00]][ -1][ ][ 5][ 984][[role blue 1.00]][ -1][ ][ 6][24453][[role blue 1.00]][ 0][ ]] -[[Halley ][ 3][ 1046][[role blue 1.01]][ 0][ ][ 4][ 1046][1.06][ 0][ ][ 4][ 1046][1.06][ 0][ ][ 4][40921][1.67][ 0][ ]] -[[Schr'''ö'''der][ 7][ 1250][1.21][ 0][ ][ 8][ 1078][1.10][ -1][ ][ 8][ 1078][1.10][ -1][ ][ 8][70750][2.89][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 1562][1.39][ 1][ ][ 15][ 1484][1.51][ 2][ ][ 15][ 1437][1.46][ 2][ ][ 14][188640][[role red 5.29]][ 0][ ]] -[[Newton ][ 6][ 1125][[role blue 1.00]][ 0][ ][ 7][ 984][[role blue 1.00]][ 0][ ][ 7][ 984][[role blue 1.00]][ 0][ ][ 8][35640][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 1156][[role blue 1.03]][ 0][ ][ 6][ 1125][1.14][ 0][ ][ 6][ 1109][1.13][ 0][ ][ 6][65218][1.83][ 0][ ]] -[[Schr'''ö'''der][ 6][ 1187][1.06][ 0][ ][ 6][ 1031][[role blue 1.05]][ 0][ ][ 6][ 1015][[role blue 1.03]][ 0][ ][ 7][66828][1.88][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 1812][1.49][ -2][ ][ 14][ 1531][1.48][ 2][ ][ 14][ 1500][1.43][ 2][ ][ 17][284937][[role red 6.38]][ 2][ ]] -[[Newton ][ 7][ 1218][[role blue 1.00]][ -1][ ][ 8][ 1031][[role blue 1.00]][ 0][ ][ 8][ 1046][[role blue 1.00]][ 0][ ][ 10][44640][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 1265][[role blue 1.04]][ -1][ ][ 6][ 1156][1.12][ 0][ ][ 6][ 1140][1.09][ 0][ ][ 7][77843][1.74][ 0][ ]] -[[Schr'''ö'''der][ 7][ 1343][1.10][ -1][ ][ 7][ 1046][[role blue 1.01]][ 0][ ][ 7][ 1109][1.06][ 0][ ][ 8][77343][1.73][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_100_msvc_X86_SSE2.qbk b/boost/libs/math/doc/roots/roots_table_100_msvc_X86_SSE2.qbk deleted file mode 100644 index dc975df6..00000000 --- a/boost/libs/math/doc/roots/roots_table_100_msvc_X86_SSE2.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/./../../../libs/math/doc/roots/roots_table_100_msvc_X86_SSE2.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program root_n_finding_algorithms.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode., _X86_SSE2] -Fraction of full accuracy 1 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 7][ 320][1.53][ 0][ ][ 11][ 576][2.61][ 1][ ][ 11][ 557][2.48][ 1][ ][ 12][119843][[role red 7.52]][ 0][ ]] -[[Newton ][ 3][ 209][[role blue 1.00]][ 0][ ][ 4][ 221][[role blue 1.00]][ -1][ ][ 4][ 225][[role blue 1.00]][ -1][ ][ 6][15937][[role blue 1.00]][ 0][ ]] -[[Halley ][ 2][ 214][[role blue 1.02]][ 0][ ][ 3][ 256][1.16][ 0][ ][ 3][ 243][1.08][ 0][ ][ 4][28437][1.78][ 0][ ]] -[[Schr'''ö'''der][ 2][ 218][[role blue 1.04]][ 0][ ][ 3][ 245][1.11][ -1][ ][ 3][ 245][1.09][ -1][ ][ 4][35625][2.24][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 493][2.18][ 1][ ][ 15][ 762][3.05][ 2][ ][ 15][ 765][3.08][ 2][ ][ 14][157343][[role red 7.09]][ 0][ ]] -[[Newton ][ 5][ 226][[role blue 1.00]][ 0][ ][ 6][ 250][[role blue 1.00]][ 0][ ][ 6][ 248][[role blue 1.00]][ 0][ ][ 8][22187][[role blue 1.00]][ 0][ ]] -[[Halley ][ 4][ 257][1.14][ 0][ ][ 5][ 293][1.17][ 0][ ][ 5][ 293][1.18][ 0][ ][ 6][44062][1.99][ 0][ ]] -[[Schr'''ö'''der][ 5][ 285][1.26][ 0][ ][ 6][ 317][1.27][ 0][ ][ 6][ 317][1.28][ 0][ ][ 7][61406][2.77][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 556][2.24][ -2][ ][ 14][ 784][2.94][ 2][ ][ 14][ 793][2.94][ 2][ ][ 17][235781][[role red 8.88]][ 2][ ]] -[[Newton ][ 6][ 248][[role blue 1.00]][ 0][ ][ 7][ 267][[role blue 1.00]][ 0][ ][ 7][ 270][[role blue 1.00]][ 0][ ][ 9][26562][[role blue 1.00]][ 0][ ]] -[[Halley ][ 4][ 254][[role blue 1.02]][ -1][ ][ 5][ 290][1.09][ 0][ ][ 5][ 293][1.09][ 0][ ][ 6][46406][1.75][ 0][ ]] -[[Schr'''ö'''der][ 6][ 312][1.26][ 0][ ][ 7][ 351][1.31][ 0][ ][ 7][ 356][1.32][ 0][ ][ 8][76250][2.87][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_75_gcc_SEE_SEE2_X64.qbk b/boost/libs/math/doc/roots/roots_table_75_gcc_SEE_SEE2_X64.qbk deleted file mode 100644 index 2d967d99..00000000 --- a/boost/libs/math/doc/roots/roots_table_75_gcc_SEE_SEE2_X64.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/roots_table_75_gcc_SEE SEE2 X64 .qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program i:/modular-boost/libs/math/example/root_n_finding_algorithms.cpp, - GNU C++ version 4.9.1, GNU libstdc++ version 20140716, Win32 -Compiled in optimise mode.] -Fraction of full accuracy 0.75 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types. -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 7][ 312][2.50][ 0][ ][ 11][ 484][3.46][ 1][ ][ 9][ 1625][4.17][ 0][ ][ 11][67718][6.46][ 0][ ]] -[[Newton ][ 3][ 125][1.00][ 0][ ][ 5][ 140][1.00][ -1][ ][ 4][ 390][1.00][ 0][ ][ 6][10484][1.00][ 0][ ]] -[[Halley ][ 2][ 125][1.00][ 0][ ][ 3][ 156][1.11][ 0][ ][ 3][ 453][1.16][ 0][ ][ 4][17359][1.66][ 0][ ]] -[[Schr'''ö'''der][ 6][ 203][1.62][ 0][ ][ 7][ 234][1.67][ -1][ ][ 7][ 625][1.60][ 0][ ][ 8][35203][3.36][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types. -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 531][3.40][ 1][ ][ 15][ 734][4.29][ 2][ ][ 13][ 2437][5.04][ 0][ ][ 14][105421][6.48][ 0][ ]] -[[Newton ][ 5][ 156][1.00][ 0][ ][ 7][ 171][1.00][ 0][ ][ 6][ 484][1.00][ 0][ ][ 8][16281][1.00][ 0][ ]] -[[Halley ][ 5][ 187][1.20][ 0][ ][ 6][ 234][1.37][ 0][ ][ 5][ 796][1.64][ 0][ ][ 6][30781][1.89][ 0][ ]] -[[Schr'''ö'''der][ 5][ 187][1.20][ 0][ ][ 6][ 218][1.27][ 0][ ][ 6][ 546][1.13][ 0][ ][ 7][30640][1.88][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types. -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 11][ 546][3.19][ 0][ ][ 14][ 750][4.01][ 2][ ][ 14][ 2828][5.33][ 1][ ][ 17][153093][7.82][ 2][ ]] -[[Newton ][ 6][ 171][1.00][ 0][ ][ 7][ 187][1.00][ 0][ ][ 8][ 531][1.00][ 0][ ][ 9][19578][1.00][ 0][ ]] -[[Halley ][ 5][ 203][1.19][ 0][ ][ 6][ 234][1.25][ 0][ ][ 6][ 703][1.32][ 0][ ][ 7][36296][1.85][ 0][ ]] -[[Schr'''ö'''der][ 6][ 203][1.19][ 0][ ][ 7][ 250][1.34][ 0][ ][ 7][ 578][1.09][ 0][ ][ 8][38046][1.94][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_75_gcc_X64_SSE2.qbk b/boost/libs/math/doc/roots/roots_table_75_gcc_X64_SSE2.qbk deleted file mode 100644 index b10640ae..00000000 --- a/boost/libs/math/doc/roots/roots_table_75_gcc_X64_SSE2.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/roots_table_75_gcc_X64_SSE2 _X64.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program i:/modular-boost/libs/math/example/root_n_finding_algorithms.cpp, - GNU C++ version 4.9.1, GNU libstdc++ version 20140716, Win32 -Compiled in optimise mode., _X64_SSE2] -Fraction of full accuracy 0.75 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types, using _X64_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 7][ 250][2.29][ 0][ ][ 11][ 484][3.87][ 1][ ][ 9][ 1546][4.31][ 0][ ][ 11][57453][[role red 6.11]][ 0][ ]] -[[Newton ][ 3][ 109][[role blue 1.00]][ 0][ ][ 5][ 125][[role blue 1.00]][ -1][ ][ 4][ 359][[role blue 1.00]][ 0][ ][ 6][ 9406][[role blue 1.00]][ 0][ ]] -[[Halley ][ 2][ 109][[role blue 1.00]][ 0][ ][ 3][ 140][[role blue 1.12]][ 0][ ][ 3][ 453][[role blue 1.26]][ 0][ ][ 4][15359][[role blue 1.63]][ 0][ ]] -[[Schr'''ö'''der][ 6][ 203][[role blue 1.86]][ 0][ ][ 7][ 218][[role blue 1.74]][ -1][ ][ 7][ 562][[role blue 1.57]][ 0][ ][ 8][30921][3.29][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types, using _X64_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 468][3.74][ 1][ ][ 15][ 671][4.30][ 2][ ][ 13][ 2359][[role red 5.21]][ 0][ ][ 14][88515][[role red 6.05]][ 0][ ]] -[[Newton ][ 5][ 125][[role blue 1.00]][ 0][ ][ 7][ 156][[role blue 1.00]][ 0][ ][ 6][ 453][[role blue 1.00]][ 0][ ][ 8][14625][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 187][[role blue 1.50]][ 0][ ][ 6][ 218][[role blue 1.40]][ 0][ ][ 5][ 718][[role blue 1.58]][ 0][ ][ 6][27843][[role blue 1.90]][ 0][ ]] -[[Schr'''ö'''der][ 5][ 171][[role blue 1.37]][ 0][ ][ 6][ 203][[role blue 1.30]][ 0][ ][ 6][ 515][[role blue 1.14]][ 0][ ][ 7][27640][[role blue 1.89]][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types, using _X64_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 11][ 515][3.30][ 0][ ][ 14][ 718][4.20][ 2][ ][ 14][ 2765][[role red 5.37]][ 1][ ][ 17][132062][[role red 7.46]][ 2][ ]] -[[Newton ][ 6][ 156][[role blue 1.00]][ 0][ ][ 7][ 171][[role blue 1.00]][ 0][ ][ 8][ 515][[role blue 1.00]][ 0][ ][ 9][17703][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 187][[role blue 1.20]][ 0][ ][ 6][ 218][[role blue 1.27]][ 0][ ][ 6][ 671][[role blue 1.30]][ 0][ ][ 7][32000][[role blue 1.81]][ 0][ ]] -[[Schr'''ö'''der][ 6][ 203][[role blue 1.30]][ 0][ ][ 7][ 234][[role blue 1.37]][ 0][ ][ 7][ 578][[role blue 1.12]][ 0][ ][ 8][34265][[role blue 1.94]][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_75_msvc.qbk b/boost/libs/math/doc/roots/roots_table_75_msvc.qbk deleted file mode 100644 index 2fa68cae..00000000 --- a/boost/libs/math/doc/roots/roots_table_75_msvc.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/roots_table_75_msvc.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program I:\modular-boost\libs\math\example\root_n_finding_algorithms.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode.] -Fraction of full accuracy 0.75 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 7][ 750][[role blue 1.00]][ 0][ ][ 11][ 1031][1.10][ 1][ ][ 11][ 1015][1.08][ 1][ ][ 11][125921][[role red 5.53]][ 0][ ]] -[[Newton ][ 3][ 906][1.21][ 0][ ][ 5][ 953][[role blue 1.02]][ -1][ ][ 5][ 937][[role blue 1.00]][ -1][ ][ 6][22750][[role blue 1.00]][ 0][ ]] -[[Halley ][ 2][ 921][1.23][ 0][ ][ 3][ 937][[role blue 1.00]][ 0][ ][ 3][ 953][[role blue 1.02]][ 0][ ][ 4][40125][1.76][ 0][ ]] -[[Schr'''ö'''der][ 6][ 984][1.31][ 0][ ][ 7][ 1000][1.07][ -1][ ][ 7][ 1015][1.08][ -1][ ][ 8][73296][3.22][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 1015][1.08][ 1][ ][ 15][ 1265][1.29][ 2][ ][ 15][ 1265][1.31][ 2][ ][ 14][198890][[role red 5.61]][ 0][ ]] -[[Newton ][ 5][ 937][[role blue 1.00]][ 0][ ][ 7][ 984][[role blue 1.00]][ 0][ ][ 7][ 1000][1.03][ 0][ ][ 8][35437][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 984][1.05][ 0][ ][ 6][ 1078][1.10][ 0][ ][ 6][ 1046][1.08][ 0][ ][ 6][69484][1.96][ 0][ ]] -[[Schr'''ö'''der][ 5][ 953][[role blue 1.02]][ 0][ ][ 6][ 1000][[role blue 1.02]][ 0][ ][ 6][ 968][[role blue 1.00]][ 0][ ][ 7][67937][1.92][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 11][ 1093][1.11][ 0][ ][ 14][ 1343][1.34][ 2][ ][ 14][ 1375][1.35][ 2][ ][ 17][303625][[role red 7.07]][ 2][ ]] -[[Newton ][ 6][ 984][[role blue 1.00]][ 0][ ][ 7][ 1000][[role blue 1.00]][ 0][ ][ 7][ 1015][[role blue 1.00]][ 0][ ][ 9][42921][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 1031][1.05][ 0][ ][ 6][ 1093][1.09][ 0][ ][ 6][ 1093][1.08][ 0][ ][ 7][83062][1.94][ 0][ ]] -[[Schr'''ö'''der][ 6][ 1046][1.06][ 0][ ][ 7][ 1093][1.09][ 0][ ][ 7][ 1046][1.03][ 0][ ][ 8][86234][2.01][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_75_msvc_AVX.qbk b/boost/libs/math/doc/roots/roots_table_75_msvc_AVX.qbk deleted file mode 100644 index a85aef87..00000000 --- a/boost/libs/math/doc/roots/roots_table_75_msvc_AVX.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/roots_table_75_msvc_AVX.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program I:\modular-boost\libs\math\example\root_n_finding_algorithms.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode., _AVX] -Fraction of full accuracy 0.75 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types, using _AVX -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 7][ 750][[role green 1.0000]1.00][ 0][ ][ 11][ 1031][1.10031.10][ 1][ ][ 11][ 1046][1.09761.10][ 1][ ][ 11][126781][[role red 5.5348]5.53][ 0][ ]] -[[Newton ][ 3][ 890][1.18671.19][ 0][ ][ 5][ 937][[role green 1.0000]1.00][ -1][ ][ 5][ 953][[role green 1.0000]1.00][ -1][ ][ 6][22906][[role green 1.0000]1.00][ 0][ ]] -[[Halley ][ 2][ 937][1.24931.25][ 0][ ][ 3][ 968][1.03311.03][ 0][ ][ 3][ 953][[role green 1.0000]1.00][ 0][ ][ 4][40265][1.75781.76][ 0][ ]] -[[Schr'''ö'''der][ 6][ 1000][1.33331.33][ 0][ ][ 7][ 1031][1.10031.10][ -1][ ][ 7][ 1031][1.08181.08][ -1][ ][ 8][72296][3.15623.16][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types, using _AVX -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 984][1.03251.03][ 1][ ][ 15][ 1218][1.21801.22][ 2][ ][ 15][ 1250][1.29131.29][ 2][ ][ 14][191500][[role red 5.5965]5.60][ 0][ ]] -[[Newton ][ 5][ 953][[role green 1.0000]1.00][ 0][ ][ 7][ 1062][1.06201.06][ 0][ ][ 7][ 968][[role green 1.0000]1.00][ 0][ ][ 8][34218][[role green 1.0000]1.00][ 0][ ]] -[[Halley ][ 5][ 1000][1.04931.05][ 0][ ][ 6][ 1109][1.10901.11][ 0][ ][ 6][ 1078][1.11361.11][ 0][ ][ 6][66765][1.95121.95][ 0][ ]] -[[Schr'''ö'''der][ 5][ 984][1.03251.03][ 0][ ][ 6][ 1000][[role green 1.0000]1.00][ 0][ ][ 6][ 1000][1.03311.03][ 0][ ][ 7][65703][1.92011.92][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types, using _AVX -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 11][ 1062][1.09711.10][ 0][ ][ 14][ 1281][1.26211.26][ 2][ ][ 14][ 1328][1.32801.33][ 2][ ][ 17][297875][[role red 7.2323]7.23][ 2][ ]] -[[Newton ][ 6][ 968][[role green 1.0000]1.00][ 0][ ][ 7][ 1031][[role green 1.0158]1.02][ 0][ ][ 7][ 1000][[role green 1.0000]1.00][ 0][ ][ 9][41187][[role green 1.0000]1.00][ 0][ ]] -[[Halley ][ 5][ 1015][1.04861.05][ 0][ ][ 6][ 1171][1.15371.15][ 0][ ][ 6][ 1093][1.09301.09][ 0][ ][ 7][77984][1.89341.89][ 0][ ]] -[[Schr'''ö'''der][ 6][ 1000][1.03311.03][ 0][ ][ 7][ 1015][[role green 1.0000]1.00][ 0][ ][ 7][ 1046][1.04601.05][ 0][ ][ 8][77781][1.88851.89][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_75_msvc_X86.qbk b/boost/libs/math/doc/roots/roots_table_75_msvc_X86.qbk deleted file mode 100644 index 0fc82343..00000000 --- a/boost/libs/math/doc/roots/roots_table_75_msvc_X86.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/roots_table_75_msvc_X86.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program I:\modular-boost\libs\math\example\root_n_finding_algorithms.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode., _X86] -Fraction of full accuracy 0.75 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 8][ 1062][1.06][ -2][ ][ 11][ 1171][1.21][ 1][ ][ 11][ 1171][1.21][ 1][ ][ 11][122375][[role red 5.45]][ 0][ ]] -[[Newton ][ 3][ 1000][[role blue 1.00]][ 0][ ][ 5][ 968][[role blue 1.00]][ -1][ ][ 5][ 968][[role blue 1.00]][ -1][ ][ 6][22468][[role blue 1.00]][ 0][ ]] -[[Halley ][ 3][ 1062][1.06][ 0][ ][ 3][ 984][[role blue 1.02]][ 0][ ][ 3][ 984][[role blue 1.02]][ 0][ ][ 4][39234][1.75][ 0][ ]] -[[Schr'''ö'''der][ 7][ 1234][1.23][ 0][ ][ 7][ 1046][1.08][ -1][ ][ 7][ 1031][1.07][ -1][ ][ 8][70406][3.13][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 1562][1.47][ 1][ ][ 15][ 1484][1.48][ 2][ ][ 15][ 1453][1.45][ 2][ ][ 14][202265][[role red 5.41]][ 0][ ]] -[[Newton ][ 5][ 1062][[role blue 1.00]][ 0][ ][ 7][ 1000][[role blue 1.00]][ 0][ ][ 7][ 1000][[role blue 1.00]][ 0][ ][ 8][37359][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 1156][1.09][ 0][ ][ 6][ 1125][1.13][ 0][ ][ 6][ 1109][1.11][ 0][ ][ 6][71843][1.92][ 0][ ]] -[[Schr'''ö'''der][ 5][ 1125][1.06][ 0][ ][ 6][ 1031][[role blue 1.03]][ 0][ ][ 6][ 1031][[role blue 1.03]][ 0][ ][ 7][67875][1.82][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 11][ 1703][1.40][ 0][ ][ 14][ 1609][1.52][ 2][ ][ 14][ 1562][1.47][ 2][ ][ 17][290031][[role red 6.93]][ 2][ ]] -[[Newton ][ 6][ 1218][[role blue 1.00]][ 0][ ][ 7][ 1062][[role blue 1.00]][ 0][ ][ 7][ 1062][[role blue 1.00]][ 0][ ][ 9][41843][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 1265][[role blue 1.04]][ -1][ ][ 6][ 1125][1.06][ 0][ ][ 6][ 1125][1.06][ 0][ ][ 7][75937][1.81][ 0][ ]] -[[Schr'''ö'''der][ 6][ 1296][1.06][ 0][ ][ 7][ 1093][[role blue 1.03]][ 0][ ][ 7][ 1078][[role blue 1.02]][ 0][ ][ 8][77500][1.85][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_table_75_msvc_X86_SSE2.qbk b/boost/libs/math/doc/roots/roots_table_75_msvc_X86_SSE2.qbk deleted file mode 100644 index cb276774..00000000 --- a/boost/libs/math/doc/roots/roots_table_75_msvc_X86_SSE2.qbk +++ /dev/null @@ -1,37 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/roots_table_75_msvc_X86_SSE2 .qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - - -[h6 Program I:\modular-boost\libs\math\example\root_n_finding_algorithms.cpp, - Microsoft Visual C++ version 12.0, Dinkumware standard library version 610, Win32 -Compiled in optimise mode., _X86_SSE2 ] -Fraction of full accuracy 0.75 -[table:root_5 5th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 7][ 750][[role blue 1.00]][ 0][ ][ 11][ 1031][1.10][ 1][ ][ 11][ 1031][1.12][ 1][ ][ 11][125250][[role red 5.53]][ 0][ ]] -[[Newton ][ 3][ 906][1.21][ 0][ ][ 5][ 937][[role blue 1.00]][ -1][ ][ 5][ 953][[role blue 1.03]][ -1][ ][ 6][22640][[role blue 1.00]][ 0][ ]] -[[Halley ][ 2][ 921][1.23][ 0][ ][ 3][ 953][[role blue 1.02]][ 0][ ][ 3][ 921][[role blue 1.00]][ 0][ ][ 4][39390][1.74][ 0][ ]] -[[Schr'''ö'''der][ 6][ 984][1.31][ 0][ ][ 7][ 1031][1.10][ -1][ ][ 7][ 1031][1.12][ -1][ ][ 8][72515][3.20][ 0][ ]] -] [/end of table root] -[table:root_7 7th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 12][ 1000][1.09][ 1][ ][ 15][ 1218][1.28][ 2][ ][ 15][ 1218][1.26][ 2][ ][ 14][192640][[role red 5.64]][ 0][ ]] -[[Newton ][ 5][ 921][[role blue 1.00]][ 0][ ][ 7][ 953][[role blue 1.00]][ 0][ ][ 7][ 968][[role blue 1.00]][ 0][ ][ 8][34156][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 1000][1.09][ 0][ ][ 6][ 1031][1.08][ 0][ ][ 6][ 1031][1.07][ 0][ ][ 6][66625][1.95][ 0][ ]] -[[Schr'''ö'''der][ 5][ 968][1.05][ 0][ ][ 6][ 968][[role blue 1.02]][ 0][ ][ 6][ 1015][[role blue 1.05]][ 0][ ][ 7][64953][1.90][ 0][ ]] -] [/end of table root] -[table:root_11 11th root(28) for float, double, long double and cpp_bin_float_50 types, using _X86_SSE2 -[[][float][][][] [][double][][][] [][long d][][][] [][cpp50][][]] -[[Algo ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ][Its][Times][Norm][Dis][ ]] -[[TOMS748 ][ 11][ 1046][1.08][ 0][ ][ 14][ 1296][1.32][ 2][ ][ 14][ 1312][1.33][ 2][ ][ 17][288437][[role red 6.98]][ 2][ ]] -[[Newton ][ 6][ 968][[role blue 1.00]][ 0][ ][ 7][ 984][[role blue 1.00]][ 0][ ][ 7][ 984][[role blue 1.00]][ 0][ ][ 9][41328][[role blue 1.00]][ 0][ ]] -[[Halley ][ 5][ 1000][[role blue 1.03]][ 0][ ][ 6][ 1046][1.06][ 0][ ][ 6][ 1046][1.06][ 0][ ][ 7][78593][1.90][ 0][ ]] -[[Schr'''ö'''der][ 6][ 1015][[role blue 1.05]][ 0][ ][ 7][ 1046][1.06][ 0][ ][ 7][ 1046][1.06][ 0][ ][ 8][78218][1.89][ 0][ ]] -] [/end of table root] diff --git a/boost/libs/math/doc/roots/roots_without_derivatives.qbk b/boost/libs/math/doc/roots/roots_without_derivatives.qbk deleted file mode 100644 index 00901f8c..00000000 --- a/boost/libs/math/doc/roots/roots_without_derivatives.qbk +++ /dev/null @@ -1,498 +0,0 @@ -[section:roots_noderiv Root Finding Without Derivatives] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost { namespace math { - namespace tools { // Note namespace boost::math::tools. - // Bisection - template - std::pair - bisect( - F f, - T min, - T max, - Tol tol, - boost::uintmax_t& max_iter); - - template - std::pair - bisect( - F f, - T min, - T max, - Tol tol); - - template - std::pair - bisect( - F f, - T min, - T max, - Tol tol, - boost::uintmax_t& max_iter, - const ``__Policy``&); - - // Bracket and Solve Root - template - std::pair - bracket_and_solve_root( - F f, - const T& guess, - const T& factor, - bool rising, - Tol tol, - boost::uintmax_t& max_iter); - - template - std::pair - bracket_and_solve_root( - F f, - const T& guess, - const T& factor, - bool rising, - Tol tol, - boost::uintmax_t& max_iter, - const ``__Policy``&); - - // TOMS 748 algorithm - template - std::pair - toms748_solve( - F f, - const T& a, - const T& b, - Tol tol, - boost::uintmax_t& max_iter); - - template - std::pair - toms748_solve( - F f, - const T& a, - const T& b, - Tol tol, - boost::uintmax_t& max_iter, - const ``__Policy``&); - - template - std::pair - toms748_solve( - F f, - const T& a, - const T& b, - const T& fa, - const T& fb, - Tol tol, - boost::uintmax_t& max_iter); - - template - std::pair - toms748_solve( - F f, - const T& a, - const T& b, - const T& fa, - const T& fb, - Tol tol, - boost::uintmax_t& max_iter, - const ``__Policy``&); - - // Termination conditions: - template - struct eps_tolerance; - - struct equal_floor; - struct equal_ceil; - struct equal_nearest_integer; - - }}} // boost::math::tools namespaces - -[h4 Description] - -These functions solve the root of some function ['f(x)] - -['without the need for any derivatives of ['f(x)]]. - -The `bracket_and_solve_root` functions use __root_finding_TOMS748 -by Alefeld, Potra and Shi that is asymptotically the most efficient known, -and has been shown to be optimal for a certain classes of smooth functions. -Variants with and without __policy_section are provided. - -Alternatively, __bisect is a simple __bisection_wikipedia routine which can be useful -in its own right in some situations, or alternatively for narrowing -down the range containing the root, prior to calling a more advanced -algorithm. - -All the algorithms in this section reduce the diameter of the enclosing -interval with the same asymptotic efficiency with which they locate the -root. This is in contrast to the derivative based methods which may ['never] -significantly reduce the enclosing interval, even though they rapidly approach -the root. This is also in contrast to some other derivative-free methods -(for example, Brent's method described at -[@http://en.wikipedia.org/wiki/Brent%27s_method Brent-Dekker)] -which only reduces the enclosing interval on the final step. -Therefore these methods return a `std::pair` containing the enclosing interval found, -and accept a function object specifying the termination condition. - -Three function objects are provided for ready-made termination conditions: - -* ['eps_tolerance] causes termination when the relative error in the enclosing -interval is below a certain threshold. -* ['equal_floor] and ['equal_ceil] are useful for certain statistical applications -where the result is known to be an integer. -* Other user-defined termination conditions are likely to be used -only rarely, but may be useful in some specific circumstances. - -[section:bisect Bisection] - - template - std::pair - bisect( // Unlimited iterations. - F f, - T min, - T max, - Tol tol); - - template - std::pair - bisect( // Limited iterations. - F f, - T min, - T max, - Tol tol, - boost::uintmax_t& max_iter); - - template - std::pair - bisect( // Specified policy. - F f, - T min, - T max, - Tol tol, - boost::uintmax_t& max_iter, - const ``__Policy``&); - -These functions locate the root using __bisection_wikipedia. - -`bisect` function arguments are: - -[variablelist -[[f] [A unary functor which is the function ['f(x)] whose root is to be found.]] -[[min] [The left bracket of the interval known to contain the root.]] -[[max] [The right bracket of the interval known to contain the root.[br] - It is a precondition that ['min < max] and ['f(min)*f(max) <= 0], - the function raises an __evaluation_error if these preconditions are violated. - The action taken on error is controlled by the __Policy template argument: the default behavior is to - throw a ['boost::math::evaluation_error]. If the __Policy is changed to not throw - then it returns ['std::pair(min, min)].]] -[[tol] [A binary functor that specifies the termination condition: the function - will return the current brackets enclosing the root when ['tol(min, max)] becomes true. - See also __root_termination.]] -[[max_iter][The maximum number of invocations of ['f(x)] to make while searching for the root. On exit, this is updated to the actual number of invocations performed.]] -] - -[optional_policy] - -[*Returns]: a pair of values ['r] that bracket the root so that: - - f(r.first) * f(r.second) <= 0 - -and either - - tol(r.first, r.second) == true - -or - - max_iter >= m - -where ['m] is the initial value of ['max_iter] passed to the function. - -In other words, it's up to the caller to verify whether termination occurred -as a result of exceeding ['max_iter] function invocations (easily done by -checking the updated value of ['max_iter] when the function returns), rather than -because the termination condition ['tol] was satisfied. - -[endsect] - -[section:bracket_solve Bracket and Solve Root] - - template - std::pair - bracket_and_solve_root( - F f, - const T& guess, - const T& factor, - bool rising, - Tol tol, - boost::uintmax_t& max_iter); - - template - std::pair - bracket_and_solve_root( - F f, - const T& guess, - const T& factor, - bool rising, - Tol tol, - boost::uintmax_t& max_iter, - const ``__Policy``&); - -`bracket_and_solve_root` is a convenience function that calls __root_finding_TOMS748 internally -to find the root of ['f(x)]. It is generally much easier to use this function rather than __root_finding_TOMS748, since it -does the hard work of bracketing the root for you. It's bracketing routines are quite robust and will -usually be more foolproof than home-grown routines, unless the function can be analysed to yield tight -brackets. - -Note that this routine can only be used when: - -* ['f(x)] is monotonic in the half of the real axis containing ['guess]. -* The value of the inital guess must have the same sign as the root: the function -will ['never cross the origin] when searching for the root. -* The location of the root should be known at least approximately, -if the location of the root differs by many orders of magnitude -from ['guess] then many iterations will be needed to bracket the root in spite of -the special heuristics used to guard against this very situation. A typical example would be -setting the initial guess to 0.1, when the root is at 1e-300. - -The `bracket_and_solve_root` parameters are: - -[variablelist -[[f][A unary functor that is the function whose root is to be solved. - ['f(x)] must be uniformly increasing or decreasing on ['x].]] -[[guess][An initial approximation to the root.]] -[[factor][A scaling factor that is used to bracket the root: the value - /guess/ is multiplied (or divided as appropriate) by /factor/ - until two values are found that bracket the root. A value - such as 2 is a typical choice for ['factor]. - In addition ['factor] will be multiplied by 2 every 32 iterations: - this is to guard against a really very bad initial guess, typically these occur - when it's known the result is very large or small, but not the exact order - of magnitude.]] -[[rising][Set to ['true] if ['f(x)] is rising on /x/ and /false/ if ['f(x)] - is falling on /x/. This value is used along with the result - of /f(guess)/ to determine if /guess/ is - above or below the root.]] -[[tol] [A binary functor that determines the termination condition for the search - for the root. /tol/ is passed the current brackets at each step, - when it returns true then the current brackets are returned as the pair result. - See also __root_termination.]] -[[max_iter] [The maximum number of function invocations to perform in the search - for the root. On exit is set to the actual number of invocations performed.]] -] - -[optional_policy] - -[*Returns]: a pair of values ['r] that bracket the root so that: - - f(r.first) * f(r.second) <= 0 - -and either - - tol(r.first, r.second) == true - -or - - max_iter >= m - -where ['m] is the initial value of ['max_iter] passed to the function. - -In other words, it's up to the caller to verify whether termination occurred -as a result of exceeding ['max_iter] function invocations (easily done by -checking the value of ['max_iter] when the function returns), rather than -because the termination condition ['tol] was satisfied. - -[endsect] - -[section:TOMS748 Algorithm TOMS 748: Alefeld, Potra and Shi: Enclosing zeros of continuous functions] - - template - std::pair - toms748_solve( - F f, - const T& a, - const T& b, - Tol tol, - boost::uintmax_t& max_iter); - - template - std::pair - toms748_solve( - F f, - const T& a, - const T& b, - Tol tol, - boost::uintmax_t& max_iter, - const ``__Policy``&); - - template - std::pair - toms748_solve( - F f, - const T& a, - const T& b, - const T& fa, - const T& fb, - Tol tol, - boost::uintmax_t& max_iter); - - template - std::pair - toms748_solve( - F f, - const T& a, - const T& b, - const T& fa, - const T& fb, - Tol tol, - boost::uintmax_t& max_iter, - const ``__Policy``&); - -These functions implement TOMS Algorithm 748: it uses a mixture of -cubic, quadratic and linear (secant) interpolation to locate the root of -['f(x)]. The two pairs of functions differ only by whether values for ['f(a)] and -['f(b)] are already available. - -Generally speaking it is easier (and often more efficient) to use __bracket_solve -rather than trying to bracket the root yourself as this function requires. - -This function is provided rather than [@http://en.wikipedia.org/wiki/Brent%27s_method Brent's method] as it is known to be more -effient in many cases (it is asymptotically the most efficient known, -and has been shown to be optimal for a certain classes of smooth functions). -It also has the useful property of decreasing the bracket size -with each step, unlike Brent's method which only shrinks the enclosing interval in the -final step. This makes it particularly useful when you need a result where the ends -of the interval round to the same integer: as often happens in statistical applications -for example. In this situation the function is able to exit after a much smaller -number of iterations than would otherwise be possible. - -The __root_finding_TOMS748 parameters are: - -[variablelist -[[f] [A unary functor that is the function whose root is to be solved. - f(x) need not be uniformly increasing or decreasing on ['x] and - may have multiple roots. However, the bounds given must bracket a single root.]] -[[a] [The lower bound for the initial bracket of the root.]] -[[b] [The upper bound for the initial bracket of the root. - It is a precondition that ['a < b] and that ['a] and ['b] - bracket the root to find so that ['f(a) * f(b) < 0].]] -[[fa] [Optional: the value of ['f(a)].]] -[[fb] [Optional: the value of ['f(b)].]] -[[tol] [A binary functor that determines the termination condition for the search - for the root. ['tol] is passed the current brackets at each step, - when it returns true, then the current brackets are returned as the result. - See also __root_termination.]] -[[max_iter] [The maximum number of function invocations to perform in the search - for the root. On exit, ['max_iter] is set to actual number of function - invocations used.]] -] - -[optional_policy] - -`toms748_solve` returns: a pair of values ['r] that bracket the root so that: - - f(r.first) * f(r.second) <= 0 - -and either - - tol(r.first, r.second) == true - -or - - max_iter >= m - -where ['m] is the initial value of ['max_iter] passed to the function. - -In other words, it's up to the caller to verify whether termination occurred -as a result of exceeding ['max_iter] function invocations (easily done by -checking the updated value of ['max_iter] -against its previous value passed as parameter), -rather than because the termination condition ['tol] was satisfied. - -[endsect] - -[section:brent Brent-Decker Algorithm] - -The [@http://en.wikipedia.org/wiki/Brent%27s_method Brent-Dekker algorithm], although very well know, -is not provided by this library as __root_finding_TOMS748 or -its slightly easier to use variant __bracket_solve are superior and provide equivalent functionality. - -[endsect] - -[section:root_termination Termination Condition Functors] - - template - struct eps_tolerance - { - eps_tolerance(); - eps_tolerance(int bits); - bool operator()(const T& a, const T& b)const; - }; - -`eps_tolerance` is the usual termination condition used with these root finding functions. -Its `operator()` will return true when the relative distance between ['a] and ['b] -is less than four times the machine epsilon for T, or 2[super 1-bits], whichever is -the larger. In other words, you set ['bits] to the number of bits of precision you -want in the result. The minimal tolerance of ['four times the machine epsilon of type T] is -required to ensure that we get back a bracketing interval, since this must clearly -be at greater than one epsilon in size. While in theory a maximum distance of twice -machine epsilon is possible to achieve, in practice this results in a great deal of "thrashing" -given that the function whose root is being found can only ever be accurate to 1 epsilon at best. - - struct equal_floor - { - equal_floor(); - template bool operator()(const T& a, const T& b)const; - }; - -This termination condition is used when you want to find an integer result -that is the ['floor] of the true root. It will terminate as soon as both ends -of the interval have the same ['floor]. - - struct equal_ceil - { - equal_ceil(); - template bool operator()(const T& a, const T& b)const; - }; - -This termination condition is used when you want to find an integer result -that is the ['ceil] of the true root. It will terminate as soon as both ends -of the interval have the same ['ceil]. - - struct equal_nearest_integer - { - equal_nearest_integer(); - template bool operator()(const T& a, const T& b)const; - }; - -This termination condition is used when you want to find an integer result -that is the /closest/ to the true root. It will terminate as soon as both ends -of the interval round to the same nearest integer. - -[endsect] - -[section:implementation Implementation] - -The implementation of the bisection algorithm is extremely straightforward -and not detailed here. - -__TOMS748 is described in detail in: - -['Algorithm 748: Enclosing Zeros of Continuous Functions, -G. E. Alefeld, F. A. Potra and Yixun Shi, -ACM Transactions on Mathematica1 Software, Vol. 21. No. 3. September 1995. -Pages 327-344.] - -The implementation here is a faithful translation of this paper into C++. - -[endsect] -[endsect] [/section:roots_noderiv Root Finding Without Derivatives] - -[/ - Copyright 2006, 2010, 2015 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/roots/type_info_table_100_msvc.qbk b/boost/libs/math/doc/roots/type_info_table_100_msvc.qbk deleted file mode 100644 index ed666f93..00000000 --- a/boost/libs/math/doc/roots/type_info_table_100_msvc.qbk +++ /dev/null @@ -1,18 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/type_info_table_100_msvc.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - -[h6 Fraction of maximum possible bits of accuracy required is 1.0.] - -[table:type_info_100_msvc Digits for float, double, long double and cpp_bin_float_50 -[[type name] [max_digits10] [binary digits] [required digits]] -[[float][9][24][24]] -[[float][17][53][53]] -[[long double][17][53][53]] -[[cpp_bin_float_50][52][168][168]] -] [/table table_id_msvc] - diff --git a/boost/libs/math/doc/roots/type_info_table_75_msvc.qbk b/boost/libs/math/doc/roots/type_info_table_75_msvc.qbk deleted file mode 100644 index 8f3de95f..00000000 --- a/boost/libs/math/doc/roots/type_info_table_75_msvc.qbk +++ /dev/null @@ -1,18 +0,0 @@ -[/i:/modular-boost/libs/math/doc/roots/type_info_table_75_msvc.qbk -Copyright 2015 Paul A. Bristow. -Copyright 2015 John Maddock. -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). -] - -[h6 Fraction of maximum possible bits of accuracy required is 0.75.] - -[table:type_info_75_msvc Digits for float, double, long double and cpp_bin_float_50 -[[type name] [max_digits10] [binary digits] [required digits]] -[[float][9][24][18]] -[[float][17][53][39]] -[[long double][17][53][39]] -[[cpp_bin_float_50][52][168][126]] -] [/table table_id_msvc] - diff --git a/boost/libs/math/doc/sf/airy.qbk b/boost/libs/math/doc/sf/airy.qbk deleted file mode 100644 index 8078142e..00000000 --- a/boost/libs/math/doc/sf/airy.qbk +++ /dev/null @@ -1,384 +0,0 @@ -[/ -Copyright (c) 2012 John Maddock -Use, modification and distribution are subject to 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) -] - -[section:airy Airy Functions] - -[section:ai Airy Ai Function] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` airy_ai(T x); - - template - ``__sf_result`` airy_ai(T x, const Policy&); - - }} // namespaces - -[heading Description] - -The function __airy_ai calculates the Airy function Ai which is the first solution -to the differential equation: - -[equation airy] - -See Weisstein, Eric W. "Airy Functions." From MathWorld--A Wolfram Web Resource. -[@http://mathworld.wolfram.com/AiryFunctions.html]; - - -[optional_policy] - -The following graph illustrates how this function changes as /x/ changes: for negative /x/ -the function is cyclic, while for positive /x/ the value tends to zero: - -[graph airy_ai] - -[heading Accuracy] - -This function is implemented entirely in terms of the Bessel functions -__cyl_bessel_j and __cyl_bessel_k - refer to those functions for detailed accuracy information. - -In general though, the relative error is low (less than 100 [epsilon]) for /x > 0/ while -only the absolute error is low for /x < 0/. - -[heading Testing] - -Since this function is implemented in terms of other special functions, there are only a few -basic sanity checks, using test values from [@http://functions.wolfram.com/ Wolfram Airy Functions]. - -[heading Implementation] - -This function is implemented in terms of the Bessel functions using the relations: - -[equation airy_ai] - -[endsect] - -[section:bi Airy Bi Function] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` airy_bi(T x); - - template - ``__sf_result`` airy_bi(T x, const Policy&); - - }} // namespaces - -[heading Description] - -The function __airy_bi calculates the Airy function Bi which is the second solution to the differential equation: - -[equation airy] - -[optional_policy] - -The following graph illustrates how this function changes as /x/ changes: for negative /x/ -the function is cyclic, while for positive /x/ the value tends to infinity: - -[graph airy_bi] - -[heading Accuracy] - -This function is implemented entirely in terms of the Bessel functions -__cyl_bessel_i and __cyl_bessel_j - refer to those functions for detailed accuracy information. - -In general though, the relative error is low (less than 100 [epsilon]) for /x > 0/ while -only the absolute error is low for /x < 0/. - -[heading Testing] - -Since this function is implemented in terms of other special functions, there are only a few -basic sanity checks, using test values from [@http://functions.wolfram.com functions.wolfram.com]. - -[heading Implementation] - -This function is implemented in terms of the Bessel functions using the relations: - -[equation airy_bi] - -[endsect] - -[section:aip Airy Ai' Function] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` airy_ai_prime(T x); - - template - ``__sf_result`` airy_ai_prime(T x, const Policy&); - - }} // namespaces - -[heading Description] - -The function __airy_ai_prime calculates the Airy function Ai' which is the derivative of the first solution to the differential equation: - -[equation airy] - -[optional_policy] - -The following graph illustrates how this function changes as /x/ changes: for negative /x/ -the function is cyclic, while for positive /x/ the value tends to zero: - -[graph airy_aip] - -[heading Accuracy] - -This function is implemented entirely in terms of the Bessel functions -__cyl_bessel_j and __cyl_bessel_k - refer to those functions for detailed accuracy information. - -In general though, the relative error is low (less than 100 [epsilon]) for /x > 0/ while -only the absolute error is low for /x < 0/. - -[heading Testing] - -Since this function is implemented in terms of other special functions, there are only a few -basic sanity checks, using test values from [@http://functions.wolfram.com functions.wolfram.com]. - -[heading Implementation] - -This function is implemented in terms of the Bessel functions using the relations: - -[equation airy_aip] - -[endsect] - -[section:bip Airy Bi' Function] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` airy_bi_prime(T x); - - template - ``__sf_result`` airy_bi_prime(T x, const Policy&); - - }} // namespaces - -[heading Description] - -The function __airy_bi_prime calculates the Airy function Bi' which is the derivative of the second solution to the differential equation: - -[equation airy] - -[optional_policy] - -The following graph illustrates how this function changes as /x/ changes: for negative /x/ -the function is cyclic, while for positive /x/ the value tends to infinity: - -[graph airy_bi] - -[heading Accuracy] - -This function is implemented entirely in terms of the Bessel functions -__cyl_bessel_i and __cyl_bessel_j - refer to those functions for detailed accuracy information. - -In general though, the relative error is low (less than 100 [epsilon]) for /x > 0/ while -only the absolute error is low for /x < 0/. - -[heading Testing] - -Since this function is implemented in terms of other special functions, there are only a few -basic sanity checks, using test values from [@http://functions.wolfram.com functions.wolfram.com]. - -[heading Implementation] - -This function is implemented in terms of the Bessel functions using the relations: - -[equation airy_bip] - -[endsect] - -[section:airy_root Finding Zeros of Airy Functions] - -[h4 Synopsis] - -`#include ` - -Functions for obtaining both a single zero or root of the Airy functions, -and placing multiple zeros into a container like `std::vector` -by providing an output iterator. - -The signature of the single value functions are: - - template - T airy_ai_zero( - int m); // 1-based index of zero. - - template - T airy_bi_zero( - int m); // 1-based index of zero. - -and for multiple zeros: - - template - OutputIterator airy_ai_zero( - int start_index, // 1-based index of first zero. - unsigned number_of_zeros, // How many zeros to generate. - OutputIterator out_it); // Destination for zeros. - - template - OutputIterator airy_bi_zero( - int start_index, // 1-based index of zero. - unsigned number_of_zeros, // How many zeros to generate - OutputIterator out_it); // Destination for zeros. - -There are also versions which allow control of the __policy_section for error handling and precision. - - template - T airy_ai_zero( - int m, // 1-based index of zero. - const Policy&); // Policy to use. - - template - T airy_bi_zero( - int m, // 1-based index of zero. - const Policy&); // Policy to use. - - - template - OutputIterator airy_ai_zero( - int start_index, // 1-based index of first zero. - unsigned number_of_zeros, // How many zeros to generate. - OutputIterator out_it, // Destination for zeros. - const Policy& pol); // Policy to use. - - template - OutputIterator airy_bi_zero( - int start_index, // 1-based index of zero. - unsigned number_of_zeros, // How many zeros to generate. - OutputIterator out_it, // Destination for zeros. - const Policy& pol); // Policy to use. - -[h4 Description] - -The Airy Ai and Bi functions have an infinite -number of zeros on the negative real axis. The real zeros on the negative real -axis can be found by solving for the roots of - -[emquad] ['Ai(x[sub m]) = 0] - -[emquad] ['Bi(y[sub m]) = 0] - -Here, ['x[sub m]] represents the ['m[super th]] -root of the Airy Ai function, -and ['y[sub m]] represents the ['m[super th]] -root of the Airy Bi function. - -The zeros or roots (values of `x` where the function crosses the horizontal `y = 0` axis) -of the Airy Ai and Bi functions are computed by two functions, -`airy_ai_zero` and `airy_bi_zero`. - -In each case the index or rank of the zero -returned is 1-based, which is to say: - - airy_ai_zero(1); - -returns the first zero of Ai. - -Passing an `start_index <= 0` results in a __domain_error being raised. - -The first few zeros returned by these functions have approximate values as follows: - -[table -[[m][Ai][Bi]] -[[1][-2.33811...][-1.17371...]] -[[2][-4.08795...][-3.27109...]] -[[3][-5.52056...][-4.83074...]] -[[4][-6.78671...][-6.16985...]] -[[5][-7.94413...][-7.37676...]] -[[6][-9.02265...][-8.49195...]] -] - -[graph airy_zeros] - - -[h4 Examples of finding Airy Zeros] - -[import ../../example/airy_zeros_example.cpp] - -[airy_zeros_example_1] -[airy_zeros_example_2] - -Produces the program output: -[pre -boost::math::airy_ai_zero(1) = -2.33811 -boost::math::airy_ai_zero(2) = -4.08795 -boost::math::airy_bi_zero(3) = -4.83074 -airy_ai_zeros: --2.33811 --4.08795 --5.52056 --6.78671 --7.94413 - -boost::math::airy_bi_zero(1) = -2.3381074104597670384891972524467354406385401456711 -boost::math::airy_bi_zero(2) = -4.0879494441309706166369887014573910602247646991085 -boost::math::airy_bi_zero(7) = -9.5381943793462388866329885451560196208390720763825 -airy_ai_zeros: --2.3381074104597670384891972524467354406385401456711 --4.0879494441309706166369887014573910602247646991085 --5.5205598280955510591298555129312935737972142806175 -] - -The full code (and output) for this example is at -[@../../example/airy_zeros_example.cpp airy_zeros_example.cpp], - -[h3 Implementation] - -Given the following function (A&S 10.4.105): - -[equation airy_zero_1] - -Then an initial estimate for the n[super th] zero a[sub n] of Ai is given by (A&S 10.4.94): - -[equation airy_zero_2] - -and an initial estimate for the n[super th] zero b[sub n] of Bi is given by (A&S 10.4.98): - -[equation airy_zero_3] - -Thereafter the roots are refined using Newton iteration. - - -[h3 Testing] - -The precision of evaluation of zeros was tested at 50 decimal digits using `cpp_dec_float_50` -and found identical with spot values computed by __WolframAlpha. - -[endsect] [/section:bessel Finding Zeros of Bessel Functions of the First and Second Kinds] - - -[endsect] - diff --git a/boost/libs/math/doc/sf/bernoulli_numbers.qbk b/boost/libs/math/doc/sf/bernoulli_numbers.qbk deleted file mode 100644 index d97cad6e..00000000 --- a/boost/libs/math/doc/sf/bernoulli_numbers.qbk +++ /dev/null @@ -1,223 +0,0 @@ -[section:bernoulli_numbers Bernoulli Numbers] - -[@https://en.wikipedia.org/wiki/Bernoulli_number Bernoulli numbers] -are a sequence of rational numbers useful for the Taylor series expansion, -Euler-Maclaurin formula, and the Riemann zeta function. - -Bernoulli numbers are used in evaluation of some Boost.Math functions, -including the __tgamma, __lgamma and polygamma functions. - -[h4 Single Bernoulli number] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost { namespace math { - - template - T bernoulli_b2n(const int n); // Single Bernoulli number (default policy). - - template - T bernoulli_b2n(const int n, const Policy &pol); // User policy for errors etc. - - }} // namespaces - -[h4 Description] - -Both return the (2 * n)[super th] Bernoulli number B[sub 2n]. - -Note that since all odd numbered Bernoulli numbers are zero (apart from B[sub 1] which is [plusminus][frac12]) -the interface will only return the even numbered Bernoulli numbers. - -This function uses fast table lookup for low-indexed Bernoulli numbers, while larger values are calculated -as needed and then cached. The caching mechanism requires a certain amount of thread safety code, so -`unchecked_bernoulli_b2n` may provide a better interface for performance critical code. - -The final __Policy argument is optional and can be used to control the behaviour of the function: -how it handles errors, what level of precision to use, etc. - -Refer to __policy_section for more details. - -[h4 Examples] - -[import ../../example/bernoulli_example.cpp] -[bernoulli_example_1] - -[bernoulli_output_1] - -[h4 Single (unchecked) Bernoulli number] - -[h4 Synopsis] -`` -#include - -`` - - template <> - struct max_bernoulli_b2n; - - template - inline T unchecked_bernoulli_b2n(unsigned n); - -`unchecked_bernoulli_b2n` provides access to Bernoulli numbers [*without any checks for overflow or invalid parameters]. -It is implemented as a direct (and very fast) table lookup, and while not recommended for general use it can be useful -inside inner loops where the ultimate performance is required, and error checking is moved outside the loop. - -The largest value you can pass to `unchecked_bernoulli_b2n<>` is `max_bernoulli_b2n<>::value`: passing values greater than -that will result in a buffer overrun error, so it's clearly important to place the error handling in your own code -when using this direct interface. - -The value of `boost::math::max_bernoulli_b2n::value` varies by the type T, for types `float`/`double`/`long double` -it's the largest value which doesn't overflow the target type: for example, `boost::math::max_bernoulli_b2n::value` is 129. -However, for multiprecision types, it's the largest value for which the result can be represented as the ratio of two 64-bit -integers, for example `boost::math::max_bernoulli_b2n::value` is just 17. Of course -larger indexes can be passed to `bernoulli_b2n(n)`, but then you lose fast table lookup (i.e. values may need to be calculated). - -[bernoulli_example_4] -[bernoulli_output_4] - -[h4 Multiple Bernoulli Numbers] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost { namespace math { - - // Multiple Bernoulli numbers (default policy). - template - OutputIterator bernoulli_b2n( - int start_index, - unsigned number_of_bernoullis_b2n, - OutputIterator out_it); - - // Multiple Bernoulli numbers (user policy). - template - OutputIterator bernoulli_b2n( - int start_index, - unsigned number_of_bernoullis_b2n, - OutputIterator out_it, - const Policy& pol); - }} // namespaces - -[h4 Description] - -Two versions of the Bernoulli number function are provided to compute multiple Bernoulli numbers -with one call (one with default policy and the other allowing a user-defined policy). - -These return a series of Bernoulli numbers: - -[:B[sub 2*start_index],B[sub 2*(start_index+1)],...,B[sub 2*(start_index+number_of_bernoullis_b2n-1)]] - -[h4 Examples] -[bernoulli_example_2] -[bernoulli_output_2] -[bernoulli_example_3] -[bernoulli_output_3] - -The source of this example is at [@../../example/bernoulli_example.cpp bernoulli_example.cpp] - -[h4 Accuracy] - -All the functions usually return values within one ULP (unit in the last place) for the floating-point type. - -[h4 Implementation] - -The implementation details are in [@../../include/boost/math/special_functions/detail/bernoulli_details.hpp bernoulli_details.hpp] -and [@../../include/boost/math/special_functions/detail/unchecked_bernoulli.hpp unchecked_bernoulli.hpp]. - -For `i <= max_bernoulli_index::value` this is implemented by simple table lookup from a statically initialized table; -for larger values of `i`, this is implemented by the Tangent Numbers algorithm as described in the paper: -Fast Computation of Bernoulli, Tangent and Secant Numbers, Richard P. Brent and David Harvey, -[@http://arxiv.org/pdf/1108.0286v3.pdf] (2011). - -[@http://mathworld.wolfram.com/TangentNumber.html Tangent (or Zag) numbers] -(an even alternating permutation number) are defined -and their generating function is also given therein. - -The relation of Tangent numbers with Bernoulli numbers ['B[sub i]] -is given by Brent and Harvey's equation 14: - -__spaces[equation tangent_numbers] - -Their relation with Bernoulli numbers ['B[sub i]] are defined by - -if i > 0 and i is even then -__spaces[equation bernoulli_numbers] [br] -elseif i == 0 then ['B[sub i]] = 1 [br] -elseif i == 1 then ['B[sub i]] = -1/2 [br] -elseif i < 0 or i is odd then ['B[sub i]] = 0 - -Note that computed values are stored in a fixed-size table, access is thread safe via atomic operations (i.e. lock -free programming), this imparts a much lower overhead on access to cached values than might otherwise be expected - -typically for multiprecision types the cost of thread synchronisation is negligible, while for built in types -this code is not normally executed anyway. For very large arguments which cannot be reasonably computed or -stored in our cache, an asymptotic expansion [@http://www.luschny.de/math/primes/bernincl.html due to Luschny] is used: - -[equation bernoulli_numbers2] - -[endsect] [/section:bernoulli_numbers Bernoulli Numbers] - - -[section:tangent_numbers Tangent Numbers] - -[@http://en.wikipedia.org/wiki/Tangent_numbers Tangent numbers], -also called a zag function. See also -[@http://mathworld.wolfram.com/TangentNumber.html Tangent number]. - -From the number, An, of alternating permutations of the set {1, ..., n}, -the numbers A2n+1 with odd indices are called tangent numbers or zag numbers. -The first few values are 1, 2, 16, 272, 7936, 353792, 22368256, 1903757312 ... -(sequence [@http://oeis.org/A000182 A000182 in OEIS]). -They are called tangent numbers because they appear as -numerators in the Maclaurin series of tan x. - -Tangent numbers are used in the computation of Bernoulli numbers, -but are also made available here. - -[h4 Synopsis] -`` -#include -`` - - template - T tangent_t2n(const int i); // Single tangent number (default policy). - - template - T tangent_t2n(const int i, const Policy &pol); // Single tangent number (user policy). - - // Multiple tangent numbers (default policy). - template - OutputIterator tangent_t2n(const int start_index, - const unsigned number_of_tangent_t2n, - OutputIterator out_it); - - // Multiple tangent numbers (user policy). - template - OutputIterator tangent_t2n(const int start_index, - const unsigned number_of_tangent_t2n, - OutputIterator out_it, - const Policy& pol); - -[h4 Examples] - -[tangent_example_1] - -The output is: -[tangent_output_1] - -The source of this example is at [../../example/bernoulli_example.cpp bernoulli_example.cpp] - -[endsect] [/section:tangent_numbers Tangent Numbers] - -[/ - Copyright 2013, 2014 Nikhar Agrawal, Christopher Kormanyos, John Maddock, Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/bessel_ik.qbk b/boost/libs/math/doc/sf/bessel_ik.qbk deleted file mode 100644 index 9c081bae..00000000 --- a/boost/libs/math/doc/sf/bessel_ik.qbk +++ /dev/null @@ -1,194 +0,0 @@ - -[section:mbessel Modified Bessel Functions of the First and Second Kinds] - -[h4 Synopsis] - -`#include ` - - template - ``__sf_result`` cyl_bessel_i(T1 v, T2 x); - - template - ``__sf_result`` cyl_bessel_i(T1 v, T2 x, const ``__Policy``&); - - template - ``__sf_result`` cyl_bessel_k(T1 v, T2 x); - - template - ``__sf_result`` cyl_bessel_k(T1 v, T2 x, const ``__Policy``&); - - -[h4 Description] - -The functions __cyl_bessel_i and __cyl_bessel_k return the result of the -modified Bessel functions of the first and second kind respectively: - -cyl_bessel_i(v, x) = I[sub v](x) - -cyl_bessel_k(v, x) = K[sub v](x) - -where: - -[equation mbessel2] - -[equation mbessel3] - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types. The functions are also optimised for the -relatively common case that T1 is an integer. - -[optional_policy] - -The functions return the result of __domain_error whenever the result is -undefined or complex. For __cyl_bessel_j this occurs when `x < 0` and v is not -an integer, or when `x == 0` and `v != 0`. For __cyl_neumann this occurs -when `x <= 0`. - -The following graph illustrates the exponential behaviour of I[sub v]. - -[graph cyl_bessel_i] - -The following graph illustrates the exponential decay of K[sub v]. - -[graph cyl_bessel_k] - -[h4 Testing] - -There are two sets of test values: spot values calculated using -[@http://functions.wolfram.com functions.wolfram.com], -and a much larger set of tests computed using -a simplified version of this implementation -(with all the special case handling removed). - -[h4 Accuracy] - -The following tables show how the accuracy of these functions -varies on various platforms, along with comparison to other libraries. -Note that only results for the widest floating-point type on the -system are given, as narrower types have __zero_error. All values -are relative errors in units of epsilon. Note that our test suite -includes some fairly extreme inputs which results in most of the worst -problem cases in other libraries: - -[table_cyl_bessel_i_integer_orders_] - -[table_cyl_bessel_i] - -[table_cyl_bessel_k_integer_orders_] - -[table_cyl_bessel_k] - -[h4 Implementation] - -The following are handled as special cases first: - -When computing I[sub v][space] for ['x < 0], then [nu][space] must be an integer -or a domain error occurs. If [nu][space] is an integer, then the function is -odd if [nu][space] is odd and even if [nu][space] is even, and we can reflect to -['x > 0]. - -For I[sub v][space] with v equal to 0, 1 or 0.5 are handled as special cases. - -The 0 and 1 cases use minimax rational approximations on -finite and infinite intervals. The coefficients are from: - -* J.M. Blair and C.A. Edwards, ['Stable rational minimax approximations - to the modified Bessel functions I_0(x) and I_1(x)], Atomic Energy of Canada - Limited Report 4928, Chalk River, 1974. -* S. Moshier, ['Methods and Programs for Mathematical Functions], - Ellis Horwood Ltd, Chichester, 1989. - -While the 0.5 case is a simple trigonometric function: - -I[sub 0.5](x) = sqrt(2 / [pi]x) * sinh(x) - -For K[sub v][space] with /v/ an integer, the result is calculated using the -recurrence relation: - -[equation mbessel5] - -starting from K[sub 0][space] and K[sub 1][space] which are calculated -using rational the approximations above. These rational approximations are -accurate to around 19 digits, and are therefore only used when T has -no more than 64 binary digits of precision. - -When /x/ is small compared to /v/, I[sub v]x[space] is best computed directly from the series: - -[equation mbessel17] - -In the general case, we first normalize [nu][space] to \[[^0, [inf]]) -with the help of the reflection formulae: - -[equation mbessel9] - -[equation mbessel10] - -Let [mu][space] = [nu] - floor([nu] + 1/2), then [mu][space] is the fractional part of -[nu][space] such that |[mu]| <= 1/2 (we need this for convergence later). The idea is to -calculate K[sub [mu]](x) and K[sub [mu]+1](x), and use them to obtain -I[sub [nu]](x) and K[sub [nu]](x). - -The algorithm is proposed by Temme in -N.M. Temme, ['On the numerical evaluation of the modified bessel function - of the third kind], Journal of Computational Physics, vol 19, 324 (1975), -which needs two continued fractions as well as the Wronskian: - -[equation mbessel11] - -[equation mbessel12] - -[equation mbessel8] - -The continued fractions are computed using the modified Lentz's method -(W.J. Lentz, ['Generating Bessel functions in Mie scattering calculations - using continued fractions], Applied Optics, vol 15, 668 (1976)). -Their convergence rates depend on ['x], therefore we need -different strategies for large ['x] and small ['x]. - -['x > v], CF1 needs O(['x]) iterations to converge, CF2 converges rapidly. - -['x <= v], CF1 converges rapidly, CF2 fails to converge when ['x] [^->] 0. - -When ['x] is large (['x] > 2), both continued fractions converge (CF1 -may be slow for really large ['x]). K[sub [mu]][space] and K[sub [mu]+1][space] -can be calculated by - -[equation mbessel13] - -where - -[equation mbessel14] - -['S] is also a series that is summed along with CF2, see -I.J. Thompson and A.R. Barnett, ['Modified Bessel functions I_v and K_v - of real order and complex argument to selected accuracy], Computer Physics - Communications, vol 47, 245 (1987). - -When ['x] is small (['x] <= 2), CF2 convergence may fail (but CF1 -works very well). The solution here is Temme's series: - -[equation mbessel15] - -where - -[equation mbessel16] - -f[sub k][space] and h[sub k][space] -are also computed by recursions (involving gamma functions), but the -formulas are a little complicated, readers are referred to -N.M. Temme, ['On the numerical evaluation of the modified Bessel function - of the third kind], Journal of Computational Physics, vol 19, 324 (1975). -Note: Temme's series converge only for |[mu]| <= 1/2. - -K[sub [nu]](x) is then calculated from the forward -recurrence, as is K[sub [nu]+1](x). With these two values and -f[sub [nu]], the Wronskian yields I[sub [nu]](x) directly. - -[endsect] - -[/ - Copyright 2006 John Maddock, Paul A. Bristow and Xiaogang Zhang. - 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). -] diff --git a/boost/libs/math/doc/sf/bessel_introduction.qbk b/boost/libs/math/doc/sf/bessel_introduction.qbk deleted file mode 100644 index 4cdfe629..00000000 --- a/boost/libs/math/doc/sf/bessel_introduction.qbk +++ /dev/null @@ -1,124 +0,0 @@ - -[section:bessel_over Bessel Function Overview] - -[h4 Ordinary Bessel Functions] - -Bessel Functions are solutions to Bessel's ordinary differential -equation: - -[equation bessel1] - -where [nu][space] is the /order/ of the equation, and may be an arbitrary -real or complex number, although integer orders are the most common occurrence. - -This library supports either integer or real orders. - -Since this is a second order differential equation, there must be two -linearly independent solutions, the first of these is denoted J[sub v][space] -and known as a Bessel function of the first kind: - -[equation bessel2] - -This function is implemented in this library as __cyl_bessel_j. - -The second solution is denoted either Y[sub v][space] or N[sub v][space] -and is known as either a Bessel Function of the second kind, or as a -Neumann function: - -[equation bessel3] - -This function is implemented in this library as __cyl_neumann. - -The Bessel functions satisfy the recurrence relations: - -[equation bessel4] - -[equation bessel5] - -Have the derivatives: - -[equation bessel6] - -[equation bessel7] - -Have the Wronskian relation: - -[equation bessel8] - -and the reflection formulae: - -[equation bessel9] - -[equation bessel10] - - -[h4 Modified Bessel Functions] - -The Bessel functions are valid for complex argument /x/, and an important -special case is the situation where /x/ is purely imaginary: giving a real -valued result. In this case the functions are the two linearly -independent solutions to the modified Bessel equation: - -[equation mbessel1] - -The solutions are known as the modified Bessel functions of the first and -second kind (or occasionally as the hyperbolic Bessel functions of the first -and second kind). They are denoted I[sub v][space] and K[sub v][space] -respectively: - -[equation mbessel2] - -[equation mbessel3] - -These functions are implemented in this library as __cyl_bessel_i and -__cyl_bessel_k respectively. - -The modified Bessel functions satisfy the recurrence relations: - -[equation mbessel4] - -[equation mbessel5] - -Have the derivatives: - -[equation mbessel6] - -[equation mbessel7] - -Have the Wronskian relation: - -[equation mbessel8] - -and the reflection formulae: - -[equation mbessel9] - -[equation mbessel10] - -[h4 Spherical Bessel Functions] - -When solving the Helmholtz equation in spherical coordinates by -separation of variables, the radial equation has the form: - -[equation sbessel1] - -The two linearly independent solutions to this equation are called the -spherical Bessel functions j[sub n][space] and y[sub n][space], and are related to the -ordinary Bessel functions J[sub n][space] and Y[sub n][space] by: - -[equation sbessel2] - -The spherical Bessel function of the second kind y[sub n][space] -is also known as the spherical Neumann function n[sub n]. - -These functions are implemented in this library as __sph_bessel and -__sph_neumann. - -[endsect] - -[/ - Copyright 2006 John Maddock, Paul A. Bristow and Xiaogang Zhang. - 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). -] diff --git a/boost/libs/math/doc/sf/bessel_jy.qbk b/boost/libs/math/doc/sf/bessel_jy.qbk deleted file mode 100644 index 6fe1bb24..00000000 --- a/boost/libs/math/doc/sf/bessel_jy.qbk +++ /dev/null @@ -1,548 +0,0 @@ - -[section:bessel_first Bessel Functions of the First and Second Kinds] - -[h4 Synopsis] - -`#include ` - - template - ``__sf_result`` cyl_bessel_j(T1 v, T2 x); - - template - ``__sf_result`` cyl_bessel_j(T1 v, T2 x, const ``__Policy``&); - - template - ``__sf_result`` cyl_neumann(T1 v, T2 x); - - template - ``__sf_result`` cyl_neumann(T1 v, T2 x, const ``__Policy``&); - - -[h4 Description] - -The functions __cyl_bessel_j and __cyl_neumann return the result of the -Bessel functions of the first and second kinds respectively: - -cyl_bessel_j(v, x) = J[sub v](x) - -cyl_neumann(v, x) = Y[sub v](x) = N[sub v](x) - -where: - -[equation bessel2] - -[equation bessel3] - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types. The functions are also optimised for the -relatively common case that T1 is an integer. - -[optional_policy] - -The functions return the result of __domain_error whenever the result is -undefined or complex. For __cyl_bessel_j this occurs when `x < 0` and v is not -an integer, or when `x == 0` and `v != 0`. For __cyl_neumann this occurs -when `x <= 0`. - -The following graph illustrates the cyclic nature of J[sub v]: - -[graph cyl_bessel_j] - -The following graph shows the behaviour of Y[sub v]: this is also -cyclic for large /x/, but tends to -[infin][space] for small /x/: - -[graph cyl_neumann] - -[h4 Testing] - -There are two sets of test values: spot values calculated using -[@http://functions.wolfram.com functions.wolfram.com], -and a much larger set of tests computed using -a simplified version of this implementation -(with all the special case handling removed). - -[h4 Accuracy] - -The following tables show how the accuracy of these functions -varies on various platforms, along with comparisons to other -libraries. Note that the cyclic nature of these -functions means that they have an infinite number of irrational -roots: in general these functions have arbitrarily large /relative/ -errors when the arguments are sufficiently close to a root. Of -course the absolute error in such cases is always small. -Note that only results for the widest floating-point type on the -system are given as narrower types have __zero_error. All values -are relative errors in units of epsilon. Most of the gross errors -exhibited by other libraries occur for very large arguments - you will -need to drill down into the actual program output if you need more -information on this. - -[table_cyl_bessel_j_integer_orders_] - -[table_cyl_bessel_j] - -[table_cyl_neumann_integer_orders_] - -[table_cyl_neumann] - -Note that for large /x/ these functions are largely dependent on -the accuracy of the `std::sin` and `std::cos` functions. - -Comparison to GSL and __cephes is interesting: both __cephes and this library optimise -the integer order case - leading to identical results - simply using the general -case is for the most part slightly more accurate though, as noted by the -better accuracy of GSL in the integer argument cases. This implementation tends to -perform much better when the arguments become large, __cephes in particular produces -some remarkably inaccurate results with some of the test data (no significant figures -correct), and even GSL performs badly with some inputs to J[sub v]. Note that -by way of double-checking these results, the worst performing __cephes and GSL cases -were recomputed using [@http://functions.wolfram.com functions.wolfram.com], -and the result checked against our test data: no errors in the test data were found. - -[h4 Implementation] - -The implementation is mostly about filtering off various special cases: - -When /x/ is negative, then the order /v/ must be an integer or the -result is a domain error. If the order is an integer then the function -is odd for odd orders and even for even orders, so we reflect to /x > 0/. - -When the order /v/ is negative then the reflection formulae can be used to -move to /v > 0/: - -[equation bessel9] - -[equation bessel10] - -Note that if the order is an integer, then these formulae reduce to: - -J[sub -n] = (-1)[super n]J[sub n] - -Y[sub -n] = (-1)[super n]Y[sub n] - -However, in general, a negative order implies that we will need to compute -both J and Y. - -When /x/ is large compared to the order /v/ then the asymptotic expansions -for large /x/ in M. Abramowitz and I.A. Stegun, -['Handbook of Mathematical Functions] 9.2.19 are used -(these were found to be more reliable -than those in A&S 9.2.5). - -When the order /v/ is an integer the method first relates the result -to J[sub 0], J[sub 1], Y[sub 0][space] and Y[sub 1][space] using either -forwards or backwards recurrence (Miller's algorithm) depending upon which is stable. -The values for J[sub 0], J[sub 1], Y[sub 0][space] and Y[sub 1][space] are -calculated using the rational minimax approximations on -root-bracketing intervals for small ['|x|] and Hankel asymptotic -expansion for large ['|x|]. The coefficients are from: - -W.J. Cody, ['ALGORITHM 715: SPECFUN - A Portable FORTRAN Package of -Special Function Routines and Test Drivers], ACM Transactions on Mathematical -Software, vol 19, 22 (1993). - -and - -J.F. Hart et al, ['Computer Approximations], John Wiley & Sons, New York, 1968. - -These approximations are accurate to around 19 decimal digits: therefore -these methods are not used when type T has more than 64 binary digits. - -When /x/ is smaller than machine epsilon then the following approximations for -Y[sub 0](x), Y[sub 1](x), Y[sub 2](x) and Y[sub n](x) can be used -(see: [@http://functions.wolfram.com/03.03.06.0037.01 http://functions.wolfram.com/03.03.06.0037.01], -[@http://functions.wolfram.com/03.03.06.0038.01 http://functions.wolfram.com/03.03.06.0038.01], -[@http://functions.wolfram.com/03.03.06.0039.01 http://functions.wolfram.com/03.03.06.0039.01] -and [@http://functions.wolfram.com/03.03.06.0040.01 http://functions.wolfram.com/03.03.06.0040.01]): - -[equation bessel_y0_small_z] - -[equation bessel_y1_small_z] - -[equation bessel_y2_small_z] - -[equation bessel_yn_small_z] - -When /x/ is small compared to /v/ and /v/ is not an integer, then the following -series approximation can be used for Y[sub v](x), this is also an area where other -approximations are often too slow to converge to be used -(see [@http://functions.wolfram.com/03.03.06.0034.01 http://functions.wolfram.com/03.03.06.0034.01]): - -[equation bessel_yv_small_z] - -When /x/ is small compared to /v/, J[sub v]x[space] is best computed directly from the series: - -[equation bessel2] - -In the general case we compute J[sub v][space] and -Y[sub v][space] simultaneously. - -To get the initial values, let -[mu][space] = [nu] - floor([nu] + 1/2), then [mu][space] is the fractional part -of [nu][space] such that -|[mu]| <= 1/2 (we need this for convergence later). The idea is to -calculate J[sub [mu]](x), J[sub [mu]+1](x), Y[sub [mu]](x), Y[sub [mu]+1](x) -and use them to obtain J[sub [nu]](x), Y[sub [nu]](x). - -The algorithm is called Steed's method, which needs two -continued fractions as well as the Wronskian: - -[equation bessel8] - -[equation bessel11] - -[equation bessel12] - -See: F.S. Acton, ['Numerical Methods that Work], - The Mathematical Association of America, Washington, 1997. - -The continued fractions are computed using the modified Lentz's method -(W.J. Lentz, ['Generating Bessel functions in Mie scattering calculations -using continued fractions], Applied Optics, vol 15, 668 (1976)). -Their convergence rates depend on ['x], therefore we need -different strategies for large ['x] and small ['x]. - -['x > v], CF1 needs O(['x]) iterations to converge, CF2 converges rapidly - -['x <= v], CF1 converges rapidly, CF2 fails to converge when ['x] [^->] 0 - -When ['x] is large (['x] > 2), both continued fractions converge (CF1 -may be slow for really large ['x]). J[sub [mu]], J[sub [mu]+1], -Y[sub [mu]], Y[sub [mu]+1] can be calculated by - -[equation bessel13] - -where - -[equation bessel14] - -J[sub [nu]] and Y[sub [mu]] are then calculated using backward -(Miller's algorithm) and forward recurrence respectively. - -When ['x] is small (['x] <= 2), CF2 convergence may fail (but CF1 -works very well). The solution here is Temme's series: - -[equation bessel15] - -where - -[equation bessel16] - -g[sub k][space] and h[sub k][space] -are also computed by recursions (involving gamma functions), but the -formulas are a little complicated, readers are refered to -N.M. Temme, ['On the numerical evaluation of the ordinary Bessel function -of the second kind], Journal of Computational Physics, vol 21, 343 (1976). -Note Temme's series converge only for |[mu]| <= 1/2. - -As the previous case, Y[sub [nu]][space] is calculated from the forward -recurrence, so is Y[sub [nu]+1]. With these two -values and f[sub [nu]], the Wronskian yields J[sub [nu]](x) directly -without backward recurrence. - -[endsect] - -[section:bessel_root Finding Zeros of Bessel Functions of the First and Second Kinds] - -[h4 Synopsis] - -`#include ` - -Functions for obtaining both a single zero or root of the Bessel function, -and placing multiple zeros into a container like `std::vector` -by providing an output iterator. - -The signature of the single value functions are: - - template - T cyl_bessel_j_zero( - T v, // Floating-point value for Jv. - int m); // 1-based index of zero. - - template - T cyl_neumann_zero( - T v, // Floating-point value for Jv. - int m); // 1-based index of zero. - -and for multiple zeros: - - template - OutputIterator cyl_bessel_j_zero( - T v, // Floating-point value for Jv. - int start_index, // 1-based index of first zero. - unsigned number_of_zeros, // How many zeros to generate. - OutputIterator out_it); // Destination for zeros. - - template - OutputIterator cyl_neumann_zero( - T v, // Floating-point value for Jv. - int start_index, // 1-based index of zero. - unsigned number_of_zeros, // How many zeros to generate - OutputIterator out_it); // Destination for zeros. - -There are also versions which allow control of the __policy_section for error handling and precision. - - template - T cyl_bessel_j_zero( - T v, // Floating-point value for Jv. - int m, // 1-based index of zero. - const Policy&); // Policy to use. - - template - T cyl_neumann_zero( - T v, // Floating-point value for Jv. - int m, // 1-based index of zero. - const Policy&); // Policy to use. - - - template - OutputIterator cyl_bessel_j_zero( - T v, // Floating-point value for Jv. - int start_index, // 1-based index of first zero. - unsigned number_of_zeros, // How many zeros to generate. - OutputIterator out_it, // Destination for zeros. - const Policy& pol); // Policy to use. - - template - OutputIterator cyl_neumann_zero( - T v, // Floating-point value for Jv. - int start_index, // 1-based index of zero. - unsigned number_of_zeros, // How many zeros to generate. - OutputIterator out_it, // Destination for zeros. - const Policy& pol); // Policy to use. - -[h4 Description] - -Every real order [nu] cylindrical Bessel and Neumann functions have an infinite -number of zeros on the positive real axis. The real zeros on the positive real -axis can be found by solving for the roots of - -[emquad] ['J[sub [nu]](j[sub [nu], m]) = 0] - -[emquad] ['Y[sub [nu]](y[sub [nu], m]) = 0] - -Here, ['j[sub [nu], m]] represents the ['m[super th]] -root of the cylindrical Bessel function of order ['[nu]], -and ['y[sub [nu], m]] represents the ['m[super th]] -root of the cylindrical Neumann function of order ['[nu]]. - -The zeros or roots (values of `x` where the function crosses the horizontal `y = 0` axis) -of the Bessel and Neumann functions are computed by two functions, -`cyl_bessel_j_zero` and `cyl_neumann_zero`. - -In each case the index or rank of the zero -returned is 1-based, which is to say: - - cyl_bessel_j_zero(v, 1); - -returns the first zero of Bessel J. - -Passing an `start_index <= 0` results in a `std::domain_error` being raised. - -For certain parameters, however, the zero'th root is defined and -it has a value of zero. For example, the zero'th root -of `J[sub v](x)` is defined and it has a value of zero for all -values of `v > 0` and for negative integer values of `v = -n`. -Similar cases are described in the implementation details below. - -The order `v` of `J` can be positive, negative and zero for the `cyl_bessel_j` -and `cyl_neumann` functions, but not infinite nor NaN. - -[graph bessel_j_zeros] - -[graph neumann_y_zeros] - -[h4 Examples of finding Bessel and Neumann zeros] - -[import ../../example/bessel_zeros_example_1.cpp] - -[bessel_zeros_example_1] -[bessel_zeros_example_2] - -[import ../../example/bessel_zeros_interator_example.cpp] - -[bessel_zeros_iterator_example_1] -[bessel_zeros_iterator_example_2] - -[import ../../example/neumann_zeros_example_1.cpp] - -[neumann_zeros_example_1] -[neumann_zeros_example_2] - -[import ../../example/bessel_errors_example.cpp] - -[bessel_errors_example_1] -[bessel_errors_example_2] - -The full code (and output) for these examples is at -[@../../example/bessel_zeros_example_1.cpp Bessel zeros], -[@../../example/bessel_zeros_interator_example.cpp Bessel zeros iterator], -[@../../example/neumann_zeros_example_1.cpp Neumann zeros], -[@../../example/bessel_errors_example.cpp Bessel error messages]. - -[h3 Implementation] - -Various methods are used to compute initial estimates -for ['j[sub [nu], m]] and ['y[sub [nu], m]] ; these are described in detail below. - -After finding the initial estimate of a given root, -its precision is subsequently refined to the desired level -using Newton-Raphson iteration from Boost.Math's __root_finding_with_derivatives -utilities combined with the functions __cyl_bessel_j and __cyl_neumann. - -Newton iteration requires both ['J[sub [nu]](x)] or ['Y[sub [nu]](x)] -as well as its derivative. The derivatives of ['J[sub [nu]](x)] and ['Y[sub [nu]](x)] -with respect to ['x] are given by __Abramowitz_Stegun. -In particular, - -[emquad] ['d/[sub dx] ['J[sub [nu]](x)] = ['J[sub [nu]-1](x)] - [nu] J[sub [nu]](x)] / x - -[emquad] ['d/[sub dx] ['Y[sub [nu]](x)] = ['Y[sub [nu]-1](x)] - [nu] Y[sub [nu]](x)] / x - -Enumeration of the rank of a root (in other words the index of a root) -begins with one and counts up, in other words -['m,=1,2,3,[ellipsis]] The value of the first root is always greater than zero. - -For certain special parameters, cylindrical Bessel functions -and cylindrical Neumann functions have a root at the origin. For example, -['J[sub [nu]](x)] has a root at the origin for every positive order -['[nu] > 0], and for every negative integer order -['[nu] = -n] with ['n [isin] [negative] [super +]] and ['n [ne] 0]. - -In addition, ['Y[sub [nu]](x)] has a root at the origin -for every negative half-integer order ['[nu] = -n/2], with ['n [isin] [negative] [super +]] and -and ['n [ne] 0]. - -For these special parameter values, the origin with -a value of ['x = 0] is provided as the ['0[super th]] -root generated by `cyl_bessel_j_zero()` -and `cyl_neumann_zero()`. - -When calculating initial estimates for the roots -of Bessel functions, a distinction is made between -positive order and negative order, and different -methods are used for these. In addition, different algorithms -are used for the first root ['m = 1] and -for subsequent roots with higher rank ['m [ge] 2]. -Furthermore, estimates of the roots for Bessel functions -with order above and below a cutoff at ['[nu] = 2.2] -are calculated with different methods. - -Calculations of the estimates of ['j[sub [nu],1]] and ['y[sub [nu],1]] -with ['0 [le] [nu] < 2.2] use empirically tabulated values. -The coefficients for these have been generated by a -computer algebra system. - -Calculations of the estimates of ['j[sub [nu],1]] and ['y[sub [nu],1]] -with ['[nu][ge] 2.2] use Eqs.9.5.14 and 9.5.15 in __Abramowitz_Stegun. - -In particular, - -[emquad] ['j[sub [nu],1] [cong] [nu] + 1.85575 [nu][super [frac13]] + 1.033150 [nu][super -[frac13]] - 0.00397 [nu][super -1] - 0.0908 [nu][super -5/3] + 0.043 [nu][super -7/3] + [ellipsis]] - -and - -[emquad] ['y[sub [nu],1] [cong] [nu] + 0.93157 [nu][super [frac13]] + 0.26035 [nu][super -[frac13]] + 0.01198 [nu][super -1] - 0.0060 [nu][super -5/3] - 0.001 [nu][super -7/3] + [ellipsis]] - -Calculations of the estimates of ['j[sub [nu], m]] and ['y[sub [nu], m]] -with rank ['m > 2] and ['0 [le] [nu] < 2.2] use -McMahon's approximation, as described in M. Abramowitz and I. A. Stegan, Section 9.5 and 9.5.12. -In particular, - -[emquad] ['j[sub [nu],m], y[sub [nu],m] [cong] [beta] - ([mu]-1) / 8[beta]] - -[emquad] [emquad] [emquad] ['- 4([mu]-1)(7[mu] - 31) / 3(8[beta])[super 3]] - -[emquad] [emquad] [emquad] ['-32([mu]-1)(83[mu][sup2] - 982[mu] + 3779) / 15(8[beta])[super 5]] - -[emquad] [emquad] [emquad] ['-64([mu]-1)(6949[mu][super 3] - 153855[mu][sup2] + 1585743[mu]- 6277237) / 105(8a)[super 7]] - -[emquad] [emquad] [emquad] ['- [ellipsis]] [emquad] [emquad] (5) - -where ['[mu] = 4[nu][super 2]] and ['[beta] = (m + [frac12][nu] - [frac14])[pi]] -for ['j[sub [nu],m]] and -['[beta] = (m + [frac12][nu] -[frac34])[pi] for ['y[sub [nu],m]]]. - -Calculations of the estimates of ['j[sub [nu], m]] and ['y[sub [nu], m]] -with ['[nu] [ge] 2.2] use -one term in the asymptotic expansion given in -Eq.9.5.22 and top line of Eq.9.5.26 combined with Eq. 9.3.39, -all in __Abramowitz_Stegun explicit and easy-to-understand treatment -for asymptotic expansion of zeros. -The latter two equations are expressed for argument ['(x)] greater than one. -(Olver also gives the series form of the equations in -[@http://dlmf.nist.gov/10.21#vi [sect]10.21(vi) McMahon's Asymptotic Expansions for Large Zeros] - using slightly different variable names). - -In summary, - -[emquad] ['j[sub [nu], m] [sim] [nu]x(-[zeta]) + f[sub 1](-[zeta]/[nu])] - -where ['-[zeta] = [nu][super -2/3]a[sub m]] and ['a[sub m]] is -the absolute value of the ['m[super th]] root of ['Ai(x)] on the negative real axis. - -Here ['x = x(-[zeta])] is the inverse of the function - -[emquad] ['[frac23](-[zeta])[super 3/2] = [radic](x[sup2] - 1) - cos[supminus][sup1](1/x)] [emquad] [emquad] (7) - -Furthermore, - -[emquad] ['f[sub 1](-[zeta]) = [frac12]x(-[zeta]) {h(-[zeta])}[sup2] [sdot] b[sub 0](-[zeta])] - -where - -[emquad] ['h(-[zeta]) = {4(-[zeta]) / (x[sup2] - 1)}[super 4]] - -and - -[emquad] ['b[sub 0](-[zeta]) = -5/(48[zeta][sup2]) + 1/(-[zeta])[super [frac12]] [sdot] { 5/(24(x[super 2]-1)[super 3/2]) + 1/(8(x[super 2]-1)[super [frac12])]}] - -When solving for ['x(-[zeta])] in Eq. 7 above, -the right-hand-side is expanded to order 2 in -a Taylor series for large ['x]. This results in - -[emquad] ['[frac23](-[zeta])[super 3/2] [approx] x + 1/2x - [pi]/2] - -The positive root of the resulting quadratic equation -is used to find an initial estimate ['x(-[zeta])]. -This initial estimate is subsequently refined with -several steps of Newton-Raphson iteration -in Eq. 7. - -Estimates of the roots of cylindrical Bessel functions -of negative order on the positive real axis are found -using interlacing relations. For example, the ['m[super th]] -root of the cylindrical Bessel function ['j[sub -[nu],m]] -is bracketed by the ['m[super th]] root and the -['(m+1)[super th]] root of the Bessel function of -corresponding positive integer order. In other words, - -[emquad] ['j[sub n[nu],m]] < ['j[sub -[nu],m]] < ['j[sub n[nu],m+1]] - -where ['m > 1] and ['n[sub [nu]]] represents the integral -floor of the absolute value of ['|-[nu]|]. - -Similar bracketing relations are used to find estimates -of the roots of Neumann functions of negative order, -whereby a discontinuity at every negative half-integer -order needs to be handled. - -Bracketing relations do not hold for the first root -of cylindrical Bessel functions and cylindrical Neumann -functions with negative order. Therefore, iterative algorithms -combined with root-finding via bisection are used -to localize ['j[sub -[nu],1]] and ['y[sub -[nu],1]]. - -[h3 Testing] - -The precision of evaluation of zeros was tested at 50 decimal digits using `cpp_dec_float_50` -and found identical with spot values computed by __WolframAlpha. - -[endsect] [/section:bessel Finding Zeros of Bessel Functions of the First and Second Kinds] - -[/ - Copyright 2006, 2013 John Maddock, Paul A. Bristow, Xiaogang Zhang and Christopher Kormanyos. - - 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). -] diff --git a/boost/libs/math/doc/sf/bessel_prime.qbk b/boost/libs/math/doc/sf/bessel_prime.qbk deleted file mode 100644 index ca6d21d9..00000000 --- a/boost/libs/math/doc/sf/bessel_prime.qbk +++ /dev/null @@ -1,109 +0,0 @@ - -[section:bessel_derivatives Derivatives of the Bessel Functions] - -[h4 Synopsis] - -`#include ` - - template - ``__sf_result`` cyl_bessel_j_prime(T1 v, T2 x); - - template - ``__sf_result`` cyl_bessel_j_prime(T1 v, T2 x, const ``__Policy``&); - - template - ``__sf_result`` cyl_neumann_prime(T1 v, T2 x); - - template - ``__sf_result`` cyl_neumann_prime(T1 v, T2 x, const ``__Policy``&); - - template - ``__sf_result`` cyl_bessel_i_prime(T1 v, T2 x); - - template - ``__sf_result`` cyl_bessel_i_prime(T1 v, T2 x, const ``__Policy``&); - - template - ``__sf_result`` cyl_bessel_k_prime(T1 v, T2 x); - - template - ``__sf_result`` cyl_bessel_k_prime(T1 v, T2 x, const ``__Policy``&); - - template - ``__sf_result`` sph_bessel_prime(T1 v, T2 x); - - template - ``__sf_result`` sph_bessel_prime(T1 v, T2 x, const ``__Policy``&); - - template - ``__sf_result`` sph_neumann_prime(T1 v, T2 x); - - template - ``__sf_result`` sph_neumann_prime(T1 v, T2 x, const ``__Policy``&); - - -[h4 Description] - -These functions return the first derivative with respect to /x/ of the corresponding Bessel function. - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types. The functions are also optimised for the -relatively common case that T1 is an integer. - -[optional_policy] - -The functions return the result of __domain_error whenever the result is -undefined or complex. - -[h4 Testing] - -There are two sets of test values: spot values calculated using -[@http://www.wolframalpha.com/ wolframalpha.com], -and a much larger set of tests computed using -a relation to the underlying Bessel functions that the implementation -does not use. - -[h4 Accuracy] - -The accuracy of these functions is broadly similar to the underlying Bessel functions. - -[table_cyl_bessel_i_prime_integer_orders_] - -[table_cyl_bessel_i_prime] - -[table_cyl_bessel_j_prime_integer_orders_] - -[table_cyl_bessel_j_prime] - -[table_cyl_bessel_k_prime_integer_orders_] - -[table_cyl_bessel_k_prime] - -[table_sph_bessel_prime] - -[table_sph_neumann_prime] - - -[h4 Implementation] - -In the general case, the derivatives are calculated using the relations: - -[equation bessel_derivatives1] - -There are also a number of special cases, for large x we have: - -[equation bessel_derivatives4] - -And for small x: - -[equation bessel_derivatives5] - -[endsect] - -[/ - Copyright 2013, 2013 John Maddock, Anton Bikineev. - - 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). -] diff --git a/boost/libs/math/doc/sf/bessel_spherical.qbk b/boost/libs/math/doc/sf/bessel_spherical.qbk deleted file mode 100644 index 5a3b3b1b..00000000 --- a/boost/libs/math/doc/sf/bessel_spherical.qbk +++ /dev/null @@ -1,90 +0,0 @@ - -[section:sph_bessel Spherical Bessel Functions of the First and Second Kinds] - -[h4 Synopsis] - -`#include ` - - template - ``__sf_result`` sph_bessel(unsigned v, T2 x); - - template - ``__sf_result`` sph_bessel(unsigned v, T2 x, const ``__Policy``&); - - template - ``__sf_result`` sph_neumann(unsigned v, T2 x); - - template - ``__sf_result`` sph_neumann(unsigned v, T2 x, const ``__Policy``&); - -[h4 Description] - -The functions __sph_bessel and __sph_neumann return the result of the -Spherical Bessel functions of the first and second kinds respectively: - -sph_bessel(v, x) = j[sub v](x) - -sph_neumann(v, x) = y[sub v](x) = n[sub v](x) - -where: - -[equation sbessel2] - -The return type of these functions is computed using the __arg_promotion_rules -for the single argument type T. - -[optional_policy] - -The functions return the result of __domain_error whenever the result is -undefined or complex: this occurs when `x < 0`. - -The j[sub v][space] function is cyclic like J[sub v][space] but differs -in its behaviour at the origin: - -[graph sph_bessel] - -Likewise y[sub v][space] is also cyclic for large x, but tends to -[infin][space] -for small /x/: - -[graph sph_neumann] - -[h4 Testing] - -There are two sets of test values: spot values calculated using -[@http://functions.wolfram.com/ functions.wolfram.com], -and a much larger set of tests computed using -a simplified version of this implementation -(with all the special case handling removed). - -[h4 Accuracy] - -[table_sph_bessel] - -[table_sph_neumann] - -[h4 Implementation] - -Other than error handling and a couple of special cases these functions -are implemented directly in terms of their definitions: - -[equation sbessel2] - -The special cases occur for: - -j[sub 0][space]= __sinc_pi(x) = sin(x) / x - -and for small ['x < 1], we can use the series: - -[equation sbessel5] - -which neatly avoids the problem of calculating 0/0 that can occur with the -main definition as x [rarr] 0. - -[endsect] - -[/ - Copyright 2006 John Maddock, Paul A. Bristow and Xiaogang Zhang. - 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). -] diff --git a/boost/libs/math/doc/sf/beta.qbk b/boost/libs/math/doc/sf/beta.qbk deleted file mode 100644 index f1c505bc..00000000 --- a/boost/libs/math/doc/sf/beta.qbk +++ /dev/null @@ -1,110 +0,0 @@ -[section:beta_function Beta] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` beta(T1 a, T2 b); - - template - ``__sf_result`` beta(T1 a, T2 b, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -The beta function is defined by: - -[equation beta1] - -[graph beta] - -[optional_policy] - -There are effectively two versions of this function internally: a fully -generic version that is slow, but reasonably accurate, and a much more -efficient approximation that is used where the number of digits in the significand -of T correspond to a certain __lanczos. In practice any built-in -floating-point type you will encounter has an appropriate __lanczos -defined for it. It is also possible, given enough machine time, to generate -further __lanczos's using the program libs/math/tools/lanczos_generator.cpp. - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types. - -[h4 Accuracy] - -The following table shows peak errors for various domains of input arguments, -along with comparisons to the __gsl and __cephes libraries. Note that -only results for the widest floating point type on the system are given as -narrower types have __zero_error. - -[table_beta] - -Note that the worst errors occur when a or b are large, and that -when this is the case the result is very close to zero, so absolute -errors will be very small. - -[h4 Testing] - -A mixture of spot tests of exact values, and randomly generated test data are -used: the test data was computed using -[@http://shoup.net/ntl/doc/RR.txt NTL::RR] at 1000-bit precision. - -[h4 Implementation] - -Traditional methods of evaluating the beta function either involve evaluating -the gamma functions directly, or taking logarithms and then -exponentiating the result. However, the former is prone to overflows -for even very modest arguments, while the latter is prone to cancellation -errors. As an alternative, if we regard the gamma function as a white-box -containing the __lanczos, then we can combine the power terms: - -[equation beta2] - -which is almost the ideal solution, however almost all of the error occurs -in evaluating the power terms when /a/ or /b/ are large. If we assume that /a > b/ -then the larger of the two power terms can be reduced by a factor of /b/, which -immediately cuts the maximum error in half: - -[equation beta3] - -This may not be the final solution, but it is very competitive compared to -other implementation methods. - -The generic implementation - where no __lanczos approximation is available - is -implemented in a very similar way to the generic version of the gamma function. -Again in order to avoid numerical overflow the power terms that prefix the series and -continued fraction parts are collected together into: - -[equation beta8] - -where la, lb and lc are the integration limits used for a, b, and a+b. - -There are a few special cases worth mentioning: - -When /a/ or /b/ are less than one, we can use the recurrence relations: - -[equation beta4] - -[equation beta5] - -to move to a more favorable region where they are both greater than 1. - -In addition: - -[equation beta7] - -[endsect][/section:beta_function The Beta Function] -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/sf/beta_derivative.qbk b/boost/libs/math/doc/sf/beta_derivative.qbk deleted file mode 100644 index 24c22628..00000000 --- a/boost/libs/math/doc/sf/beta_derivative.qbk +++ /dev/null @@ -1,50 +0,0 @@ -[section:beta_derivative Derivative of the Incomplete Beta Function] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` ibeta_derivative(T1 a, T2 b, T3 x); - - template - ``__sf_result`` ibeta_derivative(T1 a, T2 b, T3 x, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -This function finds some uses in statistical distributions: it -computes the partial derivative with respect to /x/ of the incomplete -beta function __ibeta. - -[equation derivative2] - -The return type of this function is computed using the __arg_promotion_rules -when T1, T2 and T3 are different types. - -[optional_policy] - -[h4 Accuracy] - -Almost identical to the incomplete beta function __ibeta. - -[h4 Implementation] - -This function just expose some of the internals of the incomplete -beta function __ibeta: refer to the documentation for that function -for more information. - -[endsect][/section Derivatives of the Incomplete Beta and Gamma Functions] -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/sf/digamma.qbk b/boost/libs/math/doc/sf/digamma.qbk deleted file mode 100644 index 0bcdf60a..00000000 --- a/boost/libs/math/doc/sf/digamma.qbk +++ /dev/null @@ -1,142 +0,0 @@ -[section:digamma Digamma] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` digamma(T z); - - template - ``__sf_result`` digamma(T z, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -Returns the digamma or psi function of /x/. Digamma is defined as the logarithmic -derivative of the gamma function: - -[equation digamma1] - -[graph digamma] - -[optional_policy] - -The return type of this function is computed using the __arg_promotion_rules: -the result is of type `double` when T is an integer type, and type T otherwise. - -[h4 Accuracy] - -The following table shows the peak errors (in units of epsilon) -found on various platforms with various floating point types. -Unless otherwise specified any floating point type that is narrower -than the one shown will have __zero_error. - -[table_digamma] - -As shown above, error rates for positive arguments are generally very low. -For negative arguments there are an infinite number of irrational roots: -relative errors very close to these can be arbitrarily large, although -absolute error will remain very low. - -[h4 Testing] - -There are two sets of tests: spot values are computed using -the online calculator at functions.wolfram.com, while random test values -are generated using the high-precision reference implementation (a -differentiated __lanczos see below). - -[h4 Implementation] - -The implementation is divided up into the following domains: - -For Negative arguments the reflection formula: - - digamma(1-x) = digamma(x) + pi/tan(pi*x); - -is used to make /x/ positive. - -For arguments in the range [0,1] the recurrence relation: - - digamma(x) = digamma(x+1) - 1/x - -is used to shift the evaluation to [1,2]. - -For arguments in the range [1,2] a rational approximation [jm_rationals] is used (see below). - -For arguments in the range [2,BIG] the recurrence relation: - - digamma(x+1) = digamma(x) + 1/x; - -is used to shift the evaluation to the range [1,2]. - -For arguments > BIG the asymptotic expansion: - -[equation digamma2] - -can be used. However, this expansion is divergent after a few terms: -exactly how many terms depends on the size of /x/. Therefore the value -of /BIG/ must be chosen so that the series can be truncated at a term -that is too small to have any effect on the result when evaluated at /BIG/. -Choosing BIG=10 for up to 80-bit reals, and BIG=20 for 128-bit reals allows -the series to truncated after a suitably small number of terms and evaluated -as a polynomial in `1/(x*x)`. - -The arbitrary precision version of this function uses recurrence relations until -x > BIG, and then evaluation via the asymptotic expansion above. As special cases -integer and half integer arguments are handled via: - -[equation digamma4] - -[equation digamma5] - -The rational approximation [jm_rationals] in the range [1,2] is derived as follows. - -First a high precision approximation to digamma was constructed using a 60-term -differentiated __lanczos, the form used is: - -[equation digamma3] - -Where P(x) and Q(x) are the polynomials from the rational form of the Lanczos sum, -and P'(x) and Q'(x) are their first derivatives. The Lanzos part of this -approximation has a theoretical precision of ~100 decimal digits. However, -cancellation in the above sum will reduce that to around `99-(1/y)` digits -if /y/ is the result. This approximation was used to calculate the positive root -of digamma, and was found to agree with the value used by -Cody to 25 digits (See Math. Comp. 27, 123-127 (1973) by Cody, Strecok and Thacher) -and with the value used by Morris to 35 digits (See TOMS Algorithm 708). - -Likewise a few spot tests agreed with values calculated using -functions.wolfram.com to >40 digits. -That's sufficiently precise to insure that the approximation below is -accurate to double precision. Achieving 128-bit long double precision requires that -the location of the root is known to ~70 digits, and it's not clear whether -the value calculated by this method meets that requirement: the difficulty -lies in independently verifying the value obtained. - -The rational approximation [jm_rationals] was optimised for absolute error using the form: - - digamma(x) = (x - X0)(Y + R(x - 1)); - -Where X0 is the positive root of digamma, Y is a constant, and R(x - 1) is the -rational approximation. Note that since X0 is irrational, we need twice as many -digits in X0 as in x in order to avoid cancellation error during the subtraction -(this assumes that /x/ is an exact value, if it's not then all bets are off). That -means that even when x is the value of the root rounded to the nearest -representable value, the result of digamma(x) ['[*will not be zero]]. - - -[endsect][/section:digamma The Digamma Function] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/sf/ellint_carlson.qbk b/boost/libs/math/doc/sf/ellint_carlson.qbk deleted file mode 100644 index 4d94ad71..00000000 --- a/boost/libs/math/doc/sf/ellint_carlson.qbk +++ /dev/null @@ -1,246 +0,0 @@ -[/ -Copyright (c) 2006 Xiaogang Zhang -Copyright (c) 2006 John Maddock -Use, modification and distribution are subject to 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) -] - -[section:ellint_carlson Elliptic Integrals - Carlson Form] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` ellint_rf(T1 x, T2 y, T3 z) - - template - ``__sf_result`` ellint_rf(T1 x, T2 y, T3 z, const ``__Policy``&) - - }} // namespaces - - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` ellint_rd(T1 x, T2 y, T3 z) - - template - ``__sf_result`` ellint_rd(T1 x, T2 y, T3 z, const ``__Policy``&) - - }} // namespaces - - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` ellint_rj(T1 x, T2 y, T3 z, T4 p) - - template - ``__sf_result`` ellint_rj(T1 x, T2 y, T3 z, T4 p, const ``__Policy``&) - - }} // namespaces - - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` ellint_rc(T1 x, T2 y) - - template - ``__sf_result`` ellint_rc(T1 x, T2 y, const ``__Policy``&) - - }} // namespaces - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` ellint_rg(T1 x, T2 y, T3 z) - - template - ``__sf_result`` ellint_rg(T1 x, T2 y, T3 z, const ``__Policy``&) - - }} // namespaces - - - -[heading Description] - -These functions return Carlson's symmetrical elliptic integrals, the functions -have complicated behavior over all their possible domains, but the following -graph gives an idea of their behavior: - -[graph ellint_carlson] - -The return type of these functions is computed using the __arg_promotion_rules -when the arguments are of different types: otherwise the return is the same type -as the arguments. - - template - ``__sf_result`` ellint_rf(T1 x, T2 y, T3 z) - - template - ``__sf_result`` ellint_rf(T1 x, T2 y, T3 z, const ``__Policy``&) - -Returns Carlson's Elliptic Integral R[sub F]: - -[equation ellint9] - -Requires that all of the arguments are non-negative, and at most -one may be zero. Otherwise returns the result of __domain_error. - -[optional_policy] - - template - ``__sf_result`` ellint_rd(T1 x, T2 y, T3 z) - - template - ``__sf_result`` ellint_rd(T1 x, T2 y, T3 z, const ``__Policy``&) - -Returns Carlson's elliptic integral R[sub D]: - -[equation ellint10] - -Requires that x and y are non-negative, with at most one of them -zero, and that z >= 0. Otherwise returns the result of __domain_error. - -[optional_policy] - - template - ``__sf_result`` ellint_rj(T1 x, T2 y, T3 z, T4 p) - - template - ``__sf_result`` ellint_rj(T1 x, T2 y, T3 z, T4 p, const ``__Policy``&) - -Returns Carlson's elliptic integral R[sub J]: - -[equation ellint11] - -Requires that x, y and z are non-negative, with at most one of them -zero, and that ['p != 0]. Otherwise returns the result of __domain_error. - -[optional_policy] - -When ['p < 0] the function returns the -[@http://en.wikipedia.org/wiki/Cauchy_principal_value Cauchy principal value] -using the relation: - -[equation ellint17] - - template - ``__sf_result`` ellint_rc(T1 x, T2 y) - - template - ``__sf_result`` ellint_rc(T1 x, T2 y, const ``__Policy``&) - -Returns Carlson's elliptic integral R[sub C]: - -[equation ellint12] - -Requires that ['x > 0] and that ['y != 0]. -Otherwise returns the result of __domain_error. - -[optional_policy] - -When ['y < 0] the function returns the -[@http://mathworld.wolfram.com/CauchyPrincipalValue.html Cauchy principal value] -using the relation: - -[equation ellint18] - - template - ``__sf_result`` ellint_rg(T1 x, T2 y, T3 z) - - template - ``__sf_result`` ellint_rg(T1 x, T2 y, T3 z, const ``__Policy``&) - -Returns Carlson's elliptic integral R[sub G]: - -[equation ellint27] - -Requires that x and y are non-negative, otherwise returns the result of __domain_error. - -[optional_policy] - -[heading Testing] - -There are two sets of tests. - -Spot tests compare selected values with test data given in: - -[:B. C. Carlson, ['[@http://arxiv.org/abs/math.CA/9409227 -Numerical computation of real or complex elliptic integrals]]. Numerical Algorithms, -Volume 10, Number 1 / March, 1995, pp 13-26.] - -Random test data generated using NTL::RR at 1000-bit precision and our -implementation checks for rounding-errors and/or regressions. - -There are also sanity checks that use the inter-relations between the integrals -to verify their correctness: see the above Carlson paper for details. - -[heading Accuracy] - -These functions are computed using only basic arithmetic operations, so -there isn't much variation in accuracy over differing platforms. -Note that only results for the widest floating-point type on the -system are given as narrower types have __zero_error. All values -are relative errors in units of epsilon. - -[table_ellint_rc] - -[table_ellint_rd] - -[table_ellint_rg] - -[table_ellint_rf] - -[table_ellint_rj] - - -[heading Implementation] - -The key of Carlson's algorithm [[link ellint_ref_carlson79 Carlson79]] is the -duplication theorem: - -[equation ellint13] - -By applying it repeatedly, ['x], ['y], ['z] get -closer and closer. When they are nearly equal, the special case equation - -[equation ellint16] - -is used. More specifically, ['[R F]] is evaluated from a Taylor series -expansion to the fifth order. The calculations of the other three integrals -are analogous, except for R[sub C] which can be computed from elementary functions. - -For ['p < 0] in ['R[sub J](x, y, z, p)] and ['y < 0] in ['R[sub C](x, y)], -the integrals are singular and their -[@http://mathworld.wolfram.com/CauchyPrincipalValue.html Cauchy principal values] -are returned via the relations: - -[equation ellint17] - -[equation ellint18] - -[endsect] diff --git a/boost/libs/math/doc/sf/ellint_introduction.qbk b/boost/libs/math/doc/sf/ellint_introduction.qbk deleted file mode 100644 index 80c11f65..00000000 --- a/boost/libs/math/doc/sf/ellint_introduction.qbk +++ /dev/null @@ -1,249 +0,0 @@ -[/ -Copyright (c) 2006 Xiaogang Zhang -Use, modification and distribution are subject to 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) -] - -[section:ellint_intro Elliptic Integral Overview] - -The main reference for the elliptic integrals is: - -[:M. Abramowitz and I. A. Stegun (Eds.) (1964) -Handbook of Mathematical Functions with Formulas, Graphs, and -Mathematical Tables, -National Bureau of Standards Applied Mathematics Series, U.S. Government Printing Office, Washington, D.C.] - -Mathworld also contain a lot of useful background information: - -[:[@http://mathworld.wolfram.com/EllipticIntegral.html Weisstein, Eric W. -"Elliptic Integral." From MathWorld--A Wolfram Web Resource.]] - -As does [@http://en.wikipedia.org/wiki/Elliptic_integral Wikipedia Elliptic integral]. - -[h4 Notation] - -All variables are real numbers unless otherwise noted. - -[h4 Definition] - -[equation ellint1] - -is called elliptic integral if ['R(t, s)] is a rational function -of ['t] and ['s], and ['s[super 2]] is a cubic or quartic polynomial -in ['t]. - -Elliptic integrals generally can not be expressed in terms of -elementary functions. However, Legendre showed that all elliptic -integrals can be reduced to the following three canonical forms: - -Elliptic Integral of the First Kind (Legendre form) - -[equation ellint2] - -Elliptic Integral of the Second Kind (Legendre form) - -[equation ellint3] - -Elliptic Integral of the Third Kind (Legendre form) - -[equation ellint4] - -where - -[equation ellint5] - -[note ['[phi]] is called the amplitude. - -['k] is called the modulus. - -['[alpha]] is called the modular angle. - -['n] is called the characteristic.] - -[caution Perhaps more than any other special functions the elliptic -integrals are expressed in a variety of different ways. In particular, -the final parameter /k/ (the modulus) may be expressed using a modular -angle [alpha], or a parameter /m/. These are related by: - -k = sin[alpha] - -m = k[super 2] = sin[super 2][alpha] - -So that the integral of the third kind (for example) may be expressed as -either: - -[Pi](n, [phi], k) - -[Pi](n, [phi] \\ [alpha]) - -[Pi](n, [phi]| m) - -To further complicate matters, some texts refer to the ['complement -of the parameter m], or 1 - m, where: - -1 - m = 1 - k[super 2] = cos[super 2][alpha] - -This implementation uses /k/ throughout: this matches the requirements -of the [@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf -Technical Report on C++ Library Extensions]. However, you should -be extra careful when using these functions!] - -When ['[phi]] = ['[pi]] / 2, the elliptic integrals are called ['complete]. - -Complete Elliptic Integral of the First Kind (Legendre form) - -[equation ellint6] - -Complete Elliptic Integral of the Second Kind (Legendre form) - -[equation ellint7] - -Complete Elliptic Integral of the Third Kind (Legendre form) - -[equation ellint8] - -Legendre also defined a forth integral D([phi],k) which is a combination of the other three: - -[equation ellint_d] - -Like the other Legendre integrals this comes in both complete and incomplete forms. - -[h4 Carlson Elliptic Integrals] - -Carlson [[link ellint_ref_carlson77 Carlson77]] [[link ellint_ref_carlson78 Carlson78]] gives an alternative definition of -elliptic integral's canonical forms: - -Carlson's Elliptic Integral of the First Kind - -[equation ellint9] - -where ['x], ['y], ['z] are nonnegative and at most one of them -may be zero. - -Carlson's Elliptic Integral of the Second Kind - -[equation ellint10] - -where ['x], ['y] are nonnegative, at most one of them may be zero, -and ['z] must be positive. - -Carlson's Elliptic Integral of the Third Kind - -[equation ellint11] - -where ['x], ['y], ['z] are nonnegative, at most one of them may be -zero, and ['p] must be nonzero. - -Carlson's Degenerate Elliptic Integral - -[equation ellint12] - -where ['x] is nonnegative and ['y] is nonzero. - -[note ['R[sub C](x, y) = R[sub F](x, y, y)] - -['R[sub D](x, y, z) = R[sub J](x, y, z, z)]] - -Carlson's Symmetric Integral - -[equation ellint27] - -[h4 Duplication Theorem] - -Carlson proved in [[link ellint_ref_carlson78 Carlson78]] that - -[equation ellint13] - -[h4 Carlson's Formulas] - -The Legendre form and Carlson form of elliptic integrals are related -by equations: - -[equation ellint14] - -In particular, - -[equation ellint15] - -[h4 Miscellaneous Elliptic Integrals] - -There are two functions related to the elliptic integrals which otherwise -defy categorisation, these are the Jacobi Zeta function: - -[equation jacobi_zeta] - -and the Heuman Lambda function: - -[equation heuman_lambda] - -Both of these functions are easily implemented in terms of Carlson's integrals, and are -provided in this library as __jacobi_zeta and __heuman_lambda. - -[h4 Numerical Algorithms] - -The conventional methods for computing elliptic integrals are Gauss -and Landen transformations, which converge quadratically and work -well for elliptic integrals of the first and second kinds. -Unfortunately they suffer from loss of significant digits for the -third kind. Carlson's algorithm [[link ellint_ref_carlson79 Carlson79]] [[link ellint_ref_carlson78 Carlson78]], by contrast, -provides a unified method for all three kinds of elliptic integrals -with satisfactory precisions. - -[h4 References] - -Special mention goes to: - -[:A. M. Legendre, ['Traitd des Fonctions Elliptiques et des Integrales -Euleriennes], Vol. 1. Paris (1825).] - -However the main references are: - -# [#ellint_ref_AS]M. Abramowitz and I. A. Stegun (Eds.) (1964) -Handbook of Mathematical Functions with Formulas, Graphs, and -Mathematical Tables, -National Bureau of Standards Applied Mathematics Series, U.S. Government Printing Office, Washington, D.C. -# [#ellint_ref_carlson79]B.C. Carlson, ['Computing elliptic integrals by duplication], - Numerische Mathematik, vol 33, 1 (1979). -# [#ellint_ref_carlson77]B.C. Carlson, ['Elliptic Integrals of the First Kind], - SIAM Journal on Mathematical Analysis, vol 8, 231 (1977). -# [#ellint_ref_carlson78]B.C. Carlson, ['Short Proofs of Three Theorems on Elliptic Integrals], - SIAM Journal on Mathematical Analysis, vol 9, 524 (1978). -# [#ellint_ref_carlson81]B.C. Carlson and E.M. Notis, ['ALGORITHM 577: Algorithms for Incomplete - Elliptic Integrals], ACM Transactions on Mathematmal Software, - vol 7, 398 (1981). -# B. C. Carlson, ['On computing elliptic integrals and functions]. J. Math. and -Phys., 44 (1965), pp. 36-51. -# B. C. Carlson, ['A table of elliptic integrals of the second kind]. Math. Comp., 49 -(1987), pp. 595-606. (Supplement, ibid., pp. S13-S17.) -# B. C. Carlson, ['A table of elliptic integrals of the third kind]. Math. Comp., 51 (1988), -pp. 267-280. (Supplement, ibid., pp. S1-S5.) -# B. C. Carlson, ['A table of elliptic integrals: cubic cases]. Math. Comp., 53 (1989), pp. -327-333. -# B. C. Carlson, ['A table of elliptic integrals: one quadratic factor]. Math. Comp., 56 (1991), -pp. 267-280. -# B. C. Carlson, ['A table of elliptic integrals: two quadratic factors]. Math. Comp., 59 -(1992), pp. 165-180. -# B. C. Carlson, ['[@http://arxiv.org/abs/math.CA/9409227 -Numerical computation of real or complex elliptic integrals]]. Numerical Algorithms, -Volume 10, Number 1 / March, 1995, p13-26. -# B. C. Carlson and John L. Gustafson, ['[@http://arxiv.org/abs/math.CA/9310223 -Asymptotic Approximations for Symmetric Elliptic Integrals]], -SIAM Journal on Mathematical Analysis, Volume 25, Issue 2 (March 1994), 288-303. - - -The following references, while not directly relevent to our implementation, -may also be of interest: - -# R. Burlisch, ['Numerical Compuation of Elliptic Integrals and Elliptic Functions.] -Numerical Mathematik 7, 78-90. -# R. Burlisch, ['An extension of the Bartky Transformation to Incomplete -Elliptic Integrals of the Third Kind]. Numerical Mathematik 13, 266-284. -# R. Burlisch, ['Numerical Compuation of Elliptic Integrals and Elliptic Functions. III]. -Numerical Mathematik 13, 305-315. -# T. Fukushima and H. Ishizaki, ['[@http://adsabs.harvard.edu/abs/1994CeMDA..59..237F -Numerical Computation of Incomplete Elliptic Integrals of a General Form.]] -Celestial Mechanics and Dynamical Astronomy, Volume 59, Number 3 / July, 1994, -237-251. - -[endsect] diff --git a/boost/libs/math/doc/sf/ellint_legendre.qbk b/boost/libs/math/doc/sf/ellint_legendre.qbk deleted file mode 100644 index 4eeb52c2..00000000 --- a/boost/libs/math/doc/sf/ellint_legendre.qbk +++ /dev/null @@ -1,554 +0,0 @@ -[/ -Copyright (c) 2006 Xiaogang Zhang -Copyright (c) 2006 John Maddock -Use, modification and distribution are subject to 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) -] - -[section:ellint_1 Elliptic Integrals of the First Kind - Legendre Form] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` ellint_1(T1 k, T2 phi); - - template - ``__sf_result`` ellint_1(T1 k, T2 phi, const ``__Policy``&); - - template - ``__sf_result`` ellint_1(T k); - - template - ``__sf_result`` ellint_1(T k, const ``__Policy``&); - - }} // namespaces - -[heading Description] - -These two functions evaluate the incomplete elliptic integral of the first kind -['F([phi], k)] and its complete counterpart ['K(k) = F([pi]/2, k)]. - -[graph ellint_1] - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types: when they are the same type then the result -is the same type as the arguments. - - template - ``__sf_result`` ellint_1(T1 k, T2 phi); - - template - ``__sf_result`` ellint_1(T1 k, T2 phi, const ``__Policy``&); - -Returns the incomplete elliptic integral of the first kind ['F([phi], k)]: - -[equation ellint2] - -Requires -1 <= k <= 1, otherwise returns the result of __domain_error. - -[optional_policy] - - template - ``__sf_result`` ellint_1(T k); - - template - ``__sf_result`` ellint_1(T k, const ``__Policy``&); - -Returns the complete elliptic integral of the first kind ['K(k)]: - -[equation ellint6] - -Requires -1 <= k <= 1, otherwise returns the result of __domain_error. - -[optional_policy] - -[heading Accuracy] - -These functions are computed using only basic arithmetic operations, so -there isn't much variation in accuracy over differing platforms. -Note that only results for the widest floating point type on the -system are given as narrower types have __zero_error. All values -are relative errors in units of epsilon. - -[table_ellint_1] - -[heading Testing] - -The tests use a mixture of spot test values calculated using the online -calculator at [@http://functions.wolfram.com/ functions.wolfram.com], -and random test data generated using -NTL::RR at 1000-bit precision and this implementation. - -[heading Implementation] - -These functions are implemented in terms of Carlson's integrals -using the relations: - -[equation ellint19] - -and - -[equation ellint20] - - -[endsect] - -[section:ellint_2 Elliptic Integrals of the Second Kind - Legendre Form] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` ellint_2(T1 k, T2 phi); - - template - ``__sf_result`` ellint_2(T1 k, T2 phi, const ``__Policy``&); - - template - ``__sf_result`` ellint_2(T k); - - template - ``__sf_result`` ellint_2(T k, const ``__Policy``&); - - }} // namespaces - -[heading Description] - -These two functions evaluate the incomplete elliptic integral of the second kind -['E([phi], k)] and its complete counterpart ['E(k) = E([pi]/2, k)]. - -[graph ellint_2] - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types: when they are the same type then the result -is the same type as the arguments. - - template - ``__sf_result`` ellint_2(T1 k, T2 phi); - - template - ``__sf_result`` ellint_2(T1 k, T2 phi, const ``__Policy``&); - -Returns the incomplete elliptic integral of the second kind ['E([phi], k)]: - -[equation ellint3] - -Requires -1 <= k <= 1, otherwise returns the result of __domain_error. - -[optional_policy] - - template - ``__sf_result`` ellint_2(T k); - - template - ``__sf_result`` ellint_2(T k, const ``__Policy``&); - -Returns the complete elliptic integral of the second kind ['E(k)]: - -[equation ellint7] - -Requires -1 <= k <= 1, otherwise returns the result of __domain_error. - -[optional_policy] - -[heading Accuracy] - -These functions are computed using only basic arithmetic operations, so -there isn't much variation in accuracy over differing platforms. -Note that only results for the widest floating point type on the -system are given as narrower types have __zero_error. All values -are relative errors in units of epsilon. - -[table_ellint_2] - -[heading Testing] - -The tests use a mixture of spot test values calculated using the online -calculator at [@http://functions.wolfram.com -functions.wolfram.com], and random test data generated using -NTL::RR at 1000-bit precision and this implementation. - -[heading Implementation] - -These functions are implemented in terms of Carlson's integrals -using the relations: - -[equation ellint21] - -and - -[equation ellint22] - - -[endsect] - -[section:ellint_3 Elliptic Integrals of the Third Kind - Legendre Form] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` ellint_3(T1 k, T2 n, T3 phi); - - template - ``__sf_result`` ellint_3(T1 k, T2 n, T3 phi, const ``__Policy``&); - - template - ``__sf_result`` ellint_3(T1 k, T2 n); - - template - ``__sf_result`` ellint_3(T1 k, T2 n, const ``__Policy``&); - - }} // namespaces - -[heading Description] - -These two functions evaluate the incomplete elliptic integral of the third kind -['[Pi](n, [phi], k)] and its complete counterpart ['[Pi](n, k) = E(n, [pi]/2, k)]. - -[graph ellint_3] - -The return type of these functions is computed using the __arg_promotion_rules -when the arguments are of different types: when they are the same type then the result -is the same type as the arguments. - - template - ``__sf_result`` ellint_3(T1 k, T2 n, T3 phi); - - template - ``__sf_result`` ellint_3(T1 k, T2 n, T3 phi, const ``__Policy``&); - -Returns the incomplete elliptic integral of the third kind ['[Pi](n, [phi], k)]: - -[equation ellint4] - -Requires ['-1 <= k <= 1] and ['n < 1/sin[super 2]([phi])], otherwise -returns the result of __domain_error (outside this range the result -would be complex). - -[optional_policy] - - template - ``__sf_result`` ellint_3(T1 k, T2 n); - - template - ``__sf_result`` ellint_3(T1 k, T2 n, const ``__Policy``&); - -Returns the complete elliptic integral of the first kind ['[Pi](n, k)]: - -[equation ellint8] - -Requires ['-1 <= k <= 1] and ['n < 1], otherwise returns the -result of __domain_error (outside this range the result would be complex). - -[optional_policy] - -[heading Accuracy] - -These functions are computed using only basic arithmetic operations, so -there isn't much variation in accuracy over differing platforms. -Note that only results for the widest floating point type on the -system are given as narrower types have __zero_error. All values -are relative errors in units of epsilon. - -[table_ellint_3] - -[heading Testing] - -The tests use a mixture of spot test values calculated using the online -calculator at [@http://functions.wolfram.com -functions.wolfram.com], and random test data generated using -NTL::RR at 1000-bit precision and this implementation. - -[heading Implementation] - -The implementation for [Pi](n, [phi], k) first siphons off the special cases: - -['[Pi](0, [phi], k) = F([phi], k)] - -['[Pi](n, [pi]/2, k) = [Pi](n, k)] - -and - -[equation ellint23] - -Then if n < 0 the relations (A&S 17.7.15/16): - -[equation ellint24] - -are used to shift /n/ to the range \[0, 1\]. - -Then the relations: - -['[Pi](n, -[phi], k) = -[Pi](n, [phi], k)] - -['[Pi](n, [phi]+m[pi], k) = [Pi](n, [phi], k) + 2m[Pi](n, k) ; n <= 1] - -['[Pi](n, [phi]+m[pi], k) = [Pi](n, [phi], k) ; n > 1] -[footnote I haven't been able to find a literature reference for this -relation, but it appears to be the convention used by Mathematica. -Intuitively the first ['2 * m * [Pi](n, k)] terms cancel out as the -derivative alternates between +[infin] and -[infin].] - -are used to move [phi][space] to the range \[0, [pi]\/2\]. - -The functions are then implemented in terms of Carlson's integrals -using the relations: - -[equation ellint25] - -and - -[equation ellint26] - -[endsect] - -[section:ellint_d Elliptic Integral D - Legendre Form] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` ellint_d(T1 k, T2 phi); - - template - ``__sf_result`` ellint_d(T1 k, T2 phi, const ``__Policy``&); - - template - ``__sf_result`` ellint_d(T1 k); - - template - ``__sf_result`` ellint_d(T1 k, const ``__Policy``&); - - }} // namespaces - -[heading Description] - -These two functions evaluate the incomplete elliptic integral -['D([phi], k)] and its complete counterpart ['D(k) = D([pi]/2, k)]. - -The return type of these functions is computed using the __arg_pomotion_rules -when the arguments are of different types: when they are the same type then the result -is the same type as the arguments. - - template - ``__sf_result`` ellint_d(T1 k, T2 phi); - - template - ``__sf_result`` ellint_3(T1 k, T2 phi, const ``__Policy``&); - -Returns the incomplete elliptic integral: - -[equation ellint_d] - -Requires ['-1 <= k <= 1], otherwise -returns the result of __domain_error (outside this range the result -would be complex). - -[optional_policy] - - template - ``__sf_result`` ellint_d(T1 k); - - template - ``__sf_result`` ellint_d(T1 k, const ``__Policy``&); - -Returns the complete elliptic integral ['D(k) = D([pi]/2, k)] - -Requires ['-1 <= k <= 1] otherwise returns the -result of __domain_error (outside this range the result would be complex). - -[optional_policy] - -[heading Accuracy] - -These functions are trivially computed in terms of other elliptic integrals -and generally have very low error rates (a few epsilon) unless parameter [phi] -is very large, in which case the usual trigonometric function argument-reduction issues apply. - -[table_ellint_d_complete_] - -[table_ellint_d] - -[heading Testing] - -The tests use a mixture of spot test values calculated using -values calculated at wolframalpha.com, and random test data generated using -MPFR at 1000-bit precision and a deliberately naive implementation in terms of -the Legendre integrals. - -[heading Implementation] - -The implementation for D([phi], k) first performs argument reduction using the relations: - -['D(-[phi], k) = -D([phi], k)] - -and - -['D(n[pi]+[phi], k) = 2nD(k) + D([phi], k)] - -to move [phi][space] to the range \[0, [pi]\/2\]. - -The functions are then implemented in terms of Carlson's integral R[sub D] -using the relation: - -[equation ellint_d] - -[endsect] - -[section:jacobi_zeta Jacobi Zeta Function] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_zeta(T1 k, T2 phi); - - template - ``__sf_result`` jacobi_zeta(T1 k, T2 phi, const ``__Policy``&); - - }} // namespaces - -[heading Description] - -This function evaluates the Jacobi Zeta Function ['Z([phi], k)] - -[equation jacobi_zeta] - -The return type of this function is computed using the __arg_pomotion_rules -when the arguments are of different types: when they are the same type then the result -is the same type as the arguments. - -Requires ['-1 <= k <= 1], otherwise -returns the result of __domain_error (outside this range the result -would be complex). - -[optional_policy] - -Note that there is no complete analogue of this function (where [phi] = [pi] / 2) -as this takes the value 0 for all ['k]. - -[heading Accuracy] - -These functions are trivially computed in terms of other elliptic integrals -and generally have very low error rates (a few epsilon) unless parameter [phi] -is very large, in which case the usual trigonometric function argument-reduction issues apply. - -[table_jacobi_zeta] - -[heading Testing] - -The tests use a mixture of spot test values calculated using -values calculated at wolframalpha.com, and random test data generated using -MPFR at 1000-bit precision and a deliberately naive implementation in terms of -the Legendre integrals. - -[heading Implementation] - -The implementation for Z([phi], k) first makes the argument [phi] positive using: - -['Z(-[phi], k) = -Z([phi], k)] - -The function is then implemented in terms of Carlson's integral R[sub J] -using the relation: - -[equation jacobi_zeta] - -There is one special case where the above relation fails: when ['k = 1], in that case -the function simplifies to - -['Z([phi], 1) = sign(cos([phi])) sin([phi])] - -[endsect] - -[section:heuman_lambda Heuman Lambda Function] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` heuman_lambda(T1 k, T2 phi); - - template - ``__sf_result`` heuman_lambda(T1 k, T2 phi, const ``__Policy``&); - - }} // namespaces - -[heading Description] - -This function evaluates the Heuman Lambda Function ['[Lambda][sub 0]([phi], k)] - -[equation heuman_lambda] - -The return type of this function is computed using the __arg_pomotion_rules -when the arguments are of different types: when they are the same type then the result -is the same type as the arguments. - -Requires ['-1 <= k <= 1], otherwise -returns the result of __domain_error (outside this range the result -would be complex). - -[optional_policy] - -Note that there is no complete analogue of this function (where [phi] = [pi] / 2) -as this takes the value 1 for all ['k]. - -[heading Accuracy] - -These functions are trivially computed in terms of other elliptic integrals -and generally have very low error rates (a few epsilon) unless parameter [phi] -is very large, in which case the usual trigonometric function argument-reduction issues apply. - -[table_heuman_lambda] - -[heading Testing] - -The tests use a mixture of spot test values calculated using -values calculated at wolframalpha.com, and random test data generated using -MPFR at 1000-bit precision and a deliberately naive implementation in terms of -the Legendre integrals. - -[heading Implementation] - -The function is then implemented in terms of Carlson's integrals R[sub J] and R[sub F] -using the relation: - -[equation heuman_lambda] - -This relation fails for ['|[phi]| >= [pi]/2] in which case the definition in terms of the -Jacobi Zeta is used. - -[endsect] - diff --git a/boost/libs/math/doc/sf/erf.qbk b/boost/libs/math/doc/sf/erf.qbk deleted file mode 100644 index 2051d051..00000000 --- a/boost/libs/math/doc/sf/erf.qbk +++ /dev/null @@ -1,142 +0,0 @@ -[section:error_function Error Functions] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` erf(T z); - - template - ``__sf_result`` erf(T z, const ``__Policy``&); - - template - ``__sf_result`` erfc(T z); - - template - ``__sf_result`` erfc(T z, const ``__Policy``&); - - }} // namespaces - -The return type of these functions is computed using the __arg_promotion_rules: -the return type is `double` if T is an integer type, and T otherwise. - -[optional_policy] - -[h4 Description] - - template - ``__sf_result`` erf(T z); - - template - ``__sf_result`` erf(T z, const ``__Policy``&); - -Returns the [@http://en.wikipedia.org/wiki/Error_function error function] -[@http://functions.wolfram.com/GammaBetaErf/Erf/ erf] of z: - -[equation erf1] - -[graph erf] - - template - ``__sf_result`` erfc(T z); - - template - ``__sf_result`` erfc(T z, const ``__Policy``&); - -Returns the complement of the [@http://functions.wolfram.com/GammaBetaErf/Erfc/ error function] of z: - -[equation erf2] - -[graph erfc] - -[h4 Accuracy] - -The following table shows the peak errors (in units of epsilon) -found on various platforms with various floating point types, -along with comparisons to the __gsl, __glibc, __hpc and __cephes libraries. -Unless otherwise specified any floating point type that is narrower -than the one shown will have __zero_error. - -[table_erf] - -[table_erfc] - -[h4 Testing] - -The tests for these functions come in two parts: -basic sanity checks use spot values calculated using -[@http://functions.wolfram.com/webMathematica/FunctionEvaluation.jsp?name=Erf Mathworld's online evaluator], -while accuracy checks use high-precision test values calculated at 1000-bit precision with -[@http://shoup.net/ntl/doc/RR.txt NTL::RR] and this implementation. -Note that the generic and type-specific -versions of these functions use differing implementations internally, so this -gives us reasonably independent test data. Using our test data to test other -"known good" implementations also provides an additional sanity check. - -[h4 Implementation] - -All versions of these functions first use the usual reflection formulas -to make their arguments positive: - - erf(-z) = 1 - erf(z); - - erfc(-z) = 2 - erfc(z); // preferred when -z < -0.5 - - erfc(-z) = 1 + erf(z); // preferred when -0.5 <= -z < 0 - -The generic versions of these functions are implemented in terms of -the incomplete gamma function. - -When the significand (mantissa) size is recognised -(currently for 53, 64 and 113-bit reals, plus single-precision 24-bit handled via promotion to double) -then a series of rational approximations [jm_rationals] are used. - -For `z <= 0.5` then a rational approximation to erf is used, based on the -observation that erf is an odd function and therefore erf is calculated using: - - erf(z) = z * (C + R(z*z)); - -where the rational approximation R(z*z) is optimised for absolute error: -as long as its absolute error is small enough compared to the constant C, then any -round-off error incurred during the computation of R(z*z) will effectively -disappear from the result. As a result the error for erf and erfc in this -region is very low: the last bit is incorrect in only a very small number of -cases. - -For `z > 0.5` we observe that over a small interval \[a, b) then: - - erfc(z) * exp(z*z) * z ~ c - -for some constant c. - -Therefore for `z > 0.5` we calculate erfc using: - - erfc(z) = exp(-z*z) * (C + R(z - B)) / z; - -Again R(z - B) is optimised for absolute error, and the constant `C` is -the average of `erfc(z) * exp(z*z) * z` taken at the endpoints of the range. -Once again, as long as the absolute error in R(z - B) is small -compared to `c` then `c + R(z - B)` will be correctly rounded, and the error -in the result will depend only on the accuracy of the exp function. In practice, -in all but a very small number of cases, the error is confined to the last bit -of the result. The constant `B` is chosen so that the left hand end of the range -of the rational approximation is 0. - -For large `z` over a range \[a, +[infin]\] the above approximation is modified to: - - erfc(z) = exp(-z*z) * (C + R(1 / z)) / z; - -[endsect] -[/ :error_function The Error Functions] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/erf_inv.qbk b/boost/libs/math/doc/sf/erf_inv.qbk deleted file mode 100644 index 6885cf4c..00000000 --- a/boost/libs/math/doc/sf/erf_inv.qbk +++ /dev/null @@ -1,136 +0,0 @@ -[section:error_inv Error Function Inverses] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` erf_inv(T p); - - template - ``__sf_result`` erf_inv(T p, const ``__Policy``&); - - template - ``__sf_result`` erfc_inv(T p); - - template - ``__sf_result`` erfc_inv(T p, const ``__Policy``&); - - }} // namespaces - -The return type of these functions is computed using the __arg_promotion_rules: -the return type is `double` if T is an integer type, and T otherwise. - -[optional_policy] - -[h4 Description] - - template - ``__sf_result`` erf_inv(T z); - - template - ``__sf_result`` erf_inv(T z, const ``__Policy``&); - -Returns the [@http://functions.wolfram.com/GammaBetaErf/InverseErf/ inverse error function] -of z, that is a value x such that: - - p = erf(x); - -[graph erf_inv] - - template - ``__sf_result`` erfc_inv(T z); - - template - ``__sf_result`` erfc_inv(T z, const ``__Policy``&); - -Returns the inverse of the complement of the error function of z, that is a -value x such that: - - p = erfc(x); - -[graph erfc_inv] - -[h4 Accuracy] - -For types up to and including 80-bit long doubles the approximations used -are accurate to less than ~ 2 epsilon. For higher precision types these -functions have the same accuracy as the -[link math_toolkit.sf_erf.error_function forward error functions]. - -[table_erf_inv] - -[table_erfc_inv] - -[h4 Testing] - -There are two sets of tests: - -* Basic sanity checks attempt to "round-trip" from -/x/ to /p/ and back again. These tests have quite -generous tolerances: in general both the error functions and their -inverses change so rapidly in some places that round tripping to more than a couple -of significant digits isn't possible. This is especially true when -/p/ is very near one: in this case there isn't enough -"information content" in the input to the inverse function to get -back where you started. -* Accuracy checks using high-precision test values. These measure -the accuracy of the result, given /exact/ input values. - -[h4 Implementation] - -These functions use a rational approximation [jm_rationals] -to calculate an initial -approximation to the result that is accurate to ~10[super -19], -then only if that has insufficient accuracy compared to the epsilon for T, -do we clean up the result using -[@http://en.wikipedia.org/wiki/Simple_rational_approximation Halley iteration]. - -Constructing rational approximations to the erf/erfc functions is actually -surprisingly hard, especially at high precision. For this reason no attempt -has been made to achieve 10[super -34 ] accuracy suitable for use with 128-bit -reals. - -In the following discussion, /p/ is the value passed to erf_inv, and /q/ is -the value passed to erfc_inv, so that /p = 1 - q/ and /q = 1 - p/ and in both -cases we want to solve for the same result /x/. - -For /p < 0.5/ the inverse erf function is reasonably smooth and the approximation: - - x = p(p + 10)(Y + R(p)) - -Gives a good result for a constant Y, and R(p) optimised for low absolute error -compared to |Y|. - -For q < 0.5 things get trickier, over the interval /0.5 > q > 0.25/ -the following approximation works well: - - x = sqrt(-2log(q)) / (Y + R(q)) - -While for q < 0.25, let - - z = sqrt(-log(q)) - -Then the result is given by: - - x = z(Y + R(z - B)) - -As before Y is a constant and the rational function R is optimised for low -absolute error compared to |Y|. B is also a constant: it is the smallest value -of /z/ for which each approximation is valid. There are several approximations -of this form each of which reaches a little further into the tail of the erfc -function (at `long double` precision the extended exponent range compared to -`double` means that the tail goes on for a very long way indeed). - -[endsect][/ :error_inv The Error Function Inverses] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/expint.qbk b/boost/libs/math/doc/sf/expint.qbk deleted file mode 100644 index 945354e6..00000000 --- a/boost/libs/math/doc/sf/expint.qbk +++ /dev/null @@ -1,217 +0,0 @@ -[section:expint Exponential Integrals] - -[section:expint_n Exponential Integral En] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` expint(unsigned n, T z); - - template - ``__sf_result`` expint(unsigned n, T z, const ``__Policy``&); - - }} // namespaces - -The return type of these functions is computed using the __arg_promotion_rules: -the return type is `double` if T is an integer type, and T otherwise. - -[optional_policy] - -[h4 Description] - - template - ``__sf_result`` expint(unsigned n, T z); - - template - ``__sf_result`` expint(unsigned n, T z, const ``__Policy``&); - -Returns the [@http://mathworld.wolfram.com/En-Function.html exponential integral En] -of z: - -[equation expint_n_1] - -[graph expint2] - -[h4 Accuracy] - -The following table shows the peak errors (in units of epsilon) -found on various platforms with various floating point types, -along with comparisons to other libraries. -Unless otherwise specified any floating point type that is narrower -than the one shown will have __zero_error. - -[table_expint_En_] - -[h4 Testing] - -The tests for these functions come in two parts: -basic sanity checks use spot values calculated using -[@http://functions.wolfram.com/webMathematica/FunctionEvaluation.jsp?name=ExpIntegralE Mathworld's online evaluator], -while accuracy checks use high-precision test values calculated at 1000-bit precision with -[@http://shoup.net/ntl/doc/RR.txt NTL::RR] and this implementation. -Note that the generic and type-specific -versions of these functions use differing implementations internally, so this -gives us reasonably independent test data. Using our test data to test other -"known good" implementations also provides an additional sanity check. - -[h4 Implementation] - -The generic version of this function uses the continued fraction: - -[equation expint_n_3] - -for large /x/ and the infinite series: - -[equation expint_n_2] - -for small /x/. - -Where the precision of /x/ is known at compile time and is 113 bits or fewer -in precision, then rational approximations [jm_rationals] are used for the -`n == 1` case. - -For `x < 1` the approximating form is a minimax approximation: - -[equation expint_n_4] - -and for `x > 1` a Chebyshev interpolated approximation of the form: - -[equation expint_n_5] - -is used. - - -[endsect] - -[section:expint_i Exponential Integral Ei] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` expint(T z); - - template - ``__sf_result`` expint(T z, const ``__Policy``&); - - }} // namespaces - -The return type of these functions is computed using the __arg_promotion_rules: -the return type is `double` if T is an integer type, and T otherwise. - -[optional_policy] - -[h4 Description] - - template - ``__sf_result`` expint(T z); - - template - ``__sf_result`` expint(T z, const ``__Policy``&); - -Returns the [@http://mathworld.wolfram.com/ExponentialIntegral.html exponential integral] -of z: - -[equation expint_i_1] - -[graph expint_i] - -[h4 Accuracy] - -The following table shows the peak errors (in units of epsilon) -found on various platforms with various floating point types, -along with comparisons to Cody's SPECFUN implementation and the __gsl library. -Unless otherwise specified any floating point type that is narrower -than the one shown will have __zero_error. - -[table_expint_Ei_] - -It should be noted that all three libraries tested above -offer sub-epsilon precision over most of their range. - -GSL has the greatest difficulty near the positive root of En, while -Cody's SPECFUN along with this implementation increase their -error rates very slightly over the range \[4,6\]. - -[h4 Testing] - -The tests for these functions come in two parts: -basic sanity checks use spot values calculated using -[@http://functions.wolfram.com/webMathematica/FunctionEvaluation.jsp?name=ExpIntegralEi Mathworld's online evaluator], -while accuracy checks use high-precision test values calculated at 1000-bit precision with -[@http://shoup.net/ntl/doc/RR.txt NTL::RR] and this implementation. -Note that the generic and type-specific -versions of these functions use differing implementations internally, so this -gives us reasonably independent test data. Using our test data to test other -"known good" implementations also provides an additional sanity check. - -[h4 Implementation] - -For x < 0 this function just calls __expint_n(1, -x): which in turn is implemented -in terms of rational approximations when the type of x has 113 or fewer bits of -precision. - -For x > 0 the generic version is implemented using the infinte series: - -[equation expint_i_2] - -However, when the precision of the argument type is known at compile time -and is 113 bits or less, then rational approximations [jm_rationals] are used. - -For 0 < z < 6 a root-preserving approximation of the form: - -[equation expint_i_3] - -is used, where z[sub 0] is the positive root of the function, and -R(z/3 - 1) is a minimax rational approximation rescaled so that -it is evaluated over \[-1,1\]. Note that while the rational approximation -over \[0,6\] converges rapidly to the minimax solution it is rather -ill-conditioned in practice. Cody and Thacher -[footnote W. J. Cody and H. C. Thacher, Jr., -Rational Chebyshev approximations for the exponential integral E[sub 1](x), -Math. Comp. 22 (1968), 641-649, -and W. J. Cody and H. C. Thacher, Jr., Chebyshev approximations for the -exponential integral Ei(x), Math. Comp. 23 (1969), 289-303.] -experienced the same issue and -converted the polynomials into Chebeshev form to ensure stable -computation. By experiment we found that the polynomials are just as stable -in polynomial as Chebyshev form, /provided/ they are computed -over the interval \[-1,1\]. - -Over the a series of intervals [a,b] and [b,INF] the rational approximation -takes the form: - -[equation expint_i_4] - -where /c/ is a constant, and R(t) is a minimax solution optimised for low -absolute error compared to /c/. Variable /t/ is `1/z` when the range in infinite -and `2z/(b-a) - (2a/(b-a) + 1)` otherwise: this has the effect of scaling z to the -interval \[-1,1\]. As before rational approximations over arbitrary intervals -were found to be ill-conditioned: Cody and Thacher solved this issue by -converting the polynomials to their J-Fraction equivalent. However, as long -as the interval of evaluation was \[-1,1\] and the number of terms carefully chosen, -it was found that the polynomials /could/ be evaluated to suitable precision: -error rates are typically 2 to 3 epsilon which is comparible to the error -rate that Cody and Thacher achieved using J-Fractions, but marginally more -efficient given that fewer divisions are involved. - -[endsect] -[endsect] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/factorials.qbk b/boost/libs/math/doc/sf/factorials.qbk deleted file mode 100644 index 792aff35..00000000 --- a/boost/libs/math/doc/sf/factorials.qbk +++ /dev/null @@ -1,374 +0,0 @@ -[section:factorials Factorials and Binomial Coefficients] - -[section:sf_factorial Factorial] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - T factorial(unsigned i); - - template - T factorial(unsigned i, const ``__Policy``&); - - template - T unchecked_factorial(unsigned i); - - template - struct max_factorial; - - }} // namespaces - -[h4 Description] - -[important -The functions described below are templates where the template argument T CANNOT be deduced from the -arguments passed to the function. Therefore if you write something like: - - `boost::math::factorial(2);` - -You will get a (perhaps perplexing) compiler error, ususally indicating that there is no such function to be found. -Instead you need to specify the return type explicity and write: - - `boost::math::factorial(2);` - -So that the return type is known. - -Furthermore, the template argument must be a real-valued type such as `float` or `double` -and not an integer type - that would overflow far too easily for quite small values of parameter `i`! - -The source code `static_assert` and comment just after the will be: - -`` - BOOST_STATIC_ASSERT(!boost::is_integral::value); - // factorial(n) is not implemented - // because it would overflow integral type T for too small n - // to be useful. Use instead a floating-point type, - // and convert to an unsigned type if essential, for example: - // unsigned int nfac = static_cast(factorial(n)); - // See factorial documentation for more detail. -`` -] - - template - T factorial(unsigned i); - - template - T factorial(unsigned i, const ``__Policy``&); - -Returns [^i!]. - -[optional_policy] - -For [^i <= max_factorial::value] this is implemented by table lookup, -for larger values of [^i], this function is implemented in terms of __tgamma. - -If [^i] is so large that the result can not be represented in type T, then -calls __overflow_error. - - template - T unchecked_factorial(unsigned i); - -Returns [^i!]. - -Internally this function performs table lookup of the result. Further it performs -no range checking on the value of i: it is up to the caller to ensure -that [^i <= max_factorial::value]. This function is intended to be used -inside inner loops that require fast table lookup of factorials, but requires -care to ensure that argument [^i] never grows too large. - - template - struct max_factorial - { - static const unsigned value = X; - }; - -This traits class defines the largest value that can be passed to -[^unchecked_factorial]. The member `value` can be used where integral -constant expressions are required: for example to define the size of -further tables that depend on the factorials. - -[h4 Accuracy] - -For arguments smaller than `max_factorial::value` -the result should be -correctly rounded. For larger arguments the accuracy will be the same -as for __tgamma. - -[h4 Testing] - -Basic sanity checks and spot values to verify the data tables: -the main tests for the __tgamma function handle those cases already. - -[h4 Implementation] - -The factorial function is table driven for small arguments, and is -implemented in terms of __tgamma for larger arguments. - -[endsect] - -[section:sf_double_factorial Double Factorial] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - T double_factorial(unsigned i); - - template - T double_factorial(unsigned i, const ``__Policy``&); - - }} // namespaces - -Returns [^i!!]. - -[optional_policy] - -May return the result of __overflow_error if the result is too large -to represent in type T. The implementation is designed to be optimised -for small /i/ where table lookup of i! is possible. - -[important -The functions described above are templates where the template argument T can not be deduced from the -arguments passed to the function. Therefore if you write something like: - - `boost::math::double_factorial(2);` - -You will get a (possibly perplexing) compiler error, ususally indicating that there is no such function to be found. Instead you need to specifiy -the return type explicity and write: - - `boost::math::double_factorial(2);` - -So that the return type is known. Further, the template argument must be a real-valued type such as `float` or `double` -and not an integer type - that would overflow far too easily! - -The source code `static_assert` and comment just after the will be: - -`` - BOOST_STATIC_ASSERT(!boost::is_integral::value); - // factorial(n) is not implemented - // because it would overflow integral type T for too small n - // to be useful. Use instead a floating-point type, - // and convert to an unsigned type if essential, for example: - // unsigned int nfac = static_cast(factorial(n)); - // See factorial documentation for more detail. -`` -] - -[note The argument to `double_factorial` is type `unsigned` even though technically -1!! is defined.] - -[h4 Accuracy] - -The implementation uses a trivial adaptation of -the factorial function, so error rates should be no more than a couple -of epsilon higher. - -[h4 Testing] - -The spot tests for the double factorial use data -generated by functions.wolfram.com. - -[h4 Implementation] - -The double factorial is implemented in terms of the factorial and gamma -functions using the relations: - -(2n)!! = 2[super n ] * n! - -(2n+1)!! = (2n+1)! / (2[super n ] n!) - -and - -(2n-1)!! = [Gamma]((2n+1)/2) * 2[super n ] / sqrt(pi) - -[endsect] - -[section:sf_rising_factorial Rising Factorial] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` rising_factorial(T x, int i); - - template - ``__sf_result`` rising_factorial(T x, int i, const ``__Policy``&); - - }} // namespaces - -Returns the rising factorial of /x/ and /i/: - -rising_factorial(x, i) = [Gamma](x + i) / [Gamma](x); - -or - -rising_factorial(x, i) = x(x+1)(x+2)(x+3)...(x+i-1) - -Note that both /x/ and /i/ can be negative as well as positive. - -[optional_policy] - -May return the result of __overflow_error if the result is too large -to represent in type T. - -The return type of these functions is computed using the __arg_promotion_rules: -the type of the result is `double` if T is an integer type, otherwise the type -of the result is T. - -[h4 Accuracy] - -The accuracy will be the same as -the __tgamma_delta_ratio function. - -[h4 Testing] - -The spot tests for the rising factorials use data generated -by functions.wolfram.com. - -[h4 Implementation] - -Rising and falling factorials are implemented as ratios of gamma functions -using __tgamma_delta_ratio. Optimisations for -small integer arguments are handled internally by that function. - -[endsect] - -[section:sf_falling_factorial Falling Factorial] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` falling_factorial(T x, unsigned i); - - template - ``__sf_result`` falling_factorial(T x, unsigned i, const ``__Policy``&); - - }} // namespaces - -Returns the falling factorial of /x/ and /i/: - -falling_factorial(x, i) = x(x-1)(x-2)(x-3)...(x-i+1) - -Note that this function is only defined for positive /i/, hence the -`unsigned` second argument. Argument /x/ can be either positive or -negative however. - -[optional_policy] - -May return the result of __overflow_error if the result is too large -to represent in type T. - -The return type of these functions is computed using the __arg_promotion_rules: -the type of the result is `double` if T is an integer type, otherwise the type -of the result is T. - -[h4 Accuracy] - -The accuracy will be the same as -the __tgamma_delta_ratio function. - -[h4 Testing] - -The spot tests for the falling factorials use data generated by -functions.wolfram.com. - -[h4 Implementation] - -Rising and falling factorials are implemented as ratios of gamma functions -using __tgamma_delta_ratio. Optimisations for -small integer arguments are handled internally by that function. - -[endsect] - -[section:sf_binomial Binomial Coefficients] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - T binomial_coefficient(unsigned n, unsigned k); - - template - T binomial_coefficient(unsigned n, unsigned k, const ``__Policy``&); - - }} // namespaces - -Returns the binomial coefficient: [sub n]C[sub k]. - -Requires k <= n. - -[optional_policy] - -May return the result of __overflow_error if the result is too large -to represent in type T. - -[important -The functions described above are templates where the template argument T can not be deduced from the -arguments passed to the function. Therefore if you write something like: - - `boost::math::binomial_coefficient(10, 2);` - -You will get a compiler error, ususally indicating that there is no such function to be found. Instead you need to specifiy -the return type explicity and write: - - `boost::math::binomial_coefficient(10, 2);` - -So that the return type is known. Further, the template argument must be a real-valued type such as `float` or `double` -and not an integer type - that would overflow far too easily! -] - -[h4 Accuracy] - -The accuracy will be the same as for the -factorials for small arguments (i.e. no more than one or two epsilon), -and the __beta function for larger arguments. - -[h4 Testing] - -The spot tests for the binomial coefficients use data -generated by functions.wolfram.com. - -[h4 Implementation] - -Binomial coefficients are calculated using table lookup of factorials -where possible using: - -[sub n]C[sub k] = n! / (k!(n-k)!) - -Otherwise it is implemented in terms of the beta function using the relations: - -[sub n]C[sub k] = 1 / (k * __beta(k, n-k+1)) - -and - -[sub n]C[sub k] = 1 / ((n-k) * __beta(k+1, n-k)) - -[endsect] - - -[endsect][/section:factorials Factorials] - -[/ - Copyright 2006, 2010 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/gamma_derivatives.qbk b/boost/libs/math/doc/sf/gamma_derivatives.qbk deleted file mode 100644 index f2323610..00000000 --- a/boost/libs/math/doc/sf/gamma_derivatives.qbk +++ /dev/null @@ -1,54 +0,0 @@ -[section:gamma_derivatives Derivative of the Incomplete Gamma Function] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` gamma_p_derivative(T1 a, T2 x); - - template - ``__sf_result`` gamma_p_derivative(T1 a, T2 x, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -This function find some uses in statistical distributions: it -implements the partial derivative with respect to /x/ of the incomplete -gamma function. - -[equation derivative1] - -[optional_policy] - -Note that the derivative of the function __gamma_q can be obtained by negating -the result of this function. - -The return type of this function is computed using the __arg_promotion_rules -when T1 and T2 are different types, otherwise the return type is simply T1. - -[h4 Accuracy] - -Almost identical to the incomplete gamma function __gamma_p: refer to -the documentation for that function for more information. - -[h4 Implementation] - -This function just expose some of the internals of the incomplete -gamma function __gamma_p: refer to the documentation for that function -for more information. - -[endsect][/section Derivative of the Incomplete Gamma Functions] -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/sf/gamma_ratios.qbk b/boost/libs/math/doc/sf/gamma_ratios.qbk deleted file mode 100644 index c76a3c92..00000000 --- a/boost/libs/math/doc/sf/gamma_ratios.qbk +++ /dev/null @@ -1,98 +0,0 @@ -[section:gamma_ratios Ratios of Gamma Functions] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` tgamma_ratio(T1 a, T2 b); - - template - ``__sf_result`` tgamma_ratio(T1 a, T2 b, const ``__Policy``&); - - template - ``__sf_result`` tgamma_delta_ratio(T1 a, T2 delta); - - template - ``__sf_result`` tgamma_delta_ratio(T1 a, T2 delta, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - - template - ``__sf_result`` tgamma_ratio(T1 a, T2 b); - - template - ``__sf_result`` tgamma_ratio(T1 a, T2 b, const ``__Policy``&); - -Returns the ratio of gamma functions: - -[equation gamma_ratio0] - -[optional_policy] - -Internally this just calls `tgamma_delta_ratio(a, b-a)`. - - template - ``__sf_result`` tgamma_delta_ratio(T1 a, T2 delta); - - template - ``__sf_result`` tgamma_delta_ratio(T1 a, T2 delta, const ``__Policy``&); - -Returns the ratio of gamma functions: - -[equation gamma_ratio1] - -[optional_policy] - -Note that the result is calculated accurately even when /delta/ is -small compared to /a/: indeed even if /a+delta ~ a/. The function is -typically used when /a/ is large and /delta/ is very small. - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types, otherwise the result type is simple T1. - -[graph tgamma_delta_ratio] - -[h4 Accuracy] - -The following table shows the peak errors (in units of epsilon) -found on various platforms with various floating point types. -Unless otherwise specified any floating point type that is narrower -than the one shown will have __zero_error. - -[table_tgamma_delta_ratio] - -[table_tgamma_ratio] - -[h4 Testing] - -Accuracy tests use data generated at very high precision -(with [@http://shoup.net/ntl/doc/RR.txt NTL RR class] -set at 1000-bit precision: about 300 decimal digits) -and a deliberately naive calculation of [Gamma](x)/[Gamma](y). - -[h4 Implementation] - -The implementation of these functions is very similar to that of -__beta, and is based on combining similar power terms -to improve accuracy and avoid spurious overflow/underflow. - -In addition there are optimisations for the situation where /delta/ -is a small integer: in which case this function is basically -the reciprocal of a rising factorial, or where both arguments -are smallish integers: in which case table lookup of factorials -can be used to calculate the ratio. - -[endsect][/section:gamma_ratios Ratios of Gamma Functions] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/sf/hankel.qbk b/boost/libs/math/doc/sf/hankel.qbk deleted file mode 100644 index b487ea67..00000000 --- a/boost/libs/math/doc/sf/hankel.qbk +++ /dev/null @@ -1,136 +0,0 @@ - -[section:hankel Hankel Functions] -[section:cyl_hankel Cyclic Hankel Functions] - -[h4 Synopsis] - - template - std::complex<``__sf_result``> cyl_hankel_1(T1 v, T2 x); - - template - std::complex<``__sf_result``> cyl_hankel_1(T1 v, T2 x, const ``__Policy``&); - - template - std::complex<``__sf_result``> cyl_hankel_2(T1 v, T2 x); - - template - std::complex<``__sf_result``> cyl_hankel_2(T1 v, T2 x, const ``__Policy``&); - - -[h4 Description] - -The functions __cyl_hankel_1 and __cyl_hankel_2 return the result of the -[@http://dlmf.nist.gov/10.2#P3 Hankel functions] of the first and second kind respectively: - -[:['cyl_hankel_1(v, x) = H[sub v][super (1)](x) = J[sub v](x) + i Y[sub v](x)]] - -[:['cyl_hankel_2(v, x) = H[sub v][super (2)](x) = J[sub v](x) - i Y[sub v](x)]] - -where: - -['J[sub v](x)] is the Bessel function of the first kind, and ['Y[sub v](x)] is the Bessel function of the second kind. - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types. The functions are also optimised for the -relatively common case that T1 is an integer. - -[optional_policy] - -Note that while the arguments to these functions are real values, the results are complex. -That means that the functions can only be instantiated on types `float`, `double` and `long double`. -The functions have also been extended to operate over the whole range of ['v] and ['x] -(unlike __cyl_bessel_j and __cyl_neumann). - -[h4 Performance] - -These functions are generally more efficient than two separate calls to the underlying Bessel -functions as internally Bessel J and Y can be computed simultaneously. - -[h4 Testing] - -There are just a few spot tests to exercise all the special case handling - the bulk of the testing is done -on the Bessel functions upon which these are based. - -[h4 Accuracy] - -Refer to __cyl_bessel_j and __cyl_neumann. - -[h4 Implementation] - -For ['x < 0] the following reflection formulae are used: - -[@http://functions.wolfram.com/Bessel-TypeFunctions/BesselJ/16/01/01/ [equation hankel1]] - -[@http://functions.wolfram.com/Bessel-TypeFunctions/BesselY/16/01/01/ [equation hankel2]] - -[@http://functions.wolfram.com/Bessel-TypeFunctions/BesselY/16/01/01/ [equation hankel3]] - -Otherwise the implementation is trivially in terms of the Bessel J and Y functions. - -Note however, that the Hankel functions compute the Bessel J and Y functions simultaneously, -and therefore a single Hankel function call is more efficient than two Bessel function calls. -The one exception is when ['v] is a small positive integer, in which case the usual Bessel function -routines for integer order are used. - -[endsect] - - -[section:sph_hankel Spherical Hankel Functions] - -[h4 Synopsis] - - template - std::complex<``__sf_result``> sph_hankel_1(T1 v, T2 x); - - template - std::complex<``__sf_result``> sph_hankel_1(T1 v, T2 x, const ``__Policy``&); - - template - std::complex<``__sf_result``> sph_hankel_2(T1 v, T2 x); - - template - std::complex<``__sf_result``> sph_hankel_2(T1 v, T2 x, const ``__Policy``&); - - -[h4 Description] - -The functions __sph_hankel_1 and __sph_hankel_2 return the result of the -[@http://dlmf.nist.gov/10.47#P1 spherical Hankel functions] of the first and second kind respectively: - -[equation hankel4] - -[equation hankel5] - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types. The functions are also optimised for the -relatively common case that T1 is an integer. - -[optional_policy] - -Note that while the arguments to these functions are real values, the results are complex. -That means that the functions can only be instantiated on types `float`, `double` and `long double`. -The functions have also been extended to operate over the whole range of ['v] and ['x] -(unlike __cyl_bessel_j and __cyl_neumann). - -[h4 Testing] - -There are just a few spot tests to exercise all the special case handling - the bulk of the testing is done -on the Bessel functions upon which these are based. - -[h4 Accuracy] - -Refer to __cyl_bessel_j and __cyl_neumann. - -[h4 Implementation] - -These functions are trivially implemented in terms of __cyl_hankel_1 and __cyl_hankel_2. - -[endsect] -[endsect] - -[/ - Copyright 2012 John Maddock. - 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). -] diff --git a/boost/libs/math/doc/sf/hermite.qbk b/boost/libs/math/doc/sf/hermite.qbk deleted file mode 100644 index c88aadc3..00000000 --- a/boost/libs/math/doc/sf/hermite.qbk +++ /dev/null @@ -1,107 +0,0 @@ -[section:hermite Hermite Polynomials] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` hermite(unsigned n, T x); - - template - ``__sf_result`` hermite(unsigned n, T x, const ``__Policy``&); - - template - ``__sf_result`` hermite_next(unsigned n, T1 x, T2 Hn, T3 Hnm1); - - }} // namespaces - -[h4 Description] - -The return type of these functions is computed using the __arg_promotion_rules: -note than when there is a single template argument the result is the same type -as that argument or `double` if the template argument is an integer type. - - template - ``__sf_result`` hermite(unsigned n, T x); - - template - ``__sf_result`` hermite(unsigned n, T x, const ``__Policy``&); - -Returns the value of the Hermite Polynomial of order /n/ at point /x/: - -[equation hermite_0] - -[optional_policy] - -The following graph illustrates the behaviour of the first few -Hermite Polynomials: - -[graph hermite] - - template - ``__sf_result`` hermite_next(unsigned n, T1 x, T2 Hn, T3 Hnm1); - -Implements the three term recurrence relation for the Hermite -polynomials, this function can be used to create a sequence of -values evaluated at the same /x/, and for rising /n/. - -[equation hermite_1] - -For example we could produce a vector of the first 10 polynomial -values using: - - double x = 0.5; // Abscissa value - vector v; - v.push_back(hermite(0, x)).push_back(hermite(1, x)); - for(unsigned l = 1; l < 10; ++l) - v.push_back(hermite_next(l, x, v[l], v[l-1])); - -Formally the arguments are: - -[variablelist -[[n][The degree /n/ of the last polynomial calculated.]] -[[x][The abscissa value]] -[[Hn][The value of the polynomial evaluated at degree /n/.]] -[[Hnm1][The value of the polynomial evaluated at degree /n-1/.]] -] - -[h4 Accuracy] - -The following table shows peak errors (in units of epsilon) -for various domains of input arguments. -Note that only results for the widest floating point type on the system are -given as narrower types have __zero_error. - -[table_hermite] - -Note that the worst errors occur when the degree increases, values greater than -~120 are very unlikely to produce sensible results, especially in the associated -polynomial case when the order is also large. Further the relative errors -are likely to grow arbitrarily large when the function is very close to a root. - -[h4 Testing] - -A mixture of spot tests of values calculated using functions.wolfram.com, -and randomly generated test data are -used: the test data was computed using -[@http://shoup.net/ntl/doc/RR.txt NTL::RR] at 1000-bit precision. - -[h4 Implementation] - -These functions are implemented using the stable three term -recurrence relations. These relations guarantee low absolute error -but cannot guarantee low relative error near one of the roots of the -polynomials. - -[endsect][/section:beta_function The Beta Function] -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/sf/ibeta.qbk b/boost/libs/math/doc/sf/ibeta.qbk deleted file mode 100644 index b4a20f92..00000000 --- a/boost/libs/math/doc/sf/ibeta.qbk +++ /dev/null @@ -1,202 +0,0 @@ -[section:ibeta_function Incomplete Beta Functions] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` ibeta(T1 a, T2 b, T3 x); - - template - ``__sf_result`` ibeta(T1 a, T2 b, T3 x, const ``__Policy``&); - - template - ``__sf_result`` ibetac(T1 a, T2 b, T3 x); - - template - ``__sf_result`` ibetac(T1 a, T2 b, T3 x, const ``__Policy``&); - - template - ``__sf_result`` beta(T1 a, T2 b, T3 x); - - template - ``__sf_result`` beta(T1 a, T2 b, T3 x, const ``__Policy``&); - - template - ``__sf_result`` betac(T1 a, T2 b, T3 x); - - template - ``__sf_result`` betac(T1 a, T2 b, T3 x, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -There are four [@http://en.wikipedia.org/wiki/Incomplete_beta_function incomplete beta functions] -: two are normalised versions (also known as ['regularized] beta functions) -that return values in the range [0, 1], and two are non-normalised and -return values in the range [0, __beta(a, b)]. Users interested in statistical -applications should use the normalised (or -[@http://mathworld.wolfram.com/RegularizedBetaFunction.html regularized] -) versions (ibeta and ibetac). - -All of these functions require /0 <= x <= 1/. - -The normalized functions __ibeta and __ibetac require /a,b >= 0/, and in addition that -not both /a/ and /b/ are zero. - -The functions __beta and __betac require /a,b > 0/. - -The return type of these functions is computed using the __arg_promotion_rules -when T1, T2 and T3 are different types. - -[optional_policy] - - template - ``__sf_result`` ibeta(T1 a, T2 b, T3 x); - - template - ``__sf_result`` ibeta(T1 a, T2 b, T3 x, const ``__Policy``&); - -Returns the normalised incomplete beta function of a, b and x: - -[equation ibeta3] - -[graph ibeta] - - template - ``__sf_result`` ibetac(T1 a, T2 b, T3 x); - - template - ``__sf_result`` ibetac(T1 a, T2 b, T3 x, const ``__Policy``&); - -Returns the normalised complement of the incomplete beta function of a, b and x: - -[equation ibeta4] - - template - ``__sf_result`` beta(T1 a, T2 b, T3 x); - - template - ``__sf_result`` beta(T1 a, T2 b, T3 x, const ``__Policy``&); - -Returns the full (non-normalised) incomplete beta function of a, b and x: - -[equation ibeta1] - - template - ``__sf_result`` betac(T1 a, T2 b, T3 x); - - template - ``__sf_result`` betac(T1 a, T2 b, T3 x, const ``__Policy``&); - -Returns the full (non-normalised) complement of the incomplete beta function of a, b and x: - -[equation ibeta2] - -[h4 Accuracy] - -The following tables give peak and mean relative errors in over various domains of -a, b and x, along with comparisons to the __gsl and __cephes libraries. -Note that only results for the widest floating-point type on the system are given as -narrower types have __zero_error. - -Note that the results for 80 and 128-bit long doubles are noticeably higher than -for doubles: this is because the wider exponent range of these types allow -more extreme test cases to be tested. For example expected results that -are zero at double precision, may be finite but exceptionally small with -the wider exponent range of the long double types. - -[table_ibeta] - -[table_ibetac] - -[table_beta_incomplete_] - -[table_betac] - -[h4 Testing] - -There are two sets of tests: spot tests compare values taken from -[@http://functions.wolfram.com/webMathematica/FunctionEvaluation.jsp?name=BetaRegularized Mathworld's online function evaluator] -with this implementation: they provide a basic "sanity check" -for the implementation, with one spot-test in each implementation-domain -(see implementation notes below). - -Accuracy tests use data generated at very high precision -(with [@http://shoup.net/ntl/doc/RR.txt NTL RR class] set at 1000-bit precision), -using the "textbook" continued fraction representation (refer to the first continued -fraction in the implementation discussion below). -Note that this continued fraction is /not/ used in the implementation, -and therefore we have test data that is fully independent of the code. - -[h4 Implementation] - -This implementation is closely based upon -[@http://portal.acm.org/citation.cfm?doid=131766.131776 "Algorithm 708; Significant digit computation of the incomplete beta function ratios", DiDonato and Morris, ACM, 1992.] - -All four of these functions share a common implementation: this is passed both -x and y, and can return either p or q where these are related by: - -[equation ibeta_inv5] - -so at any point we can swap a for b, x for y and p for q if this results in -a more favourable position. Generally such swaps are performed so that we always -compute a value less than 0.9: when required this can then be subtracted from 1 -without undue cancellation error. - -The following continued fraction representation is found in many textbooks -but is not used in this implementation - it's both slower and less accurate than -the alternatives - however it is used to generate test data: - -[equation ibeta5] - -The following continued fraction is due to [@http://portal.acm.org/citation.cfm?doid=131766.131776 Didonato and Morris], -and is used in this implementation when a and b are both greater than 1: - -[equation ibeta6] - -For smallish b and x then a series representation can be used: - -[equation ibeta7] - -When b << a then the transition from 0 to 1 occurs very close to x = 1 -and some care has to be taken over the method of computation, in that case -the following series representation is used: - -[equation ibeta8] -[/[equation ibeta9]] - -Where Q(a,x) is an [@http://functions.wolfram.com/GammaBetaErf/Gamma2/ incomplete gamma function]. -Note that this method relies -on keeping a table of all the p[sub n ] previously computed, which does limit -the precision of the method, depending upon the size of the table used. - -When /a/ and /b/ are both small integers, then we can relate the incomplete -beta to the binomial distribution and use the following finite sum: - -[equation ibeta12] - -Finally we can sidestep difficult areas, or move to an area with a more -efficient means of computation, by using the duplication formulae: - -[equation ibeta10] - -[equation ibeta11] - -The domains of a, b and x for which the various methods are used are identical -to those described in the -[@http://portal.acm.org/citation.cfm?doid=131766.131776 Didonato and Morris TOMS 708 paper]. - -[endsect][/section:ibeta_function The Incomplete Beta Function] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/ibeta_inv.qbk b/boost/libs/math/doc/sf/ibeta_inv.qbk deleted file mode 100644 index 684d3dcb..00000000 --- a/boost/libs/math/doc/sf/ibeta_inv.qbk +++ /dev/null @@ -1,368 +0,0 @@ -[section:ibeta_inv_function The Incomplete Beta Function Inverses] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` ibeta_inv(T1 a, T2 b, T3 p); - - template - ``__sf_result`` ibeta_inv(T1 a, T2 b, T3 p, const ``__Policy``&); - - template - ``__sf_result`` ibeta_inv(T1 a, T2 b, T3 p, T4* py); - - template - ``__sf_result`` ibeta_inv(T1 a, T2 b, T3 p, T4* py, const ``__Policy``&); - - template - ``__sf_result`` ibetac_inv(T1 a, T2 b, T3 q); - - template - ``__sf_result`` ibetac_inv(T1 a, T2 b, T3 q, const ``__Policy``&); - - template - ``__sf_result`` ibetac_inv(T1 a, T2 b, T3 q, T4* py); - - template - ``__sf_result`` ibetac_inv(T1 a, T2 b, T3 q, T4* py, const ``__Policy``&); - - template - ``__sf_result`` ibeta_inva(T1 b, T2 x, T3 p); - - template - ``__sf_result`` ibeta_inva(T1 b, T2 x, T3 p, const ``__Policy``&); - - template - ``__sf_result`` ibetac_inva(T1 b, T2 x, T3 q); - - template - ``__sf_result`` ibetac_inva(T1 b, T2 x, T3 q, const ``__Policy``&); - - template - ``__sf_result`` ibeta_invb(T1 a, T2 x, T3 p); - - template - ``__sf_result`` ibeta_invb(T1 a, T2 x, T3 p, const ``__Policy``&); - - template - ``__sf_result`` ibetac_invb(T1 a, T2 x, T3 q); - - template - ``__sf_result`` ibetac_invb(T1 a, T2 x, T3 q, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - - -There are six [@http://functions.wolfram.com/GammaBetaErf/ incomplete beta function inverses] -which allow you solve for -any of the three parameters to the incomplete beta, starting from either -the result of the incomplete beta (p) or its complement (q). - -[optional_policy] - -[tip When people normally talk about the inverse of the incomplete -beta function, they are talking about inverting on parameter /x/. -These are implemented here as ibeta_inv and ibetac_inv, and are by -far the most efficient of the inverses presented here. - -The inverses on the /a/ and /b/ parameters find use in some statistical -applications, but have to be computed by rather brute force numerical -techniques and are consequently several times slower. -These are implemented here as ibeta_inva and ibeta_invb, -and complement versions ibetac_inva and ibetac_invb.] - -The return type of these functions is computed using the __arg_promotion_rules -when called with arguments T1...TN of different types. - - template - ``__sf_result`` ibeta_inv(T1 a, T2 b, T3 p); - - template - ``__sf_result`` ibeta_inv(T1 a, T2 b, T3 p, const ``__Policy``&); - - template - ``__sf_result`` ibeta_inv(T1 a, T2 b, T3 p, T4* py); - - template - ``__sf_result`` ibeta_inv(T1 a, T2 b, T3 p, T4* py, const ``__Policy``&); - -Returns a value /x/ such that: `p = ibeta(a, b, x);` -and sets `*py = 1 - x` when the `py` parameter is provided and is non-null. -Note that internally this function computes whichever is the smaller of -`x` and `1-x`, and therefore the value assigned to `*py` is free from -cancellation errors. That means that even if the function returns `1`, the -value stored in `*py` may be non-zero, albeit very small. - -Requires: /a,b > 0/ and /0 <= p <= 1/. - -[optional_policy] - - template - ``__sf_result`` ibetac_inv(T1 a, T2 b, T3 q); - - template - ``__sf_result`` ibetac_inv(T1 a, T2 b, T3 q, const ``__Policy``&); - - template - ``__sf_result`` ibetac_inv(T1 a, T2 b, T3 q, T4* py); - - template - ``__sf_result`` ibetac_inv(T1 a, T2 b, T3 q, T4* py, const ``__Policy``&); - -Returns a value /x/ such that: `q = ibetac(a, b, x);` -and sets `*py = 1 - x` when the `py` parameter is provided and is non-null. -Note that internally this function computes whichever is the smaller of -`x` and `1-x`, and therefore the value assigned to `*py` is free from -cancellation errors. That means that even if the function returns `1`, the -value stored in `*py` may be non-zero, albeit very small. - -Requires: /a,b > 0/ and /0 <= q <= 1/. - -[optional_policy] - - template - ``__sf_result`` ibeta_inva(T1 b, T2 x, T3 p); - - template - ``__sf_result`` ibeta_inva(T1 b, T2 x, T3 p, const ``__Policy``&); - -Returns a value /a/ such that: `p = ibeta(a, b, x);` - -Requires: /b > 0/, /0 < x < 1/ and /0 <= p <= 1/. - -[optional_policy] - - template - ``__sf_result`` ibetac_inva(T1 b, T2 x, T3 p); - - template - ``__sf_result`` ibetac_inva(T1 b, T2 x, T3 p, const ``__Policy``&); - -Returns a value /a/ such that: `q = ibetac(a, b, x);` - -Requires: /b > 0/, /0 < x < 1/ and /0 <= q <= 1/. - -[optional_policy] - - template - ``__sf_result`` ibeta_invb(T1 b, T2 x, T3 p); - - template - ``__sf_result`` ibeta_invb(T1 b, T2 x, T3 p, const ``__Policy``&); - -Returns a value /b/ such that: `p = ibeta(a, b, x);` - -Requires: /a > 0/, /0 < x < 1/ and /0 <= p <= 1/. - -[optional_policy] - - template - ``__sf_result`` ibetac_invb(T1 b, T2 x, T3 p); - - template - ``__sf_result`` ibetac_invb(T1 b, T2 x, T3 p, const ``__Policy``&); - -Returns a value /b/ such that: `q = ibetac(a, b, x);` - -Requires: /a > 0/, /0 < x < 1/ and /0 <= q <= 1/. - -[optional_policy] - -[h4 Accuracy] - -The accuracy of these functions should closely follow that -of the regular forward incomplete beta functions. However, -note that in some parts of their domain, these functions can -be extremely sensitive to changes in input, particularly when -the argument /p/ (or it's complement /q/) is very close to `0` or `1`. - -Comparisons to other libraries are shown below, note that our test data -exercises some rather extreme cases in the incomplete beta function -which many other libraries fail to handle: - -[table_ibeta_inv] - -[table_ibetac_inv] - -[table_ibeta_inva] - -[table_ibetac_inva] - -[table_ibeta_invb] - -[table_ibetac_invb] - -[h4 Testing] - -There are two sets of tests: - -* Basic sanity checks attempt to "round-trip" from -/a, b/ and /x/ to /p/ or /q/ and back again. These tests have quite -generous tolerances: in general both the incomplete beta and its -inverses change so rapidly, that round tripping to more than a couple -of significant digits isn't possible. This is especially true when -/p/ or /q/ is very near one: in this case there isn't enough -"information content" in the input to the inverse function to get -back where you started. -* Accuracy checks using high precision test values. These measure -the accuracy of the result, given exact input values. - -[h4 Implementation of ibeta_inv and ibetac_inv] - -These two functions share a common implementation. - -First an initial approximation to x is computed then the -last few bits are cleaned up using -[@http://en.wikipedia.org/wiki/Simple_rational_approximation Halley iteration]. -The iteration limit is set to 1/2 of the number of bits in T, which by experiment is -sufficient to ensure that the inverses are at least as accurate as the normal -incomplete beta functions. Up to 5 iterations may be -required in extreme cases, although normally only one or two are required. -Further, the number of iterations required decreases with increasing /a/ and -/b/ (which generally form the more important use cases). - -The initial guesses used for iteration are obtained as follows: - -Firstly recall that: - -[equation ibeta_inv5] - -We may wish to start from either p or q, and to calculate either x or y. -In addition at -any stage we can exchange a for b, p for q, and x for y if it results in a -more manageable problem. - -For `a+b >= 5` the initial guess is computed using the methods described in: - -Asymptotic Inversion of the Incomplete Beta Function, -by N. M. [@http://homepages.cwi.nl/~nicot/ Temme]. -Journal of Computational and Applied Mathematics 41 (1992) 145-157. - -The nearly symmetrical case (section 2 of the paper) is used for - -[equation ibeta_inv2] - -and involves solving the inverse error function first. The method is accurate -to at least 2 decimal digits when [^a = 5] rising to at least 8 digits when -[^a = 10[super 5]]. - -The general error function case (section 3 of the paper) is used for - -[equation ibeta_inv3] - -and again expresses the inverse incomplete beta in terms of the -inverse of the error function. The method is accurate to at least -2 decimal digits when [^a+b = 5] rising to 11 digits when [^a+b = 10[super 5]]. -However, when the result is expected to be very small, and when a+b is -also small, then its accuracy tails off, in this case when p[super 1/a] < 0.0025 -then it is better to use the following as an initial estimate: - -[equation ibeta_inv4] - -Finally the for all other cases where `a+b > 5` the method of section -4 of the paper is used. This expresses the inverse incomplete beta in terms -of the inverse of the incomplete gamma function, and is therefore significantly -more expensive to compute than the other cases. However the method is accurate -to at least 3 decimal digits when [^a = 5] rising to at least 10 digits when -[^a = 10[super 5]]. This method is limited to a > b, and therefore we need to perform -an exchange a for b, p for q and x for y when this is not the case. In addition -when p is close to 1 the method is inaccurate should we actually want y rather -than x as output. Therefore when q is small ([^q[super 1/p] < 10[super -3]]) we use: - -[equation ibeta_inv6] - -which is both cheaper to compute than the full method, and a more accurate -estimate on q. - -When a and b are both small there is a distinct lack of information in the -literature on how to proceed. I am extremely grateful to Prof Nico Temme -who provided the following information with a great deal of patience and -explanation on his part. Any errors that follow are entirely my own, and not -Prof Temme's. - -When a and b are both less than 1, then there is a point of inflection in -the incomplete beta at point `xs = (1 - a) / (2 - a - b)`. Therefore if -[^p > I[sub x](a,b)] we swap a for b, p for q and x for y, so that now we always -look for a point x below the point of inflection `xs`, and on a convex curve. -An initial estimate for x is made with: - -[equation ibeta_inv7] - -which is provably below the true value for x: -[@http://en.wikipedia.org/wiki/Newton%27s_method Newton iteration] will -therefore smoothly converge on x without problems caused by overshooting etc. - -When a and b are both greater than 1, but a+b is too small to use the other -methods mentioned above, we proceed as follows. Observe that there is a point -of inflection in the incomplete beta at `xs = (1 - a) / (2 - a - b)`. Therefore -if [^p > I[sub x](a,b)] we swap a for b, p for q and x for y, so that now we always -look for a point x below the point of inflection `xs`, and on a concave curve. -An initial estimate for x is made with: - -[equation ibeta_inv4] - -which can be improved somewhat to: - -[equation ibeta_inv1] - -when b and x are both small (I've used b < a and x < 0.2). This -actually under-estimates x, which drops us on the wrong side of x for Newton -iteration to converge monotonically. However, use of higher derivatives -and Halley iteration keeps everything under control. - -The final case to be considered if when one of a and b is less than or equal -to 1, and the other greater that 1. Here, if b < a we swap a for b, p for q -and x for y. Now the curve of the incomplete beta is convex with no points -of inflection in [0,1]. For small p, x can be estimated using - -[equation ibeta_inv4] - -which under-estimates x, and drops us on the right side of the true value -for Newton iteration to converge monotonically. However, when p is large -this can quite badly underestimate x. This is especially an issue when we -really want to find y, in which case this method can be an arbitrary number -of order of magnitudes out, leading to very poor convergence during iteration. - -Things can be improved by considering the incomplete beta as a distorted -quarter circle, and estimating y from: - -[equation ibeta_inv8] - -This doesn't guarantee that we will drop in on the right side of x for -monotonic convergence, but it does get us close enough that Halley iteration -rapidly converges on the true value. - -[h4 Implementation of inverses on the a and b parameters] - -These four functions share a common implementation. - -First an initial approximation is computed for /a/ or /b/: -where possible this uses a Cornish-Fisher expansion for the -negative binomial distribution to get within around 1 of the -result. However, when /a/ or /b/ are very small the Cornish Fisher -expansion is not usable, in this case the initial approximation -is chosen so that -I[sub x](a, b) is near the middle of the range [0,1]. - -This initial guess is then -used as a starting value for a generic root finding algorithm. The -algorithm converges rapidly on the root once it has been -bracketed, but bracketing the root may take several iterations. -A better initial approximation for /a/ or /b/ would improve these -functions quite substantially: currently 10-20 incomplete beta -function invocations are required to find the root. - -[endsect][/section:ibeta_inv_function The Incomplete Beta Function Inverses] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/igamma.qbk b/boost/libs/math/doc/sf/igamma.qbk deleted file mode 100644 index a9206aa7..00000000 --- a/boost/libs/math/doc/sf/igamma.qbk +++ /dev/null @@ -1,290 +0,0 @@ -[section:igamma Incomplete Gamma Functions] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` gamma_p(T1 a, T2 z); - - template - ``__sf_result`` gamma_p(T1 a, T2 z, const ``__Policy``&); - - template - ``__sf_result`` gamma_q(T1 a, T2 z); - - template - ``__sf_result`` gamma_q(T1 a, T2 z, const ``__Policy``&); - - template - ``__sf_result`` tgamma_lower(T1 a, T2 z); - - template - ``__sf_result`` tgamma_lower(T1 a, T2 z, const ``__Policy``&); - - template - ``__sf_result`` tgamma(T1 a, T2 z); - - template - ``__sf_result`` tgamma(T1 a, T2 z, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -There are four [@http://mathworld.wolfram.com/IncompleteGammaFunction.html -incomplete gamma functions]: -two are normalised versions (also known as /regularized/ incomplete gamma functions) -that return values in the range [0, 1], and two are non-normalised and -return values in the range [0, [Gamma](a)]. Users interested in statistical -applications should use the -[@http://mathworld.wolfram.com/RegularizedGammaFunction.html normalised versions (gamma_p and gamma_q)]. - -All of these functions require /a > 0/ and /z >= 0/, otherwise they return -the result of __domain_error. - -[optional_policy] - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types, otherwise the return type is simply T1. - - template - ``__sf_result`` gamma_p(T1 a, T2 z); - - template - ``__sf_result`` gamma_p(T1 a, T2 z, const ``__Policy``&); - -Returns the normalised lower incomplete gamma function of a and z: - -[equation igamma4] - -This function changes rapidly from 0 to 1 around the point z == a: - -[graph gamma_p] - - template - ``__sf_result`` gamma_q(T1 a, T2 z); - - template - ``__sf_result`` gamma_q(T1 a, T2 z, const ``__Policy``&); - -Returns the normalised upper incomplete gamma function of a and z: - -[equation igamma3] - -This function changes rapidly from 1 to 0 around the point z == a: - -[graph gamma_q] - - template - ``__sf_result`` tgamma_lower(T1 a, T2 z); - - template - ``__sf_result`` tgamma_lower(T1 a, T2 z, const ``__Policy``&); - -Returns the full (non-normalised) lower incomplete gamma function of a and z: - -[equation igamma2] - - template - ``__sf_result`` tgamma(T1 a, T2 z); - - template - ``__sf_result`` tgamma(T1 a, T2 z, const ``__Policy``&); - -Returns the full (non-normalised) upper incomplete gamma function of a and z: - -[equation igamma1] - -[h4 Accuracy] - -The following tables give peak and mean relative errors in over various domains of -a and z, along with comparisons to the __gsl and __cephes libraries. -Note that only results for the widest floating point type on the system are given as -narrower types have __zero_error. - -Note that errors grow as /a/ grows larger. - -Note also that the higher error rates for the 80 and 128 bit -long double results are somewhat misleading: expected results that are -zero at 64-bit double precision may be non-zero - but exceptionally small - -with the larger exponent range of a long double. These results therefore -reflect the more extreme nature of the tests conducted for these types. - -All values are in units of epsilon. - -[table_gamma_p] - -[table_gamma_q] - -[table_tgamma_lower] - -[table_tgamma_incomplete_] - -[h4 Testing] - -There are two sets of tests: spot tests compare values taken from -[@http://functions.wolfram.com/GammaBetaErf/ Mathworld's online evaluator] -with this implementation to perform a basic "sanity check". -Accuracy tests use data generated at very high precision -(using NTL's RR class set at 1000-bit precision) using this implementation -with a very high precision 60-term __lanczos, and some but not all of the special -case handling disabled. -This is less than satisfactory: an independent method should really be used, -but apparently a complete lack of such methods are available. We can't even use a deliberately -naive implementation without special case handling since Legendre's continued fraction -(see below) is unstable for small a and z. - -[h4 Implementation] - -These four functions share a common implementation since -they are all related via: - -1) [equation igamma5] - -2) [equation igamma6] - -3) [equation igamma7] - -The lower incomplete gamma is computed from its series representation: - -4) [equation igamma8] - -Or by subtraction of the upper integral from either [Gamma](a) or 1 -when /x - (1/(3x)) > a and x > 1.1/. - -The upper integral is computed from Legendre's continued fraction representation: - -5) [equation igamma9] - -When /(x > 1.1)/ or by subtraction of the lower integral from either [Gamma](a) or 1 -when /x - (1/(3x)) < a/. - -For /x < 1.1/ computation of the upper integral is more complex as the continued -fraction representation is unstable in this area. However there is another -series representation for the lower integral: - -6) [equation igamma10] - -That lends itself to calculation of the upper integral via rearrangement -to: - -7) [equation igamma11] - -Refer to the documentation for __powm1 and __tgamma1pm1 for details -of their implementation. Note however that the precision of __tgamma1pm1 -is capped to either around 35 digits, or to that of the __lanczos associated with -type T - if there is one - whichever of the two is the greater. -That therefore imposes a similar limit on the precision of this -function in this region. - -For /x < 1.1/ the crossover point where the result is ~0.5 no longer -occurs for /x ~ y/. Using /x * 0.75 < a/ as the crossover criterion -for /0.5 < x <= 1.1/ keeps the maximum value computed (whether -it's the upper or lower interval) to around 0.75. Likewise for -/x <= 0.5/ then using /-0.4 / log(x) < a/ as the crossover criterion -keeps the maximum value computed to around 0.7 -(whether it's the upper or lower interval). - -There are two special cases used when a is an integer or half integer, -and the crossover conditions listed above indicate that we should compute -the upper integral Q. -If a is an integer in the range /1 <= a < 30/ then the following -finite sum is used: - -9) [equation igamma1f] - -While for half integers in the range /0.5 <= a < 30/ then the -following finite sum is used: - -10) [equation igamma2f] - -These are both more stable and more efficient than the continued fraction -alternative. - -When the argument /a/ is large, and /x ~ a/ then the series (4) and continued -fraction (5) above are very slow to converge. In this area an expansion due to -Temme is used: - -11) [equation igamma16] - -12) [equation igamma17] - -13) [equation igamma18] - -14) [equation igamma19] - -The double sum is truncated to a fixed number of terms - to give a specific -target precision - and evaluated as a polynomial-of-polynomials. There are -versions for up to 128-bit long double precision: types requiring -greater precision than that do not use these expansions. The -coefficients C[sub k][super n] are computed in advance using the recurrence -relations given by Temme. The zone where these expansions are used is - - (a > 20) && (a < 200) && fabs(x-a)/a < 0.4 - -And: - - (a > 200) && (fabs(x-a)/a < 4.5/sqrt(a)) - -The latter range is valid for all types up to 128-bit long doubles, and -is designed to ensure that the result is larger than 10[super -6], the -first range is used only for types up to 80-bit long doubles. These -domains are narrower than the ones recommended by either Temme or Didonato -and Morris. However, using a wider range results in large and inexact -(i.e. computed) values being passed to the `exp` and `erfc` functions -resulting in significantly larger error rates. In other words there is a -fine trade off here between efficiency and error. The current limits should -keep the number of terms required by (4) and (5) to no more than ~20 -at double precision. - -For the normalised incomplete gamma functions, calculation of the -leading power terms is central to the accuracy of the function. -For smallish a and x combining -the power terms with the __lanczos gives the greatest accuracy: - -15) [equation igamma12] - -In the event that this causes underflow/overflow then the exponent can -be reduced by a factor of /a/ and brought inside the power term. - -When a and x are large, we end up with a very large exponent with a base -near one: this will not be computed accurately via the pow function, -and taking logs simply leads to cancellation errors. The worst of the -errors can be avoided by using: - -16) [equation igamma13] - -when /a-x/ is small and a and x are large. There is still a subtraction -and therefore some cancellation errors - but the terms are small so the absolute -error will be small - and it is absolute rather than relative error that -counts in the argument to the /exp/ function. Note that for sufficiently -large a and x the errors will still get you eventually, although this does -delay the inevitable much longer than other methods. Use of /log(1+x)-x/ here -is inspired by Temme (see references below). - -[h4 References] - -* N. M. Temme, A Set of Algorithms for the Incomplete Gamma Functions, -Probability in the Engineering and Informational Sciences, 8, 1994. -* N. M. Temme, The Asymptotic Expansion of the Incomplete Gamma Functions, -Siam J. Math Anal. Vol 10 No 4, July 1979, p757. -* A. R. Didonato and A. H. Morris, Computation of the Incomplete Gamma -Function Ratios and their Inverse. ACM TOMS, Vol 12, No 4, Dec 1986, p377. -* W. Gautschi, The Incomplete Gamma Functions Since Tricomi, In Tricomi's Ideas -and Contemporary Applied Mathematics, Atti dei Convegni Lincei, n. 147, -Accademia Nazionale dei Lincei, Roma, 1998, pp. 203--237. -[@http://citeseer.ist.psu.edu/gautschi98incomplete.html http://citeseer.ist.psu.edu/gautschi98incomplete.html] - -[endsect][/section:igamma The Incomplete Gamma Function] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/igamma_inv.qbk b/boost/libs/math/doc/sf/igamma_inv.qbk deleted file mode 100644 index 7393d9af..00000000 --- a/boost/libs/math/doc/sf/igamma_inv.qbk +++ /dev/null @@ -1,169 +0,0 @@ -[section:igamma_inv Incomplete Gamma Function Inverses] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` gamma_q_inv(T1 a, T2 q); - - template - ``__sf_result`` gamma_q_inv(T1 a, T2 q, const ``__Policy``&); - - template - ``__sf_result`` gamma_p_inv(T1 a, T2 p); - - template - ``__sf_result`` gamma_p_inv(T1 a, T2 p, const ``__Policy``&); - - template - ``__sf_result`` gamma_q_inva(T1 x, T2 q); - - template - ``__sf_result`` gamma_q_inva(T1 x, T2 q, const ``__Policy``&); - - template - ``__sf_result`` gamma_p_inva(T1 x, T2 p); - - template - ``__sf_result`` gamma_p_inva(T1 x, T2 p, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -There are four [@http://mathworld.wolfram.com/IncompleteGammaFunction.html incomplete gamma function] -inverses which either compute -/x/ given /a/ and /p/ or /q/, -or else compute /a/ given /x/ and either /p/ or /q/. - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types, otherwise the return type is simply T1. - -[optional_policy] - -[tip When people normally talk about the inverse of the incomplete -gamma function, they are talking about inverting on parameter /x/. -These are implemented here as gamma_p_inv and gamma_q_inv, and are by -far the most efficient of the inverses presented here. - -The inverse on the /a/ parameter finds use in some statistical -applications but has to be computed by rather brute force numerical -techniques and is consequently several times slower. -These are implemented here as gamma_p_inva and gamma_q_inva.] - - - template - ``__sf_result`` gamma_q_inv(T1 a, T2 q); - - template - ``__sf_result`` gamma_q_inv(T1 a, T2 q, const ``__Policy``&); - -Returns a value x such that: `q = gamma_q(a, x);` - -Requires: /a > 0/ and /1 >= p,q >= 0/. - - template - ``__sf_result`` gamma_p_inv(T1 a, T2 p); - - template - ``__sf_result`` gamma_p_inv(T1 a, T2 p, const ``__Policy``&); - -Returns a value x such that: `p = gamma_p(a, x);` - -Requires: /a > 0/ and /1 >= p,q >= 0/. - - template - ``__sf_result`` gamma_q_inva(T1 x, T2 q); - - template - ``__sf_result`` gamma_q_inva(T1 x, T2 q, const ``__Policy``&); - -Returns a value a such that: `q = gamma_q(a, x);` - -Requires: /x > 0/ and /1 >= p,q >= 0/. - - template - ``__sf_result`` gamma_p_inva(T1 x, T2 p); - - template - ``__sf_result`` gamma_p_inva(T1 x, T2 p, const ``__Policy``&); - -Returns a value a such that: `p = gamma_p(a, x);` - -Requires: /x > 0/ and /1 >= p,q >= 0/. - -[h4 Accuracy] - -The accuracy of these functions doesn't vary much by platform or by -the type T. Given that these functions are computed by iterative methods, -they are deliberately "detuned" so as not to be too accurate: it is in -any case impossible for these function to be more accurate than the -regular forward incomplete gamma functions. In practice, the accuracy -of these functions is very similar to that of __gamma_p and __gamma_q -functions: - -[table_gamma_p_inv] - -[table_gamma_q_inv] - -[table_gamma_p_inva] - -[table_gamma_q_inva] - -[h4 Testing] - -There are two sets of tests: - -* Basic sanity checks attempt to "round-trip" from -/a/ and /x/ to /p/ or /q/ and back again. These tests have quite -generous tolerances: in general both the incomplete gamma, and its -inverses, change so rapidly that round tripping to more than a couple -of significant digits isn't possible. This is especially true when -/p/ or /q/ is very near one: in this case there isn't enough -"information content" in the input to the inverse function to get -back where you started. -* Accuracy checks using high precision test values. These measure -the accuracy of the result, given exact input values. - -[h4 Implementation] - -The functions gamma_p_inv and [@http://functions.wolfram.com/GammaBetaErf/InverseGammaRegularized/ gamma_q_inv] -share a common implementation. - -First an initial approximation is computed using the methodology described -in: - -[@http://portal.acm.org/citation.cfm?id=23109&coll=portal&dl=ACM -A. R. Didonato and A. H. Morris, Computation of the Incomplete Gamma -Function Ratios and their Inverse, ACM Trans. Math. Software 12 (1986), 377-393.] - -Finally, the last few bits are cleaned up using Halley iteration, the iteration -limit is set to 2/3 of the number of bits in T, which by experiment is -sufficient to ensure that the inverses are at least as accurate as the normal -incomplete gamma functions. In testing, no more than 3 iterations are required -to produce a result as accurate as the forward incomplete gamma function, and -in many cases only one iteration is required. - -The functions gamma_p_inva and gamma_q_inva also share a common implementation -but are handled separately from gamma_p_inv and gamma_q_inv. - -An initial approximation for /a/ is computed very crudely so that -/gamma_p(a, x) ~ 0.5/, this value is then used as a starting point -for a generic derivative-free root finding algorithm. As a consequence, -these two functions are rather more expensive to compute than the -gamma_p_inv or gamma_q_inv functions. Even so, the root is usually found -in fewer than 10 iterations. - -[endsect][/section The Incomplete Gamma Function Inverses] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/inv_hyper.qbk b/boost/libs/math/doc/sf/inv_hyper.qbk deleted file mode 100644 index 10e20a19..00000000 --- a/boost/libs/math/doc/sf/inv_hyper.qbk +++ /dev/null @@ -1,279 +0,0 @@ -[/ math.qbk - Copyright 2006 Hubert Holin and John Maddock. - 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). -] - -[def __form1 [^\[0;+'''∞'''\[]] -[def __form2 [^\]-'''∞''';+1\[]] -[def __form3 [^\]-'''∞''';-1\[]] -[def __form4 [^\]+1;+'''∞'''\[]] -[def __form5 [^\[-1;-1+'''ε'''\[]] -[def __form6 '''ε'''] -[def __form7 [^\]+1-'''ε''';+1\]]] - -[def __effects [*Effects: ]] -[def __formula [*Formula: ]] -[def __exm1 '''ex - 1'''[space]] -[def __ex '''ex'''] -[def __te '''2ε'''] - -[section:inv_hyper Inverse Hyperbolic Functions] - -[section:inv_hyper_over Inverse Hyperbolic Functions Overview] - -The exponential funtion is defined, for all objects for which this makes sense, -as the power series -[equation special_functions_blurb1], -with ['[^n! = 1x2x3x4x5...xn]] (and ['[^0! = 1]] by definition) being the factorial of ['[^n]]. -In particular, the exponential function is well defined for real numbers, -complex number, quaternions, octonions, and matrices of complex numbers, -among others. - -[: ['[*Graph of exp on R]] ] - -[: [$../graphs/exp_on_r.png] ] - -[: ['[*Real and Imaginary parts of exp on C]]] -[: [$../graphs/im_exp_on_c.png]] - -The hyperbolic functions are defined as power series which -can be computed (for reals, complex, quaternions and octonions) as: - -Hyperbolic cosine: [equation special_functions_blurb5] - -Hyperbolic sine: [equation special_functions_blurb6] - -Hyperbolic tangent: [equation special_functions_blurb7] - -[: ['[*Trigonometric functions on R (cos: purple; sin: red; tan: blue)]]] -[: [$../graphs/trigonometric.png]] - -[: ['[*Hyperbolic functions on r (cosh: purple; sinh: red; tanh: blue)]]] -[: [$../graphs/hyperbolic.png]] - -The hyperbolic sine is one to one on the set of real numbers, -with range the full set of reals, while the hyperbolic tangent is -also one to one on the set of real numbers but with range __form1, and -therefore both have inverses. The hyperbolic cosine is one to one from __form2 -onto __form3 (and from __form4 onto __form3); the inverse function we use -here is defined on __form3 with range __form2. - -The inverse of the hyperbolic tangent is called the Argument hyperbolic tangent, -and can be computed as [equation special_functions_blurb15]. - -The inverse of the hyperbolic sine is called the Argument hyperbolic sine, -and can be computed (for __form5) as [equation special_functions_blurb17]. - -The inverse of the hyperbolic cosine is called the Argument hyperbolic cosine, -and can be computed as [equation special_functions_blurb18]. - -[endsect] - -[section:acosh acosh] - -`` -#include -`` - - template - ``__sf_result`` acosh(const T x); - - template - ``__sf_result`` acosh(const T x, const ``__Policy``&); - -Computes the reciprocal of (the restriction to the range of __form1) -[link math_toolkit.inv_hyper.inv_hyper_over -the hyperbolic cosine function], at x. Values returned are positive. - -If x is in the range __form2 then returns the result of __domain_error. - -The return type of this function is computed using the __arg_promotion_rules: -the return type is `double` when T is an integer type, and T otherwise. - -[optional_policy] - -[graph acosh] - -[h4 Accuracy] - -Generally accuracy is to within 1 or 2 epsilon across all supported platforms. - -[h4 Testing] - -This function is tested using a combination of random test values designed to give -full function coverage computed at high precision using the "naive" formula: - -[equation acosh1] - -along with a selection of sanity check values -computed using functions.wolfram.com to at least 50 decimal digits. - -[h4 Implementation] - -For sufficiently large x, we can use the -[@http://functions.wolfram.com/ElementaryFunctions/ArcCosh/06/01/06/01/0001/ -approximation]: - -[equation acosh2] - -For x sufficiently close to 1 we can use the -[@http://functions.wolfram.com/ElementaryFunctions/ArcCosh/06/01/04/01/0001/ -approximation]: - -[equation acosh4] - -Otherwise for x close to 1 we can use the following rearrangement of the -primary definition to preserve accuracy: - -[equation acosh3] - -Otherwise the -[@http://functions.wolfram.com/ElementaryFunctions/ArcCosh/02/ -primary definition] is used: - -[equation acosh1] - -[endsect] - -[section:asinh asinh] - -`` -#include -`` - - template - ``__sf_result`` asinh(const T x); - - template - ``__sf_result`` asinh(const T x, const ``__Policy``&); - -Computes the reciprocal of -[link math_toolkit.inv_hyper.inv_hyper_over -the hyperbolic sine function]. - -The return type of this function is computed using the __arg_promotion_rules: -the return type is `double` when T is an integer type, and T otherwise. - -[graph asinh] - -[optional_policy] - -[h4 Accuracy] - -Generally accuracy is to within 1 or 2 epsilon across all supported platforms. - -[h4 Testing] - -This function is tested using a combination of random test values designed to give -full function coverage computed at high precision using the "naive" formula: - -[equation asinh1] - -along with a selection of sanity check values -computed using functions.wolfram.com to at least 50 decimal digits. - -[h4 Implementation] - -For sufficiently large x we can use the -[@http://functions.wolfram.com/ElementaryFunctions/ArcSinh/06/01/06/01/0001/ -approximation]: - -[equation asinh2] - -While for very small x we can use the -[@http://functions.wolfram.com/ElementaryFunctions/ArcSinh/06/01/03/01/0001/ -approximation]: - -[equation asinh3] - -For 0.5 > x > [epsilon] the following rearrangement of the primary definition is used: - -[equation asinh4] - -Otherwise evalution is via the -[@http://functions.wolfram.com/ElementaryFunctions/ArcSinh/02/ -primary definition]: - -[equation asinh4] - -[endsect] - -[section:atanh atanh] - -`` -#include -`` - - template - ``__sf_result`` atanh(const T x); - - template - ``__sf_result`` atanh(const T x, const ``__Policy``&); - -Computes the reciprocal of -[link math_toolkit.inv_hyper.inv_hyper_over -the hyperbolic tangent function], at x. - -[optional_policy] - -If x is in the range -__form3 -or in the range -__form4 -then returns the result of __domain_error. - -If x is in the range -__form5, -then the result of -__overflow_error is returned, with -__form6[space] -denoting numeric_limits::epsilon(). - -If x is in the range -__form7, -then the result of __overflow_error is returned, with -__form6[space] -denoting -numeric_limits::epsilon(). - -The return type of this function is computed using the __arg_promotion_rules: -the return type is `double` when T is an integer type, and T otherwise. - -[graph atanh] - -[h4 Accuracy] - -Generally accuracy is to within 1 or 2 epsilon across all supported platforms. - -[h4 Testing] - -This function is tested using a combination of random test values designed to give -full function coverage computed at high precision using the "naive" formula: - -[equation atanh1] - -along with a selection of sanity check values -computed using functions.wolfram.com to at least 50 decimal digits. - -[h4 Implementation] - -For sufficiently small x we can use the -[@http://functions.wolfram.com/ElementaryFunctions/ArcTanh/06/01/03/01/ approximation]: - -[equation atanh2] - -Otherwise the -[@http://functions.wolfram.com/ElementaryFunctions/ArcTanh/02/ primary definition]: - -[equation atanh1] - -or its equivalent form: - -[equation atanh3] - -is used. - -[endsect] - -[endsect] diff --git a/boost/libs/math/doc/sf/jacobi_elliptic.qbk b/boost/libs/math/doc/sf/jacobi_elliptic.qbk deleted file mode 100644 index 7290c0f3..00000000 --- a/boost/libs/math/doc/sf/jacobi_elliptic.qbk +++ /dev/null @@ -1,550 +0,0 @@ -[/ -Copyright (c) 2012 John Maddock -Use, modification and distribution are subject to 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) -] - -[section:jacobi Jacobi Elliptic Functions] - -[section:jac_over Overvew of the Jacobi Elliptic Functions] - -There are twelve Jacobi Elliptic functions, of which the three copolar functions ['sn], ['cn] and ['dn] are the most important -as the other nine can be computed from these three -[footnote [@http://en.wikipedia.org/wiki/Jacobi_elliptic_functions Wikipedia: Jacobi elliptic functions]] -[footnote [@http://mathworld.wolfram.com/JacobiEllipticFunctions.html Weisstein, Eric W. "Jacobi Elliptic Functions." From MathWorld - A Wolfram Web Resource.]] -[footnote [@http://dlmf.nist.gov/22 Digital Library of Mathematical Functions: Jacobian Elliptic Functions]]. - -These functions each take two arguments: a parameter, and a variable as described below. - -Like all elliptic functions these can be parameterised in a number of ways: - -* In terms of a parameter ['m]. -* In terms of the elliptic modulus ['k] where ['m = k[super 2]]. -* In terms of the modular angle [alpha], where ['m = sin[super 2][alpha]]. - -In our implementation, these functions all take the elliptic modulus /k/ as the parameter. - -In addition the variable /u/ is sometimes expressed as an amplitude [phi], in our implementation we always use /u/. - -Finally note that our functions all take the elliptic modulus as the first argument - this is for alignment with -the Elliptic Integrals. - -There are twenve functions for computing the twelve individual Jacobi elliptic functions: __jacobi_cd, __jacobi_cn, __jacobi_cs, -__jacobi_dc, __jacobi_dn, __jacobi_ds, __jacobi_nc, __jacobi_nd, __jacobi_ns, __jacobi_sc, __jacobi_sd and __jacobi_sn. - -They are all called as for example: - - jacobi_cs(k, u); - -Note however that these individual functions are all really thin wrappers around the function __jacobi_elliptic which calculates -the three copolar functions ['sn], ['cn] and ['dn] in a single function call. Thus if you need more than one of these functions -for a given set of arguments, it's most efficient to use __jacobi_elliptic. - -[endsect] - -[section:jacobi_elliptic Jacobi Elliptic SN, CN and DN] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_elliptic(T k, U u, V* pcn, V* pdn); - - template - ``__sf_result`` jacobi_elliptic(T k, U u, V* pcn, V* pdn, const Policy&); - - }} // namespaces - -[heading Description] - -The function __jacobi_elliptic calculates the three copolar Jacobi elliptic functions -['sn(u, k)], ['cn(u, k)] and ['dn(u, k)]. The returned value is -['sn(u, k)], and if provided, ['*pcn] is -set to ['cn(u, k)], and ['*pdn] is set to ['dn(u, k)]. - -The functions are defined as follows, given: - -[equation jacobi1] - -The the angle [phi] is called the ['amplitude] and: - -[equation jacobi2] - -[note ['[phi]] is called the amplitude. - -['k] is called the modulus. - -] - -[caution Rather like other elliptic functions, the Jacobi functions -are expressed in a variety of different ways. In particular, -the parameter /k/ (the modulus) may also be expressed using a modular -angle [alpha], or a parameter /m/. These are related by: - -k = sin[alpha] - -m = k[super 2] = sin[super 2][alpha] - -So that the function ['sn] (for example) may be expressed as -either: - -sn(u, k) - -sn(u \\ [alpha]) - -sn(u| m) - -To further complicate matters, some texts refer to the ['complement -of the parameter m], or 1 - m, where: - -1 - m = 1 - k[super 2] = cos[super 2][alpha] - -This implementation uses /k/ throughout, and makes this the first argument -to the functions: this is for alignment with the elliptic integrals which match the requirements -of the [@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf -Technical Report on C++ Library Extensions]. However, you should -be extra careful when using these functions!] - -[optional_policy] - -The following graphs illustrate how these functions change as /k/ changes: for small /k/ -these are sine waves, while as /k/ tends to 1 they become hyperbolic functions: - -[graph jacobi_sn] - -[graph jacobi_cn] - -[graph jacobi_dn] - -[heading Accuracy] - -These functions are computed using only basic arithmetic operations and trigomometric functions, so -there isn't much variation in accuracy over differing platforms. -Typically errors are trivially small for small angles, and as is typical for cyclic -functions, grow as the angle increases. -Note that only results for the widest floating point type on the -system are given as narrower types have __zero_error. All values -are relative errors in units of epsilon. - -[table_jacobi_cn] - -[table_jacobi_dn] - -[table_jacobi_sn] - -[heading Testing] - -The tests use a mixture of spot test values calculated using the online -calculator at [@http://functions.wolfram.com/ functions.wolfram.com], -and random test data generated using -MPFR at 1000-bit precision and this implementation. - -[heading Implementation] - -For ['k > 1] we apply the relations: - -[equation jacobi3] - -Then filter off the special cases: - -['sn(0, k) = 0] and ['cn(0, k) = dn(0, k) = 1]. - -['sn(u, 0) = sin(u), cn(u, 0) = cos(u) and dn(u, 0) = 1]. - -['sn(u, 1) = tanh(u), cn(u, 1) = dn(u, 1) = 1 / cosh(u)]. - -And for ['k[super 4] < [epsilon]] we have: - -[equation jacobi4] - -Otherwise the values are calculated using the method of [@http://dlmf.nist.gov/22.20#SS2 arithmetic geometric means]. - -[endsect] - -[section:jacobi_cd Jacobi Elliptic Function cd] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_cd(T k, U u); - - template - ``__sf_result`` jacobi_cd(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['cd]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic, with: - -['cd(u, k) = cn(u, k) / dn(u, k)] - -[graph jacobi_cd] - -[endsect] - -[section:jacobi_cn Jacobi Elliptic Function cn] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_cn(T k, U u); - - template - ``__sf_result`` jacobi_cn(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['cn]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic. - -[graph jacobi_cn] - -[endsect] - -[section:jacobi_cs Jacobi Elliptic Function cs] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_cs(T k, U u); - - template - ``__sf_result`` jacobi_cs(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['cs]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic, with: - -['cs(u, k) = cn(u, k) / sn(u, k)] - -[graph jacobi_cs] - -[endsect] - -[section:jacobi_dc Jacobi Elliptic Function dc] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_dc(T k, U u); - - template - ``__sf_result`` jacobi_dc(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['dc]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic, with: - -['dc(u, k) = dn(u, k) / cn(u, k)] - -[graph jacobi_dc] - -[endsect] - -[section:jacobi_dn Jacobi Elliptic Function dn] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_dn(T k, U u); - - template - ``__sf_result`` jacobi_dn(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['dn]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic. - -[graph jacobi_dn] - -[endsect] - -[section:jacobi_ds Jacobi Elliptic Function ds] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_ds(T k, U u); - - template - ``__sf_result`` jacobi_ds(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['ds]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic, with: - -['ds(u, k) = dn(u, k) / sn(u, k)] - -[graph jacobi_ds] - -[endsect] - -[section:jacobi_nc Jacobi Elliptic Function nc] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_nc(T k, U u); - - template - ``__sf_result`` jacobi_nc(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['nc]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic, with: - -['nc(u, k) = 1 / cn(u, k)] - -[graph jacobi_nc] - -[endsect] - -[section:jacobi_nd Jacobi Elliptic Function nd] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_nd(T k, U u); - - template - ``__sf_result`` jacobi_nd(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['nd]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic, with: - -['nd(u, k) = 1 / dn(u, k)] - -[graph jacobi_nd] - -[endsect] - -[section:jacobi_ns Jacobi Elliptic Function ns] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_ns(T k, U u); - - template - ``__sf_result`` jacobi_ns(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['ns]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic, with: - -['ns(u, k) = 1 / sn(u, k)] - -[graph jacobi_ns] - -[endsect] - -[section:jacobi_sc Jacobi Elliptic Function sc] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_sc(T k, U u); - - template - ``__sf_result`` jacobi_sc(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['sc]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic, with: - -['sc(u, k) = sn(u, k) / cn(u, k)] - -[graph jacobi_sc] - -[endsect] - -[section:jacobi_sd Jacobi Elliptic Function sd] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_sd(T k, U u); - - template - ``__sf_result`` jacobi_sd(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['sd]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic, with: - -['sd(u, k) = sn(u, k) / dn(u, k)] - -[graph jacobi_sd] - -[endsect] - -[section:jacobi_sn Jacobi Elliptic Function sn] - -[heading Synopsis] - -`` - #include -`` - - namespace boost { namespace math { - - template - ``__sf_result`` jacobi_sn(T k, U u); - - template - ``__sf_result`` jacobi_sn(T k, U u, const Policy& pol); - - }} // namespaces - -[heading Description] - -This function returns the Jacobi elliptic function ['sn]. - -[optional_policy] - -This function is a trivial wrapper around __jacobi_elliptic. - -[graph jacobi_sn] - -[endsect] - - -[endsect] - diff --git a/boost/libs/math/doc/sf/laguerre.qbk b/boost/libs/math/doc/sf/laguerre.qbk deleted file mode 100644 index a208d63d..00000000 --- a/boost/libs/math/doc/sf/laguerre.qbk +++ /dev/null @@ -1,159 +0,0 @@ -[section:laguerre Laguerre (and Associated) Polynomials] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` laguerre(unsigned n, T x); - - template - ``__sf_result`` laguerre(unsigned n, T x, const ``__Policy``&); - - template - ``__sf_result`` laguerre(unsigned n, unsigned m, T x); - - template - ``__sf_result`` laguerre(unsigned n, unsigned m, T x, const ``__Policy``&); - - template - ``__sf_result`` laguerre_next(unsigned n, T1 x, T2 Ln, T3 Lnm1); - - template - ``__sf_result`` laguerre_next(unsigned n, unsigned m, T1 x, T2 Ln, T3 Lnm1); - - - }} // namespaces - -[h4 Description] - -The return type of these functions is computed using the __arg_promotion_rules: -note than when there is a single template argument the result is the same type -as that argument or `double` if the template argument is an integer type. - -[optional_policy] - - template - ``__sf_result`` laguerre(unsigned n, T x); - - template - ``__sf_result`` laguerre(unsigned n, T x, const ``__Policy``&); - -Returns the value of the Laguerre Polynomial of order /n/ at point /x/: - -[equation laguerre_0] - -The following graph illustrates the behaviour of the first few -Laguerre Polynomials: - -[graph laguerre] - - template - ``__sf_result`` laguerre(unsigned n, unsigned m, T x); - - template - ``__sf_result`` laguerre(unsigned n, unsigned m, T x, const ``__Policy``&); - -Returns the Associated Laguerre polynomial of degree /n/ -and order /m/ at point /x/: - -[equation laguerre_1] - - template - ``__sf_result`` laguerre_next(unsigned n, T1 x, T2 Ln, T3 Lnm1); - -Implements the three term recurrence relation for the Laguerre -polynomials, this function can be used to create a sequence of -values evaluated at the same /x/, and for rising /n/. - -[equation laguerre_2] - -For example we could produce a vector of the first 10 polynomial -values using: - - double x = 0.5; // Abscissa value - vector v; - v.push_back(laguerre(0, x)).push_back(laguerre(1, x)); - for(unsigned l = 1; l < 10; ++l) - v.push_back(laguerre_next(l, x, v[l], v[l-1])); - -Formally the arguments are: - -[variablelist -[[n][The degree /n/ of the last polynomial calculated.]] -[[x][The abscissa value]] -[[Ln][The value of the polynomial evaluated at degree /n/.]] -[[Lnm1][The value of the polynomial evaluated at degree /n-1/.]] -] - - template - ``__sf_result`` laguerre_next(unsigned n, unsigned m, T1 x, T2 Ln, T3 Lnm1); - -Implements the three term recurrence relation for the Associated Laguerre -polynomials, this function can be used to create a sequence of -values evaluated at the same /x/, and for rising degree /n/. - -[equation laguerre_3] - -For example we could produce a vector of the first 10 polynomial -values using: - - double x = 0.5; // Abscissa value - int m = 10; // order - vector v; - v.push_back(laguerre(0, m, x)).push_back(laguerre(1, m, x)); - for(unsigned l = 1; l < 10; ++l) - v.push_back(laguerre_next(l, m, x, v[l], v[l-1])); - -Formally the arguments are: - -[variablelist -[[n][The degree of the last polynomial calculated.]] -[[m][The order of the Associated Polynomial.]] -[[x][The abscissa value.]] -[[Ln][The value of the polynomial evaluated at degree /n/.]] -[[Lnm1][The value of the polynomial evaluated at degree /n-1/.]] -] - -[h4 Accuracy] - -The following table shows peak errors (in units of epsilon) -for various domains of input arguments. -Note that only results for the widest floating point type on the system are -given as narrower types have __zero_error. - -[table_laguerre_n_x_] - -[table_laguerre_n_m_x_] - -Note that the worst errors occur when the degree increases, values greater than -~120 are very unlikely to produce sensible results, especially in the associated -polynomial case when the order is also large. Further the relative errors -are likely to grow arbitrarily large when the function is very close to a root. - -[h4 Testing] - -A mixture of spot tests of values calculated using functions.wolfram.com, -and randomly generated test data are -used: the test data was computed using -[@http://shoup.net/ntl/doc/RR.txt NTL::RR] at 1000-bit precision. - -[h4 Implementation] - -These functions are implemented using the stable three term -recurrence relations. These relations guarantee low absolute error -but cannot guarantee low relative error near one of the roots of the -polynomials. - -[endsect][/section:beta_function The Beta Function] -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/sf/latin1_symbols.qbk b/boost/libs/math/doc/sf/latin1_symbols.qbk deleted file mode 100644 index 9bbd93b7..00000000 --- a/boost/libs/math/doc/sf/latin1_symbols.qbk +++ /dev/null @@ -1,115 +0,0 @@ -[/ Symbols and accented letters from Latin-1] -[/ File Latin1_symbols.qbk] -[/ http://www.htmlhelp.com/reference/html40/entities/latin1.html ] -[/ based on table Copyright 1998-2006 Liam Quinn.] -[/ Glyphs of the characters ] -[/ are available at the Unicode Consortium . ] -[/ To use these symbols in Quickbook: enclose template name in square brackets.] -[/ See also Greek and math symbols in html4_symbols.qbk] - -[/ These are all 8th bit ANSI symbols. C1 controls and Latin-1 Supplement] -[/ See http://www.unicode.org/charts/PDF/U0080.pdf] -[template nbsp[]''' '''] [/ no-break space = non-breaking space] -[template iexcl[]'''¡'''] [/ inverted exclamation mark ] -[template cent[]'''¢'''] [/ cent sign ] -[template pound[]'''£'''] [/ pound sign ] -[template curren[]'''¤'''] [/ currency sign ] -[template yen[]'''¥'''] [/ yen sign = yuan sign ] -[template brvbar[]'''¦'''] [/ broken vertical bar ] -[template sectsign[]'''§'''] [/ section sign ] -[template uml[]'''¨'''] [/ diaeresis ] -[template copy[]'''©'''] [/ copyright ] -[template ordf[]'''ª'''] [/ feminine ordinal indicator ] -[template laquo[]'''«'''] [/ left-pointing double angle quotation mark = left pointing guillemet ] -[template not[]'''¬'''] [/ not sign ] -[template shy[]'''­'''] [/ soft hyphen = discretionary hyphen ] -[template reg[]'''®'''] [/ registered sign = registered trade mark sign ] -[template macron[]'''¯'''] [/ macron = spacing macron = overline = APL overbar ] -[template deg[]'''°'''] [/ degree sign ] -[template plusmn[]'''±'''] [/ plus-minus sign = plus-or-minus sign ] -[template sup2[]'''²'''] [/ superscript two = superscript digit two = squared ] -[template cubed[]'''³'''] [/ superscript three = superscript digit three = cubed ] -[template acute[]'''´'''] [/ acute accent = spacing acute ] -[template micro[]'''µ'''] [/ micro sign ] -[template polcrow[]'''¶'''] [/ pilcrow sign = paragraph sign - care ! name para conflicts with para macro!!] -[template middot[]'''·'''] [/ middle dot = Georgian comma = Greek middle dot ] -[template cedil[]'''¸'''] [/ cedilla = spacing cedilla ] -[template sup1[]'''¹'''] [/ superscript one = superscript digit one ] -[template ordm[]'''º'''] [/ masculine ordinal indicator ] -[template raquo[]'''»'''] [/ right-pointing double angle quotation mark = right pointing guillemet ] -[template frac14[]'''¼'''] [/ vulgar fraction one quarter = fraction one quarter ] -[template frac12[]'''½'''] [/ vulgar fraction one half = fraction one half ] -[template frac34[]'''¾'''] [/vulgar fraction three quarters = fraction three quarters ] -[template iquest[]'''¿'''] [/ inverted question mark = turned question mark ] -[template Agrave[]'''À'''] [/ Latin capital letter A with grave = Latin capital letter A grave ] -[template Aacute[]'''Á'''] [/ Latin capital letter A with acute = Latin capital letter A acute ] -[template Acirc[]'''Â'''] [/ Latin capital letter A with circumflex ] -[template Atilde[]'''Ã'''] [/Latin capital letter A with tilde ] -[template Auml[]'''Ä'''] [/ Latin capital letter A with diaeresis ] -[template Aring[]'''Å'''] [/ Latin capital letter A with ring above = Latin capital letter A ring ] -[template AElig[]'''Æ'''] [/ Latin capital letter AE = Latin capital ligature AE ] -[template Ccedil[]'''Ç'''] [/ Latin capital letter C with cedilla ] -[template Egrave[]'''È'''] [/ Latin capital letter E with grave ] -[template Eacute[]'''É'''] [/ Latin capital letter E with acute ] -[template Ecirc[]'''Ê'''] [/ Latin capital letter E with circumflex ] -[template Euml[]'''Ë'''] [/ Latin capital letter E with diaeresis ] -[template Igrave[]'''Ì'''] [/ Latin capital letter I with grave ] -[template Iacute[]'''Í'''] [/ Latin capital letter I with acute ] -[template Icirc[]'''Î'''] [/ Latin capital letter I with circumflex ] -[template Iuml[]'''Ï'''] [/ Latin capital letter I with diaeresis ] -[template ETH[]'''Ð'''] [/ Latin capital letter ETH ] -[template Ntilde[]'''Ñ'''] [/ Latin capital letter N with tilde ] -[template Ograve[]'''Ò'''] [/ Latin capital letter O with grave] -[template Oacute[]'''Ó'''] [/ Latin capital letter O with acute ] -[template Ocirc[]'''Ô'''] [/ Latin capital letter O with circumflex ] -[template Otilde[]'''Õ'''] [/ Latin capital letter O with tilde ] -[template Ouml[]'''Ö'''] [/ Latin capital letter O with diaeresis ] -[template times[]'''×'''] [/ multiplication sign ] -[template Oslash[]'''Ø'''] [/ Latin capital letter O with stroke = Latin capital letter O slash ] -[template Ugrave[]'''Ù'''] [/ Latin capital letter U with grave ] -[template Uacute[]'''Ú'''] [/ Latin capital letter U with acute ] -[template Ucirc[]'''Û'''] [/ Latin capital letter U with circumflex ] -[template Uuml[]'''Ü'''] [/ Latin capital letter U with diaeresis ] -[template Yacute[]'''Ý'''] [/ Latin capital letter Y with acute ] -[template THORN[]'''Þ'''] [/ Latin capital letter THORN ] -[template szlig[]'''ß'''] [/ Latin small letter sharp s = ess-zed ] -[template agrave[]'''à'''] [/ Latin small letter a with grave = Latin small letter a grave ] -[template aacute[]'''á'''] [/ Latin small letter a with acute ] -[template acirc[]'''â'''] [/ Latin small letter a with circumflex ] -[template atilde[]'''ã'''] [/ Latin small letter a with tilde ] -[template auml[]'''ä'''] [/ Latin small letter a with diaeresis ] -[template aring[]'''å'''] [/ Latin small letter a with ring above = Latin small letter a ring ] -[template aelig[]'''æ'''] [/ Latin small letter ae = Latin small ligature ae ] -[template ccedil[]'''ç'''] [/ Latin small letter c with cedilla ] -[template egrave[]'''è'''] [/ Latin small letter e with grave ] -[template eacute[]'''é'''] [/ Latin small letter e with acute ] -[template ecirc[]'''ê'''] [/ Latin small letter e with circumflex ] -[template euml[]'''ë'''] [/ Latin small letter e with diaeresis ] -[template igrave[]'''ì'''] [/ Latin small letter i with grave ] -[template iacute[]'''í'''] [/ Latin small letter i with acute ] -[template icirc[]'''î'''] [/ Latin small letter i with circumflex ] -[template iuml[]'''ï'''] [/ Latin small letter i with diaeresis ] -[template eth[]'''ð'''] [/ Latin small letter eth ] -[template ntilde[]'''ñ'''] [/ Latin small letter n with tilde ] -[template ograve[]'''ò'''] [/Latin small letter o with grave ] -[template oacute[]'''ó'''] [/ Latin small letter o with acute ] -[template ocirc[]'''ô'''] [/ Latin small letter o with circumflex ] -[template otilde[]'''õ'''] [/ Latin small letter o with tilde ] -[template ouml[]'''ö'''] [/ Latin small letter o with diaeresis ] -[template divide[]'''÷'''] [/ division sign ] -[template oslash[]'''ø'''] [/ Latin small letter o with stroke = Latin small letter o slash ] -[template ugrave[]'''ù'''] [/ Latin small letter u with grave ] -[template uacute[]'''ú'''] [/ Latin small letter u with acute ] -[template ucirc[]'''û'''] [/ Latin small letter u with circumflex ] -[template uuml[]'''ü'''] [/ Latin small letter u with diaeresis ] -[template yacute[]'''ý'''] [/ Latin small letter y with acute ] -[template thorn[]'''þ'''] [/ Latin small letter thorn ] -[template yuml[]'''ÿ'''] [/ Latin small letter y with diaeresis ] - -[/ File Latin1_symbols.qbk -Copyright 2007, 2010 Paul A. Bristow. -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). -] - diff --git a/boost/libs/math/doc/sf/legendre.qbk b/boost/libs/math/doc/sf/legendre.qbk deleted file mode 100644 index d80866ca..00000000 --- a/boost/libs/math/doc/sf/legendre.qbk +++ /dev/null @@ -1,228 +0,0 @@ -[section:legendre Legendre (and Associated) Polynomials] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` legendre_p(int n, T x); - - template - ``__sf_result`` legendre_p(int n, T x, const ``__Policy``&); - - template - ``__sf_result`` legendre_p(int n, int m, T x); - - template - ``__sf_result`` legendre_p(int n, int m, T x, const ``__Policy``&); - - template - ``__sf_result`` legendre_q(unsigned n, T x); - - template - ``__sf_result`` legendre_q(unsigned n, T x, const ``__Policy``&); - - template - ``__sf_result`` legendre_next(unsigned l, T1 x, T2 Pl, T3 Plm1); - - template - ``__sf_result`` legendre_next(unsigned l, unsigned m, T1 x, T2 Pl, T3 Plm1); - - - }} // namespaces - -The return type of these functions is computed using the __arg_promotion_rules: -note than when there is a single template argument the result is the same type -as that argument or `double` if the template argument is an integer type. - -[optional_policy] - -[h4 Description] - - template - ``__sf_result`` legendre_p(int l, T x); - - template - ``__sf_result`` legendre_p(int l, T x, const ``__Policy``&); - -Returns the Legendre Polynomial of the first kind: - -[equation legendre_0] - -Requires -1 <= x <= 1, otherwise returns the result of __domain_error. - -Negative orders are handled via the reflection formula: - -P[sub -l-1](x) = P[sub l](x) - -The following graph illustrates the behaviour of the first few -Legendre Polynomials: - -[graph legendre_p] - - template - ``__sf_result`` legendre_p(int l, int m, T x); - - template - ``__sf_result`` legendre_p(int l, int m, T x, const ``__Policy``&); - -Returns the associated Legendre polynomial of the first kind: - -[equation legendre_1] - -Requires -1 <= x <= 1, otherwise returns the result of __domain_error. - -Negative values of /l/ and /m/ are handled via the identity relations: - -[equation legendre_3] - -[caution The definition of the associated Legendre polynomial used here -includes a leading Condon-Shortley phase term of (-1)[super m]. This -matches the definition given by Abramowitz and Stegun (8.6.6) and that -used by [@http://mathworld.wolfram.com/LegendrePolynomial.html Mathworld] -and [@http://documents.wolfram.com/mathematica/functions/LegendreP -Mathematica's LegendreP function]. However, uses in the literature -do not always include this phase term, and strangely the specification -for the associated Legendre function in the C++ TR1 (assoc_legendre) -also omits it, in spite of stating that it uses Abramowitz and Stegun -as the final arbiter on these matters. - -See: - -[@http://mathworld.wolfram.com/LegendrePolynomial.html -Weisstein, Eric W. "Legendre Polynomial." -From MathWorld--A Wolfram Web Resource]. - -Abramowitz, M. and Stegun, I. A. (Eds.). "Legendre Functions" and -"Orthogonal Polynomials." Ch. 22 in Chs. 8 and 22 in Handbook of -Mathematical Functions with Formulas, Graphs, and Mathematical Tables, -9th printing. New York: Dover, pp. 331-339 and 771-802, 1972. - ] - - template - ``__sf_result`` legendre_q(unsigned n, T x); - - template - ``__sf_result`` legendre_q(unsigned n, T x, const ``__Policy``&); - -Returns the value of the Legendre polynomial that is the second solution -to the Legendre differential equation, for example: - -[equation legendre_2] - -Requires -1 <= x <= 1, otherwise __domain_error is called. - -The following graph illustrates the first few Legendre functions of the -second kind: - -[graph legendre_q] - - template - ``__sf_result`` legendre_next(unsigned l, T1 x, T2 Pl, T3 Plm1); - -Implements the three term recurrence relation for the Legendre -polynomials, this function can be used to create a sequence of -values evaluated at the same /x/, and for rising /l/. This recurrence -relation holds for Legendre Polynomials of both the first and second kinds. - -[equation legendre_4] - -For example we could produce a vector of the first 10 polynomial -values using: - - double x = 0.5; // Abscissa value - vector v; - v.push_back(legendre_p(0, x)); - v.push_back(legendre_p(1, x)); - for(unsigned l = 1; l < 10; ++l) - v.push_back(legendre_next(l, x, v[l], v[l-1])); - // Double check values: - for(unsigned l = 1; l < 10; ++l) - assert(v[l] == legendre_p(l, x)); - -Formally the arguments are: - -[variablelist -[[l][The degree of the last polynomial calculated.]] -[[x][The abscissa value]] -[[Pl][The value of the polynomial evaluated at degree /l/.]] -[[Plm1][The value of the polynomial evaluated at degree /l-1/.]] -] - - template - ``__sf_result`` legendre_next(unsigned l, unsigned m, T1 x, T2 Pl, T3 Plm1); - -Implements the three term recurrence relation for the Associated Legendre -polynomials, this function can be used to create a sequence of -values evaluated at the same /x/, and for rising /l/. - -[equation legendre_5] - -For example we could produce a vector of the first m+10 polynomial -values using: - - double x = 0.5; // Abscissa value - int m = 10; // order - vector v; - v.push_back(legendre_p(m, m, x)); - v.push_back(legendre_p(1 + m, m, x)); - for(unsigned l = 1; l < 10; ++l) - v.push_back(legendre_next(l + 10, m, x, v[l], v[l-1])); - // Double check values: - for(unsigned l = 1; l < 10; ++l) - assert(v[l] == legendre_p(10 + l, m, x)); - -Formally the arguments are: - -[variablelist -[[l][The degree of the last polynomial calculated.]] -[[m][The order of the Associated Polynomial.]] -[[x][The abscissa value]] -[[Pl][The value of the polynomial evaluated at degree /l/.]] -[[Plm1][The value of the polynomial evaluated at degree /l-1/.]] -] - -[h4 Accuracy] - -The following table shows peak errors (in units of epsilon) -for various domains of input arguments. -Note that only results for the widest floating point type on the system are -given as narrower types have __zero_error. - -[table_legendre_p] - -[table_legendre_q] - -[table_legendre_p_associated_] - -Note that the worst errors occur when the order increases, values greater than -~120 are very unlikely to produce sensible results, especially in the associated -polynomial case when the degree is also large. Further the relative errors -are likely to grow arbitrarily large when the function is very close to a root. - -[h4 Testing] - -A mixture of spot tests of values calculated using functions.wolfram.com, -and randomly generated test data are -used: the test data was computed using -[@http://shoup.net/ntl/doc/RR.txt NTL::RR] at 1000-bit precision. - -[h4 Implementation] - -These functions are implemented using the stable three term -recurrence relations. These relations guarantee low absolute error -but cannot guarantee low relative error near one of the roots of the -polynomials. - -[endsect][/section:beta_function The Beta Function] -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/sf/lgamma.qbk b/boost/libs/math/doc/sf/lgamma.qbk deleted file mode 100644 index deccd8a7..00000000 --- a/boost/libs/math/doc/sf/lgamma.qbk +++ /dev/null @@ -1,161 +0,0 @@ -[section:lgamma Log Gamma] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` lgamma(T z); - - template - ``__sf_result`` lgamma(T z, const ``__Policy``&); - - template - ``__sf_result`` lgamma(T z, int* sign); - - template - ``__sf_result`` lgamma(T z, int* sign, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -The [@http://en.wikipedia.org/wiki/Gamma_function lgamma function] is defined by: - -[equation lgamm1] - -The second form of the function takes a pointer to an integer, -which if non-null is set on output to the sign of tgamma(z). - -[optional_policy] - -[graph lgamma] - -There are effectively two versions of this function internally: a fully -generic version that is slow, but reasonably accurate, and a much more -efficient approximation that is used where the number of digits in the significand -of T correspond to a certain __lanczos. In practice, any built-in -floating-point type you will encounter has an appropriate __lanczos -defined for it. It is also possible, given enough machine time, to generate -further __lanczos's using the program libs/math/tools/lanczos_generator.cpp. - -The return type of these functions is computed using the __arg_promotion_rules: -the result is of type `double` if T is an integer type, or type T otherwise. - -[h4 Accuracy] - -The following table shows the peak errors (in units of epsilon) -found on various platforms -with various floating point types, along with comparisons to -various other libraries. Unless otherwise specified any -floating point type that is narrower than the one shown will have -__zero_error. - -Note that while the relative errors near the positive roots of lgamma -are very low, the lgamma function has an infinite number of irrational -roots for negative arguments: very close to these negative roots only -a low absolute error can be guaranteed. - -[table_lgamma] - -[h4 Testing] - -The main tests for this function involve comparisons against the logs of -the factorials which can be independently calculated to very high accuracy. - -Random tests in key problem areas are also used. - -[h4 Implementation] - -The generic version of this function is implemented using Sterling's approximation -for large arguments: - -[equation gamma6] - -For small arguments, the logarithm of tgamma is used. - -For negative /z/ the logarithm version of the -reflection formula is used: - -[equation lgamm3] - -For types of known precision, the __lanczos is used, a traits class -`boost::math::lanczos::lanczos_traits` maps type T to an appropriate -approximation. The logarithmic version of the __lanczos is: - -[equation lgamm4] - -Where L[sub e,g][space] is the Lanczos sum, scaled by e[super g]. - -As before the reflection formula is used for /z < 0/. - -When z is very near 1 or 2, then the logarithmic version of the __lanczos -suffers very badly from cancellation error: indeed for values sufficiently -close to 1 or 2, arbitrarily large relative errors can be obtained (even though -the absolute error is tiny). - -For types with up to 113 bits of precision -(up to and including 128-bit long doubles), root-preserving -rational approximations [jm_rationals] are used -over the intervals [1,2] and [2,3]. Over the interval [2,3] the approximation -form used is: - - lgamma(z) = (z-2)(z+1)(Y + R(z-2)); - -Where Y is a constant, and R(z-2) is the rational approximation: optimised -so that it's absolute error is tiny compared to Y. In addition -small values of z greater -than 3 can handled by argument reduction using the recurrence relation: - - lgamma(z+1) = log(z) + lgamma(z); - -Over the interval [1,2] two approximations have to be used, one for small z uses: - - lgamma(z) = (z-1)(z-2)(Y + R(z-1)); - -Once again Y is a constant, and R(z-1) is optimised for low absolute error -compared to Y. For z > 1.5 the above form wouldn't converge to a -minimax solution but this similar form does: - - lgamma(z) = (2-z)(1-z)(Y + R(2-z)); - -Finally for z < 1 the recurrence relation can be used to move to z > 1: - - lgamma(z) = lgamma(z+1) - log(z); - -Note that while this involves a subtraction, it appears not -to suffer from cancellation error: as z decreases from 1 -the `-log(z)` term grows positive much more -rapidly than the `lgamma(z+1)` term becomes negative. So in this -specific case, significant digits are preserved, rather than cancelled. - -For other types which do have a __lanczos defined for them -the current solution is as follows: imagine we -balance the two terms in the __lanczos by dividing the power term by its value -at /z = 1/, and then multiplying the Lanczos coefficients by the same value. -Now each term will take the value 1 at /z = 1/ and we can rearrange the power terms -in terms of log1p. Likewise if we subtract 1 from the Lanczos sum part -(algebraically, by subtracting the value of each term at /z = 1/), we obtain -a new summation that can be also be fed into log1p. Crucially, all of the -terms tend to zero, as /z -> 1/: - -[equation lgamm5] - -The C[sub k][space] terms in the above are the same as in the __lanczos. - -A similar rearrangement can be performed at /z = 2/: - -[equation lgamm6] - -[endsect][/section:lgamma The Log Gamma Function] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/license.qbk b/boost/libs/math/doc/sf/license.qbk deleted file mode 100644 index 6a3aeb99..00000000 --- a/boost/libs/math/doc/sf/license.qbk +++ /dev/null @@ -1,6 +0,0 @@ -[/ - Copyright 2006 - 2010 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/number_series.qbk b/boost/libs/math/doc/sf/number_series.qbk deleted file mode 100644 index 631cc294..00000000 --- a/boost/libs/math/doc/sf/number_series.qbk +++ /dev/null @@ -1,270 +0,0 @@ -[section:number_series Number Series] - -[section:bernoulli_numbers Bernoulli Numbers] - -[@https://en.wikipedia.org/wiki/Bernoulli_number Bernoulli numbers] -are a sequence of rational numbers useful for the Taylor series expansion, -Euler-Maclaurin formula, and the Riemann zeta function. - -Bernoulli numbers are used in evaluation of some Boost.Math functions, -including the __tgamma, __lgamma and polygamma functions. - -[h4 Single Bernoulli number] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost { namespace math { - - template - T bernoulli_b2n(const int n); // Single Bernoulli number (default policy). - - template - T bernoulli_b2n(const int n, const Policy &pol); // User policy for errors etc. - - }} // namespaces - -[h4 Description] - -Both return the (2 * n)[super th] Bernoulli number B[sub 2n]. - -Note that since all odd numbered Bernoulli numbers are zero (apart from B[sub 1] which is -[frac12]) -the interface will only return the even numbered Bernoulli numbers. - -This function uses fast table lookup for low-indexed Bernoulli numbers, while larger values are calculated -as needed and then cached. The caching mechanism requires a certain amount of thread safety code, so -`unchecked_bernoulli_b2n` may provide a better interface for performance critical code. - -The final __Policy argument is optional and can be used to control the behaviour of the function: -how it handles errors, what level of precision to use, etc. - -Refer to __policy_section for more details. - -[h4 Examples] - -[import ../../example/bernoulli_example.cpp] -[bernoulli_example_1] - -[bernoulli_output_1] - -[h4 Single (unchecked) Bernoulli number] - -[h4 Synopsis] -`` -#include - -`` - - template <> - struct max_bernoulli_b2n; - - template - inline T unchecked_bernoulli_b2n(unsigned n); - -`unchecked_bernoulli_b2n` provides access to Bernoulli numbers [*without any checks for overflow or invalid parameters]. -It is implemented as a direct (and very fast) table lookup, and while not recommended for general use it can be useful -inside inner loops where the ultimate performance is required, and error checking is moved outside the loop. - -The largest value you can pass to `unchecked_bernoulli_b2n<>` is `max_bernoulli_b2n<>::value`: passing values greater than -that will result in a buffer overrun error, so it's clearly important to place the error handling in your own code -when using this direct interface. - -The value of `boost::math::max_bernoulli_b2n::value` varies by the type T, for types `float`/`double`/`long double` -it's the largest value which doesn't overflow the target type: for example, `boost::math::max_bernoulli_b2n::value` is 129. -However, for multiprecision types, it's the largest value for which the result can be represented as the ratio of two 64-bit -integers, for example `boost::math::max_bernoulli_b2n::value` is just 17. Of course -larger indexes can be passed to `bernoulli_b2n(n)`, but then you lose fast table lookup (i.e. values may need to be calculated). - -[bernoulli_example_4] -[bernoulli_output_4] - -[h4 Multiple Bernoulli Numbers] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost { namespace math { - - // Multiple Bernoulli numbers (default policy). - template - OutputIterator bernoulli_b2n( - int start_index, - unsigned number_of_bernoullis_b2n, - OutputIterator out_it); - - // Multiple Bernoulli numbers (user policy). - template - OutputIterator bernoulli_b2n( - int start_index, - unsigned number_of_bernoullis_b2n, - OutputIterator out_it, - const Policy& pol); - }} // namespaces - -[h4 Description] - -Two versions of the Bernoulli number function are provided to compute multiple Bernoulli numbers -with one call (one with default policy and the other allowing a user-defined policy). - -These return a series of Bernoulli numbers: - -[:B[sub 2*start_index],B[sub 2*(start_index+1)],...,B[sub 2*(start_index+number_of_bernoullis_b2n-1)]] - -[h4 Examples] -[bernoulli_example_2] -[bernoulli_output_2] -[bernoulli_example_3] -[bernoulli_output_3] - -The source of this example is at [@../../example/bernoulli_example.cpp bernoulli_example.cpp] - -[h4 Accuracy] - -All the functions usually return values within one ULP (unit in the last place) for the floating-point type. - -[h4 Implementation] - -The implementation details are in [@../../include/boost/math/special_functions/detail/bernoulli_details.hpp bernoulli_details.hpp] -and [@../../include/boost/math/special_functions/detail/unchecked_bernoulli.hpp unchecked_bernoulli.hpp]. - -For `i <= max_bernoulli_index::value` this is implemented by simple table lookup from a statically initialized table; -for larger values of `i`, this is implemented by the Tangent Numbers algorithm as described in the paper: -Fast Computation of Bernoulli, Tangent and Secant Numbers, Richard P. Brent and David Harvey, -[@http://arxiv.org/pdf/1108.0286v3.pdf] (2011). - -[@http://mathworld.wolfram.com/TangentNumber.html Tangent (or Zag) numbers] -(an even alternating permutation number) are defined -and their generating function is also given therein. - -The relation of Tangent numbers with Bernoulli numbers ['B[sub i]] -is given by Brent and Harvey's equation 14: - -__spaces[equation tangent_numbers] - -Their relation with Bernoulli numbers ['B[sub i]] are defined by - -if i > 0 and i is even then -__spaces[equation bernoulli_numbers] [br] -elseif i == 0 then ['B[sub i]] = 1 [br] -elseif i == 1 then ['B[sub i]] = -1/2 [br] -elseif i < 0 or i is odd then ['B[sub i]] = 0 - -Note that computed values are stored in a fixed-size table, access is thread safe via atomic operations (i.e. lock -free programming), this imparts a much lower overhead on access to cached values than might otherwise be expected - -typically for multiprecision types the cost of thread synchronisation is negligible, while for built in types -this code is not normally executed anyway. For very large arguments which cannot be reasonably computed or -stored in our cache, an asymptotic expansion [@http://www.luschny.de/math/primes/bernincl.html due to Luschny] is used: - -[equation bernoulli_numbers2] - -[endsect] [/section:bernoulli_numbers Bernoulli Numbers] - - -[section:tangent_numbers Tangent Numbers] - -[@http://en.wikipedia.org/wiki/Tangent_numbers Tangent numbers], -also called a zag function. See also -[@http://mathworld.wolfram.com/TangentNumber.html Tangent number]. - -The first few values are 1, 2, 16, 272, 7936, 353792, 22368256, 1903757312 ... -(sequence [@http://oeis.org/A000182 A000182 in OEIS]). -They are called tangent numbers because they appear as -numerators in the Maclaurin series of `tan(x)`. - -[*Important:] there are two competing definitions of Tangent numbers in common use -(depending on whether you take the even or odd numbered values as non-zero), we use: - -[equation tangent_number_def] - -Which gives: - -[equation tangent_number_def2] - -Tangent numbers are used in the computation of Bernoulli numbers, -but are also made available here. - -[h4 Synopsis] -`` -#include -`` - - template - T tangent_t2n(const int i); // Single tangent number (default policy). - - template - T tangent_t2n(const int i, const Policy &pol); // Single tangent number (user policy). - - // Multiple tangent numbers (default policy). - template - OutputIterator tangent_t2n(const int start_index, - const unsigned number_of_tangent_t2n, - OutputIterator out_it); - - // Multiple tangent numbers (user policy). - template - OutputIterator tangent_t2n(const int start_index, - const unsigned number_of_tangent_t2n, - OutputIterator out_it, - const Policy& pol); - -[h4 Examples] - -[tangent_example_1] - -The output is: -[tangent_output_1] - -The source of this example is at [@../../example/bernoulli_example.cpp bernoulli_example.cpp] - -[h4 Implementation] - -Tangent numbers are calculated as intermediates in the calculation of the __bernoulli_numbers: -refer to the __bernoulli_numbers documentation for details. - -[endsect] [/section:tangent_numbers Tangent Numbers] - -[section:primes Prime Numbers] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost { namespace math { - - template - boost::uint32_t prime(unsigned n, const Policy& pol); - - boost::uint32_t prime(unsigned n); - - static const unsigned max_prime = 10000; - - }} // namespaces - -[h4 Description] - -The function `prime` provides fast table lookup to the first 10000 prime numbers (starting from 2 -as the zeroth prime: as 1 isn't terribly useful in practice). There are two function signatures -one of which takes an optional __Policy as the second parameter to control error handling. - -The constant `max_prime` is the largest value you can pass to `prime` without incurring an error. - -Passing a value greater than `max_prime` results in a __domain_error being raised. - -[endsect] [/section:primes] - -[endsect] [/Number Series] - -[/ - Copyright 2013, 2014 Nikhar Agrawal, Christopher Kormanyos, John Maddock, Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/owens_t.qbk b/boost/libs/math/doc/sf/owens_t.qbk deleted file mode 100644 index 536924f7..00000000 --- a/boost/libs/math/doc/sf/owens_t.qbk +++ /dev/null @@ -1,136 +0,0 @@ -[section:owens_t Owen's T function] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` owens_t(T h, T a); - - template - ``__sf_result`` owens_t(T h, T a, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -Returns the -[@http://en.wikipedia.org/wiki/Owen%27s_T_function Owens_t function] -of ['h] and ['a]. - -[optional_policy] - -[sixemspace][sixemspace][equation owens_t] - -[$../graphs/plot_owens_t.png] - -The function `owens_t(h, a)` gives the probability -of the event ['(X > h and 0 < Y < a * X)], -where ['X] and ['Y] are independent standard normal random variables. - -For h and a > 0, T(h,a), -gives the volume of an uncorrelated bivariate normal distribution -with zero means and unit variances over the area between -['y = ax] and ['y = 0] and to the right of ['x = h]. - -That is the area shaded in the figure below (Owens 1956). - -[graph owens_integration_area] - -and is also illustrated by a 3D plot. - -[$../graphs/plot_owens_3d_xyp.png] - -This function is used in the computation of the __skew_normal_distrib. -It is also used in the computation of bivariate and -multivariate normal distribution probabilities. -The return type of this function is computed using the __arg_promotion_rules: -the result is of type `double` when T is an integer type, and type T otherwise. - -Owen's original paper (page 1077) provides some additional corner cases. - -[: ['T(h, 0) = 0]] - -[:['T(0, a) = [frac12][pi] arctan(a)]] - -[:['T(h, 1) = [frac12] G(h) \[1 - G(h)\]]] - -[:['T(h, [infin]) = G(|h|)]] - -where G(h) is the univariate normal with zero mean and unit variance integral from -[infin] to h. - -[h4 Accuracy] - -Over the built-in types and range tested, -errors are less than 10 * std::numeric_limits::epsilon(). - -[table_owens_t] - -[h4 Testing] - -Test data was generated by Patefield and Tandy algorithms T1 and T4, -and also the suggested reference routine T7. - -* T1 was rejected if the result was too small compared to `atan(a)` (ie cancellation), -* T4 was rejected if there was no convergence, -* Both were rejected if they didn't agree. - -Over the built-in types and range tested, -errors are less than 10 std::numeric_limits::epsilon(). - -However, that there was a whole domain (large ['h], small ['a]) -where it was not possible to generate any reliable test values -(all the methods got rejected for one reason or another). - -There are also two sets of sanity tests: spot values are computed using __Mathematica and __R. - - -[h4 Implementation] - -The function was proposed and evaluated by -[@http://projecteuclid.org/DPubS?service=UI&version=1.0&verb=Display&handle=euclid.aoms/1177728074 -Donald. B. Owen, Tables for computing bivariate normal probabilities, -Ann. Math. Statist., 27, 1075-1090 (1956)]. - -The algorithms of Patefield, M. and Tandy, D. -"Fast and accurate Calculation of Owen's T-Function", Journal of Statistical Software, 5 (5), 1 - 25 (2000) -are adapted for C++ with arbitrary RealType. - -The Patefield-Tandy algorithm provides six methods of evalualution (T1 to T6); -the best method is selected according to the values of ['a] and ['h]. -See the original paper and the source in -[@../../../../boost/math/special_functions/owens_t.hpp owens_t.hpp] for details. - -The Patefield-Tandy algorithm is accurate to approximately 20 decimal places, so for -types with greater precision we use: - -* A modified version of T1 which folds the calculation of ['atan(h)] into the T1 series -(to avoid subtracting two values similar in magnitude), and then accelerates the -resulting alternating series using method 1 from H. Cohen, F. Rodriguez Villegas, D. Zagier, -"Convergence acceleration of alternating series", Bonn, (1991). The result is valid everywhere, -but doesn't always converge, or may become too divergent in the first few terms to sum accurately. -This is used for ['ah < 1]. -* A modified version of T2 which is accelerated in the same manner as T1. This is used for ['h > 1]. -* A version of T4 only when both T1 and T2 have failed to produce an accurate answer. -* Fallback to the Patefiled Tandy algorithm when all the above methods fail: this happens not at all -for our test data at 100 decimal digits precision. However, there is a difficult area when -['a] is very close to 1 and the precision increases which may cause this to happen in very exceptional -circumstances. - -Using the above algorithm and a 100-decimal digit type, results accurate to 80 decimal places were obtained -in the difficult area where ['a] is close to 1, and greater than 95 decimal places elsewhere. - -[endsect] [/section:owens_t The owens_t Function] - -[/ - Copyright 2012 Bejamin Sobotta, John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/sf/poisson_optimisation.qbk b/boost/libs/math/doc/sf/poisson_optimisation.qbk deleted file mode 100644 index 1b16cfa7..00000000 --- a/boost/libs/math/doc/sf/poisson_optimisation.qbk +++ /dev/null @@ -1,121 +0,0 @@ -[sect:optim Optimisation Examples} - -[h4 Poisson Distribution - Optimization and Accuracy is quite complicated. - -The general formula for calculating the CDF uses the incomplete gamma thus: - - return gamma_q(k+1, mean); - -But the case of small integral k is *very* common, so it is worth considering optimisation. - -The first obvious step is to use a finite sum of each pdf (Probability *density* function) -for each value of k to build up the cdf (*cumulative* distribution function). - -This could be done using the pdf function for the distribution, -for which there are two equivalent formulae: - - return exp(-mean + log(mean) * k - lgamma(k+1)); - - return gamma_p_derivative(k+1, mean); - -The pdf would probably be more accurate using gamma_p_derivative. - -The reason is that the expression: - - -mean + log(mean) * k - lgamma(k+1) - -Will produce a value much smaller than the largest of the terms, so you get -cancellation error: and then when you pass the result to exp() which -converts the absolute error in its argument to a relative error in the -result (explanation available if required), you effectively amplify the -error further still. - -gamma_p_derivative is just a thin wrapper around some of the internals of -the incomplete gamma, it does its utmost to avoid issues like this, because -this function is responsible for virtually all of the error in the result. -Hopefully further advances in the future might improve things even further -(what is really needed is an 'accurate' pow(1+x) function, but that's a whole -other story!). - -But calling pdf function makes repeated, redundant, checks on the value of mean and k, - - result += pdf(dist, i); - -so it may be faster to substitute the formula for the pdf in a summation loop - - result += exp(-mean) * pow(mean, i) / unchecked_factorial(i); - -(simplified by removing casting from RealType). - -Of course, mean is unchanged during this summation, -so exp(mean) should only be calculated once, outside the loop. - -Optimising compilers 'might' do this, but one can easily ensure this. - -Obviously too, k must be small enough that unchecked_factorial is OK: -34 is an obvious choice as the limit for 32-bit float. -For larger k, the number of iterations is like to be uneconomic. -Only experiment can determine the optimum value of k -for any particular RealType (float, double...) - -But also note that - -The incomplete gamma already optimises this case -(argument "a" is a small int), -although only when the result q (1-p) would be < 0.5. - -And moreover, in the above series, each term can be calculated -from the previous one much more efficiently: - -cdf = sum from 0 to k of C[k] - -with: - -C[0] = exp(-mean) - -C[N+1] = C[N] * mean / (N+1) - -So hopefully that's: - - { - RealType result = exp(-mean); - RealType term = result; - for(int i = 1; i <= k; ++i) - { // cdf is sum of pdfs. - term *= mean / i; - result += term; - } - return result; - } - -This is exactly the same finite sum as used by gamma_p/gamma_q internally. - -As explained previously it's only used when the result - -p > 0.5 or 1-p = q < 0.5. - -The slight danger when using the sum directly like this, is that if -the mean is small and k is large then you're calculating a value ~1, so -conceivably you might overshoot slightly. For this and other reasons in the -case when p < 0.5 and q > 0.5 gamma_p/gamma_q use a different (infinite but -rapidly converging) sum, so that danger isn't present since you always -calculate the smaller of p and q. - -So... it's tempting to suggest that you just call gamma_p/gamma_q as -required. However, there is a slight benefit for the k = 0 case because you -avoid all the internal logic inside gamma_p/gamma_q trying to figure out -which method to use etc. - -For the incomplete beta function, there are no simple finite sums -available (that I know of yet anyway), so when there's a choice between a -finite sum of the PDF and an incomplete beta call, the finite sum may indeed -win out in that case. - -[endsect][/sect:optim Optimisation Examples} - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/sf/polygamma.qbk b/boost/libs/math/doc/sf/polygamma.qbk deleted file mode 100644 index 5155095a..00000000 --- a/boost/libs/math/doc/sf/polygamma.qbk +++ /dev/null @@ -1,110 +0,0 @@ -[section:polygamma Polygamma] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` polygamma(int n, T z); - - template - ``__sf_result`` polygamma(int n, T z, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -Returns the polygamma function of /x/. Polygamma is defined as the n'th -derivative of the digamma function: - -[equation polygamma1] - -The following graphs illustrate the behaviour of the function for odd and even order: - -[graph polygamma2] -[graph polygamma3] - -[optional_policy] - -The return type of this function is computed using the __arg_promotion_rules: -the result is of type `double` when T is an integer type, and type T otherwise. - -[h4 Accuracy] - -The following table shows the peak errors (in units of epsilon) -found on various platforms with various floating point types. -Unless otherwise specified any floating point type that is narrower -than the one shown will have __zero_error. - -[table_polygamma] - -As shown above, error rates are generally very acceptable for moderately sized -arguments. Error rates should stay low for exact inputs, however, please note that the -function becomes exceptionally sensitive to small changes in input for large n and negative x, -indeed for cases where ['n!] would overflow, the function changes directly from -[infin] to -+[infin] somewhere between each negative integer - ['these cases are not handled correctly]. - -[*For these reasons results should be treated with extreme caution when /n/ is large and x negative]. - -[h4 Testing] - -Testing is against Mathematica generated spot values to 35 digit precision. - -[h4 Implementation] - -For x < 0 the following reflection formula is used: - -[equation polygamma2] - -The n'th derivative of ['cot(x)] is tabulated for small /n/, and for larger n -has the general form: - -[equation polygamma3] - -The coefficients of the cosine terms can be calculated iteratively starting -from ['C[sub 1,0] = -1] and then using - -[equation polygamma7] - -to generate coefficients for n+1. - -Note that every other coefficient is zero, and therefore what we have are -even or odd polynomials depending on whether n is even or odd. - -Once x is positive then we have two methods available to us, for small x -we use the series expansion: - -[equation polygamma4] - -Note that the evaluation of zeta functions at integer values is essentially a table lookup -as __zeta is optimized for those cases. - -For large x we use the asymptotic expansion: - -[equation polygamma5] - -For x in-between the two extremes we use the relation: - -[equation polygamma6] - -to make x large enough for the asymptotic expansion to be used. - -There are also two special cases: - -[equation polygamma8] - -[equation polygamma9] - -[endsect][/section:polygamma The Polygamma Function] - -[/ - Copyright 2014 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/sf/pow.qbk b/boost/libs/math/doc/sf/pow.qbk deleted file mode 100644 index 59f33555..00000000 --- a/boost/libs/math/doc/sf/pow.qbk +++ /dev/null @@ -1,157 +0,0 @@ -[section:ct_pow Compile Time Power of a Runtime Base] - -The `pow` function effectively computes the compile-time integral -power of a run-time base. - -[h4 Synopsis] - -[@../../../../boost/math/special_functions/pow.hpp `#include `] - - namespace boost { namespace math { - - template - ``__sf_result`` pow(T base); - - template - ``__sf_result`` pow(T base, const Policy& policy); - - }} - -[h4 Rationale and Usage] - -Computing the power of a number with an exponent that is known -at compile time is a common need for programmers. In such cases, -the usual method is to avoid the overhead implied by -the `pow`, `powf` and `powl` C functions by hardcoding an expression -such as: - - // Hand-written 8th power of a 'base' variable - double result = base*base*base*base*base*base*base*base; - -However, this kind of expression is not really readable (knowing the -value of the exponent involves counting the number of occurrences of /base/), -error-prone (it's easy to forget an occurrence), syntactically bulky, and -non-optimal in terms of performance. - -The pow function of Boost.Math helps writing this kind expression along -with solving all the problems listed above: - - // 8th power of a 'base' variable using math::pow - double result = pow<8>(base); - -The expression is now shorter, easier to read, safer, and even faster. -Indeed, `pow` will compute the expression such that only log2(N) -products are made for a power of N. For instance in the -example above, the resulting expression will be the same as if we had -written this, with only one computation of each identical subexpression: - - // Internal effect of pow<8>(base) - double result = ((base*base)*(base*base))*((base*base)*(base*base)); - -Only 3 different products were actually computed. - - -[h4 Return Type] - -The return type of these functions is computed using the __arg_promotion_rules. -For example: - -* If T is a `float`, the return type is a `float`. -* If T is a `long double`, the return type is a `long double`. -* Otherwise, the return type is a `double`. - -[h4 Policies] - -[optional_policy] - -[h4 Error Handling] - -Two cases of errors can occur when using `pow`: - -* In case of null base and negative exponent, an __overflow_error occurs since -this operation is a division by 0 (it equals to 1/0). -* In case of null base and null exponent, an __indeterminate_result_error -occurs since the result of this operation is indeterminate. -Those errors follow the -[link math_toolkit.error_handling -general policies of error handling in Boost.Math]. - -The default overflow error policy is `throw_on_error`. A call like `pow<-2>(0)` -will thus throw a `std::overflow_error` exception. As shown in the -link given above, other error handling policies can be used: - -* `errno_on_error`: Sets `::errno` to `ERANGE` and returns `std::numeric_limits::infinity()`. -* `ignore_error`: Returns `std::numeric_limits::infinity()`. -* `user_error`: Returns the result of `boost::math::policies::user_overflow_error`: - this function must be defined by the user. - -The default indeterminate result error policy is `ignore_error`, which for this -function returns 1 since it's the most commonly chosen result for a power of 0. -Here again, other error handling policies can be used: - -* `throw_on_error`: Throws `std::domain_error` -* `errno_on_error`: Sets `::errno` to `EDOM` and returns 1. -* `user_error`: Returns the result of `boost::math::policies::user_indeterminate_result_error`: - this function must be defined by the user. - -Here is an example of error handling customization where we want to -specify the result that has to be returned in case of error. We will -thus use the `user_error` policy, by passing as second argument an -instance of an overflow_error policy templated with `user_error`: - - // First we open the boost::math::policies namespace and define the `user_overflow_error` - // by making it return the value we want in case of error (-1 here) - - namespace boost { namespace math { namespace policies { - template - T user_overflow_error(const char*, const char*, const T&) - { return -1; } - }}} - - - // Then we invoke pow and indicate that we want to use the user_error policy - using boost::math::policies; - double result = pow<-5>(base, policy >()); - - // We can now test the returned value and treat the special case if needed: - if (result == -1) - { - // there was an error, do something... - } - -Another way is to redefine the default `overflow_error` policy by using the -BOOST_MATH_OVERFLOW_ERROR_POLICY macro. Once the `user_overflow_error` function -is defined as above, we can achieve the same result like this: - - // Redefine the default error_overflow policy - #define BOOST_MATH_OVERFLOW_ERROR_POLICY user_error - #include - - // From this point, passing a policy in argument is no longer needed, a call like this one - // will return -1 in case of error: - - double result = pow<-5>(base); - - -[h4 Acknowledgements] - -Bruno Lalande submitted this addition to Boost.Math. - -''' -Thanks to Joaquín López Muñoz and Scott McMurray for their help in -improving the implementation. -''' - -[h4 References] - -D.E. Knuth, ['The Art of Computer Programming, Vol. 2: Seminumerical Algorithms], 2nd ed., Addison-Wesley, Reading, MA, 1981 - -[endsect] - -[/ - Copyright 2008 Bruno Lalande. - 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). -] - diff --git a/boost/libs/math/doc/sf/powers.qbk b/boost/libs/math/doc/sf/powers.qbk deleted file mode 100644 index e1ef2593..00000000 --- a/boost/libs/math/doc/sf/powers.qbk +++ /dev/null @@ -1,350 +0,0 @@ -[section:powers Basic Functions] - -[section:sin_pi sin_pi] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` sin_pi(T x); - - template - ``__sf_result`` sin_pi(T x, const ``__Policy``&); - - }} // namespaces - -Returns the sine of ['[pi]x]. - -The return type of this function is computed using the __arg_promotion_rules: -the return is `double` when /x/ is an integer type and T otherwise. - -[optional_policy] - -This function performs exact all-integer arithmetic argument reduction before computing the sine of ['[pi]x]. - -[table_sin_pi] - -[endsect] - -[section:cos_pi cos_pi] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` cos_pi(T x); - - template - ``__sf_result`` cos_pi(T x, const ``__Policy``&); - - }} // namespaces - -Returns the cosine of ['[pi]x]. - -The return type of this function is computed using the __arg_promotion_rules: -the return is `double` when /x/ is an integer type and T otherwise. - -[optional_policy] - -This function performs exact all-integer arithmetic argument reduction before computing the cosine of ['[pi]x]. - -[table_cos_pi] - -[endsect] - -[section:log1p log1p] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` log1p(T x); - - template - ``__sf_result`` log1p(T x, const ``__Policy``&); - - }} // namespaces - -Returns the natural logarithm of `x+1`. - -The return type of this function is computed using the __arg_promotion_rules: -the return is `double` when /x/ is an integer type and T otherwise. - -[optional_policy] - -There are many situations where it is desirable to compute `log(x+1)`. -However, for small `x` then `x+1` suffers from catastrophic cancellation errors -so that `x+1 == 1` and `log(x+1) == 0`, when in fact for very small x, the -best approximation to `log(x+1)` would be `x`. `log1p` calculates the best -approximation to `log(1+x)` using a Taylor series expansion for accuracy -(less than __te). -Alternatively note that there are faster methods available, -for example using the equivalence: - - log(1+x) == (log(1+x) * x) / ((1+x) - 1) - -However, experience has shown that these methods tend to fail quite spectacularly -once the compiler's optimizations are turned on, consequently they are -used only when known not to break with a particular compiler. -In contrast, the series expansion method seems to be reasonably -immune to optimizer-induced errors. - -Finally when BOOST_HAS_LOG1P is defined then the `float/double/long double` -specializations of this template simply forward to the platform's -native (POSIX) implementation of this function. - -The following graph illustrates the behaviour of log1p: - -[graph log1p] - -[h4 Accuracy] - -For built in floating point types `log1p` -should have approximately 1 epsilon accuracy. - -[table_log1p] - -[h4 Testing] - -A mixture of spot test sanity checks, and random high precision test values -calculated using NTL::RR at 1000-bit precision. - -[endsect] - -[section:expm1 expm1] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` expm1(T x); - - template - ``__sf_result`` expm1(T x, const ``__Policy``&); - - }} // namespaces - -Returns e[super x] - 1. - -The return type of this function is computed using the __arg_promotion_rules: -the return is `double` when /x/ is an integer type and T otherwise. - -[optional_policy] - -For small x, then __ex is very close to 1, as a result calculating __exm1 results -in catastrophic cancellation errors when x is small. `expm1` calculates __exm1 using -rational approximations (for up to 128-bit long doubles), otherwise via -a series expansion when x is small (giving an accuracy of less than __te). - -Finally when BOOST_HAS_EXPM1 is defined then the `float/double/long double` -specializations of this template simply forward to the platform's -native (POSIX) implementation of this function. - -The following graph illustrates the behaviour of expm1: - -[graph expm1] - -[h4 Accuracy] - -For built in floating point types `expm1` -should have approximately 1 epsilon accuracy. - -[table_expm1] - -[h4 Testing] - -A mixture of spot test sanity checks, and random high precision test values -calculated using NTL::RR at 1000-bit precision. - -[endsect] - -[section:cbrt cbrt] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` cbrt(T x); - - template - ``__sf_result`` cbrt(T x, const ``__Policy``&); - - }} // namespaces - -Returns the cubed root of x: x[super 1/3]. - -The return type of this function is computed using the __arg_promotion_rules: -the return is `double` when /x/ is an integer type and T otherwise. - -[optional_policy] - -Implemented using Halley iteration. - -The following graph illustrates the behaviour of cbrt: - -[graph cbrt] - -[h4 Accuracy] - -For built in floating-point types `cbrt` -should have approximately 2 epsilon accuracy. - -[table_cbrt] - -[h4 Testing] - -A mixture of spot test sanity checks, and random high precision test values -calculated using NTL::RR at 1000-bit precision. - -[endsect] - -[section:sqrt1pm1 sqrt1pm1] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` sqrt1pm1(T x); - - template - ``__sf_result`` sqrt1pm1(T x, const ``__Policy``&); - - }} // namespaces - -Returns `sqrt(1+x) - 1`. - -The return type of this function is computed using the __arg_promotion_rules: -the return is `double` when /x/ is an integer type and T otherwise. - -[optional_policy] - -This function is useful when you need the difference between sqrt(x) and 1, when -x is itself close to 1. - -Implemented in terms of `log1p` and `expm1`. - -The following graph illustrates the behaviour of sqrt1pm1: - -[graph sqrt1pm1] - -[h4 Accuracy] - -For built in floating-point types `sqrt1pm1` -should have approximately 3 epsilon accuracy. - -[table_sqrt1pm1] - -[h4 Testing] - -A selection of random high precision test values -calculated using NTL::RR at 1000-bit precision. - -[endsect] - -[section:powm1 powm1] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` powm1(T1 x, T2 y); - - template - ``__sf_result`` powm1(T1 x, T2 y, const ``__Policy``&); - - }} // namespaces - -Returns x[super y ] - 1. - -The return type of this function is computed using the __arg_promotion_rules -when T1 and T2 are dufferent types. - -[optional_policy] - -There are two domains where this is useful: when y is very small, or when -x is close to 1. - -Implemented in terms of `expm1`. - -The following graph illustrates the behaviour of powm1: - -[graph powm1] - -[h4 Accuracy] - -Should have approximately 2-3 epsilon accuracy. - -[table_powm1] - -[h4 Testing] - -A selection of random high precision test values -calculated using NTL::RR at 1000-bit precision. - -[endsect] - -[section:hypot hypot] - - template - ``__sf_result`` hypot(T1 x, T2 y); - - template - ``__sf_result`` hypot(T1 x, T2 y, const ``__Policy``&); - -__effects computes [equation hypot] -in such a way as to avoid undue underflow and overflow. - -The return type of this function is computed using the __arg_promotion_rules -when T1 and T2 are of different types. - -[optional_policy] - -When calculating [equation hypot] it's quite easy for the intermediate terms to either -overflow or underflow, even though the result is in fact perfectly representable. - -[h4 Implementation] - -The function is even and symmetric in x and y, so first take assume -['x,y > 0] and ['x > y] (we can permute the arguments if this is not the case). - -Then if ['x * [epsilon][space] >= y] we can simply return /x/. - -Otherwise the result is given by: - -[equation hypot2] - -[endsect] - -[include pow.qbk] - - -[endsect][/section:powers Logs, Powers, Roots and Exponentials] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/sf/sinc.qbk b/boost/libs/math/doc/sf/sinc.qbk deleted file mode 100644 index 4a83df0e..00000000 --- a/boost/libs/math/doc/sf/sinc.qbk +++ /dev/null @@ -1,110 +0,0 @@ -[/ math.qbk - Copyright 2006 Hubert Holin and John Maddock. - 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). -] - -[section:sinc Sinus Cardinal and Hyperbolic Sinus Cardinal Functions] - -[section:sinc_overview Sinus Cardinal and Hyperbolic Sinus Cardinal Functions Overview] - -The [@http://mathworld.wolfram.com/SincFunction.html Sinus Cardinal family of functions] -(indexed by the family of indices [^a > 0]) -is defined by - -[equation special_functions_blurb20] - -it sees heavy use in signal processing tasks. - -By analogy, the -[@http://mathworld.wolfram.com/SinhcFunction.htm Hyperbolic Sinus Cardinal] -family of functions -(also indexed by the family of indices [^a > 0]) is defined by - -[equation special_functions_blurb22] - -These two families of functions are composed of entire functions. - -These functions (__sinc_pi and __sinhc_pi) are needed by -[@http://www.boost.org/libs/math/quaternion/quaternion.html our implementation] -of [@http://mathworld.wolfram.com/Quaternion.html quaternions] -and [@http://mathworld.wolfram.com/Octonion.html octonions]. - -[: ['[*Sinus Cardinal of index pi (purple) and Hyperbolic Sinus Cardinal of index pi (red) on R]]] -[: [$../graphs/sinc_pi_and_sinhc_pi_on_r.png]] - -[endsect] - -[section sinc_pi] - -`` -#include -`` - - template - ``__sf_result`` sinc_pi(const T x); - - template - ``__sf_result`` sinc_pi(const T x, const ``__Policy``&); - - template class U> - U sinc_pi(const U x); - - template class U, class ``__Policy``> - U sinc_pi(const U x, const ``__Policy``&); - -Computes -[link math_toolkit.sinc.sinc_overview -the Sinus Cardinal] of x: - - sinc_pi(x) = sin(x) / x - -The second form is for complex numbers, -quaternions, octonions etc. Taylor series are used at the origin -to ensure accuracy. - -[graph sinc_pi] - -[optional_policy] - -[endsect] - -[section sinhc_pi] - -`` -#include -`` - - template - ``__sf_result`` sinhc_pi(const T x); - - template - ``__sf_result`` sinhc_pi(const T x, const ``__Policy``&); - - template class U> - U sinhc_pi(const U x); - - template class U, class ``__Policy``> - U sinhc_pi(const U x, const ``__Policy``&); - -Computes http://mathworld.wolfram.com/SinhcFunction.html -[link math_toolkit.sinc.sinc_overview -the Hyperbolic Sinus Cardinal] of x: - - sinhc_pi(x) = sinh(x) / x - -The second form is for -complex numbers, quaternions, octonions etc. Taylor series are used at the origin -to ensure accuracy. - -The return type of the first form is computed using the __arg_promotion_rules -when T is an integer type. - -[optional_policy] - -[graph sinhc_pi] - -[endsect] - -[endsect] diff --git a/boost/libs/math/doc/sf/spherical_harmonic.qbk b/boost/libs/math/doc/sf/spherical_harmonic.qbk deleted file mode 100644 index 830521f9..00000000 --- a/boost/libs/math/doc/sf/spherical_harmonic.qbk +++ /dev/null @@ -1,144 +0,0 @@ -[section:sph_harm Spherical Harmonics] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - std::complex<``__sf_result``> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi); - - template - std::complex<``__sf_result``> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi, const ``__Policy``&); - - template - ``__sf_result`` spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi); - - template - ``__sf_result`` spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi, const ``__Policy``&); - - template - ``__sf_result`` spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi); - - template - ``__sf_result`` spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -The return type of these functions is computed using the __arg_promotion_rules -when T1 and T2 are different types. - -[optional_policy] - - template - std::complex<``__sf_result``> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi); - - template - std::complex<``__sf_result``> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi, const ``__Policy``&); - -Returns the value of the Spherical Harmonic Y[sub n][super m](theta, phi): - -[equation spherical_0] - -The spherical harmonics Y[sub n][super m](theta, phi) are the angular -portion of the solution to Laplace's equation in spherical coordinates -where azimuthal symmetry is not present. - -[caution Care must be taken in correctly identifying the arguments to this -function: [theta][space] is taken as the polar (colatitudinal) coordinate -with [theta][space] in \[0, [pi]\], and [phi][space] as the azimuthal (longitudinal) -coordinate with [phi][space] in \[0,2[pi]). This is the convention used in Physics, -and matches the definition used by -[@http://documents.wolfram.com/mathematica/functions/SphericalHarmonicY -Mathematica in the function SpericalHarmonicY], -but is opposite to the usual mathematical conventions. - -Some other sources include an additional Condon-Shortley phase term of -(-1)[super m] in the definition of this function: note however that our -definition of the associated Legendre polynomial already includes this term. - -This implementation returns zero for m > n - -For [theta][space] outside \[0, [pi]\] and [phi][space] outside \[0, 2[pi]\] this -implementation follows the convention used by Mathematica: -the function is periodic with period [pi][space] in [theta][space] and 2[pi][space] in -[phi]. Please note that this is not the behaviour one would get -from a casual application of the function's definition. Cautious users -should keep [theta][space] and [phi][space] to the range \[0, [pi]\] and -\[0, 2[pi]\] respectively. - -See: [@http://mathworld.wolfram.com/SphericalHarmonic.html -Weisstein, Eric W. "Spherical Harmonic." -From MathWorld--A Wolfram Web Resource]. ] - - template - ``__sf_result`` spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi); - - template - ``__sf_result`` spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi, const ``__Policy``&); - -Returns the real part of Y[sub n][super m](theta, phi): - -[equation spherical_1] - - template - ``__sf_result`` spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi); - - template - ``__sf_result`` spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi, const ``__Policy``&); - -Returns the imaginary part of Y[sub n][super m](theta, phi): - -[equation spherical_2] - -[h4 Accuracy] - -The following table shows peak errors for various domains of input arguments. -Note that only results for the widest floating point type on the system are -given as narrower types have __zero_error. Peak errors are the same -for both the real and imaginary parts, as the error is dominated by -calculation of the associated Legendre polynomials: especially near the -roots of the associated Legendre function. - -All values are in units of epsilon. - -[table_spherical_harmonic_r] - -[table_spherical_harmonic_i] - -Note that the worst errors occur when the degree increases, values greater than -~120 are very unlikely to produce sensible results, especially -when the order is also large. Further the relative errors -are likely to grow arbitrarily large when the function is very close to a root. - -[h4 Testing] - -A mixture of spot tests of values calculated using functions.wolfram.com, -and randomly generated test data are -used: the test data was computed using -[@http://shoup.net/ntl/doc/RR.txt NTL::RR] at 1000-bit precision. - -[h4 Implementation] - -These functions are implemented fairly naively using the formulae -given above. Some extra care is taken to prevent roundoff error -when converting from polar coordinates (so for example the -['1-x[super 2]] term used by the associated Legendre functions is calculated -without roundoff error using ['x = cos(theta)], and -['1-x[super 2] = sin[super 2](theta)]). The limiting factor in the error -rates for these functions is the need to calculate values near the roots -of the associated Legendre functions. - -[endsect][/section:beta_function The Beta Function] -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/sf/test_html4_symbols.qbk b/boost/libs/math/doc/sf/test_html4_symbols.qbk deleted file mode 100644 index f19684d1..00000000 --- a/boost/libs/math/doc/sf/test_html4_symbols.qbk +++ /dev/null @@ -1,144 +0,0 @@ -[section:test_HTML_4_Symbols test HTML4 symbols] -[/ Examples of using all the Greek and Math symbols defined in HTML4_symbols.qbk] -[/ See http://www.htmlhelp.com/reference/html40/entities/symbols.html] - -[/ Also some miscellaneous math charaters added to this list - see the end.] - -[/ To use, enclose the template name in square brackets.] - - -[fnof], -[Alpha], -[Beta], -[Gamma], -[Delta], -[Epsilon], -[Zeta], -[Eta], -[Theta], -[Iota], -[Kappa], -[Lambda], -[Mu], -[Nu], -[Xi], -[Omicron], -[Pi], -[Rho], -[Sigma], -[Tau], -[Upsilon], -[Phi], -[Chi], -[Psi], -[Omega], -[alpha], -[beta], -[gamma], -[delta], -[epsilon], -[zeta], -[eta], -[theta], -[iota], -[kappa], -[lambda], -[mu], -[nu], -[xi], -[omicron], -[pi], -[rho], -[sigmaf], -[sigma], -[tau], -[upsilon], -[phi], -[chi], -[psi], -[omega], -[thetasym], -[upsih], -[piv], -[bull], -[hellip], -[prime], -[Prime], -[oline], -[frasl], -[weierp], -[image], -[real], -[trade], -[alefsym], -[larr], -[uarr], -[rarr], -[darr], -[harr], -[crarr], -[lArr], -[uArr], -[rArr], -[dArr], -[hArr], -[forall], -[part], -[exist], -[empty], -[nabla], -[isin], -[notin], -[ni], -[prod], -[sum], -[minus], -[lowast], -[radic], -[prop], -[infin], -[ang], -[and], -[or], -[cap], -[cup], -[int], -[there4], -[sim], -[cong], -[asymp], -[ne], -[equiv], -[le], -[ge], -[subset], -[superset], -[nsubset], -[sube], -[supe], -[oplus], -[otimes], -[perp], -[sdot], -[lceil], -[rceil], -[lfloor], -[rfloor], -[lang], -[rang], -[loz], -[spades], -[clubs], -[hearts], -[diams], - -[endsect] - -[/ test_MTML4_symbols.qbk - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - - diff --git a/boost/libs/math/doc/sf/tgamma.qbk b/boost/libs/math/doc/sf/tgamma.qbk deleted file mode 100644 index 1146a1cd..00000000 --- a/boost/libs/math/doc/sf/tgamma.qbk +++ /dev/null @@ -1,141 +0,0 @@ -[section:tgamma Gamma] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` tgamma(T z); - - template - ``__sf_result`` tgamma(T z, const ``__Policy``&); - - template - ``__sf_result`` tgamma1pm1(T dz); - - template - ``__sf_result`` tgamma1pm1(T dz, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - - template - ``__sf_result`` tgamma(T z); - - template - ``__sf_result`` tgamma(T z, const ``__Policy``&); - -Returns the "true gamma" (hence name tgamma) of value z: - -[equation gamm1] - -[graph tgamma] - -[optional_policy] - -There are effectively two versions of the [@http://en.wikipedia.org/wiki/Gamma_function tgamma] -function internally: a fully -generic version that is slow, but reasonably accurate, and a much more -efficient approximation that is used where the number of digits in the significand -of T correspond to a certain __lanczos. In practice any built in -floating point type you will encounter has an appropriate __lanczos -defined for it. It is also possible, given enough machine time, to generate -further __lanczos's using the program libs/math/tools/lanczos_generator.cpp. - -The return type of this function is computed using the __arg_promotion_rules: -the result is `double` when T is an integer type, and T otherwise. - - template - ``__sf_result`` tgamma1pm1(T dz); - - template - ``__sf_result`` tgamma1pm1(T dz, const ``__Policy``&); - -Returns `tgamma(dz + 1) - 1`. Internally the implementation does not make -use of the addition and subtraction implied by the definition, leading to -accurate results even for very small `dz`. However, the implementation is -capped to either 35 digit accuracy, or to the precision of the __lanczos -associated with type T, whichever is more accurate. - -The return type of this function is computed using the __arg_promotion_rules: -the result is `double` when T is an integer type, and T otherwise. - -[optional_policy] - -[h4 Accuracy] - -The following table shows the peak errors (in units of epsilon) -found on various platforms with various floating point types, -along with comparisons to other common libraries. -Unless otherwise specified any floating point type that is narrower -than the one shown will have __zero_error. - -[table_tgamma] - -[table_tgamma1pm1] - -[h4 Testing] - -The gamma is relatively easy to test: factorials and half-integer factorials -can be calculated exactly by other means and compared with the gamma function. -In addition, some accuracy tests in known tricky areas were computed at high precision -using the generic version of this function. - -The function `tgamma1pm1` is tested against values calculated very naively -using the formula `tgamma(1+dz)-1` with a lanczos approximation accurate -to around 100 decimal digits. - -[h4 Implementation] - -The generic version of the `tgamma` function is implemented Sterling's approximation -for lgamma for large z: - -[equation gamma6] - -Following exponentiation, downward recursion is then used for small values of z. - -For types of known precision the __lanczos is used, a traits class -`boost::math::lanczos::lanczos_traits` maps type T to an appropriate -approximation. - -For z in the range -20 < z < 1 then recursion is used to shift to z > 1 via: - -[equation gamm3] - -For very small z, this helps to preserve the identity: - -[equation gamm4] - -For z < -20 the reflection formula: - -[equation gamm5] - -is used. Particular care has to be taken to evaluate the [^ z * sin([pi][space] * z)] part: -a special routine is used to reduce z prior to multiplying by [pi][space] to ensure that the -result in is the range [0, [pi]/2]. Without this an excessive amount of error occurs -in this region (which is hard enough already, as the rate of change near a negative pole -is /exceptionally/ high). - -Finally if the argument is a small integer then table lookup of the factorial -is used. - -The function `tgamma1pm1` is implemented using rational approximations [jm_rationals] in the -region `-0.5 < dz < 2`. These are the same approximations (and internal routines) -that are used for __lgamma, and so aren't detailed further here. The result of -the approximation is `log(tgamma(dz+1))` which can fed into __expm1 to give -the desired result. Outside the range `-0.5 < dz < 2` then the naive formula -`tgamma1pm1(dz) = tgamma(dz+1)-1` can be used directly. - -[endsect][/section:tgamma The Gamma Function] -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/sf/trigamma.qbk b/boost/libs/math/doc/sf/trigamma.qbk deleted file mode 100644 index 966ec2f6..00000000 --- a/boost/libs/math/doc/sf/trigamma.qbk +++ /dev/null @@ -1,79 +0,0 @@ -[section:trigamma Trigamma] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` trigamma(T z); - - template - ``__sf_result`` trigamma(T z, const ``__Policy``&); - - }} // namespaces - -[h4 Description] - -Returns the trigamma function of /x/. Trigamma is defined as the -derivative of the digamma function: - -[equation trigamma1] - -[graph trigamma] - -[optional_policy] - -The return type of this function is computed using the __arg_promotion_rules: -the result is of type `double` when T is an integer type, and type T otherwise. - -[h4 Accuracy] - -The following table shows the peak errors (in units of epsilon) -found on various platforms with various floating point types. -Unless otherwise specified any floating point type that is narrower -than the one shown will have __zero_error. - -[table_trigamma] - -As shown above, error rates are generally very low for built in types. -For multiprecision types, error rates are typically in the order of a -few epsilon. - -[h4 Testing] - -Testing is against Mathematica generated spot values to 35 digit precision. - -[h4 Implementation] - -The arbitrary precision version of this function simply calls __polygamma. - -For built in fixed precision types, negative arguments are first made positive via: - -[equation trigamma2] - -Then arguments in the range \[0, 1) are shifted to >= 1 via: - -[equation trigamma3] - -Then evaluation is via one of a number of rational approximations, for small x these are -of the form: - -[equation trigamma4] - -and for large x of the form: - -[equation trigamma5] - -[endsect][/section:digamma The Trigamma Function] - -[/ - Copyright 2014 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/sf/zeta.qbk b/boost/libs/math/doc/sf/zeta.qbk deleted file mode 100644 index b0ba8352..00000000 --- a/boost/libs/math/doc/sf/zeta.qbk +++ /dev/null @@ -1,119 +0,0 @@ -[section:zeta Riemann Zeta Function] - -[h4 Synopsis] - -`` -#include -`` - - namespace boost{ namespace math{ - - template - ``__sf_result`` zeta(T z); - - template - ``__sf_result`` zeta(T z, const ``__Policy``&); - - }} // namespaces - -The return type of these functions is computed using the __arg_promotion_rules: -the return type is `double` if T is an integer type, and T otherwise. - -[optional_policy] - -[h4 Description] - - template - ``__sf_result`` zeta(T z); - - template - ``__sf_result`` zeta(T z, const ``__Policy``&); - -Returns the [@http://mathworld.wolfram.com/RiemannZetaFunction.html zeta function] -of z: - -[equation zeta1] - -[graph zeta1] - -[graph zeta2] - -[h4 Accuracy] - -The following table shows the peak errors (in units of epsilon) -found on various platforms with various floating point types, -along with comparisons to the __gsl and __cephes libraries. -Unless otherwise specified any floating point type that is narrower -than the one shown will have __zero_error. - -[table_zeta] - -[h4 Testing] - -The tests for these functions come in two parts: -basic sanity checks use spot values calculated using -[@http://functions.wolfram.com/webMathematica/FunctionEvaluation.jsp?name=Zeta Mathworld's online evaluator], -while accuracy checks use high-precision test values calculated at 1000-bit precision with -[@http://shoup.net/ntl/doc/RR.txt NTL::RR] and this implementation. -Note that the generic and type-specific -versions of these functions use differing implementations internally, so this -gives us reasonably independent test data. Using our test data to test other -"known good" implementations also provides an additional sanity check. - -[h4 Implementation] - -All versions of these functions first use the usual reflection formulas -to make their arguments positive: - -[equation zeta3] - -The generic versions of these functions are implemented using the series: - -[equation zeta6] - -When the significand (mantissa) size is recognised -(currently for 53, 64 and 113-bit reals, plus single-precision 24-bit handled via promotion to double) -then a series of rational approximations [jm_rationals] are used. - -For 0 < z < 1 the approximating form is: - -[equation zeta4] - -For a rational approximation R(1-z) and a constant C. - -For 1 < z < 4 the approximating form is: - -[equation zeta5] - -For a rational approximation R(n-z) and a constant C and integer n. - -For z > 4 the approximating form is: - -[zeta](z) = 1 + e[super R(z - n)] - -For a rational approximation R(z-n) and integer n, note that the accuracy -required for R(z-n) is not full machine precision, but an absolute error -of: [epsilon]/R(0). This saves us quite a few digits when dealing with large -z, especially when [epsilon] is small. - -Finally, there are some special cases for integer arguments, there are -closed forms for negative or even integers: - -[equation zeta7] - -[equation zeta8] - -[equation zeta9] - -and for positive odd integers we simply cache pre-computed values as these are of great -benefit to some infinite series calculations. - -[endsect] -[/ :error_function The Error Functions] - -[/ - Copyright 2006 John Maddock and Paul A. Bristow. - 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). -] diff --git a/boost/libs/math/doc/tr1/c99_ref.qbk b/boost/libs/math/doc/tr1/c99_ref.qbk deleted file mode 100644 index 5ffe0166..00000000 --- a/boost/libs/math/doc/tr1/c99_ref.qbk +++ /dev/null @@ -1,299 +0,0 @@ -[section:c99 C99 C Functions] - -[h4 Supported C99 Functions] - - namespace boost{ namespace math{ namespace tr1{ extern "C"{ - - typedef unspecified float_t; - typedef unspecified double_t; - - double acosh(double x); - float acoshf(float x); - long double acoshl(long double x); - - double asinh(double x); - float asinhf(float x); - long double asinhl(long double x); - - double atanh(double x); - float atanhf(float x); - long double atanhl(long double x); - - double cbrt(double x); - float cbrtf(float x); - long double cbrtl(long double x); - - double copysign(double x, double y); - float copysignf(float x, float y); - long double copysignl(long double x, long double y); - - double erf(double x); - float erff(float x); - long double erfl(long double x); - - double erfc(double x); - float erfcf(float x); - long double erfcl(long double x); - - double expm1(double x); - float expm1f(float x); - long double expm1l(long double x); - - double fmax(double x, double y); - float fmaxf(float x, float y); - long double fmaxl(long double x, long double y); - - double fmin(double x, double y); - float fminf(float x, float y); - long double fminl(long double x, long double y); - - double hypot(double x, double y); - float hypotf(float x, float y); - long double hypotl(long double x, long double y); - - double lgamma(double x); - float lgammaf(float x); - long double lgammal(long double x); - - long long llround(double x); - long long llroundf(float x); - long long llroundl(long double x); - - double log1p(double x); - float log1pf(float x); - long double log1pl(long double x); - - long lround(double x); - long lroundf(float x); - long lroundl(long double x); - - double nextafter(double x, double y); - float nextafterf(float x, float y); - long double nextafterl(long double x, long double y); - - double nexttoward(double x, long double y); - float nexttowardf(float x, long double y); - long double nexttowardl(long double x, long double y); - - double round(double x); - float roundf(float x); - long double roundl(long double x); - - double tgamma(double x); - float tgammaf(float x); - long double tgammal(long double x); - - double trunc(double x); - float truncf(float x); - long double truncl(long double x); - - }}}} // namespaces - -In addition sufficient additional overloads of the `double` versions of the -above functions are provided, so that calling the function with any mixture -of `float`, `double`, `long double`, or /integer/ arguments is supported, with the -return type determined by the __arg_promotion_rules. - -For example: - - acoshf(2.0f); // float version, returns float. - acosh(2.0f); // also calls the float version and returns float. - acosh(2.0); // double version, returns double. - acoshl(2.0L); // long double version, returns a long double. - acosh(2.0L); // also calls the long double version. - acosh(2); // integer argument is treated as a double, returns double. - -[h4 Quick Reference] - -More detailed descriptions of these functions are available in the -C99 standard. - - typedef unspecified float_t; - typedef unspecified double_t; - -In this implementation `float_t` is the same as type `float`, and -`double_t` the same as type `double` unless the preprocessor symbol -FLT_EVAL_METHOD is defined, in which case these are set as follows: - -[table -[[FLT_EVAL_METHOD][float_t][double_t]] -[[0][float][double]] -[[1][double][double]] -[[2][long double][long double]] -] - - double acosh(double x); - float acoshf(float x); - long double acoshl(long double x); - -Returns the inverse hyperbolic cosine of /x/. - -See also __acosh for the full template (header only) version of this function. - - double asinh(double x); - float asinhf(float x); - long double asinhl(long double x); - -Returns the inverse hyperbolic sine of /x/. - -See also __asinh for the full template (header only) version of this function. - - double atanh(double x); - float atanhf(float x); - long double atanhl(long double x); - -Returns the inverse hyperbolic tangent of /x/. - -See also __atanh for the full template (header only) version of this function. - - double cbrt(double x); - float cbrtf(float x); - long double cbrtl(long double x); - -Returns the cubed root of /x/. - -See also __cbrt for the full template (header only) version of this function. - - double copysign(double x, double y); - float copysignf(float x, float y); - long double copysignl(long double x, long double y); - -Returns a value with the magnitude of /x/ and the sign of /y/. - - double erf(double x); - float erff(float x); - long double erfl(long double x); - -Returns the error function of /x/: - -[equation erf1] - -See also __erf for the full template (header only) version of this function. - - double erfc(double x); - float erfcf(float x); - long double erfcl(long double x); - -Returns the complementary error function of /x/ `1-erf(x)` without the loss -of precision implied by the subtraction. - -See also __erfc for the full template (header only) version of this function. - - double expm1(double x); - float expm1f(float x); - long double expm1l(long double x); - -Returns `exp(x)-1` without the loss -of precision implied by the subtraction. - -See also __expm1 for the full template (header only) version of this function. - - double fmax(double x, double y); - float fmaxf(float x, float y); - long double fmaxl(long double x, long double y); - -Returns the larger (most positive) of /x/ and /y/. - - double fmin(double x, double y); - float fminf(float x, float y); - long double fminl(long double x, long double y); - -Returns the smaller (most negative) of /x/ and /y/. - - double hypot(double x, double y); - float hypotf(float x, float y); - long double hypotl(long double x, long double y); - -Returns `sqrt(x*x + y*y)` without the danger of numeric overflow -implied by that formulation. - -See also __hypot for the full template (header only) version of this function. - - double lgamma(double x); - float lgammaf(float x); - long double lgammal(long double x); - -Returns the log of the gamma function of /x/. - -[equation lgamm1] - -See also __lgamma for the full template (header only) version of this function. - - long long llround(double x); - long long llroundf(float x); - long long llroundl(long double x); - -Returns the value /x/ rounded to the nearest integer as a `long long`: -equivalent to `floor(x + 0.5)` - -See also __llround for the full template (header only) version of this function. - - double log1p(double x); - float log1pf(float x); - long double log1pl(long double x); - -Returns the `log(x+1)` without the loss of precision -implied by that formulation. - -See also __log1p for the full template (header only) version of this function. - - long lround(double x); - long lroundf(float x); - long lroundl(long double x); - -Returns the value /x/ rounded to the nearest integer as a `long`: -equivalent to `floor(x + 0.5)` - -See also __lround for the full template (header only) version of this function. - - double nextafter(double x, double y); - float nextafterf(float x, float y); - long double nextafterl(long double x, long double y); - -Returns the next representable floating point number after /x/ -in the direction of /y/, or /x/ if `x == y`. - - double nexttoward(double x, long double y); - float nexttowardf(float x, long double y); - long double nexttowardl(long double x, long double y); - -As `nextafter`, but with /y/ always expressed as a `long double`. - - double round(double x); - float roundf(float x); - long double roundl(long double x); - -Returns the value /x/ rounded to the nearest integer: -equivalent to `floor(x + 0.5)` - -See also __round for the full template (header only) version of this function. - - double tgamma(double x); - float tgammaf(float x); - long double tgammal(long double x); - -Returns the gamma function of /x/: - -[equation gamm1] - -See also __tgamma for the full template (header only) version of this function. - - double trunc(double x); - float truncf(float x); - long double truncl(long double x); - -Returns /x/ truncated to the nearest integer. - -See also __trunc for the full template (header only) version of this function. - -See also [@http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf C99 ISO Standard] - -[endsect] - -[/ - Copyright 2008 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/tr1/tr1_ref.qbk b/boost/libs/math/doc/tr1/tr1_ref.qbk deleted file mode 100644 index 8ceabeca..00000000 --- a/boost/libs/math/doc/tr1/tr1_ref.qbk +++ /dev/null @@ -1,393 +0,0 @@ -[section:tr1_ref TR1 C Functions Quick Reference] - - -[h4 Supported TR1 Functions] - - namespace boost{ namespace math{ namespace tr1{ extern "C"{ - - // [5.2.1.1] associated Laguerre polynomials: - double assoc_laguerre(unsigned n, unsigned m, double x); - float assoc_laguerref(unsigned n, unsigned m, float x); - long double assoc_laguerrel(unsigned n, unsigned m, long double x); - - // [5.2.1.2] associated Legendre functions: - double assoc_legendre(unsigned l, unsigned m, double x); - float assoc_legendref(unsigned l, unsigned m, float x); - long double assoc_legendrel(unsigned l, unsigned m, long double x); - - // [5.2.1.3] beta function: - double beta(double x, double y); - float betaf(float x, float y); - long double betal(long double x, long double y); - - // [5.2.1.4] (complete) elliptic integral of the first kind: - double comp_ellint_1(double k); - float comp_ellint_1f(float k); - long double comp_ellint_1l(long double k); - - // [5.2.1.5] (complete) elliptic integral of the second kind: - double comp_ellint_2(double k); - float comp_ellint_2f(float k); - long double comp_ellint_2l(long double k); - - // [5.2.1.6] (complete) elliptic integral of the third kind: - double comp_ellint_3(double k, double nu); - float comp_ellint_3f(float k, float nu); - long double comp_ellint_3l(long double k, long double nu); - - // [5.2.1.8] regular modified cylindrical Bessel functions: - double cyl_bessel_i(double nu, double x); - float cyl_bessel_if(float nu, float x); - long double cyl_bessel_il(long double nu, long double x); - - // [5.2.1.9] cylindrical Bessel functions (of the first kind): - double cyl_bessel_j(double nu, double x); - float cyl_bessel_jf(float nu, float x); - long double cyl_bessel_jl(long double nu, long double x); - - // [5.2.1.10] irregular modified cylindrical Bessel functions: - double cyl_bessel_k(double nu, double x); - float cyl_bessel_kf(float nu, float x); - long double cyl_bessel_kl(long double nu, long double x); - - // [5.2.1.11] cylindrical Neumann functions; - // cylindrical Bessel functions (of the second kind): - double cyl_neumann(double nu, double x); - float cyl_neumannf(float nu, float x); - long double cyl_neumannl(long double nu, long double x); - - // [5.2.1.12] (incomplete) elliptic integral of the first kind: - double ellint_1(double k, double phi); - float ellint_1f(float k, float phi); - long double ellint_1l(long double k, long double phi); - - // [5.2.1.13] (incomplete) elliptic integral of the second kind: - double ellint_2(double k, double phi); - float ellint_2f(float k, float phi); - long double ellint_2l(long double k, long double phi); - - // [5.2.1.14] (incomplete) elliptic integral of the third kind: - double ellint_3(double k, double nu, double phi); - float ellint_3f(float k, float nu, float phi); - long double ellint_3l(long double k, long double nu, long double phi); - - // [5.2.1.15] exponential integral: - double expint(double x); - float expintf(float x); - long double expintl(long double x); - - // [5.2.1.16] Hermite polynomials: - double hermite(unsigned n, double x); - float hermitef(unsigned n, float x); - long double hermitel(unsigned n, long double x); - - // [5.2.1.18] Laguerre polynomials: - double laguerre(unsigned n, double x); - float laguerref(unsigned n, float x); - long double laguerrel(unsigned n, long double x); - - // [5.2.1.19] Legendre polynomials: - double legendre(unsigned l, double x); - float legendref(unsigned l, float x); - long double legendrel(unsigned l, long double x); - - // [5.2.1.20] Riemann zeta function: - double riemann_zeta(double); - float riemann_zetaf(float); - long double riemann_zetal(long double); - - // [5.2.1.21] spherical Bessel functions (of the first kind): - double sph_bessel(unsigned n, double x); - float sph_besself(unsigned n, float x); - long double sph_bessell(unsigned n, long double x); - - // [5.2.1.22] spherical associated Legendre functions: - double sph_legendre(unsigned l, unsigned m, double theta); - float sph_legendref(unsigned l, unsigned m, float theta); - long double sph_legendrel(unsigned l, unsigned m, long double theta); - - // [5.2.1.23] spherical Neumann functions; - // spherical Bessel functions (of the second kind): - double sph_neumann(unsigned n, double x); - float sph_neumannf(unsigned n, float x); - long double sph_neumannl(unsigned n, long double x); - - }}}} // namespaces - -In addition sufficient additional overloads of the `double` versions of the -above functions are provided, so that calling the function with any mixture -of `float`, `double`, `long double`, or /integer/ arguments is supported, with the -return type determined by the __arg_promotion_rules. - -For example: - - expintf(2.0f); // float version, returns float. - expint(2.0f); // also calls the float version and returns float. - expint(2.0); // double version, returns double. - expintl(2.0L); // long double version, returns a long double. - expint(2.0L); // also calls the long double version. - expint(2); // integer argument is treated as a double, returns double. - -[h4 Quick Reference] - - // [5.2.1.1] associated Laguerre polynomials: - double assoc_laguerre(unsigned n, unsigned m, double x); - float assoc_laguerref(unsigned n, unsigned m, float x); - long double assoc_laguerrel(unsigned n, unsigned m, long double x); - -The assoc_laguerre functions return: - -[equation laguerre_1] - -See also __laguerre for the full template (header only) version of this function. - - // [5.2.1.2] associated Legendre functions: - double assoc_legendre(unsigned l, unsigned m, double x); - float assoc_legendref(unsigned l, unsigned m, float x); - long double assoc_legendrel(unsigned l, unsigned m, long double x); - -The assoc_legendre functions return: - -[equation legendre_1b] - -See also __legendre for the full template (header only) version of this function. - - // [5.2.1.3] beta function: - double beta(double x, double y); - float betaf(float x, float y); - long double betal(long double x, long double y); - -Returns the beta function of /x/ and /y/: - -[equation beta1] - -See also __beta for the full template (header only) version of this function. - - // [5.2.1.4] (complete) elliptic integral of the first kind: - double comp_ellint_1(double k); - float comp_ellint_1f(float k); - long double comp_ellint_1l(long double k); - -Returns the complete elliptic integral of the first kind of /k/: - -[equation ellint6] - -See also __ellint_1 for the full template (header only) version of this function. - - // [5.2.1.5] (complete) elliptic integral of the second kind: - double comp_ellint_2(double k); - float comp_ellint_2f(float k); - long double comp_ellint_2l(long double k); - -Returns the complete elliptic integral of the second kind of /k/: - -[equation ellint7] - -See also __ellint_2 for the full template (header only) version of this function. - - // [5.2.1.6] (complete) elliptic integral of the third kind: - double comp_ellint_3(double k, double nu); - float comp_ellint_3f(float k, float nu); - long double comp_ellint_3l(long double k, long double nu); - -Returns the complete elliptic integral of the third kind of /k/ and /nu/: - -[equation ellint8] - -See also __ellint_3 for the full template (header only) version of this function. - - // [5.2.1.8] regular modified cylindrical Bessel functions: - double cyl_bessel_i(double nu, double x); - float cyl_bessel_if(float nu, float x); - long double cyl_bessel_il(long double nu, long double x); - -Returns the modified bessel function of the first kind of /nu/ and /x/: - -[equation mbessel2] - -See also __cyl_bessel_i for the full template (header only) version of this function. - - // [5.2.1.9] cylindrical Bessel functions (of the first kind): - double cyl_bessel_j(double nu, double x); - float cyl_bessel_jf(float nu, float x); - long double cyl_bessel_jl(long double nu, long double x); - -Returns the bessel function of the first kind of /nu/ and /x/: - -[equation bessel2] - -See also __cyl_bessel_j for the full template (header only) version of this function. - - // [5.2.1.10] irregular modified cylindrical Bessel functions: - double cyl_bessel_k(double nu, double x); - float cyl_bessel_kf(float nu, float x); - long double cyl_bessel_kl(long double nu, long double x); - -Returns the modified bessel function of the second kind of /nu/ and /x/: - -[equation mbessel3] - -See also __cyl_bessel_k for the full template (header only) version of this function. - - // [5.2.1.11] cylindrical Neumann functions; - // cylindrical Bessel functions (of the second kind): - double cyl_neumann(double nu, double x); - float cyl_neumannf(float nu, float x); - long double cyl_neumannl(long double nu, long double x); - -Returns the bessel function of the second kind (Neumann function) of /nu/ and /x/: - -[equation bessel3] - -See also __cyl_neumann for the full template (header only) version of this function. - - // [5.2.1.12] (incomplete) elliptic integral of the first kind: - double ellint_1(double k, double phi); - float ellint_1f(float k, float phi); - long double ellint_1l(long double k, long double phi); - -Returns the incomplete elliptic integral of the first kind of /k/ and /phi/: - -[equation ellint2] - -See also __ellint_1 for the full template (header only) version of this function. - - // [5.2.1.13] (incomplete) elliptic integral of the second kind: - double ellint_2(double k, double phi); - float ellint_2f(float k, float phi); - long double ellint_2l(long double k, long double phi); - -Returns the incomplete elliptic integral of the second kind of /k/ and /phi/: - -[equation ellint3] - -See also __ellint_2 for the full template (header only) version of this function. - - // [5.2.1.14] (incomplete) elliptic integral of the third kind: - double ellint_3(double k, double nu, double phi); - float ellint_3f(float k, float nu, float phi); - long double ellint_3l(long double k, long double nu, long double phi); - -Returns the incomplete elliptic integral of the third kind of /k/, /nu/ and /phi/: - -[equation ellint4] - -See also __ellint_3 for the full template (header only) version of this function. - - // [5.2.1.15] exponential integral: - double expint(double x); - float expintf(float x); - long double expintl(long double x); - -Returns the exponential integral Ei of /x/: - -[equation expint_i_1] - -See also __expint for the full template (header only) version of this function. - - // [5.2.1.16] Hermite polynomials: - double hermite(unsigned n, double x); - float hermitef(unsigned n, float x); - long double hermitel(unsigned n, long double x); - -Returns the n'th Hermite polynomial of /x/: - -[equation hermite_0] - -See also __hermite for the full template (header only) version of this function. - - // [5.2.1.18] Laguerre polynomials: - double laguerre(unsigned n, double x); - float laguerref(unsigned n, float x); - long double laguerrel(unsigned n, long double x); - -Returns the n'th Laguerre polynomial of /x/: - -[equation laguerre_0] - -See also __laguerre for the full template (header only) version of this function. - - // [5.2.1.19] Legendre polynomials: - double legendre(unsigned l, double x); - float legendref(unsigned l, float x); - long double legendrel(unsigned l, long double x); - -Returns the l'th Legendre polynomial of /x/: - -[equation legendre_0] - -See also __legendre for the full template (header only) version of this function. - - // [5.2.1.20] Riemann zeta function: - double riemann_zeta(double); - float riemann_zetaf(float); - long double riemann_zetal(long double); - -Returns the Riemann Zeta function of /x/: - -[equation zeta1] - -See also __zeta for the full template (header only) version of this function. - - // [5.2.1.21] spherical Bessel functions (of the first kind): - double sph_bessel(unsigned n, double x); - float sph_besself(unsigned n, float x); - long double sph_bessell(unsigned n, long double x); - -Returns the spherical Bessel function of the first kind of /x/ j[sub n](x): - -[equation sbessel2] - -See also __sph_bessel for the full template (header only) version of this function. - - // [5.2.1.22] spherical associated Legendre functions: - double sph_legendre(unsigned l, unsigned m, double theta); - float sph_legendref(unsigned l, unsigned m, float theta); - long double sph_legendrel(unsigned l, unsigned m, long double theta); - -Returns the spherical associated Legendre function of /l/, /m/ and /theta/: - -[equation spherical_3] - -See also __spherical_harmonic for the full template (header only) version of this function. - - // [5.2.1.23] spherical Neumann functions; - // spherical Bessel functions (of the second kind): - double sph_neumann(unsigned n, double x); - float sph_neumannf(unsigned n, float x); - long double sph_neumannl(unsigned n, long double x); - -Returns the spherical Neumann function of /x/ y[sub n](x): - -[equation sbessel2] - -See also __sph_bessel for the full template (header only) version of this function. - - - -[h4 Currently Unsupported TR1 Functions] - - // [5.2.1.7] confluent hypergeometric functions: - double conf_hyperg(double a, double c, double x); - float conf_hypergf(float a, float c, float x); - long double conf_hypergl(long double a, long double c, long double x); - - // [5.2.1.17] hypergeometric functions: - double hyperg(double a, double b, double c, double x); - float hypergf(float a, float b, float c, float x); - long double hypergl(long double a, long double b, long double c, - long double x); - -[note These two functions are not implemented as they are not believed -to be numerically stable.] - - -[endsect] - -[/ - Copyright 2008, 2009 John Maddock and Paul A. Bristow. - 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). -] - diff --git a/boost/libs/math/doc/win32_nmake.mak b/boost/libs/math/doc/win32_nmake.mak deleted file mode 100644 index be932f32..00000000 --- a/boost/libs/math/doc/win32_nmake.mak +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 2006 John Maddock, Paul A. Bristow and Xiaogang Zhang. -# 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). -# -# Example makefile that builds the docs. -# Note that all the following paths will have to be changed to match -# your actual installation paths. -# - -# Path to quickbook executable: -QB="C:/download/open/xml/bin/quickbook.exe" - -# Path to xsltproc: -XSLTPROC="C:/download/open/xml/bin/xsltproc-win32/xsltproc.exe" - -# Path to Boost Trunc: -BOOST=c:/data/boost/boost/trunk - -# Path to FO processor (XEP): -FO=C:/Progra~1/xep/xep.bat - -# Configuration options: -COMMON_XSL_PARAM=--stringparam admon.graphics "1" --stringparam body.start.indent "0pt" --stringparam chunk.first.sections "1" --stringparam chunk.section.depth "10" --stringparam fop.extensions "0" --stringparam generate.section.toc.level "10" --stringparam html.stylesheet "../../../../../../trunk/doc/html/boostbook.css" --stringparam navig.graphics "1" --stringparam page.margin.inner "0.5in" --stringparam page.margin.outer "0.5in" --stringparam paper.type "A4" --stringparam toc.max.depth "4" --stringparam toc.section.depth "10" --stringparam xep.extensions "1" -PDF_XSL_PARAM=--stringparam admon.graphics.extension ".svg" --stringparam use.role.for.mediaobject 1 --stringparam preferred.mediaobject.role print --stringparam admon.graphics.path "../html/images/" -HTML_XSL_PARAM= -PROJECT_NAME=math - -all : pdf html - -pdf : pdf/$(PROJECT_NAME).pdf -html : html/index.html - -xml/$(PROJECT_NAME).xml : - -mkdir xml - $(QB) --output-file=xml\$(PROJECT_NAME).xml $(PROJECT_NAME).qbk - -xml/$(PROJECT_NAME).docbook : xml\$(PROJECT_NAME).xml xml/catalog.xml - set XML_CATALOG_FILES=xml/catalog.xml - $(XSLTPROC) $(COMMON_XSL_PARAM) --xinclude -o "xml\$(PROJECT_NAME).docbook" "$(BOOST)\tools\boostbook\xsl\docbook.xsl" "xml\$(PROJECT_NAME).xml" - -xml/$(PROJECT_NAME).fo : xml\$(PROJECT_NAME).docbook xml/catalog.xml - set XML_CATALOG_FILES=xml/catalog.xml - $(XSLTPROC) $(COMMON_XSL_PARAM) $(PDF_XSL_PARAM) --xinclude -o "xml\$(PROJECT_NAME).fo" "$(BOOST)\tools\boostbook\xsl\fo.xsl" "xml\$(PROJECT_NAME).docbook" - -pdf/$(PROJECT_NAME).pdf : xml\$(PROJECT_NAME).fo - -mkdir pdf - set JAVA_HOME=C:/PROGRA~1/Java/j2re1.4.2_12 - call $(FO) xml\$(PROJECT_NAME).fo pdf\$(PROJECT_NAME).pdf - -html/index.html : xml\$(PROJECT_NAME).fo - -mkdir html - set XML_CATALOG_FILES=xml/catalog.xml - $(XSLTPROC) $(COMMON_XSL_PARAM) $(HTML_XSL_PARAM) --xinclude -o "html/" "$(BOOST)\tools\boostbook\xsl\html.xsl" "xml\$(PROJECT_NAME).docbook" - -xml/catalog.xml : - @echo < - - - - - - -<< - - - - - - -- cgit v1.2.3