2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Synch docs to code.

This commit is contained in:
jzmaddock
2014-11-20 10:41:26 +00:00
parent e2cd2e72dc
commit ea950fbd27
16 changed files with 149 additions and 268 deletions

View File

@@ -9,202 +9,86 @@
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mtable>
<mtr>
<mtd>
<mfrac>
<mrow>
<msup>
<mo>&#x2202;</mo>
<mi>n</mi>
</msup>
<mi>cot</mi>
<mfenced>
<mrow>
<mi>&#x03C0;</mi>
<mi>x</mi>
</mrow>
</mfenced>
</mrow>
<mrow>
<mo>&#x2202;</mo>
<msup>
<mi>x</mi>
<mi>n</mi>
</msup>
</mrow>
</mfrac>
</mtd>
<mtd>
<mo>=</mo>
</mtd>
<mtd>
<mfrac>
<mrow>
<msup>
<mi>&#x03C0;</mi>
<mi>n</mi>
</msup>
</mrow>
<mrow>
<msup>
<mi>sin</mi>
<mrow>
<mi>n</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msup>
<mfenced>
<mrow>
<mi>&#x03C0;</mi>
<mi>x</mi>
</mrow>
</mfenced>
</mrow>
</mfrac>
<munderover>
<mo>&#x2211;</mo>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mn>0</mn>
</mrow>
<mrow>
<mfrac>
<mrow>
<mi>n</mi>
<mo>&#x2212;</mo>
<mn>2</mn>
</mrow>
<mn>2</mn>
</mfrac>
</mrow>
</munderover>
<msub>
<mi>C</mi>
<mrow>
<mi>n</mi>
<mo>,</mo>
<mi>k</mi>
</mrow>
</msub>
<mi>cos</mi>
<mfenced>
<mrow>
<mfenced>
<mrow>
<mn>1</mn>
<mo>+</mo>
<mn>2</mn>
<mi>k</mi>
</mrow>
</mfenced>
<mi>&#x03C0;</mi>
<mi>x</mi>
</mrow>
</mfenced>
</mtd>
<mtd>
<mo>;</mo>
<mspace width="1em"/>
<mfrac>
<mfrac>
<mrow>
<msup>
<mo>&#x2202;</mo>
<mi>n</mi>
</msup>
<mi>cot</mi>
<mfenced>
<mrow>
<mi>&#x03C0;</mi>
<mi>x</mi>
</mrow>
</mfenced>
</mrow>
<mrow>
<mo>&#x2202;</mo>
<msup>
<mi>x</mi>
<mi>n</mi>
</msup>
</mrow>
</mfrac>
<mo>=</mo>
<mfrac>
<mrow>
<msup>
<mi>&#x03C0;</mi>
<mi>n</mi>
</msup>
</mrow>
<mrow>
<msup>
<mi>sin</mi>
<mrow>
<mi>n</mi>
<mn>2</mn>
</mfrac>
<mo>&#x2208;</mo>
<mi>&#x2115;</mi>
</mtd>
</mtr>
<mtr>
<mtd>
<mspace width="1em"/>
</mtd>
<mtd>
<mo>=</mo>
</mtd>
<mtd>
<mfrac>
<mrow>
<msup>
<mi>&#x03C0;</mi>
<mi>n</mi>
</msup>
</mrow>
<mrow>
<msup>
<mi>sin</mi>
<mrow>
<mi>n</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msup>
<mfenced>
<mrow>
<mi>&#x03C0;</mi>
<mi>x</mi>
</mrow>
</mfenced>
</mrow>
</mfrac>
<mfenced>
<mrow>
<msub>
<mi>C</mi>
<mrow>
<mi>n</mi>
<mo>,</mo>
<mn>0</mn>
</mrow>
</msub>
<mo>+</mo>
<munderover>
<mo>&#x2211;</mo>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mrow>
<mfrac>
<mi>n</mi>
<mn>2</mn>
</mfrac>
</mrow>
</munderover>
<msub>
<mi>C</mi>
<mrow>
<mi>n</mi>
<mo>,</mo>
<mi>k</mi>
</mrow>
</msub>
<mi>cos</mi>
<mfenced>
<mrow>
<mn>2</mn>
<mi>k</mi>
<mi>&#x03C0;</mi>
<mi>x</mi>
</mrow>
</mfenced>
</mrow>
</mfenced>
</mtd>
<mtd>
<mo>;</mo>
<mspace width="1em"/>
<mfrac>
<mi>n</mi>
<mn>2</mn>
</mfrac>
<mo>&#x2209;</mo>
<mi>&#x2115;</mi>
</mtd>
</mtr>
</mtable>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msup>
<mfenced>
<mrow>
<mi>&#x03C0;</mi>
<mi>x</mi>
</mrow>
</mfenced>
</mrow>
</mfrac>
<mspace width="1em"/>
<munderover>
<mo>&#x2211;</mo>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mn>0</mn>
</mrow>
<mrow>
<mi>n</mi>
<mo>&#x2212;</mo>
<mn>1</mn>
</mrow>
</munderover>
<msub>
<mi>C</mi>
<mrow>
<mi>k</mi>
<mo>,</mo>
<mi>n</mi>
</mrow>
</msub>
<mi>cos</mi>
<msup>
<mi/>
<mi>k</mi>
</msup>
<mfenced>
<mrow>
<mi>&#x03C0;</mi>
<mi>n</mi>
</mrow>
</mfenced>
</mrow>
</math>
</body>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

