Browse Source

+ Math.xml now ok to be used

michael 21 years ago
parent
commit
a9a9e46cc9
2 changed files with 181 additions and 181 deletions
  1. 10 3
      docs/Makefile
  2. 171 178
      docs/math.xml

+ 10 - 3
docs/Makefile

@@ -366,7 +366,7 @@ fcl.inc: classes.xml
 XMLUNITS=sysutils strutils dateutils systhrds strings mouse keyboard \
 XMLUNITS=sysutils strutils dateutils systhrds strings mouse keyboard \
          crt video dos sockets objects heaptrc mmx ipc printer typinfo\
          crt video dos sockets objects heaptrc mmx ipc printer typinfo\
          ports getopts emu387 dxeload go32 gpm graph oldlinux baseunix\
          ports getopts emu387 dxeload go32 gpm graph oldlinux baseunix\
-         unixtype unix classes unixutil x86 dynlibs linux
+         unixtype unix classes unixutil x86 dynlibs linux math
 RTLXML=$(addsuffix .xml,$(XMLUNITS))
 RTLXML=$(addsuffix .xml,$(XMLUNITS))
 # RTLXML=baseunix.xml
 # RTLXML=baseunix.xml
 RTLOPTS=--package=rtl
 RTLOPTS=--package=rtl
@@ -402,12 +402,12 @@ RTLOPTS+= --descr=unixutil.xml --input="../rtl/unix/unixutil.pp"
 RTLOPTS+= --descr=x86.xml --input="../rtl/unix/x86.pp"
 RTLOPTS+= --descr=x86.xml --input="../rtl/unix/x86.pp"
 RTLOPTS+=--descr=dynlibs.xml --input="../rtl/inc/dynlibs.pp -Fi../rtl/unix"
 RTLOPTS+=--descr=dynlibs.xml --input="../rtl/inc/dynlibs.pp -Fi../rtl/unix"
 RTLOPTS+=--descr=linux.xml --input="../rtl/unix/linux.pp -Fi../rtl/linux -Fi../rtl/unix"
 RTLOPTS+=--descr=linux.xml --input="../rtl/unix/linux.pp -Fi../rtl/linux -Fi../rtl/unix"
+RTLOPTS+=--descr=math.xml --input="../rtl/objpas/math.pp -Fi../rtl/i386 -dFPC_HAS_TYPE_EXTENDED"
 
 
 rtl.inc: $(RTLXML)
 rtl.inc: $(RTLXML)
 	$(FPDOC) --output=rtl.inc $(RTLOPTS) --format=latex
 	$(FPDOC) --output=rtl.inc $(RTLOPTS) --format=latex
 
 
 
 
-
 #####################################################################
 #####################################################################
 # DVI files
 # DVI files
 #####################################################################
 #####################################################################
@@ -446,6 +446,10 @@ fcl.pdf: fcl.tex fcl.inc includes
 
 
 chart.pdf: chart.tex
 chart.pdf: chart.tex
 
 
+rtl.dvi: rtl.tex rtl.inc
+
+rtl.pdf: rtl.tex rtl.inc
+
 dvi : $(DVI)
 dvi : $(DVI)
 
 
 txt : dvi $(TXT)
 txt : dvi $(TXT)
@@ -643,7 +647,10 @@ execute:
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.29  2004-10-22 20:45:50  michael
+# Revision 1.30  2004-10-22 23:02:40  michael
+# + Math.xml now ok to be used
+#
+# Revision 1.29  2004/10/22 20:45:50  michael
 # + Most units added
 # + Most units added
 #
 #
 # Revision 1.28  2004/09/23 21:41:08  florian
 # Revision 1.28  2004/09/23 21:41:08  florian

+ 171 - 178
docs/math.xml

