Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit db09e34

Browse files
Merge pull request #30 from ScientificC/development
Updated docs
2 parents ee6a54b + 1bf12dc commit db09e34

File tree

6 files changed

+22
-115
lines changed

6 files changed

+22
-115
lines changed

docs/source/complex.rst

-37
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
Complex Numbers
55
***************
66

7-
The functions described in this chapter provide support for complex
8-
numbers. The algorithms take care to avoid unnecessary intermediate
9-
underflows and overflows, allowing the functions to be evaluated over
10-
as much of the complex plane as possible.
11-
127
.. FIXME: this still needs to be
138
.. done for the csc, sec, cot, csch, sech, coth functions
149
@@ -436,35 +431,3 @@ Inverse Complex Hyperbolic Functions
436431

437432
This function returns the complex hyperbolic arccotangent of the complex
438433
number :data:`z`, :math:`\arccoth(z) = \arctanh(1/z)`.
439-
440-
References and Further Reading
441-
==============================
442-
443-
The implementations of the elementary and trigonometric functions are
444-
based on the following papers,
445-
446-
* T. E. Hull, Thomas F. Fairgrieve, Ping Tak Peter Tang,
447-
"Implementing Complex Elementary Functions Using Exception
448-
Handling", ACM Transactions on Mathematical Software, Volume 20
449-
(1994), pp 215--244, Corrigenda, p553
450-
451-
* T. E. Hull, Thomas F. Fairgrieve, Ping Tak Peter Tang,
452-
"Implementing the complex arcsin and arccosine functions using exception
453-
handling", ACM Transactions on Mathematical Software, Volume 23
454-
(1997) pp 299--335
455-
456-
The general formulas and details of branch cuts can be found in the
457-
following books,
458-
459-
* Abramowitz and Stegun, Handbook of Mathematical Functions,
460-
"Circular Functions in Terms of Real and Imaginary Parts", Formulas
461-
4.3.55--58,
462-
"Inverse Circular Functions in Terms of Real and Imaginary Parts",
463-
Formulas 4.4.37--39,
464-
"Hyperbolic Functions in Terms of Real and Imaginary Parts",
465-
Formulas 4.5.49--52,
466-
"Inverse Hyperbolic Functions---relation to Inverse Circular Functions",
467-
Formulas 4.6.14--19.
468-
469-
* Dave Gillespie, Calc Manual, Free Software Foundation, ISBN
470-
1-882114-18-3

docs/source/const.rst

+1-10
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88
Physical Constants
99
******************
1010

11-
This chapter describes macros for the values of physical constants, such
12-
as the speed of light, :math:`c`, and gravitational constant, :math:`G`.
13-
The values are available in different unit systems, including the
14-
standard MKSA system (meters, kilograms, seconds, amperes) and the CGSM
15-
system (centimeters, grams, seconds, gauss), which is commonly used in
16-
Astronomy.
11+
This module is inspired by the constants module present in GSL.
1712

1813
The full list of constants is described briefly below. Consult the
1914
header files themselves for the values of the constants used in the
@@ -634,7 +629,3 @@ the NIST website.
634629
* P.J. Mohr, B.N. Taylor, D.B. Newell, "CODATA Recommended
635630
Values of the Fundamental Physical Constants: 2006", Reviews of
636631
Modern Physics, 80(2), pp. 633--730 (2008).
637-
638-
* http://www.physics.nist.gov/cuu/Constants/index.html
639-
640-
* http://physics.nist.gov/Pubs/SP811/appenB9.html

docs/source/diff.rst

+5-8
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ Numerical Differentiation
1010
*************************
1111

1212
The functions described in this chapter compute numerical derivatives by
13-
finite differencing. An adaptive algorithm is used to find the best
13+
finite differencing. An adaptive algorithm is used to find the best
1414
choice of finite difference and to estimate the error in the derivative.
1515

16+
Again, the development of this module is inspired by the same present in GSL
17+
looking to adapt it completely to the practices and tools present in CML.
18+
1619
The functions described in this chapter are declared in the header
1720
file :file:`cml/deriv.h`.
1821

@@ -88,10 +91,4 @@ Here is the output of the program,
8891
References and Further Reading
8992
==============================
9093

91-
The algorithms used by these functions are described in the following sources:
92-
93-
* Abramowitz and Stegun, *Handbook of Mathematical Functions*,
94-
Section 25.3.4, and Table 25.5 (Coefficients for Differentiation).
95-
96-
* S.D. Conte and Carl de Boor, *Elementary Numerical Analysis: An
97-
Algorithmic Approach*, McGraw-Hill, 1972.
94+
This work is a spiritual descendent of the Differentiation module in GSL.

docs/source/ieee754.rst