@@ -19,10 +19,13 @@
<mfrac>
<mrow>
<mi>cos</mi>
<msup>
<mi/>
<mi>k</mi>
</msup>
<mfenced>
<mrow>
<mi>k</mi>
<mi>x</mi>
<mi>&#x03B8;</mi>
</mrow>
</mfenced>
</mrow>
@@ -33,61 +36,14 @@
</msup>
<mfenced>
<mrow>
<mi>x</mi>
<mi>&#x03B8;</mi>
</mrow>
</mfenced>
</mrow>
</mfrac>
<mo>=</mo>
<mo>&#x2212;</mo>
<mfrac>
<mn>1</mn>
<mn>2</mn>
</mfrac>
<mfrac>
<mrow>
<mfenced>
<mrow>
<mi>k</mi>
<mo>+</mo>
<mi>n</mi>
</mrow>
</mfenced>
<mi>cos</mi>
<mfenced>
<mrow>
<mfenced>
<mrow>
<mi>k</mi>
<mo>&#x2212;</mo>
<mn>1</mn>
</mrow>
</mfenced>
<mi>x</mi>
</mrow>
</mfenced>
<mo>+</mo>
<mfenced>
<mrow>
<mi>n</mi>
<mo>&#x2212;</mo>
<mi>k</mi>
</mrow>
</mfenced>
<mi>cos</mi>
<mfenced>
<mrow>
<mfenced>
<mrow>
<mi>k</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</mfenced>
<mi>x</mi>
</mrow>
</mfenced>
</mrow>
<mrow>
<msup>
<mi>sin</mi>
@@ -99,11 +55,52 @@
</msup>
<mfenced>
<mrow>
<mi>x</mi>
<mi>&#x03B8;</mi>
</mrow>
</mfenced>
</mrow>
</mfrac>
<mfenced>
<mrow>
<mrow>
<mfenced>
<mrow>
<mi>k</mi>
<mo>&#x2212;</mo>
<mi>n</mi>
</mrow>
</mfenced>
<msup>
<mi>cos</mi>
<mrow>
<mi>n</mi>
<mo>+</mo>
<mn>1</mn>
</mrow>
</msup>
<mfenced>
<mrow>
<mi>&#x03B8;</mi>
</mrow>
</mfenced>
<mo>&#x2212;</mo>
<mi>k</mi>
<msup>
<mi>cos</mi>
<mrow>
<mi>n</mi>
<mo>&#x2212;</mo>
<mn>1</mn>
</mrow>
</msup>
<mfenced>
<mrow>
<mi>&#x03B8;</mi>
</mrow>
</mfenced>
</mrow>
</mrow>
</mfenced>
</mrow>
</math>
</body>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -111,7 +111,7 @@ This manual is also available in <a href="http://sourceforge.net/projects/boost/
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"><p><small>Last revised: November 14, 2014 at 17:06:36 GMT</small></p></td>
<td align="left"><p><small>Last revised: November 20, 2014 at 10:35:49 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>

View File