@@ -1,41 +1,47 @@
-<!--  -->
-<!--    $Id$ -->
-<!--    This file is part of the FPC documentation. -->
-<!--    Copyright (C) 2000 by Florian Klaempfl -->
-<!--  -->
-<!--    The FPC documentation is free text; you can redistribute it and/or -->
-<!--    modify it under the terms of the GNU Library General Public License as -->
-<!--    published by the Free Software Foundation; either version 2 of the -->
-<!--    License, or (at your option) any later version. -->
-<!--  -->
-<!--    The FPC Documentation is distributed in the hope that it will be useful, -->
-<!--    but WITHOUT ANY WARRANTY; without even the implied warranty of -->
-<!--    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU -->
-<!--    Library General Public License for more details. -->
-<!--  -->
-<!--    You should have received a copy of the GNU Library General Public -->
-<!--    License along with the FPC documentation; see the file COPYING.LIB.  If not, -->
-<!--    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -->
-<!--    Boston, MA 02111-1307, USA. -->
-<!--  -->
-<topic><short>The MATH unit</short>
-\FPCexampledir{mathex}
-
-This chapter describes the <file>math</file> unit. The <var>math</var> unit
-was initially written by Florian Kl\"ampfl. It provides mathematical
+<?xml version="1.0" encoding="ISO8859-1"?>
+<fpdoc-descriptions>
+<!--  
+
+   $Id$ 
+   This file is part of the FPC documentation. 
+   Copyright (C) 1997, by Michael Van Canneyt 
+ 
+   The FPC documentation is free text; you can redistribute it and/or 
+   modify it under the terms of the GNU Library General Public License as 
+   published by the Free Software Foundation; either version 2 of the 
+   License, or (at your option) any later version. 
+ 
+   The FPC Documentation is distributed in the hope that it will be useful, 
+   but WITHOUT ANY WARRANTY; without even the implied warranty of 
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+   Library General Public License for more details. 
+ 
+   You should have received a copy of the GNU Library General Public 
+   License along with the FPC documentation; see the file COPYING.LIB.  If not, 
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
+   Boston, MA 02111-1307, USA. 
+ -->
+<package name="rtl">
+<module name="math">
+<short>Additional mathematical routines.</short>
+<!-- \FPCexampledir{mathex} -->
+<descr>
+<p>
+This document describes the <file>math</file> unit. The <var>math</var> unit
+was initially written by Florian Klaempfl. It provides mathematical
 functions which aren't covered by the system unit.
 functions which aren't covered by the system unit.
-
+</p>
+<p>
 This chapter starts out with a definition of all types and constants
 This chapter starts out with a definition of all types and constants
 that are defined, after which an overview is presented of the available 
 that are defined, after which an overview is presented of the available 
 functions, grouped by category, and the last part contains a 
 functions, grouped by category, and the last part contains a 
 complete explanation of each function.
 complete explanation of each function.
-
+</p>
+<p>
 The following things must be taken into account when using this unit:
 The following things must be taken into account when using this unit:
-</p><ol>
-</li>
-<li> This unit is compiled in Object Pascal mode so all
-<var>integers</var> are 32 bit.
-</li>
+</p>
+<ol>
+<li>This unit is compiled in Object Pascal mode so all <var>integers</var> are 32 bit.</li>
 <li> Some overloaded functions exist for data arrays of integers and
 <li> Some overloaded functions exist for data arrays of integers and
 floats. When using the address operator (<var>@</var>) to pass an array of 
 floats. When using the address operator (<var>@</var>) to pass an array of 
 data to such a function, make sure the address is typecasted to the 
 data to such a function, make sure the address is typecasted to the 
@@ -44,43 +50,14 @@ do so, will cause the compiler not be able to decide which function you
 want to call.
 want to call.
 </li>
 </li>
 </ol>
 </ol>
-<p>
-
-<topic><short>Constants and types</short>
+</descr>
 
 
-The following types are defined in the <file>math</file> unit:
-</p>
-<code>
-Type
-  Float = Extended;
-  PFloat = ^FLoat
-</code>
-<p>
-All calculations are done with the Float type. This allows to
-recompile the unit with a different float type to obtain a
-desired precision. The pointer type is used in functions that accept
-an array of values of arbitrary length.
-</p>
-<code>
-Type
-   TPaymentTime = (PTEndOfPeriod,PTStartOfPeriod);
-</code>
-<p>
-<var>TPaymentTime</var> is used in the financial calculations.
-</p>
-<code>
-Type
-   EInvalidArgument = Class(EMathError);
-</code>
+<topic name="MinMaxRoutines">
+<short>Min/max determination</short>
+<descr>
 <p>
 <p>
-The <var>EInvalidArgument</var> exception is used to report invalid arguments.
-
-<topic><short>Function list by category</short>
-What follows is a listing of the available functions, grouped by category.
-For each function there is a reference to the page where you can find the
-function.
-<topic><short>Min/max determination</short>
 Functions to determine the minimum or maximum of numbers:
 Functions to determine the minimum or maximum of numbers:
+</p>
 <table>
 <table>
 <th><td>Name</td><td>Description</td></th>
 <th><td>Name</td><td>Description</td></th>
 <tr><td><link id="max"/></td><td>Maximum of 2 values</td></tr>
 <tr><td><link id="max"/></td><td>Maximum of 2 values</td></tr>
@@ -90,7 +67,15 @@ Functions to determine the minimum or maximum of numbers:
 <tr><td><link id="minIntValue"/></td><td>Minimum of an array of integer values</td></tr>
 <tr><td><link id="minIntValue"/></td><td>Minimum of an array of integer values</td></tr>
 <tr><td><link id="minvalue"/></td><td>Minimum of an array of values</td></tr>
 <tr><td><link id="minvalue"/></td><td>Minimum of an array of values</td></tr>
 </table>
 </table>