+1-22
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
IEEE floating-point arithmetic
77
******************************
88

9-
This chapter describes functions for examining the representation of
10-
floating point numbers and controlling the floating point environment of
11-
your program. The functions described in this chapter are declared in
9+
The functions described in this chapter are declared in
1210
the header file :file:`cml/ieee.h`.
1311

1412
.. index::
@@ -218,22 +216,3 @@ References and Further Reading
218216
The reference for the IEEE standard is,
219217

220218
* ANSI/IEEE Std 754-1985, IEEE Standard for Binary Floating-Point Arithmetic.
221-
222-
A more pedagogical introduction to the standard can be found in the
223-
following paper,
224-
225-
* David Goldberg: What Every Computer Scientist Should Know About
226-
Floating-Point Arithmetic. *ACM Computing Surveys*, Vol.: 23, No.: 1
227-
(March 1991), pages 5--48.
228-
229-
* Corrigendum: *ACM Computing Surveys*, Vol.: 23, No.: 3 (September
230-
1991), page 413. and see also the sections by B. A. Wichmann and Charles
231-
B. Dunham in Surveyor's Forum: "What Every Computer Scientist Should
232-
Know About Floating-Point Arithmetic". *ACM Computing Surveys*,
233-
Vol.: 24, No.: 3 (September 1992), page 319.
234-
235-
A detailed textbook on IEEE arithmetic and its practical use is
236-
available from SIAM Press,
237-
238-
* Michael L. Overton, *Numerical Computing with IEEE Floating Point Arithmetic*,
239-
SIAM Press, ISBN 0898715717.

docs/source/intro.rst

+9-33
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,16 @@
66
Introduction
77
************
88

9-
The C Math Library (CML) is a collection of routines for
10-
numerical computing. The routines have been written from scratch in C,
11-
and present a modern Applications Programming Interface
12-
(API) for C programmers, allowing wrappers to be written for very
13-
high level languages. The source code is distributed under the MIT License.
14-
15-
In summary, CML is a pure mathematical C library with a wide variety of
9+
The C Math Library (CML) is a pure mathematical C library with a wide variety of
1610
mathematical functions that seeks to be close to complying with
17-
ANSI C for portability. It is free software under the MIT License.
11+
ANSI C for portability. It's a collection of routines for
12+
numerical computing written from scratch in C. The routines
13+
present a modern API for C programmers, allowing wrappers to be written for very
14+
high level languages. It is free software under the MIT License.
1815

1916
Routines available in CML
2017
=========================
2118

22-
The library covers a wide range of topics in numerical computing.
2319
Routines are available for the following areas,
2420

2521
=========================== =========================== ===========================
@@ -29,27 +25,7 @@ IEEE Floating-Point Physical Constants Easing Functions
2925
Statistics Blocks Vectors and Matrices
3026
=========================== =========================== ===========================
3127

32-
The use of these routines is described in this manual. Each chapter
33-
provides detailed definitions of the functions, followed by example
34-
programs and references to the articles on which the algorithms are
35-
based.
36-
37-
Conventions used in this manual
38-
===============================
39-
40-
.. index::
41-
single: dollar sign $, shell prompt
42-
43-
This manual contains many examples which can be typed at the keyboard.
44-
A command entered at the terminal is shown like this::
45-
46-
$ command
47-
48-
The first character on the line is the terminal prompt, and should not
49-
be typed. The dollar sign $ is used as the standard prompt in
50-
this manual, although some systems may use a different character.
51-
52-
The examples assume the use of the GNU operating system. There may be
53-
minor differences in the output on other systems. The commands for
54-
setting environment variables use the Bourne shell syntax of the
55-
standard GNU shell (:code:`bash`).
28+
Each chapter of this manual
29+
provides detailed definitions of the functions, followed by examples
30+
and references to the articles and other resources on which the
31+
algorithms are based.

docs/source/math.rst

+6-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
Mathematical Functions
77
**********************
88

9-
This chapter describes basic mathematical functions. Some of these
10-
functions are present in system libraries, but the alternative versions
11-
given here can be used as a substitute when the system functions are not
12-
available.
9+
For the development of this module, the functions present in many of the system
10+
libraries are taken as reference with the idea of offering them in CML as an
11+
option for when they are not present.
12+
13+
This chapter describes basic mathematical functions.
1314

1415
The functions and macros described in this chapter are defined in the
1516
header file :file:`cml/math.h`.
@@ -235,7 +236,7 @@ application (see :ref:`portability-functions`).
235236
.. index:: trigonometric functions
236237

237238
Trigonometric Functions
238-
===============================
239+
=======================
239240

240241
.. index::
241242
single: sine

0 commit comments

Comments
 (0)