@@ -24,7 +24,7 @@
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="idm1504293952"></a>Function Index</h2></div></div></div>
<a name="idm1506084128"></a>Function Index</h2></div></div></div>
<p><a class="link" href="s01.html#idx_id_0">A</a> <a class="link" href="s01.html#idx_id_1">B</a> <a class="link" href="s01.html#idx_id_2">C</a> <a class="link" href="s01.html#idx_id_3">D</a> <a class="link" href="s01.html#idx_id_4">E</a> <a class="link" href="s01.html#idx_id_5">F</a> <a class="link" href="s01.html#idx_id_6">G</a> <a class="link" href="s01.html#idx_id_7">H</a> <a class="link" href="s01.html#idx_id_8">I</a> <a class="link" href="s01.html#idx_id_9">J</a> <a class="link" href="s01.html#idx_id_10">K</a> <a class="link" href="s01.html#idx_id_11">L</a> <a class="link" href="s01.html#idx_id_12">M</a> <a class="link" href="s01.html#idx_id_13">N</a> <a class="link" href="s01.html#idx_id_14">O</a> <a class="link" href="s01.html#idx_id_15">P</a> <a class="link" href="s01.html#idx_id_16">Q</a> <a class="link" href="s01.html#idx_id_17">R</a> <a class="link" href="s01.html#idx_id_18">S</a> <a class="link" href="s01.html#idx_id_19">T</a> <a class="link" href="s01.html#idx_id_20">U</a> <a class="link" href="s01.html#idx_id_21">V</a> <a class="link" href="s01.html#idx_id_23">Z</a></p>
<div class="variablelist"><dl class="variablelist">
<dt>

View File

@@ -24,7 +24,7 @@
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="idm1502328608"></a>Class Index</h2></div></div></div>
<a name="idm1504100384"></a>Class Index</h2></div></div></div>
<p><a class="link" href="s02.html#idx_id_25">B</a> <a class="link" href="s02.html#idx_id_26">C</a> <a class="link" href="s02.html#idx_id_27">D</a> <a class="link" href="s02.html#idx_id_28">E</a> <a class="link" href="s02.html#idx_id_29">F</a> <a class="link" href="s02.html#idx_id_30">G</a> <a class="link" href="s02.html#idx_id_31">H</a> <a class="link" href="s02.html#idx_id_32">I</a> <a class="link" href="s02.html#idx_id_35">L</a> <a class="link" href="s02.html#idx_id_36">M</a> <a class="link" href="s02.html#idx_id_37">N</a> <a class="link" href="s02.html#idx_id_38">O</a> <a class="link" href="s02.html#idx_id_39">P</a> <a class="link" href="s02.html#idx_id_40">Q</a> <a class="link" href="s02.html#idx_id_41">R</a> <a class="link" href="s02.html#idx_id_42">S</a> <a class="link" href="s02.html#idx_id_43">T</a> <a class="link" href="s02.html#idx_id_44">U</a> <a class="link" href="s02.html#idx_id_46">W</a></p>
<div class="variablelist"><dl class="variablelist">
<dt>

View File

@@ -24,7 +24,7 @@
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="idm1502213664"></a>Typedef Index</h2></div></div></div>
<a name="idm1503919776"></a>Typedef Index</h2></div></div></div>
<p><a class="link" href="s03.html#idx_id_48">A</a> <a class="link" href="s03.html#idx_id_49">B</a> <a class="link" href="s03.html#idx_id_50">C</a> <a class="link" href="s03.html#idx_id_51">D</a> <a class="link" href="s03.html#idx_id_52">E</a> <a class="link" href="s03.html#idx_id_53">F</a> <a class="link" href="s03.html#idx_id_54">G</a> <a class="link" href="s03.html#idx_id_55">H</a> <a class="link" href="s03.html#idx_id_56">I</a> <a class="link" href="s03.html#idx_id_59">L</a> <a class="link" href="s03.html#idx_id_61">N</a> <a class="link" href="s03.html#idx_id_62">O</a> <a class="link" href="s03.html#idx_id_63">P</a> <a class="link" href="s03.html#idx_id_65">R</a> <a class="link" href="s03.html#idx_id_66">S</a> <a class="link" href="s03.html#idx_id_67">T</a> <a class="link" href="s03.html#idx_id_68">U</a> <a class="link" href="s03.html#idx_id_69">V</a> <a class="link" href="s03.html#idx_id_70">W</a></p>
<div class="variablelist"><dl class="variablelist">
<dt>

View File

@@ -24,7 +24,7 @@
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="idm1501806112"></a>Macro Index</h2></div></div></div>
<a name="idm1503708960"></a>Macro Index</h2></div></div></div>
<p><a class="link" href="s04.html#idx_id_73">B</a> <a class="link" href="s04.html#idx_id_77">F</a></p>
<div class="variablelist"><dl class="variablelist">
<dt>

View File

