Projects / ccmath

CCMATH is a mathematics library, coded in C, that contains functions for linear algebra, numerical integration, geometry and trigonometry, curve fitting, roots and optimization, Fourier analysis, simulation generation, statistics, special functions, sorts and searches, time series models, complex arithmetic, and high precision computations.

Tags | Software Development Libraries Scientific/Engineering Mathematics |
---|---|

Licenses | LGPL |

Operating Systems | POSIX Linux |

Implementation | C |

Tweet

- 09 Nov 2001 23:15

**Release Notes:** A fix for a rare numerical instability in the singular value decomposition (SVD) code.

- 18 Dec 2000 15:34

**Release Notes:** All library functions and test code now employ ANSI function declarations and definitions. The test code has been extensively revised to support automatic comparison of test output with standard results.

- 12 Oct 2000 17:25

**Release Notes:** Bugfixes for Alpha where longs are 64 bits, new declarations for allocation via stdlib.h, and allocation of free memory in eigenvalue functions.

- 23 May 2000 04:53

**Release Notes:** Update hash storage to permit multiple hash array declarations in a program, and eliminate unnecessary external variables. Removes some anachronistic statements that could produce compiler warnings.

- 01 May 2000 19:58

**Release Notes:** New code for benchmark timing of selected functions, and a license change to LGPL.

18 Aug 2002 12:16

Re: Usual traps

> Well, reading the previous comment I

> felt "at least a good complex

> library"! Unfortunately, it is not

> the case. For example the division and

> cabs functions do not take care of

> possible overflows or underflows in the

> intermediate computations so they will

> give wrong answers even though the

> result is a perfectly representable

> number...

The absence of safeguards on overflow and underflow in the complex section of the CCMATH library was a design decision. It is perfectly possible to provide such safeguards

for these instances ,however, this may only serve to obfuscate a more serious problem

in problem formulation. Clearly this would be the case if both the square and square root

of a problamatic number are required somewhere in the computation. Therefore, these

auxillary functions are not safeguarded in order to provide an early indication of possible

problems with the dynamic range of complex numbers in the computation. My feeling is

that such problems are best addressed by a reformulation of the computation rather than

a limited local fix! (Note that the complex math functions are not called by functions in

other library sections.)

13 Jul 2002 19:32

Usual traps

Well, reading the previous comment I felt "at least a good complex library"! Unfortunately, it is not the case. For example the division and cabs functions do not take care of possible overflows or underflows in the intermediate computations so they will give wrong answers even though the result is a perfectly representable number...

01 May 2000 18:34

ccmath is outstanding.

Anybody who ever does anything with math should download this.

The form is about as clean as you'll ever see.