-<topic><short>Angle conversion</short>
+</descr>
+</topic>
+
+<topic name="AngleConversionRoutines">
+<short>Angle unit conversion</short>
+<descr>
+<p>
+Routines to convert angles between different angle units.
+</p>
 <table>
 <table>
 <th><td>Name</td><td>Description</td></th>
 <th><td>Name</td><td>Description</td></th>
 <tr><td><link id="cycletorad"/></td><td>convert cycles to radians</td></tr>
 <tr><td><link id="cycletorad"/></td><td>convert cycles to radians</td></tr>
@@ -102,7 +87,12 @@ Functions to determine the minimum or maximum of numbers:
 <tr><td><link id="radtodeg"/></td><td>convert radians to degrees</td></tr>
 <tr><td><link id="radtodeg"/></td><td>convert radians to degrees</td></tr>
 <tr><td><link id="radtograd"/></td><td>convert radians to grads</td></tr>
 <tr><td><link id="radtograd"/></td><td>convert radians to grads</td></tr>
 </table>
 </table>
-<topic><short>Trigoniometric functions</short>
+</descr>
+</topic>
+
+<topic name="TrigoniometricRoutines">
+<short>Trigoniometric functions</short>
+<descr>
 <table>
 <table>
 <th><td>Name</td><td>Description</td></th>
 <th><td>Name</td><td>Description</td></th>
 <tr><td><link id="arccos"/></td><td>calculate reverse cosine</td></tr>
 <tr><td><link id="arccos"/></td><td>calculate reverse cosine</td></tr>
@@ -112,7 +102,12 @@ Functions to determine the minimum or maximum of numbers:
 <tr><td><link id="sincos"/></td><td>calculate sine and cosine</td></tr>
 <tr><td><link id="sincos"/></td><td>calculate sine and cosine</td></tr>
 <tr><td><link id="tan"/></td><td>calculate tangent</td></tr>
 <tr><td><link id="tan"/></td><td>calculate tangent</td></tr>
 </table>
 </table>
-<topic><short>Hyperbolic functions</short>
+</descr>
+</topic>
+
+<topic name="HyperbolicRoutines">
+<short>Hyperbolic functions</short>
+<descr>
 <table>
 <table>
 <th><td>Name</td><td>Description</td></th>
 <th><td>Name</td><td>Description</td></th>
 <tr><td><link id="arcosh"/></td><td>caculate reverse hyperbolic cosine</td></tr>
 <tr><td><link id="arcosh"/></td><td>caculate reverse hyperbolic cosine</td></tr>
@@ -122,25 +117,40 @@ Functions to determine the minimum or maximum of numbers:
 <tr><td><link id="sinh"/></td><td>calculate hyperbolic sine</td></tr>
 <tr><td><link id="sinh"/></td><td>calculate hyperbolic sine</td></tr>
 <tr><td><link id="tanh"/></td><td>calculate hyperbolic tangent</td></tr>
 <tr><td><link id="tanh"/></td><td>calculate hyperbolic tangent</td></tr>
 </table>
 </table>
-<topic><short>Exponential and logarithmic functions</short>
+</descr>
+</topic>
+
+<topic name="ExpLogRoutines">
+<short>Exponential and logarithmic functions</short>
+<descr>
 <table>
 <table>
 <th><td>Name</td><td>Description</td></th>
 <th><td>Name</td><td>Description</td></th>
 <tr><td><link id="intpower"/></td><td>Raise float to integer power</td></tr>
 <tr><td><link id="intpower"/></td><td>Raise float to integer power</td></tr>
 <tr><td><link id="ldexp"/></td><td>Calculate $2^p x$</td></tr>
 <tr><td><link id="ldexp"/></td><td>Calculate $2^p x$</td></tr>
-<tr><td><link id="lnxp1"/></td><td>calculate <var>log(x+1)</td></tr></var>
+<tr><td><link id="lnxp1"/></td><td>calculate <var>log(x+1)</var></td></tr>
 <tr><td><link id="log10"/></td><td>calculate 10-base log</td></tr>
 <tr><td><link id="log10"/></td><td>calculate 10-base log</td></tr>
 <tr><td><link id="log2"/></td><td>calculate 2-base log</td></tr>
 <tr><td><link id="log2"/></td><td>calculate 2-base log</td></tr>
 <tr><td><link id="logn"/></td><td>calculate N-base log</td></tr>
 <tr><td><link id="logn"/></td><td>calculate N-base log</td></tr>
 <tr><td><link id="power"/></td><td>raise float to arbitrary power</td></tr>
 <tr><td><link id="power"/></td><td>raise float to arbitrary power</td></tr>
 </table>
 </table>
-<topic><short>Number converting</short>
+</descr>
+</topic>
+
+<topic name="NumberConversionRoutines">
+<short>Number converting</short>
+<descr>
 <table>
 <table>
 <th><td>Name</td><td>Description</td></th>
 <th><td>Name</td><td>Description</td></th>
 <tr><td><link id="ceil"/></td><td>Round to infinity</td></tr>
 <tr><td><link id="ceil"/></td><td>Round to infinity</td></tr>
 <tr><td><link id="floor"/></td><td>Round to minus infinity</td></tr>
 <tr><td><link id="floor"/></td><td>Round to minus infinity</td></tr>
 <tr><td><link id="frexp"/></td><td>Return mantissa and exponent</td></tr>
 <tr><td><link id="frexp"/></td><td>Return mantissa and exponent</td></tr>
 </table>
 </table>
-<topic><short>Statistical functions</short>
+</descr>
+</topic>
+
+<topic name="StatisticalRoutines">
+<short>Statistical functions</short>
+<descr>
 <table>
 <table>
 <th><td>Name</td><td>Description</td></th>
 <th><td>Name</td><td>Description</td></th>
 <tr><td><link id="mean"/></td><td>Mean of values</td></tr>
 <tr><td><link id="mean"/></td><td>Mean of values</td></tr>
@@ -156,14 +166,47 @@ Functions to determine the minimum or maximum of numbers:
 <tr><td><link id="totalvariance"/></td><td>Total variance of values</td></tr>
 <tr><td><link id="totalvariance"/></td><td>Total variance of values</td></tr>
 <tr><td><link id="variance"/></td><td>variance of values</td></tr>
 <tr><td><link id="variance"/></td><td>variance of values</td></tr>
 </table>
 </table>
-<topic><short>Geometrical functions</short>
+</descr>
+</topic>
+
+<topic name="GeometricalRoutines">
+<short>Geometrical functions</short>
+<descr>
 <table>
 <table>
 <th><td>Name</td><td>Description</td></th>
 <th><td>Name</td><td>Description</td></th>
 <tr><td><link id="hypot"/></td><td>Hypotenuse of triangle</td></tr>
 <tr><td><link id="hypot"/></td><td>Hypotenuse of triangle</td></tr>
 <tr><td><link id="norm"/></td><td>Euclidian norm</td></tr>
 <tr><td><link id="norm"/></td><td>Euclidian norm</td></tr>
 </table>
 </table>
+</descr>
+</topic>
+
+<element name="Float">
+<short>Float type used in all calls</short>
+<descr>
+All calculations are done with the Float type. This allows to
+recompile the unit with a different float type to obtain a
+desired precision. The pointer type <link id="PFloat"/>
+is used in functions that accept an array of values of arbitrary length.
+</descr>
+</element>
+
+<element name="PFloat">
+<short>Pointer to <link id="Float"/> type.</short>
+</element>
+
+<element name="TPaymentTime">
+<short>Type used in financial (interest) calculations.</short>
+</element>
+<element name="TPaymentTime.PTEndOfPeriod">
+<short>End of period.</short>
+</element>
+<element name="TPaymentTime.PTStartOfPeriod">
+<short>Start of period.</short>
+</element>
 
 
-<topic><short>Functions and Procedures</short>
+<element name="EInvalidArgument">
+<short>Exception raised when invalid arguments are passed to a function.</short>
+</element>
 
 
 <element name="arccos">
 <element name="arccos">
 <short></short>
 <short></short>
@@ -181,10 +224,9 @@ If the argument <var>x</var> is not in the allowed range, an
 <link id="arsinh"/>
 <link id="arsinh"/>
 <link id="artanh"/>
 <link id="artanh"/>
 </seealso>
 </seealso>
+<example file="mathex/ex1"/>
 </element>
 </element>
 
 
-<example file="ex1"/>
-
 <element name="arcosh">
 <element name="arcosh">
 <short></short>
 <short></short>
 <descr>
 <descr>
@@ -206,10 +248,9 @@ exception is raised.
 <link id="artanh"/>,
 <link id="artanh"/>,
 <link id="tanh"/>
 <link id="tanh"/>
 </seealso>
 </seealso>
+<example file="mathex/ex3"/>
 </element>
 </element>
 
 
-<example file="ex3"/>
-
 <element name="arcsin">
 <element name="arcsin">
 <short></short>
 <short></short>
 <descr>
 <descr>
@@ -226,10 +267,9 @@ exception is raised.
 <link id="arsinh"/>
 <link id="arsinh"/>
 <link id="artanh"/>
 <link id="artanh"/>
 </seealso>
 </seealso>
+<example file="mathex/ex2"/>
 </element>
 </element>
 
 
-<example file="ex2"/>
-
 
 
 <element name="arctan2">
 <element name="arctan2">
 <short></short>
 <short></short>
@@ -252,10 +292,9 @@ If <var>x</var> is zero, an overflow error will occur.
 <link id="arsinh"/>
 <link id="arsinh"/>
 <link id="artanh"/>
 <link id="artanh"/>
 </seealso>
 </seealso>
+<example file="mathex/ex6"/>
 </element>
 </element>
 
 
-<example file="ex6"/>
-
 <element name="arsinh">
 <element name="arsinh">
 <short></short>
 <short></short>
 <descr>
 <descr>
@@ -273,10 +312,9 @@ None.
 <link id="arcsin"/>
 <link id="arcsin"/>
 <link id="artanh"/>
 <link id="artanh"/>
 </seealso>
 </seealso>
+<example file="mathex/ex4"/>
 </element>
 </element>
 
 
-<example file="ex4"/>
-
 
 
 <element name="artanh">
 <element name="artanh">
 <short></short>
 <short></short>
@@ -295,15 +333,10 @@ exception is raised.
 <link id="arccos"/>
 <link id="arccos"/>
 <link id="arcsin"/>
 <link id="arcsin"/>
 <link id="artanh"/>
 <link id="artanh"/>
-</descr>
-<errors>
-</errors>
-<seealso>
 </seealso>
 </seealso>
+<example file="mathex/ex5"/>
 </element>
 </element>
 
 
-<example file="ex5"/>
-
 
 
 <element name="ceil">
 <element name="ceil">
 <short></short>
 <short></short>
@@ -318,10 +351,9 @@ occur.
 <seealso>
 <seealso>
 <link id="floor"/>
 <link id="floor"/>
 </seealso>
 </seealso>
+<example file="mathex/ex7"/>
 </element>
 </element>
 
 
-<example file="ex7"/>
-
 <element name="cosh">
 <element name="cosh">
 <short></short>
 <short></short>
 <descr>
 <descr>
@@ -335,10 +367,9 @@ None.
 <link id="sinh"/>
 <link id="sinh"/>
 <link id="arsinh"/>
 <link id="arsinh"/>
 </seealso>
 </seealso>
+<example file="mathex/ex8"/>
 </element>
 </element>
 
 
-<example file="ex8"/>
-
 
 
 <element name="cotan">
 <element name="cotan">
 <short></short>
 <short></short>
@@ -352,10 +383,9 @@ If <var>x</var> is zero then a overflow error will occur.
 <seealso>
 <seealso>
 <link id="tanh"/>
 <link id="tanh"/>
 </seealso>
 </seealso>
+<example file="mathex/ex9"/>
 </element>
 </element>
 
 
-<example file="ex9"/>
-
 
 
 <element name="cycletorad">
 <element name="cycletorad">
 <short></short>
 <short></short>
@@ -374,10 +404,9 @@ None.
 <link id="radtograd"/>
 <link id="radtograd"/>
 <link id="radtocycle"/>
 <link id="radtocycle"/>
 </seealso>
 </seealso>
+<example file="mathex/ex10"/>
 </element>
 </element>
 
 
-<example file="ex10"/>
-
 
 
 <element name="degtograd">
 <element name="degtograd">
 <short></short>
 <short></short>
@@ -397,10 +426,9 @@ None.
 <link id="radtograd"/>
 <link id="radtograd"/>
 <link id="radtocycle"/>
 <link id="radtocycle"/>
 </seealso>
 </seealso>
+<example file="mathex/ex11"/>
 </element>
 </element>
 
 
-<example file="ex11"/>
-
 
 
 <element name="degtorad">
 <element name="degtorad">
 <short></short>
 <short></short>
@@ -420,10 +448,9 @@ None.
 <link id="radtograd"/>
 <link id="radtograd"/>
 <link id="radtocycle"/>
 <link id="radtocycle"/>
 </seealso>
 </seealso>
+<example file="mathex/ex12"/>
 </element>
 </element>
 
 
-<example file="ex12"/>
-
 
 
 <element name="floor">
 <element name="floor">
 <short></short>
 <short></short>
@@ -437,10 +464,9 @@ If <var>x</var> is larger than <var>maxint</var>, an overflow will occur.
 <seealso>
 <seealso>
 <link id="ceil"/>
 <link id="ceil"/>
 </seealso>
 </seealso>
+<example file="mathex/ex13"/>
 </element>
 </element>
 
 
-<example file="ex13"/>
-
 
 
 <element name="frexp">
 <element name="frexp">
 <short></short>
 <short></short>
@@ -453,10 +479,9 @@ None
 </errors>
 </errors>
 <seealso>
 <seealso>
 </seealso>
 </seealso>
+<example file="mathex/ex14"/>
 </element>
 </element>
 
 
-<example file="ex14"/>
-
 
 
 <element name="gradtodeg">
 <element name="gradtodeg">
 <short></short>
 <short></short>
@@ -477,10 +502,9 @@ None.
 <link id="radtocycle"/>
 <link id="radtocycle"/>
 <link id="gradtorad"/>
 <link id="gradtorad"/>
 </seealso>
 </seealso>
+<example file="mathex/ex15"/>
 </element>
 </element>
 
 
-<example file="ex15"/>
-
 
 
 <element name="gradtorad">
 <element name="gradtorad">
 <short></short>
 <short></short>
@@ -501,10 +525,9 @@ None.
 <link id="radtocycle"/>
 <link id="radtocycle"/>
 <link id="gradtodeg"/>
 <link id="gradtodeg"/>
 </seealso>
 </seealso>
+<example file="mathex/ex16"/>
 </element>
 </element>
 
 
-<example file="ex16"/>
-
 
 
 <element name="hypot">
 <element name="hypot">
 <short></short>
 <short></short>
@@ -519,10 +542,9 @@ None.
 </errors>
 </errors>
 <seealso>
 <seealso>
 </seealso>
 </seealso>
+<example file="mathex/ex17"/>
 </element>
 </element>
 
 
-<example file="ex17"/>
-
 
 
 <element name="intpower">
 <element name="intpower">
 <short></short>
 <short></short>
@@ -537,10 +559,9 @@ overflow error will occur.
 <seealso>
 <seealso>
 <link id="power"/>
 <link id="power"/>
 </seealso>
 </seealso>
+<example file="mathex/ex18"/>
 </element>
 </element>
 
 
-<example file="ex18"/>
-
 
 
 <element name="ldexp">
 <element name="ldexp">
 <short></short>
 <short></short>
@@ -556,10 +577,9 @@ None.
 <link id="log2"/>
 <link id="log2"/>
 <link id="logn"/>
 <link id="logn"/>
 </seealso>
 </seealso>
+<example file="mathex/ex19"/>
 </element>
 </element>
 
 
-<example file="ex19"/>
-
 
 
 <element name="lnxp1">
 <element name="lnxp1">
 <short></short>
 <short></short>
@@ -577,10 +597,9 @@ If $x\leq -1$ then an <var>EInvalidArgument</var> exception will be raised.
 <link id="log2"/>
 <link id="log2"/>
 <link id="logn"/>
 <link id="logn"/>
 </seealso>
 </seealso>
+<example file="mathex/ex20"/>
 </element>
 </element>
 
 
-<example file="ex20"/>
-
 <element name="log10">
 <element name="log10">
 <short></short>
 <short></short>
 <descr>
 <descr>
@@ -596,10 +615,9 @@ will occur.
 <link id="log2"/>
 <link id="log2"/>
 <link id="logn"/>
 <link id="logn"/>
 </seealso>
 </seealso>
+<example file="mathex/ex21"/>
 </element>
 </element>
 
 
-<example file="ex21"/>
-
 
 
 <element name="log2">
 <element name="log2">
 <short></short>
 <short></short>
@@ -616,10 +634,9 @@ will occur.
 <link id="log10"/>
 <link id="log10"/>
 <link id="logn"/>
 <link id="logn"/>
 </seealso>
 </seealso>
+<example file="mathex/ex22"/>
 </element>
 </element>
 
 
-<example file="ex22"/>
-
 
 
 <element name="logn">
 <element name="logn">
 <short></short>
 <short></short>
@@ -636,10 +653,9 @@ will occur.
 <link id="log10"/>
 <link id="log10"/>
 <link id="log2"/>
 <link id="log2"/>
 </seealso>
 </seealso>
+<example file="mathex/ex23"/>
 </element>
 </element>
 
 
-<example file="ex23"/>
-
 <element name="max">
 <element name="max">
 <short></short>
 <short></short>
 <descr>
 <descr>
@@ -653,10 +669,9 @@ None.
 <link id="maxIntValue"/>
 <link id="maxIntValue"/>
 <link id="maxvalue"/>
 <link id="maxvalue"/>
 </seealso>
 </seealso>
+<example file="mathex/ex24"/>
 </element>
 </element>
 
 
-<example file="ex24"/>
-
 <element name="maxIntValue">
 <element name="maxIntValue">
 <short></short>
 <short></short>
 <descr>
 <descr>
@@ -674,10 +689,9 @@ None.
 <link id="minvalue"/>
 <link id="minvalue"/>
 <link id="minIntValue"/>
 <link id="minIntValue"/>
 </seealso>
 </seealso>
+<example file="mathex/ex25"/>
 </element>
 </element>
 
 
-<example file="ex25"/>
-
 
 
 <element name="maxvalue">
 <element name="maxvalue">
 <short></short>
 <short></short>
@@ -697,10 +711,9 @@ None.
 <link id="minvalue"/>
 <link id="minvalue"/>
 <link id="minIntValue"/>
 <link id="minIntValue"/>
 </seealso>
 </seealso>
+<example file="mathex/ex26"/>
 </element>
 </element>
 
 
-<example file="ex26"/>
-
 <element name="mean">
 <element name="mean">
 <short></short>
 <short></short>
 <descr>
 <descr>
@@ -716,10 +729,9 @@ None.
 <link id="momentskewkurtosis"/>
 <link id="momentskewkurtosis"/>
 <link id="sum"/>
 <link id="sum"/>
 </seealso>
 </seealso>
+<example file="mathex/ex27"/>
 </element>
 </element>
 
 
-<example file="ex27"/>
-
 <element name="meanandstddev">
 <element name="meanandstddev">
 <short></short>
 <short></short>
 <descr>
 <descr>