@@ -23,7 +23,7 @@
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="idm1501661472"></a>Index</h2></div></div></div>
<a name="idm1503367584"></a>Index</h2></div></div></div>
<p><a class="link" href="s05.html#idx_id_96">A</a> <a class="link" href="s05.html#idx_id_97">B</a> <a class="link" href="s05.html#idx_id_98">C</a> <a class="link" href="s05.html#idx_id_99">D</a> <a class="link" href="s05.html#idx_id_100">E</a> <a class="link" href="s05.html#idx_id_101">F</a> <a class="link" href="s05.html#idx_id_102">G</a> <a class="link" href="s05.html#idx_id_103">H</a> <a class="link" href="s05.html#idx_id_104">I</a> <a class="link" href="s05.html#idx_id_105">J</a> <a class="link" href="s05.html#idx_id_106">K</a> <a class="link" href="s05.html#idx_id_107">L</a> <a class="link" href="s05.html#idx_id_108">M</a> <a class="link" href="s05.html#idx_id_109">N</a> <a class="link" href="s05.html#idx_id_110">O</a> <a class="link" href="s05.html#idx_id_111">P</a> <a class="link" href="s05.html#idx_id_112">Q</a> <a class="link" href="s05.html#idx_id_113">R</a> <a class="link" href="s05.html#idx_id_114">S</a> <a class="link" href="s05.html#idx_id_115">T</a> <a class="link" href="s05.html#idx_id_116">U</a> <a class="link" href="s05.html#idx_id_117">V</a> <a class="link" href="s05.html#idx_id_118">W</a> <a class="link" href="s05.html#idx_id_119">Z</a></p>
<div class="variablelist"><dl class="variablelist">
<dt>

View File

@@ -27,7 +27,7 @@
<a name="math_toolkit.conventions"></a><a class="link" href="conventions.html" title="Document Conventions">Document Conventions</a>
</h2></div></div></div>
<p>
<a class="indexterm" name="idm1567712704"></a>
<a class="indexterm" name="idm1569517248"></a>
</p>
<p>
This documentation aims to use of the following naming and formatting conventions.

View File

@@ -27,7 +27,7 @@
<a name="math_toolkit.navigation"></a><a class="link" href="navigation.html" title="Navigation">Navigation</a>
</h2></div></div></div>
<p>
<a class="indexterm" name="idm1567726400"></a>
<a class="indexterm" name="idm1569530944"></a>
</p>
<p>
Boost.Math documentation is provided in both HTML and PDF formats.

View File

@@ -181,13 +181,9 @@
</table></div>
<p>
As shown above, error rates are generally very acceptable for moderately
sized arguments. Error rates generally increase with increasing <span class="emphasis"><em>n</em></span>
- this is particularly true for negative <span class="emphasis"><em>x</em></span>. Indeed by
the time <span class="emphasis"><em>n=170</em></span> the errors are so bad we can no longer
even tell the sign of the result at <code class="computeroutput"><span class="keyword">double</span></code>
precision. It should also be noted that for large <span class="emphasis"><em>n</em></span>
the function becomes increasingly badly behaved when <span class="emphasis"><em>x</em></span>
is negative and is very sensitive to slight changes in input.
sized arguments. Error rates should stay low for exact inputs, however, please
note that the function becomes exceptionally sensitive to small changes in
input for large n and negative x.
</p>
<p>
<span class="bold"><strong>For these reasons results should be treated with extreme
@@ -227,6 +223,10 @@
<p>
to generate coefficients for n+1.
</p>
<p>
Note that every other coefficient is zero, and therefore what we have are
even or odd polynomials depending on whether n is even or odd.
</p>
<p>
Once x is positive then we have two methods available to us, for small x
we use the series expansion:

View File

@@ -48,11 +48,8 @@ than the one shown will have __zero_error.
]
As shown above, error rates are generally very acceptable for moderately sized
arguments. Error rates generally increase with increasing /n/ - this is particularly true
for negative /x/. Indeed by the time
/n=170/ the errors are so bad we can no longer even tell the sign of the result at `double` precision.
It should also be noted that for large /n/ the function becomes increasingly badly behaved
when /x/ is negative and is very sensitive to slight changes in input.
arguments. Error rates should stay low for exact inputs, however, please note that the
function becomes exceptionally sensitive to small changes in input for large n and negative x.
[*For these reasons results should be treated with extreme caution when /n/ is large and x negative].
@@ -78,6 +75,9 @@ from ['C[sub 1,0] = -1] and then using
to generate coefficients for n+1.
Note that every other coefficient is zero, and therefore what we have are
even or odd polynomials depending on whether n is even or odd.
Once x is positive then we have two methods available to us, for small x
we use the series expansion: