diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-08-26 08:15:55 -0400 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-08-26 08:15:55 -0400 |
commit | bb4dd8289b351fae6b55e303f189127a394a1edd (patch) | |
tree | 77c9c35a31b1459dd7988c2448e797d142530c41 /libs/math/doc/sf_and_dist/html/math_toolkit | |
parent | 1a78a62555be32868418fe52f8e330c9d0f95d5a (diff) | |
download | boost-bb4dd8289b351fae6b55e303f189127a394a1edd.tar.gz boost-bb4dd8289b351fae6b55e303f189127a394a1edd.tar.bz2 boost-bb4dd8289b351fae6b55e303f189127a394a1edd.zip |
Imported Upstream version 1.51.0upstream/1.51.0
Diffstat (limited to 'libs/math/doc/sf_and_dist/html/math_toolkit')
264 files changed, 5277 insertions, 1778 deletions
diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders.html b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders.html index 01defc0f9b..c90615900e 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders.html @@ -38,7 +38,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/implementation.html b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/implementation.html index a11e168675..f39825a76e 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/implementation.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/implementation.html @@ -608,20 +608,25 @@ </pre> <p> 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". + not make use of the <a href="http://support.wolfram.com/technotes/fonts/windows/latestfonts.html" target="_top">Mathematica + 7 font</a> as this lacks sufficient Unicode information for it to be + used with either SVGMath or XEP "as is". </p> <p> Also note that the SVG files in the repository are almost certainly Windows-specific since they reference various Windows Fonts. </p> <p> - PNG files can be created from the SVG's using <a href="http://xmlgraphics.apache.org/batik/tools/rasterizer.html" target="_top">Batik</a> + PNG files can be created from the SVGs using <a href="http://xmlgraphics.apache.org/batik/tools/rasterizer.html" target="_top">Batik</a> and a command such as: </p> <pre class="programlisting">java -jar 'C:\download\open\batik-1.7\batik-rasterizer.jar' -dpi 120 *.svg</pre> <p> - Or using Inkscape and a command such as: + Or using Inkscape (File, Export bitmap, Drawing tab, bitmap size (default + size, 100 dpi), Filename (default). png) + </p> +<p> + or Using Cygwin, a command such as: </p> <pre class="programlisting">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); @@ -751,7 +756,7 @@ done</pre> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/lanczos.html b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/lanczos.html index 81c7afd1d9..c189b94859 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/lanczos.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/lanczos.html @@ -228,7 +228,7 @@ computing to float precision with double precision arithmetic. </p> <div class="table"> -<a name="math_toolkit.backgrounders.lanczos.optimal_choices_for_n_and_g_when_computing_with_guard_digits__source__pugh_"></a><p class="title"><b>Table 57. Optimal choices for N and g when computing with guard digits (source: +<a name="math_toolkit.backgrounders.lanczos.optimal_choices_for_n_and_g_when_computing_with_guard_digits__source__pugh_"></a><p class="title"><b>Table 58. Optimal choices for N and g when computing with guard digits (source: Pugh)</b></p> <div class="table-contents"><table class="table" summary="Optimal choices for N and g when computing with guard digits (source: Pugh)"> @@ -371,7 +371,7 @@ exactly matches the machine epsilon for the type in question. </p> <div class="table"> -<a name="math_toolkit.backgrounders.lanczos.optimum_value_for_n_and_g_when_computing_at_fixed_precision"></a><p class="title"><b>Table 58. Optimum value for N and g when computing at fixed precision</b></p> +<a name="math_toolkit.backgrounders.lanczos.optimum_value_for_n_and_g_when_computing_at_fixed_precision"></a><p class="title"><b>Table 59. Optimum value for N and g when computing at fixed precision</b></p> <div class="table-contents"><table class="table" summary="Optimum value for N and g when computing at fixed precision"> <colgroup> <col> @@ -560,7 +560,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/refs.html b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/refs.html index d2ec3fa39b..236f5da6ce 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/refs.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/refs.html @@ -203,7 +203,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/relative_error.html b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/relative_error.html index 3a5b06a284..f3f749d05a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/relative_error.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/relative_error.html @@ -107,7 +107,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/remez.html b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/remez.html index 3fa3b1938c..370a8d95ba 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/remez.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/backgrounders/remez.html @@ -528,7 +528,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/constants.html b/libs/math/doc/sf_and_dist/html/math_toolkit/constants.html new file mode 100644 index 0000000000..ac07998d59 --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/constants.html @@ -0,0 +1,59 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Mathematical Constants</title> +<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../index.html" title="Math Toolkit"> +<link rel="up" href="../index.html" title="Math Toolkit"> +<link rel="prev" href="extern_c/tr1_ref.html" title="TR1 C Functions Quick Reference"> +<link rel="next" href="constants/intro.html" title="Introduction"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="extern_c/tr1_ref.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="constants/intro.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_constants"> +<div class="titlepage"><div><div><h2 class="title" style="clear: both"> +<a name="math_toolkit.constants"></a><a class="link" href="constants.html" title="Mathematical Constants">Mathematical Constants</a> +</h2></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="constants/intro.html">Introduction</a></span></dt> +<dt><span class="section"><a href="constants/tutorial.html">Tutorial</a></span></dt> +<dd><dl> +<dt><span class="section"><a href="constants/tutorial/non_templ.html">Use in non-template + code</a></span></dt> +<dt><span class="section"><a href="constants/tutorial/templ.html">Use in template + code</a></span></dt> +<dt><span class="section"><a href="constants/tutorial/user_def.html">Use With + User Defined Types</a></span></dt> +</dl></dd> +<dt><span class="section"><a href="constants/constants.html">The Mathematical Constants</a></span></dt> +<dt><span class="section"><a href="constants/new_const.html">Defining New Constants</a></span></dt> +<dt><span class="section"><a href="constants/FAQ.html">FAQs</a></span></dt> +</dl></div> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="extern_c/tr1_ref.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="constants/intro.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/constants/FAQ.html b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/FAQ.html new file mode 100644 index 0000000000..0c5b058306 --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/FAQ.html @@ -0,0 +1,480 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>FAQs</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Math Toolkit"> +<link rel="up" href="../constants.html" title="Mathematical Constants"> +<link rel="prev" href="new_const.html" title="Defining New Constants"> +<link rel="next" href="../toolkit.html" title="Tools and Internal Details"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="new_const.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../constants.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../toolkit.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_constants_FAQ"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="math_toolkit.constants.FAQ"></a><a class="link" href="FAQ.html" title="FAQs">FAQs</a> +</h3></div></div></div> +<h5> +<a name="math_toolkit.constants.FAQ.h0"></a> + <span><a name="math_toolkit.constants.FAQ.why_are__emphasis_these__emphasis__constants_chosen_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.why_are__emphasis_these__emphasis__constants_chosen_">Why + are <span class="emphasis"><em>these</em></span> Constants Chosen?</a> + </h5> +<p> + It is, of course, impossible to please everyone with a list like this. + </p> +<p> + Some of the criteria we have used are: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + Used in Boost.Math. + </li> +<li class="listitem"> + Commonly used. + </li> +<li class="listitem"> + Expensive to compute. + </li> +<li class="listitem"> + Requested by users. + </li> +<li class="listitem"> + <a href="http://en.wikipedia.org/wiki/Mathematical_constant" target="_top">Used + in science and mathematics.</a> + </li> +<li class="listitem"> + No integer values (because so cheap to construct).<br> (You can easily + define your own if found convenient, for example: <code class="computeroutput"><span class="identifier">FPT</span> + <span class="identifier">one</span> <span class="special">=</span><span class="keyword">static_cast</span><span class="special"><</span><span class="identifier">FPT</span><span class="special">>(</span><span class="number">42</span><span class="special">);</span></code>). + </li> +</ul></div> +<h5> +<a name="math_toolkit.constants.FAQ.h1"></a> + <span><a name="math_toolkit.constants.FAQ.how_are_constants_named_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.how_are_constants_named_">How + are constants named?</a> + </h5> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + Not macros, so no upper case. + </li> +<li class="listitem"> + All lower case (following C++ standard names). + </li> +<li class="listitem"> + No CamelCase. + </li> +<li class="listitem"> + Underscore as _ delimiter between words. + </li> +<li class="listitem"> + Numbers spelt as words rather than decimal digits (except following pow). + </li> +<li class="listitem"> + Abbreviation conventions: + <div class="itemizedlist"><ul class="itemizedlist" type="circle"> +<li class="listitem"> + root for square root. + </li> +<li class="listitem"> + cbrt for cube root. + </li> +<li class="listitem"> + pow for pow function using decimal digits like pow23 for n<sup>2/3</sup>. + </li> +<li class="listitem"> + div for divided by or operator /. + </li> +<li class="listitem"> + minus for operator -, plus for operator +. + </li> +<li class="listitem"> + sqr for squared. + </li> +<li class="listitem"> + cubed for cubed n<sup>3</sup>. + </li> +<li class="listitem"> + words for greek, like π, ζ and Γ. + </li> +<li class="listitem"> + words like half, third, three_quarters, sixth for fractions. (Digit(s) + can get muddled). + </li> +<li class="listitem"> + log10 for log<sub>10</sub> + </li> +<li class="listitem"> + ln for log<sub>e</sub> + </li> +</ul></div> + </li> +</ul></div> +<h5> +<a name="math_toolkit.constants.FAQ.h2"></a> + <span><a name="math_toolkit.constants.FAQ.how_are_the_constants_derived_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.how_are_the_constants_derived_">How are + the constants derived?</a> + </h5> +<p> + 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). + </p> +<h5> +<a name="math_toolkit.constants.FAQ.h3"></a> + <span><a name="math_toolkit.constants.FAQ.how_accurate_are_the_constants_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.how_accurate_are_the_constants_">How + Accurate are the constants?</a> + </h5> +<p> + 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. + </p> +<h5> +<a name="math_toolkit.constants.FAQ.h4"></a> + <span><a name="math_toolkit.constants.FAQ.how_are_the_constants_tested_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.how_are_the_constants_tested_">How are + the constants tested?</a> + </h5> +<div class="orderedlist"><ol class="orderedlist" type="1"> +<li class="listitem"> + 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 <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">double</span> + <span class="identifier">epsilon</span></code>. + </li> +<li class="listitem"> + 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. + </li> +<li class="listitem"> + Comparison with independent published values, for example, using <a href="http://oeis.org/" target="_top">The On-Line Encyclopedia of Integer Sequences + (OEIS)</a> again using at least 35 decimal digits strings. + </li> +<li class="listitem"> + Comparison with independely calculated values using arbitrary precision + tools like <a href="http://www.wolfram.com/mathematica/" target="_top">Mathematica</a>, + again using at least 35 decimal digits literal strings. + </li> +</ol></div> +<div class="warning"><table border="0" summary="Warning"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../../../../../doc/src/images/warning.png"></td> +<th align="left">Warning</th> +</tr> +<tr><td align="left" valign="top"><p> + We have not yet been able to <span class="bold"><strong>check</strong></span> that + <span class="bold"><strong>all</strong></span> constants are accurate at the full + arbitrary precision, at present 100 decimal digits. But certain key values + like <code class="computeroutput"><span class="identifier">e</span></code> and <code class="computeroutput"><span class="identifier">pi</span></code> appear to be accurate and internal + consistencies suggest that others are this accurate too. + </p></td></tr> +</table></div> +<h5> +<a name="math_toolkit.constants.FAQ.h5"></a> + <span><a name="math_toolkit.constants.FAQ.why_is_portability_important_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.why_is_portability_important_">Why is + Portability important?</a> + </h5> +<p> + Code written using math constants is easily portable even when using different + floating-point types with differing precision. + </p> +<p> + It is a mistake to expect that results of computations will be <span class="bold"><strong>identical</strong></span>, but you can achieve the <span class="bold"><strong>best + accuracy possible for the floating-point type in use</strong></span>. + </p> +<p> + 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. + </p> +<p> + 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. + </p> +<h5> +<a name="math_toolkit.constants.FAQ.h6"></a> + <span><a name="math_toolkit.constants.FAQ.what_is_the_internal_format_of_the_constants__and_why_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.what_is_the_internal_format_of_the_constants__and_why_">What + is the Internal Format of the constants, and why?</a> + </h5> +<p> + See <a class="link" href="tutorial.html" title="Tutorial">tutorial</a> above + for normal use, but this FAQ explains the internal details used for the constants. + </p> +<p> + 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. + </p> +<p> + 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. + </p> +<p> + For types with precision greater than a long double, then if T is constructible + <code class="computeroutput"><span class="identifier">T</span> </code>is constructible from a + <code class="computeroutput"><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span></code> then it's directly constructed from the + string, otherwise we fall back on lexical_cast to convert to type <code class="computeroutput"><span class="identifier">T</span></code>. (Using a string is necessary because + you can't use a numeric constant since even a <code class="computeroutput"><span class="keyword">long</span> + <span class="keyword">double</span></code> might not have enough digits). + </p> +<p> + So, for example, a constant like pi is internally defined as + </p> +<pre class="programlisting"><span class="identifier">BOOST_DEFINE_MATH_CONSTANT</span><span class="special">(</span><span class="identifier">pi</span><span class="special">,</span> <span class="number">3.141592653589793238462643383279502884e+00</span><span class="special">,</span> <span class="string">"3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651e+00"</span><span class="special">);</span> +</pre> +<p> + In this case the significand is 109 decimal digits, ensuring 100 decimal + digits are exact, and exponent is zero. + </p> +<p> + See <a class="link" href="new_const.html" title="Defining New Constants">defining new constants</a> + to calculate new constants. + </p> +<p> + A macro definition like this can be pasted into user code where convenient, + or into <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">.</span><span class="identifier">hpp</span></code> if + it is to be added to the Boost.Math library. + </p> +<h5> +<a name="math_toolkit.constants.FAQ.h7"></a> + <span><a name="math_toolkit.constants.FAQ.what_floating_point_types_could_i_use_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.what_floating_point_types_could_i_use_">What + Floating-point Types could I use?</a> + </h5> +<p> + Apart from the built-in floating-point types <code class="computeroutput"><span class="keyword">float</span></code>, + <code class="computeroutput"><span class="keyword">double</span></code>, <code class="computeroutput"><span class="keyword">long</span> + <span class="keyword">double</span></code>, there are several arbitrary + precision floating-point classes available, but most are not licensed for + commercial use. + </p> +<h6> +<a name="math_toolkit.constants.FAQ.h8"></a> + <span><a name="math_toolkit.constants.FAQ.boost_multiprecision_by_christopher_kormanyos"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.boost_multiprecision_by_christopher_kormanyos">Boost.Multiprecision + by Christopher Kormanyos</a> + </h6> +<p> + 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. <a href="http://doi.acm.org/10.1145/1916461.1916469" target="_top">http://doi.acm.org/10.1145/1916461.1916469</a> + <a href="https://svn.boost.org/svn/boost/sandbox/e_float/" target="_top">e_float</a> + but is now re-factored and available under the Boost license in the Boost-sandbox + at <a href="https://svn.boost.org/svn/boost/sandbox/multiprecision/" target="_top">multiprecision</a> + where it is being refined and prepared for review. + </p> +<h6> +<a name="math_toolkit.constants.FAQ.h9"></a> + <span><a name="math_toolkit.constants.FAQ.boost_cpp_float_by_john_maddock_using_expression_templates"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.boost_cpp_float_by_john_maddock_using_expression_templates">Boost.cpp_float + by John Maddock using Expression Templates</a> + </h6> +<p> + <a href="https://svn.boost.org/svn/boost/sandbox/big_number/" target="_top">Big Number</a> + which is a reworking of <a href="https://svn.boost.org/svn/boost/sandbox/e_float/" target="_top">e_float</a> + by Christopher Kormanyos to use expression templates for faster execution. + </p> +<h6> +<a name="math_toolkit.constants.FAQ.h10"></a> + <span><a name="math_toolkit.constants.FAQ.ntl_class_quad_float"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.ntl_class_quad_float">NTL + class quad_float</a> + </h6> +<p> + <a href="http://shoup.net/ntl/" target="_top">NTL</a> by Victor Shoup has fixed + and arbitrary high precision fixed and floating-point types. However none + of these are licenced for commercial use. + </p> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">NTL</span><span class="special">/</span><span class="identifier">quad_float</span><span class="special">.</span><span class="identifier">h</span><span class="special">></span> <span class="comment">// quad precision 106-bit, about 32 decimal digits.</span> +<span class="keyword">using</span> <span class="identifier">NTL</span><span class="special">::</span><span class="identifier">to_quad_float</span><span class="special">;</span> <span class="comment">// Less precise than arbitrary precision NTL::RR.</span> +</pre> +<p> + NTL class <code class="computeroutput"><span class="identifier">quad_float</span></code>, 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 <span class="bold"><strong>two</strong></span> 64-bit doubles, + if <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special"><</span><span class="keyword">double</span><span class="special">>::</span><span class="identifier">digits10</span></code> is 16, then we get about twice + the precision, so <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special"><</span><span class="identifier">quad_float</span><span class="special">>::</span><span class="identifier">digits10</span><span class="special">()</span></code> + should be 32. (the default <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special"><</span><span class="identifier">RR</span><span class="special">>::</span><span class="identifier">digits10</span><span class="special">()</span></code> should be about 40). (which seems to agree + with experiments). We output constants (including some noisy bits, an approximation + to <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special"><</span><span class="identifier">RR</span><span class="special">>::</span><span class="identifier">max_digits10</span><span class="special">()</span></code>) + by adding 2 extra decimal digits, so using <code class="computeroutput"><span class="identifier">quad_float</span><span class="special">::</span><span class="identifier">SetOutputPrecision</span><span class="special">(</span><span class="number">32</span> <span class="special">+</span> + <span class="number">2</span><span class="special">);</span></code> + </p> +<p> + Apple Mac/Darwin uses a similar <span class="emphasis"><em>doubledouble</em></span> 106-bit + for its built-in <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">double</span></code> + type. + </p> +<div class="note"><table border="0" summary="Note"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/src/images/note.png"></td> +<th align="left">Note</th> +</tr> +<tr><td align="left" valign="top"><p> + The precision of all <code class="computeroutput"><span class="identifier">doubledouble</span></code> + floating-point types is rather odd and values given are only approximate. + </p></td></tr> +</table></div> +<h6> +<a name="math_toolkit.constants.FAQ.h11"></a> + <span><a name="math_toolkit.constants.FAQ.ntl_class_rr"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.ntl_class_rr">NTL + class RR</a> + </h6> +<p> + 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. + </p> +<p> + NTL is <span class="bold"><strong>not licenced for commercial use</strong></span>. + </p> +<p> + This class is used in Boost.Math and an option when using big_number projects + to calculate new math constants. + </p> +<h6> +<a name="math_toolkit.constants.FAQ.h12"></a> + <span><a name="math_toolkit.constants.FAQ.gmp_and_mpfr"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.gmp_and_mpfr">GMP + and MPFR</a> + </h6> +<p> + <a href="../../gmplib.org" target="_top">GMP</a> and <a href="http://www.mpfr.org/" target="_top">MPFR</a> + have also been used to compute constants, but are licensed under the <a href="http://www.gnu.org/copyleft/lesser.html" target="_top">Lesser GPL license</a> + and are <span class="bold"><strong>not licensed for commercial use</strong></span>. + </p> +<h5> +<a name="math_toolkit.constants.FAQ.h13"></a> + <span><a name="math_toolkit.constants.FAQ.what_happened_to_a_previous_collection_of_constants_proposed_for_boost_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.what_happened_to_a_previous_collection_of_constants_proposed_for_boost_">What + happened to a previous collection of constants proposed for Boost?</a> + </h5> +<p> + 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 <code class="computeroutput"><span class="identifier">pi</span></code> + rather than <code class="computeroutput"><span class="identifier">pi</span><span class="special">()</span></code>. + 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. + </p> +<p> + 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. + </p> +<h5> +<a name="math_toolkit.constants.FAQ.h14"></a> + <span><a name="math_toolkit.constants.FAQ.why_do_the_constants__internally__have_a_struct_rather_than_a_simple_function_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.why_do_the_constants__internally__have_a_struct_rather_than_a_simple_function_">Why + do the constants (internally) have a struct rather than a simple function?</a> + </h5> +<p> + A function mechanism was provided by in previous versions of Boost.Math. + </p> +<p> + The new mechanism is to permit partial specialization. See Custom Specializing + a constant above. It should also allow use with other packages like <a href="http://www.ttmath.org/" target="_top">ttmath Bignum C++ library.</a> + </p> +<h5> +<a name="math_toolkit.constants.FAQ.h15"></a> + <span><a name="math_toolkit.constants.FAQ.where_can_i_find_other_high_precision_constants_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.where_can_i_find_other_high_precision_constants_">Where + can I find other high precision constants?</a> + </h5> +<div class="orderedlist"><ol class="orderedlist" type="1"> +<li class="listitem"> + Constants with very high precision and good accuracy (>40 decimal + digits) from Simon Plouffe's web based collection <a href="http://pi.lacim.uqam.ca/eng/" target="_top">http://pi.lacim.uqam.ca/eng/</a>. + </li> +<li class="listitem"> + <a href="https://oeis.org/" target="_top">The On-Line Encyclopedia of Integer Sequences + (OEIS)</a> + </li> +<li class="listitem"> + 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) + </li> +<li class="listitem"> + M. Abrahamovitz & I. E. Stegun, National Bureau of Standards, Handbook + of Mathematical Functions, a reference source for formulae now superceded + by + </li> +<li class="listitem"> + 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. + </li> +<li class="listitem"> + John F Hart, Computer Approximations, Kreiger (1978) ISBN 0 88275 642 + 7. + </li> +<li class="listitem"> + Some values from Cephes Mathematical Library, Stephen L. Moshier and + CALC100 100 decimal digit Complex Variable Calculator Program, a DOS + utility. + </li> +<li class="listitem"> + Xavier Gourdon, Pascal Sebah, 50 decimal digits constants at <a href="http://numbers.computation.free.fr/Constants/constants.html" target="_top">Number, + constants and computation</a>. + </li> +</ol></div> +<h5> +<a name="math_toolkit.constants.FAQ.h16"></a> + <span><a name="math_toolkit.constants.FAQ.where_are_physical_constants_"></a></span><a class="link" href="FAQ.html#math_toolkit.constants.FAQ.where_are_physical_constants_">Where + are Physical Constants?</a> + </h5> +<p> + Not here in this Boost.Math collection, because physical constants: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + Are measurements. + </li> +<li class="listitem"> + Are not truly constant and keeping changing as mensuration technology + improves. + </li> +<li class="listitem"> + Have a instrinsic uncertainty. + </li> +<li class="listitem"> + Mathematical constants are stored and represented at varying precision, + but should never be inaccurate. + </li> +</ul></div> +<p> + Some physical constants may be available in Boost.Units. + </p> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="new_const.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../constants.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../toolkit.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/constants/constants.html b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/constants.html new file mode 100644 index 0000000000..e232c66181 --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/constants.html @@ -0,0 +1,1489 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>The Mathematical Constants</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Math Toolkit"> +<link rel="up" href="../constants.html" title="Mathematical Constants"> +<link rel="prev" href="tutorial/user_def.html" title="Use With User Defined Types"> +<link rel="next" href="new_const.html" title="Defining New Constants"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="tutorial/user_def.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../constants.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="new_const.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_constants_constants"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="math_toolkit.constants.constants"></a><a class="link" href="constants.html" title="The Mathematical Constants">The Mathematical Constants</a> +</h3></div></div></div> +<p> + This section lists the mathematical constants, their use(s) (and sometimes + rationale for their inclusion). + </p> +<div class="table"> +<a name="math_toolkit.constants.constants.mathematical_constants"></a><p class="title"><b>Table 51. Mathematical Constants</b></p> +<div class="table-contents"><table class="table" summary="Mathematical Constants"> +<colgroup> +<col> +<col> +<col> +<col> +</colgroup> +<thead><tr> +<th> + <p> + name + </p> + </th> +<th> + <p> + formula + </p> + </th> +<th> + <p> + Value (6 decimals) + </p> + </th> +<th> + <p> + Uses and Rationale + </p> + </th> +</tr></thead> +<tbody> +<tr> +<td> + <p> + <span class="bold"><strong>Rational fractions</strong></span> + </p> + </td> +<td> + </td> +<td> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + half + </p> + </td> +<td> + <p> + 1/2 + </p> + </td> +<td> + <p> + 0.5 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + third + </p> + </td> +<td> + <p> + 1/3 + </p> + </td> +<td> + <p> + 0.333333 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + two_thirds + </p> + </td> +<td> + <p> + 2/3 + </p> + </td> +<td> + <p> + 0.66667 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + three_quarters + </p> + </td> +<td> + <p> + 3/4 + </p> + </td> +<td> + <p> + 0.75 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + <span class="bold"><strong>two and related</strong></span> + </p> + </td> +<td> + </td> +<td> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + root_two + </p> + </td> +<td> + <p> + √2 + </p> + </td> +<td> + <p> + 1.41421 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + root_three + </p> + </td> +<td> + <p> + √3 + </p> + </td> +<td> + <p> + 1.73205 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + half_root_two + </p> + </td> +<td> + <p> + √2 /2 + </p> + </td> +<td> + <p> + 0.707106 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + ln_two + </p> + </td> +<td> + <p> + ln(2) + </p> + </td> +<td> + <p> + 0.693147 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + ln_ten + </p> + </td> +<td> + <p> + ln(10) + </p> + </td> +<td> + <p> + 2.30258 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + ln_ln_two + </p> + </td> +<td> + <p> + ln(ln(2)) + </p> + </td> +<td> + <p> + -0.366512 + </p> + </td> +<td> + <p> + Gumbel distribution median + </p> + </td> +</tr> +<tr> +<td> + <p> + root_ln_four + </p> + </td> +<td> + <p> + √ln(4) + </p> + </td> +<td> + <p> + 1.177410 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + one_div_root_two + </p> + </td> +<td> + <p> + 1/√2 + </p> + </td> +<td> + <p> + 0.707106 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + <span class="bold"><strong>π and related</strong></span> + </p> + </td> +<td> + </td> +<td> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + pi + </p> + </td> +<td> + <p> + pi + </p> + </td> +<td> + <p> + 3.14159 + </p> + </td> +<td> + <p> + Ubiquitous. Archimedes constant <a href="http://en.wikipedia.org/wiki/Pi" target="_top">π</a> + </p> + </td> +</tr> +<tr> +<td> + <p> + half_pi + </p> + </td> +<td> + <p> + π/2 + </p> + </td> +<td> + <p> + 1.570796 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + third_pi + </p> + </td> +<td> + <p> + π/3 + </p> + </td> +<td> + <p> + 1.04719 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + sixth_pi + </p> + </td> +<td> + <p> + π/6 + </p> + </td> +<td> + <p> + 0.523598 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + two_pi + </p> + </td> +<td> + <p> + 2π + </p> + </td> +<td> + <p> + 6.28318 + </p> + </td> +<td> + <p> + Many uses, most simply, circumference of a circle + </p> + </td> +</tr> +<tr> +<td> + <p> + two_thirds_pi + </p> + </td> +<td> + <p> + 2/3 π + </p> + </td> +<td> + <p> + 2.09439 + </p> + </td> +<td> + <p> + <a href="http://en.wikipedia.org/wiki/Sphere#Volume_of_a_sphere" target="_top">volume + of a hemi-sphere</a> = 4/3 π r³ + </p> + </td> +</tr> +<tr> +<td> + <p> + three_quarters_pi + </p> + </td> +<td> + <p> + 3/4 π + </p> + </td> +<td> + <p> + 2.35619 + </p> + </td> +<td> + <p> + <a href="http://en.wikipedia.org/wiki/Sphere#Volume_of_a_sphere" target="_top">volume + of a hemi-sphere</a> = 4/3 π r³ + </p> + </td> +</tr> +<tr> +<td> + <p> + four_thirds_pi + </p> + </td> +<td> + <p> + 4/3 π + </p> + </td> +<td> + <p> + 4.18879 + </p> + </td> +<td> + <p> + <a href="http://en.wikipedia.org/wiki/Sphere#Volume_of_a_sphere" target="_top">volume + of a sphere</a> = 4/3 π r³ + </p> + </td> +</tr> +<tr> +<td> + <p> + one_div_two_pi + </p> + </td> +<td> + <p> + 1/(2π) + </p> + </td> +<td> + <p> + 1.59155 + </p> + </td> +<td> + <p> + Widely used + </p> + </td> +</tr> +<tr> +<td> + <p> + root_pi + </p> + </td> +<td> + <p> + √π + </p> + </td> +<td> + <p> + 1.77245 + </p> + </td> +<td> + <p> + Widely used + </p> + </td> +</tr> +<tr> +<td> + <p> + root_half_pi + </p> + </td> +<td> + <p> + √ π/2 + </p> + </td> +<td> + <p> + 1.25331 + </p> + </td> +<td> + <p> + Widely used + </p> + </td> +</tr> +<tr> +<td> + <p> + root_two_pi + </p> + </td> +<td> + <p> + √ π*2 + </p> + </td> +<td> + <p> + 2.50662 + </p> + </td> +<td> + <p> + Widely used + </p> + </td> +</tr> +<tr> +<td> + <p> + one_div_root_pi + </p> + </td> +<td> + <p> + 1/√π + </p> + </td> +<td> + <p> + 0.564189 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + one_div_root_two_pi + </p> + </td> +<td> + <p> + 1/√(2π) + </p> + </td> +<td> + <p> + 0.398942 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + root_one_div_pi + </p> + </td> +<td> + <p> + √(1/π + </p> + </td> +<td> + <p> + 0.564189 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + pi_minus_three + </p> + </td> +<td> + <p> + π-3 + </p> + </td> +<td> + <p> + 1.41593 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + four_minus_pi + </p> + </td> +<td> + <p> + 4 -π + </p> + </td> +<td> + <p> + 0.858407 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + pow23_four_minus_pi + </p> + </td> +<td> + <p> + 4<sup>2/3</sup> - π + </p> + </td> +<td> + <p> + 0.795316 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + pi_pow_e + </p> + </td> +<td> + <p> + π<sup>e</sup> + </p> + </td> +<td> + <p> + 22.4591 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + pi_sqr + </p> + </td> +<td> + <p> + π<sup>2</sup> + </p> + </td> +<td> + <p> + 9.86960 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + pi_sqr_div_six + </p> + </td> +<td> + <p> + π<sup>2</sup>/6 + </p> + </td> +<td> + <p> + 1.64493 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + pi_cubed + </p> + </td> +<td> + <p> + π<sup>3</sup> + </p> + </td> +<td> + <p> + 31.00627 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + cbrt_pi + </p> + </td> +<td> + <p> + √<sup>3</sup> π + </p> + </td> +<td> + <p> + 1.46459 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + one_div_cbrt_pi + </p> + </td> +<td> + <p> + 1/√<sup>3</sup> π + </p> + </td> +<td> + <p> + 0.682784 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + <span class="bold"><strong>Euler's e and related</strong></span> + </p> + </td> +<td> + </td> +<td> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + e + </p> + </td> +<td> + <p> + e + </p> + </td> +<td> + <p> + 2.71828 + </p> + </td> +<td> + <p> + <a href="http://en.wikipedia.org/wiki/E_(mathematical_constant)" target="_top">Euler's + constant e</a> + </p> + </td> +</tr> +<tr> +<td> + <p> + exp_minus_half + </p> + </td> +<td> + <p> + e <sup>-1/2</sup> + </p> + </td> +<td> + <p> + 0.606530 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + e_pow_pi + </p> + </td> +<td> + <p> + e <sup>π</sup> + </p> + </td> +<td> + <p> + 23.14069 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + root_e + </p> + </td> +<td> + <p> + √ e + </p> + </td> +<td> + <p> + 1.64872 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + log10_e + </p> + </td> +<td> + <p> + log10(e) + </p> + </td> +<td> + <p> + 0.434294 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + one_div_log10_e + </p> + </td> +<td> + <p> + 1/log10(e) + </p> + </td> +<td> + <p> + 2.30258 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + <span class="bold"><strong>Trigonometric</strong></span> + </p> + </td> +<td> + </td> +<td> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + degree + </p> + </td> +<td> + <p> + radians = π / 180 + </p> + </td> +<td> + <p> + 0.017453 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + radian + </p> + </td> +<td> + <p> + degrees = 180 / π + </p> + </td> +<td> + <p> + 57.2957 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + sin_one + </p> + </td> +<td> + <p> + sin(1) + </p> + </td> +<td> + <p> + 0.841470 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + cos_one + </p> + </td> +<td> + <p> + cos(1) + </p> + </td> +<td> + <p> + 0.54030 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + sinh_one + </p> + </td> +<td> + <p> + sinh(1) + </p> + </td> +<td> + <p> + 1.17520 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + cosh_one + </p> + </td> +<td> + <p> + cosh(1) + </p> + </td> +<td> + <p> + 1.54308 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + <span class="bold"><strong>Phi</strong></span> + </p> + </td> +<td> + <p> + Phidias golden ratio + </p> + </td> +<td> + <p> + <a href="http://en.wikipedia.org/wiki/Golden_ratio" target="_top">Phidias + golden ratio</a> + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + phi + </p> + </td> +<td> + <p> + (1 + √5) /2 + </p> + </td> +<td> + <p> + 1.61803 + </p> + </td> +<td> + <p> + finance + </p> + </td> +</tr> +<tr> +<td> + <p> + ln_phi + </p> + </td> +<td> + <p> + ln(φ) + </p> + </td> +<td> + <p> + 0.48121 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + one_div_ln_phi + </p> + </td> +<td> + <p> + 1/ln(φ) + </p> + </td> +<td> + <p> + 2.07808 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + <span class="bold"><strong>Euler's Gamma</strong></span> + </p> + </td> +<td> + </td> +<td> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + euler + </p> + </td> +<td> + <p> + euler + </p> + </td> +<td> + <p> + 0.577215 + </p> + </td> +<td> + <p> + <a href="http://en.wikipedia.org/wiki/Euler%E2%80%93Mascheroni_constant" target="_top">Euler-Mascheroni + gamma constant</a> + </p> + </td> +</tr> +<tr> +<td> + <p> + one_div_euler + </p> + </td> +<td> + <p> + 1/euler + </p> + </td> +<td> + <p> + 1.73245 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + euler_sqr + </p> + </td> +<td> + <p> + euler<sup>2</sup> + </p> + </td> +<td> + <p> + 0.333177 + </p> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + <span class="bold"><strong>Misc</strong></span> + </p> + </td> +<td> + </td> +<td> + </td> +<td> + </td> +</tr> +<tr> +<td> + <p> + zeta_two + </p> + </td> +<td> + <p> + ζ(2) + </p> + </td> +<td> + <p> + 1.64493 + </p> + </td> +<td> + <p> + <a href="http://en.wikipedia.org/wiki/Riemann_zeta_function" target="_top">Riemann + zeta function</a> + </p> + </td> +</tr> +<tr> +<td> + <p> + zeta_three + </p> + </td> +<td> + <p> + ζ(3) + </p> + </td> +<td> + <p> + 1.20205 + </p> + </td> +<td> + <p> + <a href="http://en.wikipedia.org/wiki/Riemann_zeta_function" target="_top">Riemann + zeta function</a> + </p> + </td> +</tr> +<tr> +<td> + <p> + catalan + </p> + </td> +<td> + <p> + <span class="emphasis"><em>K</em></span> + </p> + </td> +<td> + <p> + 0.915965 + </p> + </td> +<td> + <p> + <a href="http://mathworld.wolfram.com/CatalansConstant.html" target="_top">Catalan + (or Glaisher) combinatorial constant</a> + </p> + </td> +</tr> +<tr> +<td> + <p> + glaisher + </p> + </td> +<td> + <p> + <span class="emphasis"><em>A</em></span> + </p> + </td> +<td> + <p> + 1.28242 + </p> + </td> +<td> + <p> + <a href="https://oeis.org/A074962/constant" target="_top">Decimal expansion + of Glaisher-Kinkelin constant</a> + </p> + </td> +</tr> +<tr> +<td> + <p> + khinchin + </p> + </td> +<td> + <p> + <span class="emphasis"><em>k</em></span> + </p> + </td> +<td> + <p> + 2.685452 + </p> + </td> +<td> + <p> + <a href="https://oeis.org/A002210/constant" target="_top">Decimal expansion + of Khinchin constant</a> + </p> + </td> +</tr> +<tr> +<td> + <p> + extreme_value_skewness + </p> + </td> +<td> + <p> + 12√6 ζ(3)/ π<sup>3</sup> + </p> + </td> +<td> + <p> + 1.139547 + </p> + </td> +<td> + <p> + Extreme value distribution + </p> + </td> +</tr> +<tr> +<td> + <p> + rayleigh_skewness + </p> + </td> +<td> + <p> + 2√π(π-3)/(4 - π)<sup>3/2</sup> + </p> + </td> +<td> + <p> + 0.631110 + </p> + </td> +<td> + <p> + Rayleigh distribution skewness + </p> + </td> +</tr> +<tr> +<td> + <p> + rayleigh_kurtosis_excess + </p> + </td> +<td> + <p> + -(6π<sup>2</sup>-24π+16)/(4-π)<sup>2</sup> + </p> + </td> +<td> + <p> + 0.245089 + </p> + </td> +<td> + <p> + <a href="http://en.wikipedia.org/wiki/Rayleigh_distribution" target="_top">Rayleigh + distribution kurtosis excess</a> + </p> + </td> +</tr> +<tr> +<td> + <p> + rayleigh_kurtosis + </p> + </td> +<td> + <p> + 3+(6π<sup>2</sup>-24π+16)/(4-π)<sup>2</sup> + </p> + </td> +<td> + <p> + 3.245089 + </p> + </td> +<td> + <p> + Rayleigh distribution kurtosis + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<br class="table-break"><div class="note"><table border="0" summary="Note"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/src/images/note.png"></td> +<th align="left">Note</th> +</tr> +<tr><td align="left" valign="top"><p> + Integer values are <span class="bold"><strong>not included</strong></span> in this + list of math constants, however interesting, because they can be so easily + and exactly constructed, even for UDT, for example: <code class="computeroutput"><span class="keyword">static_cast</span><span class="special"><</span><span class="identifier">cpp_float</span><span class="special">>(</span><span class="number">42</span><span class="special">)</span></code>. + </p></td></tr> +</table></div> +<div class="tip"><table border="0" summary="Tip"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../../../../../doc/src/images/tip.png"></td> +<th align="left">Tip</th> +</tr> +<tr><td align="left" valign="top"><p> + If you know the approximate value of the constant, you can search for the + value to find Boost.Math chosen name in this table. + </p></td></tr> +</table></div> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="tutorial/user_def.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../constants.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="new_const.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/constants/intro.html b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/intro.html new file mode 100644 index 0000000000..e0cfc65866 --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/intro.html @@ -0,0 +1,118 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Introduction</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Math Toolkit"> +<link rel="up" href="../constants.html" title="Mathematical Constants"> +<link rel="prev" href="../constants.html" title="Mathematical Constants"> +<link rel="next" href="tutorial.html" title="Tutorial"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="../constants.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../constants.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="tutorial.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_constants_intro"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="math_toolkit.constants.intro"></a><a class="link" href="intro.html" title="Introduction">Introduction</a> +</h3></div></div></div> +<p> + Boost.Math provides a collection of mathematical constants. + </p> +<h5> +<a name="math_toolkit.constants.intro.h0"></a> + <span><a name="math_toolkit.constants.intro.why_use_boost_math_mathematical_constants_"></a></span><a class="link" href="intro.html#math_toolkit.constants.intro.why_use_boost_math_mathematical_constants_">Why + use Boost.Math mathematical constants?</a> + </h5> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + Readable. For the very many jobs just using built-in like <code class="computeroutput"><span class="keyword">double</span></code>, you can just write expressions + like +<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">area</span> <span class="special">=</span> <span class="identifier">pi</span> <span class="special">*</span> <span class="identifier">r</span> <span class="special">*</span> <span class="identifier">r</span><span class="special">;</span></pre> + (If that's all you want, jump direct to <a class="link" href="tutorial/non_templ.html" title="Use in non-template code">use + in non-template code</a>!) + </li> +<li class="listitem"> + Effortless - avoiding a search of reference sources. + </li> +<li class="listitem"> + 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. + </li> +<li class="listitem"> + Accurate - ensuring that the values are as accurate as possible for the + chosen floating-point type + <div class="itemizedlist"><ul class="itemizedlist" type="circle"> +<li class="listitem"> + No loss of accuracy from repeated rounding of intermediate computations. + </li> +<li class="listitem"> + Result is computed with higher precision and only rounded once. + </li> +<li class="listitem"> + Less risk of inaccurate result from functions pow, trig and log + at <a href="http://en.wikipedia.org/wiki/Corner_case" target="_top">corner + cases</a>. + </li> +<li class="listitem"> + Less risk of <a href="http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html" target="_top">cancellation + error</a>. + </li> +</ul></div> + </li> +<li class="listitem"> + Faster - can avoid (re-)calculation at runtime. This can be significant + if: + <div class="itemizedlist"><ul class="itemizedlist" type="circle"> +<li class="listitem"> + Functions pow, trig or log are used. + </li> +<li class="listitem"> + Inside an inner loop. + </li> +<li class="listitem"> + Using a high-precision UDT. + </li> +<li class="listitem"> + Compiler optimizations possible with built-in types, especially + <code class="computeroutput"><span class="keyword">double</span></code>, are not available. + </li> +</ul></div> + </li> +<li class="listitem"> + Portable - as possible between different systems using different floating-point + precisions: see <a class="link" href="tutorial/templ.html" title="Use in template code">use + in template code</a>. + </li> +<li class="listitem"> + Tested - by comparison with other published sources, or separately computed + at long double precision. + </li> +</ul></div> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="../constants.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../constants.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="tutorial.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/constants/new_const.html b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/new_const.html new file mode 100644 index 0000000000..75e90fa9e0 --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/new_const.html @@ -0,0 +1,267 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Defining New Constants</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Math Toolkit"> +<link rel="up" href="../constants.html" title="Mathematical Constants"> +<link rel="prev" href="constants.html" title="The Mathematical Constants"> +<link rel="next" href="FAQ.html" title="FAQs"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="constants.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../constants.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="FAQ.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_constants_new_const"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="math_toolkit.constants.new_const"></a><a class="link" href="new_const.html" title="Defining New Constants">Defining New Constants</a> +</h3></div></div></div> +<p> + The library provides some helper code to assist in defining new constants; + the process for defining a constant called <code class="computeroutput"><span class="identifier">my_constant</span></code> + goes like this: + </p> +<p> + 1. <span class="bold"><strong>Define a function that calculates the value of the + constant</strong></span>. This should be a template function, and be placed in + <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">/</span><span class="identifier">calculate_constants</span><span class="special">.</span><span class="identifier">hpp</span></code> if + the constant is to be added to this library, or else defined at the top of + your source file if not. + </p> +<p> + The function should look like this: + </p> +<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">math</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">constants</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">detail</span><span class="special">{</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Real</span><span class="special">></span> +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">int</span> <span class="identifier">N</span><span class="special">></span> +<span class="identifier">Real</span> <span class="identifier">constant_my_constant</span><span class="special"><</span><span class="identifier">Real</span><span class="special">>::</span><span class="identifier">compute</span><span class="special">(</span><span class="identifier">BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC</span><span class="special">(</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="identifier">N</span><span class="special">>))</span> +<span class="special">{</span> + <span class="keyword">int</span> <span class="identifier">required_precision</span> <span class="special">=</span> <span class="identifier">N</span> <span class="special">?</span> <span class="identifier">N</span> <span class="special">:</span> <span class="identifier">tools</span><span class="special">::</span><span class="identifier">digits</span><span class="special"><</span><span class="identifier">Real</span><span class="special">>();</span> + <span class="identifier">Real</span> <span class="identifier">result</span> <span class="special">=</span> <span class="comment">/* value computed to required_precision bits */</span> <span class="special">;</span> + <span class="keyword">return</span> <span class="identifier">result</span><span class="special">;</span> +<span class="special">}</span> + +<span class="special">}}}}</span> <span class="comment">// namespaces</span> +</pre> +<p> + Then define a placeholder for the constant itself: + </p> +<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">math</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">constants</span><span class="special">{</span> + +<span class="identifier">BOOST_DEFINE_MATH_CONSTANT</span><span class="special">(</span><span class="identifier">my_constant</span><span class="special">,</span> <span class="number">0.0</span><span class="special">,</span> <span class="string">"0"</span><span class="special">);</span> + +<span class="special">}}}</span> +</pre> +<p> + For example, to calculate π/2, add to <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">/</span><span class="identifier">calculate_constants</span><span class="special">.</span><span class="identifier">hpp</span></code> + </p> +<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> +<span class="keyword">template</span><span class="special"><</span><span class="keyword">int</span> <span class="identifier">N</span><span class="special">></span> +<span class="keyword">inline</span> <span class="identifier">T</span> <span class="identifier">constant_half_pi</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">compute</span><span class="special">(</span><span class="identifier">BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC</span><span class="special">(</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="identifier">N</span><span class="special">>))</span> +<span class="special">{</span> + <span class="identifier">BOOST_MATH_STD_USING</span> + <span class="keyword">return</span> <span class="identifier">pi</span><span class="special"><</span><span class="identifier">T</span><span class="special">,</span> <span class="identifier">policies</span><span class="special">::</span><span class="identifier">policy</span><span class="special"><</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">digits2</span><span class="special"><</span><span class="identifier">N</span><span class="special">></span> <span class="special">></span> <span class="special">>()</span> <span class="special">/</span> <span class="keyword">static_cast</span><span class="special"><</span><span class="identifier">T</span><span class="special">>(</span><span class="number">2</span><span class="special">);</span> +<span class="special">}</span> +</pre> +<p> + Then to <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">/</span><span class="identifier">constants</span><span class="special">.</span><span class="identifier">hpp</span></code> add: + </p> +<pre class="programlisting"><span class="identifier">BOOST_DEFINE_MATH_CONSTANT</span><span class="special">(</span><span class="identifier">half_pi</span><span class="special">,</span> <span class="number">0.0</span><span class="special">,</span> <span class="string">"0"</span><span class="special">);</span> <span class="comment">// Actual values are temporary, we'll replace them later.</span> +</pre> +<div class="note"><table border="0" summary="Note"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/src/images/note.png"></td> +<th align="left">Note</th> +</tr> +<tr><td align="left" valign="top"><p> + Previously defined constants like pi and e can be used, but by <span class="bold"><strong>not simply calling</strong></span> <code class="computeroutput"><span class="identifier">pi</span><span class="special"><</span><span class="identifier">T</span><span class="special">>()</span></code>; specifying the precision via the + policy <code class="computeroutput"><span class="identifier">pi</span><span class="special"><</span><span class="identifier">T</span><span class="special">,</span> <span class="identifier">policies</span><span class="special">::</span><span class="identifier">policy</span><span class="special"><</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">digits2</span><span class="special"><</span><span class="identifier">N</span><span class="special">></span> <span class="special">></span> <span class="special">>()</span></code> is essential to ensure full accuracy. + </p></td></tr> +</table></div> +<div class="warning"><table border="0" summary="Warning"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../../../../../doc/src/images/warning.png"></td> +<th align="left">Warning</th> +</tr> +<tr><td align="left" valign="top"> +<p> + Newly defined constants can only be used once they are included in <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">/</span><span class="identifier">constants</span><span class="special">.</span><span class="identifier">hpp</span></code>. So if you add <code class="computeroutput"><span class="keyword">template</span> + <span class="special"><</span><span class="keyword">class</span> + <span class="identifier">T</span><span class="special">,</span> + <span class="keyword">class</span> <span class="identifier">N</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">constant_my_constant</span><span class="special">{...}</span></code>, + then you cannot define <code class="computeroutput"><span class="identifier">constant_my_constant</span></code> + until you add the temporary <code class="computeroutput"><span class="identifier">BOOST_DEFINE_MATH_CONSTANT</span><span class="special">(</span><span class="identifier">my_constant</span><span class="special">,</span> <span class="number">0.0</span><span class="special">,</span> + <span class="string">"0"</span><span class="special">)</span></code>. + Failing to do this will result in surprising compile errors: +</p> +<pre class="programlisting"><span class="identifier">error</span> <span class="identifier">C2143</span><span class="special">:</span> <span class="identifier">syntax</span> <span class="identifier">error</span> <span class="special">:</span> <span class="identifier">missing</span> <span class="char">';'</span> <span class="identifier">before</span> <span class="char">'<'</span> +<span class="identifier">error</span> <span class="identifier">C2433</span><span class="special">:</span> <span class="char">'constant_root_two_div_pi'</span> <span class="special">:</span> <span class="char">'inline'</span> <span class="keyword">not</span> <span class="identifier">permitted</span> <span class="identifier">on</span> <span class="identifier">data</span> <span class="identifier">declarations</span> +<span class="identifier">error</span> <span class="identifier">C2888</span><span class="special">:</span> <span class="char">'T constant_root_two_div_pi'</span> <span class="special">:</span> <span class="identifier">symbol</span> <span class="identifier">cannot</span> <span class="identifier">be</span> <span class="identifier">defined</span> <span class="identifier">within</span> <span class="keyword">namespace</span> <span class="char">'detail'</span> +<span class="identifier">error</span> <span class="identifier">C2988</span><span class="special">:</span> <span class="identifier">unrecognizable</span> <span class="keyword">template</span> <span class="identifier">declaration</span><span class="special">/</span><span class="identifier">definition</span> +</pre> +<p> + </p> +</td></tr> +</table></div> +<p> + 2. <span class="bold"><strong>You will need an arbitrary precision type to use + to calculate the value</strong></span>. This library currently supports either + <code class="computeroutput"><span class="identifier">cpp_float</span></code>, <code class="computeroutput"><span class="identifier">NTL</span><span class="special">::</span><span class="identifier">RR</span></code> + or <code class="computeroutput"><span class="identifier">mpfr_class</span></code> used via the + bindings in <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">bindings</span></code>. + The default is to use <code class="computeroutput"><span class="identifier">NTL</span><span class="special">::</span><span class="identifier">RR</span></code> unless + you define an alternate macro, for example, <code class="computeroutput"><span class="identifier">USE_MPFR</span></code> + or <code class="computeroutput"><span class="identifier">USE_CPP_FLOAT</span></code> at the start + of your program. + </p> +<p> + 3. It is necessary to link to the Boost.Regex library, and probably to your + chosen arbitrary precision type library. + </p> +<p> + 4. The complete program to generate the constant <code class="computeroutput"><span class="identifier">half_pi</span></code> + using function <code class="computeroutput"><span class="identifier">calculate_half_pi</span></code> + is then: + </p> +<pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">USE_CPP_FLOAT</span> <span class="comment">// If required.</span> +<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">/</span><span class="identifier">generate</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> + +<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span> +<span class="special">{</span> + <span class="identifier">BOOST_CONSTANTS_GENERATE</span><span class="special">(</span><span class="identifier">half_pi</span><span class="special">);</span> +<span class="special">}</span> +</pre> +<p> + The output from the program is a snippet of C++ code (actually a macro call) + that can be cut and pasted into <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">/</span><span class="identifier">constants</span><span class="special">.</span><span class="identifier">hpp</span></code> or else into your own code, for example: + </p> +<pre class="programlisting">BOOST_DEFINE_MATH_CONSTANT(half_pi, 1.570796326794896619231321691639751442e+00, "1.57079632679489661923132169163975144209858469968755291048747229615390820314310449931401741267105853399107404326e+00"); +</pre> +<p> + This macro BOOST_DEFINE_MATH_CONSTANT inserts a C++ struct code snippet that + declares the <code class="computeroutput"><span class="keyword">float</span></code>, <code class="computeroutput"><span class="keyword">double</span></code> and <code class="computeroutput"><span class="keyword">long</span> + <span class="keyword">double</span></code> 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. + </p> +<p> + The result of an expanded macro for Pi is shown below. + </p> +<p> +</p> +<pre class="programlisting"><span class="comment">// Preprocessed pi constant, annotated.</span> + +<span class="keyword">namespace</span> <span class="identifier">boost</span> +<span class="special">{</span> + <span class="keyword">namespace</span> <span class="identifier">math</span> + <span class="special">{</span> + <span class="keyword">namespace</span> <span class="identifier">constants</span> + <span class="special">{</span> + <span class="keyword">namespace</span> <span class="identifier">detail</span> + <span class="special">{</span> + <span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="keyword">struct</span> <span class="identifier">constant_pi</span> + <span class="special">{</span> + <span class="keyword">private</span><span class="special">:</span> + <span class="comment">// Default implementations from string of decimal digits:</span> + <span class="keyword">static</span> <span class="keyword">inline</span> <span class="identifier">T</span> <span class="identifier">get_from_string</span><span class="special">()</span> + <span class="special">{</span> + <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="identifier">result</span> + <span class="special">=</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">convert_from_string</span><span class="special"><</span><span class="identifier">T</span><span class="special">>(</span><span class="string">"3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651e+00"</span><span class="special">,</span> + <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special"><</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*,</span> <span class="identifier">T</span><span class="special">>());</span> + <span class="keyword">return</span> <span class="identifier">result</span><span class="special">;</span> + <span class="special">}</span> + <span class="keyword">template</span> <span class="special"><</span><span class="keyword">int</span> <span class="identifier">N</span><span class="special">></span> <span class="keyword">static</span> <span class="identifier">T</span> <span class="identifier">compute</span><span class="special">();</span> + + <span class="keyword">public</span><span class="special">:</span> + <span class="comment">// Default implementations from string of decimal digits:</span> + <span class="keyword">static</span> <span class="keyword">inline</span> <span class="identifier">T</span> <span class="identifier">get</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="identifier">construct_from_string</span><span class="special">>&)</span> + <span class="special">{</span> + <span class="identifier">constant_initializer</span><span class="special"><</span><span class="identifier">T</span><span class="special">,</span> <span class="special">&</span> <span class="identifier">constant_pi</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">get_from_string</span> <span class="special">>::</span><span class="identifier">do_nothing</span><span class="special">();</span> + <span class="keyword">return</span> <span class="identifier">get_from_string</span><span class="special">();</span> + <span class="special">}</span> + <span class="comment">// Float, double and long double versions:</span> + <span class="keyword">static</span> <span class="keyword">inline</span> <span class="identifier">T</span> <span class="identifier">get</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="identifier">construct_from_float</span><span class="special">>)</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="number">3.141592653589793238462643383279502884e+00F</span><span class="special">;</span> + <span class="special">}</span> + <span class="keyword">static</span> <span class="keyword">inline</span> <span class="identifier">T</span> <span class="identifier">get</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="identifier">construct_from_double</span><span class="special">>&)</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="number">3.141592653589793238462643383279502884e+00</span><span class="special">;</span> + <span class="special">}</span> + <span class="keyword">static</span> <span class="keyword">inline</span> <span class="identifier">T</span> <span class="identifier">get</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="identifier">construct_from_long_double</span><span class="special">>&)</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="number">3.141592653589793238462643383279502884e+00L</span><span class="special">;</span> + <span class="special">}</span> + <span class="comment">// For very high precision that is nonetheless can be calculated at compile time:</span> + <span class="keyword">template</span> <span class="special"><</span><span class="keyword">int</span> <span class="identifier">N</span><span class="special">></span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="identifier">T</span> <span class="identifier">get</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="identifier">N</span><span class="special">>&</span> <span class="identifier">n</span><span class="special">)</span> + <span class="special">{</span> + <span class="identifier">constant_initializer2</span><span class="special"><</span><span class="identifier">T</span><span class="special">,</span> <span class="identifier">N</span><span class="special">,</span> <span class="special">&</span> <span class="identifier">constant_pi</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="keyword">template</span> <span class="identifier">compute</span><span class="special"><</span><span class="identifier">N</span><span class="special">></span> <span class="special">>::</span><span class="identifier">do_nothing</span><span class="special">();</span> + <span class="keyword">return</span> <span class="identifier">compute</span><span class="special"><</span><span class="identifier">N</span><span class="special">>();</span> + <span class="special">}</span> + <span class="comment">//For true arbitrary precision, which may well vary at runtime.</span> + <span class="keyword">static</span> <span class="keyword">inline</span> <span class="identifier">T</span> <span class="identifier">get</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="number">0</span><span class="special">>&)</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">tools</span><span class="special">::</span><span class="identifier">digits</span><span class="special"><</span><span class="identifier">T</span><span class="special">>()</span> <span class="special">></span> <span class="identifier">max_string_digits</span> <span class="special">?</span> <span class="identifier">compute</span><span class="special"><</span><span class="number">0</span><span class="special">>()</span> <span class="special">:</span> <span class="identifier">get</span><span class="special">(</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="identifier">construct_from_string</span><span class="special">>());</span> + <span class="special">}</span> + <span class="special">};</span> <span class="comment">// template <class T> struct constant_pi</span> + <span class="special">}</span> <span class="comment">// namespace detail</span> + + <span class="comment">// The actual forwarding function (including policy to control precision).</span> + <span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Policy</span><span class="special">></span> <span class="keyword">inline</span> <span class="identifier">T</span> <span class="identifier">pi</span><span class="special">(</span> <span class="special">)</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">detail</span><span class="special">::</span> <span class="identifier">constant_pi</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">get</span><span class="special">(</span><span class="keyword">typename</span> <span class="identifier">construction_traits</span><span class="special"><</span><span class="identifier">T</span><span class="special">,</span> <span class="identifier">Policy</span><span class="special">>::</span><span class="identifier">type</span><span class="special">());</span> + <span class="special">}</span> + <span class="comment">// The actual forwarding function (using default policy to control precision).</span> + <span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="keyword">inline</span> <span class="identifier">T</span> <span class="identifier">pi</span><span class="special">()</span> + <span class="special">{</span> + <span class="keyword">return</span> <span class="identifier">pi</span><span class="special"><</span><span class="identifier">T</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">policy</span><span class="special"><></span> <span class="special">>()</span> + <span class="special">}</span> + <span class="special">}</span> <span class="comment">// namespace constants</span> + + <span class="comment">// Namespace specific versions, for the three built-in floats:</span> + <span class="keyword">namespace</span> <span class="identifier">float_constants</span> + <span class="special">{</span> + <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">float</span> <span class="identifier">pi</span> <span class="special">=</span> <span class="number">3.141592653589793238462643383279502884e+00F</span><span class="special">;</span> + <span class="special">}</span> + <span class="keyword">namespace</span> <span class="identifier">double_constants</span> + <span class="special">{</span> + <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">double</span> <span class="identifier">pi</span> <span class="special">=</span> <span class="number">3.141592653589793238462643383279502884e+00</span><span class="special">;</span> + <span class="special">}</span> + <span class="keyword">namespace</span> <span class="identifier">long_double_constants</span> + <span class="special">{</span> + <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">long</span> <span class="keyword">double</span> <span class="identifier">pi</span> <span class="special">=</span> <span class="number">3.141592653589793238462643383279502884e+00L</span><span class="special">;</span> + <span class="special">}</span> + <span class="keyword">namespace</span> <span class="identifier">constants</span><span class="special">{;</span> + <span class="special">}</span> <span class="comment">// namespace constants</span> + <span class="special">}</span> <span class="comment">// namespace math</span> +<span class="special">}</span> <span class="comment">// namespace boost</span> +</pre> +<p> + </p> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="constants.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../constants.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="FAQ.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial.html b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial.html new file mode 100644 index 0000000000..cfecd87834 --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial.html @@ -0,0 +1,52 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Tutorial</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Math Toolkit"> +<link rel="up" href="../constants.html" title="Mathematical Constants"> +<link rel="prev" href="intro.html" title="Introduction"> +<link rel="next" href="tutorial/non_templ.html" title="Use in non-template code"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="intro.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../constants.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="tutorial/non_templ.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_constants_tutorial"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="math_toolkit.constants.tutorial"></a><a class="link" href="tutorial.html" title="Tutorial">Tutorial</a> +</h3></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="tutorial/non_templ.html">Use in non-template + code</a></span></dt> +<dt><span class="section"><a href="tutorial/templ.html">Use in template + code</a></span></dt> +<dt><span class="section"><a href="tutorial/user_def.html">Use With + User Defined Types</a></span></dt> +</dl></div> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="intro.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../constants.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="tutorial/non_templ.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial/non_templ.html b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial/non_templ.html new file mode 100644 index 0000000000..a9c7339bbe --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial/non_templ.html @@ -0,0 +1,82 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Use in non-template code</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Math Toolkit"> +<link rel="up" href="../tutorial.html" title="Tutorial"> +<link rel="prev" href="../tutorial.html" title="Tutorial"> +<link rel="next" href="templ.html" title="Use in template code"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="../tutorial.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tutorial.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="templ.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_constants_tutorial_non_templ"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="math_toolkit.constants.tutorial.non_templ"></a><a class="link" href="non_templ.html" title="Use in non-template code">Use in non-template + code</a> +</h4></div></div></div> +<p> + When using the math constants at your chosen fixed precision in non-template + code, you can simply add a <code class="computeroutput"><span class="keyword">using</span></code> + declaration, for example, <code class="computeroutput"><span class="keyword">using</span> + <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">double_constants</span></code>, to make the constants + of the correct precision for your code visible in the current scope, and + then use each constant <span class="emphasis"><em>as a simple variable</em></span>: + </p> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> + +<span class="keyword">double</span> <span class="identifier">area</span><span class="special">(</span><span class="keyword">double</span> <span class="identifier">r</span><span class="special">)</span> +<span class="special">{</span> + <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">double_constants</span><span class="special">;</span> + <span class="keyword">return</span> <span class="identifier">pi</span> <span class="special">*</span> <span class="identifier">r</span> <span class="special">*</span> <span class="identifier">r</span><span class="special">;</span> +<span class="special">}</span> +</pre> +<p> + Had our function been written as taking a <code class="computeroutput"><span class="keyword">float</span></code> + rather than a <code class="computeroutput"><span class="keyword">double</span></code>, we could + have written instead: + </p> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> + +<span class="keyword">float</span> <span class="identifier">area</span><span class="special">(</span><span class="keyword">float</span> <span class="identifier">r</span><span class="special">)</span> +<span class="special">{</span> + <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">float_constants</span><span class="special">;</span> + <span class="keyword">return</span> <span class="identifier">pi</span> <span class="special">*</span> <span class="identifier">r</span> <span class="special">*</span> <span class="identifier">r</span><span class="special">;</span> +<span class="special">}</span> +</pre> +<p> + Likewise, constants that are suitable for use at <code class="computeroutput"><span class="keyword">long</span> + <span class="keyword">double</span></code> precision are available in + the namespace <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">long_double_constants</span></code>. + </p> +<p> + You can see the full list of available constants at <a class="link" href="../constants.html" title="The Mathematical Constants">math_toolkit.constants.constants</a>. + </p> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="../tutorial.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tutorial.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="templ.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial/templ.html b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial/templ.html new file mode 100644 index 0000000000..7df04bb57a --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial/templ.html @@ -0,0 +1,164 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Use in template code</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Math Toolkit"> +<link rel="up" href="../tutorial.html" title="Tutorial"> +<link rel="prev" href="non_templ.html" title="Use in non-template code"> +<link rel="next" href="user_def.html" title="Use With User Defined Types"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="non_templ.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tutorial.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="user_def.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_constants_tutorial_templ"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="math_toolkit.constants.tutorial.templ"></a><a class="link" href="templ.html" title="Use in template code">Use in template + code</a> +</h4></div></div></div> +<p> + 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, <code class="computeroutput"><span class="identifier">pi</span><span class="special"><</span><span class="identifier">FPType</span><span class="special">>()</span></code>, + of the constants like this: + </p> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Real</span><span class="special">></span> +<span class="identifier">Real</span> <span class="identifier">area</span><span class="special">(</span><span class="identifier">Real</span> <span class="identifier">r</span><span class="special">)</span> +<span class="special">{</span> + <span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">constants</span><span class="special">;</span> + <span class="keyword">return</span> <span class="identifier">pi</span><span class="special"><</span><span class="identifier">Real</span><span class="special">>()</span> <span class="special">*</span> <span class="identifier">r</span> <span class="special">*</span> <span class="identifier">r</span><span class="special">;</span> +<span class="special">}</span> +</pre> +<p> + 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 + <code class="computeroutput"><span class="keyword">float</span></code>, <code class="computeroutput"><span class="keyword">double</span></code> + and <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">double</span></code>) + : 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 <code class="computeroutput"><span class="identifier">constexp</span></code> + for those compilers that support this, allowing the result to be used in + constant-expressions provided the template argument is a literal type. + </p> +<div class="tip"><table border="0" summary="Tip"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../../../../../../doc/src/images/tip.png"></td> +<th align="left">Tip</th> +</tr> +<tr><td align="left" valign="top"><p> + Keep in mind the difference between the variable version, just <code class="computeroutput"><span class="identifier">pi</span></code>, and the template-function version: + the template-function requires both a <<em class="replaceable"><code>floating-point-type</code></em>> + and function call <code class="computeroutput"><span class="special">()</span></code> brackets, + for example: <code class="computeroutput"><span class="identifier">pi</span><span class="special"><</span><span class="keyword">double</span><span class="special">>()</span></code>. + You cannot write <code class="computeroutput"><span class="keyword">double</span> <span class="identifier">p</span> <span class="special">=</span> <span class="identifier">pi</span><span class="special"><>()</span></code>, + nor <code class="computeroutput"><span class="keyword">double</span> <span class="identifier">p</span> + <span class="special">=</span> <span class="identifier">pi</span><span class="special">()</span></code>. + </p></td></tr> +</table></div> +<div class="note"><table border="0" summary="Note"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../../doc/src/images/note.png"></td> +<th align="left">Note</th> +</tr> +<tr><td align="left" valign="top"> +<p> + You can always use <span class="bold"><strong>both</strong></span> variable and + template-function versions <span class="bold"><strong>provided calls are fully + qualified</strong></span>, for example: +</p> +<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">my_pi1</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">constants</span><span class="special">::</span><span class="identifier">pi</span><span class="special"><</span><span class="keyword">double</span><span class="special">>();</span> +<span class="keyword">double</span> <span class="identifier">my_pi2</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">double_constants</span><span class="special">::</span><span class="identifier">pi</span><span class="special">;</span> +</pre> +<p> + </p> +</td></tr> +</table></div> +<div class="warning"><table border="0" summary="Warning"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../../../../../../doc/src/images/warning.png"></td> +<th align="left">Warning</th> +</tr> +<tr><td align="left" valign="top"> +<p> + It may be tempting to simply define +</p> +<pre class="programlisting"><span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">double_constants</span><span class="special">;</span> +<span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">constants</span><span class="special">;</span> +</pre> +<p> + but if you do define two namespaces, this will, of course, create ambiguity! +</p> +<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">my_pi</span> <span class="special">=</span> <span class="identifier">pi</span><span class="special">();</span> <span class="comment">// error C2872: 'pi' : ambiguous symbol</span> +<span class="keyword">double</span> <span class="identifier">my_pi2</span> <span class="special">=</span> <span class="identifier">pi</span><span class="special">;</span> <span class="comment">// Context does not allow for disambiguation of overloaded function</span> +</pre> +<p> + 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. + </p> +<p> + Therefore is it prudent to avoid this risk by <span class="bold"><strong>localising + the scope of such definitions</strong></span>, as shown above. + </p> +</td></tr> +</table></div> +<div class="tip"><table border="0" summary="Tip"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../../../../../../doc/src/images/tip.png"></td> +<th align="left">Tip</th> +</tr> +<tr><td align="left" valign="top"> +<p> + Be very careful with the type provided as parameter. For example, providing + an <span class="bold"><strong>integer</strong></span> instead of a floating-point + type can be disastrous (a C++ feature). + </p> +<p> +</p> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Area = "</span> <span class="special"><<</span> <span class="identifier">area</span><span class="special">(</span><span class="number">2</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// Area = 12!!!</span></pre> +<p> + </p> +<p> + You should get a compiler warning + </p> +<pre class="programlisting">warning : 'return' : conversion from 'double' to 'int', possible loss of data +</pre> +<p> + Failure to heed this warning can lead to very wrong answers! + </p> +<p> + You can also avoid this by being explicit about the type of <code class="computeroutput"><span class="identifier">Area</span></code>. +</p> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Area = "</span> <span class="special"><<</span> <span class="identifier">area</span><span class="special"><</span><span class="keyword">double</span><span class="special">>(</span><span class="number">2</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// Area = 12.566371</span></pre> +<p> + </p> +</td></tr> +</table></div> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="non_templ.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tutorial.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="user_def.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial/user_def.html b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial/user_def.html new file mode 100644 index 0000000000..b4a3f60a8e --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/constants/tutorial/user_def.html @@ -0,0 +1,313 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Use With User Defined Types</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Math Toolkit"> +<link rel="up" href="../tutorial.html" title="Tutorial"> +<link rel="prev" href="templ.html" title="Use in template code"> +<link rel="next" href="../constants.html" title="The Mathematical Constants"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="templ.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tutorial.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../constants.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_constants_tutorial_user_def"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="math_toolkit.constants.tutorial.user_def"></a><a class="link" href="user_def.html" title="Use With User Defined Types">Use With + User Defined Types</a> +</h4></div></div></div> +<p> + 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: + </p> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> + +<span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">constants</span><span class="special">::</span><span class="identifier">pi</span><span class="special"><</span><span class="identifier">UserDefinedType</span><span class="special">>();</span> +</pre> +<p> + However, since the precision of the user-defined type may be much greater + than that of the built-in floating pointer types, how the value returned + is created is as follows: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + If the precision of the type is known at compile time: + <div class="itemizedlist"><ul class="itemizedlist" type="circle"> +<li class="listitem"> + If the precision is less than or equal to that of a <code class="computeroutput"><span class="keyword">float</span></code> and the type is constructable + from a <code class="computeroutput"><span class="keyword">float</span></code> then + our code returns a <code class="computeroutput"><span class="keyword">float</span></code> + literal. If the user-defined type is a literal type then the + function call that returns the constant will be a <code class="computeroutput"><span class="identifier">constexp</span></code>. + </li> +<li class="listitem"> + If the precision is less than or equal to that of a <code class="computeroutput"><span class="keyword">double</span></code> and the type is constructable + from a <code class="computeroutput"><span class="keyword">double</span></code> then + our code returns a <code class="computeroutput"><span class="keyword">double</span></code> + literal. If the user-defined type is a literal type then the + function call that returns the constant will be a <code class="computeroutput"><span class="identifier">constexp</span></code>. + </li> +<li class="listitem"> + If the precision is less than or equal to that of a <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">double</span></code> + and the type is constructable from a <code class="computeroutput"><span class="keyword">long</span> + <span class="keyword">double</span></code> then our code returns + a <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">double</span></code> + literal. If the user-defined type is a literal type then the + function call that returns the constant will be a <code class="computeroutput"><span class="identifier">constexp</span></code>. + </li> +<li class="listitem"> + 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. + </li> +<li class="listitem"> + Otherwise the value is computed (just once, then cached in a + thread-safe manner). + </li> +</ul></div> + </li> +<li class="listitem"> + If the precision is unknown at compile time then: + <div class="itemizedlist"><ul class="itemizedlist" type="circle"> +<li class="listitem"> + If the runtime precision (obtained from a call to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">tools</span><span class="special">::</span><span class="identifier">digits</span><span class="special"><</span><span class="identifier">T</span><span class="special">>()</span></code>) + is less than 100 decimal digits, then the constant is constructed + "on the fly" from the string representation of the + constant. + </li> +<li class="listitem"> + 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. + </li> +</ul></div> + </li> +</ul></div> +<p> + In addition, it is possible to pass a <code class="computeroutput"><span class="identifier">Policy</span></code> + type as a second template argument, and use this to control the precision: + </p> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">/</span><span class="identifier">constants</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> + +<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">policy</span><span class="special"><</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">digits2</span><span class="special"><</span><span class="number">80</span><span class="special">></span> <span class="special">></span> <span class="identifier">my_policy_type</span><span class="special">;</span> +<span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">constants</span><span class="special">::</span><span class="identifier">pi</span><span class="special"><</span><span class="identifier">MyType</span><span class="special">,</span> <span class="identifier">my_policy_type</span><span class="special">>();</span> +</pre> +<div class="note"><table border="0" summary="Note"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../../doc/src/images/note.png"></td> +<th align="left">Note</th> +</tr> +<tr><td align="left" valign="top"><p> + Boost.Math doesn't know how to control the internal precision of <code class="computeroutput"><span class="identifier">MyType</span></code>, the policy just controls how + the selection process above is carried out, and the calculation precision + if the result is computed. + </p></td></tr> +</table></div> +<p> + It is also possible to control which method is used to construct the constant + by specialising the traits class <code class="computeroutput"><span class="identifier">construction_traits</span></code>: + </p> +<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">math</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">constant</span><span class="special">{</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Policy</span><span class="special">></span> +<span class="keyword">struct</span> <span class="identifier">construction_traits</span> +<span class="special">{</span> + <span class="keyword">typedef</span> <span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="identifier">N</span><span class="special">></span> <span class="identifier">type</span><span class="special">;</span> +<span class="special">};</span> + +<span class="special">}}}</span> <span class="comment">// namespaces</span> +</pre> +<p> + Where <span class="emphasis"><em>N</em></span> takes one of the following values: + </p> +<div class="informaltable"><table class="table"> +<colgroup> +<col> +<col> +</colgroup> +<thead><tr> +<th> + <p> + <span class="emphasis"><em>N</em></span> + </p> + </th> +<th> + <p> + Meaning + </p> + </th> +</tr></thead> +<tbody> +<tr> +<td> + <p> + 0 + </p> + </td> +<td> + <p> + The precision is unavailable at compile time; either construct + from a decimal digit string or calculate on the fly depending + upon the runtime precision. + </p> + </td> +</tr> +<tr> +<td> + <p> + 1 + </p> + </td> +<td> + <p> + Return a float precision constant. + </p> + </td> +</tr> +<tr> +<td> + <p> + 2 + </p> + </td> +<td> + <p> + Return a double precision constant. + </p> + </td> +</tr> +<tr> +<td> + <p> + 3 + </p> + </td> +<td> + <p> + Return a long double precision constant. + </p> + </td> +</tr> +<tr> +<td> + <p> + 4 + </p> + </td> +<td> + <p> + Construct the result from the string representation, and cache + the result. + </p> + </td> +</tr> +<tr> +<td> + <p> + Any other value <span class="emphasis"><em>N</em></span> + </p> + </td> +<td> + <p> + Sets the compile time precision to <span class="emphasis"><em>N</em></span> bits. + </p> + </td> +</tr> +</tbody> +</table></div> +<h6> +<a name="math_toolkit.constants.tutorial.user_def.h0"></a> + <span><a name="math_toolkit.constants.tutorial.user_def.custom_specializing_a_constant"></a></span><a class="link" href="user_def.html#math_toolkit.constants.tutorial.user_def.custom_specializing_a_constant">Custom + Specializing a constant</a> + </h6> +<p> + 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 <code class="computeroutput"><span class="identifier">mpfr_class</span></code>: 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 <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">constants</span><span class="special">::</span><span class="identifier">detail</span><span class="special">::</span><span class="identifier">constant_pi</span></code>: + </p> +<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">math</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">constants</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">detail</span><span class="special">{</span> + +<span class="keyword">template</span><span class="special"><></span> +<span class="keyword">struct</span> <span class="identifier">constant_pi</span><span class="special"><</span><span class="identifier">mpfr_class</span><span class="special">></span> +<span class="special">{</span> + <span class="keyword">template</span><span class="special"><</span><span class="keyword">int</span> <span class="identifier">N</span><span class="special">></span> + <span class="keyword">inline</span> <span class="identifier">T</span> <span class="identifier">get</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="identifier">N</span><span class="special">>&)</span> + <span class="special">{</span> + <span class="comment">// The template param N is one of the values in the table above,</span> + <span class="comment">// we can either handle all cases in one as is the case here,</span> + <span class="comment">// or overload "get" for the different options.</span> + <span class="identifier">mpfr_class</span> <span class="identifier">result</span><span class="special">;</span> + <span class="identifier">mpfr_const_pi</span><span class="special">(</span><span class="identifier">result</span><span class="special">.</span><span class="identifier">get_mpfr_t</span><span class="special">(),</span> <span class="identifier">GMP_RNDN</span><span class="special">);</span> + <span class="keyword">return</span> <span class="identifier">result</span><span class="special">;</span> + <span class="special">}</span> +<span class="special">};</span> + +<span class="special">}}}}</span> <span class="comment">// namespaces</span> +</pre> +<h6> +<a name="math_toolkit.constants.tutorial.user_def.h1"></a> + <span><a name="math_toolkit.constants.tutorial.user_def.diagnosing_what_meta_programmed_code_is_doing"></a></span><a class="link" href="user_def.html#math_toolkit.constants.tutorial.user_def.diagnosing_what_meta_programmed_code_is_doing">Diagnosing + what meta-programmed code is doing</a> + </h6> +<p> + 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: + </p> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">/</span><span class="identifier">info</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> + +<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span> +<span class="special">{</span> + <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">constants</span><span class="special">::</span><span class="identifier">print_info_on_type</span><span class="special"><</span><span class="identifier">MyType</span><span class="special">>();</span> +<span class="special">}</span> +</pre> +<p> + If you wish, you can also pass an optional std::ostream argument to the + <code class="computeroutput"><span class="identifier">print_info_on_type</span></code> function. + Typical output for a user-defined type looks like this: + </p> +<pre class="programlisting">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. +</pre> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="templ.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tutorial.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../constants.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist.html index 1bc2d8afae..b82807d677 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist.html @@ -190,6 +190,8 @@ Distribution</a></span></dt> <dt><span class="section"><a href="dist/dist_ref/dists/rayleigh.html">Rayleigh Distribution</a></span></dt> +<dt><span class="section"><a href="dist/dist_ref/dists/skew_normal_dist.html">Skew + Normal Distribution</a></span></dt> <dt><span class="section"><a href="dist/dist_ref/dists/students_t_dist.html">Students t Distribution</a></span></dt> <dt><span class="section"><a href="dist/dist_ref/dists/triangular_dist.html">Triangular @@ -208,7 +210,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref.html index 98abcb55e6..f5894db886 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref.html @@ -81,6 +81,8 @@ Distribution</a></span></dt> <dt><span class="section"><a href="dist_ref/dists/rayleigh.html">Rayleigh Distribution</a></span></dt> +<dt><span class="section"><a href="dist_ref/dists/skew_normal_dist.html">Skew + Normal Distribution</a></span></dt> <dt><span class="section"><a href="dist_ref/dists/students_t_dist.html">Students t Distribution</a></span></dt> <dt><span class="section"><a href="dist_ref/dists/triangular_dist.html">Triangular @@ -97,7 +99,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dist_algorithms.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dist_algorithms.html index a5d2b35813..1eb55821af 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dist_algorithms.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dist_algorithms.html @@ -129,7 +129,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists.html index e7f4b0ce89..fdad858084 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists.html @@ -77,6 +77,8 @@ Distribution</a></span></dt> <dt><span class="section"><a href="dists/rayleigh.html">Rayleigh Distribution</a></span></dt> +<dt><span class="section"><a href="dists/skew_normal_dist.html">Skew + Normal Distribution</a></span></dt> <dt><span class="section"><a href="dists/students_t_dist.html">Students t Distribution</a></span></dt> <dt><span class="section"><a href="dists/triangular_dist.html">Triangular @@ -90,7 +92,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/bernoulli_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/bernoulli_dist.html index 5ab7051942..cf96ccaeab 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/bernoulli_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/bernoulli_dist.html @@ -343,7 +343,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/beta_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/beta_dist.html index 2a6e62cb14..bbc7f3cb5d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/beta_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/beta_dist.html @@ -612,7 +612,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/binomial_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/binomial_dist.html index aa63813786..faae0f690d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/binomial_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/binomial_dist.html @@ -904,7 +904,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/cauchy_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/cauchy_dist.html index a5ac5d19c6..8d19fa1b19 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/cauchy_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/cauchy_dist.html @@ -294,7 +294,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/chi_squared_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/chi_squared_dist.html index efb1c53cf0..133854cc84 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/chi_squared_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/chi_squared_dist.html @@ -400,7 +400,7 @@ independent, normally distributed random <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/exp_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/exp_dist.html index 358bee87f3..5f1fc10835 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/exp_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/exp_dist.html @@ -318,7 +318,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/extreme_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/extreme_dist.html index 192428d78a..b4e1b90e8a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/extreme_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/extreme_dist.html @@ -320,7 +320,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/f_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/f_dist.html index c0f7b8d5f6..05a0f6a21e 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/f_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/f_dist.html @@ -427,7 +427,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/gamma_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/gamma_dist.html index 50c2c5e0f9..d4bfb8b27a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/gamma_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/gamma_dist.html @@ -361,7 +361,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/geometric_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/geometric_dist.html index b1a590d0d6..fe09827a1f 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/geometric_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/geometric_dist.html @@ -849,7 +849,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/hypergeometric_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/hypergeometric_dist.html index b9618b26bf..5ab8ced41f 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/hypergeometric_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/hypergeometric_dist.html @@ -328,7 +328,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_chi_squared_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_chi_squared_dist.html index 8401701fb7..2436766a37 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_chi_squared_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_chi_squared_dist.html @@ -467,7 +467,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_gamma_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_gamma_dist.html index 819d0d49db..0a9f625a97 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_gamma_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_gamma_dist.html @@ -364,7 +364,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_gaussian_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_gaussian_dist.html index cae96d473d..16dc6afcad 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_gaussian_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/inverse_gaussian_dist.html @@ -437,7 +437,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/laplace_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/laplace_dist.html index 5d64ef71e3..66a30cf10f 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/laplace_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/laplace_dist.html @@ -350,7 +350,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/logistic_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/logistic_dist.html index 9acd51d751..e3c1e1c2e6 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/logistic_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/logistic_dist.html @@ -286,7 +286,7 @@ as special cases if RealType <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/lognormal_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/lognormal_dist.html index b972a86879..d1f4705754 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/lognormal_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/lognormal_dist.html @@ -318,7 +318,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_beta_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_beta_dist.html index fc01557454..a04e51808b 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_beta_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_beta_dist.html @@ -402,7 +402,7 @@ is a central χ<sup>2</sup> random variable with <span class="emphasis"><em> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_chi_squared_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_chi_squared_dist.html index 52fbca511c..2a8271538d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_chi_squared_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_chi_squared_dist.html @@ -500,7 +500,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_f_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_f_dist.html index ab4515e896..84603934b0 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_f_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_f_dist.html @@ -402,7 +402,7 @@ is the non-centrality parameter, <span class="emphasis"><em>x</em></span> is the <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_t_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_t_dist.html index 18e2927b83..db8f62d9aa 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_t_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/nc_t_dist.html @@ -351,7 +351,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/negative_binomial_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/negative_binomial_dist.html index 83795f9c54..66794effd6 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/negative_binomial_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/negative_binomial_dist.html @@ -894,7 +894,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/normal_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/normal_dist.html index 50a9668e52..33143f1354 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/normal_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/normal_dist.html @@ -68,7 +68,7 @@ Given mean μ  and standard deviation σ  it has the PDF: </p> <p> - <span class="inlinemediaobject"><img src="../../../../../equations/normal_ref1.png"></span> +   <span class="inlinemediaobject"><img src="../../../../../equations/normal_ref1.png"></span> </p> <p> The variation the PDF with its parameters is illustrated in the following @@ -77,6 +77,18 @@ <p> <span class="inlinemediaobject"><img src="../../../../../graphs/normal_pdf.png" align="middle"></span> </p> +<p> + The cumulative distribution function is given by + </p> +<p> +   <span class="inlinemediaobject"><img src="../../../../../equations/normal_cdf.png"></span> + </p> +<p> + and illustrated by this graph + </p> +<p> + <span class="inlinemediaobject"><img src="../../../../../graphs/normal_cdf.png" align="middle"></span> + </p> <h5> <a name="math_toolkit.dist.dist_ref.dists.normal_dist.h0"></a> <span><a name="math_toolkit.dist.dist_ref.dists.normal_dist.member_functions"></a></span><a class="link" href="normal_dist.html#math_toolkit.dist.dist_ref.dists.normal_dist.member_functions">Member @@ -250,6 +262,18 @@ <tr> <td> <p> + median + </p> + </td> +<td> + <p> + The same as the mean. + </p> + </td> +</tr> +<tr> +<td> + <p> skewness </p> </td> @@ -289,7 +313,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/pareto.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/pareto.html index b28ab91dc8..2a7331a6fd 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/pareto.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/pareto.html @@ -340,7 +340,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/poisson_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/poisson_dist.html index 5d6ea4a081..5f7b4d590d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/poisson_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/poisson_dist.html @@ -320,7 +320,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/rayleigh.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/rayleigh.html index 878eec68d6..0663b5d26d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/rayleigh.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/rayleigh.html @@ -7,7 +7,7 @@ <link rel="home" href="../../../../index.html" title="Math Toolkit"> <link rel="up" href="../dists.html" title="Distributions"> <link rel="prev" href="poisson_dist.html" title="Poisson Distribution"> -<link rel="next" href="students_t_dist.html" title="Students t Distribution"> +<link rel="next" href="skew_normal_dist.html" title="Skew Normal Distribution"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> @@ -20,7 +20,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="poisson_dist.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../dists.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="students_t_dist.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="poisson_dist.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../dists.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="skew_normal_dist.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_dist_dist_ref_dists_rayleigh"> <div class="titlepage"><div><div><h5 class="title"> @@ -336,7 +336,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -344,7 +344,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="poisson_dist.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../dists.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="students_t_dist.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="poisson_dist.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../dists.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="skew_normal_dist.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/skew_normal_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/skew_normal_dist.html new file mode 100644 index 0000000000..73bd8b63b3 --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/skew_normal_dist.html @@ -0,0 +1,504 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Skew Normal Distribution</title> +<link rel="stylesheet" href="../../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../../index.html" title="Math Toolkit"> +<link rel="up" href="../dists.html" title="Distributions"> +<link rel="prev" href="rayleigh.html" title="Rayleigh Distribution"> +<link rel="next" href="students_t_dist.html" title="Students t Distribution"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="rayleigh.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../dists.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="students_t_dist.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_dist_dist_ref_dists_skew_normal_dist"> +<div class="titlepage"><div><div><h5 class="title"> +<a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist"></a><a class="link" href="skew_normal_dist.html" title="Skew Normal Distribution">Skew + Normal Distribution</a> +</h5></div></div></div> +<p> +</p> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">distributions</span><span class="special">/</span><span class="identifier">skew_normal</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></pre> +<p> + </p> +<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">math</span><span class="special">{</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">RealType</span> <span class="special">=</span> <span class="keyword">double</span><span class="special">,</span> + <span class="keyword">class</span> <a class="link" href="../../../policy.html" title="Policies">Policy</a> <span class="special">=</span> <a class="link" href="../../../policy/pol_ref/pol_ref_ref.html" title="Policy Class Reference">policies::policy<></a> <span class="special">></span> +<span class="keyword">class</span> <span class="identifier">skew_normal_distribution</span><span class="special">;</span> + +<span class="keyword">typedef</span> <span class="identifier">skew_normal_distribution</span><span class="special"><></span> <span class="identifier">normal</span><span class="special">;</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">RealType</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="../../../policy.html" title="Policies">Policy</a><span class="special">></span> +<span class="keyword">class</span> <span class="identifier">skew_normal_distribution</span> +<span class="special">{</span> +<span class="keyword">public</span><span class="special">:</span> + <span class="keyword">typedef</span> <span class="identifier">RealType</span> <span class="identifier">value_type</span><span class="special">;</span> + <span class="keyword">typedef</span> <span class="identifier">Policy</span> <span class="identifier">policy_type</span><span class="special">;</span> + <span class="comment">// Constructor:</span> + <span class="identifier">skew_normal_distribution</span><span class="special">(</span><span class="identifier">RealType</span> <span class="identifier">location</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">RealType</span> <span class="identifier">scale</span> <span class="special">=</span> <span class="number">1</span><span class="special">,</span> <span class="identifier">RealType</span> <span class="identifier">shape</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> + <span class="comment">// Accessors:</span> + <span class="identifier">RealType</span> <span class="identifier">location</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span> <span class="comment">// mean if normal.</span> + <span class="identifier">RealType</span> <span class="identifier">scale</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span> <span class="comment">// width, standard deviation if normal.</span> + <span class="identifier">RealType</span> <span class="identifier">shape</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span> <span class="comment">// The distribution is right skewed if shape > 0 and is left skewed if shape < 0.</span> + <span class="comment">// The distribution is normal if shape is zero.</span> +<span class="special">};</span> + +<span class="special">}}</span> <span class="comment">// namespaces</span> +</pre> +<p> + The skew normal distribution is a variant of the most well known Gaussian + statistical distribution. + </p> +<p> + The skew normal distribution with shape zero resembles the <a href="http://en.wikipedia.org/wiki/Normal_distribution" target="_top">Normal + Distribution</a>, hence the latter can be regarded as a special case + of the more generic skew normal distribution. + </p> +<p> + If the standard (mean = 0, scale = 1) normal distribution probability + density function is + </p> +<p> +     <span class="inlinemediaobject"><img src="../../../../../equations/normal01_pdf.png"></span> + </p> +<p> + and the cumulative distribution function + </p> +<p> +     <span class="inlinemediaobject"><img src="../../../../../equations/normal01_cdf.png"></span> + </p> +<p> + then the <a href="http://en.wikipedia.org/wiki/Probability_density_function" target="_top">PDF</a> + of the <a href="http://en.wikipedia.org/wiki/Skew_normal_distribution" target="_top">skew + normal distribution</a> with shape parameter α, defined by O'Hagan + and Leonhard (1976) is + </p> +<p> +     <span class="inlinemediaobject"><img src="../../../../../equations/skew_normal_pdf0.png"></span> + </p> +<p> + Given <a href="http://en.wikipedia.org/wiki/Location_parameter" target="_top">location</a> + ξ, <a href="http://en.wikipedia.org/wiki/Scale_parameter" target="_top">scale</a> + ω, and <a href="http://en.wikipedia.org/wiki/Shape_parameter" target="_top">shape</a> + α, it can be <a href="http://en.wikipedia.org/wiki/Skew_normal_distribution" target="_top">transformed</a>, + to the form: + </p> +<p> +     <span class="inlinemediaobject"><img src="../../../../../equations/skew_normal_pdf.png"></span> + </p> +<p> + and <a href="http://en.wikipedia.org/wiki/Cumulative_distribution_function" target="_top">CDF</a>: + </p> +<p> +     <span class="inlinemediaobject"><img src="../../../../../equations/skew_normal_cdf.png"></span> + </p> +<p> + where <span class="emphasis"><em>T(h,a)</em></span> is Owen's T function, and <span class="emphasis"><em>Φ(x)</em></span> + is the normal distribution. + </p> +<p> + The variation the PDF and CDF with its parameters is illustrated in the + following graphs: + </p> +<p> + <span class="inlinemediaobject"><img src="../../../../../graphs/skew_normal_pdf.png" align="middle"></span> + <span class="inlinemediaobject"><img src="../../../../../graphs/skew_normal_cdf.png" align="middle"></span> + </p> +<h5> +<a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.h0"></a> + <span><a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.member_functions"></a></span><a class="link" href="skew_normal_dist.html#math_toolkit.dist.dist_ref.dists.skew_normal_dist.member_functions">Member + Functions</a> + </h5> +<pre class="programlisting"><span class="identifier">skew_normal_distribution</span><span class="special">(</span><span class="identifier">RealType</span> <span class="identifier">location</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">RealType</span> <span class="identifier">scale</span> <span class="special">=</span> <span class="number">1</span><span class="special">,</span> <span class="identifier">RealType</span> <span class="identifier">shape</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span> +</pre> +<p> + Constructs a skew_normal distribution with location ξ, scale ω and shape + α. + </p> +<p> + Requires scale > 0, otherwise <a class="link" href="../../../main_overview/error_handling.html#domain_error">domain_error</a> + is called. + </p> +<pre class="programlisting"><span class="identifier">RealType</span> <span class="identifier">location</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span> +</pre> +<p> + returns the location ξ of this distribution, + </p> +<pre class="programlisting"><span class="identifier">RealType</span> <span class="identifier">scale</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span> +</pre> +<p> + returns the scale ω of this distribution, + </p> +<pre class="programlisting"><span class="identifier">RealType</span> <span class="identifier">shape</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span> +</pre> +<p> + returns the shape α of this distribution. + </p> +<p> + (Location and scale function match other similar distributions, allowing + the functions <code class="computeroutput"><span class="identifier">find_location</span></code> + and <code class="computeroutput"><span class="identifier">find_scale</span></code> to be + used generically). + </p> +<div class="note"><table border="0" summary="Note"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../../../doc/src/images/note.png"></td> +<th align="left">Note</th> +</tr> +<tr><td align="left" valign="top"> +<p> + While the shape parameter may be chosen arbitrarily (finite), the resulting + <span class="bold"><strong>skewness</strong></span> of the distribution is in + fact limited to about (-1, 1); strictly, the interval is (-0.9952717, + 0.9952717). + </p> +<p> + A parameter δ is related to the shape α by δ = α / (1 + α²), and used in the + expression for skewness <span class="inlinemediaobject"><img src="../../../../../equations/skew_normal_skewness.png"></span> + + </p> +</td></tr> +</table></div> +<h5> +<a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.h1"></a> + <span><a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.references"></a></span><a class="link" href="skew_normal_dist.html#math_toolkit.dist.dist_ref.dists.skew_normal_dist.references">References</a> + </h5> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + <a href="http://azzalini.stat.unipd.it/SN/" target="_top">Skew-Normal Probability + Distribution</a> for many links and bibliography. + </li> +<li class="listitem"> + <a href="http://azzalini.stat.unipd.it/SN/Intro/intro.html" target="_top">A + very brief introduction to the skew-normal distribution</a> by + Adelchi Azzalini (2005-11-2). + </li> +<li class="listitem"> + See a <a href="http://www.tri.org.au/azzalini.html" target="_top">skew-normal + function animation</a>. + </li> +</ul></div> +<h5> +<a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.h2"></a> + <span><a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.non_member_accessors"></a></span><a class="link" href="skew_normal_dist.html#math_toolkit.dist.dist_ref.dists.skew_normal_dist.non_member_accessors">Non-member + Accessors</a> + </h5> +<p> + All the <a class="link" href="../nmp.html" title="Non-Member Properties">usual non-member + accessor functions</a> that are generic to all distributions are supported: + <a class="link" href="../nmp.html#math.dist.cdf">Cumulative Distribution Function</a>, + <a class="link" href="../nmp.html#math.dist.pdf">Probability Density Function</a>, <a class="link" href="../nmp.html#math.dist.quantile">Quantile</a>, <a class="link" href="../nmp.html#math.dist.hazard">Hazard + Function</a>, <a class="link" href="../nmp.html#math.dist.chf">Cumulative Hazard Function</a>, + <a class="link" href="../nmp.html#math.dist.mean">mean</a>, <a class="link" href="../nmp.html#math.dist.median">median</a>, + <a class="link" href="../nmp.html#math.dist.mode">mode</a>, <a class="link" href="../nmp.html#math.dist.variance">variance</a>, + <a class="link" href="../nmp.html#math.dist.sd">standard deviation</a>, <a class="link" href="../nmp.html#math.dist.skewness">skewness</a>, + <a class="link" href="../nmp.html#math.dist.kurtosis">kurtosis</a>, <a class="link" href="../nmp.html#math.dist.kurtosis_excess">kurtosis_excess</a>, + <a class="link" href="../nmp.html#math.dist.range">range</a> and <a class="link" href="../nmp.html#math.dist.support">support</a>. + </p> +<p> + The domain of the random variable is <span class="emphasis"><em>-[max_value</em></span>, + +[min_value]]. Infinite values are not supported. + </p> +<p> + There are no <a href="http://en.wikipedia.org/wiki/Closed-form_expression" target="_top">closed-form + expression</a> known for the mode and median, but these are computed + for the + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + mode - by finding the maximum of the PDF. + </li> +<li class="listitem"> + median - by computing <code class="computeroutput"><span class="identifier">quantile</span><span class="special">(</span><span class="number">1</span><span class="special">/</span><span class="number">2</span><span class="special">)</span></code>. + </li> +</ul></div> +<p> + The maximum of the PDF is sought through searching the root of f'(x)=0. + </p> +<p> + Both involve iterative methods that will have lower accuracy than other + estimates. + </p> +<h5> +<a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.h3"></a> + <span><a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.testing"></a></span><a class="link" href="skew_normal_dist.html#math_toolkit.dist.dist_ref.dists.skew_normal_dist.testing">Testing</a> + </h5> +<p> + <a href="http://www.r-project.org/" target="_top">The R Project for Statistical + Computing</a> using library(sn) described at <a href="http://azzalini.stat.unipd.it/SN/" target="_top">Skew-Normal + Probability Distribution</a>, and at <a href="http://cran.r-project.org/web/packages/sn/sn.pd" target="_top">R + skew-normal(sn) package</a>. + </p> +<p> + 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. + </p> +<p> + <a href="http://www.wolfram.com/products/mathematica/index.html" target="_top">Wolfram + Mathematica</a> was also used to generate some more accurate spot + test data. + </p> +<h5> +<a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.h4"></a> + <span><a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.accuracy"></a></span><a class="link" href="skew_normal_dist.html#math_toolkit.dist.dist_ref.dists.skew_normal_dist.accuracy">Accuracy</a> + </h5> +<p> + The skew_normal distribution with shape = zero is implemented as a special + case, equivalent to the normal distribution in terms of the <a class="link" href="../../../special/sf_erf/error_function.html" title="Error Functions">error + function</a>, and therefore should have excellent accuracy. + </p> +<p> + The PDF and mean, variance, skewness and kurtosis are also accurately + evaluated using <a href="http://en.wikipedia.org/wiki/Analytical_expression" target="_top">analytical + expressions</a>. The CDF requires <a href="http://en.wikipedia.org/wiki/Owen%27s_T_function" target="_top">Owen's + T function</a> that is evaluated using a Boost C++ <a class="link" href="../../../special/owens_t.html" title="Owen's T function">Owens + T</a> 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 <a class="link" href="../../../special/owens_t.html" title="Owen's T function">Owens + T</a>. + </p> +<p> + The median and mode are calculated by iterative root finding, and both + will be less accurate. + </p> +<h5> +<a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.h5"></a> + <span><a name="math_toolkit.dist.dist_ref.dists.skew_normal_dist.implementation"></a></span><a class="link" href="skew_normal_dist.html#math_toolkit.dist.dist_ref.dists.skew_normal_dist.implementation">Implementation</a> + </h5> +<p> + In the following table, ξ is the location of the distribution, and ω is its + scale, and α is its shape. + </p> +<div class="informaltable"><table class="table"> +<colgroup> +<col> +<col> +</colgroup> +<thead><tr> +<th> + <p> + Function + </p> + </th> +<th> + <p> + Implementation Notes + </p> + </th> +</tr></thead> +<tbody> +<tr> +<td> + <p> + pdf + </p> + </td> +<td> + <p> + Using: <span class="inlinemediaobject"><img src="../../../../../equations/skew_normal_pdf.png"></span> + </p> + </td> +</tr> +<tr> +<td> + <p> + cdf + </p> + </td> +<td> + <p> + Using: <span class="inlinemediaobject"><img src="../../../../../equations/skew_normal_cdf.png"></span><br> where <span class="emphasis"><em>T(h,a)</em></span> + is Owen's T function, and <span class="emphasis"><em>Φ(x)</em></span> is the normal + distribution. + </p> + </td> +</tr> +<tr> +<td> + <p> + cdf complement + </p> + </td> +<td> + <p> + Using: complement of normal distribution + 2 * Owens_t + </p> + </td> +</tr> +<tr> +<td> + <p> + quantile + </p> + </td> +<td> + <p> + Maximum of the pdf is sought through searching the root of + f'(x)=0 + </p> + </td> +</tr> +<tr> +<td> + <p> + quantile from the complement + </p> + </td> +<td> + <p> + -quantile(SN(-location ξ, scale ω, -shapeα), p) + </p> + </td> +</tr> +<tr> +<td> + <p> + location + </p> + </td> +<td> + <p> + location ξ + </p> + </td> +</tr> +<tr> +<td> + <p> + scale + </p> + </td> +<td> + <p> + scale ω + </p> + </td> +</tr> +<tr> +<td> + <p> + shape + </p> + </td> +<td> + <p> + shape α + </p> + </td> +</tr> +<tr> +<td> + <p> + median + </p> + </td> +<td> + <p> + quantile(1/2) + </p> + </td> +</tr> +<tr> +<td> + <p> + mean + </p> + </td> +<td> + <p> + <span class="inlinemediaobject"><img src="../../../../../equations/skew_normal_mean.png"></span> + </p> + </td> +</tr> +<tr> +<td> + <p> + mode + </p> + </td> +<td> + <p> + Maximum of the pdf is sought through searching the root of + f'(x)=0 + </p> + </td> +</tr> +<tr> +<td> + <p> + variance + </p> + </td> +<td> + <p> + <span class="inlinemediaobject"><img src="../../../../../equations/skew_normal_variance.png"></span> + </p> + </td> +</tr> +<tr> +<td> + <p> + skewness + </p> + </td> +<td> + <p> + <span class="inlinemediaobject"><img src="../../../../../equations/skew_normal_skewness.png"></span> + </p> + </td> +</tr> +<tr> +<td> + <p> + kurtosis + </p> + </td> +<td> + <p> + kurtosis excess-3 + </p> + </td> +</tr> +<tr> +<td> + <p> + kurtosis excess + </p> + </td> +<td> + <p> + <span class="inlinemediaobject"><img src="../../../../../equations/skew_normal_kurt_ex.png"></span> + </p> + </td> +</tr> +</tbody> +</table></div> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="rayleigh.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../dists.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="students_t_dist.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/students_t_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/students_t_dist.html index c205b592c5..40df64738c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/students_t_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/students_t_dist.html @@ -6,7 +6,7 @@ <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../../index.html" title="Math Toolkit"> <link rel="up" href="../dists.html" title="Distributions"> -<link rel="prev" href="rayleigh.html" title="Rayleigh Distribution"> +<link rel="prev" href="skew_normal_dist.html" title="Skew Normal Distribution"> <link rel="next" href="triangular_dist.html" title="Triangular Distribution"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> @@ -20,7 +20,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="rayleigh.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../dists.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="triangular_dist.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="skew_normal_dist.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../dists.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="triangular_dist.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_dist_dist_ref_dists_students_t_dist"> <div class="titlepage"><div><div><h5 class="title"> @@ -408,7 +408,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -416,7 +416,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="rayleigh.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../dists.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="triangular_dist.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="skew_normal_dist.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../dists.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="triangular_dist.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/triangular_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/triangular_dist.html index c804517fc0..977829a0bf 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/triangular_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/triangular_dist.html @@ -414,7 +414,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/uniform_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/uniform_dist.html index 4f9c377609..76bcfddd0c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/uniform_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/uniform_dist.html @@ -357,7 +357,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/weibull_dist.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/weibull_dist.html index a77f8fc3e1..4e210c1cdc 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/weibull_dist.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/dists/weibull_dist.html @@ -357,7 +357,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/nmp.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/nmp.html index 6a839e7db2..487d769c63 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/nmp.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/dist_ref/nmp.html @@ -661,7 +661,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/future.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/future.html index fc5a97a8fe..9d909633ae 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/future.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/future.html @@ -134,7 +134,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut.html index 869b1243c1..e9f0a041a3 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut.html @@ -141,7 +141,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/dist_params.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/dist_params.html index 84bcfe4f98..5f747760ce 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/dist_params.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/dist_params.html @@ -85,7 +85,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview.html index f5d318b6ae..ebe9959f2e 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview.html @@ -43,7 +43,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/complements.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/complements.html index ca8e1428b0..e3f7a3bba8 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/complements.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/complements.html @@ -186,7 +186,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/generic.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/generic.html index 6c5cf9b497..9d20e96040 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/generic.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/generic.html @@ -242,7 +242,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/headers.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/headers.html index adb1101b80..e37ec40b58 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/headers.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/headers.html @@ -63,7 +63,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/objects.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/objects.html index ce2f5ec395..dc772c0781 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/objects.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/objects.html @@ -120,7 +120,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/parameters.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/parameters.html index ed43380eee..c56b7bcb05 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/parameters.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/parameters.html @@ -58,7 +58,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/summary.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/summary.html index 1bcb34f5fd..ee92a5a19d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/summary.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/overview/summary.html @@ -59,7 +59,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/variates.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/variates.html index 9a3f03f37a..13bb6242d4 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/variates.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/variates.html @@ -62,7 +62,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg.html index 4d11fdccf8..1ff7ff852a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg.html @@ -114,7 +114,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg.html index 33d3c68716..39cee90963 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg.html @@ -45,7 +45,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binom_conf.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binom_conf.html index 5bd84bf75e..901a98ea4b 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binom_conf.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binom_conf.html @@ -227,7 +227,7 @@ _______________________________________________________________________ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binom_size_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binom_size_eg.html index c8e576fd1f..707e16e49c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binom_size_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binom_size_eg.html @@ -144,7 +144,7 @@ ____________________________ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binomial_coinflip_example.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binomial_coinflip_example.html index 06d6ed5d5d..546c83e699 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binomial_coinflip_example.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binomial_coinflip_example.html @@ -66,7 +66,8 @@ <span class="special">{</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Using Binomial distribution to predict how many heads and tails."</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="keyword">try</span> - <span class="special">{</span></pre> + <span class="special">{</span> +</pre> <p> </p> <p> @@ -83,7 +84,8 @@ <span class="keyword">int</span> <span class="identifier">flips</span> <span class="special">=</span> <span class="number">10</span><span class="special">;</span> <span class="identifier">binomial</span> <span class="identifier">flip</span><span class="special">(</span><span class="identifier">flips</span><span class="special">,</span> <span class="identifier">success_fraction</span><span class="special">);</span> -<span class="identifier">cout</span><span class="special">.</span><span class="identifier">precision</span><span class="special">(</span><span class="number">4</span><span class="special">);</span></pre> +<span class="identifier">cout</span><span class="special">.</span><span class="identifier">precision</span><span class="special">(</span><span class="number">4</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -103,7 +105,8 @@ <span class="comment">// if success_fraction is exactly one half,</span> <span class="comment">// for example, when flipping 'fair' coins.</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Skewness if success_fraction is "</span> <span class="special"><<</span> <span class="identifier">flip</span><span class="special">.</span><span class="identifier">success_fraction</span><span class="special">()</span> - <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">skewness</span><span class="special">(</span><span class="identifier">flip</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// Expect zero for a 'fair' coin.</span></pre> + <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">skewness</span><span class="special">(</span><span class="identifier">flip</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// Expect zero for a 'fair' coin.</span> +</pre> <p> </p> <p> @@ -113,7 +116,8 @@ </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"For "</span> <span class="special"><<</span> <span class="identifier">flip</span><span class="special">.</span><span class="identifier">trials</span><span class="special">()</span> <span class="special"><<</span> <span class="string">" coin flips: "</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting no heads is "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting at least one head is "</span> <span class="special"><<</span> <span class="number">1.</span> <span class="special">-</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting at least one head is "</span> <span class="special"><<</span> <span class="number">1.</span> <span class="special">-</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -123,7 +127,8 @@ <p> </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting 0 or 1 heads is "</span> - <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// sum of exactly == probabilities</span></pre> + <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// sum of exactly == probabilities</span> +</pre> <p> </p> <p> @@ -132,7 +137,8 @@ <p> </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting 0 or 1 (<= 1) heads is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting 9 or 10 heads is "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">9</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting 9 or 10 heads is "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">9</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -140,7 +146,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting 9 or 10 heads is "</span> <span class="special"><<</span> <span class="number">1.</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">8</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting 9 or 10 heads is "</span> <span class="special"><<</span> <span class="number">1.</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">8</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -148,7 +155,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting 9 or 10 heads is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">8</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting 9 or 10 heads is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">8</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -165,7 +173,8 @@ </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of between 4 and 6 heads (4 or 5 or 6) is "</span> <span class="comment">// P(X == 4) + P(X == 5) + P(X == 6)</span> - <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">4</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">5</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">6</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">4</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">5</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">6</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -175,7 +184,8 @@ </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of between 4 and 6 heads (4 or 5 or 6) is "</span> <span class="comment">// P(X <= 6) - P(X <= 3) == P(X < 4)</span> - <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">6</span><span class="special">)</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">3</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">6</span><span class="special">)</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">3</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -186,7 +196,8 @@ <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of between 3 and 7 heads (3, 4, 5, 6 or 7) is "</span> <span class="comment">// P(X <= 7) - P(X <= 2) == P(X < 3)</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">7</span><span class="special">)</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">flip</span><span class="special">,</span> <span class="number">2</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -215,7 +226,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">2</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">successes</span> <span class="special"><<</span> <span class="string">" "</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">left</span> <span class="special"><<</span> <span class="identifier">probability</span> <span class="special"><<</span> <span class="string">" or 1 in "</span> <span class="special"><<</span> <span class="number">1.</span> <span class="special">/</span> <span class="identifier">probability</span> <span class="special"><<</span> <span class="string">", or "</span> <span class="special"><<</span> <span class="identifier">probability</span> <span class="special">*</span> <span class="number">100.</span> <span class="special"><<</span> <span class="string">"%"</span><span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="special">}</span> <span class="comment">// for i</span></pre> +<span class="special">}</span> <span class="comment">// for i</span> +</pre> <p> </p> <p> @@ -226,7 +238,8 @@ <pre class="programlisting"><span class="special">}</span> <span class="keyword">catch</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">exception</span><span class="special">&</span> <span class="identifier">e</span><span class="special">)</span> <span class="special">{</span> - <span class="comment">//</span></pre> + <span class="comment">//</span> +</pre> <p> </p> <p> @@ -301,7 +314,7 @@ Probability of getting upto (<=) heads <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binomial_quiz_example.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binomial_quiz_example.html index 58a84fd9b7..2259eba730 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binomial_quiz_example.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/binom_eg/binomial_quiz_example.html @@ -55,8 +55,6 @@ <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">setw</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">setprecision</span><span class="special">;</span> <span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">exception</span><span class="special">></span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">exception</span><span class="special">;</span> - - </pre> <p> </p> @@ -70,7 +68,8 @@ <pre class="programlisting"><span class="keyword">int</span> <span class="identifier">questions</span> <span class="special">=</span> <span class="number">16</span><span class="special">;</span> <span class="comment">// All the questions in the quiz.</span> <span class="keyword">int</span> <span class="identifier">answers</span> <span class="special">=</span> <span class="number">4</span><span class="special">;</span> <span class="comment">// Possible answers to each question.</span> <span class="keyword">double</span> <span class="identifier">success_fraction</span> <span class="special">=</span> <span class="number">1.</span> <span class="special">/</span> <span class="identifier">answers</span><span class="special">;</span> <span class="comment">// If a random guess, p = 1/4 = 0.25.</span> -<span class="identifier">binomial</span> <span class="identifier">quiz</span><span class="special">(</span><span class="identifier">questions</span><span class="special">,</span> <span class="identifier">success_fraction</span><span class="special">);</span></pre> +<span class="identifier">binomial</span> <span class="identifier">quiz</span><span class="special">(</span><span class="identifier">questions</span><span class="special">,</span> <span class="identifier">success_fraction</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -81,7 +80,8 @@ <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"In a quiz with "</span> <span class="special"><<</span> <span class="identifier">quiz</span><span class="special">.</span><span class="identifier">trials</span><span class="special">()</span> <span class="special"><<</span> <span class="string">" questions and with a probability of guessing right of "</span> <span class="special"><<</span> <span class="identifier">quiz</span><span class="special">.</span><span class="identifier">success_fraction</span><span class="special">()</span> <span class="special">*</span> <span class="number">100</span> <span class="special"><<</span> <span class="string">" %"</span> - <span class="special"><<</span> <span class="string">" or 1 in "</span> <span class="special"><<</span> <span class="keyword">static_cast</span><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="number">1.</span> <span class="special">/</span> <span class="identifier">quiz</span><span class="special">.</span><span class="identifier">success_fraction</span><span class="special">())</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">" or 1 in "</span> <span class="special"><<</span> <span class="keyword">static_cast</span><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="number">1.</span> <span class="special">/</span> <span class="identifier">quiz</span><span class="special">.</span><span class="identifier">success_fraction</span><span class="special">())</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -96,7 +96,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting exactly "</span> <span class="special"><<</span> <span class="identifier">pass_score</span> <span class="special"><<</span> <span class="string">" answers right by chance is "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">pass_score</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting all "</span> <span class="special"><<</span> <span class="identifier">questions</span> <span class="special"><<</span> <span class="string">" answers right by chance is "</span> - <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">questions</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">questions</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability of getting none right is 0.0100226 @@ -119,7 +120,8 @@ Probability of getting exactly all 16 answers right by chance is 2.32831e-010 <span class="keyword">double</span> <span class="identifier">probability</span> <span class="special">=</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">successes</span><span class="special">);</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">2</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">successes</span> <span class="special"><<</span> <span class="string">" "</span> <span class="special"><<</span> <span class="identifier">probability</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Guessed Probability @@ -146,7 +148,8 @@ Probability of getting exactly all 16 answers right by chance is 2.32831e-010 </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting none or one right is "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting none or one right is "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability of getting none or one right is 0.0634764 @@ -158,7 +161,8 @@ Probability of getting exactly all 16 answers right by chance is 2.32831e-010 </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting none or one right is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting none or one right is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability of getting none or one right is 0.0634764 @@ -169,7 +173,8 @@ Probability of getting exactly all 16 answers right by chance is 2.32831e-010 </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting <= 10 right (to fail) is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting <= 10 right (to fail) is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability of getting <= 10 right (to fail) is 0.999715 @@ -184,7 +189,8 @@ Probability of getting exactly all 16 answers right by chance is 2.32831e-010 </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting > 10 right (to pass) is "</span> <span class="special"><<</span> <span class="number">1</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting > 10 right (to pass) is "</span> <span class="special"><<</span> <span class="number">1</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability of getting > 10 right (to pass) is 0.000285239 @@ -195,7 +201,8 @@ Probability of getting exactly all 16 answers right by chance is 2.32831e-010 </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting > 10 right (to pass) is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">10</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting > 10 right (to pass) is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">10</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability of getting > 10 right (to pass) is 0.000285239 @@ -205,7 +212,8 @@ Probability of getting exactly all 16 answers right by chance is 2.32831e-010 </p> <p> </p> -<pre class="programlisting"><span class="identifier">BOOST_ASSERT</span><span class="special">((</span><span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">10</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">10</span><span class="special">)))</span> <span class="special">==</span> <span class="number">1.</span><span class="special">);</span></pre> +<pre class="programlisting"><span class="identifier">BOOST_ASSERT</span><span class="special">((</span><span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">10</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">10</span><span class="special">)))</span> <span class="special">==</span> <span class="number">1.</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -216,7 +224,8 @@ Probability of getting exactly all 16 answers right by chance is 2.32831e-010 </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting less than "</span> <span class="special"><<</span> <span class="identifier">pass_score</span> <span class="special"><<</span> <span class="string">" (< "</span> <span class="special"><<</span> <span class="identifier">pass_score</span> <span class="special"><<</span> <span class="string">") answers right by guessing is "</span> - <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">pass_score</span> <span class="special">-</span><span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">pass_score</span> <span class="special">-</span><span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability of getting less than 11 (< 11) answers right by guessing is 0.999715 @@ -235,7 +244,8 @@ Probability of getting exactly all 16 answers right by chance is 2.32831e-010 <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">pass_score</span><span class="special">-</span><span class="number">1</span><span class="special">))</span> <span class="special"><<</span> <span class="string">", only 1 in "</span> <span class="special"><<</span> <span class="number">1</span><span class="special">/</span><span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">pass_score</span><span class="special">-</span><span class="number">1</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="identifier">BOOST_ASSERT</span><span class="special">((</span><span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">pass_score</span> <span class="special">-</span><span class="number">1</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">pass_score</span><span class="special">-</span><span class="number">1</span><span class="special">)))</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span></pre> +<span class="identifier">BOOST_ASSERT</span><span class="special">((</span><span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">pass_score</span> <span class="special">-</span><span class="number">1</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">pass_score</span><span class="special">-</span><span class="number">1</span><span class="special">)))</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span> +</pre> <p> </p> <pre class="programlisting">Probability of getting at least 11 (>= 11) answers right by guessing is 0.000285239, only 1 in 3505.83 @@ -251,7 +261,8 @@ Probability of getting exactly all 16 answers right by chance is 2.32831e-010 <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">2</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">score</span> <span class="special"><<</span> <span class="string">" "</span> <span class="special"><<</span> <span class="identifier">setprecision</span><span class="special">(</span><span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">score</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">At most (<=) @@ -281,7 +292,8 @@ Guessed OK Probability <span class="special">{</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">2</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">score</span> <span class="special"><<</span> <span class="string">" "</span> <span class="special"><<</span> <span class="identifier">setprecision</span><span class="special">(</span><span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">score</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="special">}</span></pre> +<span class="special">}</span> +</pre> <p> </p> <pre class="programlisting">At least (>) @@ -324,7 +336,8 @@ Guessed OK Probability <span class="identifier">cout</span><span class="special">.</span><span class="identifier">precision</span><span class="special">(</span><span class="number">4</span><span class="special">);</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting between "</span> <span class="special"><<</span> <span class="identifier">low</span> <span class="special"><<</span> <span class="string">" and "</span> <span class="special"><<</span> <span class="identifier">high</span> <span class="special"><<</span> <span class="string">" answers right by guessing is "</span> - <span class="special"><<</span> <span class="identifier">sum</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.61323</span></pre> + <span class="special"><<</span> <span class="identifier">sum</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.61323</span> +</pre> <p> </p> <pre class="programlisting">Probability of getting between 3 and 5 answers right by guessing is 0.6132 @@ -335,7 +348,8 @@ Guessed OK Probability <p> </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting between "</span> <span class="special"><<</span> <span class="identifier">low</span> <span class="special"><<</span> <span class="string">" and "</span> <span class="special"><<</span> <span class="identifier">high</span> <span class="special"><<</span> <span class="string">" answers right by guessing is "</span> - <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">high</span><span class="special">)</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">low</span> <span class="special">-</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.61323</span></pre> + <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">high</span><span class="special">)</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">low</span> <span class="special">-</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.61323</span> +</pre> <p> </p> <pre class="programlisting">Probability of getting between 3 and 5 answers right by guessing is 0.6132 @@ -353,7 +367,8 @@ Guessed OK Probability <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">high</span><span class="special">)</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">low</span> <span class="special">-</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 1 <= x 8 P = 0.9825</span> <span class="identifier">low</span> <span class="special">=</span> <span class="number">4</span><span class="special">;</span> <span class="identifier">high</span> <span class="special">=</span> <span class="number">4</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of getting between "</span> <span class="special"><<</span> <span class="identifier">low</span> <span class="special"><<</span> <span class="string">" and "</span> <span class="special"><<</span> <span class="identifier">high</span> <span class="special"><<</span> <span class="string">" answers right by guessing is "</span> - <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">high</span><span class="special">)</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">low</span> <span class="special">-</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 4 <= x 4 P = 0.22520</span></pre> + <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">high</span><span class="special">)</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="identifier">low</span> <span class="special">-</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 4 <= x 4 P = 0.22520</span> +</pre> <p> </p> <pre class="programlisting">Probability of getting between 1 and 6 answers right by guessing is 0.9104 @@ -377,7 +392,8 @@ Probability of getting between 4 and 4 answers right by guessing is 0.2252 <span class="special"><<</span> <span class="identifier">ceil</span><span class="special">(</span><span class="identifier">mean</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">)</span> <span class="special">-</span> <span class="identifier">standard_deviation</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">))</span> <span class="special"><<</span> <span class="string">" and "</span> <span class="special"><<</span> <span class="identifier">floor</span><span class="special">(</span><span class="identifier">mean</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">standard_deviation</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">))</span> <span class="special"><<</span> <span class="string">" correct."</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Mode (the most frequent) is "</span> <span class="special"><<</span> <span class="identifier">mode</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Skewness is "</span> <span class="special"><<</span> <span class="identifier">skewness</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Skewness is "</span> <span class="special"><<</span> <span class="identifier">skewness</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">By guessing, on average, one can expect to get 4 correct answers. @@ -410,7 +426,8 @@ Skewness is 0.2887 <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">0.02</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 2 to 98%</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"If guessing then percentiles 1 to 99% will get "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">0.01</span><span class="special">)</span> - <span class="special"><<</span> <span class="string">" to "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">0.01</span><span class="special">))</span> <span class="special"><<</span> <span class="string">" right."</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">" to "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz</span><span class="special">,</span> <span class="number">0.01</span><span class="special">))</span> <span class="special"><<</span> <span class="string">" right."</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -457,7 +474,8 @@ Deciles 1 to 6 <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">discrete_quantile</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">real</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">integer_round_outwards</span><span class="special">;</span> <span class="comment">// Default.</span> -<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">policy</span><span class="special"><</span><span class="identifier">discrete_quantile</span><span class="special"><</span><span class="identifier">real</span><span class="special">></span> <span class="special">></span> <span class="identifier">real_quantile_policy</span><span class="special">;</span></pre> +<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">policy</span><span class="special"><</span><span class="identifier">discrete_quantile</span><span class="special"><</span><span class="identifier">real</span><span class="special">></span> <span class="special">></span> <span class="identifier">real_quantile_policy</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -473,7 +491,8 @@ Deciles 1 to 6 <p> </p> <pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">binomial_distribution</span><span class="special">;</span> -<span class="keyword">typedef</span> <span class="identifier">binomial_distribution</span><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="identifier">real_quantile_policy</span><span class="special">></span> <span class="identifier">real_quantile_binomial</span><span class="special">;</span></pre> +<span class="keyword">typedef</span> <span class="identifier">binomial_distribution</span><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="identifier">real_quantile_policy</span><span class="special">></span> <span class="identifier">real_quantile_binomial</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -481,7 +500,8 @@ Deciles 1 to 6 </p> <p> </p> -<pre class="programlisting"><span class="identifier">real_quantile_binomial</span> <span class="identifier">quiz_real</span><span class="special">(</span><span class="identifier">questions</span><span class="special">,</span> <span class="identifier">success_fraction</span><span class="special">);</span></pre> +<pre class="programlisting"><span class="identifier">real_quantile_binomial</span> <span class="identifier">quiz_real</span><span class="special">(</span><span class="identifier">questions</span><span class="special">,</span> <span class="identifier">success_fraction</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -504,7 +524,8 @@ Deciles 1 to 6 <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz_real</span><span class="special">,</span> <span class="number">0.02</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 2 to 98% 0.31311 7.7880</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"If guessing, then percentiles 1 to 99% will get "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">quiz_real</span><span class="special">,</span> <span class="number">0.01</span><span class="special">)</span> - <span class="special"><<</span> <span class="string">" to "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz_real</span><span class="special">,</span> <span class="number">0.01</span><span class="special">))</span> <span class="special"><<</span> <span class="string">" right."</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">" to "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">quiz_real</span><span class="special">,</span> <span class="number">0.01</span><span class="special">))</span> <span class="special"><<</span> <span class="string">" right."</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Real Quantiles @@ -524,7 +545,7 @@ If guessing then percentiles 1 to 99% will get 0 to 7.788 right. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/c_sharp.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/c_sharp.html index e516960b75..51d811b549 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/c_sharp.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/c_sharp.html @@ -43,7 +43,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg.html index ba13b76556..09256043b9 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg.html @@ -39,7 +39,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_intervals.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_intervals.html index 600ffab8cd..6be1a9d280 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_intervals.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_intervals.html @@ -221,7 +221,7 @@ ________________________________________ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_size.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_size.html index 499dbfc3dd..bb2197d594 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_size.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_size.html @@ -166,7 +166,7 @@ _______________________________________________________________ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_test.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_test.html index 3a6dc6da0f..4e154e43db 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_test.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/cs_eg/chi_sq_test.html @@ -281,7 +281,7 @@ Standard Deviation > 10.000 ACCEPTED <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/dist_construct_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/dist_construct_eg.html index a77cb97ff2..a92b6cdf64 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/dist_construct_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/dist_construct_eg.html @@ -52,7 +52,8 @@ <span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">distributions</span><span class="special">/</span><span class="identifier">binomial</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> <span class="comment">// for binomial_distribution.</span> <span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">distributions</span><span class="special">/</span><span class="identifier">beta</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> <span class="comment">// for beta_distribution.</span> <span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">distributions</span><span class="special">/</span><span class="identifier">gamma</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> <span class="comment">// for gamma_distribution.</span> -<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">distributions</span><span class="special">/</span><span class="identifier">normal</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> <span class="comment">// for normal_distribution.</span></pre> +<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">distributions</span><span class="special">/</span><span class="identifier">normal</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> <span class="comment">// for normal_distribution.</span> +</pre> <p> </p> <p> @@ -64,7 +65,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">negative_binomial_distribution</span><span class="special"><</span><span class="keyword">double</span><span class="special">></span> <span class="identifier">mydist0</span><span class="special">(</span><span class="number">8.</span><span class="special">,</span> <span class="number">0.25</span><span class="special">);</span></pre> +<pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">negative_binomial_distribution</span><span class="special"><</span><span class="keyword">double</span><span class="special">></span> <span class="identifier">mydist0</span><span class="special">(</span><span class="number">8.</span><span class="special">,</span> <span class="number">0.25</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -72,7 +74,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -81,7 +84,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">negative_binomial_distribution</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">negative_binomial_distribution</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -94,7 +98,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">negative_binomial_distribution</span><span class="special"><></span> <span class="identifier">mydist9</span><span class="special">(</span><span class="number">8.</span><span class="special">,</span> <span class="number">0.25</span><span class="special">);</span> <span class="comment">// Uses default RealType = double.</span></pre> +<pre class="programlisting"><span class="identifier">negative_binomial_distribution</span><span class="special"><></span> <span class="identifier">mydist9</span><span class="special">(</span><span class="number">8.</span><span class="special">,</span> <span class="number">0.25</span><span class="special">);</span> <span class="comment">// Uses default RealType = double.</span> +</pre> <p> </p> <p> @@ -120,7 +125,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">negative_binomial</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">negative_binomial</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -128,7 +134,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">negative_binomial</span> <span class="identifier">mydist</span><span class="special">(</span><span class="number">8.</span><span class="special">,</span> <span class="number">0.25</span><span class="special">);</span></pre> +<pre class="programlisting"><span class="identifier">negative_binomial</span> <span class="identifier">mydist</span><span class="special">(</span><span class="number">8.</span><span class="special">,</span> <span class="number">0.25</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -136,7 +143,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">negative_binomial</span> <span class="identifier">mydist10</span><span class="special">(</span><span class="number">5.</span><span class="special">,</span> <span class="number">0.4</span><span class="special">);</span> <span class="comment">// Both arguments double.</span></pre> +<pre class="programlisting"><span class="identifier">negative_binomial</span> <span class="identifier">mydist10</span><span class="special">(</span><span class="number">5.</span><span class="special">,</span> <span class="number">0.4</span><span class="special">);</span> <span class="comment">// Both arguments double.</span> +</pre> <p> </p> <p> @@ -144,7 +152,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">negative_binomial</span> <span class="identifier">mydist11</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">0.4</span><span class="special">);</span> <span class="comment">// Using provided typedef double, int and double arguments.</span></pre> +<pre class="programlisting"><span class="identifier">negative_binomial</span> <span class="identifier">mydist11</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">0.4</span><span class="special">);</span> <span class="comment">// Using provided typedef double, int and double arguments.</span> +</pre> <p> </p> <p> @@ -153,7 +162,8 @@ <p> </p> <pre class="programlisting"><span class="identifier">negative_binomial</span> <span class="identifier">mydist12</span><span class="special">(</span><span class="number">5.</span><span class="special">,</span> <span class="number">0.4F</span><span class="special">);</span> <span class="comment">// Double and float arguments.</span> -<span class="identifier">negative_binomial</span> <span class="identifier">mydist13</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">1</span><span class="special">);</span> <span class="comment">// Both arguments integer.</span></pre> +<span class="identifier">negative_binomial</span> <span class="identifier">mydist13</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">1</span><span class="special">);</span> <span class="comment">// Both arguments integer.</span> +</pre> <p> </p> <p> @@ -162,7 +172,8 @@ <p> </p> <pre class="programlisting"><span class="identifier">binomial</span> <span class="identifier">mybinomial</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">0.5</span><span class="special">);</span> <span class="comment">// is more concise than</span> -<span class="identifier">binomial_distribution</span><span class="special"><></span> <span class="identifier">mybinomd1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">0.5</span><span class="special">);</span></pre> +<span class="identifier">binomial_distribution</span><span class="special"><></span> <span class="identifier">mybinomd1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">0.5</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -187,7 +198,8 @@ error C3861: 'mybetad0': identifier not found <p> </p> <pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">beta_distribution</span><span class="special">;</span> -<span class="identifier">beta_distribution</span><span class="special"><></span> <span class="identifier">mybetad1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">0.5</span><span class="special">);</span></pre> +<span class="identifier">beta_distribution</span><span class="special"><></span> <span class="identifier">mybetad1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">0.5</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -195,7 +207,8 @@ error C3861: 'mybetad0': identifier not found </p> <p> </p> -<pre class="programlisting"><span class="identifier">gamma_distribution</span><span class="special"><></span> <span class="identifier">mygammad1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">0.5</span><span class="special">);</span></pre> +<pre class="programlisting"><span class="identifier">gamma_distribution</span><span class="special"><></span> <span class="identifier">mygammad1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">0.5</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -222,7 +235,8 @@ error C3861: 'mybetad0': identifier not found <span class="identifier">negative_binomial_distribution</span><span class="special"><</span><span class="keyword">double</span><span class="special">></span> <span class="identifier">mydist6</span><span class="special">(</span><span class="number">8.</span><span class="special">,</span> <span class="number">0.25</span><span class="special">);</span> <span class="comment">// Explicit long double precision:</span> -<span class="identifier">negative_binomial_distribution</span><span class="special"><</span><span class="keyword">long</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">mydist7</span><span class="special">(</span><span class="number">8.</span><span class="special">,</span> <span class="number">0.25</span><span class="special">);</span></pre> +<span class="identifier">negative_binomial_distribution</span><span class="special"><</span><span class="keyword">long</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">mydist7</span><span class="special">(</span><span class="number">8.</span><span class="special">,</span> <span class="number">0.25</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -265,7 +279,8 @@ error C3861: 'mybetad0': identifier not found <span class="identifier">normal</span> <span class="identifier">norm3</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">);</span> <span class="comment">// Mean = 2, std deviation = 3.</span> <span class="keyword">return</span> <span class="number">0</span><span class="special">;</span> -<span class="special">}</span> <span class="comment">// int main()</span></pre> +<span class="special">}</span> <span class="comment">// int main()</span> +</pre> <p> </p> <p> @@ -275,7 +290,7 @@ error C3861: 'mybetad0': identifier not found <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/error_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/error_eg.html index 2ae0cc6cb2..e2bfdc4538 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/error_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/error_eg.html @@ -93,7 +93,8 @@ <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">exception</span><span class="special">;</span> <span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">cstddef</span><span class="special">></span> - <span class="comment">// using ::errno</span></pre> + <span class="comment">// using ::errno</span> +</pre> <p> </p> <p> @@ -135,7 +136,8 @@ <span class="string">"\n"</span><span class="string">"Message from thrown exception was:\n "</span> <span class="special"><<</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">what</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> <span class="keyword">return</span> <span class="number">0</span><span class="special">;</span> -<span class="special">}</span> <span class="comment">// int main()</span></pre> +<span class="special">}</span> <span class="comment">// int main()</span> +</pre> <p> </p> <p> @@ -197,7 +199,7 @@ errno is set to: 33 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/f_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/f_eg.html index 63725d7df9..263781cd0c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/f_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/f_eg.html @@ -316,7 +316,7 @@ Standard deviation 1 is greater than standard deviation 2 ACCEPTED <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg.html index dc9763ac16..43b01c9d6f 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg.html @@ -39,7 +39,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_location_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_location_eg.html index 17a7b24602..c24476f506 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_location_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_location_eg.html @@ -50,7 +50,6 @@ <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">setw</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">setprecision</span><span class="special">;</span> <span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">limits</span><span class="special">></span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special">;</span> - </pre> <p> </p> @@ -62,7 +61,8 @@ <p> </p> <pre class="programlisting"><span class="identifier">normal</span> <span class="identifier">N01</span><span class="special">;</span> <span class="comment">// Default 'standard' normal distribution with zero mean and </span> -<span class="keyword">double</span> <span class="identifier">sd</span> <span class="special">=</span> <span class="number">1.</span><span class="special">;</span> <span class="comment">// normal default standard deviation is 1.</span></pre> +<span class="keyword">double</span> <span class="identifier">sd</span> <span class="special">=</span> <span class="number">1.</span><span class="special">;</span> <span class="comment">// normal default standard deviation is 1.</span> +</pre> <p> </p> <p> @@ -82,7 +82,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Normal distribution with mean = "</span> <span class="special"><<</span> <span class="identifier">N01</span><span class="special">.</span><span class="identifier">location</span><span class="special">()</span> <span class="special"><<</span> <span class="string">", standard deviation "</span> <span class="special"><<</span> <span class="identifier">N01</span><span class="special">.</span><span class="identifier">scale</span><span class="special">()</span> <span class="special"><<</span> <span class="string">", has "</span> <span class="special"><<</span> <span class="string">"fraction > "</span> <span class="special"><<</span> <span class="identifier">z</span> - <span class="special"><<</span> <span class="string">", p = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">N01</span><span class="special">,</span> <span class="identifier">z</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// Note: uses complement.</span></pre> + <span class="special"><<</span> <span class="string">", p = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">N01</span><span class="special">,</span> <span class="identifier">z</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// Note: uses complement.</span> +</pre> <p> </p> <pre class="programlisting">Normal distribution with mean = 0, standard deviation 1, has fraction <= -2, p = 0.0227501 @@ -94,7 +95,8 @@ Normal distribution with mean = 0, standard deviation 1, has fraction > -2, p <p> </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">l</span> <span class="special">=</span> <span class="identifier">find_location</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">z</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">sd</span><span class="special">);</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"offset location (mean) = "</span> <span class="special"><<</span> <span class="identifier">l</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"offset location (mean) = "</span> <span class="special"><<</span> <span class="identifier">l</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -112,7 +114,8 @@ Normal distribution with mean = 0, standard deviation 1, has fraction > -2, p </p> <p> </p> -<pre class="programlisting"><span class="identifier">normal</span> <span class="identifier">np001pc</span><span class="special">(</span><span class="identifier">l</span><span class="special">,</span> <span class="identifier">sd</span><span class="special">);</span> <span class="comment">// Same standard_deviation (scale) but with mean (location) shifted.</span></pre> +<pre class="programlisting"><span class="identifier">normal</span> <span class="identifier">np001pc</span><span class="special">(</span><span class="identifier">l</span><span class="special">,</span> <span class="identifier">sd</span><span class="special">);</span> <span class="comment">// Same standard_deviation (scale) but with mean (location) shifted.</span> +</pre> <p> </p> <p> @@ -125,7 +128,8 @@ Normal distribution with mean = 0, standard deviation 1, has fraction > -2, p <span class="special"><<</span> <span class="string">", p = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">np001pc</span><span class="special">,</span> <span class="identifier">z</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Normal distribution with mean = "</span> <span class="special"><<</span> <span class="identifier">l</span> <span class="special"><<</span> <span class="string">" has "</span> <span class="special"><<</span> <span class="string">"fraction > "</span> <span class="special"><<</span> <span class="identifier">z</span> - <span class="special"><<</span> <span class="string">", p = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">np001pc</span><span class="special">,</span> <span class="identifier">z</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">", p = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">np001pc</span><span class="special">,</span> <span class="identifier">z</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Normal distribution with mean = 1.09023 has fraction <= -2, p = 0.001 @@ -148,7 +152,8 @@ Normal distribution with mean = 1.09023 has fraction > -2, p = 0.999 </p> <pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">policy</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">domain_error</span><span class="special">;</span> -<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">ignore_error</span><span class="special">;</span></pre> +<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">ignore_error</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -165,7 +170,8 @@ Normal distribution with mean = 1.09023 has fraction > -2, p = 0.999 <span class="comment">// Default policy, fully specified.</span> <span class="identifier">l</span> <span class="special">=</span> <span class="identifier">find_location</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">z</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">sd</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">policy</span><span class="special"><>());</span> <span class="comment">// A new policy, ignoring domain errors, without using a typedef.</span> -<span class="identifier">l</span> <span class="special">=</span> <span class="identifier">find_location</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">z</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">sd</span><span class="special">,</span> <span class="identifier">policy</span><span class="special"><</span><span class="identifier">domain_error</span><span class="special"><</span><span class="identifier">ignore_error</span><span class="special">></span> <span class="special">>());</span></pre> +<span class="identifier">l</span> <span class="special">=</span> <span class="identifier">find_location</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">z</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">sd</span><span class="special">,</span> <span class="identifier">policy</span><span class="special"><</span><span class="identifier">domain_error</span><span class="special"><</span><span class="identifier">ignore_error</span><span class="special">></span> <span class="special">>());</span> +</pre> <p> </p> <p> @@ -205,7 +211,7 @@ Normal distribution with mean = 0.355146 has fraction > 2 = 0.05 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_mean_and_sd_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_mean_and_sd_eg.html index 65823fdd52..39dec71bf9 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_mean_and_sd_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_mean_and_sd_eg.html @@ -77,7 +77,8 @@ </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">mean</span> <span class="special">=</span> <span class="number">3.</span><span class="special">;</span> <span class="comment">// kg</span> <span class="keyword">double</span> <span class="identifier">standard_deviation</span> <span class="special">=</span> <span class="number">0.1</span><span class="special">;</span> <span class="comment">// kg</span> -<span class="identifier">normal</span> <span class="identifier">packs</span><span class="special">(</span><span class="identifier">mean</span><span class="special">,</span> <span class="identifier">standard_deviation</span><span class="special">);</span></pre> +<span class="identifier">normal</span> <span class="identifier">packs</span><span class="special">(</span><span class="identifier">mean</span><span class="special">,</span> <span class="identifier">standard_deviation</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -88,7 +89,8 @@ </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">max_weight</span> <span class="special">=</span> <span class="number">3.1</span><span class="special">;</span> <span class="comment">// kg</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Percentage of packs > "</span> <span class="special"><<</span> <span class="identifier">max_weight</span> <span class="special"><<</span> <span class="string">" is "</span> -<span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">packs</span><span class="special">,</span> <span class="identifier">max_weight</span><span class="special">))</span> <span class="special">*</span> <span class="number">100.</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// P(X > 3.1)</span></pre> +<span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">packs</span><span class="special">,</span> <span class="identifier">max_weight</span><span class="special">))</span> <span class="special">*</span> <span class="number">100.</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// P(X > 3.1)</span> +</pre> <p> </p> <p> @@ -105,7 +107,8 @@ <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">minimum_weight</span> <span class="special">=</span> <span class="number">2.9</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span><span class="string">"Fraction of packs <= "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> <span class="special"><<</span> <span class="string">" with a mean of "</span> <span class="special"><<</span> <span class="identifier">mean</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">packs</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// fraction of packs <= 2.9 with a mean of 3 is 0.841345</span></pre> +<span class="comment">// fraction of packs <= 2.9 with a mean of 3 is 0.841345</span> +</pre> <p> </p> <p> @@ -128,7 +131,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> <span class="special"><<</span> <span class="string">" with a mean of "</span> <span class="special"><<</span> <span class="identifier">xpacks</span><span class="special">.</span><span class="identifier">mean</span><span class="special">()</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">xpacks</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// fraction of packs >= 2.9 with a mean of 3.06449 is 0.950005</span></pre> +<span class="comment">// fraction of packs >= 2.9 with a mean of 3.06449 is 0.950005</span> +</pre> <p> </p> <p> @@ -147,7 +151,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Setting the packer to "</span> <span class="special"><<</span> <span class="identifier">nominal_mean</span> <span class="special"><<</span> <span class="string">" will mean that "</span> <span class="special"><<</span> <span class="string">"fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">nominal_packs</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// Setting the packer to 3.06449 will mean that fraction of packs >= 2.9 is 0.95</span></pre> +<span class="comment">// Setting the packer to 3.06449 will mean that fraction of packs >= 2.9 is 0.95</span> +</pre> <p> </p> <p> @@ -159,7 +164,8 @@ <p> </p> <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">distributions</span><span class="special">/</span><span class="identifier">find_location</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> - <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">find_location</span><span class="special">;</span></pre> + <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">find_location</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -169,7 +175,8 @@ <p> </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">safe_mean</span> <span class="special">=</span> <span class="identifier">find_location</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">minimum_weight</span><span class="special">,</span> <span class="identifier">under_fraction</span><span class="special">,</span> <span class="identifier">standard_deviation</span><span class="special">);</span> -<span class="identifier">normal</span> <span class="identifier">good_packs</span><span class="special">(</span><span class="identifier">safe_mean</span><span class="special">,</span> <span class="identifier">standard_deviation</span><span class="special">);</span></pre> +<span class="identifier">normal</span> <span class="identifier">good_packs</span><span class="special">(</span><span class="identifier">safe_mean</span><span class="special">,</span> <span class="identifier">standard_deviation</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -180,7 +187,8 @@ <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Setting the packer to "</span> <span class="special"><<</span> <span class="identifier">nominal_mean</span> <span class="special"><<</span> <span class="string">" will mean that "</span> <span class="special"><<</span> <span class="string">"fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">good_packs</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// Setting the packer to 3.06449 will mean that fraction of packs >= 2.9 is 0.95</span></pre> +<span class="comment">// Setting the packer to 3.06449 will mean that fraction of packs >= 2.9 is 0.95</span> +</pre> <p> </p> <h5> @@ -213,7 +221,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Cauchy Setting the packer to "</span> <span class="special"><<</span> <span class="identifier">mean</span> <span class="special"><<</span> <span class="string">" will mean that "</span> <span class="special"><<</span> <span class="string">"fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">cpacks</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// Cauchy Setting the packer to 3 will mean that fraction of packs >= 2.9 is 0.75</span></pre> +<span class="comment">// Cauchy Setting the packer to 3 will mean that fraction of packs >= 2.9 is 0.75</span> +</pre> <p> </p> <p> @@ -225,7 +234,8 @@ </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">lc</span> <span class="special">=</span> <span class="identifier">find_location</span><span class="special"><</span><span class="identifier">cauchy</span><span class="special">>(</span><span class="identifier">minimum_weight</span><span class="special">,</span> <span class="identifier">under_fraction</span><span class="special">,</span> <span class="identifier">standard_deviation</span><span class="special">);</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"find_location<cauchy>(minimum_weight, over fraction, standard_deviation); "</span> <span class="special"><<</span> <span class="identifier">lc</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// find_location<cauchy>(minimum_weight, over fraction, packs.standard_deviation()); 3.53138</span></pre> +<span class="comment">// find_location<cauchy>(minimum_weight, over fraction, packs.standard_deviation()); 3.53138</span> +</pre> <p> </p> <p> @@ -241,7 +251,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Cauchy Setting the packer to "</span> <span class="special"><<</span> <span class="identifier">lc</span> <span class="special"><<</span> <span class="string">" will mean that "</span> <span class="special"><<</span> <span class="string">"fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">goodcpacks</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// Cauchy Setting the packer to 3.53138 will mean that fraction of packs >= 2.9 is 0.95</span></pre> +<span class="comment">// Cauchy Setting the packer to 3.53138 will mean that fraction of packs >= 2.9 is 0.95</span> +</pre> <p> </p> <p> @@ -254,7 +265,8 @@ <span class="special"><<</span> <span class="identifier">find_location</span><span class="special"><</span><span class="identifier">cauchy</span><span class="special">>(</span><span class="identifier">minimum_weight</span><span class="special">,</span> <span class="number">0.99</span><span class="special">,</span> <span class="identifier">standard_deviation</span><span class="special">)</span> <span class="special"><<</span> <span class="string">" will mean that "</span> <span class="special"><<</span> <span class="string">"fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> - <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">goodcpacks</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">goodcpacks</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -313,7 +325,8 @@ </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">p</span> <span class="special">=</span> <span class="number">0.05</span><span class="special">;</span> <span class="comment">// wanted p th quantile.</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Quantile of "</span> <span class="special"><<</span> <span class="identifier">p</span> <span class="special"><<</span> <span class="string">" = "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">packs</span><span class="special">,</span> <span class="identifier">p</span><span class="special">)</span> - <span class="special"><<</span> <span class="string">", mean = "</span> <span class="special"><<</span> <span class="identifier">packs</span><span class="special">.</span><span class="identifier">mean</span><span class="special">()</span> <span class="special"><<</span> <span class="string">", sd = "</span> <span class="special"><<</span> <span class="identifier">packs</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">", mean = "</span> <span class="special"><<</span> <span class="identifier">packs</span><span class="special">.</span><span class="identifier">mean</span><span class="special">()</span> <span class="special"><<</span> <span class="string">", sd = "</span> <span class="special"><<</span> <span class="identifier">packs</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -338,7 +351,8 @@ <span class="identifier">cout</span> <span class="special"><<</span><span class="string">"Fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> <span class="special"><<</span> <span class="string">" with a mean of "</span> <span class="special"><<</span> <span class="identifier">mean</span> <span class="special"><<</span> <span class="string">" and standard deviation of "</span> <span class="special"><<</span> <span class="identifier">pack05</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">pack05</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.05 is 0.97725</span></pre> +<span class="comment">// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.05 is 0.97725</span> +</pre> <p> </p> <p> @@ -357,7 +371,8 @@ <span class="identifier">cout</span> <span class="special"><<</span><span class="string">"Fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> <span class="special"><<</span> <span class="string">" with a mean of "</span> <span class="special"><<</span> <span class="identifier">mean</span> <span class="special"><<</span> <span class="string">" and standard deviation of "</span> <span class="special"><<</span> <span class="identifier">pack06</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">pack06</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.06 is 0.95221</span></pre> +<span class="comment">// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.06 is 0.95221</span> +</pre> <p> </p> <p> @@ -394,7 +409,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"For the "</span><span class="special"><<</span> <span class="identifier">p</span> <span class="special"><<</span> <span class="string">"th quantile to be located at "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> <span class="special"><<</span> <span class="string">", would need a standard deviation of "</span> <span class="special"><<</span> <span class="identifier">sd95</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// For the 0.05th quantile to be located at 2.9, would need a standard deviation of 0.0607957</span></pre> +<span class="comment">// For the 0.05th quantile to be located at 2.9, would need a standard deviation of 0.0607957</span> +</pre> <p> </p> <p> @@ -407,7 +423,8 @@ <span class="identifier">cout</span> <span class="special"><<</span><span class="string">"Fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> <span class="special"><<</span> <span class="string">" with a mean of "</span> <span class="special"><<</span> <span class="identifier">mean</span> <span class="special"><<</span> <span class="string">" and standard deviation of "</span> <span class="special"><<</span> <span class="identifier">pack95</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">pack95</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.0607957 is 0.95</span></pre> +<span class="comment">// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.0607957 is 0.95</span> +</pre> <p> </p> <p> @@ -418,7 +435,8 @@ </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">ss</span> <span class="special">=</span> <span class="identifier">find_scale</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">minimum_weight</span><span class="special">,</span> <span class="identifier">under_fraction</span><span class="special">,</span> <span class="identifier">packs</span><span class="special">.</span><span class="identifier">mean</span><span class="special">());</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"find_scale<normal>(minimum_weight, under_fraction, packs.mean()); "</span> <span class="special"><<</span> <span class="identifier">ss</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// find_scale<normal>(minimum_weight, under_fraction, packs.mean()); 0.0607957</span></pre> +<span class="comment">// find_scale<normal>(minimum_weight, under_fraction, packs.mean()); 0.0607957</span> +</pre> <p> </p> <p> @@ -426,7 +444,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">over_fraction</span> <span class="special">=</span> <span class="number">0.95</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">over_fraction</span> <span class="special">=</span> <span class="number">0.95</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -450,7 +469,8 @@ </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">ss1o</span> <span class="special">=</span> <span class="identifier">find_scale</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">minimum_weight</span><span class="special">,</span> <span class="number">1</span> <span class="special">-</span> <span class="identifier">over_fraction</span><span class="special">,</span> <span class="identifier">packs</span><span class="special">.</span><span class="identifier">mean</span><span class="special">());</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"find_scale<normal>(minimum_weight, under_fraction, packs.mean()); "</span> <span class="special"><<</span> <span class="identifier">ss1o</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// find_scale<normal>(minimum_weight, under_fraction, packs.mean()); 0.0607957</span></pre> +<span class="comment">// find_scale<normal>(minimum_weight, under_fraction, packs.mean()); 0.0607957</span> +</pre> <p> </p> <p> @@ -463,7 +483,8 @@ </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">ssc</span> <span class="special">=</span> <span class="identifier">find_scale</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">minimum_weight</span><span class="special">,</span> <span class="identifier">over_fraction</span><span class="special">,</span> <span class="identifier">packs</span><span class="special">.</span><span class="identifier">mean</span><span class="special">()));</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"find_scale<normal>(complement(minimum_weight, over_fraction, packs.mean())); "</span> <span class="special"><<</span> <span class="identifier">ssc</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// find_scale<normal>(complement(minimum_weight, over_fraction, packs.mean())); 0.0607957</span></pre> +<span class="comment">// find_scale<normal>(complement(minimum_weight, over_fraction, packs.mean())); 0.0607957</span> +</pre> <p> </p> <p> @@ -478,7 +499,8 @@ <span class="identifier">cout</span> <span class="special"><<</span><span class="string">"Fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">minimum_weight</span> <span class="special"><<</span> <span class="string">" with a mean of "</span> <span class="special"><<</span> <span class="identifier">mean</span> <span class="special"><<</span> <span class="string">" and standard deviation of "</span> <span class="special"><<</span> <span class="identifier">pack95c</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">pack95c</span><span class="special">,</span> <span class="identifier">minimum_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.0607957 is 0.95</span></pre> +<span class="comment">// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.0607957 is 0.95</span> +</pre> <p> </p> <p> @@ -513,7 +535,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_scale_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_scale_eg.html index 030cc09d69..1ac81d7d4d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_scale_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/find_eg/find_scale_eg.html @@ -59,7 +59,8 @@ <p> </p> <pre class="programlisting"><span class="identifier">normal</span> <span class="identifier">N01</span><span class="special">;</span> <span class="comment">// Default 'standard' normal distribution with zero mean</span> -<span class="keyword">double</span> <span class="identifier">sd</span> <span class="special">=</span> <span class="number">1.</span><span class="special">;</span> <span class="comment">// and standard deviation is 1.</span></pre> +<span class="keyword">double</span> <span class="identifier">sd</span> <span class="special">=</span> <span class="number">1.</span><span class="special">;</span> <span class="comment">// and standard deviation is 1.</span> +</pre> <p> </p> <p> @@ -79,7 +80,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Normal distribution with mean = "</span> <span class="special"><<</span> <span class="identifier">N01</span><span class="special">.</span><span class="identifier">location</span><span class="special">()</span> <span class="special"><<</span> <span class="string">", standard deviation "</span> <span class="special"><<</span> <span class="identifier">N01</span><span class="special">.</span><span class="identifier">scale</span><span class="special">()</span> <span class="special"><<</span> <span class="string">", has "</span> <span class="special"><<</span> <span class="string">"fraction > "</span> <span class="special"><<</span> <span class="identifier">z</span> - <span class="special"><<</span> <span class="string">", p = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">N01</span><span class="special">,</span> <span class="identifier">z</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// Note: uses complement.</span></pre> + <span class="special"><<</span> <span class="string">", p = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">N01</span><span class="special">,</span> <span class="identifier">z</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// Note: uses complement.</span> +</pre> <p> </p> <pre class="programlisting">Normal distribution with mean = 0 has fraction <= -2, p = 0.0227501 @@ -94,7 +96,8 @@ Normal distribution with mean = 0 has fraction > -2, p = 0.97725 </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">l</span> <span class="special">=</span> <span class="identifier">N01</span><span class="special">.</span><span class="identifier">location</span><span class="special">();</span> <span class="keyword">double</span> <span class="identifier">s</span> <span class="special">=</span> <span class="identifier">find_scale</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">z</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">l</span><span class="special">);</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"scale (standard deviation) = "</span> <span class="special"><<</span> <span class="identifier">s</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"scale (standard deviation) = "</span> <span class="special"><<</span> <span class="identifier">s</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -111,7 +114,8 @@ Normal distribution with mean = 0 has fraction > -2, p = 0.97725 </p> <p> </p> -<pre class="programlisting"><span class="identifier">normal</span> <span class="identifier">np001pc</span><span class="special">(</span><span class="identifier">N01</span><span class="special">.</span><span class="identifier">location</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">);</span></pre> +<pre class="programlisting"><span class="identifier">normal</span> <span class="identifier">np001pc</span><span class="special">(</span><span class="identifier">N01</span><span class="special">.</span><span class="identifier">location</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -124,7 +128,8 @@ Normal distribution with mean = 0 has fraction > -2, p = 0.97725 <span class="special"><<</span> <span class="string">", p = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">np001pc</span><span class="special">,</span> <span class="identifier">z</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Normal distribution with mean = "</span> <span class="special"><<</span> <span class="identifier">l</span> <span class="special"><<</span> <span class="string">" has "</span> <span class="special"><<</span> <span class="string">"fraction > "</span> <span class="special"><<</span> <span class="identifier">z</span> - <span class="special"><<</span> <span class="string">", p = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">np001pc</span><span class="special">,</span> <span class="identifier">z</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">", p = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">np001pc</span><span class="special">,</span> <span class="identifier">z</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Normal distribution with mean = 0 has fraction <= -2, p = 0.001 @@ -147,7 +152,8 @@ Normal distribution with mean = 0 has fraction > -2, p = 0.999 </p> <pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">policy</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">domain_error</span><span class="special">;</span> -<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">ignore_error</span><span class="special">;</span></pre> +<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">ignore_error</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -165,7 +171,8 @@ Normal distribution with mean = 0 has fraction > -2, p = 0.999 <span class="comment">// Default policy, fully specified.</span> <span class="identifier">l</span> <span class="special">=</span> <span class="identifier">find_scale</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">z</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">l</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">::</span><span class="identifier">policy</span><span class="special"><>());</span> <span class="comment">// New policy, without typedef.</span> -<span class="identifier">l</span> <span class="special">=</span> <span class="identifier">find_scale</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">z</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">l</span><span class="special">,</span> <span class="identifier">policy</span><span class="special"><</span><span class="identifier">domain_error</span><span class="special"><</span><span class="identifier">ignore_error</span><span class="special">></span> <span class="special">>());</span></pre> +<span class="identifier">l</span> <span class="special">=</span> <span class="identifier">find_scale</span><span class="special"><</span><span class="identifier">normal</span><span class="special">>(</span><span class="identifier">z</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">l</span><span class="special">,</span> <span class="identifier">policy</span><span class="special"><</span><span class="identifier">domain_error</span><span class="special"><</span><span class="identifier">ignore_error</span><span class="special">></span> <span class="special">>());</span> +</pre> <p> </p> <p> @@ -185,7 +192,8 @@ Normal distribution with mean = 0 has fraction > -2, p = 0.999 <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Normal distribution with mean = "</span> <span class="special"><<</span> <span class="identifier">l</span> <span class="special"><<</span> <span class="string">" has "</span> <span class="special"><<</span> <span class="string">"fraction <= "</span> <span class="special"><<</span> <span class="identifier">z</span> <span class="special"><<</span> <span class="string">" = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">np95pc</span><span class="special">,</span> <span class="identifier">z</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Normal distribution with mean = "</span> <span class="special"><<</span> <span class="identifier">l</span> <span class="special"><<</span> <span class="string">" has "</span> - <span class="special"><<</span> <span class="string">"fraction > "</span> <span class="special"><<</span> <span class="identifier">z</span> <span class="special"><<</span> <span class="string">" = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">np95pc</span><span class="special">,</span> <span class="identifier">z</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">"fraction > "</span> <span class="special"><<</span> <span class="identifier">z</span> <span class="special"><<</span> <span class="string">" = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">np95pc</span><span class="special">,</span> <span class="identifier">z</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -218,7 +226,7 @@ Normal distribution with mean = 0.946339 has fraction > -2 = 0.999 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/geometric_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/geometric_eg.html index acd56842ed..6a56334ae9 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/geometric_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/geometric_eg.html @@ -37,7 +37,8 @@ <p> </p> <pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">BOOST_MATH_OVERFLOW_ERROR_POLICY</span> <span class="identifier">ignore_error</span> -<span class="preprocessor">#define</span> <span class="identifier">BOOST_MATH_DISCRETE_QUANTILE_POLICY</span> <span class="identifier">real</span></pre> +<span class="preprocessor">#define</span> <span class="identifier">BOOST_MATH_DISCRETE_QUANTILE_POLICY</span> <span class="identifier">real</span> +</pre> <p> </p> <div class="caution"><table border="0" summary="Caution"> @@ -109,7 +110,8 @@ <p> </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">success_fraction</span> <span class="special">=</span> <span class="number">1.</span><span class="special">/</span><span class="number">6</span><span class="special">;</span> <span class="comment">// success_fraction (p) = 0.1666</span> -<span class="comment">// (so failure_fraction is 1 - success_fraction = 5./6 = 1- 0.1666 = 0.8333)</span></pre> +<span class="comment">// (so failure_fraction is 1 - success_fraction = 5./6 = 1- 0.1666 = 0.8333)</span> +</pre> <p> </p> <p> @@ -126,7 +128,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">geometric</span> <span class="identifier">g6</span><span class="special">(</span><span class="identifier">success_fraction</span><span class="special">);</span> <span class="comment">// type double by default.</span></pre> +<pre class="programlisting"><span class="identifier">geometric</span> <span class="identifier">g6</span><span class="special">(</span><span class="identifier">success_fraction</span><span class="special">);</span> <span class="comment">// type double by default.</span> +</pre> <p> </p> <p> @@ -134,7 +137,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"success fraction of a six-sided dice is "</span> <span class="special"><<</span> <span class="identifier">g6</span><span class="special">.</span><span class="identifier">success_fraction</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"success fraction of a six-sided dice is "</span> <span class="special"><<</span> <span class="identifier">g6</span><span class="special">.</span><span class="identifier">success_fraction</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -144,7 +148,8 @@ <p> </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.1667</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.1667</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.1667</span> +</pre> <p> </p> <p> @@ -154,7 +159,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.1389</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.1389</span> +</pre> <p> </p> <p> @@ -163,7 +169,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"pdf(g6, 0) + pdf(g6, 1) = "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"pdf(g6, 0) + pdf(g6, 1) = "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -172,7 +179,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"cdf(g6, 1) = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.3056</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"cdf(g6, 1) = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.3056</span> +</pre> <p> </p> <p> @@ -181,7 +189,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"cdf(g6, 12) = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">12</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.9065 or 90% probability.</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"cdf(g6, 12) = "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">12</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.9065 or 90% probability.</span> +</pre> <p> </p> <p> @@ -190,7 +199,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"quantile(g6, 0.99) = "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">0.99</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 24.26</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"quantile(g6, 0.99) = "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">0.99</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 24.26</span> +</pre> <p> </p> <p> @@ -210,7 +220,8 @@ </p> <pre class="programlisting"><span class="identifier">negative_binomial</span> <span class="identifier">nb</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="identifier">success_fraction</span><span class="special">);</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.1389</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.3056</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.3056</span> +</pre> <p> </p> <p> @@ -219,7 +230,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"quantile(complement(g6, 1 - p)) "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">0.01</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 24.26</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"quantile(complement(g6, 1 - p)) "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">g6</span><span class="special">,</span> <span class="number">0.01</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 24.26</span> +</pre> <p> </p> <p> @@ -251,7 +263,8 @@ <span class="special"><<</span> <span class="identifier">max_digits10</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span><span class="special">.</span><span class="identifier">precision</span><span class="special">(</span><span class="identifier">max_digits10</span><span class="special">);</span> <span class="comment">// </span> - <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">g05</span><span class="special">,</span> <span class="number">0.0001</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// returns 0.5000346561579232, not exact 0.5.</span></pre> + <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">g05</span><span class="special">,</span> <span class="number">0.0001</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// returns 0.5000346561579232, not exact 0.5.</span> +</pre> <p> </p> <p> @@ -260,7 +273,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">g05</span><span class="special">,</span> <span class="identifier">floor</span><span class="special">(</span><span class="number">0.0001</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// returns exactly 0.5</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">g05</span><span class="special">,</span> <span class="identifier">floor</span><span class="special">(</span><span class="number">0.0001</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// returns exactly 0.5</span> +</pre> <p> </p> <pre class="programlisting"><code class="computeroutput"><span class="special">></span> <span class="identifier">formatC</span><span class="special">(</span><span class="identifier">pgeom</span><span class="special">(</span><span class="number">0.9999999</span><span class="special">,</span><span class="number">0.5</span><span class="special">,</span> <span class="identifier">FALSE</span><span class="special">),</span> <span class="identifier">digits</span><span class="special">=</span><span class="number">17</span><span class="special">)</span> <span class="special">[</span><span class="number">1</span><span class="special">]</span> <span class="string">" 0.25"</span></code> @@ -313,7 +327,8 @@ <span class="identifier">c</span> <span class="special">=</span> <span class="number">0.80</span><span class="special">;</span> <span class="comment">// Only reasonably confident.</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"To be "</span> <span class="special"><<</span> <span class="identifier">c</span> <span class="special">*</span> <span class="number">100</span> <span class="special"><<</span> <span class="string">"% confident of finding we customer with a fault, need to survey "</span> - <span class="special"><<</span> <span class="identifier">ceil</span><span class="special">(</span><span class="identifier">quantile</span><span class="special">(</span><span class="identifier">g</span><span class="special">,</span> <span class="identifier">c</span><span class="special">))</span> <span class="special"><<</span> <span class="string">" customers."</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 79</span></pre> + <span class="special"><<</span> <span class="identifier">ceil</span><span class="special">(</span><span class="identifier">quantile</span><span class="special">(</span><span class="identifier">g</span><span class="special">,</span> <span class="identifier">c</span><span class="special">))</span> <span class="special"><<</span> <span class="string">" customers."</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 79</span> +</pre> <p> </p> <h6> @@ -332,7 +347,8 @@ <p> </p> <pre class="programlisting"><span class="identifier">cout</span><span class="special">.</span><span class="identifier">precision</span><span class="special">(</span><span class="number">2</span><span class="special">);</span> -<span class="identifier">geometric</span> <span class="identifier">gav</span><span class="special">(</span><span class="number">0.75</span><span class="special">);</span> <span class="comment">// Shooter averages 7.5 out of 10 in the basket.</span></pre> +<span class="identifier">geometric</span> <span class="identifier">gav</span><span class="special">(</span><span class="number">0.75</span><span class="special">);</span> <span class="comment">// Shooter averages 7.5 out of 10 in the basket.</span> +</pre> <p> </p> <p> @@ -341,7 +357,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of score on 1st try = "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">gav</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.75</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of score on 1st try = "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">gav</span><span class="special">,</span> <span class="number">0</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.75</span> +</pre> <p> </p> <p> @@ -351,7 +368,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of score on 5th try = "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">gav</span><span class="special">,</span> <span class="number">4</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.0029</span></pre> +<pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of score on 5th try = "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">gav</span><span class="special">,</span> <span class="number">4</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.0029</span> +</pre> <p> </p> <p> @@ -365,7 +383,8 @@ <pre class="programlisting"><span class="identifier">geometric</span> <span class="identifier">gbest</span><span class="special">(</span><span class="number">0.95</span><span class="special">);</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of score on 5th try = "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">gbest</span><span class="special">,</span> <span class="number">4</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 5.9e-6</span> <span class="identifier">geometric</span> <span class="identifier">gmediocre</span><span class="special">(</span><span class="number">0.50</span><span class="special">);</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of score on 5th try = "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">gmediocre</span><span class="special">,</span> <span class="number">4</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.031</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of score on 5th try = "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">gmediocre</span><span class="special">,</span> <span class="number">4</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.031</span> +</pre> <p> </p> <p> @@ -408,7 +427,8 @@ <span class="special"><<</span> <span class="identifier">t</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.00025</span> <span class="identifier">t</span> <span class="special">=</span> <span class="identifier">geometric</span><span class="special">::</span><span class="identifier">find_upper_bound_on_p</span><span class="special">(</span><span class="identifier">k</span><span class="special">,</span> <span class="identifier">alpha</span><span class="special">/</span><span class="number">2</span><span class="special">);</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"geometric::find_upper_bound_on_p("</span> <span class="special"><<</span> <span class="keyword">int</span><span class="special">(</span><span class="identifier">k</span><span class="special">)</span> <span class="special"><<</span> <span class="string">", "</span> <span class="special"><<</span> <span class="identifier">alpha</span><span class="special">/</span><span class="number">2</span> <span class="special"><<</span> <span class="string">") = "</span> - <span class="special"><<</span> <span class="identifier">t</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.037</span></pre> + <span class="special"><<</span> <span class="identifier">t</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.037</span> +</pre> <p> </p> <p> @@ -433,7 +453,8 @@ <span class="special"><<</span> <span class="identifier">t</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 5e-005</span> <span class="identifier">t</span> <span class="special">=</span> <span class="identifier">geometric</span><span class="special">::</span><span class="identifier">find_upper_bound_on_p</span><span class="special">(</span><span class="identifier">k</span><span class="special">,</span> <span class="identifier">alpha</span><span class="special">/</span><span class="number">2</span><span class="special">);</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"geometric::find_upper_bound_on_p("</span> <span class="special"><<</span> <span class="keyword">int</span><span class="special">(</span><span class="identifier">k</span><span class="special">)</span> <span class="special"><<</span> <span class="string">", "</span> <span class="special"><<</span> <span class="identifier">alpha</span><span class="special">/</span><span class="number">2</span> <span class="special"><<</span> <span class="string">") = "</span> - <span class="special"><<</span> <span class="identifier">t</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.052</span></pre> + <span class="special"><<</span> <span class="identifier">t</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// 0.052</span> +</pre> <p> </p> <p> @@ -451,7 +472,8 @@ <span class="keyword">catch</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">exception</span><span class="special">&</span> <span class="identifier">e</span><span class="special">)</span> <span class="special">{</span> <span class="comment">// Since we have set an overflow policy of ignore_error,</span> <span class="comment">// an overflow exception should never be thrown.</span> - <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"\nMessage from thrown exception was:\n "</span> <span class="special"><<</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">what</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span></pre> + <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"\nMessage from thrown exception was:\n "</span> <span class="special"><<</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">what</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -476,7 +498,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/inverse_chi_squared_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/inverse_chi_squared_eg.html index 1036f44608..96fccf19c6 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/inverse_chi_squared_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/inverse_chi_squared_eg.html @@ -130,7 +130,6 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">" 2.5% quantile: "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">prior</span><span class="special">,</span> <span class="number">0.025</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">" 50% quantile: "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">prior</span><span class="special">,</span> <span class="number">0.5</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">" 97.5% quantile: "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">prior</span><span class="special">,</span> <span class="number">0.975</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> - </pre> <p> </p> @@ -244,7 +243,8 @@ <span class="keyword">double</span> <span class="identifier">posteriorScale</span> <span class="special">=</span> <span class="special">(</span><span class="identifier">priorDF</span> <span class="special">*</span> <span class="identifier">priorScale</span> <span class="special">+</span> <span class="special">(</span><span class="identifier">ballsSampleVariance</span> <span class="special">*</span> <span class="special">(</span><span class="identifier">ballsSampleSize</span> <span class="special">-</span> <span class="number">1</span><span class="special">)))</span> <span class="special">/</span> <span class="identifier">posteriorDF</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"prior scale: "</span> <span class="special"><<</span> <span class="identifier">priorScale</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"posterior scale: "</span> <span class="special"><<</span> <span class="identifier">posteriorScale</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"posterior scale: "</span> <span class="special"><<</span> <span class="identifier">posteriorScale</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -262,6 +262,7 @@ <span class="identifier">posterior</span> <span class="identifier">degrees</span><span class="special">-</span><span class="identifier">of</span><span class="special">-</span><span class="identifier">freedom</span><span class="special">:</span> <span class="number">120</span> <span class="identifier">prior</span> <span class="identifier">scale</span><span class="special">:</span> <span class="number">25</span> <span class="identifier">posterior</span> <span class="identifier">scale</span><span class="special">:</span> <span class="number">49.5</span> + </pre> <p> To compare the generic machinery performance with our suspect machine, @@ -284,7 +285,6 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">" probability variance <= 25: "</span> <span class="special"><<</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">cdf</span><span class="special">(</span><span class="identifier">posterior</span><span class="special">,</span> <span class="number">25.0</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">" probability variance > 50: "</span> <span class="special"><<</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">cdf</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">posterior</span><span class="special">,</span> <span class="number">50.0</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> - </pre> <p> </p> @@ -361,7 +361,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/inverse_gamma_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/inverse_gamma_eg.html deleted file mode 100644 index cd5171a4d7..0000000000 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/inverse_gamma_eg.html +++ /dev/null @@ -1,49 +0,0 @@ -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> -<title>Inverse Gamma Distribution Bayes Example</title> -<link rel="stylesheet" href="../../../../../../../../../doc/src/boostbook.css" type="text/css"> -<meta name="generator" content="DocBook XSL Stylesheets V1.74.0"> -<link rel="home" href="../../../../index.html" title="Math Toolkit"> -<link rel="up" href="../weg.html" title="Worked Examples"> -<link rel="prev" href="normal_example/normal_misc.html" title="Some Miscellaneous Examples of the Normal (Gaussian) Distribution"> -<link rel="next" href="nccs_eg.html" title="Non Central Chi Squared Example"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table cellpadding="2" width="100%"><tr> -<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../../boost.png"></td> -<td align="center"><a href="../../../../../../../../../index.html">Home</a></td> -<td align="center"><a href="../../../../../../../../../libs/libraries.htm">Libraries</a></td> -<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> -<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> -<td align="center"><a href="../../../../../../../../../more/index.htm">More</a></td> -</tr></table> -<hr> -<div class="spirit-nav"> -<a accesskey="p" href="normal_example/normal_misc.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../weg.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="nccs_eg.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> -</div> -<div class="section" lang="en"> -<div class="titlepage"><div><div><h5 class="title"> -<a name="math_toolkit.dist.stat_tut.weg.inverse_gamma_eg"></a><a class="link" href="inverse_gamma_eg.html" title="Inverse Gamma Distribution Bayes Example"> - Inverse Gamma Distribution Bayes Example</a> -</h5></div></div></div> -<p> - TODO - </p> -</div> -<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> -<td align="left"></td> -<td align="right"><div class="copyright-footer">Copyright © 2006 , 2007, 2008, 2009, 2010 John Maddock, Paul A. Bristow, - Hubert Holin, Xiaogang Zhang, Bruno Lalande, Johan Råde, Gautam Sewani and - Thijs van den Berg<p> - Distributed under the Boost Software License, Version 1.0. (See accompanying - file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) - </p> -</div></td> -</tr></table> -<hr> -<div class="spirit-nav"> -<a accesskey="p" href="normal_example/normal_misc.html"><img src="../../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../weg.html"><img src="../../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="nccs_eg.html"><img src="../../../../../../../../../doc/src/images/next.png" alt="Next"></a> -</div> -</body> -</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nag_library.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nag_library.html index e53ec89725..07f39002ba 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nag_library.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nag_library.html @@ -100,7 +100,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nccs_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nccs_eg.html index bf0c5ac9e4..080f80ce26 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nccs_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nccs_eg.html @@ -37,7 +37,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nccs_eg/nccs_power_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nccs_eg/nccs_power_eg.html index 264f4257b0..841e8e6ff9 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nccs_eg/nccs_power_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/nccs_eg/nccs_power_eg.html @@ -50,7 +50,8 @@ test at the 5% significance <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">setprecision</span><span class="special">;</span> <span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span> -<span class="special">{</span></pre> +<span class="special">{</span> +</pre> <p> </p> <p> @@ -64,7 +65,8 @@ test at the 5% significance <span class="special">{</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"[[lambda]="</span> <span class="special"><<</span> <span class="identifier">lam</span> <span class="special"><<</span> <span class="string">"]"</span><span class="special">;</span> <span class="special">}</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"]\n"</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"]\n"</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -80,7 +82,8 @@ test at the 5% significance <span class="special">{</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"[["</span> <span class="special"><<</span> <span class="identifier">n</span> <span class="special"><<</span> <span class="string">"]"</span><span class="special">;</span> <span class="keyword">for</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">lam</span> <span class="special">=</span> <span class="number">2</span><span class="special">;</span> <span class="identifier">lam</span> <span class="special"><=</span> <span class="number">20</span><span class="special">;</span> <span class="identifier">lam</span> <span class="special">+=</span> <span class="number">2</span><span class="special">)</span> - <span class="special">{</span></pre> + <span class="special">{</span> +</pre> <p> </p> <p> @@ -88,7 +91,8 @@ test at the 5% significance </p> <p> </p> -<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">cs</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">chi_squared</span><span class="special">(</span><span class="identifier">n</span><span class="special">),</span> <span class="number">0.05</span><span class="special">));</span></pre> +<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">cs</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">chi_squared</span><span class="special">(</span><span class="identifier">n</span><span class="special">),</span> <span class="number">0.05</span><span class="special">));</span> +</pre> <p> </p> <p> @@ -97,7 +101,8 @@ test at the 5% significance </p> <p> </p> -<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">beta</span> <span class="special">=</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">non_central_chi_squared</span><span class="special">(</span><span class="identifier">n</span><span class="special">,</span> <span class="identifier">lam</span><span class="special">),</span> <span class="identifier">cs</span><span class="special">));</span></pre> +<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">beta</span> <span class="special">=</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">non_central_chi_squared</span><span class="special">(</span><span class="identifier">n</span><span class="special">,</span> <span class="identifier">lam</span><span class="special">),</span> <span class="identifier">cs</span><span class="special">));</span> +</pre> <p> </p> <p> @@ -110,7 +115,8 @@ test at the 5% significance <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"]"</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"]"</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="special">}</span></pre> +<span class="special">}</span> +</pre> <p> </p> <p> @@ -1289,7 +1295,7 @@ test at the 5% significance <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg.html index 66176d3c81..0ddf31ea55 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg.html @@ -46,7 +46,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/neg_binom_conf.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/neg_binom_conf.html index 12deb843bb..523eb5e665 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/neg_binom_conf.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/neg_binom_conf.html @@ -67,7 +67,8 @@ <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iomanip</span><span class="special">></span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">setprecision</span><span class="special">;</span> -<span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">setw</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">left</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">fixed</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">right</span><span class="special">;</span></pre> +<span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">setw</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">left</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">fixed</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">right</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -76,7 +77,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">alpha</span><span class="special">[]</span> <span class="special">=</span> <span class="special">{</span> <span class="number">0.5</span><span class="special">,</span> <span class="number">0.25</span><span class="special">,</span> <span class="number">0.1</span><span class="special">,</span> <span class="number">0.05</span><span class="special">,</span> <span class="number">0.01</span><span class="special">,</span> <span class="number">0.001</span><span class="special">,</span> <span class="number">0.0001</span><span class="special">,</span> <span class="number">0.00001</span> <span class="special">};</span></pre> +<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">alpha</span><span class="special">[]</span> <span class="special">=</span> <span class="special">{</span> <span class="number">0.5</span><span class="special">,</span> <span class="number">0.25</span><span class="special">,</span> <span class="number">0.1</span><span class="special">,</span> <span class="number">0.05</span><span class="special">,</span> <span class="number">0.01</span><span class="special">,</span> <span class="number">0.001</span><span class="special">,</span> <span class="number">0.0001</span><span class="special">,</span> <span class="number">0.00001</span> <span class="special">};</span> +</pre> <p> </p> <p> @@ -112,7 +114,8 @@ <span class="string">"___________________________________________\n"</span> <span class="string">"Confidence Lower Upper\n"</span> <span class="string">" Value (%) Limit Limit\n"</span> - <span class="string">"___________________________________________\n"</span><span class="special">;</span></pre> + <span class="string">"___________________________________________\n"</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -142,7 +145,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">fixed</span> <span class="special"><<</span> <span class="identifier">setprecision</span><span class="special">(</span><span class="number">5</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">15</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">right</span> <span class="special"><<</span> <span class="identifier">upper</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="special">}</span> <span class="comment">// void confidence_limits_on_frequency(unsigned trials, unsigned successes)</span></pre> +<span class="special">}</span> <span class="comment">// void confidence_limits_on_frequency(unsigned trials, unsigned successes)</span> +</pre> <p> </p> <p> @@ -159,7 +163,6 @@ <span class="keyword">return</span> <span class="number">0</span><span class="special">;</span> <span class="special">}</span> <span class="comment">// int main()</span> - </pre> <p> </p> @@ -224,7 +227,7 @@ ___________________________________________ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/neg_binom_size_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/neg_binom_size_eg.html index 57749f457f..2171cbfca3 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/neg_binom_size_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/neg_binom_size_eg.html @@ -48,7 +48,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">find_number_of_trials</span><span class="special">(</span><span class="keyword">double</span> <span class="identifier">failures</span><span class="special">,</span> <span class="keyword">double</span> <span class="identifier">p</span><span class="special">);</span></pre> +<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">find_number_of_trials</span><span class="special">(</span><span class="keyword">double</span> <span class="identifier">failures</span><span class="special">,</span> <span class="keyword">double</span> <span class="identifier">p</span><span class="special">);</span> +</pre> <p> </p> <p> @@ -58,7 +59,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">alpha</span><span class="special">[]</span> <span class="special">=</span> <span class="special">{</span> <span class="number">0.5</span><span class="special">,</span> <span class="number">0.25</span><span class="special">,</span> <span class="number">0.1</span><span class="special">,</span> <span class="number">0.05</span><span class="special">,</span> <span class="number">0.01</span><span class="special">,</span> <span class="number">0.001</span><span class="special">,</span> <span class="number">0.0001</span><span class="special">,</span> <span class="number">0.00001</span> <span class="special">};</span></pre> +<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">alpha</span><span class="special">[]</span> <span class="special">=</span> <span class="special">{</span> <span class="number">0.5</span><span class="special">,</span> <span class="number">0.25</span><span class="special">,</span> <span class="number">0.1</span><span class="special">,</span> <span class="number">0.05</span><span class="special">,</span> <span class="number">0.01</span><span class="special">,</span> <span class="number">0.001</span><span class="special">,</span> <span class="number">0.0001</span><span class="special">,</span> <span class="number">0.00001</span> <span class="special">};</span> +</pre> <p> </p> <p> @@ -80,8 +82,7 @@ </p> <p> </p> -<pre class="programlisting"> -<span class="keyword">void</span> <span class="identifier">find_number_of_trials</span><span class="special">(</span><span class="keyword">double</span> <span class="identifier">failures</span><span class="special">,</span> <span class="keyword">double</span> <span class="identifier">p</span><span class="special">)</span> +<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">find_number_of_trials</span><span class="special">(</span><span class="keyword">double</span> <span class="identifier">failures</span><span class="special">,</span> <span class="keyword">double</span> <span class="identifier">p</span><span class="special">)</span> <span class="special">{</span> <span class="comment">// trials = number of trials</span> <span class="comment">// failures = number of failures before achieving required success(es).</span> @@ -107,7 +108,8 @@ <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="special">}</span> <span class="comment">// void find_number_of_trials(double failures, double p)</span></pre> +<span class="special">}</span> <span class="comment">// void find_number_of_trials(double failures, double p)</span> +</pre> <p> </p> <p> @@ -127,7 +129,6 @@ <span class="keyword">return</span> <span class="number">0</span><span class="special">;</span> <span class="special">}</span> <span class="comment">// int main()</span> - </pre> <p> </p> @@ -206,7 +207,7 @@ ____________________________ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/negative_binomial_example1.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/negative_binomial_example1.html index baca602d25..3380bd50d6 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/negative_binomial_example1.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/negative_binomial_example1.html @@ -73,7 +73,8 @@ <p> </p> <pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">BOOST_MATH_OVERFLOW_ERROR_POLICY</span> <span class="identifier">ignore_error</span> -<span class="preprocessor">#define</span> <span class="identifier">BOOST_MATH_DISCRETE_QUANTILE_POLICY</span> <span class="identifier">real</span></pre> +<span class="preprocessor">#define</span> <span class="identifier">BOOST_MATH_DISCRETE_QUANTILE_POLICY</span> <span class="identifier">real</span> +</pre> <p> </p> <p> @@ -124,7 +125,8 @@ <p> </p> <pre class="programlisting"><span class="keyword">try</span> -<span class="special">{</span></pre> +<span class="special">{</span> +</pre> <p> </p> <p> @@ -134,7 +136,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">sales_quota</span> <span class="special">=</span> <span class="number">5</span><span class="special">;</span> <span class="comment">// Pat's sales quota - successes (r).</span></pre> +<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">sales_quota</span> <span class="special">=</span> <span class="number">5</span><span class="special">;</span> <span class="comment">// Pat's sales quota - successes (r).</span> +</pre> <p> </p> <p> @@ -143,7 +146,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">success_fraction</span> <span class="special">=</span> <span class="number">0.4</span><span class="special">;</span> <span class="comment">// success_fraction (p) - so failure_fraction is 0.6.</span></pre> +<pre class="programlisting"><span class="keyword">double</span> <span class="identifier">success_fraction</span> <span class="special">=</span> <span class="number">0.4</span><span class="special">;</span> <span class="comment">// success_fraction (p) - so failure_fraction is 0.6.</span> +</pre> <p> </p> <p> @@ -160,7 +164,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">negative_binomial</span> <span class="identifier">nb</span><span class="special">(</span><span class="identifier">sales_quota</span><span class="special">,</span> <span class="identifier">success_fraction</span><span class="special">);</span> <span class="comment">// type double by default.</span></pre> +<pre class="programlisting"><span class="identifier">negative_binomial</span> <span class="identifier">nb</span><span class="special">(</span><span class="identifier">sales_quota</span><span class="special">,</span> <span class="identifier">success_fraction</span><span class="special">);</span> <span class="comment">// type double by default.</span> +</pre> <p> </p> <p> @@ -178,7 +183,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"With a success rate of "</span> <span class="special"><<</span> <span class="identifier">nb</span><span class="special">.</span><span class="identifier">success_fraction</span><span class="special">()</span> <span class="special"><<</span> <span class="string">", he might expect, on average,\n"</span> <span class="string">"to need to visit about "</span> <span class="special"><<</span> <span class="identifier">success_fraction</span> <span class="special">*</span> <span class="identifier">all_houses</span> - <span class="special"><<</span> <span class="string">" houses in order to sell all "</span> <span class="special"><<</span> <span class="identifier">nb</span><span class="special">.</span><span class="identifier">successes</span><span class="special">()</span> <span class="special"><<</span> <span class="string">" bars. "</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">" houses in order to sell all "</span> <span class="special"><<</span> <span class="identifier">nb</span><span class="special">.</span><span class="identifier">successes</span><span class="special">()</span> <span class="special"><<</span> <span class="string">" bars. "</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Pat has a sales per house success rate of 0.4. @@ -200,7 +206,8 @@ to need to visit about 12 houses in order to sell all 5 bars. <p> </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability that Pat finishes on the "</span> <span class="special"><<</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="string">"th house is "</span> - <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">5</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// == pdf(nb, 0)</span></pre> + <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">5</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// == pdf(nb, 0)</span> +</pre> <p> </p> <p> @@ -220,7 +227,8 @@ to need to visit about 12 houses in order to sell all 5 bars. <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability that Pat finishes on the 7th house is "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">7</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability that Pat finishes on the 8th house is "</span> - <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">8</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">8</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability that Pat finishes on the 6th house is 0.03072 @@ -240,7 +248,8 @@ Probability that Pat finishes on the 8th house is 0.077414 <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">6</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="comment">// 1 failure.</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">7</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="comment">// 2 failures.</span> <span class="special">+</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">8</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="comment">// 3 failures.</span> - <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">pdf(sales_quota) + pdf(6) + pdf(7) + pdf(8) = 0.17367 @@ -253,7 +262,8 @@ Probability that Pat finishes on the 8th house is 0.077414 </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"\nProbability of selling his quota of "</span> <span class="special"><<</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="string">" bars\non or before the "</span> <span class="special"><<</span> <span class="number">8</span> <span class="special"><<</span> <span class="string">"th house is "</span> - <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">8</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">8</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability of selling his quota of 5 bars on or before the 8th house is 0.17367 @@ -264,7 +274,8 @@ Probability that Pat finishes on the 8th house is 0.077414 <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">10</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"\nProbability of selling his quota of "</span> <span class="special"><<</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="string">" bars\non or before the "</span> <span class="special"><<</span> <span class="number">10</span> <span class="special"><<</span> <span class="string">"th house is "</span> - <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">10</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">10</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability that Pat finishes exactly on the 10th house is 0.10033 @@ -276,7 +287,8 @@ Probability of selling his quota of 5 bars on or before the 10th house is 0.3669 <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">11</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"\nProbability of selling his quota of "</span> <span class="special"><<</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="string">" bars\non or before the "</span> <span class="special"><<</span> <span class="number">11</span> <span class="special"><<</span> <span class="string">"th house is "</span> - <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">11</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">11</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability that Pat finishes on the 11th house is 0.10033 @@ -290,7 +302,8 @@ on or before the 11th house is 0.46723 <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"\nProbability of selling his quota of "</span> <span class="special"><<</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="string">" bars\non or before the "</span> <span class="special"><<</span> <span class="number">12</span> <span class="special"><<</span> <span class="string">"th house is "</span> - <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">12</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">12</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability that Pat finishes on the 12th house is 0.094596 @@ -306,7 +319,8 @@ on or before the 12th house is 0.56182 <p> </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability that Pat finishes on the "</span> <span class="special"><<</span> <span class="identifier">all_houses</span> - <span class="special"><<</span> <span class="string">" house is "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="identifier">all_houses</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">" house is "</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="identifier">all_houses</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -326,7 +340,8 @@ on or before the 12th house is 0.56182 </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"\nProbability of selling his quota of "</span> <span class="special"><<</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="string">" bars\non or before the "</span> <span class="special"><<</span> <span class="identifier">all_houses</span> <span class="special"><<</span> <span class="string">"th house is "</span> - <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="identifier">all_houses</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="identifier">all_houses</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability of selling his quota of 5 bars @@ -367,7 +382,8 @@ on or before the 30th house is 0.99849 </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"\nProbability of failing to sell his quota of "</span> <span class="special"><<</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="string">" bars\neven after visiting all "</span> <span class="special"><<</span> <span class="identifier">all_houses</span> <span class="special"><<</span> <span class="string">" houses is "</span> - <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="identifier">all_houses</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="identifier">all_houses</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability of failing to sell his quota of 5 bars @@ -380,7 +396,8 @@ even after visiting all 30 houses is 0.0015101 <p> </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">p</span> <span class="special">=</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="special">(</span><span class="number">8</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">));</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of meeting sales quota on or before 8th house is "</span><span class="special"><<</span> <span class="identifier">p</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Probability of meeting sales quota on or before 8th house is "</span><span class="special"><<</span> <span class="identifier">p</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">Probability of meeting sales quota on or before 8th house is 0.174 @@ -390,7 +407,8 @@ even after visiting all 30 houses is 0.0015101 <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"If the confidence of meeting sales quota is "</span> <span class="special"><<</span> <span class="identifier">p</span> <span class="special"><<</span> <span class="string">", then the finishing house is "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="identifier">p</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="identifier">cout</span><span class="special"><<</span> <span class="string">" quantile(nb, p) = "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="identifier">p</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span><span class="special"><<</span> <span class="string">" quantile(nb, p) = "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="identifier">p</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">If the confidence of meeting sales quota is 0.17367, then the finishing house is 8 @@ -405,7 +423,8 @@ even after visiting all 30 houses is 0.0015101 </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"If the confidence of meeting sales quota is "</span> <span class="special"><<</span> <span class="number">1.</span> <span class="special"><<</span> <span class="string">", then the finishing house is "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">1</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// 1.#INF == infinity.</span></pre> +<span class="comment">// 1.#INF == infinity.</span> +</pre> <p> </p> <pre class="programlisting">If the confidence of meeting sales quota is 1, then the finishing house is 1.#INF @@ -422,7 +441,8 @@ even after visiting all 30 houses is 0.0015101 <span class="special"><<</span> <span class="string">", then the finishing house is "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">0.5</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"If the confidence of meeting sales quota is "</span> <span class="special"><<</span> <span class="number">1</span> <span class="special">-</span> <span class="number">0.00151</span> <span class="comment">// 30 th</span> - <span class="special"><<</span> <span class="string">", then the finishing house is "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">1</span> <span class="special">-</span> <span class="number">0.00151</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">", then the finishing house is "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="number">1</span> <span class="special">-</span> <span class="number">0.00151</span><span class="special">)</span> <span class="special">+</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">If the confidence of meeting sales quota is 0, then the finishing house is 5 @@ -441,7 +461,8 @@ If the confidence of meeting sales quota is 0.99849, then the finishing house is <p> </p> <pre class="programlisting"><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"If confidence of meeting quota is zero\n(we assume all houses are successful sales)"</span> - <span class="string">", then finishing house is "</span> <span class="special"><<</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="string">", then finishing house is "</span> <span class="special"><<</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">If confidence of meeting quota is zero (we assume all houses are successful sales), then finishing house is 5 @@ -460,7 +481,8 @@ If confidence of meeting quota is 0, then finishing house is 5 <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"If confidence of meeting quota is "</span> <span class="special"><<</span> <span class="identifier">ps</span><span class="special">[</span><span class="identifier">i</span><span class="special">]</span> <span class="special"><<</span> <span class="string">", then finishing house is "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="identifier">ps</span><span class="special">[</span><span class="identifier">i</span><span class="special">])</span> <span class="special">+</span> <span class="identifier">sales_quota</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="special">}</span></pre> +<span class="special">}</span> +</pre> <p> </p> <pre class="programlisting">If confidence of meeting quota is 0, then finishing house is 5 @@ -514,7 +536,8 @@ If confidence of meeting quota is 0.95, then finishing house is 21 <span class="special">{</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">left</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">3</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">i</span> <span class="special"><<</span> <span class="string">" "</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">8</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">nb</span><span class="special">,</span> <span class="identifier">i</span> <span class="special">-</span> <span class="identifier">sales_quota</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <pre class="programlisting">House for 5 th (last) sale. Probability (%) @@ -555,7 +578,8 @@ If confidence of meeting quota is 0.95, then finishing house is 21 <span class="keyword">catch</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">exception</span><span class="special">&</span> <span class="identifier">e</span><span class="special">)</span> <span class="special">{</span> <span class="comment">// Since we have set an overflow policy of ignore_error,</span> <span class="comment">// an overflow exception should never be thrown.</span> - <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"\nMessage from thrown exception was:\n "</span> <span class="special"><<</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">what</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span></pre> + <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"\nMessage from thrown exception was:\n "</span> <span class="special"><<</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">what</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -573,7 +597,7 @@ If confidence of meeting quota is 0.95, then finishing house is 21 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/negative_binomial_example2.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/negative_binomial_example2.html index ba4ae37a73..a0d451a758 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/negative_binomial_example2.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/neg_binom_eg/negative_binomial_example2.html @@ -128,7 +128,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/normal_example.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/normal_example.html index 7c4ea9d506..447cc27377 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/normal_example.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/normal_example.html @@ -37,7 +37,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/normal_example/normal_misc.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/normal_example/normal_misc.html index a69134adea..6ac4cc272a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/normal_example/normal_misc.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/normal_example/normal_misc.html @@ -58,7 +58,8 @@ <span class="keyword">try</span> <span class="special">{</span> - <span class="special">{</span> <span class="comment">// Traditional tables and values.</span></pre> + <span class="special">{</span> <span class="comment">// Traditional tables and values.</span> +</pre> <p> </p> <p> @@ -77,7 +78,8 @@ <span class="comment">// Construct a standard normal distribution s</span> <span class="identifier">normal</span> <span class="identifier">s</span><span class="special">;</span> <span class="comment">// (default mean = zero, and standard deviation = unity)</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Standard normal distribution, mean = "</span><span class="special"><<</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">mean</span><span class="special">()</span> - <span class="special"><<</span> <span class="string">", standard deviation = "</span> <span class="special"><<</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">", standard deviation = "</span> <span class="special"><<</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -93,7 +95,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">left</span> <span class="special"><<</span> <span class="identifier">setprecision</span><span class="special">(</span><span class="number">3</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">6</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">z</span> <span class="special"><<</span> <span class="string">" "</span> <span class="special"><<</span> <span class="identifier">setprecision</span><span class="special">(</span><span class="identifier">precision</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">12</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">pdf</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">z</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> -<span class="identifier">cout</span><span class="special">.</span><span class="identifier">precision</span><span class="special">(</span><span class="number">6</span><span class="special">);</span> <span class="comment">// default</span></pre> +<span class="identifier">cout</span><span class="special">.</span><span class="identifier">precision</span><span class="special">(</span><span class="number">6</span><span class="special">);</span> <span class="comment">// default</span> +</pre> <p> </p> <p> @@ -112,7 +115,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">left</span> <span class="special"><<</span> <span class="identifier">setprecision</span><span class="special">(</span><span class="number">3</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">6</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">z</span> <span class="special"><<</span> <span class="string">" "</span> <span class="special"><<</span> <span class="identifier">setprecision</span><span class="special">(</span><span class="identifier">precision</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">12</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">z</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> -<span class="identifier">cout</span><span class="special">.</span><span class="identifier">precision</span><span class="special">(</span><span class="number">6</span><span class="special">);</span> <span class="comment">// default</span></pre> +<span class="identifier">cout</span><span class="special">.</span><span class="identifier">precision</span><span class="special">(</span><span class="number">6</span><span class="special">);</span> <span class="comment">// default</span> +</pre> <p> </p> <p> @@ -134,7 +138,8 @@ <p> </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">z</span> <span class="special">=</span> <span class="number">2.</span><span class="special">;</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Area for z = "</span> <span class="special"><<</span> <span class="identifier">z</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">z</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// to get the area for z.</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Area for z = "</span> <span class="special"><<</span> <span class="identifier">z</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">z</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// to get the area for z.</span> +</pre> <p> </p> <p> @@ -146,7 +151,8 @@ <p> </p> <pre class="programlisting"> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"95% of area has a z below "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="number">0.95</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// 95% of area has a z below 1.64485</span></pre> +<span class="comment">// 95% of area has a z below 1.64485</span> +</pre> <p> </p> <p> @@ -157,7 +163,8 @@ </p> <pre class="programlisting"> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"95% of area has a z between "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="number">0.975</span><span class="special">)</span> <span class="special"><<</span> <span class="string">" and "</span> <span class="special"><<</span> <span class="special">-</span><span class="identifier">quantile</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="number">0.975</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// 95% of area has a z between 1.95996 and -1.95996</span></pre> +<span class="comment">// 95% of area has a z between 1.95996 and -1.95996</span> +</pre> <p> </p> <p> @@ -172,7 +179,8 @@ <p> </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">alpha1</span> <span class="special">=</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="special">-</span><span class="number">1</span><span class="special">)</span> <span class="special">*</span> <span class="number">2</span><span class="special">;</span> <span class="comment">// 0.3173105078629142</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">setprecision</span><span class="special">(</span><span class="number">17</span><span class="special">)</span> <span class="special"><<</span> <span class="string">"Significance level for z == 1 is "</span> <span class="special"><<</span> <span class="identifier">alpha1</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">setprecision</span><span class="special">(</span><span class="number">17</span><span class="special">)</span> <span class="special"><<</span> <span class="string">"Significance level for z == 1 is "</span> <span class="special"><<</span> <span class="identifier">alpha1</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -181,7 +189,8 @@ <p> </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">alpha</span><span class="special">[]</span> <span class="special">=</span> <span class="special">{</span><span class="number">0.3173105078629142</span><span class="special">,</span> <span class="comment">// z for 1 standard deviation.</span> - <span class="number">0.20</span><span class="special">,</span> <span class="number">0.1</span><span class="special">,</span> <span class="number">0.05</span><span class="special">,</span> <span class="number">0.01</span><span class="special">,</span> <span class="number">0.001</span><span class="special">,</span> <span class="number">0.0001</span><span class="special">,</span> <span class="number">0.00001</span> <span class="special">};</span></pre> + <span class="number">0.20</span><span class="special">,</span> <span class="number">0.1</span><span class="special">,</span> <span class="number">0.05</span><span class="special">,</span> <span class="number">0.01</span><span class="special">,</span> <span class="number">0.001</span><span class="special">,</span> <span class="number">0.0001</span><span class="special">,</span> <span class="number">0.00001</span> <span class="special">};</span> +</pre> <p> </p> <p> @@ -198,7 +207,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">15</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">alpha</span><span class="special">[</span><span class="identifier">i</span><span class="special">]</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">15</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">alpha</span><span class="special">[</span><span class="identifier">i</span><span class="special">]</span> <span class="special">/</span><span class="number">2</span> <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">alpha</span><span class="special">[</span><span class="identifier">i</span><span class="special">]/</span><span class="number">2</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// Use quantile(complement(s, alpha[i]/2)) to avoid potential loss of accuracy from quantile(s, 1 - alpha[i]/2) </span> <span class="special">}</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -241,7 +251,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Fraction 2 standard deviations within either side of mean is "</span> <span class="special"><<</span> <span class="number">1</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="number">2</span> <span class="special">*</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()))</span> <span class="special">*</span> <span class="number">2</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Fraction 3 standard deviations within either side of mean is "</span> - <span class="special"><<</span> <span class="number">1</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="number">3</span> <span class="special">*</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()))</span> <span class="special">*</span> <span class="number">2</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="number">1</span> <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="number">3</span> <span class="special">*</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()))</span> <span class="special">*</span> <span class="number">2</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -289,7 +300,8 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 <p> </p> <pre class="programlisting"><span class="comment">// K. Krishnamoorthy, Handbook of Statistical Distributions with Applications,</span> - <span class="comment">// ISBN 1 58488 635 8, page 125, example 10.3.5</span></pre> + <span class="comment">// ISBN 1 58488 635 8, page 125, example 10.3.5</span> +</pre> <p> </p> <p> @@ -303,7 +315,8 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">mean_life</span> <span class="special">=</span> <span class="number">1100.</span><span class="special">;</span> <span class="keyword">double</span> <span class="identifier">life_standard_deviation</span> <span class="special">=</span> <span class="number">100.</span><span class="special">;</span> <span class="identifier">normal</span> <span class="identifier">bulbs</span><span class="special">(</span><span class="identifier">mean_life</span><span class="special">,</span> <span class="identifier">life_standard_deviation</span><span class="special">);</span> -<span class="keyword">double</span> <span class="identifier">expected_life</span> <span class="special">=</span> <span class="number">1000.</span><span class="special">;</span></pre> +<span class="keyword">double</span> <span class="identifier">expected_life</span> <span class="special">=</span> <span class="number">1000.</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -321,7 +334,8 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Fraction of bulbs that will last between "</span> <span class="special"><<</span> <span class="identifier">min_life</span> <span class="special"><<</span> <span class="string">" and "</span> <span class="special"><<</span> <span class="identifier">max_life</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">bulbs</span><span class="special">,</span> <span class="identifier">max_life</span><span class="special">)</span> <span class="comment">// P(X <= 1200)</span> - <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">bulbs</span><span class="special">,</span> <span class="identifier">min_life</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// P(X <= 900)</span></pre> + <span class="special">-</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">bulbs</span><span class="special">,</span> <span class="identifier">min_life</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// P(X <= 900)</span> +</pre> <p> </p> <div class="note"><table border="0" summary="Note"> @@ -354,7 +368,8 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 <span class="keyword">double</span> <span class="identifier">stock</span> <span class="special">=</span> <span class="number">160.</span><span class="special">;</span> <span class="comment">// per week.</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Percentage of weeks overstocked "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">sacks</span><span class="special">,</span> <span class="identifier">stock</span><span class="special">)</span> <span class="special">*</span> <span class="number">100.</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// P(X <=160)</span> -<span class="comment">// Percentage of weeks overstocked 97.7</span></pre> +<span class="comment">// Percentage of weeks overstocked 97.7</span> +</pre> <p> </p> <p> @@ -364,7 +379,8 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 <p> </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">stock_95</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">sacks</span><span class="special">,</span> <span class="number">0.95</span><span class="special">);</span> -<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Store should stock "</span> <span class="special"><<</span> <span class="keyword">int</span><span class="special">(</span><span class="identifier">stock_95</span><span class="special">)</span> <span class="special"><<</span> <span class="string">" sacks to meet 95% of demands."</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> +<span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Store should stock "</span> <span class="special"><<</span> <span class="keyword">int</span><span class="special">(</span><span class="identifier">stock_95</span><span class="special">)</span> <span class="special"><<</span> <span class="string">" sacks to meet 95% of demands."</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -421,7 +437,8 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 <span class="identifier">normal</span> <span class="identifier">nominal_packs</span><span class="special">(</span><span class="identifier">nominal_mean</span><span class="special">,</span> <span class="identifier">standard_deviation</span><span class="special">);</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Setting the packer to "</span> <span class="special"><<</span> <span class="identifier">nominal_mean</span> <span class="special"><<</span> <span class="string">" will mean that "</span> <span class="special"><<</span> <span class="string">"fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">under_weight</span> - <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">nominal_packs</span><span class="special">,</span> <span class="identifier">under_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">nominal_packs</span><span class="special">,</span> <span class="identifier">under_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -446,7 +463,8 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 </p> <pre class="programlisting"><span class="keyword">double</span> <span class="identifier">p</span> <span class="special">=</span> <span class="number">0.05</span><span class="special">;</span> <span class="comment">// wanted p th quantile.</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Quantile of "</span> <span class="special"><<</span> <span class="identifier">p</span> <span class="special"><<</span> <span class="string">" = "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">packs</span><span class="special">,</span> <span class="identifier">p</span><span class="special">)</span> - <span class="special"><<</span> <span class="string">", mean = "</span> <span class="special"><<</span> <span class="identifier">packs</span><span class="special">.</span><span class="identifier">mean</span><span class="special">()</span> <span class="special"><<</span> <span class="string">", sd = "</span> <span class="special"><<</span> <span class="identifier">packs</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">//</span></pre> + <span class="special"><<</span> <span class="string">", mean = "</span> <span class="special"><<</span> <span class="identifier">packs</span><span class="special">.</span><span class="identifier">mean</span><span class="special">()</span> <span class="special"><<</span> <span class="string">", sd = "</span> <span class="special"><<</span> <span class="identifier">packs</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">//</span> +</pre> <p> </p> <p> @@ -470,7 +488,8 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 <span class="identifier">cout</span> <span class="special"><<</span><span class="string">"Fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">under_weight</span> <span class="special"><<</span> <span class="string">" with a mean of "</span> <span class="special"><<</span> <span class="identifier">mean</span> <span class="special"><<</span> <span class="string">" and standard deviation of "</span> <span class="special"><<</span> <span class="identifier">pack05</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">pack05</span><span class="special">,</span> <span class="identifier">under_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">//</span></pre> +<span class="comment">//</span> +</pre> <p> </p> <p> @@ -490,7 +509,8 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 <span class="identifier">cout</span> <span class="special"><<</span><span class="string">"Fraction of packs >= "</span> <span class="special"><<</span> <span class="identifier">under_weight</span> <span class="special"><<</span> <span class="string">" with a mean of "</span> <span class="special"><<</span> <span class="identifier">mean</span> <span class="special"><<</span> <span class="string">" and standard deviation of "</span> <span class="special"><<</span> <span class="identifier">pack06</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> - <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">pack06</span><span class="special">,</span> <span class="identifier">under_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span></pre> + <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">pack06</span><span class="special">,</span> <span class="identifier">under_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -531,7 +551,8 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 <span class="special"><<</span> <span class="string">" and standard deviation of "</span> <span class="special"><<</span> <span class="identifier">pack95</span><span class="special">.</span><span class="identifier">standard_deviation</span><span class="special">()</span> <span class="special"><<</span> <span class="string">" is "</span> <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">pack95</span><span class="special">,</span> <span class="identifier">under_weight</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="comment">// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.0608 is 0.95</span></pre> +<span class="comment">// Fraction of packs >= 2.9 with a mean of 3 and standard deviation of 0.0608 is 0.95</span> +</pre> <p> </p> <p> @@ -570,7 +591,6 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 <span class="special"><<</span> <span class="identifier">cdf</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">bolts</span><span class="special">,</span> <span class="identifier">top</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"95% of bolts are shorter than "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">bolts</span><span class="special">,</span> <span class="number">0.95</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> - </pre> <p> </p> @@ -578,7 +598,7 @@ Fraction 3 standard deviations within either side of mean is 0.997300203936740 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg.html index 8cc2281192..c888c5f487 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg.html @@ -44,7 +44,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/paired_st.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/paired_st.html index 3d19aa17a4..9e0bf08faa 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/paired_st.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/paired_st.html @@ -65,7 +65,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_intervals.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_intervals.html index 6500b4704d..30c04a1ba8 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_intervals.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_intervals.html @@ -254,7 +254,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_size.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_size.html index ac3b99fb44..a05fa0da16 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_size.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_size.html @@ -165,7 +165,7 @@ _______________________________________________________________ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_test.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_test.html index da6d59d1e0..51bad107cd 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_test.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/tut_mean_test.html @@ -320,7 +320,7 @@ Mean > 38.900 REJECTED <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/two_sample_students_t.html b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/two_sample_students_t.html index 3eb71c35a9..2789de4bb9 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/two_sample_students_t.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/dist/stat_tut/weg/st_eg/two_sample_students_t.html @@ -344,7 +344,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c.html b/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c.html index bfd1e09e5b..a530bb2e93 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c.html @@ -37,7 +37,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/c99.html b/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/c99.html index cd225a3ea5..77cd4d1525 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/c99.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/c99.html @@ -463,7 +463,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/tr1.html b/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/tr1.html index 21a65e894c..a503b29156 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/tr1.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/tr1.html @@ -605,7 +605,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/tr1_ref.html b/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/tr1_ref.html index e76ce84836..322e382bb2 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/tr1_ref.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/extern_c/tr1_ref.html @@ -7,7 +7,7 @@ <link rel="home" href="../../index.html" title="Math Toolkit"> <link rel="up" href="../extern_c.html" title='TR1 and C99 external "C" Functions'> <link rel="prev" href="c99.html" title="C99 C Functions"> -<link rel="next" href="../toolkit.html" title="Tools, Constants and Internal Details"> +<link rel="next" href="../constants.html" title="Mathematical Constants"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> @@ -20,7 +20,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="c99.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../extern_c.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../toolkit.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="c99.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../extern_c.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../constants.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_extern_c_tr1_ref"> <div class="titlepage"><div><div><h3 class="title"> @@ -524,7 +524,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -532,7 +532,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="c99.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../extern_c.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../toolkit.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="c99.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../extern_c.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../constants.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview.html index 5a1c903431..fb3a92ee73 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview.html @@ -29,6 +29,8 @@ <div class="toc"><dl> <dt><span class="section"><a href="main_overview/intro.html">About the Math Toolkit</a></span></dt> <dt><span class="section"><a href="main_overview/navigation.html">Navigation</a></span></dt> +<dt><span class="section"><a href="main_overview/conventions.html">Document Conventions</a></span></dt> +<dt><span class="section"><a href="main_overview/hints.html">Other Hints and tips</a></span></dt> <dt><span class="section"><a href="main_overview/directories.html">Directory and File Structure</a></span></dt> <dt><span class="section"><a href="main_overview/namespaces.html">Namespaces</a></span></dt> @@ -56,7 +58,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/building.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/building.html index 8402f6d1c3..e9aa84d6e4 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/building.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/building.html @@ -148,7 +148,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/compilers_overview.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/compilers_overview.html index cc87b83d62..bdb6ab8b69 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/compilers_overview.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/compilers_overview.html @@ -601,7 +601,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/config_macros.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/config_macros.html index 9342bb96eb..cefc0a7f83 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/config_macros.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/config_macros.html @@ -399,7 +399,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/contact.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/contact.html index 74e6c47f5f..8b15267594 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/contact.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/contact.html @@ -49,7 +49,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/conventions.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/conventions.html new file mode 100644 index 0000000000..72bbf68da7 --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/conventions.html @@ -0,0 +1,84 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Document Conventions</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Math Toolkit"> +<link rel="up" href="../main_overview.html" title="Overview"> +<link rel="prev" href="navigation.html" title="Navigation"> +<link rel="next" href="hints.html" title="Other Hints and tips"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="navigation.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="hints.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_main_overview_conventions"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="math_toolkit.main_overview.conventions"></a><a class="link" href="conventions.html" title="Document Conventions">Document Conventions</a> +</h3></div></div></div> +<p> + <a class="indexterm" name="id818653"></a> + </p> +<p> + This documentation aims to use of the following naming and formatting conventions. + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + C++ Code is in <code class="computeroutput"><span class="identifier">fixed</span> <span class="identifier">width</span> <span class="identifier">font</span></code> + and is syntax-highlighted in color, for example <code class="computeroutput"><span class="keyword">double</span></code>. + </li> +<li class="listitem"> + Other code is in block <code class="literal">teletype fixed-width font</code>. + </li> +<li class="listitem"> + Replaceable text that <span class="bold"><strong>you</strong></span> will need + to supply is in <em class="replaceable"><code>italics</code></em>. + </li> +<li class="listitem"> + If a name refers to a free function, it is specified like this: <code class="computeroutput"><span class="identifier">free_function</span><span class="special">()</span></code>; + that is, it is in <em class="replaceable"><code>code font</code></em> and its name is + followed by <code class="computeroutput"><span class="special">()</span></code> to indicate + that it is a free function. + </li> +<li class="listitem"> + If a name refers to a class template, it is specified like this: <code class="computeroutput"><span class="identifier">class_template</span><span class="special"><></span></code>; + that is, it is in code font and its name is followed by <code class="computeroutput"><span class="special"><></span></code> to indicate that it is a class + template. + </li> +<li class="listitem"> + If a name refers to a function-like macro, it is specified like this: + <code class="computeroutput"><span class="identifier">MACRO</span><span class="special">()</span></code>; + that is, it is uppercase in code font and its name is followed by <code class="computeroutput"><span class="special">()</span></code> to indicate that it is a function-like + macro. Object-like macros appear without the trailing <code class="computeroutput"><span class="special">()</span></code>. + </li> +<li class="listitem"> + Names that refer to <span class="emphasis"><em>concepts</em></span> in the generic programming + sense (like template parameter names) are specified in CamelCase. + </li> +</ul></div> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="navigation.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="hints.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/directories.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/directories.html index fd56188898..f11c459cb7 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/directories.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/directories.html @@ -6,7 +6,7 @@ <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../index.html" title="Math Toolkit"> <link rel="up" href="../main_overview.html" title="Overview"> -<link rel="prev" href="navigation.html" title="Navigation"> +<link rel="prev" href="hints.html" title="Other Hints and tips"> <link rel="next" href="namespaces.html" title="Namespaces"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> @@ -20,7 +20,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="navigation.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="namespaces.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="hints.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="namespaces.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_main_overview_directories"> <div class="titlepage"><div><div><h3 class="title"> @@ -42,8 +42,10 @@ (and short <code class="computeroutput"><span class="keyword">typedef</span></code> names of distributions are reserved for this type where possible), a few will use <code class="computeroutput"><span class="keyword">float</span></code> or <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">double</span></code>, - but it is also possible to use higher precision types like <a href="http://shoup.net/ntl/doc/RR.txt" target="_top">NTL::RR</a> - that conform to the requirements specified by real_concept. + but it is also possible to use higher precision types like <a href="http://shoup.net/ntl/doc/RR.txt" target="_top">NTL::RR</a>, + <a href="http://gmplib.org/" target="_top">GNU Multiple Precision Arithmetic Library</a>, + <a href="http://www.mpfr.org/" target="_top">MPFR</a> that conform to the + requirements specified by real_concept. </p></dd> <dt><span class="term">/constants/</span></dt> <dd><p> @@ -110,7 +112,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -118,7 +120,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="navigation.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="namespaces.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="hints.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="namespaces.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/error_handling.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/error_handling.html index e2f296c6af..c1ee394ec8 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/error_handling.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/error_handling.html @@ -1091,7 +1091,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/faq.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/faq.html index a04e50b90d..aee1d0c020 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/faq.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/faq.html @@ -194,7 +194,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/hints.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/hints.html new file mode 100644 index 0000000000..53a2dae49f --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/hints.html @@ -0,0 +1,111 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Other Hints and tips</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Math Toolkit"> +<link rel="up" href="../main_overview.html" title="Overview"> +<link rel="prev" href="conventions.html" title="Document Conventions"> +<link rel="next" href="directories.html" title="Directory and File Structure"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="conventions.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="directories.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_main_overview_hints"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="math_toolkit.main_overview.hints"></a><a class="link" href="hints.html" title="Other Hints and tips">Other Hints and tips</a> +</h3></div></div></div> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + If you have a feature request, or if it appears that the implementation + is in error, please search first in the <a href="https://svn.boost.org/trac/boost/" target="_top">Boost + Trac</a>. + </li> +<li class="listitem"> + <a href="https://svn.boost.org/trac/boost/" target="_top">Trac</a> entries may + indicate that updates or corrections that solve your problem are in + <a href="http://svn.boost.org/svn/boost/trunk" target="_top">Boost-trunk</a> + where changes are being assembled and tested ready for the next release. + You may, at your own risk, download new versions from there. + </li> +<li class="listitem"> + If you do not understand why things work the way they do, see the <span class="emphasis"><em>rationale</em></span> + section. + </li> +<li class="listitem"> + 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. + </li> +</ul></div> +<h6> +<a name="math_toolkit.main_overview.hints.h0"></a> + <span><a name="math_toolkit.main_overview.hints.admonishments"></a></span><a class="link" href="hints.html#math_toolkit.main_overview.hints.admonishments">Admonishments</a> + </h6> +<div class="note"><table border="0" summary="Note"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/src/images/note.png"></td> +<th align="left">Note</th> +</tr> +<tr><td align="left" valign="top"><p> + In addition, notes such as this one specify non-essential information that + provides additional background or rationale. + </p></td></tr> +</table></div> +<div class="tip"><table border="0" summary="Tip"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../../../../../doc/src/images/tip.png"></td> +<th align="left">Tip</th> +</tr> +<tr><td align="left" valign="top"><p> + These blocks contain information that you may find helpful while coding. + </p></td></tr> +</table></div> +<div class="important"><table border="0" summary="Important"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Important]" src="../../../../../../../doc/src/images/important.png"></td> +<th align="left">Important</th> +</tr> +<tr><td align="left" valign="top"><p> + 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. + </p></td></tr> +</table></div> +<div class="warning"><table border="0" summary="Warning"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../../../../../doc/src/images/warning.png"></td> +<th align="left">Warning</th> +</tr> +<tr><td align="left" valign="top"><p> + Failure to heed this will lead to incorrect, and very likely undesired, + results. + </p></td></tr> +</table></div> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="conventions.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="directories.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/history1.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/history1.html index 64a104cdfb..f1340d05e1 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/history1.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/history1.html @@ -29,6 +29,45 @@ </h3></div></div></div> <h5> <a name="math_toolkit.main_overview.history1.h0"></a> + <span><a name="math_toolkit.main_overview.history1.boost_1_50"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_50">Boost-1.50</a> + </h5> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + 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. + </li> +<li class="listitem"> + Added the Owen's T function and Skew Normal distribution written by Benjamin + Sobotta: see <a class="link" href="../special/owens_t.html" title="Owen's T function">Owens T</a> + and skew_normal_distrib. + </li> +<li class="listitem"> + Added Hankel functions <a class="link" href="../special/hankel/cyl_hankel.html" title="Cyclic Hankel Functions">cyl_hankel_1</a>, + <a class="link" href="../special/hankel/cyl_hankel.html" title="Cyclic Hankel Functions">cyl_hankel_2</a>, + <a class="link" href="../special/hankel/sph_hankel.html" title="Spherical Hankel Functions">sph_hankel_1</a> + and <a class="link" href="../special/hankel/sph_hankel.html" title="Spherical Hankel Functions">sph_hankel_2</a>. + </li> +<li class="listitem"> + Corrected issue <a href="https://svn.boost.org/trac/boost/ticket/6627" target="_top">#6627 + nonfinite_num_put formatting of 0.0 is incorrect</a> based on a patch + submitted by K R Walker. + </li> +<li class="listitem"> + 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 <code class="computeroutput"><span class="keyword">long</span> + <span class="keyword">double</span></code> does not. So for example + 128-bit rational approximations will work with UDT's and do the right + thing, even though <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">double</span></code> may be only 64 or 80 bits. + </li> +<li class="listitem"> + Fixed issue in <code class="computeroutput"><span class="identifier">bessel_jy</span></code> + which causes Y<sub>8.5</sub>(4π) to yield a NaN. + </li> +</ul></div> +<h5> +<a name="math_toolkit.main_overview.history1.h1"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_49"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_49">Boost-1.49</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -72,7 +111,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h1"></a> +<a name="math_toolkit.main_overview.history1.h2"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_48"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_48">Boost-1.48</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -123,7 +162,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h2"></a> +<a name="math_toolkit.main_overview.history1.h3"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_47"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_47">Boost-1.47</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -140,7 +179,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h3"></a> +<a name="math_toolkit.main_overview.history1.h4"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_46_1"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_46_1">Boost-1.46.1</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> @@ -148,7 +187,7 @@ <a href="https://svn.boost.org/trac/boost/ticket/5095" target="_top">#5113</a>. </li></ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h4"></a> +<a name="math_toolkit.main_overview.history1.h5"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_46_0"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_46_0">Boost-1.46.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -163,7 +202,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h5"></a> +<a name="math_toolkit.main_overview.history1.h6"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_45_0"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_45_0">Boost-1.45.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -180,7 +219,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h6"></a> +<a name="math_toolkit.main_overview.history1.h7"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_44_0"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_44_0">Boost-1.44.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -194,7 +233,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h7"></a> +<a name="math_toolkit.main_overview.history1.h8"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_41_0"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_41_0">Boost-1.41.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> @@ -202,7 +241,7 @@ and its inverse. </li></ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h8"></a> +<a name="math_toolkit.main_overview.history1.h9"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_40_0"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_40_0">Boost-1.40.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -239,7 +278,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h9"></a> +<a name="math_toolkit.main_overview.history1.h10"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_38_0"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_38_0">Boost-1.38.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -251,14 +290,14 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h10"></a> +<a name="math_toolkit.main_overview.history1.h11"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_37_0"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_37_0">Boost-1.37.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> Improved accuracy and testing of the inverse hypergeometric functions. </li></ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h11"></a> +<a name="math_toolkit.main_overview.history1.h12"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_36_0"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_36_0">Boost-1.36.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -291,7 +330,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h12"></a> +<a name="math_toolkit.main_overview.history1.h13"></a> <span><a name="math_toolkit.main_overview.history1.boost_1_35_0__post_review_first_official_release"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.boost_1_35_0__post_review_first_official_release">Boost-1.35.0: Post Review First Official Release</a> </h5> @@ -323,7 +362,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h13"></a> +<a name="math_toolkit.main_overview.history1.h14"></a> <span><a name="math_toolkit.main_overview.history1.milestone_4__second_review_candidate__1st_march_2007_"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.milestone_4__second_review_candidate__1st_march_2007_">Milestone 4: Second Review Candidate (1st March 2007)</a> </h5> @@ -337,7 +376,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h14"></a> +<a name="math_toolkit.main_overview.history1.h15"></a> <span><a name="math_toolkit.main_overview.history1.milestone_3__first_review_candidate__31st_dec_2006_"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.milestone_3__first_review_candidate__31st_dec_2006_">Milestone 3: First Review Candidate (31st Dec 2006)</a> </h5> @@ -365,7 +404,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h15"></a> +<a name="math_toolkit.main_overview.history1.h16"></a> <span><a name="math_toolkit.main_overview.history1.milestone_2__released_september_10th_2006"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.milestone_2__released_september_10th_2006">Milestone 2: Released September 10th 2006</a> </h5> @@ -401,7 +440,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.main_overview.history1.h16"></a> +<a name="math_toolkit.main_overview.history1.h17"></a> <span><a name="math_toolkit.main_overview.history1.milestone_1__released_march_31st_2006"></a></span><a class="link" href="history1.html#math_toolkit.main_overview.history1.milestone_1__released_march_31st_2006">Milestone 1: Released March 31st 2006</a> </h5> @@ -436,7 +475,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/intro.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/intro.html index 25ae18a5e5..25b5f635f4 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/intro.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/intro.html @@ -88,7 +88,7 @@ Toolkit</a> </h5> <p> - Provides <a class="link" href="../toolkit.html" title="Tools, Constants and Internal Details">many of the tools</a> required + Provides <a class="link" href="../toolkit.html" title="Tools and Internal Details">many of the tools</a> required to implement mathematical special functions: hopefully the presence of these will encourage other authors to contribute more special function implementations in the future. These tools are currently considered experimental: they are @@ -120,7 +120,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/namespaces.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/namespaces.html index 177669b249..c1e51f122a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/namespaces.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/namespaces.html @@ -44,10 +44,10 @@ <span class="identifier">student_t</span> <span class="identifier">mydist</span><span class="special">(</span><span class="number">10</span><span class="special">);</span> </pre> -<div class="note"><table border="0" summary="Note"> +<div class="warning"><table border="0" summary="Warning"> <tr> -<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/src/images/note.png"></td> -<th align="left">Note</th> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../../../../../doc/src/images/warning.png"></td> +<th align="left">Warning</th> </tr> <tr><td align="left" valign="top"><p> Some distribution names are also used in std random library, so to avoid @@ -67,11 +67,21 @@ <a class="link" href="../policy.html" title="Policies">Policy</a> and configuration information is in namespace <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span></code>. </p> +<div class="tip"><table border="0" summary="Tip"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../../../../../doc/src/images/tip.png"></td> +<th align="left">Tip</th> +</tr> +<tr><td align="left" valign="top"><p> + Many code snippets assume implicit namespace(s), for example, <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span></code> + or <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span></code>. + </p></td></tr> +</table></div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/navigation.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/navigation.html index dff872dfb8..1be09a2206 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/navigation.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/navigation.html @@ -7,7 +7,7 @@ <link rel="home" href="../../index.html" title="Math Toolkit"> <link rel="up" href="../main_overview.html" title="Overview"> <link rel="prev" href="intro.html" title="About the Math Toolkit"> -<link rel="next" href="directories.html" title="Directory and File Structure"> +<link rel="next" href="conventions.html" title="Document Conventions"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> @@ -20,117 +20,75 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="intro.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="directories.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="intro.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="conventions.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_main_overview_navigation"> <div class="titlepage"><div><div><h3 class="title"> <a name="math_toolkit.main_overview.navigation"></a><a class="link" href="navigation.html" title="Navigation">Navigation</a> </h3></div></div></div> <p> - Used in combination with the configured browser key, the following keys act - as handy shortcuts for common navigation tasks. + <a class="indexterm" name="id818524"></a> </p> +<p> + Boost.Math documentation is provided in both HTML and PDF formats. + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + <span class="bold"><strong>Tutorials</strong></span> are listed in the <span class="emphasis"><em>Table + of Contents</em></span> and include many examples that should help you + get started quickly. + </li> +<li class="listitem"> + <span class="bold"><strong>Source code</strong></span> of the many <span class="emphasis"><em>Examples</em></span> + will often be your quickest starting point. + </li> +<li class="listitem"> + <span class="bold"><strong>Index</strong></span> (general) includes all entries. + </li> +<li class="listitem"> + <span class="bold"><strong>Specific Indexes</strong></span> list only functions, + class signatures, macros and typedefs. + </li> +</ul></div> <h6> <a name="math_toolkit.main_overview.navigation.h0"></a> - <span><a name="math_toolkit.main_overview.navigation.shortcuts"></a></span><a class="link" href="navigation.html#math_toolkit.main_overview.navigation.shortcuts">Shortcuts</a> + <span><a name="math_toolkit.main_overview.navigation.using_the_indexes"></a></span><a class="link" href="navigation.html#math_toolkit.main_overview.navigation.using_the_indexes">Using the + Indexes</a> </h6> -<div class="blockquote"><blockquote class="blockquote"> -<p> - <code class="literal"><span class="bold"><strong>p</strong></span></code> - Previous page - </p> -<p> - <code class="literal"><span class="bold"><strong>n</strong></span></code> - Next page - </p> <p> - <code class="literal"><span class="bold"><strong>h</strong></span></code> - home - </p> -<p> - <code class="literal"><span class="bold"><strong>u</strong></span></code> - Up - </p> -</blockquote></div> -<p> - The following table shows how to access these from common browsers: + 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. </p> -<div class="informaltable"><table class="table"> -<colgroup> -<col> -<col> -</colgroup> -<thead><tr> -<th> - <p> - Browser - </p> - </th> -<th> - <p> - Access Method - </p> - </th> -</tr></thead> -<tbody> +<div class="tip"><table border="0" summary="Tip"> <tr> -<td> - <p> - Internet Explorer - </p> - </td> -<td> - <p> - Alt+Key highlights the link only, so for example to move to the - next topic you would need "Alt+n" followed by "Enter". - </p> - </td> -</tr> -<tr> -<td> - <p> - Firefox 2.0 and later - </p> - </td> -<td> - <p> - Alt+Shift+Key follows the link, so for example "Alt+Shift+n" - will take you to the next topic. - </p> - </td> -</tr> -<tr> -<td> - <p> - Opera - </p> - </td> -<td> - <p> - Press Shift+Esc followed by the access key. - </p> - </td> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../../../../../doc/src/images/tip.png"></td> +<th align="left">Tip</th> </tr> +<tr><td align="left" valign="top"><p> + When using the index, keep in mind that clicking on an index term only + takes you to the <span class="bold"><strong>section</strong></span> containing the + index entry. This section may be several pages long, so you may need to + use the <span class="bold"><strong>find</strong></span> facility of your browser + or PDF reader to get to the index term itself. + </p></td></tr> +</table></div> +<div class="tip"><table border="0" summary="Tip"> <tr> -<td> - <p> - Konqueror - </p> - </td> -<td> - <p> - Press and release the Ctrl key, followed by the access key - </p> - </td> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../../../../../doc/src/images/tip.png"></td> +<th align="left">Tip</th> </tr> -</tbody> +<tr><td align="left" valign="top"><p> + A PDF reader usually allows a <span class="bold"><strong>global</strong></span> 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. + </p></td></tr> </table></div> -<p> - Some browsers also make these links available in their site-navigation toolbars: - in Opera for example you can use Ctrl plus the left and right arrow keys - to move between "next" and "previous" topics. - </p> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -138,7 +96,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="intro.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="directories.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="intro.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../main_overview.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="conventions.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/perf_over.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/perf_over.html index 46aaed6ebe..a30695657c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/perf_over.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/perf_over.html @@ -67,7 +67,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/pol_overview.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/pol_overview.html index 6b530033bf..c52c2c652a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/pol_overview.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/pol_overview.html @@ -103,7 +103,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/result_type.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/result_type.html index 3926c87aaa..8490bf68f2 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/result_type.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/result_type.html @@ -134,7 +134,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/threads.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/threads.html index d960248fd5..5d51a9c51c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/threads.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/threads.html @@ -27,35 +27,16 @@ <a name="math_toolkit.main_overview.threads"></a><a class="link" href="threads.html" title="Thread Safety">Thread Safety</a> </h3></div></div></div> <p> - The library is fully thread safe and re-entrant provided the function and - class templates in the library are instantiated with built-in floating point - types: i.e. the types <code class="computeroutput"><span class="keyword">float</span></code>, - <code class="computeroutput"><span class="keyword">double</span></code> and <code class="computeroutput"><span class="keyword">long</span> - <span class="keyword">double</span></code>. - </p> -<p> - However, the library <span class="bold"><strong>is not thread safe</strong></span> - when used with user-defined (i.e. class type) numeric types. - </p> -<p> - The reason for the latter limitation is the need to initialise symbolic constants - using constructs such as: - </p> -<pre class="programlisting"><span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="identifier">coefficient_array</span> <span class="special">=</span> <span class="special">{</span> <span class="special">...</span> <span class="identifier">list</span> <span class="identifier">of</span> <span class="identifier">values</span> <span class="special">...</span> <span class="special">};</span> -</pre> -<p> - Which is always thread safe when T is a built-in floating point type, but - not when T is a user defined type: as in this case there is a need for T's - constructors to be run, leading to potential race conditions. - </p> -<p> - This limitation may be addressed in a future release. + 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. </p> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/tr1.html b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/tr1.html index 6af08f1f6f..d750405695 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/tr1.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/main_overview/tr1.html @@ -606,7 +606,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/perf.html b/libs/math/doc/sf_and_dist/html/math_toolkit/perf.html index 1124c21e36..6674369292 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/perf.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/perf.html @@ -42,7 +42,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/comp_compilers.html b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/comp_compilers.html index cc2a322533..734f7d1f0e 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/comp_compilers.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/comp_compilers.html @@ -35,7 +35,7 @@ in this respect). </p> <div class="table"> -<a name="math_toolkit.perf.comp_compilers.performance_comparison_of_various_windows_compilers"></a><p class="title"><b>Table 52. Performance Comparison of Various Windows Compilers</b></p> +<a name="math_toolkit.perf.comp_compilers.performance_comparison_of_various_windows_compilers"></a><p class="title"><b>Table 53. Performance Comparison of Various Windows Compilers</b></p> <div class="table-contents"><table class="table" summary="Performance Comparison of Various Windows Compilers"> <colgroup> <col> @@ -363,7 +363,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/comparisons.html b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/comparisons.html index dba9bf956f..df7a48af55 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/comparisons.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/comparisons.html @@ -574,7 +574,7 @@ (R-2.9.2 appears not to be buildable with Visual C++). </p> <div class="table"> -<a name="math_toolkit.perf.comparisons.a_comparison_to_the_r_statistical_library_on_windows_xp"></a><p class="title"><b>Table 55. A Comparison to the R Statistical Library on Windows XP</b></p> +<a name="math_toolkit.perf.comparisons.a_comparison_to_the_r_statistical_library_on_windows_xp"></a><p class="title"><b>Table 56. A Comparison to the R Statistical Library on Windows XP</b></p> <div class="table-contents"><table class="table" summary="A Comparison to the R Statistical Library on Windows XP"> <colgroup> <col> @@ -1849,7 +1849,7 @@ G++ 4.3.3 using -O3 -DNDEBUG=1. </p> <div class="table"> -<a name="math_toolkit.perf.comparisons.a_comparison_to_the_r_statistical_library_on_linux"></a><p class="title"><b>Table 56. A Comparison to the R Statistical Library on Linux</b></p> +<a name="math_toolkit.perf.comparisons.a_comparison_to_the_r_statistical_library_on_linux"></a><p class="title"><b>Table 57. A Comparison to the R Statistical Library on Linux</b></p> <div class="table-contents"><table class="table" summary="A Comparison to the R Statistical Library on Linux"> <colgroup> <col> @@ -3118,7 +3118,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/getting_best.html b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/getting_best.html index c5db0e415f..f4a8ceaeda 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/getting_best.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/getting_best.html @@ -33,7 +33,7 @@ penalty for using the library in debug mode can be quite large. </p> <div class="table"> -<a name="math_toolkit.perf.getting_best.performance_comparison_of_release_and_debug_settings"></a><p class="title"><b>Table 51. Performance Comparison of Release and Debug Settings</b></p> +<a name="math_toolkit.perf.getting_best.performance_comparison_of_release_and_debug_settings"></a><p class="title"><b>Table 52. Performance Comparison of Release and Debug Settings</b></p> <div class="table-contents"><table class="table" summary="Performance Comparison of Release and Debug Settings"> <colgroup> <col> @@ -280,7 +280,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/interp.html b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/interp.html index 1731d6d0da..9f2f2174c8 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/interp.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/interp.html @@ -67,7 +67,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/perf_over.html b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/perf_over.html index ca256d87cb..6da85de646 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/perf_over.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/perf_over.html @@ -67,7 +67,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/perf_test_app.html b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/perf_test_app.html index 8dd6928e11..68cbbd24c7 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/perf_test_app.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/perf_test_app.html @@ -49,7 +49,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/tuning.html b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/tuning.html index 7d158c04fd..86fd950531 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/perf/tuning.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/perf/tuning.html @@ -238,7 +238,7 @@ highly vectorisable processors in the future. </p> <div class="table"> -<a name="math_toolkit.perf.tuning.a_comparison_of_polynomial_evaluation_methods"></a><p class="title"><b>Table 53. A Comparison of Polynomial Evaluation Methods</b></p> +<a name="math_toolkit.perf.tuning.a_comparison_of_polynomial_evaluation_methods"></a><p class="title"><b>Table 54. A Comparison of Polynomial Evaluation Methods</b></p> <div class="table-contents"><table class="table" summary="A Comparison of Polynomial Evaluation Methods"> <colgroup> <col> @@ -638,7 +638,7 @@ tutorial</a>. </p> <div class="table"> -<a name="math_toolkit.perf.tuning.performance_comparison_with_and_without_internal_promotion_to_long_double"></a><p class="title"><b>Table 54. Performance Comparison with and Without Internal Promotion to long +<a name="math_toolkit.perf.tuning.performance_comparison_with_and_without_internal_promotion_to_long_double"></a><p class="title"><b>Table 55. Performance Comparison with and Without Internal Promotion to long double</b></p> <div class="table-contents"><table class="table" summary="Performance Comparison with and Without Internal Promotion to long double"> @@ -887,7 +887,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy.html index faee491256..04f720d5a2 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy.html @@ -75,7 +75,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_overview.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_overview.html index 4ae8efa64c..839e71e632 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_overview.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_overview.html @@ -103,7 +103,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref.html index f5ac549b01..f204c91652 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref.html @@ -50,7 +50,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/assert_undefined.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/assert_undefined.html index a654054a7b..fdc82f5227 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/assert_undefined.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/assert_undefined.html @@ -86,7 +86,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/discrete_quant_ref.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/discrete_quant_ref.html index 62f50e384a..95cb6d4bb5 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/discrete_quant_ref.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/discrete_quant_ref.html @@ -78,7 +78,6 @@ <span class="keyword">double</span> <span class="identifier">x</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">dist_type</span><span class="special">(</span><span class="number">20</span><span class="special">,</span> <span class="number">0.3</span><span class="special">),</span> <span class="number">0.05</span><span class="special">);</span> <span class="comment">// Upper 95% quantile:</span> <span class="keyword">double</span> <span class="identifier">y</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">dist_type</span><span class="special">(</span><span class="number">20</span><span class="special">,</span> <span class="number">0.3</span><span class="special">),</span> <span class="number">0.05</span><span class="special">));</span> - </pre> <p> </p> @@ -119,7 +118,6 @@ <span class="keyword">double</span> <span class="identifier">x</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">negative_binomial</span><span class="special">(</span><span class="number">20</span><span class="special">,</span> <span class="number">0.3</span><span class="special">),</span> <span class="number">0.05</span><span class="special">);</span> <span class="comment">// rounded up 27 from 27.3898</span> <span class="comment">// Upper quantile rounded up:</span> <span class="keyword">double</span> <span class="identifier">y</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">negative_binomial</span><span class="special">(</span><span class="number">20</span><span class="special">,</span> <span class="number">0.3</span><span class="special">),</span> <span class="number">0.05</span><span class="special">));</span> <span class="comment">// rounded down to 69 from 68.1584</span> - </pre> <p> </p> @@ -177,7 +175,6 @@ <span class="keyword">double</span> <span class="identifier">x</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">dist_type</span><span class="special">(</span><span class="number">20</span><span class="special">,</span> <span class="number">0.3</span><span class="special">),</span> <span class="number">0.05</span><span class="special">);</span> <span class="comment">// 28 rounded up from 27.3898</span> <span class="comment">// Upper quantile rounded down:</span> <span class="keyword">double</span> <span class="identifier">y</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">dist_type</span><span class="special">(</span><span class="number">20</span><span class="special">,</span> <span class="number">0.3</span><span class="special">),</span> <span class="number">0.05</span><span class="special">));</span> <span class="comment">// 68 rounded down from 68.1584</span> - </pre> <p> </p> @@ -244,7 +241,6 @@ <span class="keyword">double</span> <span class="identifier">x</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">dist_type</span><span class="special">(</span><span class="number">20</span><span class="special">,</span> <span class="number">0.3</span><span class="special">),</span> <span class="number">0.05</span><span class="special">);</span> <span class="comment">// 27</span> <span class="comment">// Upper quantile rounded (down) to nearest:</span> <span class="keyword">double</span> <span class="identifier">y</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">dist_type</span><span class="special">(</span><span class="number">20</span><span class="special">,</span> <span class="number">0.3</span><span class="special">),</span> <span class="number">0.05</span><span class="special">));</span> <span class="comment">// 68</span> - </pre> <p> </p> @@ -256,7 +252,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/error_handling_policies.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/error_handling_policies.html index beb986e4c7..7bf1bb9b11 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/error_handling_policies.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/error_handling_policies.html @@ -760,7 +760,6 @@ <span class="comment">// Construct a my_norm distribution, using default mean and standard deviation,</span> <span class="comment">// and get a 0.05 or 5% quantile:</span> <span class="keyword">double</span> <span class="identifier">q</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">my_norm</span><span class="special">(),</span> <span class="number">0.05</span><span class="special">);</span> <span class="comment">// = -1.64485</span> - </pre> <p> </p> @@ -768,7 +767,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/internal_promotion.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/internal_promotion.html index fe025aba15..e8aee29057 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/internal_promotion.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/internal_promotion.html @@ -111,7 +111,6 @@ <span class="comment">// Alternatively we could use helper function make_policy,</span> <span class="comment">// and concisely define everything at the call site:</span> <span class="keyword">double</span> <span class="identifier">t2</span> <span class="special">=</span> <span class="identifier">tgamma</span><span class="special">(</span><span class="identifier">some_value</span><span class="special">,</span> <span class="identifier">make_policy</span><span class="special">(</span><span class="identifier">promote_double</span><span class="special"><</span><span class="keyword">false</span><span class="special">>()));</span> - </pre> <p> </p> @@ -136,7 +135,6 @@ <span class="comment">// Get a quantile:</span> <span class="keyword">float</span> <span class="identifier">q</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">my_norm</span><span class="special">(),</span> <span class="number">0.05f</span><span class="special">);</span> - </pre> <p> </p> @@ -144,7 +142,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/iteration_pol.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/iteration_pol.html index 1c0764c8cd..8219eb7d2d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/iteration_pol.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/iteration_pol.html @@ -52,7 +52,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/namespace_pol.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/namespace_pol.html index 4859fe7375..c66cc6e63c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/namespace_pol.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/namespace_pol.html @@ -68,7 +68,6 @@ <span class="keyword">double</span> <span class="identifier">t</span> <span class="special">=</span> <span class="identifier">myspace</span><span class="special">::</span><span class="identifier">tgamma</span><span class="special">(</span><span class="number">30.0</span><span class="special">);</span> <span class="comment">// Will *not* throw on overflow,</span> <span class="comment">// despite the large value of factorial 30 = 265252859812191058636308480000000</span> <span class="comment">// unlike default policy boost::math::tgamma;</span> - </pre> <p> </p> @@ -133,7 +132,6 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">what</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> <span class="special">}</span> - </pre> <p> </p> @@ -152,7 +150,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/pol_ref_ref.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/pol_ref_ref.html index 293964fcab..5735006e45 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/pol_ref_ref.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/pol_ref_ref.html @@ -245,7 +245,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/policy_defaults.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/policy_defaults.html index 3938053001..7c0c1dd167 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/policy_defaults.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/policy_defaults.html @@ -245,7 +245,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/precision_pol.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/precision_pol.html index d1f4c9f135..d893131e72 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/precision_pol.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_ref/precision_pol.html @@ -82,7 +82,6 @@ <span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">policies</span><span class="special">;</span> <span class="keyword">double</span> <span class="identifier">t</span> <span class="special">=</span> <span class="identifier">tgamma</span><span class="special">(</span><span class="number">12</span><span class="special">,</span> <span class="identifier">policy</span><span class="special"><</span><span class="identifier">digits10</span><span class="special"><</span><span class="number">5</span><span class="special">></span> <span class="special">>());</span> <span class="comment">// Concise make_policy.</span> - </pre> <p> </p> @@ -101,7 +100,6 @@ <span class="keyword">double</span> <span class="identifier">q</span> <span class="special">=</span> <span class="identifier">quantile</span><span class="special">(</span> <span class="identifier">normal_distribution</span><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="identifier">policy</span><span class="special"><</span><span class="identifier">digits2</span><span class="special"><</span><span class="identifier">bits</span><span class="special">></span> <span class="special">></span> <span class="special">>(),</span> <span class="number">0.05</span><span class="special">);</span> <span class="comment">// 5% quantile.</span> - </pre> <p> </p> @@ -109,7 +107,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial.html index 3e13c1cab6..b098878e78 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial.html @@ -50,7 +50,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/ad_hoc_dist_policies.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/ad_hoc_dist_policies.html index 835d2d26be..0ed804df9a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/ad_hoc_dist_policies.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/ad_hoc_dist_policies.html @@ -83,7 +83,6 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"quantile(mybinom(200, 0.25), 0.05) is: "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">mybinom</span><span class="special">(</span><span class="number">200</span><span class="special">,</span> <span class="number">0.25</span><span class="special">),</span> <span class="number">0.05</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> - </pre> <p> </p> @@ -95,7 +94,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/ad_hoc_sf_policies.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/ad_hoc_sf_policies.html index cde97ee8d7..142629ce85 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/ad_hoc_sf_policies.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/ad_hoc_sf_policies.html @@ -101,7 +101,6 @@ <span class="special"><<</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">tgamma</span><span class="special">(-</span><span class="number">10</span><span class="special">,</span> <span class="identifier">c_policy</span><span class="special">())</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// Negative parameter.</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"errno = "</span> <span class="special"><<</span> <span class="identifier">errno</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// error 33 Numerical argument out of domain.</span> <span class="special">}</span> <span class="comment">// int main()</span> - </pre> <p> </p> @@ -160,7 +159,6 @@ errno = 33 <span class="comment">// Check errno was set:</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"errno = "</span> <span class="special"><<</span> <span class="identifier">errno</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> - </pre> <p> </p> @@ -168,7 +166,7 @@ errno = 33 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/changing_policy_defaults.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/changing_policy_defaults.html index edecad8fca..76ac9a9c0c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/changing_policy_defaults.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/changing_policy_defaults.html @@ -175,7 +175,8 @@ <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">exception</span><span class="special">;</span> <span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">cstddef</span><span class="special">></span> - <span class="comment">// using ::errno</span></pre> + <span class="comment">// using ::errno</span> +</pre> <p> </p> <p> @@ -217,7 +218,8 @@ <span class="string">"\n"</span><span class="string">"Message from thrown exception was:\n "</span> <span class="special"><<</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">what</span><span class="special">()</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> <span class="keyword">return</span> <span class="number">0</span><span class="special">;</span> -<span class="special">}</span> <span class="comment">// int main()</span></pre> +<span class="special">}</span> <span class="comment">// int main()</span> +</pre> <p> </p> <p> @@ -260,7 +262,7 @@ errno is set to: 33 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/namespace_policies.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/namespace_policies.html index 53e72c295e..b75c334c53 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/namespace_policies.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/namespace_policies.html @@ -53,7 +53,8 @@ <p> </p> <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">special_functions</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> -<span class="comment">//using boost::math::tgamma; // Not needed because using C::tgamma.</span></pre> +<span class="comment">//using boost::math::tgamma; // Not needed because using C::tgamma.</span> +</pre> <p> </p> <p> @@ -82,7 +83,8 @@ <span class="identifier">pole_error</span><span class="special"><</span><span class="identifier">errno_on_error</span><span class="special">>,</span> <span class="identifier">overflow_error</span><span class="special"><</span><span class="identifier">errno_on_error</span><span class="special">>,</span> <span class="identifier">evaluation_error</span><span class="special"><</span><span class="identifier">errno_on_error</span><span class="special">></span> - <span class="special">></span> <span class="identifier">c_policy</span><span class="special">;</span></pre> + <span class="special">></span> <span class="identifier">c_policy</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -93,7 +95,8 @@ </p> <pre class="programlisting"><span class="identifier">BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS</span><span class="special">(</span><span class="identifier">c_policy</span><span class="special">)</span> -<span class="special">}</span> <span class="comment">// close namespace C</span></pre> +<span class="special">}</span> <span class="comment">// close namespace C</span> +</pre> <p> </p> <p> @@ -127,7 +130,8 @@ <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Result of tgamma(-10) is: "</span> <span class="special"><<</span> <span class="identifier">C</span><span class="special">::</span><span class="identifier">tgamma</span><span class="special">(-</span><span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"errno = "</span> <span class="special"><<</span> <span class="identifier">errno</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// errno = 33, overwriting previous value of 34.</span> -<span class="special">}</span></pre> +<span class="special">}</span> +</pre> <p> </p> <p> @@ -167,7 +171,8 @@ errno = 33 <span class="identifier">evaluation_error</span><span class="special"><</span><span class="identifier">errno_on_error</span><span class="special">></span> <span class="special">></span> <span class="identifier">c_policy</span><span class="special">;</span> -<span class="identifier">BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS</span><span class="special">(</span><span class="identifier">c_policy</span><span class="special">)</span></pre> +<span class="identifier">BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS</span><span class="special">(</span><span class="identifier">c_policy</span><span class="special">)</span> +</pre> <p> </p> <p> @@ -191,7 +196,6 @@ errno = 33 <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"errno = "</span> <span class="special"><<</span> <span class="identifier">errno</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// Default tgamma policy would throw an exception, and abort.</span> <span class="special">}</span> - </pre> <p> </p> @@ -230,7 +234,8 @@ errno = 33 </p> <p> </p> -<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">distributions</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></pre> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">distributions</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> <p> </p> <p> @@ -252,7 +257,8 @@ errno = 33 <span class="identifier">promote_double</span><span class="special"><</span><span class="keyword">false</span><span class="special">>,</span> <span class="comment">// Return the closest integer result for discrete quantiles:</span> <span class="identifier">discrete_quantile</span><span class="special"><</span><span class="identifier">integer_round_nearest</span><span class="special">></span> - <span class="special">></span> <span class="identifier">my_policy</span><span class="special">;</span></pre> + <span class="special">></span> <span class="identifier">my_policy</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -265,7 +271,8 @@ errno = 33 </p> <pre class="programlisting"><span class="identifier">BOOST_MATH_DECLARE_DISTRIBUTIONS</span><span class="special">(</span><span class="keyword">double</span><span class="special">,</span> <span class="identifier">my_policy</span><span class="special">)</span> -<span class="special">}</span> <span class="comment">// close namespace my_namespace</span></pre> +<span class="special">}</span> <span class="comment">// close namespace my_namespace</span> +</pre> <p> </p> <p> @@ -307,7 +314,8 @@ errno = 33 <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">binom</span><span class="special">,</span> <span class="number">0.05</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="comment">// To check we get integer results.</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Result of quantile(complement(binom, 0.05)) is: "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">binom</span><span class="special">,</span> <span class="number">0.05</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="special">}</span></pre> +<span class="special">}</span> +</pre> <p> </p> <p> @@ -387,7 +395,6 @@ Result of quantile(complement(binom, 0.05)) is: 8 <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Result of quantile(complement(binom, 0.05)) is: "</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">complement</span><span class="special">(</span><span class="identifier">binom</span><span class="special">,</span> <span class="number">0.05</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="special">}</span> - </pre> <p> </p> @@ -395,7 +402,7 @@ Result of quantile(complement(binom, 0.05)) is: 8 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/policy_tut_defaults.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/policy_tut_defaults.html index fb83f7c76a..ff8c959133 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/policy_tut_defaults.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/policy_tut_defaults.html @@ -126,7 +126,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/policy_usage.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/policy_usage.html index 3ab8c2f777..bb66b9990a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/policy_usage.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/policy_usage.html @@ -57,7 +57,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/understand_dis_quant.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/understand_dis_quant.html index 8b486e402f..b251aae7b0 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/understand_dis_quant.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/understand_dis_quant.html @@ -256,7 +256,8 @@ <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">setw</span><span class="special">;</span> <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">setprecision</span><span class="special">;</span> -<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">distributions</span><span class="special">/</span><span class="identifier">binomial</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></pre> +<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">distributions</span><span class="special">/</span><span class="identifier">binomial</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> <p> </p> <p> @@ -313,7 +314,8 @@ <span class="keyword">typedef</span> <span class="identifier">binomial_distribution</span><span class="special"><</span> <span class="keyword">double</span><span class="special">,</span> <span class="identifier">policy</span><span class="special"><</span><span class="identifier">discrete_quantile</span><span class="special"><</span><span class="identifier">real</span><span class="special">></span> <span class="special">></span> <span class="special">></span> - <span class="identifier">binom_real_quantile</span><span class="special">;</span></pre> + <span class="identifier">binom_real_quantile</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -387,7 +389,8 @@ <span class="special"><<</span> <span class="identifier">setw</span><span class="special">(</span><span class="number">18</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">right</span> <span class="special"><<</span> <span class="identifier">quantile</span><span class="special">(</span><span class="identifier">binom_real_quantile</span><span class="special">(</span><span class="number">50</span><span class="special">,</span> <span class="number">0.5</span><span class="special">),</span> <span class="number">0.95</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="special">}</span> <span class="comment">// int main()</span></pre> +<span class="special">}</span> <span class="comment">// int main()</span> +</pre> <p> </p> <p> @@ -413,7 +416,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/user_def_err_pol.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/user_def_err_pol.html index 5f0afa3a77..b1cac051cb 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/user_def_err_pol.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/user_def_err_pol.html @@ -84,7 +84,8 @@ <span class="keyword">return</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">quiet_NaN</span><span class="special">();</span> <span class="special">}</span> <span class="special">}</span> <span class="comment">// namespace policies</span> -<span class="special">}}</span> <span class="comment">// namespace boost{ namespace math</span></pre> +<span class="special">}}</span> <span class="comment">// namespace boost{ namespace math</span> +</pre> <p> </p> <p> @@ -104,7 +105,8 @@ <span class="identifier">BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS</span><span class="special">(</span><span class="identifier">user_error_policy</span><span class="special">)</span> -<span class="special">}</span> <span class="comment">// close unnamed namespace</span></pre> +<span class="special">}</span> <span class="comment">// close unnamed namespace</span> +</pre> <p> </p> <p> @@ -136,7 +138,8 @@ <span class="special"><<</span> <span class="identifier">erf_inv</span><span class="special">(-</span><span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Result of tgamma(-10) is: "</span> <span class="special"><<</span> <span class="identifier">tgamma</span><span class="special">(-</span><span class="number">10</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">endl</span><span class="special">;</span> -<span class="special">}</span></pre> +<span class="special">}</span> +</pre> <p> </p> <p> @@ -196,7 +199,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">special_functions</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></pre> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">special_functions</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> <p> </p> <p> @@ -211,7 +215,8 @@ <span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">user_domain_error</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">function</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">message</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> <span class="identifier">val</span><span class="special">)</span> -<span class="special">{</span></pre> +<span class="special">{</span> +</pre> <p> </p> <p> @@ -223,7 +228,8 @@ <pre class="programlisting"><span class="keyword">if</span><span class="special">(</span><span class="identifier">function</span> <span class="special">==</span> <span class="number">0</span><span class="special">)</span> <span class="identifier">function</span> <span class="special">=</span> <span class="string">"Unknown function with arguments of type %1%"</span><span class="special">;</span> <span class="keyword">if</span><span class="special">(</span><span class="identifier">message</span> <span class="special">==</span> <span class="number">0</span><span class="special">)</span> - <span class="identifier">message</span> <span class="special">=</span> <span class="string">"Cause unknown with bad argument %1%"</span><span class="special">;</span></pre> + <span class="identifier">message</span> <span class="special">=</span> <span class="string">"Cause unknown with bad argument %1%"</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -233,7 +239,8 @@ <p> </p> <pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">msg</span><span class="special">(</span><span class="string">"Error in function "</span><span class="special">);</span> -<span class="identifier">msg</span> <span class="special">+=</span> <span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">format</span><span class="special">(</span><span class="identifier">function</span><span class="special">)</span> <span class="special">%</span> <span class="keyword">typeid</span><span class="special">(</span><span class="identifier">T</span><span class="special">).</span><span class="identifier">name</span><span class="special">()).</span><span class="identifier">str</span><span class="special">();</span></pre> +<span class="identifier">msg</span> <span class="special">+=</span> <span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">format</span><span class="special">(</span><span class="identifier">function</span><span class="special">)</span> <span class="special">%</span> <span class="keyword">typeid</span><span class="special">(</span><span class="identifier">T</span><span class="special">).</span><span class="identifier">name</span><span class="special">()).</span><span class="identifier">str</span><span class="special">();</span> +</pre> <p> </p> <p> @@ -245,7 +252,8 @@ <pre class="programlisting"><span class="identifier">msg</span> <span class="special">+=</span> <span class="string">": \n"</span><span class="special">;</span> <span class="keyword">int</span> <span class="identifier">prec</span> <span class="special">=</span> <span class="number">2</span> <span class="special">+</span> <span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">digits</span> <span class="special">*</span> <span class="number">30103UL</span><span class="special">)</span> <span class="special">/</span> <span class="number">100000UL</span><span class="special">;</span> <span class="comment">// int prec = std::numeric_limits<T>::max_digits10; // For C++0X Standard Library</span> -<span class="identifier">msg</span> <span class="special">+=</span> <span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">format</span><span class="special">(</span><span class="identifier">message</span><span class="special">)</span> <span class="special">%</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">io</span><span class="special">::</span><span class="identifier">group</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">setprecision</span><span class="special">(</span><span class="identifier">prec</span><span class="special">),</span> <span class="identifier">val</span><span class="special">)).</span><span class="identifier">str</span><span class="special">();</span></pre> +<span class="identifier">msg</span> <span class="special">+=</span> <span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">format</span><span class="special">(</span><span class="identifier">message</span><span class="special">)</span> <span class="special">%</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">io</span><span class="special">::</span><span class="identifier">group</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">setprecision</span><span class="special">(</span><span class="identifier">prec</span><span class="special">),</span> <span class="identifier">val</span><span class="special">)).</span><span class="identifier">str</span><span class="special">();</span> +</pre> <p> </p> <p> @@ -254,7 +262,8 @@ </p> <p> </p> -<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">cerr</span> <span class="special"><<</span> <span class="identifier">msg</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span></pre> +<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">cerr</span> <span class="special"><<</span> <span class="identifier">msg</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> +</pre> <p> </p> <p> @@ -264,7 +273,8 @@ <p> </p> <pre class="programlisting"> <span class="keyword">return</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">quiet_NaN</span><span class="special">();</span> -<span class="special">}</span></pre> +<span class="special">}</span> +</pre> <p> </p> <p> @@ -277,7 +287,8 @@ <span class="identifier">T</span> <span class="identifier">user_pole_error</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">function</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">message</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&</span> <span class="identifier">val</span><span class="special">)</span> <span class="special">{</span> <span class="keyword">return</span> <span class="identifier">user_domain_error</span><span class="special">(</span><span class="identifier">function</span><span class="special">,</span> <span class="identifier">message</span><span class="special">,</span> <span class="identifier">val</span><span class="special">);</span> -<span class="special">}</span></pre> +<span class="special">}</span> +</pre> <p> </p> <p> @@ -304,7 +315,8 @@ <span class="comment">// Value passed to the function is an infinity, just return it:</span> <span class="keyword">return</span> <span class="identifier">val</span><span class="special">;</span> -<span class="special">}</span></pre> +<span class="special">}</span> +</pre> <p> </p> <p> @@ -330,7 +342,8 @@ <span class="comment">// Value passed to the function is zero, just return it:</span> <span class="keyword">return</span> <span class="identifier">val</span><span class="special">;</span> -<span class="special">}</span></pre> +<span class="special">}</span> +</pre> <p> </p> <p> @@ -356,7 +369,8 @@ <span class="comment">// Value passed to the function is denormalised, just return it:</span> <span class="keyword">return</span> <span class="identifier">val</span><span class="special">;</span> -<span class="special">}</span></pre> +<span class="special">}</span> +</pre> <p> </p> <p> @@ -392,7 +406,8 @@ <span class="special">}</span> <span class="special">}</span> <span class="comment">// policies</span> -<span class="special">}}</span> <span class="comment">// boost::math</span></pre> +<span class="special">}}</span> <span class="comment">// boost::math</span> +</pre> <p> </p> <p> @@ -417,7 +432,8 @@ <span class="identifier">BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS</span><span class="special">(</span><span class="identifier">user_error_policy</span><span class="special">)</span> -<span class="special">}</span> <span class="comment">// unnamed namespace</span></pre> +<span class="special">}</span> <span class="comment">// unnamed namespace</span> +</pre> <p> </p> <p> @@ -460,7 +476,8 @@ <span class="comment">// Unfortunately we can't predicably raise a denormalised</span> <span class="comment">// result, nor can we raise an evaluation error in this example</span> <span class="comment">// since these should never really occur!</span> -<span class="special">}</span> <span class="comment">// int main()</span></pre> +<span class="special">}</span> <span class="comment">// int main()</span> +</pre> <p> </p> <p> @@ -500,7 +517,7 @@ Result of tgamma(-190.5) is: 0 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/what_is_a_policy.html b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/what_is_a_policy.html index 1241bbea15..b211664e10 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/what_is_a_policy.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/policy/pol_tutorial/what_is_a_policy.html @@ -73,7 +73,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special.html index 4f4f7f9b06..e31d061bea 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special.html @@ -90,6 +90,13 @@ <dt><span class="section"><a href="special/bessel/sph_bessel.html">Spherical Bessel Functions of the First and Second Kinds</a></span></dt> </dl></dd> +<dt><span class="section"><a href="special/hankel.html">Hankel Functions</a></span></dt> +<dd><dl> +<dt><span class="section"><a href="special/hankel/cyl_hankel.html">Cyclic Hankel + Functions</a></span></dt> +<dt><span class="section"><a href="special/hankel/sph_hankel.html">Spherical Hankel + Functions</a></span></dt> +</dl></dd> <dt><span class="section"><a href="special/ellint.html">Elliptic Integrals</a></span></dt> <dd><dl> <dt><span class="section"><a href="special/ellint/ellint_intro.html">Elliptic @@ -140,12 +147,13 @@ <dt><span class="section"><a href="special/inv_hyper/asinh.html">asinh</a></span></dt> <dt><span class="section"><a href="special/inv_hyper/atanh.html">atanh</a></span></dt> </dl></dd> +<dt><span class="section"><a href="special/owens_t.html">Owen's T function</a></span></dt> </dl></div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel.html index fd978d390d..1e92928adc 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel.html @@ -40,7 +40,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/bessel.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/bessel.html index 32742e7314..fc23e89f17 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/bessel.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/bessel.html @@ -681,7 +681,7 @@ are also computed by recursions (involving gamma functions), but <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/bessel_over.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/bessel_over.html index 2cd6a5560f..5ead6c678a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/bessel_over.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/bessel_over.html @@ -199,7 +199,7 @@ is also known as the <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/mbessel.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/mbessel.html index 71227de8d1..5d6adc8a12 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/mbessel.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/mbessel.html @@ -472,7 +472,7 @@ are also computed by recursions (involving gamma functions), but <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/sph_bessel.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/sph_bessel.html index 9464c277c0..8bd007accd 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/sph_bessel.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/sph_bessel.html @@ -7,7 +7,7 @@ <link rel="home" href="../../../index.html" title="Math Toolkit"> <link rel="up" href="../bessel.html" title="Bessel Functions"> <link rel="prev" href="mbessel.html" title="Modified Bessel Functions of the First and Second Kinds"> -<link rel="next" href="../ellint.html" title="Elliptic Integrals"> +<link rel="next" href="../hankel.html" title="Hankel Functions"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> @@ -20,7 +20,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="mbessel.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../bessel.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../ellint.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="mbessel.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../bessel.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../hankel.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_special_bessel_sph_bessel"> <div class="titlepage"><div><div><h4 class="title"> @@ -142,7 +142,7 @@ for small <span class="emphasis"><em>x</em></span>: <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -150,7 +150,7 @@ for small <span class="emphasis"><em>x</em></span>: </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="mbessel.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../bessel.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../ellint.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="mbessel.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../bessel.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../hankel.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint.html index 6ff012c1fc..f4760ebf66 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint.html @@ -6,7 +6,7 @@ <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../index.html" title="Math Toolkit"> <link rel="up" href="../special.html" title="Special Functions"> -<link rel="prev" href="bessel/sph_bessel.html" title="Spherical Bessel Functions of the First and Second Kinds"> +<link rel="prev" href="hankel/sph_hankel.html" title="Spherical Hankel Functions"> <link rel="next" href="ellint/ellint_intro.html" title="Elliptic Integral Overview"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> @@ -20,7 +20,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="bessel/sph_bessel.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../special.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="ellint/ellint_intro.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="hankel/sph_hankel.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../special.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="ellint/ellint_intro.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_special_ellint"> <div class="titlepage"><div><div><h3 class="title"> @@ -42,7 +42,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -50,7 +50,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="bessel/sph_bessel.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../special.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="ellint/ellint_intro.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="hankel/sph_hankel.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../special.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="ellint/ellint_intro.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_1.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_1.html index 18426706a9..c096ca02e2 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_1.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_1.html @@ -254,7 +254,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_2.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_2.html index bafbe2b12d..e124a8fc57 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_2.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_2.html @@ -254,7 +254,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_3.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_3.html index 53bdd07adc..6b6e33dcc7 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_3.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_3.html @@ -308,7 +308,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_carlson.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_carlson.html index f69f4f8d9b..dbc8d5ad3c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_carlson.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_carlson.html @@ -428,7 +428,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_intro.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_intro.html index fb1c94a351..b65ccd86a8 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_intro.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/ellint/ellint_intro.html @@ -394,7 +394,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint.html index ab9718c875..7297239be2 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint.html @@ -36,7 +36,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint/expint_i.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint/expint_i.html index 4e1a18f261..79ad1377a1 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint/expint_i.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint/expint_i.html @@ -287,7 +287,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint/expint_n.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint/expint_n.html index dd94895f80..bf87a9991b 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint/expint_n.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/expint/expint_n.html @@ -282,7 +282,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials.html index 0734b3f3aa..976b1c5b05 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials.html @@ -42,7 +42,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_binomial.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_binomial.html index b364dc8b4a..c525b11dbb 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_binomial.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_binomial.html @@ -133,7 +133,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_double_factorial.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_double_factorial.html index ddd30492a4..779003b067 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_double_factorial.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_double_factorial.html @@ -142,7 +142,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_factorial.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_factorial.html index 279978ce93..d4731e1408 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_factorial.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_factorial.html @@ -185,7 +185,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_falling_factorial.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_falling_factorial.html index 09c7080474..3dcb4d48af 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_falling_factorial.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_falling_factorial.html @@ -98,7 +98,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_rising_factorial.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_rising_factorial.html index c8fed1cc6b..809abcd4dc 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_rising_factorial.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/factorials/sf_rising_factorial.html @@ -102,7 +102,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/hankel.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/hankel.html new file mode 100644 index 0000000000..c37dc139a7 --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/hankel.html @@ -0,0 +1,50 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Hankel Functions</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Math Toolkit"> +<link rel="up" href="../special.html" title="Special Functions"> +<link rel="prev" href="bessel/sph_bessel.html" title="Spherical Bessel Functions of the First and Second Kinds"> +<link rel="next" href="hankel/cyl_hankel.html" title="Cyclic Hankel Functions"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="bessel/sph_bessel.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../special.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="hankel/cyl_hankel.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_special_hankel"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="math_toolkit.special.hankel"></a><a class="link" href="hankel.html" title="Hankel Functions">Hankel Functions</a> +</h3></div></div></div> +<div class="toc"><dl> +<dt><span class="section"><a href="hankel/cyl_hankel.html">Cyclic Hankel + Functions</a></span></dt> +<dt><span class="section"><a href="hankel/sph_hankel.html">Spherical Hankel + Functions</a></span></dt> +</dl></div> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="bessel/sph_bessel.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../special.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="hankel/cyl_hankel.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/hankel/cyl_hankel.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/hankel/cyl_hankel.html new file mode 100644 index 0000000000..b4e890ea80 --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/hankel/cyl_hankel.html @@ -0,0 +1,161 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Cyclic Hankel Functions</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Math Toolkit"> +<link rel="up" href="../hankel.html" title="Hankel Functions"> +<link rel="prev" href="../hankel.html" title="Hankel Functions"> +<link rel="next" href="sph_hankel.html" title="Spherical Hankel Functions"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="../hankel.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../hankel.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="sph_hankel.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_special_hankel_cyl_hankel"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="math_toolkit.special.hankel.cyl_hankel"></a><a class="link" href="cyl_hankel.html" title="Cyclic Hankel Functions">Cyclic Hankel + Functions</a> +</h4></div></div></div> +<h5> +<a name="math_toolkit.special.hankel.cyl_hankel.h0"></a> + <span><a name="math_toolkit.special.hankel.cyl_hankel.synopsis"></a></span><a class="link" href="cyl_hankel.html#math_toolkit.special.hankel.cyl_hankel.synopsis">Synopsis</a> + </h5> +<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T2</span><span class="special">></span> +<span class="identifier">std</span><span class="special">::</span><span class="identifier">complex</span><span class="special"><</span><a class="link" href="../../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>calculated-result-type</em></span></a><span class="special">></span> <span class="identifier">cyl_hankel_1</span><span class="special">(</span><span class="identifier">T1</span> <span class="identifier">v</span><span class="special">,</span> <span class="identifier">T2</span> <span class="identifier">x</span><span class="special">);</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T2</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="../../policy.html" title="Policies">Policy</a><span class="special">></span> +<span class="identifier">std</span><span class="special">::</span><span class="identifier">complex</span><span class="special"><</span><a class="link" href="../../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>calculated-result-type</em></span></a><span class="special">></span> <span class="identifier">cyl_hankel_1</span><span class="special">(</span><span class="identifier">T1</span> <span class="identifier">v</span><span class="special">,</span> <span class="identifier">T2</span> <span class="identifier">x</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../../policy.html" title="Policies">Policy</a><span class="special">&);</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T2</span><span class="special">></span> +<span class="identifier">std</span><span class="special">::</span><span class="identifier">complex</span><span class="special"><</span><a class="link" href="../../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>calculated-result-type</em></span></a><span class="special">></span> <span class="identifier">cyl_hankel_2</span><span class="special">(</span><span class="identifier">T1</span> <span class="identifier">v</span><span class="special">,</span> <span class="identifier">T2</span> <span class="identifier">x</span><span class="special">);</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T2</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="../../policy.html" title="Policies">Policy</a><span class="special">></span> +<span class="identifier">std</span><span class="special">::</span><span class="identifier">complex</span><span class="special"><</span><a class="link" href="../../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>calculated-result-type</em></span></a><span class="special">></span> <span class="identifier">cyl_hankel_2</span><span class="special">(</span><span class="identifier">T1</span> <span class="identifier">v</span><span class="special">,</span> <span class="identifier">T2</span> <span class="identifier">x</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../../policy.html" title="Policies">Policy</a><span class="special">&);</span> +</pre> +<h5> +<a name="math_toolkit.special.hankel.cyl_hankel.h1"></a> + <span><a name="math_toolkit.special.hankel.cyl_hankel.description"></a></span><a class="link" href="cyl_hankel.html#math_toolkit.special.hankel.cyl_hankel.description">Description</a> + </h5> +<p> + The functions <a class="link" href="cyl_hankel.html" title="Cyclic Hankel Functions">cyl_hankel_1</a> + and <a class="link" href="cyl_hankel.html" title="Cyclic Hankel Functions">cyl_hankel_2</a> + return the result of the <a href="http://dlmf.nist.gov/10.2#P3" target="_top">Hankel + functions</a> of the first and second kind respectively: + </p> +<div class="blockquote"><blockquote class="blockquote"><p> + <span class="emphasis"><em>cyl_hankel_1(v, x) = H<sub>v</sub><sup>(1)</sup>(x) = J<sub>v</sub>(x) + i Y<sub>v</sub>(x)</em></span> + </p></blockquote></div> +<div class="blockquote"><blockquote class="blockquote"><p> + <span class="emphasis"><em>cyl_hankel_2(v, x) = H<sub>v</sub><sup>(2)</sup>(x) = J<sub>v</sub>(x) - i Y<sub>v</sub>(x)</em></span> + </p></blockquote></div> +<p> + where: + </p> +<p> + <span class="emphasis"><em>J<sub>v</sub>(x)</em></span> is the Bessel function of the first kind, and + <span class="emphasis"><em>Y<sub>v</sub>(x)</em></span> is the Bessel function of the second kind. + </p> +<p> + The return type of these functions is computed using the <a class="link" href="../../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>result + type calculation rules</em></span></a> when T1 and T2 are different types. + The functions are also optimised for the relatively common case that T1 + is an integer. + </p> +<p> + The final <a class="link" href="../../policy.html" title="Policies">Policy</a> 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 <a class="link" href="../../policy.html" title="Policies">policy documentation for more details</a>. + </p> +<p> + 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 <code class="computeroutput"><span class="keyword">float</span></code>, <code class="computeroutput"><span class="keyword">double</span></code> and <code class="computeroutput"><span class="keyword">long</span> + <span class="keyword">double</span></code>. The functions have also + been extended to operate over the whole range of <span class="emphasis"><em>v</em></span> + and <span class="emphasis"><em>x</em></span> (unlike <a class="link" href="../bessel/bessel.html" title="Bessel Functions of the First and Second Kinds">cyl_bessel_j</a> + and <a class="link" href="../bessel/bessel.html" title="Bessel Functions of the First and Second Kinds">cyl_neumann</a>). + </p> +<h5> +<a name="math_toolkit.special.hankel.cyl_hankel.h2"></a> + <span><a name="math_toolkit.special.hankel.cyl_hankel.performance"></a></span><a class="link" href="cyl_hankel.html#math_toolkit.special.hankel.cyl_hankel.performance">Performance</a> + </h5> +<p> + 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. + </p> +<h5> +<a name="math_toolkit.special.hankel.cyl_hankel.h3"></a> + <span><a name="math_toolkit.special.hankel.cyl_hankel.testing"></a></span><a class="link" href="cyl_hankel.html#math_toolkit.special.hankel.cyl_hankel.testing">Testing</a> + </h5> +<p> + 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. + </p> +<h5> +<a name="math_toolkit.special.hankel.cyl_hankel.h4"></a> + <span><a name="math_toolkit.special.hankel.cyl_hankel.accuracy"></a></span><a class="link" href="cyl_hankel.html#math_toolkit.special.hankel.cyl_hankel.accuracy">Accuracy</a> + </h5> +<p> + Refer to <a class="link" href="../bessel/bessel.html" title="Bessel Functions of the First and Second Kinds">cyl_bessel_j</a> + and <a class="link" href="../bessel/bessel.html" title="Bessel Functions of the First and Second Kinds">cyl_neumann</a>. + </p> +<h5> +<a name="math_toolkit.special.hankel.cyl_hankel.h5"></a> + <span><a name="math_toolkit.special.hankel.cyl_hankel.implementation"></a></span><a class="link" href="cyl_hankel.html#math_toolkit.special.hankel.cyl_hankel.implementation">Implementation</a> + </h5> +<p> + For <span class="emphasis"><em>x < 0</em></span> the following reflection formulae are + used: + </p> +<p> + <a href="http://functions.wolfram.com/Bessel-TypeFunctions/BesselJ/16/01/01/" target="_top"> + <span class="inlinemediaobject"><img src="../../../../equations/hankel1.png"></span></a> + </p> +<p> + <a href="http://functions.wolfram.com/Bessel-TypeFunctions/BesselY/16/01/01/" target="_top"> + <span class="inlinemediaobject"><img src="../../../../equations/hankel2.png"></span></a> + </p> +<p> + <a href="http://functions.wolfram.com/Bessel-TypeFunctions/BesselY/16/01/01/" target="_top"> + <span class="inlinemediaobject"><img src="../../../../equations/hankel3.png"></span></a> + </p> +<p> + Otherwise the implementation is trivially in terms of the Bessel J and + Y functions. + </p> +<p> + 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 <span class="emphasis"><em>v</em></span> + is a small positive integer, in which case the usual Bessel function routines + for integer order are used. + </p> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="../hankel.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../hankel.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="sph_hankel.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/hankel/sph_hankel.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/hankel/sph_hankel.html new file mode 100644 index 0000000000..b7779eddf2 --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/hankel/sph_hankel.html @@ -0,0 +1,122 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Spherical Hankel Functions</title> +<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../../index.html" title="Math Toolkit"> +<link rel="up" href="../hankel.html" title="Hankel Functions"> +<link rel="prev" href="cyl_hankel.html" title="Cyclic Hankel Functions"> +<link rel="next" href="../ellint.html" title="Elliptic Integrals"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="cyl_hankel.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../hankel.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../ellint.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_special_hankel_sph_hankel"> +<div class="titlepage"><div><div><h4 class="title"> +<a name="math_toolkit.special.hankel.sph_hankel"></a><a class="link" href="sph_hankel.html" title="Spherical Hankel Functions">Spherical Hankel + Functions</a> +</h4></div></div></div> +<h5> +<a name="math_toolkit.special.hankel.sph_hankel.h0"></a> + <span><a name="math_toolkit.special.hankel.sph_hankel.synopsis"></a></span><a class="link" href="sph_hankel.html#math_toolkit.special.hankel.sph_hankel.synopsis">Synopsis</a> + </h5> +<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T2</span><span class="special">></span> +<span class="identifier">std</span><span class="special">::</span><span class="identifier">complex</span><span class="special"><</span><a class="link" href="../../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>calculated-result-type</em></span></a><span class="special">></span> <span class="identifier">sph_hankel_1</span><span class="special">(</span><span class="identifier">T1</span> <span class="identifier">v</span><span class="special">,</span> <span class="identifier">T2</span> <span class="identifier">x</span><span class="special">);</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T2</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="../../policy.html" title="Policies">Policy</a><span class="special">></span> +<span class="identifier">std</span><span class="special">::</span><span class="identifier">complex</span><span class="special"><</span><a class="link" href="../../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>calculated-result-type</em></span></a><span class="special">></span> <span class="identifier">sph_hankel_1</span><span class="special">(</span><span class="identifier">T1</span> <span class="identifier">v</span><span class="special">,</span> <span class="identifier">T2</span> <span class="identifier">x</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../../policy.html" title="Policies">Policy</a><span class="special">&);</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T2</span><span class="special">></span> +<span class="identifier">std</span><span class="special">::</span><span class="identifier">complex</span><span class="special"><</span><a class="link" href="../../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>calculated-result-type</em></span></a><span class="special">></span> <span class="identifier">sph_hankel_2</span><span class="special">(</span><span class="identifier">T1</span> <span class="identifier">v</span><span class="special">,</span> <span class="identifier">T2</span> <span class="identifier">x</span><span class="special">);</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T2</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="../../policy.html" title="Policies">Policy</a><span class="special">></span> +<span class="identifier">std</span><span class="special">::</span><span class="identifier">complex</span><span class="special"><</span><a class="link" href="../../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>calculated-result-type</em></span></a><span class="special">></span> <span class="identifier">sph_hankel_2</span><span class="special">(</span><span class="identifier">T1</span> <span class="identifier">v</span><span class="special">,</span> <span class="identifier">T2</span> <span class="identifier">x</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../../policy.html" title="Policies">Policy</a><span class="special">&);</span> +</pre> +<h5> +<a name="math_toolkit.special.hankel.sph_hankel.h1"></a> + <span><a name="math_toolkit.special.hankel.sph_hankel.description"></a></span><a class="link" href="sph_hankel.html#math_toolkit.special.hankel.sph_hankel.description">Description</a> + </h5> +<p> + The functions <a class="link" href="sph_hankel.html" title="Spherical Hankel Functions">sph_hankel_1</a> + and <a class="link" href="sph_hankel.html" title="Spherical Hankel Functions">sph_hankel_2</a> + return the result of the <a href="http://dlmf.nist.gov/10.47#P1" target="_top">spherical + Hankel functions</a> of the first and second kind respectively: + </p> +<p> + <span class="inlinemediaobject"><img src="../../../../equations/hankel4.png"></span> + </p> +<p> + <span class="inlinemediaobject"><img src="../../../../equations/hankel5.png"></span> + </p> +<p> + The return type of these functions is computed using the <a class="link" href="../../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>result + type calculation rules</em></span></a> when T1 and T2 are different types. + The functions are also optimised for the relatively common case that T1 + is an integer. + </p> +<p> + The final <a class="link" href="../../policy.html" title="Policies">Policy</a> 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 <a class="link" href="../../policy.html" title="Policies">policy documentation for more details</a>. + </p> +<p> + 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 <code class="computeroutput"><span class="keyword">float</span></code>, <code class="computeroutput"><span class="keyword">double</span></code> and <code class="computeroutput"><span class="keyword">long</span> + <span class="keyword">double</span></code>. The functions have also + been extended to operate over the whole range of <span class="emphasis"><em>v</em></span> + and <span class="emphasis"><em>x</em></span> (unlike <a class="link" href="../bessel/bessel.html" title="Bessel Functions of the First and Second Kinds">cyl_bessel_j</a> + and <a class="link" href="../bessel/bessel.html" title="Bessel Functions of the First and Second Kinds">cyl_neumann</a>). + </p> +<h5> +<a name="math_toolkit.special.hankel.sph_hankel.h2"></a> + <span><a name="math_toolkit.special.hankel.sph_hankel.testing"></a></span><a class="link" href="sph_hankel.html#math_toolkit.special.hankel.sph_hankel.testing">Testing</a> + </h5> +<p> + 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. + </p> +<h5> +<a name="math_toolkit.special.hankel.sph_hankel.h3"></a> + <span><a name="math_toolkit.special.hankel.sph_hankel.accuracy"></a></span><a class="link" href="sph_hankel.html#math_toolkit.special.hankel.sph_hankel.accuracy">Accuracy</a> + </h5> +<p> + Refer to <a class="link" href="../bessel/bessel.html" title="Bessel Functions of the First and Second Kinds">cyl_bessel_j</a> + and <a class="link" href="../bessel/bessel.html" title="Bessel Functions of the First and Second Kinds">cyl_neumann</a>. + </p> +<h5> +<a name="math_toolkit.special.hankel.sph_hankel.h4"></a> + <span><a name="math_toolkit.special.hankel.sph_hankel.implementation"></a></span><a class="link" href="sph_hankel.html#math_toolkit.special.hankel.sph_hankel.implementation">Implementation</a> + </h5> +<p> + These functions are trivially implemented in terms of <a class="link" href="cyl_hankel.html" title="Cyclic Hankel Functions">cyl_hankel_1</a> + and <a class="link" href="cyl_hankel.html" title="Cyclic Hankel Functions">cyl_hankel_2</a>. + </p> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="cyl_hankel.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../hankel.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../ellint.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper.html index 2214015229..af3e29f019 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper.html @@ -37,7 +37,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/acosh.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/acosh.html index 6b883fafd4..2140a9e046 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/acosh.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/acosh.html @@ -117,7 +117,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/asinh.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/asinh.html index e247fba0dd..a1d386ffc4 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/asinh.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/asinh.html @@ -112,7 +112,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/atanh.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/atanh.html index 8a614a30f5..6df001bed1 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/atanh.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/atanh.html @@ -7,7 +7,7 @@ <link rel="home" href="../../../index.html" title="Math Toolkit"> <link rel="up" href="../inv_hyper.html" title="Inverse Hyperbolic Functions"> <link rel="prev" href="asinh.html" title="asinh"> -<link rel="next" href="../../utils.html" title="Floating Point Utilities"> +<link rel="next" href="../owens_t.html" title="Owen's T function"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> @@ -20,7 +20,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="asinh.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../inv_hyper.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../utils.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="asinh.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../inv_hyper.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../owens_t.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_special_inv_hyper_atanh"> <div class="titlepage"><div><div><h4 class="title"> @@ -122,7 +122,7 @@ denoting <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -130,7 +130,7 @@ denoting </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="asinh.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../inv_hyper.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../utils.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="asinh.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../inv_hyper.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../owens_t.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/inv_hyper_over.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/inv_hyper_over.html index 1d6b7dc431..d6579df647 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/inv_hyper_over.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/inv_hyper/inv_hyper_over.html @@ -100,7 +100,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/owens_t.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/owens_t.html new file mode 100644 index 0000000000..a80c5febaf --- /dev/null +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/owens_t.html @@ -0,0 +1,230 @@ +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> +<title>Owen's T function</title> +<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> +<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> +<link rel="home" href="../../index.html" title="Math Toolkit"> +<link rel="up" href="../special.html" title="Special Functions"> +<link rel="prev" href="inv_hyper/atanh.html" title="atanh"> +<link rel="next" href="../utils.html" title="Floating Point Utilities"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<table cellpadding="2" width="100%"><tr> +<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> +<td align="center"><a href="../../../../../../../index.html">Home</a></td> +<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> +<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> +<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> +<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="inv_hyper/atanh.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../special.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../utils.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +<div class="section math_toolkit_special_owens_t"> +<div class="titlepage"><div><div><h3 class="title"> +<a name="math_toolkit.special.owens_t"></a><a class="link" href="owens_t.html" title="Owen's T function">Owen's T function</a> +</h3></div></div></div> +<h5> +<a name="math_toolkit.special.owens_t.h0"></a> + <span><a name="math_toolkit.special.owens_t.synopsis"></a></span><a class="link" href="owens_t.html#math_toolkit.special.owens_t.synopsis">Synopsis</a> + </h5> +<p> +</p> +<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">special_functions</span><span class="special">/</span><span class="identifier">owens_t</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> +</pre> +<p> + </p> +<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">math</span><span class="special">{</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> +<a class="link" href="../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>calculated-result-type</em></span></a> <span class="identifier">owens_t</span><span class="special">(</span><span class="identifier">T</span> <span class="identifier">h</span><span class="special">,</span> <span class="identifier">T</span> <span class="identifier">a</span><span class="special">);</span> + +<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">class</span> <a class="link" href="../policy.html" title="Policies">Policy</a><span class="special">></span> +<a class="link" href="../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>calculated-result-type</em></span></a> <span class="identifier">owens_t</span><span class="special">(</span><span class="identifier">T</span> <span class="identifier">h</span><span class="special">,</span> <span class="identifier">T</span> <span class="identifier">a</span><span class="special">,</span> <span class="keyword">const</span> <a class="link" href="../policy.html" title="Policies">Policy</a><span class="special">&);</span> + +<span class="special">}}</span> <span class="comment">// namespaces</span> +</pre> +<h5> +<a name="math_toolkit.special.owens_t.h1"></a> + <span><a name="math_toolkit.special.owens_t.description"></a></span><a class="link" href="owens_t.html#math_toolkit.special.owens_t.description">Description</a> + </h5> +<p> + Returns the <a href="http://en.wikipedia.org/wiki/Owen%27s_T_function" target="_top">Owens_t + function</a> of <span class="emphasis"><em>h</em></span> and <span class="emphasis"><em>a</em></span>. + </p> +<p> + The final <a class="link" href="../policy.html" title="Policies">Policy</a> 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 <a class="link" href="../policy.html" title="Policies">policy + documentation for more details</a>. + </p> +<p> +     <span class="inlinemediaobject"><img src="../../../equations/owens_t.png"></span> + </p> +<p> + <span class="inlinemediaobject"><img src="../../../graphs/plot_owens_t.png" alt="plot_owens_t"></span> + </p> +<p> + The function <code class="computeroutput"><span class="identifier">owens_t</span><span class="special">(</span><span class="identifier">h</span><span class="special">,</span> <span class="identifier">a</span><span class="special">)</span></code> gives the probability of the event <span class="emphasis"><em>(X + > h and 0 < Y < a * X)</em></span>, where <span class="emphasis"><em>X</em></span> + and <span class="emphasis"><em>Y</em></span> are independent standard normal random variables. + </p> +<p> + 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 + <span class="emphasis"><em>y = ax</em></span> and <span class="emphasis"><em>y = 0</em></span> and to the right + of <span class="emphasis"><em>x = h</em></span>. + </p> +<p> + That is the area shaded in the figure below (Owens 1956). + </p> +<p> + <span class="inlinemediaobject"><img src="../../../graphs/owens_integration_area.png" align="middle"></span> + </p> +<p> + and is also illustrated by a 3D plot. + </p> +<p> + <span class="inlinemediaobject"><img src="../../../graphs/plot_owens_3d_xyp.png" alt="plot_owens_3d_xyp"></span> + </p> +<p> + This function is used in the computation of the <a class="link" href="../dist/dist_ref/dists/skew_normal_dist.html" title="Skew Normal Distribution">Skew + Normal Distribution</a>. It is also used in the computation of bivariate + and multivariate normal distribution probabilities. The return type of this + function is computed using the <a class="link" href="../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>result + type calculation rules</em></span></a>: the result is of type <code class="computeroutput"><span class="keyword">double</span></code> when T is an integer type, and type + T otherwise. + </p> +<p> + Owen's original paper (page 1077) provides some additional corner cases. + </p> +<div class="blockquote"><blockquote class="blockquote"><p> + <span class="emphasis"><em>T(h, 0) = 0</em></span> + </p></blockquote></div> +<div class="blockquote"><blockquote class="blockquote"><p> + <span class="emphasis"><em>T(0, a) = ½π arctan(a)</em></span> + </p></blockquote></div> +<div class="blockquote"><blockquote class="blockquote"><p> + <span class="emphasis"><em>T(h, 1) = ½ G(h) [1 - G(h)]</em></span> + </p></blockquote></div> +<div class="blockquote"><blockquote class="blockquote"><p> + <span class="emphasis"><em>T(h, ∞) = G(|h|)</em></span> + </p></blockquote></div> +<p> + where G(h) is the univariate normal with zero mean and unit variance integral + from -∞ to h. + </p> +<h5> +<a name="math_toolkit.special.owens_t.h2"></a> + <span><a name="math_toolkit.special.owens_t.accuracy"></a></span><a class="link" href="owens_t.html#math_toolkit.special.owens_t.accuracy">Accuracy</a> + </h5> +<p> + Over the built-in types and range tested, errors are less than 10 * std::numeric_limits<RealType>::epsilon(). + </p> +<h5> +<a name="math_toolkit.special.owens_t.h3"></a> + <span><a name="math_toolkit.special.owens_t.testing"></a></span><a class="link" href="owens_t.html#math_toolkit.special.owens_t.testing">Testing</a> + </h5> +<p> + Test data was generated by Patefield and Tandy algorithms T1 and T4, and + also the suggested reference routine T7. + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + T1 was rejected if the result was too small compared to <code class="computeroutput"><span class="identifier">atan</span><span class="special">(</span><span class="identifier">a</span><span class="special">)</span></code> + (ie cancellation), + </li> +<li class="listitem"> + T4 was rejected if there was no convergence, + </li> +<li class="listitem"> + Both were rejected if they didn't agree. + </li> +</ul></div> +<p> + Over the built-in types and range tested, errors are less than 10 std::numeric_limits<RealType>::epsilon(). + </p> +<p> + However, that there was a whole domain (large <span class="emphasis"><em>h</em></span>, small + <span class="emphasis"><em>a</em></span>) where it was not possible to generate any reliable + test values (all the methods got rejected for one reason or another). + </p> +<p> + There are also two sets of sanity tests: spot values are computed using + <a href="http://www.wolfram.com/products/mathematica/index.html" target="_top">Wolfram + Mathematica</a> and <a href="http://www.r-project.org/" target="_top">The R Project + for Statistical Computing</a>. + </p> +<h5> +<a name="math_toolkit.special.owens_t.h4"></a> + <span><a name="math_toolkit.special.owens_t.implementation"></a></span><a class="link" href="owens_t.html#math_toolkit.special.owens_t.implementation">Implementation</a> + </h5> +<p> + The function was proposed and evaluated by <a href="http://projecteuclid.org/DPubS?service=UI&version=1.0&verb=Display&handle=euclid.aoms/1177728074" target="_top">Donald. + B. Owen, Tables for computing bivariate normal probabilities, Ann. Math. + Statist., 27, 1075-1090 (1956)</a>. + </p> +<p> + 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. + </p> +<p> + The Patefield-Tandy algorithm provides six methods of evalualution (T1 to + T6); the best method is selected according to the values of <span class="emphasis"><em>a</em></span> + and <span class="emphasis"><em>h</em></span>. See the original paper and the source in <a href="../../../../../../../boost/math/special_functions/owens_t.hpp" target="_top">owens_t.hpp</a> + for details. + </p> +<p> + The Patefield-Tandy algorithm is accurate to approximately 20 decimal places, + so for types with greater precision we use: + </p> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + A modified version of T1 which folds the calculation of <span class="emphasis"><em>atan(h)</em></span> + 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 <span class="emphasis"><em>ah < 1</em></span>. + </li> +<li class="listitem"> + A modified version of T2 which is accelerated in the same manner as T1. + This is used for <span class="emphasis"><em>h > 1</em></span>. + </li> +<li class="listitem"> + A version of T4 only when both T1 and T2 have failed to produce an accurate + answer. + </li> +<li class="listitem"> + 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 <span class="emphasis"><em>a</em></span> + is very close to 1 and the precision increases which may cause this to + happen in very exceptional circumstances. + </li> +</ul></div> +<p> + Using the above algorithm and a 100-decimal digit type, results accurate + to 80 decimal places were obtained in the difficult area where <span class="emphasis"><em>a</em></span> + is close to 1, and greater than 95 decimal places elsewhere. + </p> +</div> +<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> +<td align="left"></td> +<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) + </p> +</div></td> +</tr></table> +<hr> +<div class="spirit-nav"> +<a accesskey="p" href="inv_hyper/atanh.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../special.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../utils.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +</div> +</body> +</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers.html index 6a45209361..19307c0125 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers.html @@ -41,7 +41,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/cbrt.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/cbrt.html index e530d2ae69..15be4ffa1d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/cbrt.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/cbrt.html @@ -84,7 +84,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/ct_pow.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/ct_pow.html index 3e1f64d13b..af35730140 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/ct_pow.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/ct_pow.html @@ -250,7 +250,7 @@ improving the implementation. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/expm1.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/expm1.html index 8c0a01bbbe..414973e33a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/expm1.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/expm1.html @@ -93,7 +93,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/hypot.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/hypot.html index ef982a1401..56a162888f 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/hypot.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/hypot.html @@ -74,7 +74,7 @@ in such a <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/log1p.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/log1p.html index 1d6ad4fc7f..3ed0735f8e 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/log1p.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/log1p.html @@ -106,7 +106,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/powm1.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/powm1.html index 904ef5cc0e..04cb2a3440 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/powm1.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/powm1.html @@ -86,7 +86,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/sqrt1pm1.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/sqrt1pm1.html index 53baed1b13..bd73cda147 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/sqrt1pm1.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/powers/sqrt1pm1.html @@ -89,7 +89,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta.html index b8e43dba94..d97dbc9ca1 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta.html @@ -39,7 +39,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/beta_derivative.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/beta_derivative.html index 7358817ef6..4afd714dc8 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/beta_derivative.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/beta_derivative.html @@ -89,7 +89,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/beta_function.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/beta_function.html index f827336c1b..2e6166c58d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/beta_function.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/beta_function.html @@ -314,7 +314,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/ibeta_function.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/ibeta_function.html index 9dfcae7210..d96fb135a1 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/ibeta_function.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/ibeta_function.html @@ -967,7 +967,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/ibeta_inv_function.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/ibeta_inv_function.html index c1f3c9ed09..a0d993c6ea 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/ibeta_inv_function.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_beta/ibeta_inv_function.html @@ -519,7 +519,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf.html index 11a476f2eb..289fa95404 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf.html @@ -35,7 +35,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf/error_function.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf/error_function.html index ac612136b6..906c9b065c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf/error_function.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf/error_function.html @@ -617,7 +617,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf/error_inv.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf/error_inv.html index 5457e06f40..43f849fa3a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf/error_inv.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_erf/error_inv.html @@ -191,7 +191,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma.html index 55271e8d6f..68016cd663 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma.html @@ -43,7 +43,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/digamma.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/digamma.html index 410016ad30..f46620983e 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/digamma.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/digamma.html @@ -374,7 +374,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/gamma_derivatives.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/gamma_derivatives.html index daa5b5eb73..7415251ac9 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/gamma_derivatives.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/gamma_derivatives.html @@ -94,7 +94,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/gamma_ratios.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/gamma_ratios.html index a977340667..04181110e1 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/gamma_ratios.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/gamma_ratios.html @@ -343,7 +343,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/igamma.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/igamma.html index 6a9d40a558..a7f1dbce73 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/igamma.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/igamma.html @@ -1035,7 +1035,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/igamma_inv.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/igamma_inv.html index 113afe3502..d72923af94 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/igamma_inv.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/igamma_inv.html @@ -245,7 +245,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/lgamma.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/lgamma.html index 6b3920ca8f..5786ff3e8e 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/lgamma.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/lgamma.html @@ -467,7 +467,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/tgamma.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/tgamma.html index 7365df9d21..d0c7d6766f 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/tgamma.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_gamma/tgamma.html @@ -454,7 +454,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly.html index 923d7fcb05..7be55ec5c9 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly.html @@ -38,7 +38,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/hermite.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/hermite.html index 023630cc8a..422966d082 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/hermite.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/hermite.html @@ -269,7 +269,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/laguerre.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/laguerre.html index 853a1bdda4..290de0bc9e 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/laguerre.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/laguerre.html @@ -443,7 +443,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/legendre.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/legendre.html index 1419484363..fc14a2831c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/legendre.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/legendre.html @@ -697,7 +697,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/sph_harm.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/sph_harm.html index 63546490de..0d2432d312 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/sph_harm.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sf_poly/sph_harm.html @@ -296,7 +296,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc.html index 15a2801c44..5b4a51d63b 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc.html @@ -37,7 +37,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinc_overview.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinc_overview.html index 857ea2a469..02932e9a69 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinc_overview.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinc_overview.html @@ -67,7 +67,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinc_pi.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinc_pi.html index 1486d6141c..5985d4f96e 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinc_pi.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinc_pi.html @@ -66,7 +66,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinhc_pi.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinhc_pi.html index 9a89b14e06..150c1decdd 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinhc_pi.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/sinc/sinhc_pi.html @@ -70,7 +70,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/zetas.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/zetas.html index eaa3e26e91..f1d7663614 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/zetas.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/zetas.html @@ -31,7 +31,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/special/zetas/zeta.html b/libs/math/doc/sf_and_dist/html/math_toolkit/special/zetas/zeta.html index db21b3fe92..cfd61a2b9a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/special/zetas/zeta.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/special/zetas/zeta.html @@ -299,7 +299,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/status.html b/libs/math/doc/sf_and_dist/html/math_toolkit/status.html index 094456c5b9..9bb9ff0485 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/status.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/status.html @@ -35,7 +35,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/status/compilers.html b/libs/math/doc/sf_and_dist/html/math_toolkit/status/compilers.html deleted file mode 100644 index bb973fe8ed..0000000000 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/status/compilers.html +++ /dev/null @@ -1,639 +0,0 @@ -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> -<title>Compilers</title> -<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> -<meta name="generator" content="DocBook XSL Stylesheets V1.74.0"> -<link rel="home" href="../../index.html" title="Math Toolkit"> -<link rel="up" href="../status.html" title="Library Status"> -<link rel="prev" href="history1.html" title="History and What's New"> -<link rel="next" href="issues.html" title="Known Issues, and Todo List"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table cellpadding="2" width="100%"><tr> -<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> -<td align="center"><a href="../../../../../../../index.html">Home</a></td> -<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> -<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> -<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> -<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> -</tr></table> -<hr> -<div class="spirit-nav"> -<a accesskey="p" href="history1.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../status.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="issues.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> -</div> -<div class="section" lang="en"> -<div class="titlepage"><div><div><h3 class="title"> -<a name="math_toolkit.status.compilers"></a><a class="link" href="compilers.html" title="Compilers"> Compilers</a> -</h3></div></div></div> -<p> - </p> -<p> - 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. - </p> -<p> - </p> -<div class="table"> -<a name="math_toolkit.status.compilers.supported_tested_compilers"></a><p class="title"><b>Table 55. Supported/Tested Compilers</b></p> -<div class="table-contents"><table class="table" summary="Supported/Tested Compilers"> -<colgroup> -<col> -<col> -<col> -<col> -</colgroup> -<thead><tr> -<th> - <p> - Platform - </p> - </th> -<th> - <p> - Compiler - </p> - </th> -<th> - <p> - Has long double support - </p> - </th> -<th> - <p> - Notes - </p> - </th> -</tr></thead> -<tbody> -<tr> -<td> - <p> - Windows - </p> - </td> -<td> - <p> - MSVC 7.1 and later - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - All tests OK. - </p> - <p> - We aim to keep our headers warning free at level 4 with this - compiler. - </p> - </td> -</tr> -<tr> -<td> - <p> - Windows - </p> - </td> -<td> - <p> - Intel 8.1 and later - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - All tests OK. - </p> - <p> - 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. - </p> - </td> -</tr> -<tr> -<td> - <p> - Windows - </p> - </td> -<td> - <p> - GNU Mingw32 C++ - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - All tests OK. - </p> - <p> - We aim to keep our headers warning free with -Wall with this - compiler. - </p> - </td> -</tr> -<tr> -<td> - <p> - Windows - </p> - </td> -<td> - <p> - GNU Cygwin C++ - </p> - </td> -<td> - <p> - No - </p> - </td> -<td> - <p> - All tests OK. - </p> - <p> - We aim to keep our headers warning free with -Wall with this - compiler. - </p> - <p> - Long double support has been disabled because there are no native - long double C std library functions available. - </p> - </td> -</tr> -<tr> -<td> - <p> - Windows - </p> - </td> -<td> - <p> - Borland C++ 5.8.2 (Developer studio 2006) - </p> - </td> -<td> - <p> - No - </p> - </td> -<td> - <p> - We have only partial compatability with this compiler: - </p> - <p> - 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 <code class="computeroutput"><span class="identifier">sqrtl</span></code> - applied to a finite value, can result in an infinite result. - </p> - <p> - Some functions still fail to compile, there are no known workarounds - at present. - </p> - </td> -</tr> -<tr> -<td> - <p> - Linux - </p> - </td> -<td> - <p> - GNU C++ 3.4 and later - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - All tests OK. - </p> - <p> - We aim to keep our headers warning free with -Wall with this - compiler. - </p> - </td> -</tr> -<tr> -<td> - <p> - Linux - </p> - </td> -<td> - <p> - Intel C++ 10.0 and later - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - All tests OK. - </p> - <p> - 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. - </p> - </td> -</tr> -<tr> -<td> - <p> - Linux - </p> - </td> -<td> - <p> - Intel C++ 8.1 and 9.1 - </p> - </td> -<td> - <p> - No - </p> - </td> -<td> - <p> - All tests OK. - </p> - <p> - 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 <a href="../../../../../../../boost/math/tools/config.hpp" target="_top">boost/math/tools/config.hpp</a>. - </p> - <p> - 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. - </p> - </td> -</tr> -<tr> -<td> - <p> - Linux - </p> - </td> -<td> - <p> - QLogic PathScale 3.0 - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - Some tests involving conceptual checks fail to build, otherwise - there appear to be no issues. - </p> - </td> -</tr> -<tr> -<td> - <p> - Linux - </p> - </td> -<td> - <p> - Sun Studio 12 - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - Some tests involving function overload resolution fail to build, - these issues should be rairly encountered in practice. - </p> - </td> -</tr> -<tr> -<td> - <p> - Solaris - </p> - </td> -<td> - <p> - Sun Studio 12 - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - Some tests involving function overload resolution fail to build, - these issues should be rairly encountered in practice. - </p> - </td> -</tr> -<tr> -<td> - <p> - Solaris - </p> - </td> -<td> - <p> - GNU C++ 4.x - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - All tests OK. - </p> - <p> - We aim to keep our headers warning free with -Wall with this - compiler. - </p> - </td> -</tr> -<tr> -<td> - <p> - HP Tru64 - </p> - </td> -<td> - <p> - Compaq C++ 7.1 - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - All tests OK. - </p> - </td> -</tr> -<tr> -<td> - <p> - HP-UX Itanium - </p> - </td> -<td> - <p> - HP aCC 6.x - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - All tests OK. - </p> - <p> - Unfortunately this compiler emits quite a few warnings from libraries - upon which we depend (TR1, Array etc). - </p> - </td> -</tr> -<tr> -<td> - <p> - HP-UX PA-RISC - </p> - </td> -<td> - <p> - GNU C++ 3.4 - </p> - </td> -<td> - <p> - No - </p> - </td> -<td> - <p> - All tests OK. - </p> - </td> -</tr> -<tr> -<td> - <p> - Apple Mac OS X, Intel - </p> - </td> -<td> - <p> - Darwin/GNU C++ 4.x - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - All tests OK. - </p> - </td> -</tr> -<tr> -<td> - <p> - Apple Mac OS X, PowerPC - </p> - </td> -<td> - <p> - Darwin/GNU C++ 4.x - </p> - </td> -<td> - <p> - No - </p> - </td> -<td> - <p> - All tests OK. - </p> - <p> - 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. - </p> - </td> -</tr> -<tr> -<td> - <p> - IMB AIX - </p> - </td> -<td> - <p> - IBM xlc 5.3 - </p> - </td> -<td> - <p> - Yes - </p> - </td> -<td> - <p> - All tests pass except for our fpclassify tests which fail due - to a bug in <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span></code>, - the bug effects the test code, not fpclassify itself. The IBM - compiler group are aware of the problem. - </p> - </td> -</tr> -</tbody> -</table></div> -</div> -<p><br class="table-break"> - </p> -<div class="table"> -<a name="math_toolkit.status.compilers.unsupported_compilers"></a><p class="title"><b>Table 56. Unsupported Compilers</b></p> -<div class="table-contents"><table class="table" summary="Unsupported Compilers"> -<colgroup> -<col> -<col> -</colgroup> -<thead><tr> -<th> - <p> - Platform - </p> - </th> -<th> - <p> - Compiler - </p> - </th> -</tr></thead> -<tbody> -<tr> -<td> - <p> - Windows - </p> - </td> -<td> - <p> - Borland C++ 5.9.2 (Borland Developer Studio 2007) - </p> - </td> -</tr> -<tr> -<td> - <p> - Windows - </p> - </td> -<td> - <p> - MSVC 6 and 7 - </p> - </td> -</tr> -</tbody> -</table></div> -</div> -<p><br class="table-break"> - </p> -<p> - If you're compiler or platform is not listed above, please try running - the regression tests: cd into boost-root/libs/math/test and do a: - </p> -<p> - -</p> -<pre class="programlisting"><span class="identifier">bjam</span> <span class="identifier">mytoolset</span> -</pre> -<p> - </p> -<p> - where "mytoolset" is the name of the <a href="../../../../../../../tools/build/index.html" target="_top">Boost.Build</a> - toolset used for your compiler. The chances are that <span class="bold"><strong>many - of the accuracy tests will fail at this stage</strong></span> - 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. - </p> -<p> - </p> -</div> -<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> -<td align="left"></td> -<td align="right"><div class="copyright-footer">Copyright © 2006 , 2007, 2008, 2009, 2010 John Maddock, Paul A. Bristow, - Hubert Holin, Xiaogang Zhang, Bruno Lalande, Johan Råde, Gautam Sewani and - Thijs van den Berg<p> - Distributed under the Boost Software License, Version 1.0. (See accompanying - file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) - </p> -</div></td> -</tr></table> -<hr> -<div class="spirit-nav"> -<a accesskey="p" href="history1.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../status.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="issues.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> -</div> -</body> -</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/status/credits.html b/libs/math/doc/sf_and_dist/html/math_toolkit/status/credits.html index 635485225f..04dd3d92b0 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/status/credits.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/status/credits.html @@ -7,7 +7,7 @@ <link rel="home" href="../../index.html" title="Math Toolkit"> <link rel="up" href="../status.html" title="Library Status"> <link rel="prev" href="issues.html" title="Known Issues, and TODO List"> -<link rel="next" href="../../index/s12.html" title="Function Index"> +<link rel="next" href="../../index/s13.html" title="Function Index"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> @@ -20,7 +20,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="issues.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../status.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../index/s12.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="issues.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../status.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../index/s13.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_status_credits"> <div class="titlepage"><div><div><h3 class="title"> @@ -101,6 +101,10 @@ MathWorld</a>, an invaluable resource. </p> <p> + The Skew-normal distribution and Owen's t function were written by Benjamin + Sobotta. + </p> +<p> Plots of the functions and distributions were prepared in <a href="http://www.w3.org/" target="_top">W3C</a> standard <a href="http://www.svg.org/" target="_top">Scalable Vector Graphic (SVG)</a> format using a program created by Jacob Voytko during a <a href="http://code.google.com/soc/2007/" target="_top">Google @@ -120,7 +124,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -128,7 +132,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="issues.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../status.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../index/s12.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="issues.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../status.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../index/s13.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/status/history1.html b/libs/math/doc/sf_and_dist/html/math_toolkit/status/history1.html index 52e02cc82a..d35eae1d11 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/status/history1.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/status/history1.html @@ -28,6 +28,45 @@ </h3></div></div></div> <h5> <a name="math_toolkit.status.history1.h0"></a> + <span><a name="math_toolkit.status.history1.boost_1_50"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_50">Boost-1.50</a> + </h5> +<div class="itemizedlist"><ul class="itemizedlist" type="disc"> +<li class="listitem"> + 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. + </li> +<li class="listitem"> + Added the Owen's T function and Skew Normal distribution written by Benjamin + Sobotta: see <a class="link" href="../special/owens_t.html" title="Owen's T function">Owens T</a> + and skew_normal_distrib. + </li> +<li class="listitem"> + Added Hankel functions <a class="link" href="../special/hankel/cyl_hankel.html" title="Cyclic Hankel Functions">cyl_hankel_1</a>, + <a class="link" href="../special/hankel/cyl_hankel.html" title="Cyclic Hankel Functions">cyl_hankel_2</a>, + <a class="link" href="../special/hankel/sph_hankel.html" title="Spherical Hankel Functions">sph_hankel_1</a> + and <a class="link" href="../special/hankel/sph_hankel.html" title="Spherical Hankel Functions">sph_hankel_2</a>. + </li> +<li class="listitem"> + Corrected issue <a href="https://svn.boost.org/trac/boost/ticket/6627" target="_top">#6627 + nonfinite_num_put formatting of 0.0 is incorrect</a> based on a patch + submitted by K R Walker. + </li> +<li class="listitem"> + 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 <code class="computeroutput"><span class="keyword">long</span> + <span class="keyword">double</span></code> does not. So for example + 128-bit rational approximations will work with UDT's and do the right + thing, even though <code class="computeroutput"><span class="keyword">long</span> <span class="keyword">double</span></code> may be only 64 or 80 bits. + </li> +<li class="listitem"> + Fixed issue in <code class="computeroutput"><span class="identifier">bessel_jy</span></code> + which causes Y<sub>8.5</sub>(4π) to yield a NaN. + </li> +</ul></div> +<h5> +<a name="math_toolkit.status.history1.h1"></a> <span><a name="math_toolkit.status.history1.boost_1_49"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_49">Boost-1.49</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -71,7 +110,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h1"></a> +<a name="math_toolkit.status.history1.h2"></a> <span><a name="math_toolkit.status.history1.boost_1_48"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_48">Boost-1.48</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -122,7 +161,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h2"></a> +<a name="math_toolkit.status.history1.h3"></a> <span><a name="math_toolkit.status.history1.boost_1_47"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_47">Boost-1.47</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -139,7 +178,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h3"></a> +<a name="math_toolkit.status.history1.h4"></a> <span><a name="math_toolkit.status.history1.boost_1_46_1"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_46_1">Boost-1.46.1</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> @@ -147,7 +186,7 @@ <a href="https://svn.boost.org/trac/boost/ticket/5095" target="_top">#5113</a>. </li></ul></div> <h5> -<a name="math_toolkit.status.history1.h4"></a> +<a name="math_toolkit.status.history1.h5"></a> <span><a name="math_toolkit.status.history1.boost_1_46_0"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_46_0">Boost-1.46.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -162,7 +201,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h5"></a> +<a name="math_toolkit.status.history1.h6"></a> <span><a name="math_toolkit.status.history1.boost_1_45_0"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_45_0">Boost-1.45.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -179,7 +218,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h6"></a> +<a name="math_toolkit.status.history1.h7"></a> <span><a name="math_toolkit.status.history1.boost_1_44_0"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_44_0">Boost-1.44.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -193,7 +232,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h7"></a> +<a name="math_toolkit.status.history1.h8"></a> <span><a name="math_toolkit.status.history1.boost_1_41_0"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_41_0">Boost-1.41.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> @@ -201,7 +240,7 @@ and its inverse. </li></ul></div> <h5> -<a name="math_toolkit.status.history1.h8"></a> +<a name="math_toolkit.status.history1.h9"></a> <span><a name="math_toolkit.status.history1.boost_1_40_0"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_40_0">Boost-1.40.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -238,7 +277,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h9"></a> +<a name="math_toolkit.status.history1.h10"></a> <span><a name="math_toolkit.status.history1.boost_1_38_0"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_38_0">Boost-1.38.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -250,14 +289,14 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h10"></a> +<a name="math_toolkit.status.history1.h11"></a> <span><a name="math_toolkit.status.history1.boost_1_37_0"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_37_0">Boost-1.37.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"> Improved accuracy and testing of the inverse hypergeometric functions. </li></ul></div> <h5> -<a name="math_toolkit.status.history1.h11"></a> +<a name="math_toolkit.status.history1.h12"></a> <span><a name="math_toolkit.status.history1.boost_1_36_0"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_36_0">Boost-1.36.0</a> </h5> <div class="itemizedlist"><ul class="itemizedlist" type="disc"> @@ -290,7 +329,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h12"></a> +<a name="math_toolkit.status.history1.h13"></a> <span><a name="math_toolkit.status.history1.boost_1_35_0__post_review_first_official_release"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.boost_1_35_0__post_review_first_official_release">Boost-1.35.0: Post Review First Official Release</a> </h5> @@ -322,7 +361,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h13"></a> +<a name="math_toolkit.status.history1.h14"></a> <span><a name="math_toolkit.status.history1.milestone_4__second_review_candidate__1st_march_2007_"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.milestone_4__second_review_candidate__1st_march_2007_">Milestone 4: Second Review Candidate (1st March 2007)</a> </h5> @@ -336,7 +375,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h14"></a> +<a name="math_toolkit.status.history1.h15"></a> <span><a name="math_toolkit.status.history1.milestone_3__first_review_candidate__31st_dec_2006_"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.milestone_3__first_review_candidate__31st_dec_2006_">Milestone 3: First Review Candidate (31st Dec 2006)</a> </h5> @@ -364,7 +403,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h15"></a> +<a name="math_toolkit.status.history1.h16"></a> <span><a name="math_toolkit.status.history1.milestone_2__released_september_10th_2006"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.milestone_2__released_september_10th_2006">Milestone 2: Released September 10th 2006</a> </h5> @@ -400,7 +439,7 @@ </li> </ul></div> <h5> -<a name="math_toolkit.status.history1.h16"></a> +<a name="math_toolkit.status.history1.h17"></a> <span><a name="math_toolkit.status.history1.milestone_1__released_march_31st_2006"></a></span><a class="link" href="history1.html#math_toolkit.status.history1.milestone_1__released_march_31st_2006">Milestone 1: Released March 31st 2006</a> </h5> @@ -435,7 +474,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/status/issues.html b/libs/math/doc/sf_and_dist/html/math_toolkit/status/issues.html index f60dcad9b9..89453779a8 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/status/issues.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/status/issues.html @@ -130,15 +130,19 @@ </ul></div> <h5> <a name="math_toolkit.status.issues.h5"></a> - <span><a name="math_toolkit.status.issues.bessel_functions"></a></span><a class="link" href="issues.html#math_toolkit.status.issues.bessel_functions">Bessel - Functions</a> + <span><a name="math_toolkit.status.issues.owen_s_t_function"></a></span><a class="link" href="issues.html#math_toolkit.status.issues.owen_s_t_function">Owen's + T Function</a> </h5> <p> - We should implement the Hankel H1 and H2 functions as linear combinations - of Bessel functions. Requires refactoring the internals so we can reliably - calculate pairs of Bessel functions at the same time. We may also be able - to improve performance of the Bessel series evaluation by accelerating the - alternating series. This may also increase the scope of the series form. + There is a problem area at arbitrary precision when <span class="emphasis"><em>a</em></span> + is very close to 1. However, note that the value for <span class="emphasis"><em>T(h, 1)</em></span> + is well known and easy to compute, and if we replaced the <span class="emphasis"><em>a<sup>k</sup></em></span> + terms in series T1, T2 or T4 by <span class="emphasis"><em>(a<sup>k</sup> - 1)</em></span> then we would + have the difference between <span class="emphasis"><em>T(h, a)</em></span> and <span class="emphasis"><em>T(h, + 1)</em></span>. Unfortunately this doesn't improve the convergence of those + series in that area. It certainly looks as though a new series in terms of + <span class="emphasis"><em>(1-a)<sup>k</sup></em></span> is both possible and desirable in this area, + but it remains elusive at present. </p> <h5> <a name="math_toolkit.status.issues.h6"></a> @@ -1226,7 +1230,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit.html index 34e8fe4622..96082d2bd0 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit.html @@ -1,12 +1,12 @@ <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> -<title>Tools, Constants and Internal Details</title> +<title>Tools and Internal Details</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../index.html" title="Math Toolkit"> <link rel="up" href="../index.html" title="Math Toolkit"> -<link rel="prev" href="extern_c/tr1_ref.html" title="TR1 C Functions Quick Reference"> +<link rel="prev" href="constants/FAQ.html" title="FAQs"> <link rel="next" href="toolkit/internals_overview.html" title="Overview"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> @@ -20,19 +20,16 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="extern_c/tr1_ref.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="toolkit/internals_overview.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="constants/FAQ.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="toolkit/internals_overview.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_toolkit"> <div class="titlepage"><div><div><h2 class="title" style="clear: both"> -<a name="math_toolkit.toolkit"></a><a class="link" href="toolkit.html" title="Tools, Constants and Internal Details">Tools, Constants and Internal Details</a> +<a name="math_toolkit.toolkit"></a><a class="link" href="toolkit.html" title="Tools and Internal Details">Tools and Internal Details</a> </h2></div></div></div> <div class="toc"><dl> <dt><span class="section"><a href="toolkit/internals_overview.html">Overview</a></span></dt> -<dt><span class="section"><a href="toolkit/internals1.html">Utilities - Constants - & Tools</a></span></dt> +<dt><span class="section"><a href="toolkit/internals1.html">Utilities & Tools</a></span></dt> <dd><dl> -<dt><span class="section"><a href="toolkit/internals1/constants.html">Numeric - Constants</a></span></dt> <dt><span class="section"><a href="toolkit/internals1/series_evaluation.html">Series Evaluation</a></span></dt> <dt><span class="section"><a href="toolkit/internals1/cf.html">Continued Fraction @@ -62,7 +59,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -70,7 +67,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="extern_c/tr1_ref.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="toolkit/internals_overview.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="constants/FAQ.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="toolkit/internals_overview.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1.html index f02af56375..60873ae56a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1.html @@ -1,13 +1,13 @@ <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> -<title>Utilities - Constants & Tools</title> +<title>Utilities & Tools</title> <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../index.html" title="Math Toolkit"> -<link rel="up" href="../toolkit.html" title="Tools, Constants and Internal Details"> +<link rel="up" href="../toolkit.html" title="Tools and Internal Details"> <link rel="prev" href="internals_overview.html" title="Overview"> -<link rel="next" href="internals1/constants.html" title="Numeric Constants"> +<link rel="next" href="internals1/series_evaluation.html" title="Series Evaluation"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> @@ -20,16 +20,13 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="internals_overview.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../toolkit.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="internals1/constants.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="internals_overview.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../toolkit.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="internals1/series_evaluation.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_toolkit_internals1"> <div class="titlepage"><div><div><h3 class="title"> -<a name="math_toolkit.toolkit.internals1"></a><a class="link" href="internals1.html" title="Utilities - Constants & Tools">Utilities - Constants - & Tools</a> +<a name="math_toolkit.toolkit.internals1"></a><a class="link" href="internals1.html" title="Utilities & Tools">Utilities & Tools</a> </h3></div></div></div> <div class="toc"><dl> -<dt><span class="section"><a href="internals1/constants.html">Numeric - Constants</a></span></dt> <dt><span class="section"><a href="internals1/series_evaluation.html">Series Evaluation</a></span></dt> <dt><span class="section"><a href="internals1/cf.html">Continued Fraction @@ -48,7 +45,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -56,7 +53,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="internals_overview.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../toolkit.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="internals1/constants.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="internals_overview.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../toolkit.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="internals1/series_evaluation.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/cf.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/cf.html index e30c552644..0168e47706 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/cf.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/cf.html @@ -5,7 +5,7 @@ <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../index.html" title="Math Toolkit"> -<link rel="up" href="../internals1.html" title="Utilities - Constants & Tools"> +<link rel="up" href="../internals1.html" title="Utilities & Tools"> <link rel="prev" href="series_evaluation.html" title="Series Evaluation"> <link rel="next" href="rational.html" title="Polynomial and Rational Function Evaluation"> </head> @@ -271,7 +271,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/constants.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/constants.html deleted file mode 100644 index 40a0b84d6f..0000000000 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/constants.html +++ /dev/null @@ -1,382 +0,0 @@ -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> -<title>Numeric Constants</title> -<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> -<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> -<link rel="home" href="../../../index.html" title="Math Toolkit"> -<link rel="up" href="../internals1.html" title="Utilities - Constants & Tools"> -<link rel="prev" href="../internals1.html" title="Utilities - Constants & Tools"> -<link rel="next" href="series_evaluation.html" title="Series Evaluation"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table cellpadding="2" width="100%"><tr> -<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> -<td align="center"><a href="../../../../../../../../index.html">Home</a></td> -<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td> -<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> -<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> -<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> -</tr></table> -<hr> -<div class="spirit-nav"> -<a accesskey="p" href="../internals1.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../internals1.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="series_evaluation.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> -</div> -<div class="section math_toolkit_toolkit_internals1_constants"> -<div class="titlepage"><div><div><h4 class="title"> -<a name="math_toolkit.toolkit.internals1.constants"></a><a class="link" href="constants.html" title="Numeric Constants">Numeric - Constants</a> -</h4></div></div></div> -<h5> -<a name="math_toolkit.toolkit.internals1.constants.h0"></a> - <span><a name="math_toolkit.toolkit.internals1.constants.synopsis"></a></span><a class="link" href="constants.html#math_toolkit.toolkit.internals1.constants.synopsis">Synopsis</a> - </h5> -<p> -</p> -<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">/</span><span class="identifier">constants</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span> -</pre> -<p> - </p> -<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">math</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">constants</span><span class="special">{</span> - -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">pi</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">root_pi</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">root_half_pi</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">root_two_pi</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">root_ln_four</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">e</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">half</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">euler</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">root_two</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">ln_two</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">ln_ln_two</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">third</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">twothirds</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">pi_minus_three</span><span class="special">();</span> -<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> <span class="identifier">T</span> <span class="identifier">four_minus_pi</span><span class="special">();</span> - -<span class="special">}}}</span> <span class="comment">// namespaces</span> -</pre> -<h5> -<a name="math_toolkit.toolkit.internals1.constants.h1"></a> - <span><a name="math_toolkit.toolkit.internals1.constants.description"></a></span><a class="link" href="constants.html#math_toolkit.toolkit.internals1.constants.description">Description</a> - </h5> -<p> - The header <code class="computeroutput"><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">constants</span><span class="special">/</span><span class="identifier">constants</span><span class="special">.</span><span class="identifier">hpp</span></code> contains some numeric constants that - we have found useful in the development of this library. New constants - are added on an ad-hoc basis based on need. - </p> -<p> - Usage is like this: - </p> -<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span> -<span class="identifier">T</span> <span class="identifier">circumference</span><span class="special">(</span><span class="identifier">T</span> <span class="identifier">r</span><span class="special">)</span> -<span class="special">{</span> - <span class="keyword">return</span> <span class="number">2</span> <span class="special">*</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">math</span><span class="special">::</span><span class="identifier">constants</span><span class="special">::</span><span class="identifier">pi</span><span class="special"><</span><span class="identifier">T</span><span class="special">>()</span> <span class="special">*</span> <span class="identifier">r</span><span class="special">;</span> -<span class="special">}</span> -</pre> -<p> - All the constants are accurate to at least the 34 decimal digits required - for 128-bit long doubles, and most are accurate to 100 digits or more when - used with a suitable arbitrary precision type. - </p> -<p> - The following table summarises the constants we have at present: - </p> -<div class="informaltable"><table class="table"> -<colgroup> -<col> -<col> -<col> -</colgroup> -<thead><tr> -<th> - <p> - Constant - </p> - </th> -<th> - <p> - Meaning - </p> - </th> -<th> - <p> - Value - </p> - </th> -</tr></thead> -<tbody> -<tr> -<td> - <p> - pi - </p> - </td> -<td> - <p> - π - </p> - </td> -<td> - <p> - 3.1415926535897932384... - </p> - </td> -</tr> -<tr> -<td> - <p> - root_pi - </p> - </td> -<td> - <p> - √π - </p> - </td> -<td> - <p> - 1.772453850905516027... - </p> - </td> -</tr> -<tr> -<td> - <p> - root_half_pi - </p> - </td> -<td> - <p> - √(π/2) - </p> - </td> -<td> - <p> - 1.253314137315500251... - </p> - </td> -</tr> -<tr> -<td> - <p> - root_two_pi - </p> - </td> -<td> - <p> - √(2*π) - </p> - </td> -<td> - <p> - 2.506628274631000502... - </p> - </td> -</tr> -<tr> -<td> - <p> - root_ln_four - </p> - </td> -<td> - <p> - √(ln(4)) - </p> - </td> -<td> - <p> - 1.17741002251547469... - </p> - </td> -</tr> -<tr> -<td> - <p> - e - </p> - </td> -<td> - <p> - <span class="emphasis"><em>e</em></span> - </p> - </td> -<td> - <p> - 2.71828182845904523536... - </p> - </td> -</tr> -<tr> -<td> - <p> - half - </p> - </td> -<td> - <p> - 0.5 - </p> - </td> -<td> - <p> - 0.5 - </p> - </td> -</tr> -<tr> -<td> - <p> - euler - </p> - </td> -<td> - <p> - Euler's constant - </p> - </td> -<td> - <p> - 0.577215664901532860606 - </p> - </td> -</tr> -<tr> -<td> - <p> - root_two - </p> - </td> -<td> - <p> - √2 - </p> - </td> -<td> - <p> - 1.4142135623730950488... - </p> - </td> -</tr> -<tr> -<td> - <p> - ln_two - </p> - </td> -<td> - <p> - ln(2) - </p> - </td> -<td> - <p> - 0.6931471805599453094... - </p> - </td> -</tr> -<tr> -<td> - <p> - ln_ln_two - </p> - </td> -<td> - <p> - ln(ln(2)) - </p> - </td> -<td> - <p> - -0.3665129205816643... - </p> - </td> -</tr> -<tr> -<td> - <p> - third - </p> - </td> -<td> - <p> - 1/3 - </p> - </td> -<td> - <p> - 0.333333333333333333... - </p> - </td> -</tr> -<tr> -<td> - <p> - twothirds - </p> - </td> -<td> - <p> - 2/3 - </p> - </td> -<td> - <p> - 0.666666666666666666... - </p> - </td> -</tr> -<tr> -<td> - <p> - pi_minus_three - </p> - </td> -<td> - <p> - π-3 - </p> - </td> -<td> - <p> - 0.14159265358979323846... - </p> - </td> -</tr> -<tr> -<td> - <p> - four_minus_pi - </p> - </td> -<td> - <p> - 4-π - </p> - </td> -<td> - <p> - 0.85840734641020676153735... - </p> - </td> -</tr> -</tbody> -</table></div> -</div> -<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> -<td align="left"></td> -<td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> - Distributed under the Boost Software License, Version 1.0. (See accompanying - file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) - </p> -</div></td> -</tr></table> -<hr> -<div class="spirit-nav"> -<a accesskey="p" href="../internals1.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../internals1.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="series_evaluation.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> -</div> -</body> -</html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/minima.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/minima.html index e160186bce..befe42724c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/minima.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/minima.html @@ -5,7 +5,7 @@ <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../index.html" title="Math Toolkit"> -<link rel="up" href="../internals1.html" title="Utilities - Constants & Tools"> +<link rel="up" href="../internals1.html" title="Utilities & Tools"> <link rel="prev" href="roots2.html" title="Root Finding Without Derivatives: Bisection, Bracket and TOMS748"> <link rel="next" href="tuples.html" title="Tuples"> </head> @@ -113,7 +113,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/rational.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/rational.html index afde32563f..c2d8ad689a 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/rational.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/rational.html @@ -5,7 +5,7 @@ <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../index.html" title="Math Toolkit"> -<link rel="up" href="../internals1.html" title="Utilities - Constants & Tools"> +<link rel="up" href="../internals1.html" title="Utilities & Tools"> <link rel="prev" href="cf.html" title="Continued Fraction Evaluation"> <link rel="next" href="roots.html" title="Root Finding With Derivatives: Newton-Raphson, Halley & Schroeder"> </head> @@ -222,7 +222,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/roots.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/roots.html index 48500bb605..e0293aac32 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/roots.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/roots.html @@ -5,7 +5,7 @@ <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../index.html" title="Math Toolkit"> -<link rel="up" href="../internals1.html" title="Utilities - Constants & Tools"> +<link rel="up" href="../internals1.html" title="Utilities & Tools"> <link rel="prev" href="rational.html" title="Polynomial and Rational Function Evaluation"> <link rel="next" href="roots2.html" title="Root Finding Without Derivatives: Bisection, Bracket and TOMS748"> </head> @@ -410,7 +410,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/roots2.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/roots2.html index 6b234f6711..cfb6db2e0b 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/roots2.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/roots2.html @@ -5,7 +5,7 @@ <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../index.html" title="Math Toolkit"> -<link rel="up" href="../internals1.html" title="Utilities - Constants & Tools"> +<link rel="up" href="../internals1.html" title="Utilities & Tools"> <link rel="prev" href="roots.html" title="Root Finding With Derivatives: Newton-Raphson, Halley & Schroeder"> <link rel="next" href="minima.html" title="Locating Function Minima: Brent's algorithm"> </head> @@ -574,7 +574,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/series_evaluation.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/series_evaluation.html index f94fb1cf11..d0e25f72d3 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/series_evaluation.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/series_evaluation.html @@ -5,8 +5,8 @@ <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../index.html" title="Math Toolkit"> -<link rel="up" href="../internals1.html" title="Utilities - Constants & Tools"> -<link rel="prev" href="constants.html" title="Numeric Constants"> +<link rel="up" href="../internals1.html" title="Utilities & Tools"> +<link rel="prev" href="../internals1.html" title="Utilities & Tools"> <link rel="next" href="cf.html" title="Continued Fraction Evaluation"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> @@ -20,7 +20,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="constants.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../internals1.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="cf.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="../internals1.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../internals1.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="cf.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_toolkit_internals1_series_evaluation"> <div class="titlepage"><div><div><h4 class="title"> @@ -186,7 +186,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -194,7 +194,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="constants.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../internals1.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="cf.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="../internals1.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../internals1.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="cf.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/tuples.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/tuples.html index 421b4d8a0d..5e6a6f348c 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/tuples.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals1/tuples.html @@ -5,7 +5,7 @@ <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../index.html" title="Math Toolkit"> -<link rel="up" href="../internals1.html" title="Utilities - Constants & Tools"> +<link rel="up" href="../internals1.html" title="Utilities & Tools"> <link rel="prev" href="minima.html" title="Locating Function Minima: Brent's algorithm"> <link rel="next" href="../internals2.html" title="Testing and Development"> </head> @@ -72,7 +72,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2.html index e8116ab237..8e9cf4cf75 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2.html @@ -5,7 +5,7 @@ <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../index.html" title="Math Toolkit"> -<link rel="up" href="../toolkit.html" title="Tools, Constants and Internal Details"> +<link rel="up" href="../toolkit.html" title="Tools and Internal Details"> <link rel="prev" href="internals1/tuples.html" title="Tuples"> <link rel="next" href="internals2/polynomials.html" title="Polynomials"> </head> @@ -39,7 +39,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/error_test.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/error_test.html index 01f95cb4e7..b611e43cdc 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/error_test.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/error_test.html @@ -212,7 +212,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/minimax.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/minimax.html index 2d28dc51d7..f718e22a92 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/minimax.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/minimax.html @@ -271,7 +271,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/polynomials.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/polynomials.html index 1d527148b6..8f78f3de80 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/polynomials.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/polynomials.html @@ -122,7 +122,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/test_data.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/test_data.html index 1d1ca0c798..a74246b25b 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/test_data.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals2/test_data.html @@ -535,7 +535,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals_overview.html b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals_overview.html index a47a0afcb0..6c3055ed00 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals_overview.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/toolkit/internals_overview.html @@ -5,9 +5,9 @@ <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../index.html" title="Math Toolkit"> -<link rel="up" href="../toolkit.html" title="Tools, Constants and Internal Details"> -<link rel="prev" href="../toolkit.html" title="Tools, Constants and Internal Details"> -<link rel="next" href="internals1.html" title="Utilities - Constants & Tools"> +<link rel="up" href="../toolkit.html" title="Tools and Internal Details"> +<link rel="prev" href="../toolkit.html" title="Tools and Internal Details"> +<link rel="next" href="internals1.html" title="Utilities & Tools"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> @@ -44,7 +44,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt.html b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt.html index 90bc4ae6fd..8d0659f94b 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt.html @@ -44,7 +44,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/archetypes.html b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/archetypes.html index 47fc48b030..c0daf12e09 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/archetypes.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/archetypes.html @@ -194,7 +194,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/concepts.html b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/concepts.html index 84f259c461..04199be359 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/concepts.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/concepts.html @@ -1352,7 +1352,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/dist_concept.html b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/dist_concept.html index 71e459f065..f06d86e767 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/dist_concept.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/dist_concept.html @@ -384,7 +384,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/e_float.html b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/e_float.html index af444f47ac..dbef5e7bee 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/e_float.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/e_float.html @@ -44,7 +44,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/use_mpfr.html b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/use_mpfr.html index 6d16ea6062..89927f5a81 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/use_mpfr.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/use_mpfr.html @@ -96,7 +96,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/use_ntl.html b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/use_ntl.html index c9d794dc1e..0aa4904747 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/use_ntl.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/using_udt/use_ntl.html @@ -55,7 +55,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils.html index 875b3e8d82..286a21a801 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils.html @@ -6,7 +6,7 @@ <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../index.html" title="Math Toolkit"> <link rel="up" href="../index.html" title="Math Toolkit"> -<link rel="prev" href="special/inv_hyper/atanh.html" title="atanh"> +<link rel="prev" href="special/owens_t.html" title="Owen's T function"> <link rel="next" href="utils/rounding.html" title="Rounding Truncation and Integer Conversion"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> @@ -20,7 +20,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="special/inv_hyper/atanh.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="utils/rounding.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="special/owens_t.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="utils/rounding.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section math_toolkit_utils"> <div class="titlepage"><div><div><h2 class="title" style="clear: both"> @@ -67,7 +67,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> @@ -75,7 +75,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="special/inv_hyper/atanh.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="utils/rounding.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="special/owens_t.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="utils/rounding.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets.html index b1b45839a8..57eb7aa7b9 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets.html @@ -76,7 +76,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/examples.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/examples.html index 9fc761f4c6..5f80192ea0 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/examples.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/examples.html @@ -57,7 +57,6 @@ <span class="comment">// with the new locale containing the nonfinite_numput facet.</span> <span class="comment">// So the cout output will be "1.#INF on MS platforms</span> <span class="comment">// and may be "inf" or other string representation on other platforms.</span> - </pre> <p> </p> @@ -244,6 +243,9 @@ shows output and re-input of various finite and nonfinite values. </p> <p> + A simple example of trapping nonfinite output is at <a href="../../../../../../example/nonfinite_num_facet_trap.cpp" target="_top">nonfinite_num_facet_trap.cpp</a>. + </p> +<p> A very basic example of using Boost.Archive is at <a href="../../../../../../example/nonfinite_serialization_archives.cpp" target="_top">../../../example/nonfinite_serialization_archives.cpp</a>. </p> <p> @@ -253,7 +255,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/intro.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/intro.html index 2ebc02a384..bdf6f01f7d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/intro.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/intro.html @@ -124,7 +124,6 @@ <span class="comment">// with the new locale containing the nonfinite_numput facet.</span> <span class="comment">// So the cout output will be "1.#INF on MS platforms</span> <span class="comment">// and may be "inf" or other string representation on other platforms.</span> - </pre> <p> </p> @@ -377,7 +376,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/portability.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/portability.html index b9a01af768..76c457042b 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/portability.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/portability.html @@ -35,7 +35,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/rationale.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/rationale.html index 955ed53193..ac9360cf9d 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/rationale.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/rationale.html @@ -52,7 +52,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/reference.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/reference.html index aaa0515859..aae5801ac3 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/reference.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fp_facets/reference.html @@ -398,8 +398,8 @@ <p> If the <code class="computeroutput"><span class="identifier">signed_zero</span></code> flag is used with <code class="computeroutput"><span class="identifier">nonfinite_num_put</span></code>, - then the facet will distinguish between positive and negative zero. It - will format positive zero as "0" or "+0" and negative + 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 <code class="computeroutput"><span class="identifier">showpos</span></code> and <code class="computeroutput"><span class="identifier">noshowpos</span></code> manipulators. @@ -411,6 +411,34 @@ always parses "0" and "+0" as positive zero and "-0" as negative zero, as do most implementations of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">num_get</span></code>. </p> +<div class="note"><table border="0" summary="Note"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../../doc/src/images/note.png"></td> +<th align="left">Note</th> +</tr> +<tr><td align="left" valign="top"><p> + If the <code class="computeroutput"><span class="identifier">signed_zero</span></code> 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 <code class="computeroutput"><span class="identifier">signed_zero</span></code> + flag may be more portable. + </p></td></tr> +</table></div> +<div class="tip"><table border="0" summary="Tip"> +<tr> +<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../../../../../../../../doc/src/images/tip.png"></td> +<th align="left">Tip</th> +</tr> +<tr><td align="left" valign="top"><p> + A negative zero value can be portably produced using the changesign function + <code class="computeroutput"><span class="special">(</span><span class="identifier">changesign</span><span class="special">)(</span><span class="keyword">static_cast</span><span class="special"><</span><span class="identifier">ValType</span><span class="special">>(</span><span class="number">0</span><span class="special">))</span></code> where <code class="computeroutput"><span class="identifier">ValType</span></code> + is <code class="computeroutput"><span class="keyword">float</span></code>, <code class="computeroutput"><span class="keyword">double</span></code> or <code class="computeroutput"><span class="keyword">long</span> + <span class="keyword">double</span></code>, or a User-Defined floating-point + type (UDT) provided that this UDT has a sign and that the changesign + function is implemented. + </p></td></tr> +</table></div> <h6> <a name="math_toolkit.utils.fp_facets.reference.h5"></a> <span><a name="math_toolkit.utils.fp_facets.reference.trap_infinity"></a></span><a class="link" href="reference.html#math_toolkit.utils.fp_facets.reference.trap_infinity">trap_infinity</a> @@ -448,7 +476,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fpclass.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fpclass.html index fcd2c71ebf..3c1ad40cc2 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fpclass.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/fpclass.html @@ -237,7 +237,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float.html index a66259372e..97ebdcdf4b 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float.html @@ -68,7 +68,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_advance.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_advance.html index 39306a364e..28bcf19b48 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_advance.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_advance.html @@ -61,7 +61,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_distance.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_distance.html index cd0208895a..23f75e1d8f 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_distance.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_distance.html @@ -95,7 +95,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_next.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_next.html index b85f53a831..61139d7dd6 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_next.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_next.html @@ -63,7 +63,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_prior.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_prior.html index b7a68b9e00..594b70bfac 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_prior.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/float_prior.html @@ -63,7 +63,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/nextafter.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/nextafter.html index e1737d0053..dd6c8d67f2 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/nextafter.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/next_float/nextafter.html @@ -96,7 +96,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding.html index 211b5710bd..1e5520248b 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding.html @@ -37,7 +37,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/modf.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/modf.html index 1008f1c862..c57c43ac36 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/modf.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/modf.html @@ -71,7 +71,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/round.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/round.html index 7e4f5cd43a..92510699bd 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/round.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/round.html @@ -71,7 +71,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/trunc.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/trunc.html index 074ab4fbe6..bf2a6425b0 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/trunc.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/rounding/trunc.html @@ -73,7 +73,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> diff --git a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/sign_functions.html b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/sign_functions.html index 4bd7de5083..3a75c18535 100644 --- a/libs/math/doc/sf_and_dist/html/math_toolkit/utils/sign_functions.html +++ b/libs/math/doc/sf_and_dist/html/math_toolkit/utils/sign_functions.html @@ -240,7 +240,7 @@ <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2006-2010 John Maddock, Paul A. Bristow, Hubert Holin, Xiaogang Zhang, Bruno - Lalande, Johan Råde, Gautam Sewani and Thijs van den Berg<p> + Lalande, Johan Råde, Gautam Sewani, Thijs van den Berg and Benjamin Sobotta<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> |