@@ -738,10 +750,9 @@ None.
 <link id="sumofsquares"/>
 <link id="sumofsquares"/>
 <link id="momentskewkurtosis"/>
 <link id="momentskewkurtosis"/>
 </seealso>
 </seealso>
+<example file="mathex/ex28"/>
 </element>
 </element>
 
 
-<example file="ex28"/>
-
 
 
 <element name="min">
 <element name="min">
 <short></short>
 <short></short>
@@ -754,10 +765,9 @@ None.
 <seealso>
 <seealso>
 <link id="max"/>
 <link id="max"/>
 </seealso>
 </seealso>
+<example file="mathex/ex29"/>
 </element>
 </element>
 
 
-<example file="ex29"/>
-
 <element name="minIntValue">
 <element name="minIntValue">
 <short></short>
 <short></short>
 <descr>
 <descr>
@@ -774,10 +784,9 @@ None
 <link id="maxIntValue"/>
 <link id="maxIntValue"/>
 <link id="maxvalue"/>
 <link id="maxvalue"/>
 </seealso>
 </seealso>
+<example file="mathex/ex30"/>
 </element>
 </element>
 
 
-<example file="ex30"/>
-
 
 
 <element name="minvalue">
 <element name="minvalue">
 <short></short>
 <short></short>
@@ -797,10 +806,9 @@ None.
 <link id="maxvalue"/>
 <link id="maxvalue"/>
 <link id="minIntValue"/>
 <link id="minIntValue"/>
 </seealso>
 </seealso>
+<example file="mathex/ex31"/>
 </element>
 </element>
 
 
-<example file="ex31"/>
-
 
 
 <element name="momentskewkurtosis">
 <element name="momentskewkurtosis">
 <short></short>
 <short></short>
@@ -816,10 +824,9 @@ None.
 <link id="mean"/>
 <link id="mean"/>
 <link id="meanandstddev"/>
 <link id="meanandstddev"/>
 </seealso>
 </seealso>
+<example file="mathex/ex32"/>
 </element>
 </element>
 
 
-<example file="ex32"/>
-
 <element name="norm">
 <element name="norm">
 <short></short>
 <short></short>
 <descr>
 <descr>
@@ -834,10 +841,9 @@ None.
 <seealso>
 <seealso>
 <link id="sumofsquares"/>
 <link id="sumofsquares"/>
 </seealso>
 </seealso>
+<example file="mathex/ex33"/>
 </element>
 </element>
 
 
-<example file="ex33"/>
-
 
 
 <element name="popnstddev">
 <element name="popnstddev">
 <short></short>
 <short></short>
@@ -858,10 +864,9 @@ None.
 <link id="stddev"/>,
 <link id="stddev"/>,
 <link id="momentskewkurtosis"/>
 <link id="momentskewkurtosis"/>
 </seealso>
 </seealso>
+<example file="mathex/ex35"/>
 </element>
 </element>
 
 
-<example file="ex35"/>
-
 
 
 <element name="popnvariance">
 <element name="popnvariance">
 <short></short>
 <short></short>
@@ -882,10 +887,9 @@ None.
 <link id="stddev"/>,
 <link id="stddev"/>,
 <link id="momentskewkurtosis"/>
 <link id="momentskewkurtosis"/>
 </seealso>
 </seealso>
+<example file="mathex/ex36"/>
 </element>
 </element>
 
 
-<example file="ex36"/>
-
 
 
 <element name="power">
 <element name="power">
 <short></short>
 <short></short>
@@ -899,10 +903,9 @@ None.
 <seealso>
 <seealso>
 <link id="intpower"/>
 <link id="intpower"/>
 </seealso>
 </seealso>
+<example file="mathex/ex34"/>
 </element>
 </element>
 
 
-<example file="ex34"/>
-
 
 
 <element name="radtocycle">
 <element name="radtocycle">
 <short></short>
 <short></short>
@@ -922,10 +925,9 @@ None.
 <link id="radtograd"/>
 <link id="radtograd"/>
 <link id="cycletorad"/>
 <link id="cycletorad"/>
 </seealso>
 </seealso>
+<example file="mathex/ex37"/>
 </element>
 </element>
 
 
-<example file="ex37"/>
-
 
 
 <element name="radtodeg">
 <element name="radtodeg">
 <short></short>
 <short></short>
@@ -945,10 +947,9 @@ None.
 <link id="radtograd"/>
 <link id="radtograd"/>
 <link id="cycletorad"/>
 <link id="cycletorad"/>
 </seealso>
 </seealso>
+<example file="mathex/ex38"/>
 </element>
 </element>
 
 
-<example file="ex38"/>
-
 
 
 <element name="radtograd">
 <element name="radtograd">
 <short></short>
 <short></short>
@@ -968,10 +969,9 @@ None.
 <link id="radtodeg"/>
 <link id="radtodeg"/>
 <link id="cycletorad"/>
 <link id="cycletorad"/>
 </seealso>
 </seealso>
