Math Library

Written by Paul Bourke
March 1986


This library contains examples of how mathematical routines might be implemented in C. It is in two parts dcl.c which is a complete double precision maths library and ccl.c which is the complex number equivalent. Also included are the include file mathlib.h, the error descriptions mathlib.errors, and the constants used mathlib.constants

These libraries were originally written in the "good ol'days" when most C development platforms did not have good double precision maths routines and certainly didn't have complex number support. Now they can be used to illustrate the techniques and mathematics (especially for the complex library) behind the functions we take for granted.