+<example file="mathex/ex39"/>
 </element>
 </element>
 
 
-<example file="ex39"/>
-
 
 
 <element name="randg">
 <element name="randg">
 <short></short>
 <short></short>
@@ -988,10 +988,9 @@ None.
 <link id="stddev"/>
 <link id="stddev"/>
 <link id="meanandstddev"/>
 <link id="meanandstddev"/>
 </seealso>
 </seealso>
+<example file="mathex/ex40"/>
 </element>
 </element>
 
 
-<example file="ex40"/>
-
 
 
 <element name="sincos">
 <element name="sincos">
 <short></short>
 <short></short>
@@ -1009,10 +1008,9 @@ None.
 <link id="arcsin"/>
 <link id="arcsin"/>
 <link id="arccos"/>.
 <link id="arccos"/>.
 </seealso>
 </seealso>
+<example file="mathex/ex41"/>
 </element>
 </element>
 
 
-<example file="ex41"/>
-
 
 
 <element name="sinh">
 <element name="sinh">
 <short></short>
 <short></short>
@@ -1027,10 +1025,9 @@ None.
 <link id="tanh"/>
 <link id="tanh"/>
 <link id="artanh"/>
 <link id="artanh"/>
 </seealso>
 </seealso>
+<example file="mathex/ex42"/>
 </element>
 </element>
 
 
-<example file="ex42"/>
-
 
 
 <element name="stddev">
 <element name="stddev">
 <short></short>
 <short></short>
@@ -1050,10 +1047,9 @@ None.
 <link id="variance"/>
 <link id="variance"/>
 <link id="totalvariance"/>
 <link id="totalvariance"/>
 </seealso>
 </seealso>
+<example file="mathex/ex43"/>
 </element>
 </element>
 
 
-<example file="ex43"/>
-
 
 
 <element name="sum">
 <element name="sum">
 <short></short>
 <short></short>
@@ -1072,10 +1068,9 @@ None.
 <link id="totalvariance"/>
 <link id="totalvariance"/>
 , <link id="variance"/>
 , <link id="variance"/>
 </seealso>
 </seealso>
+<example file="mathex/ex44"/>
 </element>
 </element>
 
 
-<example file="ex44"/>
-
 
 
 <element name="sumofsquares">
 <element name="sumofsquares">
 <short></short>
 <short></short>
@@ -1095,10 +1090,9 @@ None.
 <link id="totalvariance"/>
 <link id="totalvariance"/>
 , <link id="variance"/>
 , <link id="variance"/>
 </seealso>
 </seealso>
+<example file="mathex/ex45"/>
 </element>
 </element>
 
 
-<example file="ex45"/>
-
 
 
 <element name="sumsandsquares">
 <element name="sumsandsquares">
 <short></short>
 <short></short>
@@ -1119,10 +1113,9 @@ None.
 <link id="totalvariance"/>
 <link id="totalvariance"/>
 , <link id="variance"/>
 , <link id="variance"/>
 </seealso>
 </seealso>
+<example file="mathex/ex46"/>
 </element>
 </element>
 
 
-<example file="ex46"/>
-
 
 
 <element name="tan">
 <element name="tan">
 <short></short>
 <short></short>
@@ -1138,10 +1131,9 @@ If <var>x</var> (normalized) is pi/2 or 3pi/2 then an overflow will occur.
 <link id="sincos"/>
 <link id="sincos"/>
 <link id="arccos"/>
 <link id="arccos"/>
 </seealso>
 </seealso>
+<example file="mathex/ex47"/>
 </element>
 </element>
 
 
-<example file="ex47"/>
-
 
 
 <element name="tanh">
 <element name="tanh">
 <short></short>
 <short></short>
@@ -1156,10 +1148,9 @@ None.
 <link id="sincos"/>
 <link id="sincos"/>
 <link id="arccos"/>
 <link id="arccos"/>
 </seealso>
 </seealso>
+<example file="mathex/ex48"/>
 </element>
 </element>
 
 
-<example file="ex48"/>
-
 
 
 <element name="totalvariance">
 <element name="totalvariance">
 <short></short>
 <short></short>
@@ -1178,10 +1169,9 @@ None.
 <link id="stddev"/>
 <link id="stddev"/>
 <link id="mean"/>
 <link id="mean"/>
 </seealso>
 </seealso>
+<example file="mathex/ex49"/>
 </element>
 </element>
 
 
-<example file="ex49"/>
-
 
 
 <element name="variance">
 <element name="variance">
 <short></short>
 <short></short>
@@ -1200,6 +1190,9 @@ None.
 <link id="stddev"/>
 <link id="stddev"/>
 <link id="mean"/>
 <link id="mean"/>
 </seealso>
 </seealso>
+<example file="mathex/ex50"/>
 </element>
 </element>
 
 
-<example file="ex50"/>
+</module>
+</package>
+</fpdoc-descriptions>